query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
sequencelengths
3
101
negative_scores
sequencelengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns the package supported by this factory.
QuotePackage getQuotePackage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PackageType getRequiredPackage();", "public PackageNode getPackage();", "java.lang.String getPackage();", "public String getPackageName();", "public String getPackageName() {\n return pkg;\n }", "String getPackageName();", "public DsByteString getPackage() {\n return m_strPackage;\n }", "java.lang.String getPackageName();", "public String getPackageName() {\n\t\treturn pkgField.getText();\n\t}", "private static String getPackage() {\n\t\tPackage pkg = EnergyNet.class.getPackage();\n\n\t\tif (pkg != null) {\n\t\t\tString packageName = pkg.getName();\n\n\t\t\treturn packageName.substring(0, packageName.length() - \".api.energy\".length());\n\t\t}\n\n\t\treturn \"ic2\";\n\t}", "io.deniffel.dsl.useCase.useCase.Package getPackage();", "public String getPackageInfomartion() {\n\t\treturn packageInfomartion;\n\t}", "protected abstract String getPackageName();", "default String getPackageName() {\n return declaringType().getPackageName();\n }", "public String getPackageName() {\n return packageName.get();\n }", "String getPackager();", "public Short getPackageType() {\n\t\treturn packageType;\n\t}", "public static String getPackageName() {\n return CELibHelper.sPackageName;\n }", "String getPackage() {\n return mPackage;\n }", "public String getBasePackage() {\n\t\treturn this.basePackage;\n\t}", "String pkg();", "public static String getPackageName() {\n return mPackageName;\n }", "public String getAppPackage() {\n\t\treturn fnh.getOutputAppPackage();\n\t}", "public abstract String getTargetPackage();", "public abstract String getTargetPackage();", "public java.lang.Boolean getServicePackageInfoSupported() {\r\n return servicePackageInfoSupported;\r\n }", "EisPackage getEisPackage();", "private String getPkgName () {\n return context.getPackageName();\n }", "@NonNull\n RepoPackage getPackage();", "public UMLPackageBean getPackage() {\n return umlPkg;\n }", "public String getPackagedJava();", "public String getPackageName() {\n return packageName;\n }", "public String getPackageName() {\n return packageName;\n }", "PiviPackage getPiviPackage();", "public Package.Builder getBuilder() {\n return pkgBuilder;\n }", "public String getPackageName() {\n\t\treturn this.PackageName;\n\t}", "public String getPackaging();", "public String getPackageName() {\n\t\treturn packageName;\n\t}", "public String getPackage() {\n return carrierPackage;\n }", "public abstract String packageName();", "PackageConfiguration getPackageConfiguration();", "protected final Product getProduct() {\n Product.Builder product = new Product.Builder()\n .implementationTitle(getClass())\n .implementationVersion(getClass());\n Optional.ofNullable(getClass().getPackage())\n .flatMap(p -> Optional.ofNullable(p.getSpecificationVersion()))\n .map(specVersion -> \"(specification \" + specVersion + \")\")\n .ifPresent(product::comment);\n return product.build();\n }", "public String getPackageName() {\n JavaType.FullyQualified fq = TypeUtils.asFullyQualified(qualid.getType());\n if (fq != null) {\n return fq.getPackageName();\n }\n String typeName = getTypeName();\n int lastDot = typeName.lastIndexOf('.');\n return lastDot < 0 ? \"\" : typeName.substring(0, lastDot);\n }", "public PersistedBmmPackage getPackage(String packageName) {\n return packages.get(packageName.toUpperCase());\n }", "public abstract String getAndroidPackage();", "NfrPackage getNfrPackage();", "@NonNull\n public String getPackageName() {\n return mPackageName;\n }", "public String getBasePackage() {\n\t\treturn DataStore.getInstance().getBasePackage();\n\t}", "public static String getBukkitPackage() {\n return Bukkit.getServer().getClass().getPackage().getName().split(\"\\\\.\")[3];\n }", "boolean hasPackageName();", "public String getPackageName() {\n Object ref = packageName_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n packageName_ = s;\n }\n return s;\n }\n }", "ApiPackage getApiPackage();", "public String getPackageName() {\n final var lastDotIdx = name.lastIndexOf('.');\n\n if (lastDotIdx > 0) {\n return name.substring(0, lastDotIdx);\n } else {\n throw new CodeGenException(String.format(\"Couldn't determine package name of '%s'\", name));\n }\n }", "public String getPackageName() {\n if (mPackageName == null) {\n try {\n mPackageName = mSessionBinder.getPackageName();\n } catch (RemoteException e) {\n Log.d(TAG, \"Dead object in getPackageName.\", e);\n }\n }\n return mPackageName;\n }", "public String getPackageName() {\n Object ref = packageName_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n packageName_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "IrSpecificPackage getIrSpecificPackage();", "public String getPackages() {\n\t\treturn this.packages;\n\t}", "public String getPackageName() {\n return mAppEntry.info.packageName;\n }", "com.google.protobuf.ByteString\n getPackageBytes();", "public static String getCraftBukkitPackage() {\n \t\t// Ensure it has been initialized\n \t\tgetMinecraftPackage();\n \t\treturn CRAFTBUKKIT_PACKAGE;\n \t}", "NgtPackage getNgtPackage();", "public String getProductPack() {\n return (String)getAttributeInternal(PRODUCTPACK);\n }", "public String getModelPackageStr() {\n\t\tString thepackage = getModelXMLTagValue(\"package\");\n\t\treturn thepackage != null ? thepackage + \".\" : \"\";\n\t}", "VmPackage getVmPackage();", "String packageName() {\n return name;\n }", "private PackageService getPackageService() {\n\t\treturn packageService;\n\t}", "private Package_c getPackage(final String name) {\n\t\tPackage_c communication = Package_c.PackageInstance(modelRoot,\n\t\t\t\tnew ClassQueryInterface_c() {\n\n\t\t\t\t\tpublic boolean evaluate(Object candidate) {\n\t\t\t\t\t\tPackage_c selected = (Package_c) candidate;\n\t\t\t\t\t\treturn selected.getName().equals(name);\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\treturn communication;\n\t}", "ParkingPackage getParkingPackage();", "public int getWMCPackaged(){\r\n\t\t \r\n\t\treturn mccabe.getWMCPackage();\t\t\r\n\t}", "private BasePackage getPackageModel()\r\n {\r\n return packageCartService.getBasePackage();\r\n }", "PackageClause getPackageClause();", "NassishneidermanPackage getNassishneidermanPackage();", "public String getPackageDesc() {\n\t\treturn packageDesc;\n\t}", "public String getPkgId() {\n return pkgId;\n }", "public String getVersionsSupported();", "public static String getMinecraftPackage() {\n \t\t// Speed things up\n \t\tif (MINECRAFT_FULL_PACKAGE != null) {\n \t\t\treturn MINECRAFT_FULL_PACKAGE;\n \t\t}\n \n \t\tfinal Server craftServer = Bukkit.getServer();\n \n \t\t// This server should have a \"getHandle\" method that we can use\n \t\tif (craftServer != null) {\n \t\t\ttry {\n \t\t\t\tfinal Class<?> craftClass = craftServer.getClass();\n \t\t\t\tfinal Method getHandle = craftClass.getMethod(\"getHandle\");\n \n \t\t\t\tfinal Class<?> returnType = getHandle.getReturnType();\n \t\t\t\tfinal String returnName = returnType.getCanonicalName();\n \n \t\t\t\t// The return type will tell us the full package, regardless of\n \t\t\t\t// formating\n \t\t\t\tCRAFTBUKKIT_PACKAGE = getPackage(craftClass.getCanonicalName());\n \t\t\t\tMINECRAFT_FULL_PACKAGE = getPackage(returnName);\n \t\t\t\treturn MINECRAFT_FULL_PACKAGE;\n \n \t\t\t} catch (final SecurityException e) {\n \t\t\t\tthrow new RuntimeException(\n \t\t\t\t\t\t\"Security violation. Cannot get handle method.\", e);\n \t\t\t} catch (final NoSuchMethodException e) {\n \t\t\t\tthrow new IllegalStateException(\n \t\t\t\t\t\t\"Cannot find getHandle() method on server. Is this a modified CraftBukkit version?\",\n \t\t\t\t\t\te);\n \t\t\t}\n \n \t\t} else {\n \t\t\tthrow new IllegalStateException(\n \t\t\t\t\t\"Could not find Bukkit. Is it running?\");\n \t\t}\n \t}", "protected EPackage getEPackage() {\r\n return Wps10Package.eINSTANCE;\r\n }", "CommunicationsprogramsPackage getCommunicationsprogramsPackage();", "Shipment_Package getShipment_Package();", "TggPackage getTggPackage();", "List<String> getSystemPackages();", "public boolean isPackage()\n {\n ensureLoaded();\n return m_flags.isPackage();\n }", "public String getSupportedVersion() {\n return supportedVersion;\n }", "ICpPackInfo getPackInfo();", "TypePackage getTypePackage();", "public String getPackingType() {\n return (String)getAttributeInternal(PACKINGTYPE);\n }", "GramaticaPackage getGramaticaPackage();", "default String getPackageId() {\n return getIdentifier().getPackageId();\n }", "Quality_requirements_metamodelPackage getQuality_requirements_metamodelPackage();", "MatchModelPackage getMatchModelPackage();", "public String getProjectPackageName() {\n\t\treturn projectPackageName;\n\t}", "ICpPack getPack();", "public PackageName getRootPackageName() {\n return rootPackageName;\n }", "public GeoPackage getGeoPackage() {\n\t\treturn this.geoPackage;\n\t}", "ReactNativePackage getReactNativePackage();", "HiphopsPackage getHiphopsPackage();", "protected UMLPackage getUMLPackage() {\r\n return currentPackage;\r\n }", "MystPackage getMystPackage();", "public Short getPackageSeries() {\n\t\treturn packageSeries;\n\t}", "public String getPackageId()\n {\n return packageId;\n }", "ThingMLPackage getThingMLPackage();" ]
[ "0.7031596", "0.6824025", "0.6818806", "0.6752645", "0.67181015", "0.6704875", "0.6698022", "0.6678774", "0.6635858", "0.6556546", "0.65183675", "0.6501405", "0.6496429", "0.6481852", "0.6376274", "0.63505894", "0.6338929", "0.63388515", "0.6327788", "0.6314242", "0.63126606", "0.6282504", "0.6273947", "0.625018", "0.625018", "0.6246106", "0.6218379", "0.62113875", "0.61974704", "0.6187816", "0.6176801", "0.6166096", "0.6166096", "0.61538076", "0.61370236", "0.61311126", "0.6119505", "0.6110087", "0.6095738", "0.60568917", "0.60403836", "0.6006883", "0.5988912", "0.59846574", "0.5971428", "0.596663", "0.59435695", "0.59422004", "0.5939782", "0.5931478", "0.59234554", "0.59193766", "0.5917696", "0.5896124", "0.58916557", "0.5884717", "0.5883739", "0.5870814", "0.58519596", "0.584893", "0.58416474", "0.584001", "0.5839548", "0.5827061", "0.5818055", "0.58170223", "0.5803712", "0.5787864", "0.5782273", "0.5762003", "0.57582545", "0.575813", "0.5757836", "0.5753817", "0.5746635", "0.57362497", "0.57329035", "0.57273763", "0.57260066", "0.57190484", "0.57188034", "0.57182175", "0.57047856", "0.57030493", "0.5689773", "0.56865156", "0.56835216", "0.5674978", "0.56738055", "0.56653726", "0.56578237", "0.5646589", "0.56433535", "0.5642557", "0.563893", "0.5638249", "0.56340986", "0.563228", "0.56135017", "0.5610743", "0.5606374" ]
0.0
-1
TODO Autogenerated method stub
@Override public void prepareHtmlDataList() { makeGCDataInfoOutputData(); makeLaunchDataInfoOutputData(); }
{ "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 makeOutPutData(File file) { prepareHtmlDataList(); PrintWriter pw = null; int cnt = 0; try { pw = new PrintWriter(new FileOutputStream(file, true)); pw.println("******************** MainData info ********************"); pw.println("startLoggingTime : " + ALTHelper .DateToString(ALTHelper .getTimeStartedBefore(1000))); pw.println("endLoggingTime : " + ALTHelper .DateToString(ALTHelper .getTimeLaunched())); pw.println(""); pw.println("******************** Launched info ********************"); // should implement pw.println(""); pw.println("******************** gc info (top5) sorted by total_time ********************"); // ----------------------- pw.println(String.format("%-20s", "time") + String.format("%-10s", "PID") + String.format("%-15s", "GC_cause") + String.format("%-12s", "freedObject") + String.format("%-10s", "freedByte") + String.format("%-13s", "freedLObject") + String.format("%-11s", "freedLByte") + String.format("%-13s", "percent_free") + String.format("%-18s", "current_heap_size") + String.format("%-13s", "total_memory") + String.format("%-11s", "pause_time") + String.format("%-11s", "Total_time")); ArrayList<GCData> totalTimeList = (ArrayList<GCData>)getGCDataList() .clone(); Collections.sort(totalTimeList, new GCDataComparator( GCDataComparator.DataSortType.TOTAL_TIME)); for (GCData gc : totalTimeList) { if (cnt >= 5) break; pw.println(String.format("%-20s", ALTHelper.DateToString(gc.valutOfdate)) + String.format("%-10s", gc.PID) + String.format("%-15s", gc.GC_cause) + String.format("%-12s", gc.freedObject) + String.format("%-10s", gc.freedByte) + String.format("%-13s", gc.freedLObject) + String.format("%-11s", gc.freedLByte) + String.format("%-13s", gc.percent_free) + String.format("%-18s", gc.current_heap_size) + String.format("%-13s", gc.total_memory) + String.format("%-11s", gc.pause_time) + String.format("%-11s", gc.Total_time)); cnt++; } pw.println(""); // ----------------------- pw.println("******************** gc info sorted by date ********************"); pw.println(String.format("GC Total count : %5s", getGCDataList() .size() + " times")); pw.println(String.format("%-20s", "time") + String.format("%-10s", "processName") + String.format("%-15s", "GC_cause") + String.format("%-12s", "freedObject") + String.format("%-10s", "freedByte") + String.format("%-13s", "freedLObject") + String.format("%-11s", "freedLByte") + String.format("%-13s", "percent_free") + String.format("%-18s", "current_heap_size") + String.format("%-13s", "total_memory") + String.format("%-11s", "pause_time") + String.format("%-11s", "Total_time")); for (GCData gc : getGCDataList()) { pw.println(String.format("%-20s", ALTHelper.DateToString(gc.valutOfdate)) + String.format("%-10s", gc.PID) + String.format("%-15s", gc.GC_cause) + String.format("%-12s", gc.freedObject) + String.format("%-10s", gc.freedByte) + String.format("%-13s", gc.freedLObject) + String.format("%-11s", gc.freedLByte) + String.format("%-13s", gc.percent_free) + String.format("%-18s", gc.current_heap_size) + String.format("%-13s", gc.total_memory) + String.format("%-11s", gc.pause_time) + String.format("%-11s", gc.Total_time)); } pw.println(""); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } finally { if (pw != null) pw.close(); } }
{ "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 String toString() { return packageName + " " + launchingTime; }
{ "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 String toString() { return GC_cause + " " + freedObject + " " + freedByte + " " + freedLObject + " " + freedLByte + " " + percent_free + " " + current_heap_size + " " + total_memory + " " + pause_time + " " + Total_time; }
{ "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
Position of a symbol (token) in a file, e.g. to specify where an error occurred.
public interface FilePosition { String getFileName(); int getLine(); int getColumn(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void syntax_error(Symbol current_token){}", "public Symbol cur_err_token() {\r\n return this.lookahead[this.lookahead_pos];\r\n }", "@Test\n public void testGetPosition()\n {\n System.out.println(\"getPosition\");\n final File file = new File(\"src/test/data/test.example.txt\");\n final Lexer lexer = new Lexer();\n final Token token = lexer.analyze(file);\n assertEquals(Syntax.LABEL, token.getSyntax());\n assertEquals(1, token.getLine());\n assertEquals(1, token.getPosition());\n assertEquals(Vocabulary.COMPONENT, token.getValue());\n }", "Index getIndex(String symbol);", "void yylexdebug(int state,int ch)\n{\nString s=null;\n if (ch < 0) ch=0;\n if (ch <= YYMAXTOKEN) //check index bounds\n s = yyname[ch]; //now get it\n if (s==null)\n s = \"illegal-symbol\";\n debug(\"state \"+state+\", reading \"+ch+\" (\"+s+\")\");\n}", "void yylexdebug(int state,int ch)\n{\nString s=null;\n if (ch < 0) ch=0;\n if (ch <= YYMAXTOKEN) //check index bounds\n s = yyname[ch]; //now get it\n if (s==null)\n s = \"illegal-symbol\";\n debug(\"state \"+state+\", reading \"+ch+\" (\"+s+\")\");\n}", "void yylexdebug(int state,int ch)\r\n{\r\nString s=null;\r\n if (ch < 0) ch=0;\r\n if (ch <= YYMAXTOKEN) //check index bounds\r\n s = yyname[ch]; //now get it\r\n if (s==null)\r\n s = \"illegal-symbol\";\r\n debug(\"state \"+state+\", reading \"+ch+\" (\"+s+\")\");\r\n}", "int getLineOffset(int line) throws BadLocationException;", "public static int findMarkerOffset(final PsiFile psiFile) {\n Document document = PsiDocumentManager.getInstance(psiFile.getProject()).getDocument(psiFile);\n assert document != null;\n int offset = -1;\n for (int i = 1; i < document.getLineCount(); i++) {\n int lineStart = document.getLineStartOffset(i);\n int lineEnd = document.getLineEndOffset(i);\n final int index = document.getCharsSequence().subSequence(lineStart, lineEnd).toString().indexOf(\"<ref>\");\n if (index > 0) {\n offset = document.getLineStartOffset(i - 1) + index;\n }\n }\n assertTrue(\"<ref> in test file not found\", offset >= 0);\n return offset;\n }", "private int findTokenStart() {\n\n\t\tint tokenStart = NOTOKENFOUND;\n\t\t//find starting position of token\n\t\twhile ( tokenStart == NOTOKENFOUND)\n\t\t{\n\t\t\t//empty line, but more lines to read\n\t\t\tif (line.length() == 0 && s.hasNextLine()) \n\t\t\t{\n\t\t\t\t//read next line\n\t\t\t\tline = s.nextLine(); \n\t\t\t}\n\t\t\t//empty line, and no more lines to read\n\t\t\telse if (line.length() == 0 && !s.hasNextLine() )\n\t\t\t{\n\t\t\t\treturn NOTOKENFOUND;\n\t\t\t}\n\t\t\t//line not empty\n\t\t\telse if (line.length() > 0)\n\t\t\t{\n\t\t\t\t//convert to characters[]\n\t\t\t\tchar[] characters = line.toCharArray();\n\t\t\t\t//find position of token in line.\n\t\t\t\ttokenStart = findFirstNotWhitespace(characters);\n\t\t\t\t//empty line if no token found.\n\t\t\t\tif (tokenStart == NOTOKENFOUND)\n\t\t\t\t{\t\n\t\t\t\t\t//empty the line.\n\t\t\t\t\tline = \"\";\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//token was found!\n\t\treturn tokenStart;\n\t}", "@Override\n public final void syntaxError(Recognizer<?, ?> recognizer,\n Object offendingSymbol, int line, int charPositionInLine,\n String msg, RecognitionException e) {\n ResolveToken offendingToken = (ResolveToken) offendingSymbol;\n String input;\n if (recognizer == null) {\n input = offendingToken.getTokenSource().getInputStream().toString();\n }\n else {\n CommonTokenStream src =\n (CommonTokenStream) recognizer.getInputStream();\n input = src.getTokenSource().getInputStream().toString();\n }\n String[] lines = input.split(\"\\n\");\n String errorLine = lines[line - 1].replaceAll(\"\\t\", \" \");\n\n // Obtain the location from the token if it is not null\n Location location = null;\n if (offendingToken != null) {\n location = offendingToken.getLocation();\n }\n\n String errorMsg = buildErrorMsg(charPositionInLine, errorLine, msg);\n myStatusHandler.error(location, errorMsg);\n }", "public static Symbol symbol(String text)\r\n\t{\r\n\t\tint linepos = line_;\r\n\t\tint charpos = char_;\r\n\t\tint colpos = col_;\r\n\t\tscan(text);\r\n\t\tToken token = new Token(fname, text, linepos, charpos, colpos);\r\n\t\tif (symbols.get(text) != null)\r\n\t\t{\r\n\t\t\tint type = ((Integer) symbols.get(text)).intValue();\r\n\t\t\treturn new Symbol(type, linepos, colpos, token);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn new Symbol(sym.ERROR, linepos, colpos, token);\r\n\t\t}\r\n\t}", "public void printErrToken(){\r\n System.err.println(\"Invalid token at line: \" + lineNum + \" , column \" + colNum);\r\n }", "private void recordUnknownSymbolError(String name, int line, int col)\n {\n addError(\"Use of undefined identifier \" + name, line, col);\n }", "void yylexdebug(int state,int ch)\n {\n String s=null;\n if (ch < 0) ch=0;\n if (ch <= YYMAXTOKEN) //check index bounds\n s = yyname[ch]; //now get it\n if (s==null)\n s = \"illegal-symbol\";\n debug(\"state \"+state+\", reading \"+ch+\" (\"+s+\")\");\n }", "public String getErrorPosition() {\n return errorPosition;\n }", "public void syntax_error(Symbol s)\n { \n String lexema = s.value.toString();\n int fila = s.right;\n int columna = s.left;\n \n System.out.println(\"!!!!!!! Error Sintactico Recuperado !!!!!!!\");\n System.out.println(\"\\t\\tLexema: \"+lexema);\n System.out.println(\"\\t\\tFila: \"+fila);\n System.out.println(\"\\t\\tColumna: \"+columna);\n \n lista_errores.add(new ErrorT(lexema, fila, columna,\"sintactico\" ,\"Simbolo no esperado\"));\n }", "CodePosition getCodePosition();", "Position(char file,int rank)\n\t{\n\t\tthis.setFile(file);\n\t\tthis.setRank(rank);\n\t}", "private static void tokenError(Token token, String message) {\r\n\t\tSystem.out.println(\"TOKEN ERROR at line \" + token.lineNumber + \": \" + message + \" at '\" + token.text + \"'\");\r\n\t}", "private static int firstPassParse(String line, int offset)\r\n {\r\n String[] tokens = line.split(\"[\\\\s,]+\");\r\n\r\n if(tokens.length <= 0)\r\n {\r\n return offset;\r\n }\r\n \r\n if(!isOpcode(tokens[0]) && !tokens[0].startsWith(\".\"))\r\n {\r\n int address = beginningAddress + offset;\r\n \r\n if(isHex(tokens[0]))\r\n {\r\n throw new AssemblerException(\"Invalid label on line: \" + line);\r\n }\r\n else\r\n {\r\n symbolTable.put(tokens[0], address);\r\n }\r\n }\r\n\r\n return offset + ADDRESS_OFFSET;\r\n }", "int breakpointIndexOf(int fileId, int line)\t\t\t{ return breakpointIndexOf(fileId, line, 0, true); }", "private void error(String message) {\n errors++;\n System.err.println(\"Line \" + token.line + \",\"\n + \" Col \" + token.col + \": \"\n + message);\n }", "@Override\n public long position() throws IOException {\n return _backing.getFilePointer() - _head.offset;\n }", "private Token symbol(TOKEN_TYPE t){\t\n\t\tntk++;\n\t\treturn new Token(t, yytext(), yyline+1, yycolumn+1); // yytext() é o lexema\n\t}", "public int getLineNumber();", "public void syntax_error(Symbol s)\n { \n String lexema = s.value.toString();\n int fila = s.right;\n int columna = s.left;\n \n System.out.println(\"!!!!!!! Error Sintactico Recuperado !!!!!!!\");\n System.out.println(\"\\t\\tLexema: \"+lexema);\n System.out.println(\"\\t\\tFila: \"+fila);\n System.out.println(\"\\t\\tColumna: \"+columna);\n\n //lista_errores.add(new ErrorT(lexema, fila, columna,\"sintactico\" ,\"Simbolo no esperado\"));\n /*AcepErr datos =new AcepErr(lexema, \"ERROR SINTACTICO\" ,fila,columna,\"Simbolo no esperado\");\n TablaErr.add(datos);\n */\n }", "public int getBlockIndex() {\n return mCursorPosition;\n }", "public int getLineNumber()\n {\n return parser.getLineNumber();\n }", "public void unrecovered_syntax_error(Symbol s) throws java.lang.Exception\n { \n String lexema = s.value.toString();\n int fila = s.right;\n int columna = s.left;\n \n System.out.println(\"!!!!!!! Error Sintactico, Panic Mode !!!!!!! \");\n System.out.println(\"\\t\\tLexema: \"+lexema);\n System.out.println(\"\\t\\tFila: \"+fila);\n System.out.println(\"\\t\\tColumna: \"+columna);\n \n lista_errores.add(new ErrorT(lexema, fila, columna,\"sintactico\" ,\"Simbolo no esperado, Panic Mode\"));\n }", "Constant getStartOffsetConstant();", "int getLineNumber();", "public Token (String token, int position, int marker) {\n this.tokenString = token;\n this.position = position;\n this.marker = marker; \n }", "public CurrencySymbolPosition getSymbolPosition()\r\n {\r\n return (m_symbolPosition);\r\n }", "public Token(String lexeme, int lineNum, int colNum){\r\n this.kind = \"ERROR\";\r\n this.lexeme = lexeme;\r\n this.lineNum = lineNum;\r\n this.colNum = colNum;\r\n }", "long getSymbol();", "int getStartLineNumber();", "java.lang.String getFileLoc();", "@Override\n\t\tpublic long getPos() throws IOException {\n\t\t\treturn 0;\n\t\t}", "int getLineOfOffset(int offset) throws BadLocationException;", "public int getSymbol(ISymbol sym) {\r\n\t\tif (symbols.contains(sym)) {\r\n\t\t\treturn symbols.indexOf(sym);\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "private static Position position(ParserRuleContext ctx) {\n return new Position(ctx.start.getLine(),\n ctx.start.getCharPositionInLine());\n }", "public PrintStream semantError(AbstractSymbol filename, TreeNode t) {\n \terrorStream.print(filename + \":\" + t.getLineNumber() + \": \");\n \treturn semantError();\n }", "private void parseError() {\r\n System.out.print(\"Parse Error on:\");\r\n tokens.get(position).print();\r\n }", "public String symbolAtPosition ( int position )\n {\n String s = null;\n for ( LeafNode current : this.regexNode.getTokenNodes () )\n {\n if ( current.getPosition () == position )\n {\n s = current.getNodeString ().toString ();\n }\n }\n return s;\n }", "public int getLineNum() {\n\t\treturn (parser == null) ? 0 : parser.getCurrentLocation().getLineNr();\n\t}", "Character symbolStackRead();", "public void unrecovered_syntax_error(Symbol s) throws java.lang.Exception\n { \n String lexema = s.value.toString();\n int fila = s.right;\n int columna = s.left;\n \n System.out.println(\"!!!!!!! Error Sintactico, Panic Mode !!!!!!! \");\n System.out.println(\"\\t\\tLexema: \"+lexema);\n System.out.println(\"\\t\\tFila: \"+fila);\n System.out.println(\"\\t\\tColumna: \"+columna);\n\n /*AcepErr datos =new AcepErr(lexema, \"ERROR SINTACTICO\" ,fila,columna,\"Simbolo no esperado Error Fatal\");\n TablaErr.add(datos);\n */\n //lista_errores.add(new ErrorT(lexema, fila, columna,\"sintactico\" ,\"Simbolo no esperado, Panic Mode\"));\n }", "int getColumnPosition(String path);", "public void setSymbolPosition(CurrencySymbolPosition posn)\r\n {\r\n m_symbolPosition = posn;\r\n }", "private static int findIndex(String line) {\n\n int index = -1;\n\n if (line == null) {\n return index;\n }\n\n line = line.trim();\n int spaceIndex = line.indexOf(\" \");\n int tabIndex = line.indexOf(\"\\t\");\n\n if (spaceIndex != -1) {\n if (tabIndex != -1) {\n if (spaceIndex < tabIndex) {\n index = spaceIndex;\n } else {\n index = tabIndex;\n }\n } else {\n index = spaceIndex;\n }\n } else {\n index = tabIndex;\n }\n return index;\n }", "public int classpos(String strtofind, String classname) {\n \t\tString reqname=getclassname(strtofind,classname);\n \t\treqname=reqname+\"_\"+strtofind;\n \t\tTable t=finaltable.symboltable.get(classname);\n \t\tHashMap<String,String> varmap=t.varmap;\n \t\treturn t.varnum.get(reqname);\n}", "public int position(String fieldName) {\n if (fieldPositions.containsKey(fieldName)) {\n return fieldPositions.get(fieldName);\n } else {\n throw new DatasetException(\"Cannot recover \" + fieldName + \" from key\");\n }\n }", "public int getLineIndex(int offset) throws BadLocationException {\n if(offset < 0 || offset > text.length()) {\n throw new BadLocationException(\"The given offset \" + offset + \" is out of bounds <0, \" + text.length() + \">\" , offset); //NOI18N\n }\n \n// //linear\n// for(int i = 0; i < lines.length; i++) {\n// int loffset = lines[i];\n// if(loffset > offset) {\n// return i - 1;\n// }\n// }\n// return lines.length - 1; //last line\n// \n //logarithmical\n int index = Arrays.binarySearch(lines, offset);\n if(index >= 0) {\n //hit\n return index;\n } else {\n //missed (between)\n return -(index + 2);\n }\n \n }", "public int getValidBreakpointLocation(IDocument doc, int lineNumber) {\r\n \r\n \t\tScanner scanner= new Scanner();\r\n \t\tboolean found= false;\r\n \t\tint start= 0, length= 0, token= 0;\r\n \r\n \t\twhile (!found) {\r\n \t\t\ttry {\r\n \t\t\t\tstart= doc.getLineOffset(lineNumber);\r\n \t\t\t\tlength= doc.getLineLength(lineNumber);\r\n \t\t\t\tchar[] txt= doc.get(start, length).toCharArray();\r\n \t\t\t\tscanner.setSourceBuffer(txt);\r\n \t\t\t\ttoken= scanner.getNextToken();\r\n \r\n \t\t\t\twhile (token != TerminalSymbols.TokenNameEOF) {\r\n \t\t\t\t\tif (token == TerminalSymbols.TokenNamebreak ||\r\n \t\t\t\t\t\ttoken == TerminalSymbols.TokenNamecontinue ||\r\n \t\t\t\t\t\ttoken == TerminalSymbols.TokenNameIdentifier ||\r\n \t\t\t\t\t\ttoken == TerminalSymbols.TokenNamereturn ||\r\n\t\t\t\t\t\ttoken == TerminalSymbols.TokenNamethis ||\r\n\t\t\t\t\t\ttoken == TerminalSymbols.TokenNamesuper) {\r\n \t\t\t\t\t\tfound= true;\r\n \t\t\t\t\t\tbreak;\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\ttoken= scanner.getNextToken();\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t\tif (!found) {\r\n \t\t\t\t\tlineNumber++;\r\n \t\t\t\t}\r\n \t\t\t} catch (BadLocationException ble) {\r\n \t\t\t\treturn -1;\r\n \t\t\t} catch (InvalidInputException ie) {\r\n \t\t\t\treturn -1;\r\n \t\t\t}\r\n \t\t}\r\n \t\t// add 1 to the line number - Document is 0 based, JDI is 1 based\r\n \t\treturn lineNumber + 1;\r\n \t}", "public long getFileOffset();", "Position()\n\t{\n\t\tsetFile('\\u0000');\n\t\tsetRank(0);\n\t}", "private int findFirstNotWhitespace(char[] characters) \n\t{\n\t\t//find starting position of token\n\t\tfor(int i=0; i<characters.length; i++)\n\t\t{\n\t\t\t//check if character is not whitespace.\n\t\t\tif(!Character.isWhitespace( characters[i]))\n\t\t\t{\n\t\t\t\t//non-whitespace found, return position \n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\t//no non-whitespace in char[].\n\t\treturn -1;\n\t}", "public abstract String getPos();", "@Override\n public int getLine() {\n return mySourcePosition.getLineNumber() - 1;\n }", "private SourcePosition getTreeStartLocation() {\n return peekToken().location.start;\n }", "public void CheckError(String s) {\r\n if (s.equals(token.get(lookAheadPossition))){\r\n System.out.println(\"Expected: \"+ s +\" at line:\"+ lookAheadPossition);\r\n lookAheadPossition=lookAheadPossition+1;\r\n }else {\r\n System.out.println(\"ERROR: at line:\"+ lookAheadPossition +\" expected-> \"+ s +\" --- \" + token.get(lookAheadPossition)+ \" <-detected.\" );\r\n System.exit(0);\r\n }\r\n }", "public java_cup.runtime.Symbol debug_next_token() throws java.io.IOException {\n java_cup.runtime.Symbol s = next_token();\n System.out.println( \"line:\" + (yyline+1) + \" col:\" + (yycolumn+1) + \" --\"+ yytext() + \"--\" + getTokenName(s.sym) + \"--\");\n return s;\n }", "public java_cup.runtime.Symbol debug_next_token() throws java.io.IOException {\n java_cup.runtime.Symbol s = next_token();\n System.out.println( \"line:\" + (yyline+1) + \" col:\" + (yycolumn+1) + \" --\"+ yytext() + \"--\" + getTokenName(s.sym) + \"--\");\n return s;\n }", "public java_cup.runtime.Symbol debug_next_token() throws java.io.IOException {\n java_cup.runtime.Symbol s = next_token();\n System.out.println( \"line:\" + (yyline+1) + \" col:\" + (yycolumn+1) + \" --\"+ yytext() + \"--\" + getTokenName(s.sym) + \"--\");\n return s;\n }", "public int getLineNumber() {\n\t\treturn _tokenizer.getLineNumber();\n\t}", "long getFileOffset();", "public void processToken(String token) {\n currentTokenLocation++;\n if (foundLocations.containsKey(token)) {\n List<Integer> list = foundLocations.get(token);\n list.add(currentTokenLocation);\n } \n }", "public String location()\n {\n return String.format(\"(%d,%d)\", line, column);\n }", "private static int getErrorLine(String errmsg){\n\t\treturn Integer.parseInt(errmsg.substring(0,errmsg.indexOf(\":\")).substring(errmsg.substring(0,errmsg.indexOf(\":\")).lastIndexOf(\" \")+1));\n\t}", "private String getPosition(final Lexer lexer, final int line, final int col) {\n // Change formatting to be parsable by GNU Emacs\n if (lexer.configuration.isEmacs()) {\n return MessageFormat.format(res.getString(\"emacs_format\"), this.currentFile,\n line, col) + \" \";\n }\n // traditional format\n return MessageFormat.format(res.getString(\"line_column\"), line, col);\n }", "public char symbol(){\n\n if (currentTokenType == TYPE.SYMBOL){\n\n return currentToken.charAt(0);\n\n }else{\n throw new IllegalStateException(\"Current token is not a symbol!\");\n }\n }", "public void printError(SourcePosition arg0, String arg1) {\n\n }", "private Integer varOffset( String defun, String varname ) {\n\treturn symbolTable.get( defun ).get( varname );\n }", "int getAfterLineNumber();", "public int getSourceLine(int pos) {\n unpack();\n int l = 0, r = line_number_table_length - 1;\n if (// array is empty\n r < 0)\n return -1;\n int min_index = -1, min = -1;\n /* Do a binary search since the array is ordered.\n */\n do {\n int i = (l + r) / 2;\n int j = line_number_table[i].getStartPC();\n if (j == pos)\n return line_number_table[i].getLineNumber();\n else if (// else constrain search area\n pos < j)\n r = i - 1;\n else\n // pos > j\n l = i + 1;\n /* If exact match can't be found (which is the most common case)\n * return the line number that corresponds to the greatest index less\n * than pos.\n */\n if (j < pos && j > min) {\n min = j;\n min_index = i;\n }\n } while (l <= r);\n /* It's possible that we did not find any valid entry for the bytecode\n * offset we were looking for.\n */\n if (min_index < 0)\n return -1;\n return line_number_table[min_index].getLineNumber();\n }", "gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak.Loc getLoc();", "public String getPos() {\n return this.pos;\n }", "int getDeclarationSourceStart();", "private int findPos(String x) {\n\t int offset = 1;\n\t int currentPosition = myhash(x);\n\t \n\t while (array[currentPosition] != null && !array[currentPosition].element.getContent().equals(x)) {\n\t currentPosition += offset; // Compute ith probe\n\t offset += 2;\n\t if(currentPosition >= array.length)\n\t currentPosition -= array.length;\n\t }\n\t \n\t return currentPosition;\n\t }", "public int searchInsert(String symbol) {\r\n\t\tboolean exists = existsSymbol(symbol);\r\n\t\tif (!exists) {\r\n\t\t\tinsert(symbol);\r\n\t\t}\r\n\t\treturn symbol.hashCode();\r\n\t}", "public int getPosition();", "public Position getOpenPositionBySymbol(String symbol) throws AlpacaAPIException {\n Type listType = new TypeToken<Position>() {\n }.getType();\n\n AlpacaRequestBuilder urlBuilder =\n new AlpacaRequestBuilder(apiVersion, baseAccountUrl, AlpacaConstants.POSITIONS_ENDPOINT);\n\n if (symbol != null) {\n urlBuilder.appendEndpoint(symbol.trim());\n }\n\n HttpResponse<JsonNode> response = alpacaRequest.invokeGet(urlBuilder);\n\n if (response.getStatus() != 200) {\n throw new AlpacaAPIException(response);\n }\n\n return alpacaRequest.getResponseObject(response, listType);\n }", "public int getCursorPosition();", "private void tokenStart() {\n tokenStartIndex = zzStartRead;\n }", "public int getCharStart() {\n\t\treturn -1;\n\t}", "public int getLineNumber() {\n\t\treturn _parser.getLineNumber();\n\t}", "public int errorMessageOffset()\n {\n return offendingHeaderOffset() + offendingHeaderFrameLength();\n }", "private int findFlagIndex(String[] tokens) {\r\n for (int i = 0; i < tokens.length; i++) {\r\n if (tokens[i].equals(FLAG_PREFIX + flagOption)) {\r\n return i;\r\n }\r\n }\r\n return NOT_FOUND;\r\n }", "abstract public TermPositions termPositions(Term t) throws IOException;", "@Test(timeout = 4000)\n public void test153() throws Throwable {\n StringReader stringReader0 = new StringReader(\"#crIx\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 2897, 32);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n // Undeclared exception!\n try { \n javaParserTokenManager0.getNextToken();\n fail(\"Expecting exception: Error\");\n \n } catch(Error e) {\n //\n // Lexical error at line 2897, column 32. Encountered: \\\"#\\\" (35), after : \\\"\\\"\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParserTokenManager\", e);\n }\n }", "private int getPos(String key) throws KeyException {\n for (int i=0; i < xData.length; i++) {\n if (key == xData[i]) {\n return i;\n }\n }\n throw new KeyException(\"Incorrect key found\");\n }", "public int get(int symbol);", "public int nextIndexOf(String identifier){\n Token token;\n int tempCurrentToken = currentToken, result;\n \n nextTokenOf(identifier);\n result = currentToken;\n currentToken = tempCurrentToken;\n return result;\n }", "private int parseWord(Token token, char[] buffer, int offset, int type){\nfromStart:\n for(int i=offset; i<buffer.length; ++i){\n for(int x=0; x < characters[type].length; ++x){\n if(buffer[i] == characters[type][x]){\n token.identifier += buffer[i];\n continue fromStart;\n }\n }\n // If it gets here, the character currently parsed isn't of the same type \n return i;\n }\n // Found end of file\n return offset+buffer.length;\n }", "public int getFoundOffset() { return _foundoffset; }", "int getStartCharIndex();", "public long getFileIndex(){\n \tString fileName=file.getName();\n// \tSystem.out.println(\"fileName:\"+fileName);\n \tfinal long start = Long.parseLong(fileName.substring(0,\n\t\t\t\tfileName.length() - FILE_SUFFIX.length()));\n// \tSystem.out.println(\"start:\"+start);\n \treturn start;\n }", "RealLocalizable getPosition();", "public String getPosition(){\r\n\t\treturn position;\r\n\t}" ]
[ "0.61726856", "0.61092347", "0.6012401", "0.59367454", "0.58744687", "0.58744687", "0.58593446", "0.58250237", "0.57888776", "0.57804596", "0.5704717", "0.566656", "0.5666514", "0.5658605", "0.56526625", "0.56390613", "0.5612203", "0.5576786", "0.5574748", "0.5572841", "0.5555943", "0.55032516", "0.54919964", "0.5476037", "0.5469372", "0.54612267", "0.5392444", "0.53788674", "0.5372456", "0.5364881", "0.5363504", "0.53579533", "0.53568274", "0.53476846", "0.5338947", "0.53325886", "0.5307493", "0.5289316", "0.5284822", "0.5264083", "0.5254267", "0.5239253", "0.5238202", "0.5232115", "0.5229344", "0.5229094", "0.52145267", "0.52106833", "0.519555", "0.5193336", "0.51892483", "0.5188689", "0.51807755", "0.51805496", "0.5180054", "0.5176107", "0.5169948", "0.5162358", "0.51620173", "0.51614153", "0.51611805", "0.5158962", "0.51582444", "0.51582444", "0.51582444", "0.51515466", "0.5143692", "0.513678", "0.51264536", "0.5123478", "0.5118798", "0.5113945", "0.51101327", "0.5090838", "0.50897264", "0.50892913", "0.5084549", "0.5076716", "0.50734997", "0.506867", "0.5067734", "0.5063857", "0.5063002", "0.5055968", "0.5055925", "0.5047467", "0.50426173", "0.5033161", "0.50329804", "0.5025929", "0.50225747", "0.50207865", "0.50097257", "0.4996227", "0.49942902", "0.4992467", "0.49904728", "0.4990209", "0.4980405", "0.49800134" ]
0.54834265
23
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.my_notes_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu){\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.menu, menu);\r\n return true;\r\n }" ]
[ "0.72500116", "0.7204146", "0.71987385", "0.7180757", "0.71107906", "0.7043322", "0.7041613", "0.7015376", "0.7013112", "0.6982869", "0.69475657", "0.6941377", "0.6937569", "0.69213736", "0.69213736", "0.6892679", "0.6887231", "0.6877873", "0.68772626", "0.68644464", "0.68644464", "0.68644464", "0.68644464", "0.6855815", "0.68494046", "0.68220186", "0.68183845", "0.68154365", "0.6815009", "0.6815009", "0.68082577", "0.6802161", "0.68002385", "0.67936224", "0.67918605", "0.679087", "0.67849934", "0.6760954", "0.67599845", "0.67507833", "0.67461413", "0.67461413", "0.67431796", "0.67413616", "0.6728648", "0.672732", "0.67251813", "0.67251813", "0.67232496", "0.67152804", "0.67092025", "0.67071015", "0.6702423", "0.6701286", "0.66991764", "0.66969806", "0.66888016", "0.66863585", "0.6686101", "0.6686101", "0.66828436", "0.6681769", "0.6679519", "0.6671908", "0.66700244", "0.6665301", "0.66587126", "0.66587126", "0.66587126", "0.6658098", "0.66570866", "0.66570866", "0.66570866", "0.665458", "0.66533303", "0.66528934", "0.66513336", "0.66495234", "0.66490155", "0.6648172", "0.6648159", "0.6647816", "0.6647625", "0.6645882", "0.66453695", "0.66441536", "0.66413796", "0.66374624", "0.66360414", "0.6635178", "0.66346484", "0.66346484", "0.66346484", "0.6632149", "0.66308904", "0.66287386", "0.66283447", "0.6627003", "0.6624185", "0.6621111", "0.662078" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.7903837", "0.78051525", "0.77659255", "0.77268183", "0.7631446", "0.7621391", "0.75841075", "0.7530494", "0.7487704", "0.7456764", "0.7456764", "0.74384135", "0.74208015", "0.74030864", "0.7391401", "0.7386621", "0.73789454", "0.7370171", "0.73620147", "0.7355636", "0.73452693", "0.7341198", "0.7329712", "0.7327852", "0.73252565", "0.73184", "0.73163027", "0.73132235", "0.73038787", "0.73038787", "0.73015165", "0.72978747", "0.7293419", "0.7286446", "0.7282969", "0.7280837", "0.7278409", "0.72595507", "0.72595507", "0.72595507", "0.725947", "0.72591", "0.72496724", "0.72238463", "0.72192425", "0.7216827", "0.7204148", "0.72002345", "0.71994936", "0.71925104", "0.7185105", "0.71769345", "0.7168523", "0.71675384", "0.7153654", "0.71535045", "0.71352005", "0.7134702", "0.7134702", "0.7129045", "0.7128479", "0.7124082", "0.7123082", "0.712302", "0.7121837", "0.711701", "0.71168506", "0.7116747", "0.7116747", "0.7116747", "0.7116747", "0.7116185", "0.7114864", "0.71119577", "0.7109688", "0.71088374", "0.7105472", "0.70990086", "0.7097912", "0.70947707", "0.7093472", "0.7093472", "0.708617", "0.7082372", "0.7080411", "0.70799303", "0.70732236", "0.70680827", "0.7061595", "0.7060437", "0.7059899", "0.70511454", "0.70371467", "0.70371467", "0.7035687", "0.7035242", "0.7035242", "0.7031746", "0.70300347", "0.7029477", "0.7018981" ]
0.0
-1
/ / / /
protected DefaultRolloverStrategy(int minIndex, int maxIndex, boolean useMax, int compressionLevel, StrSubstitutor subst) { /* 109 */ this.minIndex = minIndex; /* 110 */ this.maxIndex = maxIndex; /* 111 */ this.useMax = useMax; /* 112 */ this.compressionLevel = compressionLevel; /* 113 */ this.subst = subst; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide() {\n\t\t\n\t}", "public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}", "public abstract String division();", "public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}", "private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }", "public abstract void bepaalGrootte();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void gored() {\n\t\t\n\t}", "public String toString(){ return \"DIV\";}", "private int parent(int i){return (i-1)/2;}", "public String ring();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private int leftChild(int i){return 2*i+1;}", "double passer();", "static void pyramid(){\n\t}", "public void stg() {\n\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "void mo33732Px();", "Operations operations();", "private int rightChild(int i){return 2*i+2;}", "private void division()\n\t{\n\t\tFun = Function.DIVIDE; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "@Override\n\tpublic float dividir(float op1, float op2) {\n\t\treturn op1 / op2;\n\t}", "void sharpen();", "void sharpen();", "double defendre();", "public int generateRoshambo(){\n ;]\n\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }", "String divideAtWhite()[]{ return null; }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double volume(){\n return width*height*depth;\n }", "public void skystonePos4() {\n }", "void ringBell() {\n\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\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}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }", "public int division(int x,int y){\n System.out.println(\"division methods\");\n int d=x/y;\n return d;\n\n }", "void mo21076g();", "private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "Parallelogram(){\n length = width = height = 0;\n }", "public Divide(){\n }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "@Override\r\n\tpublic void div(int x, int y) {\n\t\t\r\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "@Override\npublic void div(int a, int b) {\n\t\n}", "private double triangleBase() {\n return cellWidth() / BASE_WIDTH;\n }", "double volume() {\n\treturn width*height*depth;\n}", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "int getWidth() {return width;}", "int width();", "public void divide(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.DIV));\n }\n }\n }\n }", "public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }", "public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }", "@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}", "private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }", "public double getWidth() { return _width<0? -_width : _width; }", "double getPerimeter(){\n return 2*height+width;\n }", "public void mo3376r() {\n }", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public static void main (String[] args){\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n if(n%2==1)\n {\n n=n/2;\n n++;\n }\n else\n {\n n=n/2;\n }\n for(int i=1;i<=n;i++)\n {\n for(int k=1;k<=i-1;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<=((2*n-1)-2*(i-1));j++)\n {\n if(j==1||j==((2*n-1)-2*(i-1)))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n for(int i=2;i<=n;i++)\n {\n for(int k=1;k<=n-i;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<i*2;j++)\n {\n if(j==1||j==(i*2-1))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n\t}", "public RMPath getPath() { return RMPath.unitRectPath; }", "void walk() {\n\t\t\n\t}", "public static void giant() {\n System.out.println(\" --------- \");\n System.out.println(\" | / \\\\| \");\n System.out.println(\" ZZZZZH | O | HZZZZZ \");\n System.out.println(\" H ----------- H \");\n System.out.println(\" ZZZZZHHHHHHHHHHHHHHHHHHHHHZZZZZ \");\n System.out.println(\" H HHHHHHHHHHH H \");\n System.out.println(\" ZZZZZH HHHHHHHHHHH HZZZZZ \");\n System.out.println(\" HHHHHHHHHHH \");\n System.out.println(\" HHH HHH \");\n System.out.println(\" HHH HHH \");\n }", "public void title ()\n {\n\tprintSlow (\" _ __\");\n\tprintSlow (\" ___ | ' \\\\\");\n\tprintSlow (\" ___ \\\\ / ___ ,'\\\\_ | .-. \\\\ /|\");\n\tprintSlow (\" \\\\ / | |,'__ \\\\ ,'\\\\_ | \\\\ | | | | ,' |_ /|\");\n\tprintSlow (\" _ | | | |\\\\/ \\\\ \\\\ | \\\\ | |\\\\_| _ | |_| | _ '-. .-',' |_ _\");\n\tprintSlow (\" // | | | |____| | | |\\\\_|| |__ // | | ,'_`. | | '-. .-',' `. ,'\\\\_\");\n\tprintSlow (\" \\\\\\\\_| |_,' .-, _ | | | | |\\\\ \\\\ // .| |\\\\_/ | / \\\\ || | | | / |\\\\ \\\\| \\\\\");\n\tprintSlow (\" `-. .-'| |/ / | | | | | | \\\\ \\\\// | | | | | || | | | | |_\\\\ || |\\\\_|\");\n\tprintSlow (\" | | | || \\\\_| | | | /_\\\\ \\\\ / | |` | | | || | | | | .---'| |\");\n\tprintSlow (\" | | | |\\\\___,_\\\\ /_\\\\ _ // | | | \\\\_/ || | | | | | /\\\\| |\");\n\tprintSlow (\" /_\\\\ | | //_____// .||` `._,' | | | | \\\\ `-' /| |\");\n\tprintSlow (\" /_\\\\ `------' \\\\ | AND `.\\\\ | | `._,' /_\\\\\");\n\tprintSlow (\" \\\\| HIS `.\\\\\");\n\tprintSlow (\" __ __ _ _ _ _ \");\n\tprintSlow (\" | \\\\/ | (_) | | /\\\\ | | | | \");\n\tprintSlow (\" | \\\\ / | __ _ __ _ _ ___ __ _| | / \\\\ __| |_ _____ _ __ | |_ _ _ _ __ ___ \");\n\tprintSlow (\" | |\\\\/| |/ _` |/ _` | |/ __/ _` | | / /\\\\ \\\\ / _` \\\\ \\\\ / / _ \\\\ '_ \\\\| __| | | | '__/ _ \\\\\");\n\tprintSlow (\" | | | | (_| | (_| | | (_| (_| | | / ____ \\\\ (_| |\\\\ V / __/ | | | |_| |_| | | | __/\");\n\tprintSlow (\" |_| |_|\\\\__,_|\\\\__, |_|\\\\___\\\\__,_|_| /_/ \\\\_\\\\__,_| \\\\_/ \\\\___|_| |_|\\\\__|\\\\__,_|_| \\\\___|\");\n\tprintSlow (\" __/ | \");\n\tprintSlow (\" |___/ \\n\\n\\n\");\n\n\n }", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "double area() {\nSystem.out.println(\"Inside Area for Triangle.\");\nreturn dim1 * dim2 / 2;\n}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }", "public SoNode \ngetCurPathTail() \n{\n//#ifdef DEBUG\n if (currentpath.getTail() != (SoFullPath.cast(getCurPath())).getTail()){\n SoDebugError.post(\"SoAction::getCurPathTail\\n\", \n \"Inconsistent path tail. Did you change the scene graph\\n\"+\n \"During traversal?\\n\");\n }\n//#endif /*DEBUG*/\n return(currentpath.getTail());\n}", "@Override\n\tpublic void breath() {\n\n\t}", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "@Override\n\tpublic void div(double dx, double dy) {\n\t\t\n\t}", "public PathCode getCurPathCode() { return /*appliedTo.curPathCode*/currentpathcode;}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "static String division (String s1, String s2) {\r\n if (s2==null || s2.length()==0) return s1;\r\n return product (s1, invert(s2));\r\n }", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}", "public void star(float x, float y, float r, float R) {\n float angle = TWO_PI / 5;\n float halfAngle = angle/2.0f;\n beginShape();\n noStroke();\n for (float a = 0; a < TWO_PI; a += angle) {\n float sx = x + cos(a) * r;\n float sy = y + sin(a) * r;\n vertex(sx, sy);\n sx = x + cos(a+halfAngle) * R;\n sy = y + sin(a+halfAngle) * R;\n vertex(sx, sy);\n }\n endShape(CLOSE);\n}", "@Override\r\n\tpublic void CalcPeri() {\n\t\tSystem.out.println(4*side);\t\r\n\t}", "public int upright();", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\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\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public void backSlash() {\n text.append(\"\\\\\");\n }", "public static void main(String[] args){\t\n\t\tchar op = '/';\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"첫번째 정수입니다.\");\n\t\tint num1 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"두번째 정수입니다.\");\n\t\tint num2 = scan.nextInt();\n\t\tint num3=0;\n\t\tif(op=='+'){\n\t\t\tnum3 = num1+num2;\n\t\t}\n\t\telse if(op=='-'){\n\t\t\tnum3 = num1-num2;\n\t\t}\n\t\telse if(op=='*'){\n\t\t\tnum3 = num1*num2;\n\t\t}\n\t\telse if(op=='/'){\n\t\t\tif(num2==0){\n\t\t\tSystem.out.println(\"오류입니다.\");\n\t\t}\n\t\t\t\n\t\t\tnum3 = num1/num2;\n\t\t}\n\t\tSystem.out.printf(\"%d%c%d=%d\" ,num1,op,num2,num3);\n\t\t\n\t\t\n\t}", "public final void testSlash() \n\t\t\tthrows ParserConfigurationException, IOException, SAXException \n\t{\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnðýþnn\");\n//\t\tassertSingleDocWithValue(\"8\", fldName, \"nnønn\");\n\t\tassertSingleResult(\"8\", fldName, \"nnunn\");\n\t}", "AngleResource inclination();", "public abstract void squareRootThis();", "public UniquePathsII() {\n\t\t// Initialization here. \n\t\t//\t\tcount = 0;\n\t}", "@Override\n\tpublic void space() {\n\t\t\n\t}" ]
[ "0.5906264", "0.55749613", "0.5428019", "0.53241616", "0.5294036", "0.527193", "0.52582306", "0.5256754", "0.51585066", "0.5141374", "0.51100975", "0.5097357", "0.5026707", "0.50235814", "0.50100124", "0.49757177", "0.4967908", "0.49668512", "0.4931213", "0.49272057", "0.49150687", "0.4878608", "0.4873821", "0.4873821", "0.48564616", "0.48415148", "0.4840844", "0.48408422", "0.48392275", "0.48380315", "0.48342562", "0.48335755", "0.48189583", "0.4816532", "0.4803844", "0.47991633", "0.4790358", "0.4785782", "0.47707185", "0.47659388", "0.47607136", "0.4756167", "0.47525582", "0.4750556", "0.47465262", "0.47439283", "0.47427607", "0.47368544", "0.47283906", "0.4719052", "0.4715935", "0.4711951", "0.47046372", "0.47023433", "0.46957722", "0.46894073", "0.46882662", "0.46872112", "0.46870187", "0.46838596", "0.46826214", "0.46721044", "0.4671648", "0.46691796", "0.46658975", "0.46658975", "0.46634644", "0.46593347", "0.46569487", "0.46532407", "0.46484405", "0.46472803", "0.4647124", "0.46426368", "0.46379653", "0.4635675", "0.46356165", "0.46343538", "0.46343073", "0.46324328", "0.46307802", "0.46292034", "0.46249497", "0.46220893", "0.46138567", "0.46130696", "0.46125302", "0.4608751", "0.46084386", "0.4605762", "0.46052104", "0.4602023", "0.46015334", "0.45995793", "0.45948967", "0.459342", "0.45930445", "0.45923406", "0.45910415", "0.45878932", "0.45863274" ]
0.0
-1
/ / / / / / / / /
public RolloverDescription rollover(RollingFileManager manager) throws SecurityException { /* 124 */ if (this.maxIndex >= 0) { /* */ ZipCompressAction zipCompressAction; /* */ int fileIndex; /* 127 */ if ((fileIndex = purge(this.minIndex, this.maxIndex, manager)) < 0) { /* 128 */ return null; /* */ } /* */ /* 131 */ StringBuilder buf = new StringBuilder(); /* 132 */ manager.getPatternProcessor().formatFileName(this.subst, buf, Integer.valueOf(fileIndex)); /* 133 */ String currentFileName = manager.getFileName(); /* */ /* 135 */ String renameTo = buf.toString(); /* 136 */ String compressedName = renameTo; /* 137 */ Action compressAction = null; /* */ /* 139 */ if (renameTo.endsWith(".gz")) { /* 140 */ renameTo = renameTo.substring(0, renameTo.length() - 3); /* 141 */ GZCompressAction gZCompressAction = new GZCompressAction(new File(renameTo), new File(compressedName), true); /* 142 */ } else if (renameTo.endsWith(".zip")) { /* 143 */ renameTo = renameTo.substring(0, renameTo.length() - 4); /* 144 */ zipCompressAction = new ZipCompressAction(new File(renameTo), new File(compressedName), true, this.compressionLevel); /* */ } /* */ /* */ /* 148 */ FileRenameAction renameAction = new FileRenameAction(new File(currentFileName), new File(renameTo), false); /* */ /* */ /* 151 */ return new RolloverDescriptionImpl(currentFileName, false, (Action)renameAction, (Action)zipCompressAction); /* */ } /* */ /* 154 */ return null; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "public void divide() {\n\t\t\n\t}", "private int rightChild(int i){return 2*i+2;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public abstract void bepaalGrootte();", "double passer();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public String ring();", "int getWidth() {return width;}", "public void gored() {\n\t\t\n\t}", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "public double getWidth() {\n return this.size * 2.0; \n }", "public void getTile_B8();", "public Integer getWidth(){return this.width;}", "public abstract String division();", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "int width();", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "@Override\n public void bfs() {\n\n }", "public double getWidth() { return _width<0? -_width : _width; }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "@Override\npublic void processDirection() {\n\t\n}", "double volume(){\n return width*height*depth;\n }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "public int generateRoshambo(){\n ;]\n\n }", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "Operations operations();", "public int getEdgeCount() \n {\n return 3;\n }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double getNewWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "long getWidth();", "public void SubRect(){\n\t\n}", "void mo33732Px();", "public double getPerimiter(){return (2*height +2*width);}", "static void pyramid(){\n\t}", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public int my_leaf_count();", "public void skystonePos4() {\n }", "void walk() {\n\t\t\n\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "double seBlesser();", "private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}", "void sharpen();", "void sharpen();", "Parallelogram(){\n length = width = height = 0;\n }", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "public String getRing();", "public void leerPlanesDietas();", "static int getNumPatterns() { return 64; }", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}", "public int getWidth(){\n return width;\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "double getPerimeter(){\n return 2*height+width;\n }", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "protected int parent(int i) { return (i - 1) / 2; }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "public abstract double getBaseWidth();", "public void stg() {\n\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}", "int expand();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\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}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "public int upright();", "int getTribeSize();", "int getWidth1();", "int getR();", "String directsTo();", "public int getWidth()\n {return width;}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "int depth();", "int depth();", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}", "public int getDireccion(Pixel p) {\r\n\t\tif (x == p.x && y < p.y)\r\n\t\t\treturn DIR_N;\r\n\t\tif (x > p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x == p.x && y > p.y)\r\n\t\t\treturn DIR_S;\r\n\t\tif (x > p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x > p.x && y == p.y)\r\n\t\t\treturn DIR_E;\r\n\t\tif (x < p.x && y == p.y)\r\n\t\t\treturn DIR_O;\r\n\t\treturn -1;\r\n\t}", "double getWidth();" ]
[ "0.5532527", "0.54391015", "0.5251596", "0.52418447", "0.5150535", "0.512878", "0.50683415", "0.5066834", "0.50221753", "0.50129646", "0.50077325", "0.50051177", "0.49997202", "0.499538", "0.49736512", "0.49707893", "0.49684572", "0.49598044", "0.49381968", "0.49364173", "0.49284318", "0.48852703", "0.4875062", "0.48727193", "0.4851693", "0.48446384", "0.48325908", "0.48282844", "0.48261568", "0.48090968", "0.48057693", "0.48047045", "0.48043686", "0.48037383", "0.4799067", "0.4796126", "0.4795011", "0.47925386", "0.47889647", "0.4784086", "0.47752148", "0.47746503", "0.47734392", "0.4767767", "0.47666863", "0.47617707", "0.47546872", "0.47541285", "0.47520202", "0.47481504", "0.4742862", "0.47424123", "0.47418612", "0.4740628", "0.4740628", "0.47359604", "0.4735926", "0.47354448", "0.473334", "0.47322544", "0.47315875", "0.47303522", "0.47300366", "0.4729194", "0.47287259", "0.47265247", "0.47252014", "0.47247088", "0.47164094", "0.4705852", "0.47038704", "0.47033063", "0.470207", "0.46977833", "0.46977744", "0.4688691", "0.4688624", "0.4688624", "0.46859193", "0.46792743", "0.4674773", "0.46735224", "0.4671809", "0.46690786", "0.4666248", "0.46633562", "0.46632627", "0.46615568", "0.4659301", "0.4658479", "0.46570495", "0.4650401", "0.46498072", "0.46485025", "0.4647073", "0.46437675", "0.46437675", "0.46425405", "0.46415186", "0.46407634", "0.46398857" ]
0.0
-1
/ / / / / / / / / / / /
private int purgeDescending(int lowIndex, int highIndex, RollingFileManager manager) { /* 172 */ int suffixLength = 0; /* */ /* 174 */ List<FileRenameAction> renames = new ArrayList<FileRenameAction>(); /* 175 */ StringBuilder buf = new StringBuilder(); /* 176 */ manager.getPatternProcessor().formatFileName(buf, Integer.valueOf(lowIndex)); /* */ /* 178 */ String lowFilename = this.subst.replace(buf); /* */ /* 180 */ if (lowFilename.endsWith(".gz")) { /* 181 */ suffixLength = 3; /* 182 */ } else if (lowFilename.endsWith(".zip")) { /* 183 */ suffixLength = 4; /* */ } /* */ int i; /* 186 */ for (i = lowIndex; i <= highIndex; ) { /* 187 */ File toRename = new File(lowFilename); /* 188 */ boolean isBase = false; /* */ /* 190 */ if (suffixLength > 0) { /* 191 */ File toRenameBase = new File(lowFilename.substring(0, lowFilename.length() - suffixLength)); /* */ /* */ /* 194 */ if (toRename.exists()) { /* 195 */ if (toRenameBase.exists()) { /* 196 */ toRenameBase.delete(); /* */ } /* */ } else { /* 199 */ toRename = toRenameBase; /* 200 */ isBase = true; /* */ } /* */ } /* */ /* 204 */ if (toRename.exists()) { /* */ /* */ /* */ /* */ /* 209 */ if (i == highIndex) { /* 210 */ if (!toRename.delete()) { /* 211 */ return -1; /* */ } /* */ /* */ /* */ /* */ break; /* */ } /* */ /* */ /* 220 */ buf.setLength(0); /* 221 */ manager.getPatternProcessor().formatFileName(buf, Integer.valueOf(i + 1)); /* */ /* 223 */ String highFilename = this.subst.replace(buf); /* 224 */ String renameTo = highFilename; /* */ /* 226 */ if (isBase) { /* 227 */ renameTo = highFilename.substring(0, highFilename.length() - suffixLength); /* */ } /* */ /* 230 */ renames.add(new FileRenameAction(toRename, new File(renameTo), true)); /* 231 */ lowFilename = highFilename; /* */ /* */ /* */ /* */ i++; /* */ } /* */ } /* */ /* */ /* 240 */ for (i = renames.size() - 1; i >= 0; i--) { /* 241 */ Action action = (Action)renames.get(i); /* */ /* */ try { /* 244 */ if (!action.execute()) { /* 245 */ return -1; /* */ } /* 247 */ } catch (Exception ex) { /* 248 */ LOGGER.warn("Exception during purge in RollingFileAppender", ex); /* 249 */ return -1; /* */ } /* */ } /* */ /* 253 */ return lowIndex; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "int getWidth() {return width;}", "double passer();", "public Integer getWidth(){return this.width;}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public double getWidth() {\n return this.size * 2.0; \n }", "public void getTile_B8();", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "int width();", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void gored() {\n\t\t\n\t}", "public String ring();", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "public int getEdgeCount() \n {\n return 3;\n }", "public abstract String division();", "public double getWidth() { return _width<0? -_width : _width; }", "static int getNumPatterns() { return 64; }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "long getWidth();", "public int getWidth() {\r\n\treturn this.width;\r\n}", "double getNewWidth();", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "public int my_leaf_count();", "@Override\n public void bfs() {\n\n }", "public int generateRoshambo(){\n ;]\n\n }", "int getTribeSize();", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "void mo33732Px();", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "double seBlesser();", "@Override\npublic void processDirection() {\n\t\n}", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "double volume(){\n return width*height*depth;\n }", "public int getWidth(){\n return width;\n }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public void leerPlanesDietas();", "public static int size_parent() {\n return (8 / 8);\n }", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "Operations operations();", "public double getPerimiter(){return (2*height +2*width);}", "public void skystonePos4() {\n }", "public String getRing();", "public abstract int getSpotsNeeded();", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "public abstract double getBaseWidth();", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "int expand();", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "protected int parent(int i) { return (i - 1) / 2; }", "long getMid();", "long getMid();", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "int getSpriteArraySize();", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "public int getWidth()\n {return width;}", "static void pyramid(){\n\t}", "public void SubRect(){\n\t\n}", "public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }", "Parallelogram(){\n length = width = height = 0;\n }", "int depth();", "int depth();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "String directsTo();", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "public String getRingback();", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}", "@Override\n\tprotected void interr() {\n\t}", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth1();" ]
[ "0.5528886", "0.5431939", "0.5174202", "0.51505077", "0.50779986", "0.50641537", "0.505949", "0.5045117", "0.50367874", "0.5018929", "0.50050104", "0.5003042", "0.49965692", "0.49949047", "0.49851024", "0.49733686", "0.49702942", "0.49663383", "0.4953765", "0.49458998", "0.49204916", "0.4908222", "0.48843685", "0.48792818", "0.48758435", "0.48756802", "0.4862211", "0.48561767", "0.48555577", "0.48475173", "0.48385763", "0.48381394", "0.48341772", "0.48227897", "0.48225236", "0.48108152", "0.48099574", "0.4800673", "0.47997284", "0.479815", "0.4791854", "0.47869185", "0.4769727", "0.47683132", "0.47682986", "0.47677505", "0.47667277", "0.47633636", "0.47615758", "0.4760445", "0.47593826", "0.4756328", "0.47521046", "0.47517565", "0.47478008", "0.47447732", "0.47396228", "0.47395948", "0.4732476", "0.4725276", "0.47226107", "0.47205704", "0.4716973", "0.4716973", "0.47163746", "0.4713431", "0.47099343", "0.47078544", "0.47067666", "0.47029877", "0.46974647", "0.46965575", "0.46949655", "0.46949655", "0.4691257", "0.4688635", "0.46874243", "0.46851906", "0.46847606", "0.46779233", "0.4676705", "0.46751618", "0.4670388", "0.46698985", "0.46698985", "0.46698985", "0.46698985", "0.46698985", "0.46698985", "0.46698985", "0.46698985", "0.46698985", "0.46698985", "0.46698985", "0.46698985", "0.46698985", "0.46698985", "0.46698985", "0.46698985", "0.46698985", "0.46675766" ]
0.0
-1
/ / / / / / / / / / /
private int purgeAscending(int lowIndex, int highIndex, RollingFileManager manager) { /* 266 */ int suffixLength = 0; /* */ /* 268 */ List<FileRenameAction> renames = new ArrayList<FileRenameAction>(); /* 269 */ StringBuilder buf = new StringBuilder(); /* 270 */ manager.getPatternProcessor().formatFileName(buf, Integer.valueOf(highIndex)); /* */ /* 272 */ String highFilename = this.subst.replace(buf); /* */ /* 274 */ if (highFilename.endsWith(".gz")) { /* 275 */ suffixLength = 3; /* 276 */ } else if (highFilename.endsWith(".zip")) { /* 277 */ suffixLength = 4; /* */ } /* */ /* 280 */ int maxIndex = 0; /* */ int i; /* 282 */ for (i = highIndex; i >= lowIndex; i--) { /* 283 */ File toRename = new File(highFilename); /* 284 */ if (i == highIndex && toRename.exists()) { /* 285 */ maxIndex = highIndex; /* 286 */ } else if (maxIndex == 0 && toRename.exists()) { /* 287 */ maxIndex = i + 1; /* */ /* */ break; /* */ } /* 291 */ boolean isBase = false; /* */ /* 293 */ if (suffixLength > 0) { /* 294 */ File toRenameBase = new File(highFilename.substring(0, highFilename.length() - suffixLength)); /* */ /* */ /* 297 */ if (toRename.exists()) { /* 298 */ if (toRenameBase.exists()) { /* 299 */ toRenameBase.delete(); /* */ } /* */ } else { /* 302 */ toRename = toRenameBase; /* 303 */ isBase = true; /* */ } /* */ } /* */ /* 307 */ if (toRename.exists()) { /* */ /* */ /* */ /* */ /* 312 */ if (i == lowIndex) { /* 313 */ if (!toRename.delete()) { /* 314 */ return -1; /* */ } /* */ /* */ /* */ /* */ break; /* */ } /* */ /* */ /* 323 */ buf.setLength(0); /* 324 */ manager.getPatternProcessor().formatFileName(buf, Integer.valueOf(i - 1)); /* */ /* 326 */ String lowFilename = this.subst.replace(buf); /* 327 */ String renameTo = lowFilename; /* */ /* 329 */ if (isBase) { /* 330 */ renameTo = lowFilename.substring(0, lowFilename.length() - suffixLength); /* */ } /* */ /* 333 */ renames.add(new FileRenameAction(toRename, new File(renameTo), true)); /* 334 */ highFilename = lowFilename; /* */ } else { /* 336 */ buf.setLength(0); /* 337 */ manager.getPatternProcessor().formatFileName(buf, Integer.valueOf(i - 1)); /* */ /* 339 */ highFilename = this.subst.replace(buf); /* */ } /* */ } /* 342 */ if (maxIndex == 0) { /* 343 */ maxIndex = lowIndex; /* */ } /* */ /* */ /* */ /* */ /* 349 */ for (i = renames.size() - 1; i >= 0; i--) { /* 350 */ Action action = (Action)renames.get(i); /* */ /* */ try { /* 353 */ if (!action.execute()) { /* 354 */ return -1; /* */ } /* 356 */ } catch (Exception ex) { /* 357 */ LOGGER.warn("Exception during purge in RollingFileAppender", ex); /* 358 */ return -1; /* */ } /* */ } /* 361 */ return maxIndex; /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private int rightChild(int i){return 2*i+2;}", "public void divide() {\n\t\t\n\t}", "public abstract void bepaalGrootte();", "double passer();", "int getWidth() {return width;}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public Integer getWidth(){return this.width;}", "public double getWidth() {\n return this.size * 2.0; \n }", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "public void getTile_B8();", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public String ring();", "public void gored() {\n\t\t\n\t}", "int width();", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String toString(){ return \"DIV\";}", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "public abstract String division();", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "public double getWidth() { return _width<0? -_width : _width; }", "public int getEdgeCount() \n {\n return 3;\n }", "public int getWidth() {\r\n\treturn this.width;\r\n}", "@Override\n public void bfs() {\n\n }", "long getWidth();", "double getNewWidth();", "static int getNumPatterns() { return 64; }", "public int my_leaf_count();", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public int generateRoshambo(){\n ;]\n\n }", "@Override\npublic void processDirection() {\n\t\n}", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "void mo33732Px();", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "double volume(){\n return width*height*depth;\n }", "double seBlesser();", "int getTribeSize();", "Operations operations();", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "public double getPerimiter(){return (2*height +2*width);}", "public int getWidth(){\n return width;\n }", "public void leerPlanesDietas();", "public void skystonePos4() {\n }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public String getRing();", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "public void SubRect(){\n\t\n}", "public abstract double getBaseWidth();", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "protected int parent(int i) { return (i - 1) / 2; }", "static void pyramid(){\n\t}", "public static int size_parent() {\n return (8 / 8);\n }", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "int expand();", "public abstract int getSpotsNeeded();", "Parallelogram(){\n length = width = height = 0;\n }", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "double Volume(){\r\n return Height * Width * Depth;\r\n }", "void walk() {\n\t\t\n\t}", "private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "public int getWidth()\n {return width;}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "int depth();", "int depth();", "long getMid();", "long getMid();", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}", "String directsTo();", "int getSpriteArraySize();", "public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }", "public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}", "double getPerimeter(){\n return 2*height+width;\n }", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "int getWidth1();", "public String getRingback();", "void sharpen();", "void sharpen();", "@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();" ]
[ "0.5540745", "0.5444497", "0.5205538", "0.5182055", "0.5094161", "0.50587463", "0.5053648", "0.50452423", "0.50258267", "0.50122976", "0.5012191", "0.50119436", "0.50044477", "0.49989554", "0.49980396", "0.49847832", "0.49795863", "0.49785143", "0.4966902", "0.49588826", "0.491195", "0.49114203", "0.48977208", "0.48783925", "0.4871045", "0.4866241", "0.48425886", "0.48414746", "0.48404667", "0.48359194", "0.48321852", "0.48264593", "0.48214784", "0.48163307", "0.48100394", "0.48063412", "0.48053867", "0.4804083", "0.4794161", "0.47927848", "0.4788403", "0.47818738", "0.47784477", "0.47709942", "0.4770795", "0.4766995", "0.47618645", "0.47570822", "0.4752602", "0.4751775", "0.4751225", "0.47489616", "0.47487566", "0.474798", "0.47473353", "0.47425666", "0.47340578", "0.47319007", "0.47315216", "0.4729219", "0.4727721", "0.47272617", "0.47233397", "0.47144157", "0.47093782", "0.47075313", "0.47051412", "0.47038573", "0.46964964", "0.4695774", "0.46953171", "0.46950933", "0.46876776", "0.46871465", "0.46871465", "0.46869987", "0.46869987", "0.4686779", "0.46865502", "0.46834555", "0.46825886", "0.46823603", "0.46798244", "0.4674724", "0.46727514", "0.46678638", "0.4667731", "0.4665962", "0.4665962", "0.46643248", "0.46639606", "0.46639606", "0.46639606", "0.46639606", "0.46639606", "0.46639606", "0.46639606", "0.46639606", "0.46639606", "0.46639606", "0.46639606" ]
0.0
-1
/ / / / / / / / / / / / / / / /
@PluginFactory /* */ public static DefaultRolloverStrategy createStrategy(@PluginAttribute("max") String max, @PluginAttribute("min") String min, @PluginAttribute("fileIndex") String fileIndex, @PluginAttribute("compressionLevel") String compressionLevelStr, @PluginConfiguration Configuration config) { /* */ int minIndex, maxIndex; /* 386 */ boolean useMax = (fileIndex == null) ? true : fileIndex.equalsIgnoreCase("max"); /* */ /* 388 */ if (min != null) { /* 389 */ minIndex = Integer.parseInt(min); /* 390 */ if (minIndex < 1) { /* 391 */ LOGGER.error("Minimum window size too small. Limited to 1"); /* 392 */ minIndex = 1; /* */ } /* */ } else { /* 395 */ minIndex = 1; /* */ } /* */ /* 398 */ if (max != null) { /* 399 */ maxIndex = Integer.parseInt(max); /* 400 */ if (maxIndex < minIndex) { /* 401 */ maxIndex = (minIndex < 7) ? 7 : minIndex; /* 402 */ LOGGER.error("Maximum window size must be greater than the minimum windows size. Set to " + maxIndex); /* */ } /* */ } else { /* 405 */ maxIndex = 7; /* */ } /* 407 */ int compressionLevel = Integers.parseInt(compressionLevelStr, -1); /* 408 */ return new DefaultRolloverStrategy(minIndex, maxIndex, useMax, compressionLevel, config.getStrSubstitutor()); /* */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "private int leftChild(int i){return 2*i+1;}", "private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }", "double passer();", "public Integer getWidth(){return this.width;}", "int getWidth() {return width;}", "public void divide() {\n\t\t\n\t}", "int width();", "private int rightChild(int i){return 2*i+2;}", "public abstract void bepaalGrootte();", "static int getNumPatterns() { return 64; }", "public double getWidth() {\n return this.size * 2.0; \n }", "public void getTile_B8();", "public void gored() {\n\t\t\n\t}", "@Override\n public double getPerimiter() {\n return 4 * width;\n }", "public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }", "int getTribeSize();", "private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }", "public int getEdgeCount() \n {\n return 3;\n }", "@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }", "laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }", "public String ring();", "void mo33732Px();", "long getWidth();", "public String toString(){ return \"DIV\";}", "public int getWidth() {\r\n\treturn this.width;\r\n}", "public double getWidth() { return _width<0? -_width : _width; }", "double getNewWidth();", "public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }", "double seBlesser();", "public int generateRoshambo(){\n ;]\n\n }", "private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}", "public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }", "public int my_leaf_count();", "public abstract int getSpotsNeeded();", "public static int size_parent() {\n return (8 / 8);\n }", "@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "@Override\n public void bfs() {\n\n }", "protected int getWidth()\n\t{\n\t\treturn 0;\n\t}", "public abstract String division();", "long getMid();", "long getMid();", "int getSpriteArraySize();", "int getSize ();", "@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }", "public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}", "int expand();", "public static int size_parentId() {\n return (16 / 8);\n }", "public void leerPlanesDietas();", "public void skystonePos4() {\n }", "public int getWidth(){\n return width;\n }", "public int getTakeSpace() {\n return 0;\n }", "@Override\npublic void processDirection() {\n\t\n}", "protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }", "public abstract double getBaseWidth();", "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}", "public String getRing();", "public int getWidth()\n {return width;}", "int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "Operations operations();", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}", "public double getPerimiter(){return (2*height +2*width);}", "private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }", "public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }", "double volume(){\n return width*height*depth;\n }", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "int depth();", "int depth();", "public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t }\r\n\t\t\t\t\t else\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}", "public int length() { return 1+maxidx; }", "public static int offset_parent() {\n return (40 / 8);\n }", "@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }", "private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}", "public String getRingback();", "private void poetries() {\n\n\t}", "String directsTo();", "public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }", "public int width();", "Parallelogram(){\n length = width = height = 0;\n }", "int align();", "public double width() { return _width; }", "@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}", "int getWidth()\n {\n return width;\n }", "public void Exterior() {\n\t\t\r\n\t}", "public void method_4270() {}", "private int get_parent(int index){\r\n return (index-1)/2;\r\n }", "public static void enrichmentMaxLowMem(String szinputsegment,String szinputcoorddir,String szinputcoordlist,\n\t\t\t\t int noffsetleft, int noffsetright,\n int nbinsize, boolean bcenter,boolean bunique, boolean busesignal,String szcolfields,\n\t\t\t\t boolean bbaseres, String szoutfile,boolean bcolscaleheat,Color theColor,String sztitle, \n\t\t\t\t\t String szlabelmapping, boolean bprintimage, boolean bstringlabels, boolean bbrowser) throws IOException\n {\n\n\n //for each enrichment category and state label gives a count of how often\n //overlapped by a segment optionally with signal\n\n String szLine;\n String[] files;\n\n if (szinputcoordlist == null)\n {\n File dir = new File(szinputcoorddir);\n\t //we don't have a specific list of files to include\n\t //will use all files in the directory\n\t if (dir.isDirectory())\t \n\t {\n\t //throw new IllegalArgumentException(szinputcoorddir+\" is not a directory!\");\n\t //added in v1.11 to skip hidden files\n\t String[] filesWithHidden = dir.list();\n\t int nnonhiddencount = 0;\n\t for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t\t{\n\t\t nnonhiddencount++;\n\t\t}\n\t }\t \n\n\t int nactualindex = 0;\n\t files = new String[nnonhiddencount];// dir.list(); \n\t if (nnonhiddencount == 0)\n\t {\n\t throw new IllegalArgumentException(\"No files found in \"+szinputcoorddir);\n\t }\n\n for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t {\n\t files[nactualindex] = filesWithHidden[nfile];\n\t\t nactualindex++;\n\t }\n\t }\n\t Arrays.sort(files);\n\t szinputcoorddir += \"/\";\n\t }\n\t else\n\t {\n\t files = new String[1];\n\t files[0] = szinputcoorddir;\n\t szinputcoorddir = \"\";\n\t }\n }\n else\n {\n szinputcoorddir += \"/\";\n\t //store in files all file names given in szinputcoordlist\n\t BufferedReader brfiles = Util.getBufferedReader(szinputcoordlist);\n\t ArrayList alfiles = new ArrayList();\n\t while ((szLine = brfiles.readLine())!=null)\n\t {\n\t alfiles.add(szLine);\n\t }\n\t brfiles.close(); \n\t files = new String[alfiles.size()];\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t files[nfile] = (String) alfiles.get(nfile);\n\t }\n }\n\t\n ArrayList alchromindex = new ArrayList(); //stores the index of the chromosome\n\t\n if (busesignal)\n {\n bunique = false;\n }\n\n HashMap hmchromMax = new HashMap(); //maps chromosome to the maximum index\n HashMap hmchromToIndex = new HashMap(); //maps chromosome to an index\n HashMap hmLabelToIndex = new HashMap(); //maps label to an index\n HashMap hmIndexToLabel = new HashMap(); //maps index string to label\n int nmaxlabel=0; // the maximum label found\n String szlabel=\"\";\n boolean busedunderscore = false;\n //reads in the segmentation recording maximum position for each chromosome and\n //maximum label\n BufferedReader brinputsegment = Util.getBufferedReader(szinputsegment);\n while ((szLine = brinputsegment.readLine())!=null)\n {\n\n\t //added v1.24\n\t if (bbrowser)\n\t {\n\t if ((szLine.toLowerCase(Locale.ENGLISH).startsWith(\"browser\"))||(szLine.toLowerCase(Locale.ENGLISH).startsWith(\"track\")))\n\t {\n\t continue;\n\t }\n\t }\n\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n }\n\n\t //added in v1.24\n\t int numtokens = st.countTokens();\n\t if (numtokens == 0)\n\t {\n\t //skip blank lines\n\t continue;\n\t }\n\t else if (numtokens < 4)\n\t {\n\t throw new IllegalArgumentException(\"Line \"+szLine+\" in \"+szinputsegment+\" only had \"+numtokens+\" token(s). Expecting at least 4\");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\t if (nbegincoord % nbinsize != 0)\n\t {\n\t\tthrow new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with coordinates in input segment \"+szLine+\". -b binsize should match parameter value to LearnModel or \"+\n \"MakeSegmentation used to produce segmentation. If segmentation is derived from a lift over from another assembly, then the '-b 1' option should be used\");\n\t }\n //int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n szlabel = st.nextToken().trim();\n\t short slabel;\n\n\n if (bstringlabels)\n\t {\n\n\t int nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t if (nunderscoreindex >=0)\n\t {\n\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t\t busedunderscore = true;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t}\n catch (NumberFormatException ex)\n\t\t{\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t if (slabel > nmaxlabel)\n\t\t {\n\t\t nmaxlabel = slabel;\n\t\t }\n\t\t busedunderscore = true;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t if (busedunderscore)\n\t\t {\n\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t }\n\t\t }\n\t\t}\n\t }\n\n\t if (!busedunderscore)\n\t {\n //handle string labels\n\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\n\t if (objshort == null)\n\t {\n\t nmaxlabel = hmLabelToIndex.size()+1;\n\t slabel = (short) nmaxlabel;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n \t hmIndexToLabel.put(\"\"+nmaxlabel, szlabel);\n\t }\n\t //else\n\t //{\n\t // slabel = ((Short) objshort).shortValue();\n\t //}\n\t }\n\t }\n\t else\n\t {\n try\n\t {\n slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t{\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t}\n\t catch (NumberFormatException ex2)\n\t {\n throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t\t}\n\t }\n\n\t //alsegments.add(new SegmentRec(szchrom,nbegin,nend,slabel));\n\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t }\n\n\t Integer objMax = (Integer) hmchromMax.get(szchrom);\n\t if (objMax == null)\n\t {\n\t //System.out.println(\"on chrom \"+szchrom);\n\t hmchromMax.put(szchrom,Integer.valueOf(nend));\n\t hmchromToIndex.put(szchrom, Integer.valueOf(hmchromToIndex.size()));\n\t alchromindex.add(szchrom);\n\t }\n\t else\n\t {\n\t int ncurrmax = objMax.intValue();\n\t if (ncurrmax < nend)\n\t {\n\t hmchromMax.put(szchrom, Integer.valueOf(nend));\t\t \n\t }\n\t }\n }\n brinputsegment.close();\n\n double[][] tallyoverlaplabel = new double[files.length][nmaxlabel+1];\n double[] dsumoverlaplabel = new double[files.length];\n double[] tallylabel = new double[nmaxlabel+1];\n\n int numchroms = alchromindex.size();\n\n for (int nchrom = 0; nchrom < numchroms; nchrom++)\n {\n //ArrayList alsegments = new ArrayList(); //stores all the segments\n\t String szchromwant = (String) alchromindex.get(nchrom);\n\t //System.out.println(\"processing \"+szchromwant);\n\t int nsize = ((Integer) hmchromMax.get(szchromwant)).intValue()+1;\n\t short[] labels = new short[nsize]; //stores the hard label assignments\n\n\t //sets to -1 so missing segments not counted as label 0\n\t for (int npos = 0; npos < nsize; npos++)\n\t {\n labels[npos] = -1;\n\t }\n\n\t brinputsegment = Util.getBufferedReader(szinputsegment);\n\t while ((szLine = brinputsegment.readLine())!=null)\n\t {\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n\t st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t if (!szchrom.equals(szchromwant)) \n\t continue;\n\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\n\t //if (nbegincoord % nbinsize != 0)\n\t // {\n\t //\t throw new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with input segment \"+szLine);\n\t //}\n\t int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n\t szlabel = st.nextToken().trim();\n\t short slabel = -1;\n\n\t if (bstringlabels)\n\t {\n\t\tint nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t\tif (nunderscoreindex >=0)\n\t\t{\n\t\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t busedunderscore = true;\n\t\t }\n catch (NumberFormatException ex)\n\t\t {\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t\t busedunderscore = true;\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t\t if (busedunderscore)\n\t\t\t {\n\t\t\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t\t }\n\t\t }\n\t\t }\n\t\t}\n\n\t\tif (!busedunderscore)\n\t\t{\n\t //handle string labels\n\t\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\t\t slabel = ((Short) objshort).shortValue();\n\t\t}\n\t }\n\t else\n\t {\n try\n\t {\n\t slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t {\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t }\n\t\t}\n\t }\n\n\t if (nbegin < 0)\n\t {\n\t nbegin = 0;\n\t }\n\n\t if (nend >= labels.length)\n\t {\n\t nend = labels.length - 1;\n\t }\n\n\t //SegmentRec theSegmentRec = (SegmentRec) alsegments.get(nindex);\n\t //int nbegin = theSegmentRec.nbegin;\n\t //int nend = theSegmentRec.nend;\n\t //short slabel = theSegmentRec.slabel;\n\t //int nchrom = ((Integer) hmchromToIndex.get(theSegmentRec.szchrom)).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\t //stores each label position in the genome\n\t for (int npos = nbegin; npos <= nend; npos++)\n\t {\n\t labels[npos] = slabel;\n\t //tallylabel[slabel]++; \n\t }\n\t tallylabel[slabel] += (nend-nbegin)+1;\n\t }\n\n\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t int nchromindex = 0;\n\t int nstartindex = 1;\n\t int nendindex = 2;\n\t int nsignalindex = 3;\n\n\t if (szcolfields != null)\n\t {\n\t StringTokenizer stcolfields = new StringTokenizer(szcolfields,\",\");\n\t\tnchromindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnstartindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnendindex = Integer.parseInt(stcolfields.nextToken().trim());\n\n\t if (busesignal)\n\t {\n\t nsignalindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t }\n\t }\n\n \t \n if (bunique)\n\t {\n\t //Iterator itrChroms = hmchromToIndex.entrySet().iterator();\n\t //while (itrChroms.hasNext())\n\t //{\n\t //Map.Entry pairs = (Map.Entry) itrChroms.next();\n\t //String szchrom =(String) pairs.getKey();\n\t //int nchrom = ((Integer) pairs.getValue()).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t //reading in the coordinates to overlap with\n BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t ArrayList alrecs = new ArrayList();\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\t\t if (nstartindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nstartindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n if (nendindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nendindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n\t String szcurrchrom = szLineA[nchromindex];\n\t \t if (szchromwant.equals(szcurrchrom))\n\t\t {\n\t\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t\t if (bcenter)\n\t\t {\n\t\t nbeginactual = (nbeginactual+nendactual)/2;\n\t\t nendactual = nbeginactual;\n\t\t }\n\t\t alrecs.add(new Interval(nbeginactual,nendactual));\n\t\t }\n\t\t}\n\t brcoords.close();\n\n\t\tObject[] alrecA = alrecs.toArray();\n\t\tArrays.sort(alrecA,new IntervalCompare());\n\n\t\tboolean bclosed = true;\n\t int nintervalstart = -1;\n\t\tint nintervalend = -1;\n\t\tboolean bdone = false;\n\n\t\tfor (int nindex = 0; (nindex <= alrecA.length&&(alrecA.length>0)); nindex++)\n\t\t{\n\t\t int ncurrstart = -1;\n\t\t int ncurrend = -1;\n\n\t\t if (nindex == alrecA.length)\n\t\t {\n\t\t bdone = true;\n\t\t }\n\t\t else \n\t\t {\n\t\t ncurrstart = ((Interval) alrecA[nindex]).nstart;\n\t\t ncurrend = ((Interval) alrecA[nindex]).nend;\n if (nindex == 0)\n\t\t {\n\t\t nintervalstart = ncurrstart;\n\t\t\t nintervalend = ncurrend;\n\t\t }\n\t\t else if (ncurrstart <= nintervalend)\n\t\t {\n\t\t //this read is still in the active interval\n\t\t //extending the current active interval \n\t\t if (ncurrend > nintervalend)\n\t\t {\n\t\t nintervalend = ncurrend;\n\t\t }\n\t\t }\t\t \n\t\t else \n\t\t {\n\t\t //just finished the current active interval\n\t\t bdone = true;\n\t\t }\n\t\t }\n\n\t\t if (bdone)\n\t {\t\t \t\t\t\t\t\t\n\t int nbegin = nintervalstart/nbinsize;\n\t\t int nend = nintervalend/nbinsize;\n\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\n\t for (int nbin = nbegin; nbin <= nend; nbin++)\n\t {\n\t\t if (labels[nbin]>=0)\n\t\t {\n\t\t tallyoverlaplabel_nfile[labels[nbin]]++;\n\t\t }\n\t\t }\n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nintervalstart - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nintervalend-1)/(double) nbinsize;\n\t\t\t \n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t { \t\t\t \n\t\t //only counted the bases if nbegin was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nend]]-=dendfrac;\n\t\t\t }\n\t\t }\t\t\t \n\n\t\t nintervalstart = ncurrstart; \n\t\t nintervalend = ncurrend;\n\t\t bdone = false;\n\t\t }\t \n\t\t}\n\t\t //}\n\t }\n\t else\n\t {\n\t BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\n\t String szchrom = szLineA[nchromindex];\n\t\t if (!szchromwant.equals(szchrom))\n\t\t continue;\n\n\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t int nbegin = nbeginactual/nbinsize;\n\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t int nend = nendactual/nbinsize;\n\n\t\t double damount;\n\t if ((busesignal)&&(nsignalindex < szLineA.length))\n\t {\n\t \t damount = Double.parseDouble(szLineA[nsignalindex]);\n\t\t }\n\t else\n\t {\n\t damount = 1;\n\t\t }\n\n\t //Integer objChrom = (Integer) hmchromToIndex.get(szchrom);\n\t //if (objChrom != null)\n\t\t //{\n\t\t //we have the chromosome corresponding to this read\n\t //int nchrom = objChrom.intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t\t if (bcenter)\n\t {\n\t //using the center position of the interval only\n\t\t int ncenter = (nbeginactual+nendactual)/(2*nbinsize);\n\t\t if ((ncenter < labels.length)&&(labels[ncenter]>=0))\n\t\t {\n\t tallyoverlaplabel_nfile[labels[ncenter]]+=damount;\t\t\t \n\t\t }\n\t\t }\n\t else\n\t {\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\t\t //using the full interval range\n\t\t //no requirement on uniqueness\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\t\t\t\n\t for (int nindex = nbegin; nindex <= nend; nindex++)\n\t {\n\t\t if (labels[nindex]>=0)\n\t\t {\n\t\t //increment overlap tally not checking for uniqueness\n \t tallyoverlaplabel_nfile[labels[nindex]]+=damount;\n\t\t\t }\n\t\t }\t \n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nbeginactual - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nendactual-1)/(double) nbinsize;\n\n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t\t { \n\t\t\t //only counted the bases if nbegin was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=damount*dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nend]]-=damount*dendfrac;\n\t\t\t }\t\t\t \n\t\t }\n\t\t }\n\t\t}\t \n\t\tbrcoords.close();\n\t }\n\t }\n }\n\n\n for (int nfile = 0; nfile < files.length; nfile++)\n {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t for (int nindex = 0; nindex < tallyoverlaplabel_nfile.length; nindex++)\n {\n dsumoverlaplabel[nfile] += tallyoverlaplabel_nfile[nindex];\n }\n\t\t\n if (dsumoverlaplabel[nfile] < EPSILONOVERLAP) // 0.00000001)\n {\n\t throw new IllegalArgumentException(\"Coordinates in \"+files[nfile]+\" not assigned to any state. Check if chromosome naming in \"+files[nfile]+\n\t\t\t\t\t\t \" match those in the segmentation file.\");\n\t }\n\t}\n\n\toutputenrichment(szoutfile, files,tallyoverlaplabel, tallylabel, dsumoverlaplabel,theColor,\n\t\t\t bcolscaleheat,ChromHMM.convertCharOrderToStringOrder(szlabel.charAt(0)),sztitle,0,szlabelmapping,szlabel.charAt(0), bprintimage, bstringlabels, hmIndexToLabel);\n }", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();", "int getWidth();" ]
[ "0.5430595", "0.53330356", "0.5092637", "0.50776035", "0.50656015", "0.5061517", "0.50255305", "0.501914", "0.5013608", "0.5012112", "0.50097734", "0.49939048", "0.49924976", "0.49502665", "0.4925594", "0.4921649", "0.49190572", "0.49077547", "0.49070126", "0.49018925", "0.48999804", "0.488493", "0.48846358", "0.48739335", "0.48632213", "0.48605266", "0.4857587", "0.4850445", "0.4847252", "0.48460993", "0.4840025", "0.48375157", "0.4835153", "0.48279664", "0.48260632", "0.4825089", "0.48174995", "0.4810252", "0.47989792", "0.47930446", "0.4789371", "0.4776887", "0.4776887", "0.47760046", "0.4774504", "0.4767123", "0.4766668", "0.4761947", "0.47615656", "0.47611192", "0.4757967", "0.47522596", "0.47508425", "0.47504175", "0.47475496", "0.47463676", "0.47461066", "0.4736013", "0.47317326", "0.47290143", "0.47165486", "0.47142136", "0.47133484", "0.47119215", "0.4709692", "0.4696957", "0.469671", "0.469411", "0.46940878", "0.46931034", "0.4691934", "0.46906507", "0.46882108", "0.46882108", "0.46868974", "0.4684452", "0.46817034", "0.46813998", "0.46741885", "0.46733153", "0.4672824", "0.467257", "0.467188", "0.4666837", "0.46659094", "0.4664564", "0.46611282", "0.4659277", "0.4656269", "0.4654199", "0.46540377", "0.46501794", "0.46494237", "0.46490437", "0.46490437", "0.46490437", "0.46490437", "0.46490437", "0.46490437", "0.46490437", "0.46490437" ]
0.0
-1
Return next character in input stream, or raise null pointer exception (on EOF)
public static char nextChar (Scanner s) throws NullPointerException { return s.findWithinHorizon(DOT, 1).charAt(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void readNextChar() throws ReaderException;", "public static int getNextChar()\r\n\r\n\t// Returns the next character on the input stream. If the end of file is reached, -1 is returned.\r\n\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn inStream.read();\r\n\t\t}\r\n\t\tcatch(IOException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}", "private void getNextChar() \n {\n try\n {\n int temp = in.read();\n if (temp == -1)\n eof = true;\n currentChar = (char)temp;\n }\n catch (IOException e)\n {\n System.err.println(\"Catastrophic File IO error.\\n\" + e);\n System.exit(1); \n //exit with nonzero exit code to indicate catastrophic error\n }\n }", "public final char next() throws IOException {\n\t\t// Method \"hasNext\" peeks the next character (if required)\n\t\tif (!hasNext()) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\tif (state == ReaderState.PEEKED) {\n\t\t\tstate = ReaderState.CALL_FOR_NEXT;\n\t\t}\n\t\tfinal char next = (char) peekedCharacter;\n\t\tpeekedCharacter = -1;\n\t\treturn next;\n\t}", "private char nextChar() throws Exception {\n char next = this.source[this.position];\n this.position++;\n return next;\n }", "public char readChar(){\n\t\tscanner.useDelimiter(EMPTY_PATTERN);\n\t\ttry {\n\t\t\tString ch=scanner.next();\n\t\t\tassert ch.length()==1:\"In.readChar() error\";\n\t\t\tscanner.useDelimiter(WHITESPACE_PATTERN);\n\t\t\treturn ch.charAt(0);\n\t\t}catch (NoSuchElementException e){\n\t\t\tthrow new NoSuchElementException(\"noSuchElement\");\n\t\t}\n\t}", "public static char readChar()\n {\n \tString ch = scanner.next();\n \treturn ch.charAt(0);\n }", "char readChar();", "public char peekChar() throws Exception {\n currentChar();\n\n if (line == null) {\n return PascalToken.EOF_CHAR;\n }\n int nextPos = currentPos + 1;\n\n return nextPos < line.length() ? line.charAt(nextPos) : PascalToken.EOL_CHAR;\n }", "public abstract char read_char();", "private char peekNextChar()\n {\n return (pos < (input.length() - 1)) ? input.charAt(pos + 1) : 0;\n }", "private char next() {\n char c = peek();\n eat(c);\n return c;\n }", "char nextChar();", "private void nextChar() {\n\t\tif (this.c >= 0) {\n\t\t\ttry {\n\t\t\t\tif (this.c == '\\n') {\n\t\t\t\t\tthis.line++;\n\t\t\t\t\tthis.column = 0;\n\t\t\t\t}\n\t\t\t\tthis.c = this.input.read();\n\t\t\t\tthis.column++;\n\t\t\t} catch (final IOException e) {\n\t\t\t\tthis.c = -1;\n\t\t\t}\n\t\t}\n\t}", "public char readChar() {\n return readNextLine().charAt(0);\n }", "protected void readNextChar() throws IOException {\n nextChar = inputReader.read();\n switch (nextChar) {\n case -1: // EOF\n if (char_num == 0) {\n char_num = -1;\n break;\n }\n nextChar = '\\n';\n // fall thru\n case '\\n':\n line_num++;\n char_num = 0;\n break;\n default:\n line.append((char) nextChar);\n char_num++;\n return;\n }\n line.setLength(0);\n }", "public char nextChar() throws Exception {\n currentPos++;\n return currentChar();\n }", "private int getChar() {\n\n\t\ttry {\n\t\t\treturn stream.read();\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.print(e.getMessage());\n\t\t\tSystem.err.println(\"IOException occured in Lexer::getChar()\");\n\t\t\treturn -1;\n\t\t}\n\n\t}", "public char readChar() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn (char) (-1);\n\t\treturn (char) last();\n\t}", "private int nextChar()\n {\n int result;\n\n // loop handles the next character whether it is in the buffer or not.\n if (m_bufferOffset_ < 0) {\n // we're working on the source and not normalizing. fast path.\n // note Thai pre-vowel reordering uses buffer too\n result = m_source_.next();\n }\n else {\n // we are in the buffer, buffer offset will never be 0 here\n if (m_bufferOffset_ >= m_buffer_.length()) {\n // Null marked end of buffer, revert to the source string and\n // loop back to top to try again to get a character.\n m_source_.setIndex(m_FCDLimit_);\n m_bufferOffset_ = -1;\n m_buffer_.setLength(0);\n return nextChar();\n }\n return m_buffer_.charAt(m_bufferOffset_ ++);\n }\n int startoffset = m_source_.getIndex();\n if (result < FULL_ZERO_COMBINING_CLASS_FAST_LIMIT_\n // Fast fcd safe path. trail combining class == 0.\n || m_collator_.getDecomposition() == Collator.NO_DECOMPOSITION\n || m_bufferOffset_ >= 0 || m_FCDLimit_ >= startoffset) {\n // skip the fcd checks\n return result;\n }\n\n if (result < LEAD_ZERO_COMBINING_CLASS_FAST_LIMIT_) {\n // We need to peek at the next character in order to tell if we are\n // FCD\n int next = m_source_.current();\n if (next == UCharacterIterator.DONE\n || next < LEAD_ZERO_COMBINING_CLASS_FAST_LIMIT_) {\n return result; // end of source string and if next character\n // starts with a base character is always fcd.\n }\n }\n\n // Need a more complete FCD check and possible normalization.\n if (!FCDCheck(result, startoffset)) {\n normalize();\n result = m_buffer_.charAt(0);\n m_bufferOffset_ = 1;\n }\n return result;\n }", "private char NEXT() {\r\n if (in >= input.length()) return '\\0';\r\n return (char) input.charAt(in);\r\n }", "private char peek() {\n if (reachedEnd()) {\n return '\\0';\n }\n\n return source.charAt(current);\n }", "char getReadChar();", "public char getChar() throws IOException {\r\n\t\treturn (char)lineReader.read();\r\n\t}", "private int getNextChar() throws IOException{\n\t\tpos++;\n\t\tsourceReader.mark(20);\n\t\treturn sourceReader.read();\n\t}", "public int cscan () throws IOException {\n\n\t\t\tif (curChar >= numChars) {\n\t\t\t\tcurChar = 0;\n\t\t\t\tnumChars = stream.read (buf);\n\n\t\t\t\t//if (numChars <= 0) return -1;\n\t\t\t}\n\n\t\t\treturn buf[curChar++];\n\t\t}", "char getPreviousReadChar();", "private char getChar() {\n\t\t//Must declare as int, because -1 in char is 65535\n\t\tint c = '\\0';\n\t\ttry {\n\t\t\tc = inFile.read();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error occurred when trying to read characters\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (c == -1) {\n\t\t\teof = true;\n\t\t\treturn EndOfFile;\n\t\t} else if (c == '\\n' || c == '\\r') {\n\t\t\tlineNumber++;\n\t\t}\n\t\treturn (char) c;\t\n\t}", "public char read() {\n char ch = this.peek();\n this.index++;\n return ch;\n }", "public char peek() {\n try {\n return this.input.charAt(this.index);\n } catch (StringIndexOutOfBoundsException e) {\n throw this.buildException(\"truncated input\");\n }\n }", "public char currentChar() throws Exception {\n // first line?\n if (currentPos == -2) {\n readLine();\n return nextChar();\n }\n\n // at end of file?\n if (line == null) {\n return PascalToken.EOF_CHAR;\n }\n\n // at end of line?\n if (currentPos == -1 || currentPos == line.length()) {\n return PascalToken.EOL_CHAR;\n }\n\n // Need to read next line?\n if (currentPos > line.length()) {\n readLine();\n return nextChar();\n }\n // return char at current pos\n return line.charAt(currentPos);\n }", "private char readChar() {\r\n\t\tInputStream in = System.in;\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n\t\tString line = null;\r\n\r\n\t\ttry {\r\n\t\t\tline = br.readLine();\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\treturn line.toLowerCase().charAt(0);\r\n\t}", "public char readChar() throws IOException {\n\t\tbyte[] b = new byte[2];\n\n\t\tif (read(b, 0, 2) < 2) {\n\t\t\tthrow new EOFException();\n\t\t}\n\n\t\tchar c = (char) (b[0] << 8 | (b[1] & 0xFF));\n\t\treturn c;\n\t}", "public static char getChar() throws IOException {\n\t\nString s = getString();\nreturn s.charAt(0);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Returns the first letter of the string, to help idiot proof it.\n\n}", "public char readChar()\r\n/* 441: */ {\r\n/* 442:454 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 443:455 */ return super.readChar();\r\n/* 444: */ }", "public char next() throws JSONException {\n int c;\n if(this.usePrevious) {\n this.usePrevious = false;\n c = this.previous;\n } else {\n try {\n c = this.reader.read();\n } catch (IOException e) {\n throw new JSONException(e);\n }\n\n if(c <= 0) {\n this.eof = true;\n c = 0;\n }\n }\n\n this.index += 1;\n if(this.previous == '\\r') {\n this.line += 1;\n this.character = c == '\\n' ? 0 : 1;\n } else if(c == '\\n') {\n this.line += 1;\n this.character = 0;\n } else {\n this.character += 1;\n }\n\n this.previous = (char) c;\n\n return this.previous;\n }", "byte peekByte() throws IOException;", "private char read() throws SAXException, IOException {\n for (;;) { // the loop is here for the CRLF case\n if (unreadBuffer != -1) {\n char c = (char) unreadBuffer;\n unreadBuffer = -1;\n return c;\n }\n assert (bufLen > -1);\n pos++;\n assert pos <= bufLen;\n linePrev = line;\n colPrevPrev = colPrev;\n colPrev = col;\n col++;\n if (pos == bufLen) {\n boolean charDataContinuation = false;\n if (cstart > -1) {\n flushChars();\n charDataContinuation = true;\n }\n bufLen = reader.read(buf);\n assert bufLen <= buf.length;\n if (bufLen == -1) {\n return '\\u0000';\n } else {\n for (int i = 0; i < characterHandlers.length; i++) {\n CharacterHandler ch = characterHandlers[i];\n ch.characters(buf, 0, bufLen);\n }\n }\n if (charDataContinuation) {\n cstart = 0;\n }\n pos = 0;\n }\n char c = buf[pos];\n if (c > '\\u007F' && nonAsciiProhibited\n && !alreadyComplainedAboutNonAscii) {\n err(\"The character encoding of the document was not explicit but the document contains non-ASCII.\");\n }\n switch (c) {\n case '\\n':\n /*\n * U+000D CARRIAGE RETURN (CR) characters, and U+000A LINE\n * FEED (LF) characters, are treated specially. Any CR\n * characters that are followed by LF characters must be\n * removed, and any CR characters not followed by LF\n * characters must be converted to LF characters.\n */\n if (prev == '\\r') {\n // swallow the LF\n colPrev = colPrevPrev;\n col = 0;\n if (cstart != -1) {\n flushChars();\n cstart = pos + 1;\n }\n prev = c;\n continue;\n } else {\n linePrev = line;\n line++;\n colPrevPrev = colPrev;\n colPrev = col;\n col = 0;\n }\n break;\n case '\\r':\n c = buf[pos] = '\\n';\n linePrev = line;\n line++;\n colPrevPrev = colPrev;\n colPrev = col;\n col = 0;\n prev = '\\r';\n if (contentModelFlag != ContentModelFlag.PCDATA) {\n prevFourPtr++;\n prevFourPtr %= 4;\n prevFour[prevFourPtr] = c;\n }\n return c;\n case '\\u0000':\n /*\n * All U+0000 NULL characters in the input must be replaced\n * by U+FFFD REPLACEMENT CHARACTERs. Any occurrences of such\n * characters is a parse error.\n */\n err(\"Found U+0000 in the character stream.\");\n c = buf[pos] = '\\uFFFD';\n break;\n case '\\u000B':\n case '\\u000C':\n if (inContent) {\n if (contentNonXmlCharPolicy == XmlViolationPolicy.FATAL) {\n fatal(\"This document is not mappable to XML 1.0 without data loss due to a character that is not a legal XML 1.0 character.\");\n } else {\n if (contentNonXmlCharPolicy == XmlViolationPolicy.ALTER_INFOSET) {\n c = buf[pos] = ' ';\n }\n warn(\"This document is not mappable to XML 1.0 without data loss due to a character that is not a legal XML 1.0 character.\");\n }\n }\n break;\n default:\n if ((c & 0xFC00) == 0xDC00) {\n // Got a low surrogate. See if prev was high surrogate\n if ((prev & 0xFC00) == 0xD800) {\n int intVal = (prev << 10) + c + SURROGATE_OFFSET;\n if (isNonCharacter(intVal)) {\n warn(\"Astral non-character.\");\n }\n if (isAstralPrivateUse(intVal)) {\n warnAboutPrivateUseChar();\n }\n } else {\n // XXX figure out what to do about lone high\n // surrogates\n err(\"Found low surrogate without high surrogate.\");\n c = buf[pos] = '\\uFFFD';\n }\n } else if (inContent && (c < ' ' || isNonCharacter(c))\n && (c != '\\t')) {\n if (contentNonXmlCharPolicy == XmlViolationPolicy.FATAL) {\n fatal(\"This document is not mappable to XML 1.0 without data loss due to a character that is not a legal XML 1.0 character.\");\n } else {\n if (contentNonXmlCharPolicy == XmlViolationPolicy.ALTER_INFOSET) {\n c = buf[pos] = '\\uFFFD';\n }\n warn(\"This document is not mappable to XML 1.0 without data loss due to a character that is not a legal XML 1.0 character.\");\n }\n } else if (isPrivateUse(c)) {\n warnAboutPrivateUseChar();\n }\n }\n prev = c;\n if (contentModelFlag != ContentModelFlag.PCDATA) {\n prevFourPtr++;\n prevFourPtr %= 4;\n prevFour[prevFourPtr] = c;\n }\n return c;\n }\n }", "public static char readChar(String prompt) throws IOException {\r\n\t\tchar value = 0;\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\tSystem.out.print(prompt + \" _>\");\r\n\t\t\t\tvalue = (char)reader.read();\r\n\t\t\t\t// alternative value = (char)reader.readLine().charAt(0);\r\n\t\t\t\tbreak;\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tSystem.err.println(ex.getLocalizedMessage());\r\n\t\t\t\tthrow ex;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "char getChar(int offset) throws BadLocationException;", "private char next(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n if (iIndex>=iMessage.length()) return NONE;//return no character if beyond end of the message\r\n return iMessage.charAt(iIndex++);//return current character and advance to next\r\n \r\n }", "private char peek(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n if (iIndex>=iMessage.length()) return NONE;//return no character if beyond end of the message\r\n return iMessage.charAt(iIndex);//return current character\r\n \r\n }", "char getNextChar () {\n m_pos++; \n return getChar ();\n }", "char getEChar();", "public boolean next() throws IOException;", "boolean next() throws IOException;", "private char readChar() \n {\n \n String uInput = null;//user input\n do//do while loop to wait for a charater\n {\n try//collect user input\n {\n uInput = br.readLine();\n }\n catch(IOException ioe)//catch IOE\n {\n System.out.println(\"IO error trying to read number. Exiting now\");\n System.exit(1);\n }\n if(uInput.charAt(0)=='?')//special case for ? symbol\n {\n return uInput.charAt(0);\n }\n if(!Character.isLetter(uInput.charAt(0)))//check for charater\n {\n System.out.println(\"Invalid input, use ? for a list of commands\");\n System.out.printf(\"=> \");\n }\n }\n while(!Character.isLetter(uInput.charAt(0)));\n\n return uInput.charAt(0);//return character input\n \n }", "private int peek() {\n if (peeked == NotPeeked) {\n peeked = readChar();\n }\n return peeked;\n }", "public void testNextChar() {\n System.out.println(\"nextChar\");\n BufferedCharSequence instance = null;\n char expResult = ' ';\n char result = instance.nextChar();\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 }", "private static char read(InputStream client) {\n try {\n var c = client.read();\n if (c == -1) {\n LOG.warning(\"Stream from client has been closed, throwing kill exception...\");\n throw new EndOfStream();\n }\n return (char) c;\n } catch (IOException e) {\n LOG.log(Level.SEVERE, e.getMessage(), e);\n throw new EndOfStream();\n }\n }", "char getChar () { \n return m_pos < m_len ? m_buffer.charAt (m_pos) : '\\0';\n }", "private int read() throws IOException {\n int c = this.in.read();\n if (c == -1)\n throw new EOFException();\n return c;\n }", "public char readCharNonBlock() {\n return ((char) readLongNonBlock());\n }", "@Test(timeout = 4000)\n public void test042() throws Throwable {\n JavaCharStream javaCharStream0 = new JavaCharStream((Reader) null);\n // Undeclared exception!\n try { \n javaCharStream0.ReadByte();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }", "public void testNull () throws IOException\n {\n Stream stream;\n\n stream = new Stream (null);\n assertTrue (\"erroneous character\", -1 == stream.read ());\n }", "public char readChar(String message) {\r\n\t\tSystem.out.println(message);\r\n\t\treturn scanner.nextLine().charAt(0);\r\n\t}", "public static char readChar()\n \n {\n char c='0';\n String wort=\"xxxx\";\n try {\n wort=eingabe.readLine();\n c=wort.charAt(0);\n } catch(IOException e1) {\n System.out.println(\"Eingabefehler, bitte noch einmal!\");\n c=readChar();\n } catch(NumberFormatException e2) {\n if(wort.equals(\"\"))\n System.out.println(\"Bitte etwas eingeben, noch einmal:\");\n else {\n System.out.print(\"Fehler beim Format, \");\n System.out.println(\"bitte noch einmal!\");}\n c=readChar();\n }\n return c;\n }", "public char getChar()\n throws IOException\n {\n return (char) lineNumberReader.read();\n }", "private String getNextLine() throws IOException {\n final BufferedReader in = this.in;\n if (in == null) {\n throw new NoSuchElementException();\n } else {\n final String nextLine = this.in.readLine();\n if (nextLine == null) {\n throw new NoSuchElementException();\n }\n return nextLine;\n }\n }", "private int readChar(boolean movePointer) throws Exception {\n if (_bi >= _blen) {\n _blen = _reader.read(_buf, 0, 2048);\n if (log) {\n StringBuffer sbBuffer = new StringBuffer();\n for (int i = 0; i < 300; i++) {\n sbBuffer.append(_buf[i]);\n }\n }\n log = false;\n\n _bi = 0;\n if (_blen < 0)\n return -1;\n }\n char ret = _buf[_bi];\n if (movePointer)\n _bi++;\n return ret;\n }", "private char peek() {\n return regEx.charAt(0);\n }", "@Test(timeout = 4000)\n public void test009() throws Throwable {\n StringReader stringReader0 = new StringReader(\"kE4X 9\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-1), 66, 1279);\n char char0 = javaCharStream0.readChar();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals('k', char0);\n }", "public String next() {\n try {\n String result = fNextLine;\n if (fNextLine != null) {\n fNextLine = fIn.readLine();\n if (fNextLine == null) {\n fIn.close();\n }\n }\n\n return result;\n } catch (IOException e) {\n throw new IllegalArgumentException(e);\n }\n }", "public char readChar() {\n return ((char) readLong());\n }", "public Token getNextToken() {\r\n \r\n // if no next token, abort\r\n if (!this.hasNextToken()) return null;\r\n \r\n // get the current character\r\n char c = this.stream.peek();\r\n \r\n // comment\r\n if (c==this.charComment) {\r\n // read the line and return the token\r\n this.current = new Token(this.getUntilMeetChar('\\n'));\r\n return this.current;\r\n }\r\n \r\n // !\r\n if (c==this.charSize) {\r\n this.stream.next(); // consume the character\r\n this.current = new Token(String.valueOf(this.charSize)); // and build the token\r\n return this.current;\r\n }\r\n \r\n // else\r\n this.current = new Token(this.getUntilMeetChar(this.charSeparator)); // extract until a charSeparator is met\r\n return this.current;\r\n \r\n }", "@Test(timeout = 4000)\n public void test030() throws Throwable {\n StringReader stringReader0 = new StringReader(\"1dIHR}';Z<m5\\\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n char char0 = javaCharStream0.ReadByte();\n assertEquals('1', char0);\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n StringReader stringReader0 = new StringReader(\"H+\\\"RE_]I95BDm\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n char char0 = javaCharStream0.ReadByte();\n assertEquals('H', char0);\n }", "public int nextC()\r\n\t{\r\n\t\tlastc = thisc;\t/* save current character, in case of backup */\r\n\t\t\r\n\t\t/* check for character waiting */\r\n\t\tif (holdc == 0) {\r\n\t\t\t/* no character waiting, get next from file,\r\n * ignore most control characters */\r\n\t\t\tdo {\r\n\t\t\t\tthisc = getC();\r\n\t\t\t\tif (thisc == EOF) return EOF;\r\n } while (thisc < 0x20 && ctlchars[thisc]);\r\n\r\n\t\t} else {\r\n\t\t\t/* we looked ahead, so use the saved character */\r\n\t\t\tthisc = holdc;\r\n\t\t\tholdc = 0;\r\n\t\t\tif (thisc == EOF) return EOF;\r\n\t\t}\r\n\t\r\n\t\t/* special rule for carriage return characters:\r\n\t\t * if CR is followed by LF, return just the LF\r\n\t\t * else replace the CR with a LF\r\n\t\t * but then we have to hold the character that isn't a LF,\r\n\t\t * unless it is an ignored character */\r\n\t\tif (thisc == '\\r') {\r\n\t\t holdc = getC();\r\n\t if (holdc < 0x20) {\r\n\t if (holdc == '\\n' || ctlchars[holdc]) holdc = 0;\r\n\t }\r\n\t\t thisc = '\\n';\r\n\t\t}\r\n\t\t\r\n\t\t/* capture the character in a buffer, for diagnostics */\r\n\t\tif (lastc == '\\n' || bufpos >= BUFSIZE) {\r\n\t\t\tprvsize = bufpos;\r\n\t\t\tbufpos = 0;\r\n\t\t\tcurrentbuf = 1 - currentbuf;\r\n\t\t}\r\n\t\tbuffer[currentbuf][bufpos++] = (byte)thisc;\r\n\t\r\n\t\treturn thisc;\r\n\t}", "public char peek() {\r\n return characters[size -1];\r\n }", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n StringReader stringReader0 = new StringReader(\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 754, 65, 0);\n javaCharStream0.backup((-1));\n try { \n javaCharStream0.readChar();\n fail(\"Expecting exception: IOException\");\n \n } catch(IOException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }", "@Override\n\t\tpublic Character next() {\n\t\t\treturn elements.poll();\n\t\t}", "public char keyboardReadChar() {\n BufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n char charItem = ' ';\n try {\n charItem = (char) myReader.read();\n } // try\n catch (IOException IOError) {\n System.out.println(\"Read Error in Termio.KeyboardReadChar method\");\n } // catch\n return charItem;\n }", "public char next(char c) throws JSONException {\n char n = this.next();\n if(n != c) {\n throw this.syntaxError(\"Expected '\" + c + \"' and instead saw '\" + n + \"'\");\n }\n\n return n;\n }", "@Test(timeout = 4000)\n public void test034() throws Throwable {\n JavaCharStream javaCharStream0 = new JavaCharStream((Reader) null);\n // Undeclared exception!\n try { \n javaCharStream0.readChar();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }", "public static char inputChar(String p) {\n String c;\n while (true) {\n System.out.print(p);\n c = in.nextLine();\n if (c.length() == 1) {\n return c.charAt(0);\n } else {\n System.err.print(\"Must enter character, enter again! \");\n }\n }\n }", "@Test(timeout = 4000)\n public void test037() throws Throwable {\n StringReader stringReader0 = new StringReader(\"\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n try { \n javaCharStream0.readChar();\n fail(\"Expecting exception: IOException\");\n \n } catch(IOException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }", "@Override\n public Character next() {\n assert(this.hasNext());\n\n char currCharacter = this.circularString.charAt(this.currIndex);\n ++this.currIndex;\n\n return currCharacter;\n }", "public Token peek() throws IOException {\n\t\t// advance token only if its been reset by getToken()\n\t\tif (nextToken == null)\n\t\t\tnextToken = getToken();\n\n\t\treturn nextToken;\n\t}", "public Character next() {\n if (!hasNext())\n throw new NoSuchElementException();\n return string.charAt(index++);\n }", "Object nextValue() throws IOException;", "@Override\n public int read() throws IOException\n {\n if (_tmpBuffer == null) {\n _tmpBuffer = new char[1];\n }\n if (read(_tmpBuffer, 0, 1) < 1) {\n return -1;\n }\n return _tmpBuffer[0];\n }", "public final String readNextLine() throws IOException {\r\n String str;\r\n if (buf_end-buf_pos <= 0) {\r\n if (fillBuffer() < 0) {\r\n throw new IOException(\"Error filling buffer!\");\r\n }\r\n }\r\n int lineEnd = -1;\r\n for (int i = buf_pos; i < buf_end; i++) {\r\n if (buffer[i] == '\\n') {\r\n lineEnd = i;\r\n break;\r\n }\r\n }\r\n if (lineEnd < 0) {\r\n StringBuilder input = new StringBuilder(256);\r\n int c;\r\n while (((c = read()) != -1) && (c != '\\n')) {\r\n input.append((char)c);\r\n }\r\n if ((c == -1) && (input.length() == 0)) {\r\n return null;\r\n }\r\n return input.toString();\r\n }\r\n\r\n if (lineEnd > 0 && buffer[lineEnd-1] == '\\r') {\r\n str = new String(buffer, buf_pos, lineEnd - buf_pos -1);\r\n }\r\n else {\r\n str = new String(buffer, buf_pos, lineEnd - buf_pos);\r\n }\r\n buf_pos = lineEnd +1;\r\n return str;\r\n }", "@Test(timeout = 4000)\n public void test071() throws Throwable {\n StringReader stringReader0 = new StringReader(\"<EOF>\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 89, 302);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(89, javaCharStream0.getEndLine());\n }", "@Test(timeout = 4000)\n public void test127() throws Throwable {\n StringReader stringReader0 = new StringReader(\"<EOF>\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 89, 302);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n stringReader0.read();\n javaParserTokenManager0.getNextToken();\n assertEquals(2, javaCharStream0.bufpos);\n assertEquals(304, javaCharStream0.getEndColumn());\n }", "public static String readLine()\n {\n \tString ch=scanner.nextLine();\n \treturn ch;\n }", "public static char in(String s)\n {\n if (s != null && s.length() > 0)\n {\n System.out.print(s);\n System.out.flush();\n }\n\n InputStreamReader reader = new InputStreamReader(System.in);\n int ch;\n try\n {\n while ((ch = reader.read()) < 0)\n {\n }\n }\n catch (IOException e)\n {\n ch = 0x0;\n }\n\n return (char)ch;\n }", "private void skipBadChar() throws IOException {\n while (!isValid()) {\n if (c == -1 || isSpace() || shouldStop()) {\n return;\n }\n c = r.read();\n }\n }", "int readS8()\n throws IOException, EOFException;", "public char getChar();", "@Override\n\tpublic String getNext() throws IOException {\n\t\ttry {\n\t\t\t// Ignore space, tab, newLine, commentary\n\t\t\tint nextVal = reader.read();\n\t\t\tnextVal = this.ignore(nextVal);\n\n\t\t\treturn (!isEndOfFile(nextVal)) ? this.getInstruction(nextVal) : null;\n\t\t} catch (java.io.IOException e) {\n\t\t\tthrow new IOException();\n\t\t}\n\n\t}", "public char nextChar() {\n this.inputStr = this.s.nextLine();\n\n if (!inputStr.isEmpty()) {\n for (int i = 0; i < inputStr.length(); i++) {\n if (inputStr.charAt(i) >= 'A' && inputStr.charAt(i) <= 'Z') {\n return inputStr.charAt(i);\n } else if (inputStr.charAt(i) >= 'a' && inputStr.charAt(i) <= 'z') {\n return inputStr.charAt(i);\n }\n }\n }\n return ' ';\n }", "public char next()\n {\n char current = text[position];\n\n if (position > 0 && text[position - 1] == '\\n')\n {\n lineNo++;\n begin = position;\n }\n\n position++;\n\n return current;\n }", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n JavaCharStream javaCharStream0 = new JavaCharStream((Reader) null);\n javaCharStream0.maxNextCharInd = 2;\n javaCharStream0.prevCharIsCR = true;\n char char0 = javaCharStream0.readChar();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals('\\u0000', char0);\n }", "private String readLine() {\n\t\ttry {\n\t\t\treturn reader.nextLine();\t\n\t\t} catch (NoSuchElementException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "private int getNext() throws IOException {\n int ch;\n do {\n do {\n ch = in.read();\n\n // Ignore newlines and carage returns\n while ((ch == '\\n') || (ch == '\\r')) {\n ch = in.read();\n }\n\n if (ch == '{') {\n mDepth++;\n } else if (ch == '}') {\n mDepth--;\n }\n\n if (mLastCharWasInTextDepth && (mDepth != TEXT_DEPTH)) {\n // Return a blank every time when skipping a format group to avoid\n // two words being concatinated\n // Example: 'little{\\someGroup}cat' should not become 'littlecat',\n // but 'little cat'\n mLastCharWasInTextDepth = false;\n\n if (ch == -1) {\n return -1;\n } else {\n return ' ';\n }\n }\n }\n while (ch == '{' || ch == '}');\n }\n while ((mDepth != TEXT_DEPTH) && (ch != -1));\n\n mLastCharWasInTextDepth = true;\n\n return ch;\n }", "private int currentChar()\n {\n if (m_bufferOffset_ < 0) {\n m_source_.previousCodePoint();\n return m_source_.nextCodePoint();\n }\n\n // m_bufferOffset_ is never 0 in normal circumstances except after a\n // discontiguous contraction since it is always returned and moved\n // by 1 when we do nextChar()\n return UTF16.charAt(m_buffer_, m_bufferOffset_ - 1);\n }", "public void testOneByte () throws IOException\n {\n Stream stream;\n\n stream = new Stream (new ByteArrayInputStream (new byte[] { (byte)0x42 }));\n assertTrue (\"erroneous character\", 0x42 == stream.read ());\n assertTrue (\"erroneous character\", -1 == stream.read ());\n }", "@Test(timeout = 4000)\n public void test053() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Z[^o)j]BO6Ns,$`3$e\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1, 1, 0);\n char char0 = javaCharStream0.readChar();\n assertEquals(1, javaCharStream0.getBeginColumn());\n assertEquals(1, javaCharStream0.getEndLine());\n assertEquals('Z', char0);\n }", "public interface Stream {\n\tpublic char getNext();\t\n\tpublic boolean hasNext();\n}", "public static char readCharacter(String message){\n Scanner in = new Scanner(System.in);\n System.out.print(message);\n return in.next().charAt(0);\n }" ]
[ "0.7407036", "0.73294663", "0.7154644", "0.69617206", "0.68460244", "0.6747291", "0.6737812", "0.6687668", "0.66656506", "0.66463697", "0.6625014", "0.6583557", "0.6583551", "0.65596825", "0.6547147", "0.6527457", "0.64882153", "0.6474834", "0.6451928", "0.6446389", "0.6379163", "0.6362943", "0.6358317", "0.63371366", "0.6324559", "0.63197523", "0.6313888", "0.6250566", "0.62447906", "0.62421393", "0.6225203", "0.6210564", "0.6170588", "0.6162428", "0.61495364", "0.6149124", "0.6129056", "0.6126817", "0.60610324", "0.60575974", "0.602586", "0.6000626", "0.5961219", "0.5930021", "0.5919479", "0.5913906", "0.58969355", "0.58825356", "0.58660305", "0.58519286", "0.58297503", "0.58259386", "0.5817415", "0.58131254", "0.5798628", "0.57870764", "0.57702845", "0.5761581", "0.5740577", "0.57381463", "0.5735282", "0.5734498", "0.57273823", "0.5717578", "0.5697181", "0.56906706", "0.56840444", "0.5655149", "0.5644936", "0.5640956", "0.56409013", "0.56339735", "0.5629607", "0.560716", "0.56021464", "0.5588075", "0.5570787", "0.5561229", "0.55546004", "0.55508476", "0.55459243", "0.5543969", "0.55436265", "0.5540457", "0.55377334", "0.5528089", "0.55279285", "0.55232304", "0.5514956", "0.55088687", "0.5501737", "0.54885215", "0.54784006", "0.5470819", "0.5450922", "0.5448585", "0.5444076", "0.5441955", "0.54419166", "0.54320705" ]
0.652373
16
end OnCreate( ... )
private void startFilterCriteria() { Log.i(TAG, "startFilterCriteria()"); FindUtilsImpl utils = new FindUtilsImpl(); Set<String> tSet = utils.getTypeSet((ArrayList<BELEvent>) eventsListFind); ArrayList<String> tList = new ArrayList<String>(cleanSet(tSet)); String str = "start FilterCriteria.class"; Log.i(TAG, "Search Activity: " +str); Intent intent = new Intent(context, FilterCriteria.class); intent.putStringArrayListExtra("TypesKey", tList); //TODO capture activity not found exception // ((Activity) context).startActivityForResult(intent,Constants.FIND_REQ); startActivityForResult(intent,Constants.FIND_REQ); str = "startActivity(intent,Constants.FIND_REQ)"; // str = "startActivityForResult(intent,Constants.FIND_REQ)"; Log.e("Search Dlg: ", str); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onCreate()\n {\n\n\n }", "@Override\n public void onCreate() {\n }", "@Override\n public void onCreate() {\n\n }", "@Override\n\tprotected void onCreate() {\n\t}", "@Override\n\tpublic void onCreate() {\n\n\t}", "protected void onCreate() {\n }", "@Override\n public void onCreate() {\n super.onCreate();\n }", "@Override\n public void onCreate() {\n super.onCreate();\n }", "public void onCreate() {\n }", "@Override\n public void onCreate()\n {\n\n super.onCreate();\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n }", "@Override\r\n\tpublic void onShow() {\n\t\t\r\n\t}", "@Override\n public void onViewCreate() {\n }", "@Override\n\tpublic void onCreate() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onCreate();\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "public void onDisplay() {\n }", "public void onCreate();", "public void onCreate();", "@Override\n public void onPostInit()\n {\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) \n {\n //...\n }", "@Override\n public void onCreate() {\n L.d(\"onCreate is called\");\n super.onCreate();\n }", "public abstract void onCreate();", "public void onBegin() {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n\tsuper.onCreate(savedInstanceState);\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\r\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG, \"onCreate\");\n\t\tsuper.onCreate();\n\t}", "@Override\n public void onCreate() {\n Log.d(TAG, TAG + \" onCreate\");\n }", "@Override\r\n protected void onStart() {\r\n // TODO Auto-generated method stub\r\n super.onStart();\r\n\r\n\r\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\r\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }", "public void onDisplay() {\n\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }", "protected void onBegin() {}", "abstract void onShown();", "@Override\n\tpublic void onShowScene() {\n\t\t\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n \tsuper.onCreate(savedInstanceState);\n }", "@Override\r\n\tpublic void onOpen() {\n\r\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void onPreExecute()\n\t{\n\t\t\n\t}", "@Override\n public void onInit()\n {\n\n }", "@Override\r\n public void onStart(){\r\n super.onStart();\r\n\r\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override \r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public boolean onCreate() {\n return false;\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n public void onStart() {\n super.onStart();\n\t\t\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate( savedInstanceState );\n }", "@Override\r\n\tpublic void onOpened() {\n\r\n\t}", "public void windowCreated()\n {\n return;\n }", "@Override\n\tpublic void onGuiClosed()\n {\n }", "@Override\n\tprotected void onCreate() {\n\t\tSystem.out.println(\"onCreate\");\n\t}", "@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}", "@Override\n public void onFinish() {\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "public void onActivation() { }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState)\n\t{\n\t\tsuper.onCreate(savedInstanceState);\n\t}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t}", "@Override\n public void onFinish() {\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "void onNewGame();", "void onOpen();", "@Override\n public void onFinish() {\n\t\t\t\n }", "@Override\n \tprotected void onDestroy() {\n \t\tsuper.onDestroy();\n \t}", "@Override\n public void onStart(View v) {\n }", "@Override\n public void onStart() {\n\n }", "@Override\n public void onStart() {\n pDialog.show();\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "@Override\n public void onDestroy() {\n\n }", "@Override\n public void onStart()\n {\n }", "@Override\n public void onStart(){\n super.onStart();\n }", "public void factoryMainScreen()\n\t{\n\t\t\n\t}", "@Override\n protected void onDestroy() {\n super.onDestroy();\n\n\n }", "@Override\n \tprotected void onDestroy() {\n \t\tsuper.onDestroy();\n \t\tLog.d(TAG, \"onDestroy\");\n \t}", "@Override\r\n\tpublic void onNew() {\n\t\t\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n // setContentView(R.layout.view_bottom_popwindow_container);\n initViews();\n initValues();\n }", "@Override\r\n public void onFinish() {\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t}" ]
[ "0.746107", "0.74602836", "0.74358845", "0.7396282", "0.7345404", "0.7258854", "0.7116282", "0.7116282", "0.71005505", "0.7095669", "0.7068107", "0.7068107", "0.70345414", "0.7011872", "0.6952203", "0.6918042", "0.69007254", "0.68873966", "0.68873966", "0.68333083", "0.67709345", "0.67709345", "0.6756988", "0.67535377", "0.6725296", "0.6716159", "0.67054397", "0.66896474", "0.66803896", "0.66577864", "0.66544616", "0.66447747", "0.663496", "0.6622016", "0.6619246", "0.6616217", "0.659656", "0.659254", "0.65922767", "0.65591764", "0.6557661", "0.6533083", "0.65250134", "0.6482617", "0.64722365", "0.64713866", "0.64713866", "0.64713866", "0.64713866", "0.64713866", "0.64713866", "0.64713866", "0.64713866", "0.64713866", "0.64713866", "0.64713866", "0.64713866", "0.64713866", "0.64630514", "0.6460922", "0.6457918", "0.6443565", "0.6437816", "0.6437124", "0.6436586", "0.64333284", "0.6427619", "0.6419905", "0.64188814", "0.6418642", "0.6410366", "0.6406693", "0.6401657", "0.64003676", "0.63923854", "0.63923854", "0.63860047", "0.63837564", "0.6379069", "0.63766676", "0.6374781", "0.63664824", "0.63620645", "0.63566256", "0.6352619", "0.6351812", "0.6351812", "0.63354707", "0.63348794", "0.6328032", "0.6322548", "0.6314481", "0.6309859", "0.6306568", "0.6303139", "0.6299965", "0.62781835", "0.62781835", "0.62781835", "0.62781835", "0.62781835" ]
0.0
-1
Remove empty strings from the list
private Set<String> cleanSet(Set<String> s){ Log.i(TAG, "cleanSet(msg)"); if (s.contains("")) { s.remove(""); }if (s.contains("etc")) { // Developers prerogative s.remove("etc"); } return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<String> removeEmptyLines(List<String> list) {\n for (int k1 = 0; k1 < list.size(); ++k1)\n {\n if (list.get(k1).isEmpty()) {\n list.remove(k1);\n }\n }\n return list;\n }", "private void removeEmptyElements(final Collection<String> collection) {\n collection.removeAll(Arrays.asList(null, \"\"));\n collection.removeAll(Arrays.asList(null, \" \"));\n }", "private void removeEmptyTokens(ArrayList<String> tokens) {\n Iterator<String> it = tokens.iterator();\n while (it.hasNext()) {\n if (it.next().equals(\"\")) {\n it.remove();\n }\n }\n }", "public static List<String> filter_empty(String[] arr){\n\t\tboolean contient_added = false;\n\t\tList<String> out = new ArrayList<String>();\n\t\tfor(String s : arr) {\n\t\t\tif(s.trim().length() > 0){\n\t\t\t\tif(s.equals(\"CONTIENT\")){\n\t\t\t\t\tif(contient_added){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tcontient_added = true;\n\t\t\t\t}\n\t\t\t\tout.add(s);\n\t\t\t}\n\t\t}\n\t\treturn out;\n\t}", "public static List<String> removeAllEmpties(final String ...originalStrings) {\n\t\tfinal List<String> cleanedStrings = new ArrayList<String>(Arrays.asList(originalStrings));\n\t\tcleanedStrings.removeAll(Arrays.asList(null,\"\", Collections.singleton(null)));\n\n\t\tfinal Iterator<String> it = cleanedStrings.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tfinal String s2 = it.next();\n\t\t\tif (StringUtils.trimToEmpty(s2).length() == 0) {\n\t\t\t\tit.remove();\n\t\t\t}\n\t\t}\n\n\t\treturn cleanedStrings;\n\t}", "public static List<String> noX(List<String> list) {\n\t\treturn list.stream().map(s -> s.replace(\"x\", \"\"))\n\t\t\t\t\t\t\t.collect(Collectors.toList());\n\t}", "public void removeSpaceFromEndOfString(ArrayList<String> list) {\n\t\t\n\t\tfor(int i = 0; i < list.size(); ++i) {\n\t\t\tif(list.get(i).charAt(list.get(i).length()-1) == ' ') {\n\t\t\t\tlist.set(i, list.get(i).substring(0, list.get(i).length()-1));\n\t\t\t}\n\t\t}\n\t}", "public void removeAll(String s) {\n for (int i = 0; i < size; i++) {\n if (elements[i] == s) {\n elements[i] = null;\n }\n }\n }", "public static List<String> trim(List<String> strings) {\n if (notNull(\"strings\", strings).isEmpty()) {\n return strings;\n }\n List<String> result;\n if (strings instanceof LinkedList<?>) {\n result = new LinkedList<>();\n } else {\n result = new ArrayList<>();\n }\n for (String s : strings) {\n String trimmed = s.trim();\n if (!trimmed.isEmpty()) {\n result.add(s.trim());\n }\n }\n return result;\n }", "@Test\n\tpublic void NotExamtestListToString() {\n\t\t\n\t\tassertEquals(\"[a,b,c]\",listToString(list));\n\t\tassertEquals(\"[a,b,c,aaa,a,a,d,a]\",listToString(list2));\n\t\tassertEquals(\"[]\",listToString(empty));\n\t\tassertEquals(\"[hello]\",listToString(onlyOne));\n\n\t}", "public static String[] removeEmpty(String[] strings) {\n String[] result = new String[strings.length];\n int copied = 0;\n for (String s : strings) {\n if (s != null && !s.isEmpty()) {\n result[copied++] = s;\n }\n }\n return copied == result.length ? result : Arrays.copyOf(result, copied);\n }", "private void removeEmptyFormatting(ArrayList p_tags)\n {\n boolean b_changed = true;\n\n emptytag: while (b_changed)\n {\n for (int i = 0, max = p_tags.size() - 1; i < max; i++)\n {\n Object o1 = p_tags.get(i);\n Object o2 = p_tags.get(i + 1);\n\n if (o1 instanceof HtmlObjects.Tag\n && o2 instanceof HtmlObjects.EndTag)\n {\n HtmlObjects.Tag tag = (HtmlObjects.Tag) o1;\n HtmlObjects.EndTag etag = (HtmlObjects.EndTag) o2;\n\n if (tag.tag.equalsIgnoreCase(etag.tag)\n && tag.partnerId == etag.partnerId)\n {\n p_tags.remove(i + 1);\n p_tags.remove(i);\n\n continue emptytag;\n }\n }\n }\n\n b_changed = false;\n }\n }", "@PrePersist\r\n @PreUpdate\r\n public void removeEmptyComments()\r\n {\r\n List<Comment> empty = new ArrayList<Comment>();\r\n for (Comment current : this.getComments())\r\n {\r\n current.removeEmptyComments();\r\n if (current.getText() == null || current.getText().isEmpty())\r\n {\r\n empty.add(current);\r\n }\r\n }\r\n\r\n this.getComments().removeAll(empty);\r\n }", "public String[] removeEmptySpacesInArray(String[] arrayToClean){\n\t\t\n\t\tArrayList<String> stringList = new ArrayList<String>();\n\t\tfor(String theString : arrayToClean){\n\t\t\t\n\t\t\tif(theString != \"-1\" && theString != \"\")\n\t\t\t\tstringList.add(theString);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn stringList.toArray(new String[stringList.size()]);\n\t\t\n\t}", "private List<Coordinate> trim(List<Coordinate> list) {\n\n List<Coordinate> temp = new ArrayList<>();\n if (list.size() == 0) {\n return temp;\n }\n temp.add(list.get(0));\n for (int i = 1; i < list.size(); i++) {\n if (list.get(i - 1).equals(list.get(i))) {\n continue;\n }\n temp.add(list.get(i));\n }\n return temp;\n }", "public Builder clearStrValues() {\n strValues_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000080);\n onChanged();\n return this;\n }", "public void clear() {\n\t\tstringList = null;\n\t}", "public static List<String> noVowel(List<String> in) {\n return in.stream()\n .distinct() // Ensure elements are unique\n .filter(i -> !i.matches(\"[aeiou]\")) // Keep elements that don't contain a vowel\n .collect(Collectors.toList()); // Collect result\n }", "private ArrayList<String> populateEmptyAlias() {\n ArrayList<String> emptyList = new ArrayList<String>();\n int size = AliasCommand.getCommands().size();\n for (int i = 0; i < size; i++) {\n emptyList.add(\"\");\n }\n return emptyList;\n }", "public static <T> List<T> getOrEmptyList(List<T> list) {\n return list == null ? Collections.emptyList() : list;\n }", "@Test\r\n public void clear() throws Exception {\r\n TreeSet<String> check = new TreeSet<>();\r\n check.addAll(sStr);\r\n check.clear();\r\n assertTrue(check.isEmpty());\r\n }", "public void clear() {\n\t\tlist = new ArrayList<String>();\n\t\tword = \"\";\n\t}", "private static void trimLines( List lines ) {\n \n /* Strip any blank lines from the top. */\n for ( ListIterator it = lines.listIterator( 0 ); it.hasNext(); ) {\n String line = (String) it.next();\n if ( line.trim().length() == 0 ) {\n it.remove();\n }\n else {\n break;\n }\n }\n \n /* Strip any blank lines from the bottom. */\n for ( ListIterator it = lines.listIterator( lines.size() );\n it.hasPrevious(); ) {\n String line = (String) it.previous();\n if ( line.trim().length() == 0 ) {\n it.remove();\n }\n else {\n break;\n }\n }\n }", "public void clear()\r\n {\r\n phoneList = new ArrayList<String>();\r\n }", "public static void removePlurals(ArrayList<String> list){\r\n //Loop through the list\r\n for(i = 0; i < list.size(); i++){\r\n if(list.get(i).endsWith(\"s\") || list.get(i).endsWith(\"S\")){\r\n list.remove(i);\r\n i--;\r\n } \r\n }\r\n }", "static String[] removeElements(String[] input, String deleteMe)\n {\n List result = new LinkedList();\n\n for(String item : input)\n if(!deleteMe.equals(item))\n result.add(item);\n result.toArray(input);\n return input;\n }", "public static String[] setStringArrayToEmpty(String[] arr) {\n for (int i = 0; i < arr.length; i++) {\n arr[i] = \"empty\";\n }\n return arr;\n }", "private static Stream<List<Tile>> substituteBlanks(List<Tile> p) {\n Stream<List<Tile>> res = Stream.of(p);\n //Iterate through all letters.\n for (int i = 0; i < p.size(); i++) {\n //Check for blanks.\n if (p.get(i).getLetter() == Character.MIN_VALUE) {\n //If blank found, substitute it for all a-z, and look again for next blank.\n res = substituteBlankAtIndex(p, i)\n .flatMap(s -> substituteBlanks(s));\n }\n }\n\n return res;\n }", "static List<String> removeDuplicates(List<String> list) {\n // Store unique items in result.\n List<String> result = new ArrayList<String>();\n // Loop over argument list.\n for (String token : list) {\n if (result.indexOf(token) == -1) { \n result.add(token);\n }\n }\n return result;\n }", "@Test\n public void clearForEmptyList() {\n myList.clear();\n\n //then\n assertTrue(myList.isEmpty());\n assertEquals(\"[]\", myList.toString());\n }", "public static String[] stripNullStrings(String[] str) {\n\t\tif (str==null) return null;\n\n\t\t// propagate null strings to the end\n\t\tfor (int i=str.length-1; i>0; i--) {\n\t\t\tif (str[i]!=null&&str[i-1]==null) {\n\t\t\t\tstr[i-1]=str[i];\n\t\t\t\tstr[i]=null;\n\t\t\t}\n\t\t}\n\n\t\tint numvalid=0;\n\t\tfor (int i=0; i<str.length; i++)\n\t\t\tif (str[i]!=null) numvalid=i+1;\n\n\t\tif (numvalid==0) return null;\n\n\t\tString tmp[]=new String[numvalid];\n\t\tSystem.arraycopy(str, 0, tmp, 0, numvalid);\n\t\treturn tmp;\n\t}", "public static void filterNonWords(final List<String> tokens) {\n\tfor (int i = 0; i < tokens.size(); i++) {\n\t if (StringUtils.isComposedOf(tokens.get(i), ALL_DELIMS)) {\n\t\ttokens.remove(i);\n\t }\n\t}\n }", "private List<String> rmDupInfo(List<String> fields) {\n Set<String> seen = new HashSet<>();\n List<String> uniqueNonEmptyFields = new ArrayList<>();\n for (String i : fields) {\n if (i.isEmpty() || i.equals(\".\")) {\n continue;\n } else {\n String fieldName = i.split(\"=\")[0];\n if (!seen.contains(fieldName)) {\n uniqueNonEmptyFields.add(i);\n seen.add(fieldName);\n }\n }\n }\n return uniqueNonEmptyFields;\n }", "public Builder clearList() {\n list_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x08000000);\n onChanged();\n return this;\n }", "public static Set<String> trim(Set<String> strings) {\n if (notNull(\"strings\", strings).isEmpty()) {\n return strings;\n }\n Set<String> result;\n if (strings instanceof SortedSet<?>) {\n result = new TreeSet<>();\n } else {\n result = new LinkedHashSet<>();\n }\n for (String s : strings) {\n String trimmed = s.trim();\n if (!trimmed.isEmpty()) {\n result.add(trimmed);\n }\n }\n return result;\n }", "public static String[] discard(String[] list, int index) {\n\t\treturn list;\n\t}", "private ArrayList<String> getArrayListEmptiesToo(String header) {\r\n ArrayList<String> headers = new ArrayList<>();\r\n int i = 0;\r\n int j;\r\n String head;\r\n while (header.indexOf(\"\\t\", i) > 0) {\r\n j = header.indexOf(\"\\t\", i);\r\n head = header.substring(i, j);\r\n //A.log(\"getArrayListEmptiesToo() head:\" + head + \" i:\" + i + \" j:\" + j);\r\n i = j + 1;\r\n if (\"\".equals(head)) {\r\n head = \" \";\r\n //s_log.warn(\"getArrayListEmptiesToo() head!:\" + head);\r\n }\r\n headers.add(head);\r\n }\r\n\r\n head = header.substring(i);\r\n if (\"\".equals(head)) {\r\n head = \" \";\r\n }\r\n //s_log.warn(\"getArrayListEmptiesToo() head:\" + head + \" i:\" + i);\r\n headers.add(head);\r\n\r\n //s_log.warn(\"getArrayListEmptiesToo() size:\" + headers.size() + \" header:\" + headers);\r\n return headers;\r\n }", "public static String[] removeNullStrArrItems(String[] arr) {\n return Arrays.stream(arr).filter(Objects::nonNull).toArray(String[]::new);\n }", "private List<String> getCleanedParameters(final List<String> parameters) {\n final List<String> params = new ArrayList<String>(parameters);\n removeEmptyElements(params);\n removeCommentsFromParameters(params);\n return params;\n }", "@Test\r\n\tvoid emptyString() {\r\n\t\tassertEquals(\"\",removingAObj.removingA(\"\"));\r\n\t}", "public static ArrayList<String> extractTags(String tags) {\n\n // probably more efficent ways to do this.\n //\n // whitespace = re.compile('\\s')\n\n tags = tags.replaceAll(\"\\\\s\", \"\");\n String tagArray[] = tags.split(\",\");\n\n // let's clean it up, removing the empty string and removing dups\n ArrayList<String> cleaned = new ArrayList<>();\n for (String tag : tagArray) {\n if (!tag.equals(\"\") && !cleaned.contains(tag)) {\n cleaned.add(tag);\n }\n }\n\n return cleaned;\n }", "private static void skipSplitAdd(String s, List<String> list) {\n String tmp[] = s.split(\" \");\n\n for (int i = 1; i < tmp.length; i++) {\n list.add(tmp[i]);\n\n // System.out.println(tmp[i]);\n }\n }", "public static void main(String[] args) \r\n{\n\tList<Integer> numbers = Arrays.asList(3, 2, 2, 3, 7, 3, 5);\r\n\r\n\t//get list of unique squares\r\n\tList<Integer> squaresList = numbers.stream().map( i -> i*i).distinct().collect(Collectors.toList());\r\n\tSystem.out.println(squaresList);\r\n//\tList<String>strings = Arrays.asList(\"abc\", \"\", \"bc\", \"efg\", \"abcd\",\"\", \"jkl\");\r\n//\r\n//\t//get count of empty string\r\n////\tlong count = strings.stream().filter(string -> string.isEmpty()).count();\r\n////\tSystem.out.println(count);\r\n//\tList<String>strings1 = Arrays.asList(\"abc\", \"\", \"bc\", \"efg\", \"abcd\",\"\", \"jkl\");\r\n//\tList<String> filtered = strings1.stream().filter(string -> !string.isEmpty()).collect(Collectors.toList());\r\n//\r\n//\tSystem.out.println(\"Filtered List: \" + filtered);\r\n//\tString mergedString = strings1.stream().filter(string -> !string.isEmpty()).collect(Collectors.joining());\r\n//\tSystem.out.println(\"Merged String: \" + mergedString);\r\n//}\r\n}", "static String emptyToNull(String value) {\n if (value == null || value.trim().isEmpty())\n return null;\n return value.trim();\n }", "public void removeEmptyItems(){\n\t\tfor(int i=0; i<currentOrder.getItems().size();i++){\n\t\t\tif(currentOrder.getItems().get(i).getQuantity()<=0){\n\t\t\t\tcurrentOrder.getItems().remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t}", "public static Set<CharSequence> splitUniqueNoEmpty(char delim, CharSequence seq) {\n Set<CharSequence> result = new LinkedHashSet<>();\n split(delim, seq, (s) -> {\n s = trim(s);\n if (s.length() > 0) {\n result.add(s);\n }\n return true;\n });\n return result;\n }", "public static boolean emptyArray(String[] x) {\n for (String entry : x) {\n if (entry.trim().length() > 0) {\n return false;\n }\n }\n\n return true;\n }", "public static boolean removeNullAndEmptyElement(Set<String> set) {\n set.remove(null);\n set.remove(\"\");\n return set.isEmpty();\n }", "public static ArrayList<String> removeDuplicates(ArrayList<String> elements){\n\n String str=\"\";\n for(int i=0; i < elements.size(); i++){\n if(str.contains(elements.get(i))){\n elements.remove(i);\n i--;\n }else{\n str += elements.get(i);\n }\n }\n return elements;\n }", "private ArrayList<String> removeCommas(ArrayList<String> tokens) {\n ArrayList<String> newTokens = new ArrayList<>();\n for (String s : tokens) {\n if (s.contains(\",\")) {\n s = s.replace(\",\", \"\");\n }\n newTokens.add(s);\n }\n\n return newTokens;\n }", "private void trimWhitespaces() {\n \n while(currentIndex < dataLength && Character.isWhitespace( data[currentIndex] )) {\n ++currentIndex;\n }\n }", "public static void compressList (List<String> ls){\n\t\tListIterator<String> itr = ls.listIterator();\n\t\twhile (itr.hasNext()){\n\t\t\tString currentStr = itr.next();\n\t\t\t\n\t\t\tString modCurrent=currentStr.replaceAll(\"\\\\s\", \"\");\n\t\t\titr.set(modCurrent);\n\t\t\tif ((modCurrent.length() == 0)||(modCurrent.startsWith(\"//\"))) {\n\t\t\t\titr.remove();\n\t\t\t} \n\t\t\t\n\t\t\telse if (modCurrent.contains(\"//\")) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tint ind = modCurrent.indexOf(\"//\");\n\n\t\t\t String s2=modCurrent.substring(0, ind);\n\t\t\t\titr.set(s2);\n\t\t\t}\n\t\t}\n\t}", "public void removeAll() \r\n\t{\t\r\n\t\tbookArray = new String[MAXSIZE];\r\n\t\tnumItems = 0;\r\n\t}", "public static String[] trim(String[] in) {\n if (notNull(\"in\", in).length == 0) {\n return in;\n }\n String[] result = new String[in.length];\n System.arraycopy(in, 0, result, 0, result.length);\n// String[] result = ArrayUtils.copyOf(in);\n int last = 0;\n for (int i = 0; i < result.length; i++) {\n String trimmed = result[i].trim();\n if (!trimmed.isEmpty()) {\n result[last++] = trimmed;\n }\n }\n if (last == 0) {\n return new String[0];\n }\n if (last != in.length) {\n result = Arrays.copyOf(result, last);\n }\n return result;\n }", "public void clear(){\n strings.clear();\n }", "public void removeAll(String c) {\r\n int[] elements = new int[(c.length() / 2) + 1];\r\n if (containsAll(c)) {\r\n for (int i = 0; i < elements.length; i++) {\r\n elements[i] = Integer.parseInt(c.substring(0, c.indexOf(\",\")));\r\n c = c.substring((c.indexOf(\",\") + 1));\r\n remove(elements[i]);\r\n }\r\n } else {\r\n throw new RuntimeException(\"some or all elements dont exist in List.\");\r\n }\r\n }", "public void makeEmpty(){\n for(int element = set.length - 1; element >= 0; element--){\n remove(set[element]);\n }\n }", "public static void makeBlanks(char[] list) {\n\t\tfor (int i = 0; i < list.length; i++) {\n\t\t\tlist[i] = '*';\n\t\t}\n\t}", "public void makeEmpty() {\n // remove Squares until empty\n while (!exploreList.isEmpty()) {\n exploreList.getNext();\n }\n }", "public static void main(String[] args) {\n\n ArrayList<String> strArray = new ArrayList<>();\n strArray.add(\"man\");\n strArray.add(\"hi\");\n strArray.add(\"yo\");\n strArray.add(\"hi\");\n String strToBeRemoved =\"hi\";\n\n removeAll(strArray, strToBeRemoved);\n\n\n }", "@Test\r\n\tpublic void testConvertForTokenizationWithEmptyArrayList()\r\n\t{\r\n\t\tArrayList<String> testArrayList = new ArrayList<String>();\r\n\t\t\r\n\t\tString testSentence = UtilService.convertForTokenization(testArrayList);\r\n\t\t\r\n\t\tassertNotNull(testSentence);\r\n\t\tassertEquals(0, testSentence.length());\r\n\t}", "@Override\n\tpublic String clean(String input) {\n\t\tinput = input.replaceAll(removeCommonWords.toString(), \" \");\n\t\t//input = input.replaceAll(removeSingleCharacterOrOnlyDigits.toString(), \" \");\n\t\t//input = input.replaceAll(removeTime.toString(), \" \");\n\t\t//input = input.replaceAll(\"(\\\\s+>+\\\\s+)+\", \" \");\n\t\treturn input;\n\t}", "private void updateEmptyLists() {\n \n for(int i = 0; i < this.allLists.size(); i++) {\n if(this.allLists.get(i).size() == 0) {\n for(int c = 0; c < this.dataTable.getRowCount(); c++) {\n this.allLists.get(i).add(\"\");\n }\n }\n }\n }", "public ArrayList<String> sampleArrayList(){\n ArrayList<String> myArrayListString = new ArrayList<String>();\n myArrayListString.add(\"dog\");\n myArrayListString.add(\"cat\");\n myArrayListString.add(null);\n myArrayListString.add(\"anotherDog\");\n myArrayListString.add(null);\n myArrayListString.add(\"catty43\");\n myArrayListString.add(\"test14.22\");\n return myArrayListString;\n }", "@Override\n public void clear() {\n wordsArray = new String[0];\n }", "public static List<String> funWithAnagrams(List<String> s) {\n \tSet<String> dontRemove = new HashSet<String>();\n Set<String> removeMe = new HashSet<String>();\n for (String s1 : s) {\n char temp1[] = s1.toCharArray();\n Arrays.sort(temp1);\n String sort1 = new String(temp1);\n for (String s2 : s) {\n \tif (s1.equalsIgnoreCase(s2)) continue;\n \telse {\n\t // sort both strings\n\t char temp2[] = s2.toCharArray();\n\t Arrays.sort(temp2);\n\t String sort2 = new String(temp2);\n\t // compare sorted strings\n\t if (!dontRemove.contains(s1) && !dontRemove.contains(s2) && sort1.equalsIgnoreCase(sort2)) {\n\t// \tSystem.out.println(\"sort1 \" + sort1 + \" \\n\" + \"sort2 \" + sort2 );\n\t removeMe.add(s2);\n\t System.out.println(\"remove \" + s2);\n\t dontRemove.add(s1);\n\t System.out.println(\"dontRemove \" + s1);\n\t }\n \t}\n }\n }\n for (String s3 : removeMe) {\n \tSystem.out.println(\"remove : \" + s3);\n s.remove(s3);\n }\n System.out.println(\"\" + s);\n return s;\n }", "public static String trimToEmpty(String str) {\n\t\treturn str == null ? EMPTY : str.trim();\n\t}", "public static <T> List<T> removeAllNulls(final List<T> list) {\n return list.stream().filter(Objects::nonNull).collect(Collectors.toList());\n }", "public static String RemoveDublicates(String str) {\n String result = \"\"; //storing result of the loop\n for (int i = 0; i < str.length(); i++) {\n char ch = str.charAt(i);\n if (!result.contains(\"\" + ch)) { // this is char so we need convert comcating to empty string\n result += ch;\n }\n\n }\n return result;\n }", "@Override\n public String toString() {\n return list.toString().replace(\"[\",\"\").replace(\"]\",\"\");\n }", "public List<String> removeInvalidParentheses(String s) {\n List<String> res = new ArrayList<>();\n if (null == s || s.length() == 0) {\n res.add(\"\");\n return res;\n }\n\n int[] p = getInvalid(s);\n\n helper(s, res, 0, p[0], p[1]);\n\n return res;\n }", "public static String[] parseBlankSeparatedList(String line) {\n \tArrayList myList = new ArrayList();\n \t\n \tString myLine = new String(line);\n \t\n \twhile(myLine.contains(\" \")) {\n \t\tString item = myLine.substring(0, myLine.indexOf(\" \"));\n \t\tmyList.add(item);\n \t\tmyLine = myLine.substring((myLine.indexOf(\" \") + 1));\n \t\tmyLine = StringUtilities.removeEdgeWhitespace(myLine);\n \t}\n \tmyLine = StringUtilities.removeEdgeWhitespace(myLine);\n \tmyList.add(myLine);\n\n \tString[] list = new String[myList.size()];\n \tfor(int i = 0; i < myList.size(); i++) {\n \t\tlist[i] = new String((String)myList.get(i));\n \t}\n \t\n \treturn list;\n }", "public static String replaceAllWithEmpty(String textToClear, String... allToClear) {\n String currentText = textToClear;\n for (String toRemove : allToClear) {\n currentText = currentText.replace(toRemove, \"\");\n }\n return currentText;\n }", "public void clear() {\r\n\t\tif (this.strings != null) {\r\n\t\t\tthis.strings.clear();\r\n\t\t\tthis.strings = null;\r\n\t\t}\r\n\t}", "private String[] fixStringArray(String[] input) {\n\n List<String> loutput = new ArrayList<String>();\n\n for (String st : input) {\n if (!\"\".equalsIgnoreCase(st)) {\n loutput.add(st);\n }\n }\n String[] output = new String[loutput.size()];\n for (int i = 0; i < loutput.size(); i++) {\n output[i] = loutput.get(i);\n }\n return output;\n }", "private String setNullIfEmpty(String in) {\n if (in != null && in.trim().length() == 0) {\n return null;\n }\n return in;\n }", "@Override\n\tpublic List<String> getAllString() {\n\t\treturn null;\n\t}", "@Test\n public void testRemoveAll_Not_Empty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(2);\n instance.add(3);\n instance.add(1);\n instance.add(2);\n\n Collection c = Arrays.asList(2, 3);\n instance.removeAll(c);\n\n int expectedResult = 1;\n assertEquals(expectedResult, instance.size());\n\n }", "public void clearWordList () {\r\n words.clear ();\r\n Components.wordList.getContents ().removeAllElements ();\r\n }", "public static List<String> removeInvalidArguments(String[] args){\n\t\tList<String> validArguments = new ArrayList<String>();\n\n\t\tfor(String argument : args) {\n\t\t\targument = argument.replaceAll(\"\\\\s+\", \"\");\n\t\t\tif(argument.length() > 0) {\n\t\t\t\tvalidArguments.add(argument);\n\t\t\t}\n\t\t}\n\t\treturn validArguments;\n\t}", "public void clear() {\n\t\twordList.removeAll(wordList);\n\t\t// TODO Add your code here\n\t}", "private String trimIgnoreChars(StringBuilder tokenBuilder) {\n\t\t\tint lastCharacterIdx = tokenBuilder.length()-1;\n\t\t\twhile(tokenBuilder.length()>0 && \n\t\t\t\t\tIGNORE_CHARS.contains(Character.valueOf(tokenBuilder.charAt(lastCharacterIdx)))) {\n\t\t\t\ttokenBuilder.deleteCharAt(lastCharacterIdx);\n\t\t\t\tlastCharacterIdx--;\n\t\t\t}\n\t\t\n\t\t\twhile(tokenBuilder.length()>0 && \n\t\t\t\t\tIGNORE_CHARS.contains(Character.valueOf(tokenBuilder.charAt(0))))\n\t\t\t\ttokenBuilder.deleteCharAt(0);\n\t\t\t\n\t\t\treturn tokenBuilder.toString();\n\t\t}", "public void remove(String s) {\n boolean remove = false;\n for (int i = 0; i < size && !remove; i++) {\n if (elements[i] == s) {\n remove = true;\n elements[i] = null;\n }\n }\n }", "public static List<String> stringList() {\n\t\tList<String> list = new ArrayList<String>();\n\t\tlist.add(\"abdxxx\");\n\t\tlist.add(\"xxxxx\");\n\t\tlist.add(\"hi\");\n\t\tlist.add(\"SmoothStack\");\n\t\tlist.add(\"Wyatt x Wyatt x\");\n\t\treturn list;\n\t}", "static void trim() {\n if (a.size() == 0)\n return;\n Object o = a.get(a.size() - 1);\n StringBuilder sb = new StringBuilder();\n if (o instanceof Token)\n sb.append( ((Token)o).image );\n else\n sb.append((String)o);\n while(sb.length() > 0 && sb.charAt(sb.length() - 1) == ' ')\n sb.deleteCharAt(sb.length() - 1);\n a.set(a.size() - 1, sb.toString() );\n }", "@Test\n void cleanText01() {\n String responseSymbols = \"hej ,den. der ++ super-mand\";\n String[] responseSymbolsClean = {\"hej\", \"den\", \"der\", \"supermand\"};\n List<String> cleaned = preprocessor.cleanText(responseSymbols);\n assertArrayEquals(responseSymbolsClean, cleaned.toArray());\n }", "protected boolean checkEmptyList(){\n boolean emptyArray = true;\n String empty= alertList.get(AppCSTR.FIRST_ELEMENT).get(AppCSTR.NAME);\n if(!empty.equals(\"null\") && !empty.equals(\"\")) {\n emptyArray = false;\n }\n return emptyArray;\n }", "@Test\n\tpublic void testRemoveAllStopWords() {\n\t\tString result;\n\t\ttry {\n\t\t\tresult = sp.removeStopWords(stopWords);\n\t\t\tassertEquals(\"Strings not equal. They should be empty.\", \"\", result);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void makeEmpty();", "public void makeEmpty();", "boolean canMatchEmptyString() {\n return false;\n }", "@Test\n public void testRemoveDuplicates() {\n System.out.println(\"removeDuplicates\");\n assertArrayEquals(\"abcd\".toCharArray(), q1_3.removeDuplicates(\"abcd\".toCharArray()));\n assertArrayEquals(null, q1_3.removeDuplicates(null));\n assertArrayEquals(\"a****\".toCharArray(), q1_3.removeDuplicates(\"aaaaa\".toCharArray()));\n assertArrayEquals(\"a**b**\".toCharArray(), q1_3.removeDuplicates(\"aaabbb\".toCharArray()));\n assertArrayEquals(\"abcdefg*\".toCharArray(), q1_3.removeDuplicates(\"abcdefga\".toCharArray()));\n assertArrayEquals(\"abcdefg*\".toCharArray(), q1_3.removeDuplicates(\"abcdefgb\".toCharArray()));\n }", "java.util.List<java.lang.String> getUnreachableList();", "public void makeEmpty() {\r\n\t\tArrays.fill(list, -1);\r\n\t}", "private String removeLeadingWhitespace(String input) {\n for (int index = 0; index < input.length(); index++) {\n if (!Character.isWhitespace(input.charAt(index))) {\n return input.substring(index);\n }\n }\n return input;\n }", "public static Value makeAnyStrExcluding(Collection<String> strings) {\n Value r = new Value(makeAnyStr());\n r.excluded_strings = newSet();\n r.excluded_strings.addAll(strings);\n return canonicalize(r);\n }", "public static void main(String[] args) throws Exception {\n ArrayList<String> list = new ArrayList<String>();\n //populating the ArrayList\n list.add(\"apples\");\n list.add(\"mangoes\");\n list.add(\"oranges\");\n //Getting the Iterator object of the ArrayList\n ListIterator<String> it = list.listIterator();\n while(it.hasNext()) {\n it.add(\"\");\n }\n }", "private void skipBlankSpaces() {\n while (currentIndex < this.data.length) {\n if (!Character.isWhitespace(data[currentIndex])) {\n break;\n }\n currentIndex++;\n }\n }", "public static String[] trim(String[] ss)\r\n {\r\n if (ss == null)\r\n return ss;\r\n \r\n for (int i = 0; i < ss.length; i++)\r\n {\r\n ss[i] = TextUtil.trim(ss[i]);\r\n }\r\n return ss;\r\n }", "String getStringList();" ]
[ "0.74106956", "0.7229825", "0.72038794", "0.7034773", "0.6862968", "0.66025966", "0.6139685", "0.60667825", "0.60389584", "0.6027256", "0.6026761", "0.59734565", "0.596514", "0.5940624", "0.5919948", "0.5915492", "0.5878669", "0.58565587", "0.57814085", "0.5759973", "0.5668525", "0.5643462", "0.56403285", "0.56372076", "0.5620118", "0.5608095", "0.5558832", "0.55544883", "0.55367285", "0.5512757", "0.5505313", "0.550251", "0.5501551", "0.5497277", "0.54644924", "0.5454892", "0.54226017", "0.54108804", "0.5400847", "0.53986704", "0.5395064", "0.538921", "0.5383336", "0.5379873", "0.53609073", "0.5350872", "0.53463733", "0.5340784", "0.5340704", "0.53386974", "0.53318334", "0.53108025", "0.5303724", "0.5303212", "0.5295012", "0.52893", "0.52887446", "0.5285069", "0.52846307", "0.5278989", "0.52737486", "0.52698165", "0.5263117", "0.5240496", "0.52394766", "0.5237843", "0.52319133", "0.52147126", "0.5205359", "0.5204734", "0.5196565", "0.5195093", "0.5193097", "0.5191534", "0.5181191", "0.5173495", "0.5156134", "0.5140489", "0.513823", "0.5130321", "0.5128178", "0.5118735", "0.511541", "0.51098806", "0.5106463", "0.5104905", "0.50993794", "0.50951576", "0.50808054", "0.50808054", "0.50655514", "0.50636816", "0.5059304", "0.5059282", "0.50586426", "0.50574225", "0.5055567", "0.5050186", "0.50462514", "0.5042686" ]
0.64454925
6
/ Find process: Get find criteria find in 'eventsListFind' matches and copy them 'eventsListResults' (as result(i) ) Find stack: 'Source' 'Result' 0 =eventsListFind =result0 1 =result0 =result1 2 : : to back up the stack just load source from stack index current1 so after a find operation the user can search again (going one deeper) or back up to previous search or to exit (at this point eventslistFind can not be deleted because it is the Eventslist) when the whole stack is popped we probably have to execute just one line: mainAppScreen.setEventList(eventsListFind, "List to search"); unless other settings have been changed. / Results from SearchActivity.
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { Log.i(TAG, "onActivityResult()"); String str = "Req: "+requestCode+","+" Res: "+resultCode+","+" data: "+data; Log.e("Result from SearchActivity: ", str); String findKey = null; String findValue = null; long lDate = 0; if (resultCode == RESULT_OK) { if (requestCode == Constants.FIND_REQ) { findKey = data.getStringExtra(Constants.FIND_KEY); findValue = data.getStringExtra(Constants.FIND_VALUE); Log.v(TAG, "Search result: key: "+ findKey +" value: "+ findValue ); } if (findKey.compareTo(Constants.EVENT_DATE) == 0) { lDate = data.getLongExtra("long_date", 0); Log.v(TAG, "Search result: key: "+ findKey + " value: " + lDate ); } else //---not a date ---// { // yet another ?? code Log.v(TAG, "Criteria returned, key:" + findKey + " value: " + findValue ); } //--- end Find Date or Keyword ---// List<BELEvent> findEventsList1 = null; //from getfindlist in EBMainActivity (current or saved) findEventsList1 = new ArrayList<BELEvent>(eventsListFind);// = m_webEventsList); Collections.copy(findEventsList1, eventsListFind); // no need: after construct w/collection copy is already made FindHandler fH = new FindHandlerImpl(this, m_mainAppScreen); Vector<BELEvent> findEventsList2 = new Vector<BELEvent> ( findEventsList1 ); // Pass the result back down the line. // JGB - Ticket # 86 : Date search fails to return valid events if (lDate == 0) eventsListResult = fH.doFind( findEventsList2, findKey, findValue); else eventsListResult = fH.doFind( findEventsList2, lDate ); //eventsListResult = fH.doFind( findEventsList2, findKey, findValue); m_mainAppScreen.setEventList(eventsListResult, "Search Result"); str = "Found " + eventsListResult.size(); Log.e("Search result", str); MakeToast.makeToast(this, str, MakeToast.LEVEL_USER); m_statusView = (TextView) (m_mainAppView.findViewById(R.id.status_line)); m_statusView.setText(str); setResult( RESULT_OK ); } // RESULT_OK else { //--- not RESULT_OK --- // failed to return Find criteria Log.i(TAG, "Unknown Find Criteria"); setResult( RESULT_CANCELED ); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startFilterCriteria() {\n\n\t\tLog.i(TAG, \"startFilterCriteria()\");\n\n\t\tFindUtilsImpl utils = new FindUtilsImpl();\n\t\tSet<String> tSet = utils.getTypeSet((ArrayList<BELEvent>) eventsListFind);\n\t\tArrayList<String> tList = new ArrayList<String>(cleanSet(tSet));\n\n\t\tString str = \"start FilterCriteria.class\";\n\t\tLog.i(TAG, \"Search Activity: \" +str);\n\n\t\t\tIntent intent = new Intent(context, FilterCriteria.class);\n\t\t\tintent.putStringArrayListExtra(\"TypesKey\", tList);\n\t\t\t//TODO capture activity not found exception\n\t\t\t//\t((Activity) context).startActivityForResult(intent,Constants.FIND_REQ);\n\t\t\tstartActivityForResult(intent,Constants.FIND_REQ);\n\n\t\t\tstr = \"startActivity(intent,Constants.FIND_REQ)\";\n\t\t\t//\tstr = \"startActivityForResult(intent,Constants.FIND_REQ)\";\n\t\t\tLog.e(\"Search Dlg: \", str);\n\t\t}", "private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH);\n searchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n searchIntent.putExtra(SearchManager.QUERY, queryList.get(0));\n this.startActivity(searchIntent);\n }\n }", "protected void retrieveMatchingWorkItems(List searchResults) throws NbaBaseException { \t//SPR2992 changed method signature\n\t\t//NBA213 deleted code\n\t\tListIterator results = searchResults.listIterator();\n\t\tsetMatchingWorkItems(new ArrayList());\t\t//SPR2992\n\t\twhile (results.hasNext()) {\n\t\t\tNbaTransactionSearchResultVO resultVO = (NbaTransactionSearchResultVO) results.next();\n\t\t\tNbaAwdRetrieveOptionsVO retOpt = new NbaAwdRetrieveOptionsVO();\n\t\t\tretOpt.setWorkItem(resultVO.getTransactionID(), false);\n\t\t\tretOpt.requestSources();\t\t\t\t \n\t\t\tretOpt.setLockWorkItem();\n\t\t\tNbaDst aWorkItem = retrieveWorkItem(getUser(), retOpt);\t//SPR3009, NBA213\n\t\t\tgetMatchingWorkItems().add(aWorkItem);\t//SPR2992\n\t\t}\n\t\t//NBA213 deleted code\n\t}", "private void findNearByEvents() {\n LatLng latLng = mMapFragment.getCenterOfScreen();\n double longitude = latLng.longitude;\n double latitude = latLng.latitude;\n\n int spEventsPosition = mEventsSpinner.getSelectedItemPosition();\n int spTimesPosition = mTimesSpinner.getSelectedItemPosition();\n\n Log.e(\"MainAct\", \"Lat: \" + latitude + \" Lon: \" + longitude);\n mEventInteractor = new EventInteractor(this);\n EventSearchRequest eventSearchRequest = new EventSearchRequest();\n eventSearchRequest.setLat(String.valueOf(latitude));\n eventSearchRequest.setLon(String.valueOf(longitude));\n eventSearchRequest.setEventTime(spTimesPosition);\n eventSearchRequest.setEventType(spEventsPosition);\n mEventInteractor.eventSearch(eventSearchRequest, new EventSearchListener() {\n @Override\n public void onEventSearch(EventSearchResponse response) {\n mBottomSheetListFragment.refreshEvents(response.getEvents());\n mMapFragment.getEventsAndPin(response.getEvents());\n }\n\n @Override\n public void onError(String errorMessage) {\n showErrorMessage(errorMessage);\n }\n\n @Override\n public void onBeforeRequest() {\n showWaitingDialog();\n }\n\n @Override\n public void onAfterRequest() {\n dismissWaitingDialog();\n }\n });\n }", "private void find(boolean forward) {\n \tif (this.currentFindResultPage != null) {\n \t\t/* searching again */\n \t\tint nextResultNum = forward ? this.currentFindResultNumber + 1 : this.currentFindResultNumber - 1;\n \t\tif (nextResultNum >= 0 && nextResultNum < this.pagesView.getFindResults().size()) {\n \t\t\t/* no need to really find - just focus on given result and exit */\n \t\t\tthis.currentFindResultNumber = nextResultNum;\n \t\t\tthis.pagesView.scrollToFindResult(nextResultNum);\n \t\t\tthis.pagesView.invalidate();\n \t\t\treturn;\n \t\t}\n \t}\n\n \t/* finder handles next/prev and initial search by itself */\n \tFinder finder = new Finder(this, forward);\n \tThread finderThread = new Thread(finder);\n \tfinderThread.start();\n }", "private void search() {\n if (dateFind.getValue() == null) {\n dateFind.setValue(LocalDate.now().minusDays(DEFAULT_PERIOD));\n }\n Long days = ChronoUnit.DAYS.between(dateFind.getValue(), LocalDate.now());\n final List<Project> findProject = ServiceFactory.getProjectService().getFindProject(days, comboProject.getValue());\n observableProjects.clear();\n observableProjects.addAll(findProject);\n table.setItems(observableProjects);\n }", "protected NbaSearchVO lookupWork() throws NbaBaseException {\t//SPR2992 changed method signature\n\t\t//NBA213 deleted code\n\t\t\tNbaSearchVO searchVO = new NbaSearchVO();\n\t\t\tString entryPoints[] = { NbaVpmsAdaptor.EP_REIN_PRIMARY_SEARCH_FIELDS, NbaVpmsAdaptor.EP_REIN_SECONDARY_SEARCH_FIELDS };\n\t\t\tfor (int i = 0; i < entryPoints.length; i++) {\n\t\t\t\tNbaVpmsResultsData data = getDataFromVpms(entryPoints[i]);\n\t\t\t\t//begin SPR2806\n\t\t\t\tArrayList aList = data.getResultsData();\n\t\t\t\t//check if sufficient lob data is present on work, if not just skip this matching criteria\n\t\t\t\tif (!checkLobPresence(getWork().getNbaLob(), aList)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tsetLookupDataFound(true);\t//SPR2992\t\t\t\t\t\n\t\t\t\tsearchVO.setNbaLob(getNbaLobForLookup(aList));\n\t\t\t\t//Code moved ALS5171\n\t\t\t\t// end SPR2806\n\t\t\t\tif (getWork().getTransaction().getWorkType().equalsIgnoreCase(A_WT_REINSURANCE)) {\n\t\t\t\t\tsearchVO.setWorkType(A_WT_TEMP_REINSURANCE);\n\t\t\t\t\tsearchVO.setStatus(A_STATUS_REINSURANCE_INDEXED);//ALS5171\n\t\t\t\t} else {\n\t\t\t\t\tsearchVO.setWorkType(A_WT_REINSURANCE);\n\t\t\t\t\tif(isAdditionalInfo) {//ALS5494\n\t\t\t\t\t\tsearchVO.setQueue(END_QUEUE);//ALS5494\n\t\t\t\t\t}else {\n\t\t\t\t\t\tsearchVO.setStatus(A_STATUS_REINSURANCE_ORDERED);//ALS5171\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsearchVO.setResultClassName(\"NbaTransactionSearchResultVO\");\n\t\t\t\tsearchVO = lookupWork(getUser(), searchVO);\t//SPR3009, NBA213\n\t\t if (searchVO.isMaxResultsExceeded()){\t//NBA146\n\t\t throw new NbaBaseException(NbaBaseException.SEARCH_RESULT_EXCEEDED_SIZE, NbaExceptionType.FATAL);\t//NBA146\n\t\t }\t//NBA146\n\t\t\t\tif (!(searchVO.getSearchResults().isEmpty())) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn searchVO;\n\t\t//NBA213 deleted code\n\t}", "public boolean findClubEvent (\n String findButtonText, \n String findString, \n boolean showDialogAtEnd) {\n \n boolean modOK = modIfChanged();\n boolean found = false;\n \n if (modOK) {\n String notFoundMessage;\n if (findString != null && findString.length() > 0) {\n if (findButtonText.equals (FIND)) {\n notFoundMessage = \"No Club Events Found\";\n position.setIndex (-1);\n } else {\n notFoundMessage = \"No further Club Events Found\";\n }\n position.incrementIndex (1);\n String findLower = findString.toLowerCase();\n String findUpper = findString.toUpperCase();\n while (position.hasValidIndex(clubEventList) && (! found)) {\n ClubEvent clubEventCheck = clubEventList.get (position.getIndex());\n found = clubEventCheck.find (findLower, findUpper);\n if (found) {\n foundClubEvent = clubEventCheck;\n } else {\n position.incrementIndex (1);\n }\n } // while still looking for next match\n if (found) {\n findInProgress();\n lastTextFound = findString;\n position = clubEventList.positionUsingListIndex (position.getIndex());\n positionAndDisplay();\n statusBar.setStatus(\"Matching Club Event found\");\n } else {\n JOptionPane.showMessageDialog(this,\n notFoundMessage,\n \"OK\",\n JOptionPane.WARNING_MESSAGE,\n Home.getShared().getIcon());\n noFindInProgress();\n lastTextFound = \"\";\n statusBar.setStatus(notFoundMessage);\n foundClubEvent = null;\n }\n } // end if we've got a findBySortKey string\n }\n return found;\n }", "private void searchFunction() {\n\t\t\r\n\t}", "public GameList getSearchResult(){ return m_NewSearchResult;}", "public void getEventByName()\r\n {\r\n \r\n boolean b=false;\r\n \r\n \r\n String output = \"\";\r\n output=\"Id \"+\"Event Name \"+\"Organizer \"+\"Date \"+\" Fees($)\"+\"\\n\"; \r\n \r\n \r\n List<Event> list2=new ArrayList();\r\n do{\r\n \r\n List<Event> list1=fillArrayList();\r\n \r\n \r\n String string=JOptionPane.showInputDialog(\"Enter Event Name to search Event by Name\");\r\n \r\n for(Event e:list1)\r\n {\r\n if(e.getName().equals(string))\r\n {\r\n list2.add(e);\r\n b=true;\r\n break;\r\n }\r\n else\r\n {\r\n \r\n b=false;\r\n }\r\n }\r\n if(!b)\r\n JOptionPane.showMessageDialog(null,\"Event \"+string+\" Does not exist! please try again\",\"Error\",JOptionPane.ERROR_MESSAGE);\r\n }while(!b);\r\n \r\n \r\n for(int i = 0; i<list2.size(); i++){\r\n \r\n String everything2 = list2.get(i).toString();\r\n\r\n output += everything2+\"\\n\"; \r\n }\r\n JOptionPane.showMessageDialog(null,output,\"Event\",JOptionPane.INFORMATION_MESSAGE);\r\n \r\n allMenuClass.userMenu();\r\n }", "private void createSearchListener(){\n textWatcher = new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n\n }\n\n @Override\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n\n }\n\n @Override\n public void afterTextChanged(Editable editable) {\n //make the search query lowercase\n search = editable.toString().toLowerCase();\n\n //make sure we actually have data loaded into the adapter\n if(isDataLoaded) {\n //make sure the search bar isn't empty\n if (search.length() > 0) {\n //clear the arraylist of results\n acesResults.clear();\n awsResults.clear();\n elseResults.clear();\n rcncResults.clear();\n\n activeSearch = true;\n\n //iterate over each list of projects and populate the results lists\n for (int j = 0; j < 4; j++) {\n switch (j) {\n case 0:\n for (Project p : acesList) {\n if (p.name.toLowerCase().contains(search) || p.description.toLowerCase().contains(search))\n acesResults.add(p);\n }\n break;\n case 1:\n for (Project p : awsList) {\n if (p.name.toLowerCase().contains(search) || p.description.toLowerCase().contains(search))\n awsResults.add(p);\n }\n break;\n case 2:\n for (Project p : elseList) {\n if (p.name.toLowerCase().contains(search) || p.description.toLowerCase().contains(search))\n elseResults.add(p);\n }\n break;\n case 3:\n for (Project p : rcncList) {\n if (p.name.toLowerCase().contains(search) || p.description.toLowerCase().contains(search))\n rcncResults.add(p);\n }\n break;\n }\n }\n\n //set the search results\n setProjectSearchResults(acesResults, awsResults, elseResults, rcncResults);\n } else {\n //when no text is available, reuse original adapter\n mProjectsListView.setAdapter(mAdapter);\n activeSearch = false;\n mProjectsListView.expandGroup(0);\n mProjectsListView.expandGroup(1);\n mProjectsListView.expandGroup(2);\n mProjectsListView.expandGroup(3);\n\n }\n //If data was never set in the adapter, display a message explaining this. Also, remove \"this\" TextChangedListener so we don't keep displaying\n //after every character that's entered\n }else{\n Toast.makeText(main, \"Project data may not have been loaded. Make sure you are connected to the Internet and try again.\", Toast.LENGTH_LONG).show();\n searchBox.removeTextChangedListener(this);\n }\n }\n };\n\n }", "private void search(String querySearch) {\n searchResult = new ArrayList<>();\n for (MonitoringModel item : searchList) {\n if (item.getPROG_ID().toLowerCase().contains(querySearch) || item.getPROG_ID().contains(querySearch) ||\n item.getKEPUTUSAN().toLowerCase().contains(querySearch) || item.getKEPUTUSAN().contains(querySearch) ||\n Common.formatTgl(item.getTGL_TARGET()).toLowerCase().contains(querySearch) || Common.formatTgl(item.getTGL_TARGET()).contains(querySearch) ||\n Common.formatStatusMonitoringToString(item.getLAST_STATUS()).toLowerCase().contains(querySearch) || Common.formatStatusMonitoringToString(item.getLAST_STATUS()).contains(querySearch)) {\n searchResult.add(item);\n }\n }\n if (searchResult.isEmpty())\n tvEmptySearch.setText(\"No results found for '\" + querySearch + \"'\");\n else\n tvEmptySearch.setText(\"\");\n\n searchAdapter = new ListAdapter(getContext(), searchResult);\n rvList.setAdapter(searchAdapter);\n }", "private void doSearch(String query, boolean art,\n boolean music,\n boolean tech,\n boolean careers,\n boolean culture,\n boolean sports,\n boolean science,\n boolean education){\n ArrayList<String> categories = new ArrayList<String>();\n if(art) categories.add(\"Art\");\n if(music) categories.add(\"Music\");\n if(tech) categories.add(\"Tech\");\n if(careers) categories.add(\"Careers\");\n if(culture) categories.add(\"Culture\");\n if(sports) categories.add(\"Sports\");\n if(science) categories.add(\"Science\");\n if(education) categories.add(\"Education\");\n\n //if none selected search for all categories\n if(!art && !music && !tech && !careers && !culture && !sports && !science && !education){\n categories.add(\"Art\");\n categories.add(\"Music\");\n categories.add(\"Tech\");\n categories.add(\"Careers\");\n categories.add(\"Culture\");\n categories.add(\"Sports\");\n categories.add(\"Science\");\n categories.add(\"Education\");\n }\n eventServices.searchEventFeed(query, null, null, categories, new AppCallback<List<Event>>() {\n @Override\n public void call(final List<Event> events) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n eventList.addAll(events);\n adapter.notifyDataSetChanged();\n }\n });\n }\n\n @Override\n public void call() {\n\n }\n });\n\n// Log.d(TAG, \"doSearch: \" + query + \" \" + SearchActivity.DATE_RANGE_LABELS[dateRange] + \" \");\n adapter.notifyDataSetChanged();\n }", "public CorrResultModel searchForEvents(String searchString, int page, HashMap foundEventtypes, String lowerBound, String upperBound, List filterNames);", "private void performSearch() {\n String text = txtSearch.getText();\n String haystack = field.getText();\n \n // Is this case sensitive?\n if (!chkMatchCase.isSelected()) {\n text = text.toLowerCase();\n haystack = haystack.toLowerCase();\n }\n \n // Check if it is a new string that the user is searching for.\n if (!text.equals(needle)) {\n needle = text;\n curr_index = 0;\n }\n \n // Grab the list of places where we found it.\n populateFoundList(haystack);\n \n // Nothing was found.\n if (found.isEmpty()) {\n Debug.println(\"FINDING\", \"No occurrences of \" + needle + \" found.\");\n JOptionPane.showMessageDialog(null, \"No occurrences of \" + needle + \" found.\",\n \"Nothing found\", JOptionPane.INFORMATION_MESSAGE);\n \n return;\n }\n \n // Loop back the indexes if we have reached the end.\n if (curr_index == found.size()) {\n curr_index = 0;\n }\n \n // Go through the findings one at a time.\n int indexes[] = found.get(curr_index);\n field.select(indexes[0], indexes[1]);\n curr_index++;\n }", "private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}", "public static int search (String searching)\n {\n ListAlbum listAlbum = new ListAlbum(true, false, false);\n AlbumXmlFile.readAllAlbumsFromDataBase(listAlbum, true);\n Iterator albumIterator = listAlbum.iterator();\n Album actualAlbum;\n int actualAlbumIndex=0;\n while (albumIterator.hasNext())\n {\n \n actualAlbum = (Album) albumIterator.next();\n \n if (actualAlbum.getName().equals(searching))\n {\n JSoundsMainWindowViewController.showAlbumResults(true, false, false, actualAlbum);\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n return 1;\n }\n else if (actualAlbum.getArtist().getName().equals(searching))\n {\n JSoundsMainWindowViewController.showAlbumResults(true, false, false, actualAlbum);\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n return 1;\n }\n actualAlbum.getSongs();\n Iterator songsIterator = actualAlbum.getSongs().iterator();\n int actualSongIndex = 0;\n\n while (songsIterator.hasNext())\n {\n /* Se añade el número de la canción al modelo de la lista */\n Song song = (Song) songsIterator.next();\n if (song.getName().equals(searching))\n {\n JSoundsMainWindowViewController.showSongResults(true, false, false, actualAlbum,song,actualSongIndex);\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n indexFromSearchedSong=actualSongIndex;\n if (alreadyPlaying)\n {\n JSoundsMainWindowViewController.stopSong();\n alreadyPlaying=false;\n dontInitPlayer=true;\n }\n //playListSongs(true);\n return 1;\n }\n actualSongIndex++;\n }\n actualAlbumIndex++;\n }\n JSoundsMainWindow.jtfSearchSong.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Not Found :( \");\n return 0;\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n m_testGame.setTitle(searchGameText.getText());\n try {\n if(m_fileManager1.isGameInList(m_testGame)){ // if the game is in the file\n m_NewSearchResult = m_fileManager1.gamesSearchResult(m_testGame); //makes a new com.cs_group.objects.GameList with the search Result\n ChangeEvent event = new ChangeEvent(this);\n for (ChangeListener listener : m_addAnotherGame) {\n listener.stateChanged(event);\n }\n }else { JOptionPane.showMessageDialog(null, \"GAME NOT FOUND\", \"ERROR\", JOptionPane.ERROR_MESSAGE);}\n } catch (IOException | ParseException ioException) {\n ioException.printStackTrace();\n }\n }", "public void search() {\r\n \t\r\n }", "public void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == searchbtn) {\n\t\t\tsetCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n\t\t\tswitch (state) {\n\t\t\tcase 0:\n\t\t\t\tremove(resultlistScroll);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tremove(moviedisplay);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tremove(persondisplay);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tremove(companydisplay);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tremove(randompanel);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmodel.clear();\n\t\t\tresultlist = new JList(model);\n\t\t\tresultlistScroll = new JScrollPane(resultlist);\n\t\t\tresultlistScroll.setPreferredSize(new Dimension(560, 370));\n\t\t\td = resultlistScroll.getPreferredSize();\n\t\t\tresultlistScroll.setBounds(insets.left + 50, insets.top + 75,\n\t\t\t\t\td.width, d.height);\n\t\t\tadd(resultlistScroll);\n\t\t\tsetPreferredSize(new Dimension(650, 490));\n\t\t\trepaint();\n\t\t\trevalidate();\n\t\t\tswitch (getState()) {\n\t\t\tcase 1: {\n\t\t\t\tmovielist = databasemanager\n\t\t\t\t\t\t.SimpleMovieSearch(getSearchCommand());\n\t\t\t\tpersonlist = new LinkedList();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 2: {\n\t\t\t\tpersonlist = databasemanager\n\t\t\t\t\t\t.SimplePersonSearch(getSearchCommand());\n\t\t\t\tmovielist = new LinkedList();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase 3: {\n\t\t\t\tmovielist = databasemanager\n\t\t\t\t\t\t.SimpleMovieSearch(getSearchCommand());\n\t\t\t\tpersonlist = databasemanager\n\t\t\t\t\t\t.SimplePersonSearch(getSearchCommand());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i < movielist.size(); i++) {\n\t\t\t\tMovie movie = (Movie) movielist.get(i);\n\t\t\t\tmodel.add(i, movie.getName());\n\t\t\t}\n\t\t\tfor (int i = 0; i < personlist.size(); i++) {\n\t\t\t\tPerson person = (Person) personlist.get(i);\n\t\t\t\tmodel.add(movielist.size() + i, person.getName());\n\t\t\t}\n\t\t\t// add result scrollpane to panel\n\t\t\tstate = 0;\n\t\t\tupdateListener();\n\t\t\tsetCursor(null);\n\t\t}\n\t}", "public List<VirtualMachine> search(SearchCriteria searchCriteria, SearchMode mode,\n List<SearchCriterionType> searchOrder);", "private void findClubEvent () {\n \n findClubEvent (\n findButton.getText(), \n findText.getText().trim(), \n true);\n \n if (findText.getText().trim().length() == 0) {\n findText.grabFocus();\n statusBar.setStatus(\"Enter a search string\");\n }\n }", "private void FetchSearchResult(String tag, String searchCriteria) {\n\t\t/** invoking the search call */\n\t\tmLog.info(\"Fetching Search Result\");\n\t\tspiceManager.execute(\n\t\t\t\tnew MVMediaSearchRequest(AppHelper\n\t\t\t\t\t\t.getToken(SearchActivity.this), tag, searchCriteria,\n\t\t\t\t\t\tmPageCount), Constants.CACHE_KEY_SEARCH_KEY,\n\t\t\t\tDurationInMillis.ALWAYS_EXPIRED, new MVSearchRequestListner(\n\t\t\t\t\t\tSearchActivity.this));\n\n\t}", "public void setResults(ArrayOfFindResult results) {\n this.results = results;\n }", "private void seekBy() {\n Queue<File> queue = new LinkedList<>();\n queue.offer(new File(root));\n while (!queue.isEmpty()) {\n File file = queue.poll();\n File[] list = file.listFiles();\n if (file.isDirectory() && list != null) {\n for (File tempFile : list) {\n queue.offer(tempFile);\n }\n } else {\n if (args.isFullMatch() && searchingFile.equalsIgnoreCase(file.getName())) {\n result.add(file);\n }\n if (args.isMask() && searchingFile.replaceAll(\"\\\\*\", \".*\").equalsIgnoreCase(file.getName())) {\n result.add(file);\n }\n if (args.isRegex() && file.getName().matches(args.getName())) {\n result.add(file);\n }\n }\n }\n this.writeLog(output, result);\n }", "void search();", "void search();", "private HexTablePointer findAndSelect(HexTablePointer position, byte[] find, byte[] lowerCase,\n\t final boolean searchForward, boolean caseSensitive, final boolean scrollToVisible) {\n\t\tselectFindResult(true);\n\t\tfindIndex = -1;\n\n\t\tif (find == null || find.length == 0)\n\t\t\treturn null;\n\n\t\tint off = searchForward ? 0 : find.length - 1;\n\t\tint dataIndex = position.getOffset();\n\t\tint increment = searchForward ? 1 : -1;\n\t\twhile (searchForward && dataIndex < table.getBufferSize() || !searchForward && dataIndex >= 0) {\n\t\t\tbyte s = table.getData(dataIndex);\n\t\t\tif (caseSensitive && s == find[off] || !caseSensitive && Character.toLowerCase((char) s) == lowerCase[off]) {\n\t\t\t\tif (findIndex == -1)\n\t\t\t\t\tfindIndex = dataIndex;\n\t\t\t\toff += searchForward ? 1 : -1;\n\t\t\t\tif (searchForward && off >= find.length || !searchForward && off < 0) {\n\t\t\t\t\t// adjust the index\n\t\t\t\t\tif (!searchForward)\n\t\t\t\t\t\tfindIndex -= find.length - 1;\n\t\t\t\t\tfinal HexTablePointer p = new HexTablePointer(findIndex);\n\t\t\t\t\tfindPrevStatus = new byte[find.length];\n\t\t\t\t\tfor (int i = 0; i < findPrevStatus.length; i++) {\n\t\t\t\t\t\tfindPrevStatus[i] = (byte) table.getCellStatus(p.getRowIndex(), p.getColumnIndex());\n\t\t\t\t\t\tp.move(1);\n\t\t\t\t\t}\n\t\t\t\t\tp.move(-find.length);\n\t\t\t\t\ttable.getDisplay().syncExec(new Runnable() {\n\t\t\t\t\t\t@Override\n public void run() {\n\t\t\t\t\t\t\tif (scrollToVisible) {\n\t\t\t\t\t\t\t\ttable.getTable().select(p.getRowIndex() + table.getTable().getClientArea().height / table.getTable().getItemHeight() / 2);\n\t\t\t\t\t\t\t\ttable.getTable().showSelection();\n\t\t\t\t\t\t\t\ttable.getTable().select(p.getRowIndex());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tselectFindResult(false);\n\t\t\t\t\t\t\tif (scrollToVisible)\n\t\t\t\t\t\t\t\tcursor.setSelection(p.getRowIndex(), p.getColumnIndex() + 1);\n\t\t\t\t\t\t\ttable.setCellSelection(p.getRowIndex(), p.getColumnIndex(), false);\n\t\t\t\t\t\t\ttable.updateVisibleTable(true, true, true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\treturn p;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tboolean oneFound = findIndex != -1;\n\t\t\t\toff = searchForward ? 0 : find.length - 1;\n\t\t\t\tfindIndex = -1;\n\t\t\t\tif (oneFound)\n\t\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdataIndex += increment;\n\t\t}\n\t\treturn null;\n\t}", "protected void processMatchingWorkItems(List searchResults) throws NbaBaseException {\t//SPR2992 changed method signature\n\t\tretrieveMatchingWorkItems(searchResults);\n\t\t// all matching work items have been retrieved\n\t\tsetPermWorkItems(new ArrayList());\t//SPR2992\n\t\tsetTempWorkItems(new ArrayList());\t//SPR2992\n\t\tif (getWork().getTransaction().getWorkType().equals(A_WT_REINSURANCE)) {\n\t\t\tgetPermWorkItems().add(getWork());\t//SPR2992\n\t\t\tsetTempWorkItems((ArrayList) getMatchingWorkItems().clone());\t//SPR2992\n\t\t} else {\n\t\t\tgetTempWorkItems().add(getWork());\t//SPR2992\n\t\t\tsetPermWorkItems((ArrayList) getMatchingWorkItems().clone());\t//SPR2992\n\t\t}\n\t\tretrieveCaseWorkItems(getPermWorkItems());\t//SPR3009\n\t\tfor (int i = 0; i < getPermWorkItems().size(); i++) {\t//SPR2992\n\t\t\tNbaDst perm = (NbaDst) getPermWorkItems().get(i);\t//SPR2992\n\t\t\tfor (int j = 0; j < getTempWorkItems().size(); j++) {\t//SPR2992\n\t\t\t\tNbaDst temp = (NbaDst) getTempWorkItems().get(j);\t//SPR2992\n\t\t\t\tassociateSource(perm, temp);\n\t\t\t}\n\t\t}\n\t}", "void searchProbed (Search search);", "private void search(ActionEvent x) {\n\t\tString text = this.searchText.getText();\n\t\tif (text.equals(\"\")) {\n\t\t\tupdate();\n\t\t\treturn;\n\t\t}\n\t\tboolean flag = false;\n\t\tfor (Project p : INSTANCE.getProjects()) {\n\t\t\tif (p.getName().indexOf(text) != -1) {\n\t\t\t\tif (!flag) {\n\t\t\t\t\tthis.projects.clear();\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t\tthis.projects.addElement(p);\n\t\t\t}\n\t\t}\n\n\t\tif (!flag) {\n\t\t\tINSTANCE.getCurrentUser().sendNotification(new Notification((Object) INSTANCE, \"No results\"));\n\t\t\tthis.searchText.setText(\"\");\n\t\t}\n\t}", "SearchResult search(State root, List<State> expanded_list, State goal);", "private void doRemoteSearch(String query) {\n Calendar cal = Calendar.getInstance();\n cal.set(Calendar.YEAR,2018);\n cal.set(Calendar.MONTH,12);\n\n String[] titles = {\"Search Party\", \"Lunchtime Search Basketball\", \"Search Games\", \"Pickup Soccer Search\"};\n\n for(int i = 0 ; i < 10; i++ ) {\n cal.set(Calendar.DAY_OF_MONTH,i);\n eventList.add(new Event(titles[i % titles.length], \"test description\", \"test host\", cal.getTime(),cal.getTime(), cal.getTime(), \"test category\", \"test URL\", \"test owner\", \"test location\"));\n }\n }", "@GlobalCommand\n @Command \n @NotifyChange( \"mascotas\")\n public void doSearch() \n {\n System.out.println();\n mascotas = new ListModelList<>();\n List<Mascota> allEvents;// = eventDao.findAll(); //Para mostrar todo\n\n if((filterChip == null || \"\".equals(filterChip)) && \n (filterNombre == null || \"\".equals(filterNombre)) &&\n (filterPropietario == null || \"\".equals(filterPropietario)) && \n (filterSexo == null || \"\".equals(filterSexo)) &&\n (filterFnacimiento == null || \"\".equals(filterFnacimiento)) && \n (filterFdefuncion == null || \"\".equals(filterFdefuncion)) && \n (filterPeso == null || \"\".equals(filterPeso)) &&\n (filterAltura == null || \"\".equals(filterAltura)) && \n (filterRaza == null || \"\".equals(filterRaza)) &&\n (filterEspecie == null || \"\".equals(filterEspecie)) && \n (filterPelo == null || \"\".equals(filterPelo)) &&\n (filterFechaalta == null || \"\".equals(filterFechaalta)) &&\n (filterFechabaja == null || \"\".equals(filterFechabaja)) ) {\n mascotas.addAll(eventDao.findAll()); //Para mostrar todo\n }\n else \n {\n allEvents = eventDao.findAll();\n for (Mascota masc : allEvents) {\n String peso = masc.getPeso() + \"\";\n String altura = masc.getAltura() + \"\";\n String propietario = masc.getCliente().getFullname();\n String raza = masc.getRaza().getRaza();\n String especie = masc.getEspecie().getEspecie();\n String fechabaja, fechadef;\n if(masc.getFechabaja() != null) {\n fechabaja = masc.getFechabaja().toString();\n }\n else {\n fechabaja = \"\";\n }\n if(masc.getDefuncion() != null) {\n fechadef = masc.getDefuncion().toString();\n }\n else {\n fechadef = \"\";\n }\n if ((masc.getChip().toLowerCase().startsWith(filterChip.toLowerCase()) ) &&\n (masc.getNombre().toLowerCase().startsWith(filterNombre.toLowerCase()) ) &&\n (masc.getSexo().toLowerCase().startsWith(filterSexo.toLowerCase()) ) &&\n (masc.getNacimiento().toString().toLowerCase().startsWith(filterFnacimiento.toLowerCase()) ) &&\n (fechadef.toLowerCase().startsWith(filterFdefuncion.toLowerCase()) ) &&\n (masc.getPelo().toLowerCase().startsWith(filterPelo.toLowerCase()) ) &&\n (masc.getFechaalta().toString().toLowerCase().startsWith(filterFechaalta.toLowerCase()) ) &&\n (fechabaja.toLowerCase().startsWith(filterFechabaja.toLowerCase()) ) &&\n (peso.toLowerCase().startsWith(filterPeso.toLowerCase()) ) &&\n (altura.toLowerCase().startsWith(filterAltura.toLowerCase()) ) &&\n (propietario.toLowerCase().startsWith(filterPropietario.toLowerCase()) ) &&\n (raza.toLowerCase().startsWith(filterRaza.toLowerCase()) ) &&\n (especie.toLowerCase().startsWith(filterEspecie.toLowerCase()) )\n ) {\n mascotas.add(masc);\n }\n } //for(Mascota masc : allEvents)\n }\n }", "public void GeneralSearch()\n {\n mainQuery = new ChildEventListener() {\n @Override\n public void onChildAdded(@NonNull DataSnapshot snapshot, @Nullable String previousChildName) {\n //get the snapshot value as a boulder problem\n BoulderProblem bp = snapshot.getValue(BoulderProblem.class);\n\n //create listener to get the setter display name\n ValueEventListener setterListener = new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n //display name is the value of the snapshot\n bp.SetSetter(snapshot.getValue().toString());\n //add the boulder problem to list of boulder problems\n bps.add(bp);\n //call method to display correct list\n BPSearch();\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n };\n //call method to attach listener for getting setter display name\n AttachSetterListener(bp.GetSetterId(), setterListener);\n }\n\n @Override\n public void onChildChanged(@NonNull DataSnapshot snapshot, @Nullable String previousChildName) {\n\n }\n\n @Override\n public void onChildRemoved(@NonNull DataSnapshot snapshot) {\n //listens for boulder problems removed from the database\n\n //get the snapshot value as a boulder problem object\n BoulderProblem bp = snapshot.getValue(BoulderProblem.class);\n //loop through list of boulder problems to check if it is in the list and if so remove it and re display the list on screen\n for(int i = 0; i < bps.size(); i++)\n {\n if(bps.get(i).GetName().equals(bp.GetName()))\n {\n bps.remove(i);\n BPSearch();\n break;\n }\n }\n }\n\n @Override\n public void onChildMoved(@NonNull DataSnapshot snapshot, @Nullable String previousChildName) {\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n };\n bpRef.child(\"UserCreated\").orderByChild(sortOption).addChildEventListener(mainQuery);\n }", "public CorrResultModel searchForEvents(String searchString, int page, String lowerBound, String upperBound, List filterNames);", "public void find() {\n\t\tnome = editTextNome.getText().toString();\n\t\tsexo = \"\" + Sexo.valueOf(spinnerSexo.getSelectedItem().toString()).ordinal();\n\t\tdataNascimento = DateUtil.fromDate(DateUtil.toDate(editTextDataNascimento.getText().toString(), \"\"), \"\");\n\n \tIntent intent = new Intent(this, ClienteListActivity.class);\n\t\tintent.putExtra(\"TYPE_LIST_VIEW\", TypeListView.RESULT);\n\n \tif(checkBoxFindnome.isChecked()) {\n \t\tintent.putExtra(\"nome\", nome);\n \t}\n \tif(checkBoxFindsexo.isChecked()) {\n \t\tintent.putExtra(\"sexo\", sexo);\n \t}\n \tif(checkBoxFinddataNascimento.isChecked()) {\n \t\tintent.putExtra(\"dataNascimento\", dataNascimento);\n \t}\n\n \tstartActivity(intent);\n\t}", "@Listen(\"onClick=#findEntryButton\")\n public void findEntryButtonOnClick(){\n String stringToFind = findFieldTextbox.getValue();\n List<Entry> entries;\n if (stringToFind.isEmpty()){\n entries = DAO.getAllEntryEntities();\n } else {\n entries = DAO.findEntities(stringToFind);\n }\n\n Listbox listbox = (Listbox) phonePageWindow.getFellow(\"entriesListbox\", true);\n ListboxComposer composer = (ListboxComposer) listbox.getAttribute(\"$composer\");\n composer.refreshModel(entries);\n }", "private void executeSearch() {\n if (!view.getSearchContent().getText().isEmpty()) {\n SearchModuleDataHolder filter = SearchModuleDataHolder.getSearchModuleDataHolder();\n //set search content text for full text search\n filter.setSearchText(view.getSearchContent().getText());\n forwardToCurrentView(filter);\n } else {\n eventBus.showPopupNoSearchCriteria();\n }\n }", "public void searchByPhoto(String string){\n boolean flag = false;\n for(int i=0; i<arrayList.size(); i++){\n Event event = arrayList.get(i);\n\n if(string.contains(event.getName())){\n flag = true;\n\n // Goes To Event Details Activity\n Intent intent = new Intent(getApplicationContext(), EventDetailsActivity.class);\n // putting an object as an intent extra\n intent.putExtra(\"Event\",(Serializable) event);\n startActivity(intent);\n\n\n }\n }\n if(flag == false){\n Toast.makeText(this, \"Not found!\", Toast.LENGTH_SHORT).show();\n }\n }", "private void findNext() {\n \tthis.find(true);\n }", "private void searchList() {\n String keyword = search_bar.getText().toString();\n try {\n if (!TextUtils.isEmpty(keyword)) {\n RemoteMongoCollection<Document> plants = mongoDbSetup.getCollection(\"plants\");\n RemoteMongoIterable<Document> plantIterator = plants.find();\n\n docsToUse.clear();\n listOfPlants.clear();\n mRecyclerView.removeAllViews();\n\n final ArrayList<Document> docs = new ArrayList<>();\n\n plantIterator\n .forEach(document -> {\n plant_name = document.getString(\"plant_name\");\n picture_url = document.getString(\"picture_url\");\n description = document.getString(\"description\");\n\n if (plant_name.toLowerCase().contains(keyword.toLowerCase())) {\n\n docs.add(document);\n setPlantList(docs);\n listOfPlants.add(new RecyclerViewPlantItem(picture_url, plant_name, description));\n\n }\n })\n\n .addOnCompleteListener(task -> {\n if (listOfPlants.size() == 0) {\n search_bar.requestFocus();\n search_bar.setError(\"No match found\");\n\n listOfPlants.clear();\n }\n mRecyclerView.setHasFixedSize(true);\n mLayoutManager = new LinearLayoutManager(getActivity());\n mAdapter = new RecyclerViewAdapter(listOfPlants, getActivity());\n mAdapter.notifyDataSetChanged();\n\n mRecyclerView.setLayoutManager(mLayoutManager);\n mRecyclerView.setAdapter(mAdapter);\n })\n .addOnFailureListener(e -> Log.e(TAG, \"error \" + e.getMessage()));\n\n } else if (searchButton.isPressed() && TextUtils.isEmpty(keyword)) {\n search_bar.setError(\"Please type a keyword\");\n listOfPlants.clear();\n findPlantsList();\n }\n } catch (Throwable e) {\n Log.e(TAG, \"NullPointerException: \" + e.getMessage());\n }\n }", "private static List<Event> filterEvents(List<Event> allEvents) {\n Set<String> myLocations = MainActivity.getPreferences()\n .getStringSet(LOCATIONS_INTEREST.get(), null);\n if (myLocations != null) {\n List<Event> result = new ArrayList<>();\n for (Event event : allEvents) {\n String location = event.getLocation().getName();\n if (myLocations.contains(location)) {\n result.add(event);\n }\n }\n return result;\n }\n return allEvents;\n }", "private void retrieveRemoteEventData(){\n\n //This returns a JSON object with a {\"eventIndex\": int, \"event\": int} pattern.\n String data = getJSON(hostUrl + \"retrieve_remote_event.php?matchId=\" + matchId\n + \"&player=\" + oppositePlayer, 2000);\n\n // Parse the JSON information into an EventIndexPair object.\n Event e = new Gson().fromJson(data, Event.class);\n\n // Set event and eventIndex variables retrieved from JSON to the remoteActiveEvent and\n // remoteEventIndex global variables.\n // These variables will be used to process events locally on the next frame.\n if (e != null){\n if (e.getIndex() > remoteEventIndex){\n\n remoteActiveEvent = e;\n remoteEventIndex = e.getIndex();\n\n }\n }\n\n }", "private void doSearch(String queryStr) {\n\t\t\n\t\t\n\t\tdbHelper = new DatabaseHelper(getApplicationContext());\n\t\tall_Item = Items.getSearchResults(dbHelper, queryStr);\n\t\t\n\n\t\tsearch_list = (ListView) findViewById(R.id.search_list);\n\t\tadapter = new SearchResultListAdaptor(this, R.layout.search_list_display, all_Item);\n\t\tfor(int i=0;i<all_Item.size();i++)\n\t\t adapter.add(all_Item.get(i));\n\t\t\n\t\tsearch_list.setAdapter(adapter);\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void search() {\n\r\n\t}", "@Override\n\tpublic void search() {\n\t}", "public void getEventByFees()\r\n {\r\n boolean b=false;\r\n \r\n String output = \"\";\r\n output=\"Id \"+\"Event Name \"+\"Organizer \"+\"Date \"+\" Fees($)\"+\"\\n\";\r\n \r\n List<Event> list2=new ArrayList();\r\n do{\r\n \r\n List<Event> list1=fillArrayList();\r\n \r\n \r\n String string=JOptionPane.showInputDialog(\"Enter Event Fees to search Event by Fees\");\r\n double fees=Double.parseDouble(string);\r\n for(Event e:list1)\r\n {\r\n if(e.getFees()==fees)\r\n {\r\n list2.add(e);\r\n b=true;\r\n break;\r\n }\r\n else\r\n {\r\n \r\n b=false;\r\n }\r\n }\r\n if(!b)\r\n JOptionPane.showMessageDialog(null,\"Event with fees \"+string+\" Does not exist! please try again\",\"Error\",JOptionPane.ERROR_MESSAGE);\r\n }while(!b);\r\n \r\n \r\n for(int i = 0; i<list2.size(); i++){\r\n \r\n String everything2 = list2.get(i).toString();\r\n\r\n output += everything2+\"\\n\"; \r\n }\r\n JOptionPane.showMessageDialog(null,output,\"Event\",JOptionPane.INFORMATION_MESSAGE);\r\n \r\n allMenuClass.userMenu();\r\n }", "private void refineResults(List<Photo> photoList, String title){\n List<Photo> newPhotoList = new ArrayList<>();\n for(int i=0; i<photoList.size(); i++){\n if(StringUtils.lowerCase(photoList.get(i).getTitle()).contains(StringUtils.lowerCase(title))){\n newPhotoList.add(photoList.get(i));\n }\n }\n searchHelperListener.onResultsRefined(newPhotoList);\n }", "public void search() {\n }", "void searchStarted (Search search);", "@Override\n public void run() {\n filtered_list.clear();\n\n // If there is no search value, then add all original list items to filter list\n if (TextUtils.isEmpty(searchText)) {\n if (original_data != null)\n filtered_list.addAll(original_data);\n\n } /*\n\n naco to tu je??\n\n else {\n // Iterate in the original List and add it to filter list...\n for (MnozstvaTovaru item : original_data) {\n if (item.getTovarNazov().toLowerCase().contains(searchText.toLowerCase())) {\n // Adding Matched items\n filtered_list.add(item);\n }\n }\n } */\n\n // Set on UI Thread\n ((Activity) context).runOnUiThread(new Runnable() {\n @Override\n public void run() {\n // Notify the List that the DataSet has changed...\n notifyDataSetChanged();\n }\n });\n\n }", "private void queryEvents() {\n ParseQuery<Event> query = ParseQuery.getQuery(Event.class);\n // include data referred by user key\n query.include(Event.KEY_HOST);\n // limit query to latest 20 items\n query.setLimit(30);\n // order posts by creation date (newest first)\n query.addDescendingOrder(\"createdAt\");\n // start an asynchronous call for events\n query.findInBackground(new FindCallback<Event>() {\n @Override\n public void done(List<Event> events, com.parse.ParseException e) {\n\n // check for errors\n if (e != null) {\n Log.e(TAG, \"Issue with getting posts\", e);\n return;\n }\n\n // for debugging purposes let's print every event description to logcat\n for (Event event : events) {\n Log.i(TAG, \"Event: \" + event.getDescription() + \", username: \" + event.getHost().getUsername());\n }\n\n // save received events to list and notify adapter of new data\n allEvents.addAll(events);\n }\n\n });\n }", "private List<States> simulateSearchResult(String searchName) {\n\t\t\n\t\tList<States> result = new ArrayList<States>();\n\t\t\n\t\ttry {\n\t\t\tList<States> statelist = stateService.getAllStates();\n\t\t\t// iterate a list and filter by tagName\n\t\t\tfor (States obj : statelist) {\n\t\t\t\tif (obj.getStateName().contains(searchName) || obj.getStateCode().contains(searchName)) {\n\t\t\t\t\tresult.add(obj);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn result;\n\t}", "public List search(Veranstaltung veranstatung) throws RuntimeException;", "private void initEventList() {\n\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n calendar.add(Calendar.MINUTE, -1 * 60 * 12);\n startTime = calendar.getTimeInMillis();\n stopTime = System.currentTimeMillis();\n mSearchType = 0;\n eventType = AVIOCTRLDEFs.AVIOCTRL_EVENT_ALL;\n searchEventList(startTime, stopTime, eventType, mCameraChannel);\n }", "public ArrayList<Movie> getSearchResult(String search) {\n\t\tArrayList<Movie> res = new ArrayList<>();\n\t\tfor (int i=0; i<getDataLength(); ++i) {\n\t\t\tboolean check = false;\n\t\t\tcheck = this.dataList.get(i).getTitle().toLowerCase().contains(search.toLowerCase());\n\t\t\tboolean checkEndShowing = this.dataList.get(i).isEndShowing();\n\t\t\tif (check&&!checkEndShowing)\n\t\t\t\tres.add((Movie)this.dataList.get(i));\n\t\t}\n\t\t\n\t\treturn res;\n\t}", "private void createSearch(boolean realSearch) {\n\n\t\tString sqlQuery = new String();\n\n\t\tif (useLucene.isSelected()) {\n\n\t\t\tif (datachoose.getSelectedIndex() == data_ABOVE) {\n\t\t\t\t// need to reference the above data.\n\t\t\t\tString usp = (String) winG.getSelectedUser();\n\t\t\t\tString dates[] = winG.getDateRange_toptoolbar();\n\t\t\t\tsqlQuery = \"select distinct mailref,dates from email where sender = '\" + usp + \"' or rcpt = '\" + usp\n\t\t\t\t\t\t+ \"' and dates BETWEEN '\" + dates[winGui.startDate] + \"' AND '\" + dates[winGui.endDate]\n\t\t\t\t\t\t+ \"' \";\n\n\t\t\t} else if (datachoose.getSelectedIndex() == data_ALL) {\n\t\t\t\tsqlQuery = \"select distinct mailref,dates from email where type like 'text%'\";\n\t\t\t} else {\n\t\t\t\t// need to pop up sql\n\t\t\t\tsqlQuery = \"select distinct mailref,dates from email \" + queryText.getText().trim();\n\t\t\t}\n\n\t\t\tString results[][];\n\t\t\t// actual fetch of data\n\t\t\ttry {\n\t\t\t\tsynchronized (DBConnect) {\n\t\t\t\t\tresults = DBConnect.getSQLData(sqlQuery);\n\t\t\t\t}\n\t\t\t} catch (SQLException sqle) {\n\t\t\t\tsqle.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (!realSearch) {\n\n\t\t\t\tJOptionPane.showMessageDialog(SearchEMT.this, \"The number of returned mailrefs are: \" + results.length);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tBusyWindow bw = new BusyWindow(\"Search Engine Setup\", \"Running\",true);\n\t\t\tbw.setMax(results.length);\n\t\t\tbw.setVisible(true);\n\t\t\t// need to setup prefetch cache\n\t\t\ttry {\n\t\t\t\tPreparedStatement ps = DBConnect\n\t\t\t\t\t\t.prepareStatementHelper(\"select hash,filename,type,body from message where mailref=?\");\n\n\t\t\t\t// real search need to build index here\n\t\t\t\t// TODO: see about adding path between folder and name\n\t\t\t\tIndexWriter writer = null;\n\t\t\t\t// stopanalyzer\n\t\t\t\t//writer = new IndexWriter(indexfolder + indexName.getText().trim(), new StandardAnalyzer(), true);\n\t\t\t\twriter = new IndexWriter(getIndexFileName(indexName.getText()), analyzer, true);\n\n\t\t\t\tDate start = new Date();\n\t\t\t\tfor (int i = 0; i < results.length; i++) {\n\t\t\t\t\tbw.progress(i);\n\n\t\t\t\t\tps.setString(1, results[i][0]);\n\n\t\t\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\tString type = rs.getString(3).toLowerCase();\n\n\t\t\t\t\t\tif (type.startsWith(\"image\") || type.startsWith(\"video\") || type.startsWith(\"audio\")) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tString hash = rs.getString(1);\n\t\t\t\t\t\tString name = rs.getString(2);\n\n\t\t\t\t\t\t// make a new, empty document\n\t\t\t\t\t\tDocument doc = new Document();\n\n\t\t\t\t\t\t// Add the path of the file as a field named \"path\". Use\n\t\t\t\t\t\t// a Text field, so\n\t\t\t\t\t\t// that the index stores the path, and so that the path\n\t\t\t\t\t\t// is searchable\n\t\t\t\t\t\tdoc.add(new Field(\"path\", hash,Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Date\", results[i][1],Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Type\", type,Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Name\", name,Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\tdoc.add(new Field(\"Mailref\", new String(results[i][0]),Field.Store.YES, Field.Index.UN_TOKENIZED));\n\t\t\t\t\t\t// Add the last modified date of the file a field named\n\t\t\t\t\t\t// \"modified\". Use a\n\t\t\t\t\t\t// Keyword field, so that it's searchable, but so that\n\t\t\t\t\t\t// no attempt is made\n\t\t\t\t\t\t// to tokenize the field into words.\n\t\t\t\t\t\t// doc.add(Field.Keyword(\"modified\",\n\t\t\t\t\t\t// DateField.timeToString(f.lastModified())));\n\n\t\t\t\t\t\t// Add the contents of the file a field named\n\t\t\t\t\t\t// \"contents\". Use a Text\n\t\t\t\t\t\t// field, specifying a Reader, so that the text of the\n\t\t\t\t\t\t// file is tokenized.\n\t\t\t\t\t\t// ?? why doesn't FileReader work here ??\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tjava.sql.Blob blob = rs.getBlob(4);\n\t\t\t\t\t\t\tint c;\n\t\t\t\t\t\t\tbyte buf[] = new byte[512];//\n\n\t\t\t\t\t\t\tInputStream is = blob.getBinaryStream();\n\t\t\t\t\t\t\tStringBuffer small2 = new StringBuffer(256);\n\t\t\t\t\t\t\twhile ((c = is.read(buf)) != -1) {\n\t\t\t\t\t\t\t\tsmall2.append(new String(buf, 0, c));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tString bodytext = small2.toString();\n\n\t\t\t\t\t\t\tdoc.add(new Field(\"contents\", bodytext,Field.Store.YES, Field.Index.TOKENIZED));\n\n\t\t\t\t\t\t\t// now to insert this doc.\n\t\t\t\t\t\t\twriter.addDocument(doc);\n\t\t\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\t\t\tioe.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbw.setTitle(\"optimizing\");\n\t\t\t\twriter.optimize();\n\t\t\t\twriter.close();\n\n\t\t\t\tDate end = new Date();\n\n\t\t\t\tSystem.out.print(end.getTime() - start.getTime());\n\t\t\t\tSystem.out.println(\" total milliseconds\");\n\n\t\t\t\tbw.setVisible(false);\n\n\t\t\t} catch (SQLException se) {\n\t\t\t\tse.printStackTrace();\n\t\t\t\treturn;\n\t\t\t} catch (IOException eio) {\n\t\t\t\teio.printStackTrace();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t} else {\n\t\t\t// we use emt indexing\n\t\t\t// TODO: create code here\n\n\t\t}\n\t}", "private void handleSearchOnPost(String result) {\n ConnectionsFragment frag = (ConnectionsFragment) getSupportFragmentManager()\n .findFragmentByTag(getString(R.string.keys_fragment_connections));\n\n boolean inContacts;\n boolean inRequests;\n boolean inPending;\n\n ArrayList<String> newPeople = new ArrayList<String>();\n ArrayList<String> contactList = new ArrayList<String>();\n ArrayList<String> requestList = new ArrayList<String>();\n ArrayList<String> pendingList = new ArrayList<String>();\n\n try {\n JSONObject resultsJSON = new JSONObject(result);\n boolean success = resultsJSON.getBoolean(\"success\");\n\n if (success) {\n if (resultsJSON.has(getString(R.string.keys_json_results))) {\n try {\n JSONArray jRes = resultsJSON\n .getJSONArray(getString(R.string.keys_json_results));\n if (jRes.length() == 0) {\n frag.handleEmptySearch();\n return;\n } else {\n for (int i = 0; i < jRes.length(); i++) {\n JSONObject res = jRes.getJSONObject(i);\n String username = res.getString(getString(R.string.keys_json_username));\n String firstname = res.getString(getString(R.string.keys_json_requests_firstname));\n String lastname = res.getString(getString(R.string.keys_json_requests_lastname));\n String str = username + \" (\" + lastname + \", \" + firstname + \")\";\n\n inContacts = searchName(username, mContacts);\n inRequests = searchName(username, mRequests);\n inPending = searchName(username, mPending);\n\n if (!username.equals(mUsername)) {\n\n if (inContacts) {\n contactList.add(str);\n } else if (inRequests) {\n requestList.add(str);\n } else if (inPending) {\n Toast.makeText(this, \"inPending\", Toast.LENGTH_LONG);\n pendingList.add(str);\n } else {\n newPeople.add(str);\n }\n }\n\n }\n\n if (contactList.isEmpty() && requestList.isEmpty() &&\n pendingList.isEmpty() && newPeople.isEmpty()) {\n frag.handleSearchForSelf();\n return;\n }\n\n frag.handleSearchOnPost();\n\n Bundle extras = new Bundle();\n extras.putStringArrayList(\"contacts\", contactList);\n extras.putStringArrayList(\"requests\", requestList);\n extras.putStringArrayList(\"pending\", pendingList);\n extras.putStringArrayList(\"newPeople\", newPeople);\n\n SearchContactsFragment fragment = new SearchContactsFragment();\n fragment.setArguments(extras);\n\n getSupportFragmentManager().beginTransaction()\n .setCustomAnimations(R.anim.enter, R.anim.exit,\n R.anim.pop_enter, R.anim.pop_exit)\n .replace(R.id.homeFragmentContainer, fragment,\n getString(R.string.keys_fragment_searchConnections))\n .addToBackStack(null).commit();\n getSupportFragmentManager().executePendingTransactions();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n frag.handleErrorsInTask(e.toString());\n frag.setError(e.toString());\n }\n }\n }\n } catch (JSONException e) {\n frag.setError(\"Something strange happened\");\n frag.handleOnError(e.toString());\n }\n }", "public ChannelSearchResult doSearch(SearchCriteria searchCriteria) {\n try {\n String data = getData(searchCriteria);\n\n // Clean xml version for geotools parser for faster parse\n data = data.replace(RESPONSE_CLEAN, \"\");\n log.debug(\"DATA: \" + data);\n boolean exonym = false;\n if(hasParam(searchCriteria,PARAM_EXONYM)) exonym = searchCriteria.getParam(PARAM_EXONYM).toString().equals(\"true\");\n return elfParser.parse(data, searchCriteria.getSRS(), exonym);\n\n } catch (Exception e) {\n log.error(e, \"Failed to search locations from register of ELF GeoLocator\");\n return new ChannelSearchResult();\n }\n }", "SearchResult findNext(SearchResult result);", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.activity_search, container, false);\n Button byTag = view.findViewById(R.id.search_tag_btn);\n Button byDate = view.findViewById(R.id.search_date_btn);\n Button bySeries = view.findViewById(R.id.search_series_btn);\n tag = view.findViewById(R.id.search_tag);\n date = view.findViewById(R.id.search_date);\n series = view.findViewById(R.id.search_series);\n byTag.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String data = tag.getText().toString();\n results = currentCalendar.search(\"tag\", data);\n Log.d(\"Results\", results.toString());\n Toast.makeText(getActivity(),\"Results in Console\",Toast.LENGTH_SHORT).show();\n }\n });\n byDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String data = date.getText().toString();\n try {\n LocalDateTime searchDate = LocalDateTime.parse(data);\n } catch (DateTimeParseException e) {\n System.out.println(\"Wrong format\");\n }\n results = currentCalendar.search(\"date\", data);\n Log.d(\"Results\", results.toString());\n Toast.makeText(getActivity(),\"Results in Console\",Toast.LENGTH_SHORT).show();\n }\n });\n bySeries.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String data = series.getText().toString();\n results = currentCalendar.search(\"series_name\", data);\n Log.d(\"Results\", results.toString());\n Toast.makeText(getActivity(),\"Results in Console\",Toast.LENGTH_SHORT).show();\n }\n });\n\n\n return view;\n }", "public static void processPCSearchReasult(ArrayList<PC> search_result) {\r\n PCNMClientStart.cur_ent.setPcs(search_result);\r\n pc_pull = PCNMClientStart.cur_ent.getPcs();\r\n ArrayList<String>pc_tbl = new ArrayList<String>();\r\n for (PC pc : pc_pull)\r\n pc_tbl.add(pc.toString());\r\n PCNMClientStart.appWindow.setTitle(\"PCNM - PC Search Results\");\r\n PCNMClientStart.switchPanels(new PCSearchResultSCR(pc_tbl));\r\n }", "void FindLstn (int boardID, short[] addrlist, short[] results, int limit);", "public IndexedList<Task> search() {\n\t\treturn null;\n\t}", "@Override\n public List<Event> searchByDay(Date day) {\n TypedQuery<EventAdapter> query = em.createQuery(\n \"SELECT e FROM EventAdapter e \"\n + \"WHERE e.dateBegin = :day \"\n + \"ORDER BY e.id\", EventAdapter.class)\n .setParameter(\"day\", day);\n\n return query.getResultList()\n .parallelStream()\n .map(EventAdapter::getEvent)\n .collect(Collectors.toList());\n }", "private boolean search() {\n if (null != listener) {\n listener.pre(joinTree, start, stop);\n }\n\n if (start.equals(stop)) {\n if (null != listener) {\n listener.post(joinTree, start, stop);\n }\n return false;\n }\n\n boolean result = search(start);\n\n if (null != listener) {\n listener.post(joinTree, start, stop);\n }\n\n return result;\n }", "abstract public void search();", "public void onSearchStarted();", "private void findPrev() {\n \tthis.find(false);\n }", "public void performSearch()\r\n {\r\n setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR) );\r\n\r\n try\r\n {\r\n // Create the search pattern.\r\n String SearchPatternString = SearchPatternField.getText();\r\n if ( SearchPatternString == null\r\n || SearchPatternString.equals(\"\") )\r\n throw new ScreenInputException(\"No search pattern entered\",\r\n SearchPatternField);\r\n SearchPattern = new Regex(SearchPatternString);\r\n SearchPattern.optimize();\r\n\r\n // Build the definition of the root directory to search.\r\n String FilePatternString = FilePatternField.getText();\r\n if ( FilePatternString == null\r\n || FilePatternString.equals(\"\") )\r\n throw new ScreenInputException(\"No file pattern entered\",\r\n FilePatternField);\r\n\r\n String DirPathString = DirPatternField.getText();\r\n if ( DirPathString == null\r\n || DirPathString.equals(\"\") )\r\n throw new ScreenInputException(\"No directory specified\",\r\n DirPatternField);\r\n File DirectoryFile = new File(DirPathString);\r\n if (!DirectoryFile.exists() )\r\n throw new ScreenInputException(\"Directory '\" + DirPathString + \"'does not exist\",\r\n DirPatternField);\r\n\r\n // Prepare the walker that performs the grep on each directory.\r\n GrepSubDirWalker.prepareSearch(SearchPattern,\r\n FilePatternString,\r\n DirPathString,\r\n ResultsDocument);\r\n\r\n if (SubDirsTooCheckBox.isSelected() )\r\n {\r\n // Process named directory and its sub-directories.\r\n Directory RootDirectory = new Directory(DirPathString);\r\n RootDirectory.walk(GrepSubDirWalker);\r\n }\r\n else\r\n // Process just the named directory.\r\n GrepSubDirWalker.processDirectory(DirPathString);\r\n\r\n GrepSubDirWalker.appendStatistics(); // Show statistics\r\n }\r\n catch (NoClassDefFoundError InputException)\r\n {\r\n showPatMissingDialog();\r\n }\r\n catch (ScreenInputException InputException)\r\n {\r\n InputException.requestComponentFocus();\r\n showExceptionDialog(InputException);\r\n }\r\n catch (Exception InputException)\r\n {\r\n showExceptionDialog(InputException);\r\n }\r\n setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR) );\r\n }", "protected Position<Item<E>> findPosition(E e) {\n // In Java 10, the var keyword allows local variable type inference\n // If you are using older version of Java, modify this code\n // var walk = list.first();\n Position<Item<E>> walk = list.first();\n while (walk != null && !e.equals(value(walk)))\n walk = list.after(walk);\n return walk;\n }", "@Transactional\n\tpublic List<SnmpEventsProcess> findWhereResultlistEquals(String resultlist) throws SnmpEventsProcessDaoException\n\t{\n\t\ttry {\n\t\t\treturn jdbcTemplate.query(\"SELECT MARK, MANUFACTURE, RESULTLIST, WARNMESSAGE, SUMMARY FROM \" + getTableName() + \" WHERE RESULTLIST = ? ORDER BY RESULTLIST\", this,resultlist);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new SnmpEventsProcessDaoException(\"Query failed\", e);\n\t\t}\n\t\t\n\t}", "@FXML\n private void handleFilter(ActionEvent event) {\n if(!inSearch){\n btnFind.setImage(imageC);\n //query here\n String querry = txtInput.getText();\n if(querry !=null){\n obsSongs = FXCollections.observableArrayList(bllfacade.querrySongs(querry));\n lstSongs.setItems(obsSongs);\n }\n inSearch = true;\n }else{\n btnFind.setImage(imageF); \n txtInput.setText(\"\");\n init();\n inSearch = false;\n }\n }", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "private List<DataSource> getProcessedResults (List<DataSource> listOfDataSource, Page pageDetail) {\n List<DataSource> dataSourceList = listOfDataSource;\n List<PageSearch> searchList = pageDetail.getSearchList();\n if (ExecueCoreUtil.isCollectionNotEmpty(searchList)) {\n // TODO: -JM- Currently there will be only one search object, change later if there are multiple searches\n PageSearch search = searchList.get(0);\n // check for the search info\n if (PageSearchType.STARTS_WITH == search.getType()) {\n dataSourceList = new ArrayList<DataSource>();\n for (DataSource dataSource : dataSourceList) {\n // TODO: -JM- use the field from the search object\n String cDispName = dataSource.getName();\n if (cDispName.toLowerCase().startsWith(search.getString().toLowerCase())) {\n dataSourceList.add(dataSource);\n }\n }\n } else if (PageSearchType.CONTAINS == search.getType()) {\n dataSourceList = new ArrayList<DataSource>();\n for (DataSource dataSource : dataSourceList) {\n String cDispName = dataSource.getName();\n if (cDispName.toLowerCase().startsWith(search.getString().toLowerCase())) {\n dataSourceList.add(dataSource);\n }\n }\n }\n }\n // modify the page object with the new record count which will modify the page count as well\n pageDetail.setRecordCount(Long.valueOf(dataSourceList.size()));\n List<DataSource> pageDataSources = new ArrayList<DataSource>();\n // manipulate the list to return the set of concepts belonging to the page requested\n int start = (pageDetail.getRequestedPage().intValue() - 1) * pageDetail.getPageSize().intValue();\n int end = start + pageDetail.getPageSize().intValue();\n if (end > pageDetail.getRecordCount().intValue()) {\n end = (pageDetail.getRecordCount().intValue());\n }\n for (int i = start; i < end; i++) {\n pageDataSources.add(dataSourceList.get(i));\n }\n return pageDataSources;\n }", "private void initFind() {\n\n\t\tfindViewById(R.id.top_msg).setVisibility(View.INVISIBLE);\n\t\ttop_title = (TextView) findViewById(R.id.top_title);\n\t\ttop_title.setText(\"消息\");\n\n\t\tv1 = findViewById(R.id.v1);\n\t\tv2 = findViewById(R.id.v2);\n\t\tfm1_jhtx = (TextView) findViewById(R.id.fm1_jhtx);\n\t\tfm1_sx = (TextView) findViewById(R.id.fm1_sx);\n\t\tsetTextViewBG(0);\n\t\taddClick();\n\t}", "private void searchMenu(){\n\t\t\n\t}", "@Override\n public List<Audit> searchAuditRecord(List<String> eventTypeList, String userId,\n List<String> remoteHcidList, Date startDate, Date endDate, Map<String, String> remoteHcidOrgNameMap) {\n QueryAuditEventsRequestType auditRequest = new QueryAuditEventsRequestType();\n auditRequest.setEventTypeList(createEventTypeList(eventTypeList));\n auditRequest.setUserId(userId);\n auditRequest.setRemoteHcidList(createRemoteHcidList(remoteHcidList));\n auditRequest.setEventBeginDate(getXMLGregorianCalendarFrom(startDate));\n auditRequest.setEventEndDate(getXMLGregorianCalendarFrom(endDate));\n return createAuditObjects(auditRetrieve.retrieveAudits(auditRequest), remoteHcidOrgNameMap);\n }", "public boolean search(E e){\n boolean blResult = false;\n\n /** TODO: INSERT YOUR CODE HERE\n *\n * SEARCH FOR THE ITEM PASSED AS PARAMETER AND RETURN TRUE IF FOUND\n * ELSE RETURN FALSE\n *\n *\n */\n return blResult;\n }", "SearchResult<TimelineMeta> search(SearchQuery searchQuery);", "@Test\n public void find() {\n String command = \" \" + FindCommand.COMMAND_WORD + \" n/\" + KEYWORD_MATCHING_STATIONARY + \" \";\n Model expectedModel = getModel();\n assertCommandSuccess(command, expectedModel, 1);\n assertSelectedCardUnchanged();\n\n /* Case: repeat previous find command where expense list is displaying the expense we are finding\n * -> 1 expense found\n */\n command = FindCommand.COMMAND_WORD + \" t/\" + KEYWORD_MATCHING_DINNER;\n assertCommandSuccess(command, expectedModel, 1);\n assertSelectedCardUnchanged();\n\n /* Case: repeat previous find command where expense list is displaying the expense we are finding\n * -> 0 expense found\n */\n command = FindCommand.COMMAND_WORD + \" d/\" + \"7/4/2019\";\n assertCommandSuccess(command, expectedModel, 0);\n assertSelectedCardUnchanged();\n\n /* Case: repeat previous find command where expense list is displaying the expense we are finding\n * -> 0 expense found\n */\n command = FindCommand.COMMAND_WORD + \" d/\"\n + KEYWORD_MATCHING_START_DATE + \":\" + \"26/04/2019\";\n assertCommandSuccess(command, expectedModel, 0);\n assertSelectedCardUnchanged();\n\n /* Case: find expense where expense list is not displaying the expense we are finding -> 0 expense found */\n command = FindCommand.COMMAND_WORD + \" n/\" + \"Invalid name\";\n assertCommandSuccess(command, expectedModel, 0);\n assertSelectedCardUnchanged();\n // /* Case: find multiple persons in address book, 2 keywords -> 2 persons found */\n // command = FindCommand.COMMAND_WORD + \" Benson Daniel\";\n // ModelHelper.setFilteredList(expectedModel, BENSON, DANIEL);\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find multiple persons in address book, 2 keywords in reversed order -> 2 persons found */\n // command = FindCommand.COMMAND_WORD + \" Daniel Benson\";\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find multiple persons in address book, 2 keywords with 1 repeat -> 2 persons found */\n // command = FindCommand.COMMAND_WORD + \" Daniel Benson Daniel\";\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find multiple persons in address book, 2 matching keywords and 1 non-matching keyword\n // * -> 2 persons found\n // */\n // command = FindCommand.COMMAND_WORD + \" Daniel Benson NonMatchingKeyWord\";\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: undo previous find command -> rejected */\n // command = UndoCommand.COMMAND_WORD;\n // String expectedResultMessage = UndoCommand.MESSAGE_FAILURE;\n // assertCommandFailure(command, expectedResultMessage);\n //\n // /* Case: redo previous find command -> rejected */\n // command = RedoCommand.COMMAND_WORD;\n // expectedResultMessage = RedoCommand.MESSAGE_FAILURE;\n // assertCommandFailure(command, expectedResultMessage);\n //\n // /* Case: find same persons in address book after deleting 1 of them -> 1 person found */\n // executeCommand(DeleteCommand.COMMAND_WORD + \" 1\");\n // assertFalse(getModel().getEPiggy().getPersonList().contains(BENSON));\n // command = FindCommand.COMMAND_WORD + \" \" + KEYWORD_MATCHING_MEIER;\n // expectedModel = getModel();\n // ModelHelper.setFilteredList(expectedModel, DANIEL);\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n /* Case: find person in address book, keyword is same as name but of different case -> 1 person found */\n // command = FindCommand.COMMAND_WORD + \" MeIeR\";\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find person in address book, keyword is substring of name -> 0 persons found */\n // command = FindCommand.COMMAND_WORD + \" Mei\";\n // ModelHelper.setFilteredList(expectedModel);\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find person in address book, name is substring of keyword -> 0 persons found */\n // command = FindCommand.COMMAND_WORD + \" Meiers\";\n // ModelHelper.setFilteredList(expectedModel);\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find person not in address book -> 0 persons found */\n // command = FindCommand.COMMAND_WORD + \" Mark\";\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find phone number of person in address book -> 0 persons found */\n // command = FindCommand.COMMAND_WORD + \" \" + DANIEL.getPhone().value;\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find address of person in address book -> 0 persons found */\n // command = FindCommand.COMMAND_WORD + \" \" + DANIEL.getAddress().value;\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find email of person in address book -> 0 persons found */\n // command = FindCommand.COMMAND_WORD + \" \" + DANIEL.getEmail().value;\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find tags of person in address book -> 0 persons found */\n // List<Tag> tags = new ArrayList<>(DANIEL.getTags());\n // command = FindCommand.COMMAND_WORD + \" \" + tags.get(0).tagName;\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find while a person is selected -> selected card deselected */\n // showAllPersons();\n // //selectPerson(Index.fromOneBased(1));\n //assertFalse(getPersonListPanel().getHandleToSelectedCard().getName().equals(DANIEL.getName().fullName));\n // command = FindCommand.COMMAND_WORD + \" Daniel\";\n // ModelHelper.setFilteredList(expectedModel, DANIEL);\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardDeselected();\n //\n // /* Case: find person in empty address book -> 0 persons found */\n // deleteAllPersons();\n // command = FindCommand.COMMAND_WORD + \" \" + KEYWORD_MATCHING_MEIER;\n // expectedModel = getModel();\n // ModelHelper.setFilteredList(expectedModel, DANIEL);\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n\n /* Case: mixed case command word -> rejected */\n // command = \"FiNd Meier\";\n // assertCommandFailure(command, FindCommand.MESSAGE_USAGE);\n\n }", "public void searchValue(ActionEvent actionEvent) {\n RadioButton selectedRadioButton = (RadioButton) radioSelector.getSelectedToggle();\n String toogleGroupValue = selectedRadioButton.getText();\n boolean valueSearch = false;\n if (toogleGroupValue.equals(\"Value\")) {\n valueSearch = true;\n }\n String text = searchText.getText();\n DataBase dataBase = new DataBase(file);\n ArrayList <KeyValue> data = dataBase.searchData(text, valueSearch);\n tableKeyValue.getItems().clear();\n if (data.size() > 0) {\n this.list.addAll(data);\n }\n\n }", "@Override()\n protected void onResume()\n {\n logEnter(LOG_TAG, \"onResume\");\n\n super.onResume();\n\n setTitle(getString(R.string.list_search_results_activity_title,\n entries.size()));\n entryMap = new HashMap<String,SearchResultEntry>(entries.size());\n\n final StringBuilder buffer = new StringBuilder();\n final String[] entryStrings = new String[entries.size()];\n for (int i=0; i < entryStrings.length; i++)\n {\n final SearchResultEntry e = entries.get(i);\n if (e.hasObjectClass(\"person\"))\n {\n final String name = e.getAttributeValue(\"cn\");\n if (name == null)\n {\n entryStrings[i] = e.getDN();\n }\n else\n {\n buffer.setLength(0);\n buffer.append(name);\n\n final String phone = e.getAttributeValue(\"telephoneNumber\");\n if (phone != null)\n {\n buffer.append(EOL);\n buffer.append(phone);\n }\n\n final String mail = e.getAttributeValue(\"mail\");\n if (mail != null)\n {\n buffer.append(EOL);\n buffer.append(mail);\n }\n\n entryStrings[i] = buffer.toString();\n }\n }\n else\n {\n entryStrings[i] = e.getDN();\n }\n entryMap.put(entryStrings[i], e);\n }\n\n Arrays.sort(entryStrings);\n\n final ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,\n android.R.layout.simple_list_item_1, entryStrings);\n setListAdapter(adapter);\n getListView().setTextFilterEnabled(true);\n\n getListView().setOnItemClickListener(this);\n getListView().setOnItemLongClickListener(this);\n }", "@Override\n public boolean onQueryTextChange(String newText) {\n currentSearchData = new ArrayList<String>();\n getCurrentSearchData(newText);\n RelativeLayout searchDataRelativeView = (RelativeLayout) findViewById(R.id.search_relative_view);\n searchDataRelativeView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n\n }\n });\n showCurrentData();\n System.out.println(\"\");\n return false;\n }", "protected List<Params> setViewData(ScheduleParams searchParam)\n throws CommonException\n {\n\n List<Params> outParams = new ArrayList<Params>();\n\n //Receiving plan search\n ReceivingPlanHandler receivingHandler = new ReceivingPlanHandler(this.getConnection());\n ReceivingPlanSearchKey searchKey = new ReceivingPlanSearchKey();\n\n //Collects by planned receiving date\n searchKey.setPlanDayCollect();\n searchKey.setConsignorCodeCollect();\n searchKey.setPlanDayGroup();\n searchKey.setConsignorCodeGroup();\n searchKey.setStatusFlag(ReceivingPlan.STATUS_FLAG_DELETE, \"!=\");\n searchKey.setConsignorCode(searchParam.getString(CONSIGNOR_CODE));\n searchKey.setPlanDayOrder(true);\n\n //Button controls\n String btnControl = buttonContlor(searchParam);\n\n //When a display button on an initial or auto display is pushed \n if (ReceivingInParameter.PROCESS_FLAG_VIEW.equals(searchParam.get(PROCESS_FLAG)))\n {\n //Search condition\n searchKey.setPlanDay(searchParam.getString(PLAN_DAY), \">=\");\n }\n //When the next button is pushed\n else if (ReceivingInParameter.PROCESS_FLAG_NEXT_PAGE.equals(searchParam.get(PROCESS_FLAG)))\n {\n //Gets two planned date data that are greater than a standard date (the lower section)\n searchKey.setPlanDay(searchParam.getString(PLAN_DAY), \">\");\n }\n //When the previous button is pushed\n else if (ReceivingInParameter.PROCESS_FLAG_PREVIOUS_PAGE.equals(searchParam.get(PROCESS_FLAG)))\n {\n //Gets two planned date data that are smaller than a standard date (the upper section)\n searchKey.setPlanDay(searchParam.getString(PLAN_DAY), \"<\");\n }\n\n ReceivingPlan[] searchPlanDayEntity = (ReceivingPlan[])receivingHandler.find(searchKey);\n\n //Initializes an array-acquisition-search position\n int start = 0;\n int end = 2;\n\n //When the previous button is pushed\n if (searchPlanDayEntity.length == 0)\n {\n return outParams;\n }\n else if (ReceivingInParameter.PROCESS_FLAG_PREVIOUS_PAGE.equals(searchParam.get(PROCESS_FLAG))\n && searchPlanDayEntity.length != 1)\n {\n start = searchPlanDayEntity.length - 2;\n end = searchPlanDayEntity.length;\n }\n\n outParams = createViewData(searchPlanDayEntity, start, end, btnControl);\n\n return outParams;\n }", "private void searchRefresh(){\n adapter = new FoundRecyclerviewAdapter(FoundActivity.this, search);\n v.setAdapter(adapter);\n }", "private void setProjectSearchResults(List<Project> aces, List<Project> aws, List<Project> elsewhere, List<Project> rcnc){\n resultsMap.put(titles[0], aces);\n resultsMap.put(titles[1], aws);\n resultsMap.put(titles[2], elsewhere);\n resultsMap.put(titles[3], rcnc);\n\n mAdapterSearch = new ProjectsExpandableSearchAdapter(main, R.layout.project_list_item, titles, resultsMap);\n mProjectsListView.setAdapter(mAdapterSearch);\n mProjectsListView.expandGroup(0);\n mProjectsListView.expandGroup(1);\n mProjectsListView.expandGroup(2);\n mProjectsListView.expandGroup(3);\n\n }", "@Override\n public void run() {\n \t\t((ChangePlaceActivity) activity).onSearchPlaceSuccess(list);\n }", "public void findDataFromServer() {\n try {\n JSONObject jsonObjectGetPostParameterEachScreen = null;\n PassParameterbean passParameterbean = null;\n if (pageTokenAvailable) {\n searchbean_post_data.setPageToken(pageToken);\n }\n\n if (TextUtils.isEmpty(baseTextview_searched_item.getText().toString())) {\n\n } else {\n String name = URLEncoder.encode(baseTextview_searched_item.getText().toString(), \"utf-8\");\n searchbean_post_data.setSearchText(name);\n }\n\n\n searchbean_post_data.setIsCommuntiySearchByName(\"1\");\n searchbean_post_data.setUser_id(commonSession.getLoggedUserID());\n requestParametersbean.setSearchbeanPassPostData(searchbean_post_data);\n\n jsonObjectGetPostParameterEachScreen = GetPostParameterEachScreen.getPostParametersAccordingIndex(ScreensEnums.SEARCH_BY_COMMUNITYNAME.getScrenIndex(), requestParametersbean);\n passParameterbean = new PassParameterbean(this, CommunitySearchByNameActivity.this, getApplicationContext(), URLs.SEARCH_BY_COMMUNITYNAME, jsonObjectGetPostParameterEachScreen, ScreensEnums.SEARCH_BY_COMMUNITYNAME.getScrenIndex(), CommunitySearchByNameActivity.class.getClass());\n\n\n /* requestParametersbean.setUserId(commonSession.getLoggedUserID());\n requestParametersbean.setStart_limit(current_start);\n\n jsonObjectGetPostParameterEachScreen = GetPostParameterEachScreen.getPostParametersAccordingIndex(ScreensEnums.FILTER_COMMUNITY.getScrenIndex(), requestParametersbean);\n passParameterbean = new PassParameterbean(this, CommunitySearchByNameActivity.this, getApplicationContext(), URLs.FILTERCOMMUNITY, jsonObjectGetPostParameterEachScreen, ScreensEnums.FILTER_COMMUNITY.getScrenIndex(), CommunitySearchByNameActivity.class.getClass());\n*/\n\n\n passParameterbean.setNoNeedToDisplayLoadingDialog(true);\n new RequestToServer(passParameterbean, retryParameterbean).execute();\n\n\n } catch (Exception e) {\n e.printStackTrace();\n new BaseException(e, false, retryParameterbean);\n }\n }", "@FXML\n public void handleSearchButton(ActionEvent event) throws ClassNotFoundException, IOException {\n Album temp = new Album(\"temp\");\n if (cList.getItems().size() == 0 && (startDate.getValue() == null || endDate.getValue() == null)) {\n alert(\"Error\", \"Miss search criteria.\", \"Please add the search criteria first.\");\n return;\n }\n\n if ((startDate.getValue() != null && endDate.getValue() == null) ||\n (startDate.getValue() == null && endDate.getValue() != null) ||\n (startDate.getValue() != null && startDate.getValue().isAfter(endDate.getValue()))) {\n error(\"Please enter valid date range\");\n }\n if (obsList.isEmpty() && startDate.getValue() != null && endDate.getValue() != null) {\n for (Album a : albums) {\n ArrayList<Photo> photos = new ArrayList<Photo>();\n photos = (ArrayList<Photo>) a.getPhotos();\n for (Photo p : photos) {\n ArrayList<Tag> tags2 = new ArrayList<Tag>();\n tags2 = (ArrayList<Tag>) p.getTags();\n if (p.isWithinDateRange(startDate.getValue(), endDate.getValue())) {\n boolean exists = false;\n SerializableImage tempImage = new SerializableImage();\n tempImage.setImage(p.getImage());\n for (Photo p2 : temp.getPhotos()) {\n if (tempImage.equals(p2.getSerializableImage())) {\n exists = true;\n }\n }\n if (exists == false) {\n temp.addPhoto(p);\n }\n }\n }\n }\n\n } else if (!(obsList.isEmpty()) && startDate.getValue() == null && endDate.getValue() == null) {\n boolean containsAllTags = true;\n boolean containsTag = false;\n for (Album a : albums) {\n ArrayList<Photo> photos = new ArrayList<Photo>();\n photos = (ArrayList<Photo>) a.getPhotos();\n for (Photo p : photos) {\n containsAllTags = true;\n containsTag = false;\n ArrayList<Tag> tags2 = new ArrayList<Tag>();\n tags2 = (ArrayList<Tag>) p.getTags();\n for (Tag c : tags) {\n for (Tag t : tags2) {\n if (t.getType().equals(c.getType()) && t.getValue().equals(c.getValue())) {\n containsTag = true;\n }\n }\n containsAllTags = containsAllTags && containsTag;\n containsTag = false;\n }\n if (containsAllTags) {\n boolean exists = false;\n SerializableImage tempImage = new SerializableImage();\n tempImage.setImage(p.getImage());\n for (Photo p2 : temp.getPhotos()) {\n if (tempImage.equals(p2.getSerializableImage())) {\n exists = true;\n }\n }\n if (!exists) {\n temp.addPhoto(p);\n }\n }\n }\n }\n } else {\n for (Album a : albums) {\n boolean containsAllTags = true;\n boolean containsTag = false;\n ArrayList<Photo> photos = new ArrayList<Photo>();\n photos = (ArrayList<Photo>) a.getPhotos();\n for (Photo p : photos) {\n if (p.isWithinDateRange(startDate.getValue(), endDate.getValue())) {\n containsAllTags = true;\n containsTag = false;\n ArrayList<Tag> tags2 = new ArrayList<Tag>();\n tags2 = (ArrayList<Tag>) p.getTags();\n for (Tag c : tags) {\n for (Tag t : tags2) {\n if (t.getType().equals(c.getType()) && t.getValue().equals(c.getValue())) {\n containsTag = true;\n }\n }\n containsAllTags = containsAllTags && containsTag;\n containsTag = false;\n }\n if (containsAllTags) {\n boolean exists = false;\n SerializableImage tempImage = new SerializableImage();\n tempImage.setImage(p.getImage());\n for (Photo p2 : temp.getPhotos()) {\n if (tempImage.equals(p2.getSerializableImage())) {\n exists = true;\n }\n }\n if (!exists) {\n temp.addPhoto(p);\n }\n }\n }\n }\n }\n\n }\n Parent parent;\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/View/SearchResults.fxml\"));\n parent = (Parent) loader.load();\n\n SearchResultsController ctrl = loader.getController();\n Scene scene = new Scene(parent);\n\n Stage app_stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n\n ctrl.start(app_stage, currentUser, temp);\n\n app_stage.setScene(scene);\n app_stage.show();\n\n\n }", "@Test\r\n\tvoid testSearch2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.search(4);\r\n\t\tassertNotEquals(3, output);\r\n\t}", "protected final void searchForText() {\n Logger.debug(\" - search for text\");\n final String searchText = theSearchEdit.getText().toString();\n\n MultiDaoSearchTask task = new MultiDaoSearchTask() {\n @Override\n protected void onSearchCompleted(List<Object> results) {\n adapter.setData(results);\n }\n\n @Override\n protected int getMinSearchTextLength() {\n return 0;\n }\n };\n task.readDaos.add(crDao);\n task.readDaos.add(monsterDao);\n task.readDaos.add(customMonsterDao);\n task.execute(searchText.toUpperCase());\n }", "@Override\n public void onResults(List<LocationClass> results) {\n searchView.swapSuggestions(results);\n\n //let the users know that the background\n //process has completed\n }", "public Vector searchFile(String str){\r\n Vector search = new Vector();\r\n\r\n /* Search corresponding to title */\r\n Vector titleLoc = (Vector) titleHashTable.get(str);\r\n if (titleLoc != null) { // title matches\r\n for(int i=0 ;i < titleLoc.size(); i++){\r\n if(((FileLocation)titleLoc.elementAt(i)).record.isConnected)\r\n search.addElement(titleLoc.elementAt(i));\r\n }\r\n }\r\n\r\n Vector artistLoc = (Vector) artistHashTable.get(str);\r\n if (artistLoc != null) {\r\n for(int i=0 ;i < artistLoc.size();i++){\r\n if(((FileLocation)artistLoc.elementAt(i)).record.isConnected)\r\n search.addElement(artistLoc.elementAt(i));\r\n }\r\n }\r\n\r\n Vector albumLoc = (Vector) albumHashTable.get(str);\r\n if (albumLoc != null) {\r\n for(int i=0 ;i<albumLoc.size();i++){\r\n if(((FileLocation)albumLoc.elementAt(i)).record.isConnected)\r\n search.addElement(albumLoc.elementAt(i));\r\n }\r\n }\r\n\r\n\t\treturn search;\r\n\t}", "public List<SearchedItem> getAllSearchedItems(StaplerRequest req, String tokenList) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, ServletException {\n Set<String> filteredItems= new TreeSet<String>();\n AbstractProject p;\n \n if(\"Filter\".equals(req.getParameter(\"submit\"))){ //user wanto to change setting for this search\n filteredItems = getFilter(req);\n }\n else{\n filteredItems = User.current().getProperty(SearchProperty.class).getFilter();\n }\n req.setAttribute(\"filteredItems\", filteredItems);\n return getResolvedAndFilteredItems(tokenList, req, filteredItems);\n }", "@Override\n\tprotected void startSearchResultActivity(String[] search_ifs) {\n\t\tItemSearchResultActivity.startThisActivity(this, getString(R.string.detail_search), search_ifs);\n\t}", "private void m26dj(com.google.android.apps.nexuslauncher.search.SearchResult r8) {\n /*\n r7 = this;\n android.net.Uri$Builder r0 = new android.net.Uri$Builder\n r0.<init>()\n java.lang.String r1 = \"content\"\n android.net.Uri$Builder r0 = r0.scheme(r1)\n java.lang.String r1 = com.google.android.apps.nexuslauncher.search.AppSearchProvider.AUTHORITY\n android.net.Uri$Builder r0 = r0.authority(r1)\n java.lang.String r1 = r8.mQuery\n android.net.Uri$Builder r0 = r0.appendPath(r1)\n android.net.Uri r2 = r0.build()\n r0 = 0\n android.content.Context r1 = r7.mContext // Catch:{ all -> 0x005f }\n android.content.ContentResolver r1 = r1.getContentResolver() // Catch:{ all -> 0x005f }\n r3 = 0\n r4 = 0\n r5 = 0\n r6 = 0\n android.database.Cursor r1 = r1.query(r2, r3, r4, r5, r6) // Catch:{ all -> 0x005f }\n if (r1 == 0) goto L_0x004e\n java.lang.String r0 = \"suggest_intent_data\"\n int r0 = r1.getColumnIndex(r0) // Catch:{ all -> 0x004c }\n L_0x0032:\n boolean r2 = r1.moveToNext() // Catch:{ all -> 0x004c }\n if (r2 == 0) goto L_0x004e\n java.util.ArrayList<com.android.launcher3.util.ComponentKey> r2 = r8.mApps // Catch:{ all -> 0x004c }\n java.lang.String r3 = r1.getString(r0) // Catch:{ all -> 0x004c }\n android.net.Uri r3 = android.net.Uri.parse(r3) // Catch:{ all -> 0x004c }\n android.content.Context r4 = r7.mContext // Catch:{ all -> 0x004c }\n com.android.launcher3.util.ComponentKey r3 = com.google.android.apps.nexuslauncher.search.AppSearchProvider.uriToComponent(r3, r4) // Catch:{ all -> 0x004c }\n r2.add(r3) // Catch:{ all -> 0x004c }\n goto L_0x0032\n L_0x004c:\n r8 = move-exception\n goto L_0x0061\n L_0x004e:\n if (r1 == 0) goto L_0x0053\n r1.close()\n L_0x0053:\n android.os.Handler r0 = r7.mUiHandler\n r1 = 200(0xc8, float:2.8E-43)\n android.os.Message r8 = android.os.Message.obtain(r0, r1, r8)\n r8.sendToTarget()\n return\n L_0x005f:\n r8 = move-exception\n r1 = r0\n L_0x0061:\n if (r1 == 0) goto L_0x0066\n r1.close()\n L_0x0066:\n throw r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.apps.nexuslauncher.search.SearchThread.m26dj(com.google.android.apps.nexuslauncher.search.SearchResult):void\");\n }", "private void search() {\n \t\tString searchString = m_searchEditText.getText().toString();\n \n \t\t// Remove the refresh if it's scheduled\n \t\tm_handler.removeCallbacks(m_refreshRunnable);\n \t\t\n\t\tif ((searchString != null) && (!searchString.equals(\"\"))) {\n \t\t\tLog.d(TAG, \"Searching string: \\\"\" + searchString + \"\\\"\");\n \n \t\t\t// Save the search string\n \t\t\tm_lastSearch = searchString;\n \n \t\t\t// Disable the Go button to show that the search is in progress\n \t\t\tm_goButton.setEnabled(false);\n \n \t\t\t// Remove the keyboard to better show results\n \t\t\t((InputMethodManager) this\n \t\t\t\t\t.getSystemService(Service.INPUT_METHOD_SERVICE))\n \t\t\t\t\t.hideSoftInputFromWindow(m_searchEditText.getWindowToken(),\n \t\t\t\t\t\t\t0);\n \n \t\t\t// Start the search task\n \t\t\tnew HTTPTask().execute(searchString);\n \t\t\t\n \t\t\t// Schedule the refresh\n \t\t\tm_handler.postDelayed(m_refreshRunnable, REFRESH_DELAY);\n \t\t} else {\n \t\t\tLog.d(TAG, \"Ignoring null or empty search string.\");\n \t\t}\n \t}" ]
[ "0.58227336", "0.57584363", "0.5719923", "0.55907714", "0.55034506", "0.5415082", "0.53982824", "0.5345212", "0.5330481", "0.53130966", "0.53042406", "0.52523696", "0.522878", "0.52237153", "0.5169322", "0.5145725", "0.5136262", "0.506659", "0.50628626", "0.50623333", "0.5061032", "0.5035364", "0.503382", "0.50320274", "0.50141764", "0.50062966", "0.50030327", "0.50030327", "0.50022626", "0.4996978", "0.4990927", "0.4990842", "0.4989004", "0.498274", "0.49824548", "0.4975119", "0.49698746", "0.49693474", "0.49675095", "0.4958548", "0.49583745", "0.4942465", "0.49240267", "0.49229804", "0.49141255", "0.48950645", "0.4892847", "0.4886704", "0.4883861", "0.48836613", "0.48800656", "0.487904", "0.48747247", "0.4869355", "0.48628157", "0.4842204", "0.48373902", "0.48219138", "0.4817711", "0.4816336", "0.48156282", "0.48031095", "0.48003495", "0.47971088", "0.47934517", "0.47913823", "0.4785549", "0.47829747", "0.4768421", "0.4762745", "0.47575793", "0.47537392", "0.47493836", "0.47413665", "0.47385925", "0.47340214", "0.47322965", "0.47264746", "0.4721557", "0.47199482", "0.47176924", "0.47133356", "0.4705144", "0.47030112", "0.4700575", "0.46986473", "0.46917415", "0.46912536", "0.46895015", "0.46846405", "0.4683348", "0.46798614", "0.4677992", "0.46730012", "0.46718705", "0.46709532", "0.46701083", "0.46682644", "0.46668407", "0.46636456" ]
0.68821466
0
end onActivityResult(...) Called when an options item is clicked
@Override public boolean onOptionsItemSelected(MenuItem item) { Log.i(TAG, "onItemSelected()"); switch (item.getItemId()) { case R.id.idSearchNew: // start a new search MakeToast.makeToast(this, "start a new search", MakeToast.LEVEL_DEBUG); break; case R.id.idSearchAgain: // search again in current results MakeToast.makeToast(this, "start search in current result", MakeToast.LEVEL_DEBUG); break; case R.id.idEndSearch: // done searching finish(); // end this task break; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View view) {\n isFromResultActivity=false;\n finish();\n }", "public void optionsDone(View view) {\n int mode = modeCheckBox.isChecked() ? 1 : 0;\n Intent intent = new Intent();\n intent.putExtra(\"quizLength\", quizLength);\n intent.putExtra(\"mode\", mode);\n setResult(RESULT_OK, intent);\n finish();\n }", "@Override\n public void onClick(View v) {\n setResult(Activity.RESULT_OK, new Intent());\n finish();\n }", "@Override\n public void onClick(View v) {\n Intent returnIntent = new Intent();\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }", "@Override\n\tpublic void finish() {\n\t\tIntent data = new Intent();\n\t\t// Activity finished ok, return the data\n\t\t\n\t\t// TODO 2 put the data with the id returnValue\n\t\tdata.putExtra(RATING_OPTION, \"\"+rating.getProgress());\n\t\t\n\t\t// TODO 3 use setResult(RESULT_OK, intent);\n\t\t// to return the Intent to the application\n\t\tsetResult(RESULT_OK, data);\n\n\t\tsuper.finish();\n\t}", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tResultActivity.this.finish();\r\n\t\t\t}", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n if(resultCode == ACTIVITY_FOR_RESULT_ID){\r\n setResult(ACTIVITY_FOR_RESULT_ID);\r\n finish();\r\n }\r\n }", "public void finishActivity(View view) {\n Intent result = new Intent(\"com.example.RESULT_ACTION\", Uri.parse(\"content://result_uri\"));\n result.putExtra(\"song\", songs.getSelectedItem().toString());\n setResult(Activity.RESULT_OK, result);\n finish();\n }", "@Override\r\n public void onClick(View v) {\n setResult(1);\r\n finish();\r\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data){\n finish();\n startActivity(getIntent());\n }", "@Override\r\n\tprotected void onActivityResult(int arg0, int arg1, Intent arg2) {\n\t\tsuper.onActivityResult(arg0, arg1, arg2);\r\n\t\tif(arg0 == REQUEST_CODE_SUCCESS && arg1 == RESULT_OK){\r\n\t\t\tthis.finish();\r\n\t\t}\r\n\t}", "public void onActivityResult(int requestCode, int resultCode, Intent intent) {\n Log.d(LOG_TAG, \"onActivityResult\");\n if (resultCode == Activity.RESULT_OK) {\n Log.d(LOG_TAG, \"requestCode: \" + requestCode);\n switch (requestCode) {\n case 300:\n AdobeSelection selection = getSelection(intent);\n\n Intent data = new Intent();\n data.putExtras(intent);\n setResult(Activity.RESULT_OK,data);\n finish();\n\n break;\n }\n } else if (resultCode == Activity.RESULT_CANCELED) {\n //this.callbackContext.error(\"Asset Browser Canceled\");\n Log.d(LOG_TAG, \"Asset Browser Canceled\");\n finish();\n }\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(resultCode!= Activity.RESULT_OK){\n return;\n }\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 1) {\n if (resultCode == RESULT_OK) {\n this.finish();\n }\n }\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n ModelRuleAction action = RuleBuilder.instance().getChosenRuleAction();\r\n if (action != null) {\r\n finish();\r\n }\r\n }", "@Override\n\t\tpublic boolean onContextItemSelected(MenuItem item) {\n\t\t\tif(item.toString() == \"Cancel Paired\")\n\t\t\t{\n\t\t\t\tpaired_cancel(mBtDevChosen);\n\t\t\t}\n\t\t\telse if(item.toString()== \"Pair and Connect\")\n\t\t\t{\n\t\t\t\tactivity_result_set(mBtDevChosen);\n\t\t\t}\n\t\t\treturn super.onContextItemSelected(item);\n\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfinish();\r\n\t\t\t\tsetResult(RESULT_CANCELED);\r\n\t\t\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif(requestCode == 1){\n\t\t\tif(resultCode == RESULT_OK){\n\t\t\t\tsetResult(RESULT_OK);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n //handle presses on the action bar items\n switch (item.getItemId()) {\n // if the item in tool bar is selected\n case R.id.activity_filter:\n // check which option is selected\n checkWhichIsChosen();\n // if there are more than one options are selected, then braek\n if(flag > 1){\n Toast.makeText(this,\"Warning: More than one option is chosen\" ,Toast.LENGTH_LONG).show();\n setErrorMessages();\n break;\n }\n // if there is only one option is selected, then save the mood event list in the file\n if(flag == 1){\n SaveFile saveFile = new SaveFile();\n saveFile.saveArrayList(getApplicationContext(), moodListAfterFilter, FILENAME);\n // save the options which the user chosen\n saveOption();\n }\n // if no option is selected, then delete the file.\n if (flag == 0){\n // save the option\n saveOption();\n deleteFile(\"filter.sav\");\n }\n // jump to main activity\n setResult(RESULT_OK);\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public void onClick(View v) {\n ListViewActivity.actionStart(SelectActivity.this);\n finish();\n }", "@Override\n public void onClick(View view) {\n Intent dummyInt = new Intent();\n dummyInt.putExtra(CardActivity.CARD, ca);\n setResult(2, dummyInt);\n finish();\n }", "@Override\n public void onBackPressed() {\n \tsetResult(RESULT_OK, getIntent());\n \tfinish();\n }", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tsetResult(0x26, null);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}", "@Override\r\n\tpublic void finish() {\n\t\tsetResult(mPreferenceChanged?Activity.RESULT_OK:Activity.RESULT_CANCELED);\r\n\t\t\r\n\t\tsuper.finish();\r\n\t}", "public boolean onMenuItemClick(MenuItem item) {\n \t\n \tsetResult(RESULT_CANCELED);\n \tfinish();\n return true;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsetResult(0x717,intent);\n\t\t\t\tfinish();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent failResultIntent = new Intent();\n\t\t\t\tfailResultIntent.putExtra(\"id\", intent.getStringExtra(\"id\"));\n\t\t\t\tfailResultIntent.putExtra(\"position\", intent.getIntExtra(\"position\", -1));\n\t\t\t\tsetResult(RESULT_CANCELED, failResultIntent);\n\t\t\t\tfinish();\n\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\toptionsDialog();\r\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent resultIntent = new Intent();\n\t\t\t\tsetResult(Activity.RESULT_OK, resultIntent);\n\t\t\t\tfinish();\n\t\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.finish) {\n resultActivity();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent arg2) {\n\t\tsuper.onActivityResult(requestCode, resultCode, arg2);\n\n\t\tswitch (resultCode) {\n\t\tcase 0:// finish\n\t\t\tCustomApplication.app\n\t\t\t\t\t.finishActivity(LessonFlashCardOpActivity.this);\n\t\t\tbreak;\n\t\tcase 1:// redo\n\t\t\tindex = 0;\n\t\t\tsetText();\n\t\t\tplay();\n\t\t\tgallery.setSelection(index);// 选中当前页面\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public void closeActivity(boolean result) {\n\n if (result) {\n Intent returnIntent = new Intent();\n setResult(2, returnIntent);\n }\n\n PostAccomodationActivity.super.onBackPressed();\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 4 && resultCode == 4) {\n setResult(4);\n finish();\n } else if (requestCode == 4 && resultCode == 3) {\n setResult(3);\n finish();\n }\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setClass(AddPlan.this,Favorite_Site.class);\n// Bundle bundle = new Bundle();\n// bundle.putString(\"myChoice\",\"hello\");\n// intent.putExtras(bundle);\n// startActivityForResult(intent,0);\n startActivity(intent);\n// //AddPlan.this.finish();\n finish();\n\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t\n\t}", "public void onBackPressed() {\n Intent i = new Intent();\n i.putExtra(\"listCanceled\", true);\n setResult(Activity.RESULT_OK, i);\n finish();\n }", "@Override\n public void onBackPressed() {\n Intent intent = new Intent();\n intent.putExtra(\"type\", type);\n setResult(RESULT_OK, intent);\n finish();\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "public void onClick(View v) {\n setResult(Activity.RESULT_OK);\n finish();\n }", "@Override\r\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n\t\t// TODO - fill in here\r\n\r\n\r\n\r\n\t}", "protected void setResultCancel() {\n setResult(RESULT_CANCELED);\n finish();\n }", "@Override\r\n\t\tprotected void onPostExecute(String result) {\n\t\t\tmDialog.cancel();\r\n\t\t\tIntent intent=new Intent();\r\n\t\t\tsetResult(11, intent);\r\n\t\t\tfinish();\r\n\t\t}", "@Override\n public void onClick(View view) {\n FoodList.FoodItem item = saveFood(false);\n Intent intent = new Intent(view.getContext(), MainActivity.class);\n intent.putExtra(FoodList.FoodItem.ITEM_KEY, item);\n setResult(RESULT_OK, intent);\n finish();\n }", "@Override\n public void onBackPressed() {\n Log.d(TAG, \"onBackPressed\");\n\n //set the result along with the intent\n setResult(Activity.RESULT_OK, buildResultIntent());\n super.onBackPressed(); //this will call finish\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\ttry {\n\t\t\t\n\t\t\tswitch(requestCode){\n\t\t\tcase(222):{\n\t\t\t\tif(resultCode==Activity.RESULT_OK){\n\t\t\t\t\tString selectedContact=data.getDataString();\n\t\t\t\t\ttvSecondActivity.setText(selectedContact.toString());\n\t\t\t\t\tIntent intent=new Intent(Intent.ACTION_VIEW,Uri.parse(selectedContact));\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\ttvSecondActivity.setText(\"Selection CANCELLED\"+requestCode+\"\"+resultCode);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tToast.makeText(getBaseContext(), e.getMessage(), Toast.LENGTH_LONG).show();\n\t\t}\n\t}", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif (resultCode == RESULT_OK)\n\t\t\tfinish();\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n public void onClick(DialogInterface paramDialogInterface, int paramInt) {\n context.finish();\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif (requestCode == FORGET && resultCode == FORGET) {\n\t\t\tsetResult(FORGET);\n\t\t\tfinish();\n\t\t\t\n\t\t}\n\t}", "@Override\n\tpublic void finish() {\n\t\t\n\t\tIntent i=new Intent();\n\t\tBundle b=new Bundle();\n\t\tb.putString(\"Button\", ReturnString);\n\t\ti.putExtras(b);\n\t\t\n\t\tsetResult(RESULT_OK, i);\n\t\tsuper.finish();\n\t}", "@Override\n public void onClick(DialogInterface dialog, int item) {\n if (options[item].equals(\"Take Photo\")) {\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivityForResult(intent, 0);\n } else if (options[item].equals(\"Choose from Library\")) {\n Intent intent = new Intent(\n Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(\n Intent.createChooser(intent, \"Select File\"),\n 1);\n } else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }", "@Override\n public void onClick(View view) {\n int cost; Item costItem = item.get(0);\n if (costItem.Selected.equals(costItem.elements.get(costItem.elements.size()-1))) cost = Integer.valueOf(costItem.CustomValue.toString());\n else if (costItem.Selected.equals(\"Any\")) cost = 999999999;\n else if (costItem.Selected.equals(\"Free\")) cost = 0;\n else cost = Integer.valueOf(costItem.Selected.substring(7));\n\n double dist; Item distItem = item.get(3);\n if (distItem.Selected.equals(distItem.elements.get(distItem.elements.size()-1))) dist = Double.valueOf(distItem.CustomValue.toString());\n else if (distItem.Selected.equals(\"Any\")) dist = 999999999;\n else dist = Double.valueOf(distItem.Selected.substring(2,distItem.Selected.length()-3));\n\n // pass it back to the main activity\n Intent intent = new Intent(getBaseContext(),MainActivity.class);\n intent.putExtra(\"cost\", cost);\n intent.putExtra(\"type\", item.get(1).mSelected);\n intent.putExtra(\"location\", item.get(2).Selected);\n intent.putExtra(\"distance\", dist);\n intent.putExtra(\"other\", item.get(4).mSelected);\n setResult(1,intent);\n finish();\n }", "@Override\n public void onClick(View arg0) {\n\n\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"merchantNumber\",merchantNamesList.get(position).getMerchantNumber());\n returnIntent.putExtra(\"merchantName\",merchantNamesList.get(position).getMerchantName());\n setResult(RESULT_OK, returnIntent);\n finish();\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tswitch (resultCode) \n\t\t{ \n \tcase 1:\n \t\ts = data.getStringExtra(\"result\");\n// \t\tshowInf = (TextView)findViewById(R.id.InfTextView);\n// \t\tshowInf.setText(\"您输入的选项为:\"+s);\n \t\tif(s != null)\n \t\t{\n \t\t\tGson gson = new Gson();\n \t\t\tlist = gson.fromJson(s, new TypeToken<ArrayList<String>>(){}.getType());\n \t\t\tslyder.setdrgrees(list);\n \t\t\tdraw.setDrawItem(list);\n \t\t\tif(findViewById(R.id.drawcontainer) != null)\n \t\t\t{\n \t\t\t\tdraw.setDrawView();\n \t\t\t}\n \t\t}\n \tbreak; \n \tdefault: \n \t\tbreak; \n } \n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif (requestCode == AdminTools.CHARTS_ACTIVITY_CODE) {\n\t\t\tif (resultCode == RESULT_CANCELED) {\n\t\t\t\tsetResult(RESULT_CANCELED);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t}\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n public void onClick(View v) {\n context.finish();\n }", "@Override\r\n protected void onListItemClick(ListView l, View v, int position, long id)\r\n {\r\n final Intent data = new Intent();\r\n data.putExtra(Main.DATA_SELECTED_RESOLUTION, \r\n (Serializable)getListView().getItemAtPosition(position));\r\n setResult(RESULT_OK, data);\r\n \r\n finish();\r\n }", "@Override\r\n\tpublic void finish() {\n\t\tIntent I = new Intent();\r\n\t\tI.putExtra(\"songs_path\", sour);\r\n\t\tI.putExtra(\"songs_index\", index);\r\n\t\tI.putExtra(\"path_detail\", p);\r\n\t\tI.putExtra(\"name_song\", name_song);\r\n\t\tI.putExtra(\"length\", ind);\r\n\t\t//Toast.makeText(this, sour, 1000).show();\r\n\t\tsetResult(RESULT_OK,I);\r\n\t\tsuper.finish();\r\n\t}", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n finish(resultCode, data);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.putExtra(\"type\", type);\n intent.putExtra(\"name\", edit_name.getText().toString());\n intent.putExtra(\"day\", edit_day.getText().toString());\n intent.putExtra(\"money\", edit_money.getText().toString());\n intent.putExtra(\"reason\", reason);\n intent.putExtra(\"position\",position);\n intent.putExtra(\"Yes_or_No\",\"Yes\");\n setResult(RESULT_OK, intent);\n\n finish();\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n }", "@Override\n public void onClick(View v) {\n startActivity(finishIntent);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == REQUEST_CODE) {\n if (resultCode == RESULT_CANCELED) {\n Toast.makeText(this, \"Пользователь вышел из SecondActivity\", Toast.LENGTH_SHORT).show();\n } else if (resultCode == RESULT_OK) {\n\n // gets chosen menu and put it to textView\n if (data != null) {\n String text = data.getStringExtra(\"result\");\n if (text != null) {\n TextView tv = findViewById(R.id.order);\n tv.setText(text);\n }\n }\n }\n }\n // gets date that was chosen by user\n if (requestCode == REQUEST_CODE_TIME) {\n if (resultCode == RESULT_OK) {\n if (data != null) {\n String text = data.getStringExtra(\"result\");\n if (text != null) {\n TextView tv = findViewById(R.id.chosenTime);\n tv.setText(text);\n }\n }\n }\n }\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\tIntent intent = new Intent();\n\t\tintent.putExtra(\"select\", mLaorenList.get(arg2));\n\t\tsetResult(RESULT_OK, intent);\n\t\tfinish();\n\t}", "@Override\n public void onClick(View v) {\n Intent i = new Intent(MainActivity.this, AddressActivity.class);\n startActivityForResult(i,2);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n Intent myIntent = new Intent(ItemPlayActivity.this, LibraryItemActivity.class);\n myIntent.putExtra(\"selectedItem\",mSelectedItem);\n setResult(RESULT_OK,myIntent);\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n /*if (id == R.id.action_settings) {\n return true;\n }*/\n\n switch (item.getItemId()) {\n\n // Id correspondente ao botão Up/Home da actionbar\n case android.R.id.home:\n\n Intent intent2 = new Intent();\n intent2.putExtra(\"numpedido\", numpedido);\n setResult(1, intent2);\n //intent.putExtra(\"codigo\", codigo);\n //startActivity(intent);\n finish();\n\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n case R.id.action_settings:\n if(FU_ConsisteItem()) {\n if(operacao.equals(\"I\")) {\n if (FU_IncluirItemPedido()) {\n MensagemUtil.addMsg(ManutencaoProdutoPedido.this, \"Produto incluido com sucesso!\");\n Intent intent = new Intent();\n intent.putExtra(\"numpedido\", numpedido);\n setResult(1, intent);\n //intent.putExtra(\"codigo\", codigo);\n //startActivity(intent);\n finish();\n //Intent intent = new Intent(ManutencaoProdutoPedido.this, AdicionarProdutosCustomizada.class);\n //intent.putExtra(\"numpedido\", numpedido);\n //startActivity(intent);\n }\n }else{\n\n if(FU_AlteraItemPedido()){\n MensagemUtil.addMsg(ManutencaoProdutoPedido.this, \"Produto alterado com sucesso!\");\n Intent intent = new Intent();\n intent.putExtra(\"numpedido\", numpedido);\n setResult(1, intent);\n //intent.putExtra(\"codigo\", codigo);\n //startActivity(intent);\n finish();\n }\n }\n }\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.putExtra(\"Yes_or_No\",\"No\");\n setResult(RESULT_OK, intent);\n finish();\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\t// REQUEST_CODE is defined above\n\t\tif (resultCode == RESULT_OK && requestCode == REQUEST_CODE) {\n\t\t\t// Extract name value from result extras\n\t\t\tString name = data.getExtras().getString(\"name\");\n\t\t\tint position = data.getExtras().getInt(\"position\");\n\t\t\tString duedate = data.getExtras().getString(\"duedate\");\n\t\t\tlong reminder = data.getExtras().getLong(\"reminder\");\n\t\t\tString priority =data.getExtras().getString(\"priority\");\n\t\t\titemsAdapter.setSelectedPosition(position);\n\t\t\titemsAdapter.set(position, name);\n\t\t\titemsAdapter.setDueDate(duedate);\n\t\t\titemsAdapter.setReminder(reminder);\n\t\t\titemsAdapter.setPriority(priority);\n\t\t\tif ( reminder > 0)\n\t\t\t\tscheduleAlarm(reminder);\n\t\t\t\n\t\t\titemsAdapter.unsetSelectedPosition();\n\t\t\tgetActionBar().hide();\n\t\t\t\n\n\t\t}\n\t}", "@Override\r\n public void onBackPressed() {\n setResult(Activity.RESULT_OK);\r\n this.finish();\r\n super.onBackPressed();\r\n }", "@Override\r\n public void onClick(View v) {\n \t Intent intent = new Intent(MenuPrincipal.this, PantallaJugadores.class);\r\n \t finish();\r\n startActivity(intent);\r\n //startActivityForResult(intent, 11);\r\n\r\n }", "public void onCancelClicked(View view) {\n //ends activity\n finish();\n }", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\t\t\t\tIntent it = new Intent();\r\n\t\t\t\tBundle bun = new Bundle();\r\n\t\t\t\tbun.putString(\"value\", modeValue[arg2]);\r\n\t\t\t\tbun.putString(\"display\", (String) modelist.getItemAtPosition(arg2));\r\n\t\t\t\tit.putExtras(bun);\r\n\t\t\t\tsetResult(RESULT_OK, it);\r\n\t\t\t\tfinish();\r\n\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n finish(); // go back to previous activity when item not cascade deleted\n\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n settingsManager.onActivityResult(requestCode, resultCode);\n }", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "public final void onActivityResult(int i, int i2, Intent intent) {\n super.onActivityResult(i, i2, intent);\n if (i == 1100 && i2 == -1) {\n Intent intent2 = intent != null ? new Intent(intent) : new Intent();\n intent2.putExtra(\"other_payment_option_type_extra\", 2);\n setResult(-1, intent2);\n finish();\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n Intent myIntent = new Intent(getApplicationContext(), TodaysClassActivity.class);\n startActivityForResult(myIntent, 0);\n return true;\n }", "@Override\n\tpublic void finish() {\n\t Intent data = new Intent();\n\t\t data.putExtra(\"returnKey1\",id );\n \t setResult(2, data);\n\t\t super.finish();\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent resultIntent = new Intent();\n\t\t\t\tresultIntent.putExtra(\"id\", intent.getStringExtra(\"id\"));\n\t\t\t\tresultIntent.putExtra(\"position\", intent.getIntExtra(\"position\", -1));\n\t\t\t\tsetResult(RESULT_OK, resultIntent);\n\t\t\t\tfinish();\n\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = getIntent();\n finish();\n startActivity(intent);\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIntent intent=new Intent();\n\t\t\tintent.putExtra(\"back\", \"Back Data\");\n\t\t\tsetResult(RESULT_CODE, intent);\n\t\t\tfinish();\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.item1:\n finish();\n break;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.send_result) {\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n this.finish();\r\n return true;\r\n }", "public void whatTypeOfPastaClicked(View view) {\n\n Intent child = new Intent(this, SelectPastaType.class);\n child.putExtra(\"selectedType\", selectedType);\n\n startActivityForResult(child, REQ_CODE_PASTA_TYPE);\n\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getContext(),SelectCityActivity.class);\n intent.putExtra(\"selectedCityId\",selectedCityId);\n intent.putExtra(\"selectedCityName\",selectedCityName);\n startActivityForResult(intent,11);\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\n\t\tif (requestCode == 1 && resultCode == RESULT_OK) {\n\n\t\t}\n\t}", "@Override\n\tprotected boolean isCanFinish() {\n\t\tIntent intent = new Intent();\n\t\tintent.setAction(et.getText().toString().trim());\n\t\tsetResult(RESULT_OK, intent);\n\t\treturn true;\n\t}", "@Override\r\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\tIntent intent=new Intent(YanshoudanListActivity.this,CaptureActivity.class);\r\n\t\t\t\t\tstartActivityForResult(intent, QUERYACTIVITYCODE);\r\n\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }", "@Override\n public void OnActivityResultReceived(int requestCode, int resultCode, Intent data) {\n\n }", "@Override\n\t\t public void onClick(View view) {\n\t\t \n\t\t finish();\n\t\t }", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n finish();\n }", "@Override\n public void onBackPressed() {\n Intent intent = getIntent();\n setResult(0,intent);\n\n super.onBackPressed();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }" ]
[ "0.7168011", "0.7123471", "0.7101548", "0.7015278", "0.70052385", "0.691801", "0.690527", "0.6890552", "0.6862676", "0.68167585", "0.6815265", "0.67176557", "0.670402", "0.6688742", "0.6677153", "0.6657796", "0.662609", "0.66151243", "0.6610933", "0.65912837", "0.6582247", "0.6571986", "0.65638715", "0.6563649", "0.65618974", "0.65519685", "0.6523794", "0.6510542", "0.6501151", "0.6489109", "0.64378136", "0.6433499", "0.64160466", "0.6401736", "0.64011425", "0.63993084", "0.63822895", "0.63727415", "0.6369151", "0.6368861", "0.6368696", "0.6352636", "0.63482684", "0.6345692", "0.633819", "0.63381106", "0.6313555", "0.6307772", "0.6307772", "0.6296696", "0.6289544", "0.6284189", "0.6275982", "0.6273601", "0.62663954", "0.62663376", "0.6265362", "0.6264678", "0.625498", "0.62529755", "0.6249071", "0.62453884", "0.6242483", "0.62397", "0.6237186", "0.62336564", "0.62325317", "0.6222489", "0.62199235", "0.6217724", "0.6215622", "0.6205579", "0.6203488", "0.61977935", "0.6193447", "0.6189951", "0.61872613", "0.6180979", "0.6180979", "0.6180979", "0.6179006", "0.617859", "0.61722577", "0.61720043", "0.6165084", "0.61596197", "0.61510605", "0.6150257", "0.613764", "0.6135957", "0.6132514", "0.6132005", "0.6131545", "0.6128793", "0.61237675", "0.61219084", "0.61172235", "0.61123115", "0.61107117", "0.61026543", "0.61026543" ]
0.0
-1
fonction pour placer des obstacles dans le jeu
public void genererObstacle(char grille[][]){ int i; int j; Random random = new Random(); for(i=0 ;i<grille.length; i++){ int x = random.nextInt(19); int y = random.nextInt(19); for(j=0 ;j<grille.length; j++){ if(x==j) grille[i][j] = 'P'; if(y==j) grille[i][j] = 'C'; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initPlateau() {\r\n\t\t// On place les obstacles\r\n\t\tint epaisseur = 20;\r\n\t\tint delta = 50;\r\n\t\tint espace = 150;\r\n\t\tobstacles.add(new Obstacle(0,0,width,epaisseur));\r\n\t\tobstacles.add(new Obstacle(0,height - epaisseur,width,epaisseur));\r\n\t\tobstacles.add(new Obstacle(0,0,epaisseur,height));\r\n\t\tobstacles.add(new Obstacle(width - epaisseur,0,epaisseur,height));\r\n\t\t\r\n\t\tobstacles.add(new Obstacle(0,100,width-espace,epaisseur));\r\n\t\tobstacles.add(new Obstacle(espace,200,width-espace,epaisseur));\r\n\t\tobstacles.add(new Obstacle(0,300,width-espace,epaisseur));\r\n\t\tobstacles.add(new Obstacle(espace,400,width-espace,epaisseur));\r\n\t\t\r\n\t\t// On place les objectifs\r\n\t\t\r\n\t\tobjectifs.add(new Objectif(400,50));\r\n\t\tobjectifs.add(new Objectif(150,50));\r\n\t\tobjectifs.add(new Objectif(300,50));\r\n\t\tobjectifs.add(new Objectif(50,50));\r\n\t\tobjectifs.add(new Objectif(400,50));\r\n\t\tobjectifs.add(new Objectif(600,50));\r\n\t\tobjectifs.add(new Objectif(700,70));\r\n\t\tobjectifs.add(new Objectif(730,100));\r\n\t\tobjectifs.add(new Objectif(730,130));\r\n\t\tobjectifs.add(new Objectif(100,150));\r\n\t\tobjectifs.add(new Objectif(200,150));\r\n\t\tobjectifs.add(new Objectif(400,150));\r\n\t\tobjectifs.add(new Objectif(500,150));\r\n\t\tobjectifs.add(new Objectif(600,150));\r\n\t\tobjectifs.add(new Objectif(700,150));\r\n\t\tobjectifs.add(new Objectif(70,200));\r\n\t\tobjectifs.add(new Objectif(100,250));\r\n\t\tobjectifs.add(new Objectif(500,250));\r\n\t\tobjectifs.add(new Objectif(300,250));\r\n\t\tobjectifs.add(new Objectif(600,250));\r\n\t\tobjectifs.add(new Objectif(700,270));\r\n\t\tobjectifs.add(new Objectif(730,300));\r\n\t\tobjectifs.add(new Objectif(730,330));\r\n\t\tobjectifs.add(new Objectif(100,350));\r\n\t\tobjectifs.add(new Objectif(200,350));\r\n\t\tobjectifs.add(new Objectif(700,350));\r\n\t\tobjectifs.add(new Objectif(500,350));\r\n\t\tobjectifs.add(new Objectif(300,350));\r\n\t\tobjectifs.add(new Objectif(100,350));\r\n\t\tobjectifs.add(new Objectif(70,400));\r\n\t\tobjectifs.add(new Objectif(100,450));\r\n\t\tobjectifs.add(new Objectif(500,450));\r\n\t\tobjectifs.add(new Objectif(300,450));\r\n\t\tobjectifs.add(new Objectif(600,450));\r\n\t\t\r\n\t}", "public static void setHardLevelObstacles() {\n\t\t// Setting values for obstacles\n\t\tint selectedPlatform = 0;\n\t\tint selectedXPart = 0;\n\t\tfor(int i = 0; i < obstacle.length; i++) {\n\t\t\tif(i % 2 == 0) {\n\t\t\t\tobstacle[i].setSize(OBSTACLE_WIDTH, OBSTACLE_HEIGHT);\n\t\t\t\tobstacle[i].setObstacleImage(Engine.pickRandomImage(imgObstacle));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tobstacle[i].setSize(OBSTACLE_LARGE_WIDTH, OBSTACLE_LARGE_HEIGHT);\n\t\t\t\tobstacle[i].setObstacleImage(Engine.pickRandomImage(imgObstacleLarge));\n\t\t\t}\n\n\t\t\tint x;\n\t\t\tint y;\n\t\t\tint randomOffset = (int) (Math.random() * OBSTACLE_INCREASE);\n\t\t\t\t\n\t\t\t// X CALCULATION //\n\t\t\t\n\t\t\t// Place on second platform\n\t\t\tif((float) i / 6 == 1) {\n\t\t\t\tselectedPlatform++;\n\t\t\t\tselectedXPart = 0;\n\t\t\t}\n\t\t\t// Place on third and last platform\n\t\t\tif((float) i / 6 == 2) {\n\t\t\t\tselectedPlatform++;\n\t\t\t\tselectedXPart = 0;\n\t\t\t}\n\t\t\t// Next \"third part section\" of the platform \n\t\t\tif(i % 2 == 0) selectedXPart += 2;\n\t\t\t\n\t\t\tif(selectedXPart != 6) x = platform[selectedPlatform].getX() + (OBSTACLE_INCREASE * (selectedXPart - 1)) + randomOffset;\n\t\t\telse x = platform[selectedPlatform].getX() + (OBSTACLE_INCREASE * (selectedXPart - 1)) + randomOffset - OBSTACLE_LARGE_WIDTH;\n\t\t\t\n\t\t\t// Y CALCULATION //\n\t\t\t\n\t\t\tif(i % 2 == 0) {\n\t\t\t\tint temp = (int) (Math.random() * 10);\n\t\t\t\tif(temp <= 5) y = ground[selectedPlatform].getY() - Init.getObstacleGroundOffset();\n\t\t\t\telse y = platform[selectedPlatform].getY() + Init.getObstaclePlatformOffset();\n\t\t\t}\n\t\t\telse y = platform[selectedPlatform].getY() - Init.getObstacleLargePlatformOffset();\n\t\t\t\n\t\t\tobstacle[i].setLocation(x, y);\n\t\t}\n\t}", "public void spawnObstacle(){\n\t\tif(this.seconds > this.nextSpawn && !this.gameOver){\n\t\t\tint pX = this.radom.nextInt(350);\n\t\t\tthis.obstacles.add(new Obstacle(WIDTH,0,30,pX,0));\n\t\t\tthis.obstacles.add(new Obstacle(WIDTH,pX+110,30,HEIGHT-pX-111,0));\n\t\t\tthis.goals.add(new Goal(WIDTH,pX,30,110,0xffffff));\n\t\t\tthis.nextSpawn = this.seconds + this.spawnRate;\n\t\t}\n\t}", "public void addObstacle(Coord obstacleCoord);", "void obstaclesCallback(final GridCells msg){\n int num_obst = msg.getCells().size();\n me.obstacle_lock_.lock();\n try{\n me.obstacle_points_.clear();\n\n for (int i = 0; i < num_obst; i++) {\n PointStamped in=messageFactory.newFromType(PointStamped._TYPE);\n PointStamped result=messageFactory.newFromType(PointStamped._TYPE);\n in.setHeader(msg.getHeader());\n in.setPoint(msg.getCells().get(i));\n //ROS_DEBUG(\"obstacle at %f %f\",msg->cells[i].x,msg->cells[i].y);\n //TODO:Need Transform\n/* try {\n tf_->waitForTransform(global_frame_, robot_base_frame_, msg->header.stamp, ros::Duration(0.2));\n\n tf_->transformPoint(global_frame_, in, result);\n }\n catch (tf::TransformException ex){\n ROS_ERROR(\"%s\",ex.what());\n return;\n };*/\n\n me.obstacle_points_.add(new Vector2(result.getPoint().getX(),result.getPoint().getY()));\n }\n }finally {\n me.obstacle_lock_.unlock();\n }\n\n }", "public void billeObstacles() {\n\t\t// Décomposition de la bille\n\t\t// 2 3 4\n\t\t// 1 5\n\t\t// 8 7 6 \n\n\t\t// Parcours des briques pour vérifier les contacts\n\t\tListIterator <Obstacle> iter = niveauEnCours.grilleObstacles.listIterator(0);\n\t\tint contact = 0;\n\n\t\twhile (iter.hasNext() && contact == 0) {\n\t\t\tObstacle b = iter.next();\n\n\t\t\t// Étude des contacts avec les 8 points de la bille\n\t\t\t// Contact GaucheHaut de la bille\n\t\t\tdouble[] q = billeEnCours.GH();\n\t\t\tif (((q[1] <= b.bas) && (q[1] >= b.haut)) && ((q[0] <= b.droite) && (q[0] >= b.gauche))) {\n\t\t\t\tcontact = 2;\n\t\t\t}\n\n\t\t\t// Contact DroiteHaut de la bille\n\t\t\tif (contact == 0) {\n\t\t\t\tq = billeEnCours.DH();\n\t\t\t\tif (((q[1] <= b.bas) && (q[1] >= b.haut)) && ((q[0] <= b.droite) && (q[0] >= b.gauche))) {\n\t\t\t\t\tcontact = 4;\n\t\t\t\t}\n\t\t\t}\n\n\t\t // Contact GaucheBas de la bille\n\t\t\tif (contact == 0) {\n\t\t\t\tq = billeEnCours.GB();\n\t\t\t\tif (((q[1] <= b.bas) && (q[1] >= b.haut)) && ((q[0] <= b.droite) && (q[0] >= b.gauche))) {\n\t\t\t\t\tcontact = 8;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact DroiteBas de la bille\n\t\t\tif (contact == 0) {\n\t\t\t\tq = billeEnCours.DB();\n\t\t\t\tif (((q[1] <= b.bas) && (q[1] >= b.haut)) && ((q[0] <= b.droite) && (q[0] >= b.gauche))) {\n\t\t\t\t\tcontact = 6;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact haut de la bille\n\t\t\tint[] p = billeEnCours.MH();\n\t\t\tif (contact == 0) {\n\t\t\t\tif (p[1] <= b.bas && p[1] >= b.haut && p[0] <= b.droite && p[0] >= b.gauche) {\n\t\t\t\t\tcontact = 3;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact bas de la bille\n\t\t\tif (contact == 0) {\n\t\t\t\tp = billeEnCours.MB();\n\t\t\t\tif (((p[1] <= b.bas) && (p[1] >= b.haut)) && ((p[0] <= b.droite) && (p[0] >= b.gauche))) {\n\t\t\t\t\tcontact = 7;\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact droite de la bille\n\t\t\tif (contact == 0) {\n\t\t\t\tp = billeEnCours.DM();\n\t\t\t\tif (((p[1] <= b.bas) && (p[1] >= b.haut)) && ((p[0] <= b.droite) && (p[0] >= b.gauche))) {\n\t\t\t\t\tcontact = 5;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Contact gauche de la bille\n\t\t\tif (contact == 0) {\n\t\t\t\tp = billeEnCours.GM();\n\t\t\t\tif (((p[1] <= b.bas) && (p[1] >= b.haut)) && ((p[0] <= b.droite) && (p[0] >= b.gauche))) {\n\t\t\t\t\tcontact = 1;\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t\t// Mise à jour de la vitesse \n\n\t\t\t// Rencontre d'un coin\n\t\t\tif ((((contact == 2) || (contact == 4))) || ((contact == 8) || (contact == 6))) {\n\t\t\t\tbilleEnCours.demiTour();\n\t\t\t}\n\n\t\t\t// Contact Classique\n\t\t\t// Gauche - Droite\n\t\t\tif ((contact == 1) || (contact == 5)) {\n\t\t\t\tint[] nv = {- billeEnCours.renvoyerVitesse()[0], billeEnCours.renvoyerVitesse()[1]};\n\t\t\t\tbilleEnCours.changeVitesse(nv);\n\t\t\t}\n\n\t\t\t// Haut - Bas\n\t\t\tif ((contact == 3) || (contact == 7)) {\n\t\t\t\tint[] nv = {billeEnCours.renvoyerVitesse()[0], - billeEnCours.renvoyerVitesse()[1]};\n\t\t\t\tbilleEnCours.changeVitesse(nv);\n\t\t\t}\t\t\t\n\t}", "public void Obstaclemove() {\n for (int i = 0; i < getNumberObstacles(); i++) {\n if (ObstacleDeplace.class.isInstance(getObstacle()[i])) {\n getObstacle()[i].setX(getObstacle()[i].getX() - getObstacle()[i].getSpeed());\n\n if (getObstacle()[i].getX() < -200) {\n getObstacle()[i].setX(600);\n getObstacle()[i].setSpeed(randomGenerator.nextFloat());\n }\n }\n setChanged();\n notifyObstacle(i, getObstacle()[i].getX(), getObstacle()[i].getY());\n }\n }", "public void bougerObstacle (MouseEvent e) {\n\t\taddMouseMotionListener(new MouseMotionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDragged(MouseEvent nouv) {\n\t\t\t\tif (interieur) {\n\t\t\t\t\t//\t\t\t\t\t\n\t\t\t\t\tgetObstaclesList().get(indiceObjetSelectionne).setPosition(new SVector3d(valeurEnReelleX(nouv.getX() - xPrecedent)- getPositionCam().x, valeurEnReelleY(nouv.getY() - yPrecedent)- getPositionCam().y));\n\t\t\t\t\trepaint();\n\t\t\t\t\tenClique= false;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\t}", "public List<REPoint> getObstacles();", "@Override\n\tpublic void update() {\n\t\tthis.setBounds(obstacle.getCoords().getX() * 64, obstacle.getCoords().getY() * 64, 64, 64);\n\t}", "public void setConstructingObstacle(Obstacle obstacle);", "private void genObstacle(Group root, String runwayId, Integer verticalOffset){\n String obstacleId = controller.getRunwayObstacle(runwayId);\n Integer obstacleHeight = controller.getPredefinedObstacleHeight(obstacleId);\n Integer obstacleWidth = controller.getPredefinedObstacleWidth(obstacleId);\n Integer obstacleLength = controller.getPredefinedObstacleLength(obstacleId);\n Integer distanceFromCenterline = controller.getDistanceFromCenterline(runwayId);\n Integer distanceFromThreshold = controller.getDistanceFromThreshold(runwayId) + controller.getObstacleOffset(runwayId);\n\n // Obstacle box fill\n Box obstacle = new Box(obstacleWidth, obstacleHeight, obstacleLength);\n PhongMaterial obstacleMaterial = new PhongMaterial(convertToJFXColour(OBSTACLE_FILL_COLOUR));\n obstacle.setMaterial(obstacleMaterial);\n //The position of the obstacle on the runway has to dependent on the distance from threshold and centerline\n Point runwayPos = controller.getRunwayPos(runwayId);\n obstacle.setTranslateX(runwayPos.x - distanceFromCenterline);\n obstacle.setTranslateZ(-runwayPos.y + distanceFromThreshold + obstacleWidth/2);\n obstacle.setTranslateY(-obstacleHeight/2-verticalOffset);\n obstacle.setDrawMode(DrawMode.FILL);\n\n // Obstacle box borders\n /*Box obstacleStroke = new Box(obstacleWidth, obstacleHeight, obstacleLength);\n PhongMaterial obstacleStrokeMaterial = new PhongMaterial(convertToJFXColour(Settings.OBSTACLE_STROKE_COLOUR));\n obstacleStroke.setMaterial(obstacleStrokeMaterial);\n obstacleStroke.setTranslateX(runwayPos.x - distanceFromCenterline);\n obstacleStroke.setTranslateZ(-runwayPos.y + distanceFromThreshold + obstacleWidth/2);\n obstacleStroke.setTranslateY(-obstacleHeight/2-verticalOffset);\n obstacleStroke.setDrawMode(DrawMode.LINE);*/\n\n// Box slopePlane = genSlope(root, runwayId, verticalOffset);\n\n Rotate rotate = new Rotate(controller.getBearing(runwayId), distanceFromCenterline, 0,-distanceFromThreshold - obstacleWidth/2, Rotate.Y_AXIS);\n obstacle.getTransforms().add(rotate);\n //obstacleStroke.getTransforms().add(rotate);\n// slopePlane.getTransforms().add(rotate);\n\n //root.getChildren().addAll(obstacle, obstacleStroke);\n// root.getChildren().addAll(obstacle, slopePlane);\n root.getChildren().add(obstacle);\n }", "public void setObstacleCell(int row, int col, boolean obstacle) {\n if (obstacle && (in_start(row, col) || in_goal(row, col)))\n return;\n\n grid[row][col].setIsObstacle(obstacle);\n\n if (row >= 1) {\n grid[row - 1][col].setVirtualWall(obstacle); // bottom cell\n\n if (col < MapConstant.MAP_Y - 1) {\n grid[row - 1][col + 1].setVirtualWall(obstacle); // bottom-right cell\n }\n\n if (col >= 1) {\n grid[row - 1][col - 1].setVirtualWall(obstacle); // bottom-left cell\n }\n }\n\n if (row < MapConstant.MAP_X - 1) {\n grid[row + 1][col].setVirtualWall(obstacle); // top cell\n\n if (col < MapConstant.MAP_Y - 1) {\n grid[row + 1][col + 1].setVirtualWall(obstacle); // top-right cell\n }\n\n if (col >= 1) {\n grid[row + 1][col - 1].setVirtualWall(obstacle); // top-left cell\n }\n }\n\n if (col >= 1) {\n grid[row][col - 1].setVirtualWall(obstacle); // left cell\n }\n\n if (col < MapConstant.MAP_Y - 1) {\n grid[row][col + 1].setVirtualWall(obstacle); // right cell\n }\n }", "public void enleverlaDerniereObs() {\n\n\t\tobstaclesList.remove(obstaclesList.size()-1);\n\t}", "public CSpace(List<PolygonObstacle> realObstacles, double robotRadius) {\n for (PolygonObstacle realObstacle : realObstacles)\n obstacles.add(makeCSObstacle(realObstacle, robotRadius));\n }", "public void movbolitas() {\n x += vx;\n y += vy;\n if (x > width || x < 0) {\n vx *= -1;\n }\n if (y > height || y < 0) {\n vy *= -1;\n }\n }", "public void place(GamePiece teil, QPosition pos) { // old German method name: platziere\n for (int x = teil.getMinX(); x <= teil.getMaxX(); x++) {\n for (int y = teil.getMinY(); y <= teil.getMaxY(); y++) {\n if (teil.filled(x, y)) {\n int ax = pos.getX() + x - teil.getMinX();\n int ay = pos.getY() + y - teil.getMinY();\n set(ax, ay, teil.getBlockType(x, y));\n }\n }\n }\n view.draw();\n }", "public void Update() {\r\n\t\t//if player is near and haven't fired in a while, fire a projectile\r\n\t\tif(!playerNear().equals(\"n\") && j > 250){\r\n\t\t\tfireProjectile(playerNear());\r\n\t\t\tj = 0;\r\n\t\t}\r\n\t\tj++;\r\n\r\n\t\t//COLLISION\r\n\t\tfor(int i = 0; i < AdventureManager.currentRoom.projectiles.size(); i++){ //Checks for collision with player projectiles\r\n\t\t\tif(((AdventureManager.currentRoom.projectiles.get(i).x + 50 > x) && (AdventureManager.currentRoom.projectiles.get(i).x + 50 < x+50) &&(AdventureManager.currentRoom.projectiles.get(i).y + 50> y) &&(AdventureManager.currentRoom.projectiles.get(i).y + 50< y+98) )\r\n\t\t\t\t\t|| ((AdventureManager.currentRoom.projectiles.get(i).x > x) && (AdventureManager.currentRoom.projectiles.get(i).x < x+50) &&(AdventureManager.currentRoom.projectiles.get(i).y + 50> y) &&(AdventureManager.currentRoom.projectiles.get(i).y + 50< y+98) )\r\n\r\n\t\t\t\t\t\t) {\r\n\r\n\t\t\t\t\tswitch(AdventureManager.currentRoom.projectiles.get(i).type) {\r\n\t\t\t\t\tcase \"fireball\": health -= AdventureManager.toon.intelligence; break;\r\n\t\t\t\t\tcase \"sword\": health -= AdventureManager.toon.strength;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tAdventureManager.currentRoom.projectiles.get(i).kill();\r\n\t\t\t\t}\r\n\t\t}\r\n\t\tif((AdventureManager.toon.y < y+50) && (AdventureManager.toon.y > y+40) && //Checks for collision with player\r\n\t\t\t\t(((AdventureManager.toon.x > x) && (AdventureManager.toon.x < x+50))\r\n\t\t\t\t|| ((AdventureManager.toon.x+50 > x) && AdventureManager.toon.x+50 < x+50))) {\r\n\t\t\tAdventureManager.toon.y = y+55; AdventureManager.toon.repaint();\r\n\t\t\tif(contact <= 0){\r\n\t\t\t\tAdventureManager.toon.damage(1);\r\n\t\t\t\tcontact = 50;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if((AdventureManager.toon.y+100 < y) && (AdventureManager.toon.y+100 > y-5) && (((AdventureManager.toon.x >= x) && (AdventureManager.toon.x <= x+50)) //Checks for collision with player\r\n\t\t\t\t|| ((AdventureManager.toon.x+50 >= x) && (AdventureManager.toon.x+50 <= x+50))\r\n\t\t\t\t|| ((AdventureManager.toon.x+25 >= x) && AdventureManager.toon.x+25 <= x+50))) {\r\n\t\t AdventureManager.toon.y = y-105; AdventureManager.toon.repaint();\r\n\t\t AdventureManager.toon.jumpCount = 25;\r\n\t\t if(contact <= 0){\r\n\t\t\t AdventureManager.toon.damage(1);\r\n\t\t\t contact = 50;\r\n\t\t }\r\n\t\t}\r\n\t\telse if(((AdventureManager.toon.x + 50) > x) && ((AdventureManager.toon.x+50)<x+20) && ( //Left Collision\r\n\t\t\t\t((AdventureManager.toon.y > y) && (AdventureManager.toon.y < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 25 > y) && (AdventureManager.toon.y + 25 < y+45)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 50 > y) && (AdventureManager.toon.y + 50 < y+45)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 75 > y) && (AdventureManager.toon.y + 75 < y+45)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 100 > y) && (AdventureManager.toon.y + 100 < y+45))\r\n\r\n\r\n\t\t\t\t) ) {\r\n\t\t\tAdventureManager.toon.x = x-51; AdventureManager.toon.repaint();\r\n\t\t\tif(contact <= 0){\r\n\t\t\t\tAdventureManager.toon.damage(1);\r\n\t\t\t\tcontact = 50;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(((AdventureManager.toon.x) > x+40) && ((AdventureManager.toon.x)<x+50) && ( //Right Collision\r\n\t\t\t\t((AdventureManager.toon.y > y) && (AdventureManager.toon.y < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 25 > y) && (AdventureManager.toon.y + 25 < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 50 > y) && (AdventureManager.toon.y + 50 < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 75 > y) && (AdventureManager.toon.y + 75 < y+50)) ||\r\n\t\t\t\t((AdventureManager.toon.y + 100 > y) && (AdventureManager.toon.y + 100 < y+50))\r\n\r\n\r\n\t\t\t\t) ) {\r\n\t\t\tAdventureManager.toon.x = x+51; AdventureManager.toon.repaint();\r\n\t\t\tif(contact <= 0){\r\n\t\t\t\tAdventureManager.toon.damage(1);\r\n\t\t\t\tcontact = 50;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcontact--;\r\n\t\tif(health<=0){\r\n\t\t\tsetVisible(false);\r\n\t\t\talive = false;\r\n\t\t\tAdventureManager.currentRoom.enemies.remove(this);\r\n\t\t}\r\n\r\n\r\n\r\n\t\t\tif((y+100)>=AdventureManager.floorHeight) {\r\n\t\t\t\ty= AdventureManager.floorHeight -100;\r\n\t\t\t\tgravity *= 0;\r\n\r\n\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tgravity = 3;}\r\n\r\n\t\t\ty += gravity; setLocation(x,y);\r\n\r\n\t\t\tswitch(movetype) {\r\n\t\t\tcase 0: chasePlayer(); break;\r\n\t\t\tcase 1: randomMove(); break;\r\n\t\t\tcase 2: dontMove(); break;\r\n\t\t\t}\r\n\r\n\t\t\t}", "public void enleverTousLesObs() {\n\n\t\tobstaclesList.removeAll(obstaclesList);\n\t}", "public void setObstacle(int i, int j, int k) {\n obstacle[i][j][k] = true;\n }", "public void spawnEnemy(){\n\t\tint initTile = 0;\n\t\n\t\tfor(int i=0; i<screen.maps[screen.currentMap].path.getHeight(); i++){\n\t\t\tif(screen.maps[screen.currentMap].path.getCell(0, i).getTile().getProperties().containsKey(\"ground\") == true){\n\t\t\t\tinitTile = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\txCoor = 2;\n\t\tyCoor = (initTile)*64 + 2;\n\t\tbound = new Circle(xCoor+30, yCoor+30, 30);\n\t\tinGame = true;\n\t}", "private void analyzeForObstacles() {\n \t\n \t\n \tStack<Rect> bestFound = new Stack<Rect>();//This is a stack as the algorithm moves along x linearly\n \tboolean[][] blackWhiteGrid = getBlackWhiteGrid();\n \tint[] cache = new int[grid.length];\n \t\n \twhile (true) {\n\t\t\tboolean noneFound = true;\n\t\t\t\n\t\t\tfor (int i = 0; i<cache.length; i++)\n\t\t\t\tcache[i] = 0;\n\t\t\tfor (int llx = grid.length -1; llx >= 0; llx--) {\n\t\t\t\tupdate_cache(blackWhiteGrid,cache, llx);\n\t\t\t\tfor (int lly = 0; lly < grid.length; lly++) {\n\t\t\t\t\tRect bestOfRound = new Rect(llx,lly,llx,lly);\n\t\t\t\t\tint y = lly;\n\t\t\t\t\tint x_max = 9999;\n\t\t\t\t\tint x = llx;\n\t\t\t\t\twhile (y+1<grid.length && blackWhiteGrid[llx][y]) {\n\t\t\t\t\t\ty++;\n\t\t\t\t\t\tx = Math.min(llx+cache[y]-1, x_max);\n\t\t\t\t\t\tx_max = x;\n\t\t\t\t\t\tRect tryRect = new Rect(llx,lly-1,x,y);\n\t\t\t\t\t\tif (tryRect.area() > bestOfRound.area()) {\n\t\t\t\t\t\t\tbestOfRound = tryRect;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (bestOfRound.area() > 40) {\n\t\t\t\t\t\tif (noneFound) {\n\t\t\t\t\t\t\tbestFound.push(bestOfRound);\n\t\t\t\t\t\t\tnoneFound = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tRect lastRect = bestFound.peek();\n\t\t\t\t\t\t\tif (lastRect.area() < bestOfRound.area()) {\n\t\t\t\t\t\t\t\tbestFound.pop();\n\t\t\t\t\t\t\t\tbestFound.push(bestOfRound);\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}\n\t\t\t}\n\t\t\tif (noneFound)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tclearFoundRectangle(blackWhiteGrid, bestFound.peek());\n \t}\n \t\n \t//add found rectanlges\n \tobstacles.clear();\n \tobstacles.addAll(bestFound);\n \tSystem.out.println(\"Sweep done:\");\n \tfor (Rect r : bestFound){\n \t\tSystem.out.println(\"Rect: llx=\" + (r.llx-400) + \"\\tlly=\" + (r.lly-400) + \"\\turx=\" + (r.urx-400) + \"\\tury=\" + (r.ury-400));\n \t\tList<Point2D.Double> corners = new ArrayList<Point2D.Double>();\n \t\tcorners.add(new Point2D.Double((r.llx-400),(r.lly-400)));\n \t\tcorners.add(new Point2D.Double((r.llx-400),(r.ury-400)));\n \t\tcorners.add(new Point2D.Double((r.urx-400),(r.lly-400)));\n \t\tcorners.add(new Point2D.Double((r.urx-400),(r.ury-400)));\n \t\tobstaclesF.add(new Obstacle(corners));\n \t}\n \t\n \ttoExplore.clear();\n \tint i = 0;\n \tRandom rand = new Random();\n \twhile (toExplore.size() < 10 && i < 1000) {\n \t\tint x = rand.nextInt(grid.length);\n \t\tint y = rand.nextInt(grid.length);\n \t\tif (grid[x][y] == .5) {\n \t\t\ttoExplore.add(new Flag(\"blue\",x,y));\n \t\t}\n \t}\n }", "public void removeObstacle(Coord obstacleCoord);", "public ObstacleSprite(int left, int top, int right, int bottom, OBSTACLE_SPEED obstacleSpeed, Game game)\n {\n super(left, top, right, bottom, game);\n speed = (int) Math.round(DEFAULT_OBSTACLE_SPEED * (obstacleSpeed.value / 2.0));\n wasTouched = false;\n\n if(obstacleSpriteImage == null)\n {\n Bitmap settingsBitmap = BitmapFactory.decodeResource(resources, R.drawable.missile);\n obstacleSpriteImage = new AndroidImage(settingsBitmap, AndroidGraphics.ImageFormat.ARGB4444);\n }\n\n if(obstacleExplosionImage == null)\n {\n Bitmap settingsBitmap = BitmapFactory.decodeResource(resources, R.drawable.explosion);\n obstacleExplosionImage = new AndroidImage(settingsBitmap, AndroidGraphics.ImageFormat.ARGB4444);\n }\n }", "void doPlaceObject() {\r\n\t\tif (renderer.surface == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (currentBaseTile != null) {\r\n\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\tdeleteEntitiesOf(renderer.surface.basemap, renderer.placementRectangle, false);\r\n\t\t\tSurfaceFeature sf = new SurfaceFeature();\r\n\t\t\tsf.id = currentBaseTile.id;\r\n\t\t\tsf.type = currentBaseTile.type;\r\n\t\t\tsf.tile = currentBaseTile.tile;\r\n\t\t\tsf.location = Location.of(renderer.placementRectangle.x, renderer.placementRectangle.y);\r\n\t\t\trenderer.surface.features.add(sf);\r\n\t\t\t\r\n\t\t\tplaceTile(currentBaseTile.tile, renderer.placementRectangle.x, renderer.placementRectangle.y, SurfaceEntityType.BASE, null);\r\n\t\t\t\r\n\t\t\tundo.setAfter();\r\n\t\t\taddUndo(undo);\r\n\t\t\trenderer.repaint();\r\n\t\t} else\r\n\t\tif (currentBuildingType != null && renderer.canPlaceBuilding(renderer.placementRectangle) && renderer.placementRectangle.width > 0) {\r\n\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\tBuilding bld = new Building(currentBuildingType, currentBuildingRace);\r\n\t\t\tbld.makeFullyBuilt();\r\n\t\t\tbld.location = Location.of(renderer.placementRectangle.x + 1, renderer.placementRectangle.y - 1); // leave room for the roads!\r\n\t\t\trenderer.surface.buildings.add(bld);\r\n\t\t\t\r\n\t\t\tplaceTile(bld.tileset.normal, bld.location.x, bld.location.y, SurfaceEntityType.BUILDING, bld);\r\n\t\t\tplaceRoads(currentBuildingRace);\r\n\t\t\t\r\n\t\t\tundo.setAfter();\r\n\t\t\taddUndo(undo);\r\n\t\t\trenderer.repaint();\r\n\t\t}\r\n\t}", "public GameWon()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(550, 600, 1); \n addObject(b1,275,250);\n addObject(b2,275,380);\n }", "public Obstacle getConstructingObstacle();", "public void moverCeldaArriba(){\n if (laberinto.celdas[item.x][item.y-1].tipo != 'O' && laberinto.celdas[item.x][item.y-1].tipo !='J'&& laberinto.celdas[item.x][item.y-1].tipo !='P' && laberinto.celdas[item.x][item.y-1].tipo !='A') {\n laberinto.celdas[item.x][item.y].tipo = 'V';\n item.y=item.y-1;\n laberinto.celdas[item.x][item.y].tipo = 'I';\n }\n if (laberinto.celdas[item.x][item.y-1].tipo == 'C') {\n \n laberinto.celdas[item.x][item.y].tipo = 'V';\n laberinto.celdas[anchuraMundoVirtual/2][alturaMundoVirtual/2].tipo = 'I';\n \n player1.run();\n player2.run();\n }\n /* if (item.y > 0) {\n if (laberinto.celdas[item.x][item.y-1].tipo != 'O' && laberinto.celdas[item.x][item.y-1].tipo !='J' && laberinto.celdas[item.x][item.y-1].tipo !='A') {\n if (laberinto.celdas[item.x][item.y-1].tipo == 'I') {\n if (item.y-2 > 0) {\n laberinto.celdas[item.x][item.y-2].tipo = 'I';\n laberinto.celdas[item.x][item.y-1].tipo = 'V';\n }\n }else{\n laberinto.celdas[item.x][item.y].tipo = 'V';\n item.y=item.y-1;\n laberinto.celdas[item.x][item.y].tipo = 'I';\n // laberinto.celdas[item.x][item.y].indexSprite=Rand_Mod_Sprite()+3;\n } \n } \n }*/\n }", "public void moverJugador(char letra) {\n switch (letra) {\n case 'w':\n for(int b=0;b<rectangles.length;b++){\n if(rectangles[b].overlaps(rectangle.set(x,y+3,AnchoJugador,largoJugador))){//Comprobamos si en el array de rectangles hacer overlaps con nuestro jugador\n olision=true;//Si lo hace olision se vuelve true y no se movera\n break;\n }else{\n olision=false;//Si no lo hace olision de volvera false y se movera\n }\n }\n if(olision==false){\n for(int b=0;b<colisiones.getSalida().length;b++){\n if(colisiones.getSalida()[b].overlaps(rectangle.set(x,y,AnchoJugador,largoJugador))){//Comprobamos si nuestro personaje hace overlaps con alguna salida\n switch (colisiones.getObj2()[b].getName()){//Si colisiona este switch se encargara de ver con que salida estamos chocando mediante el nombre de los rectangulos(Esto se pone en el tiled)\n case \"salidaBajo\":\n main.dispose();\n main.setPantallaActual(new MapaPlantaBaja(main,358,10));\n break;\n case \"salida1\":\n main.dispose();\n main.setPantallaActual(new MapaInicial(main,347,298,main.getScreen().getBd()));\n break;\n case \"salida2\":\n main.dispose();\n main.setPantallaActual(new MapaPueblo(main,80,140));\n break;\n case \"miCasa\":\n main.dispose();\n main.setPantallaActual(new MapaPlantaBaja(main,194,10));\n break;\n case \"bichos\":\n main.dispose();\n main.setPantallaActual(new MapaBichos(main,100,100));\n break;\n case \"salidaPuebloBichos\":\n main.dispose();\n main.setPantallaActual(new MapaPueblo(main,196,22));\n break;\n }\n }\n }\n y=y+3;\n }else{\n\n }\n\n break;\n case 's':\n for(int b=0;b<rectangles.length;b++){\n if(rectangles[b].overlaps(rectangle.set(x,y-3,AnchoJugador,largoJugador))){\n olision=true;\n break;\n }else{\n olision=false;\n }\n }\n if(olision==false){\n for(int b=0;b<colisiones.getSalida().length;b++){\n if(colisiones.getSalida()[b].overlaps(rectangle.set(x,y,AnchoJugador,largoJugador))){\n System.out.println(\"colisionando\");\n switch (colisiones.getObj2()[b].getName()){\n case \"salidaBajo\":\n main.dispose();\n main.setPantallaActual(new MapaPlantaBaja(main,358,140));\n break;\n case \"salida1\":\n main.dispose();\n main.setPantallaActual(new MapaInicial(main,347,298,main.getScreen().getBd()));\n break;\n case \"salida2\":\n main.dispose();\n main.setPantallaActual(new MapaPueblo(main,80,140));\n break;\n case \"miCasa\":\n main.dispose();\n main.setPantallaActual(new MapaPlantaBaja(main,194,10));\n break;\n case \"bichos\":\n main.dispose();\n main.setPantallaActual(new MapaBichos(main,100,100));\n break;\n case \"salidaPuebloBichos\":\n main.dispose();\n main.setPantallaActual(new MapaPueblo(main,196,22));\n break;\n }\n }\n }\n\n y=y-3;\n }\n break;\n case 'd':\n for(int b=0;b<rectangles.length;b++){\n if(rectangles[b].overlaps(rectangle.set(x+3,y,AnchoJugador,largoJugador))){\n olision=true;\n break;\n }else{\n olision=false;\n }\n }\n if(olision==false){\n for(int b=0;b<colisiones.getSalida().length;b++){\n if(colisiones.getSalida()[b].overlaps(rectangle.set(x,y,AnchoJugador,largoJugador))){\n System.out.println(\"colisionando\");\n switch (colisiones.getObj2()[b].getName()){\n case \"salidaBajo\":\n main.dispose();\n main.setPantallaActual(new MapaPlantaBaja(main,358,140));\n break;\n case \"salida1\":\n main.dispose();\n main.setPantallaActual(new MapaInicial(main,347,298,main.getScreen().getBd()));\n break;\n case \"salida2\":\n main.dispose();\n main.getScreen().dispose();\n main.setPantallaActual(new MapaPueblo(main,80,140));\n break;\n case \"miCasa\":\n main.dispose();\n main.setPantallaActual(new MapaPlantaBaja(main,194,10));\n break;\n case \"bichos\":\n main.dispose();\n main.setPantallaActual(new MapaBichos(main,100,100));\n case \"salidaPuebloBichos\":\n main.dispose();\n main.setPantallaActual(new MapaPueblo(main,196,22));\n break;\n }\n }\n }\n x=x+3;\n }\n break;\n case 'a':\n for(int b=0;b<rectangles.length;b++){\n if(rectangles[b].overlaps(rectangle.set(x-3,y,AnchoJugador,largoJugador))){\n olision=true;\n break;\n }else{\n olision=false;\n }\n }\n if(olision==false){\n for(int b=0;b<colisiones.getSalida().length;b++){\n if(colisiones.getSalida()[b].overlaps(rectangle.set(x,y,AnchoJugador,largoJugador))){\n System.out.println(\"colisionando\"+colisiones.getObj2()[b].getName());\n switch (colisiones.getObj2()[b].getName()){\n case \"salidaBajo\":\n main.dispose();\n main.setPantallaActual(new MapaPlantaBaja(main,358,140));\n break;\n case \"salida1\":\n main.dispose();\n main.setPantallaActual(new MapaInicial(main,347,298,main.getScreen().getBd()));\n break;\n case \"salida2\":\n main.dispose();\n main.setPantallaActual(new MapaPueblo(main,80,140));\n break;\n case \"miCasa\":\n main.dispose();\n main.setPantallaActual(new MapaPlantaBaja(main,194,10));\n break;\n case \"bichos\":\n main.dispose();\n main.setPantallaActual(new MapaBichos(main,100,100));\n case \"salidaPuebloBichos\":\n main.dispose();\n main.setPantallaActual(new MapaPueblo(main,196,22));\n break;\n }\n }\n }\n x=x-3;\n }\n break;\n }\n }", "private void placeBomb() {\n\t\tint x = ran.nextInt(worldWidth);\n\t\tint y = ran.nextInt(worldHeight);\n\n\t\tif (!tileArr[x][y].hasBomb()) {\n\t\t\ttileArr[x][y].setBomb(true);\n\n\t\t\tindex.add(\"Index\" + x + \",\" + y); // ADDED COMPONENT\n\t\t\trevealed.put(index, true);\n\t\t\tindex.removeFirst();\n\n\t\t} else {\n\t\t\tindex.add(\"Index\" + x + \",\" + y); // ADDED COMPONENT\n\t\t\trevealed.put(index, false);\n\t\t\tindex.removeFirst();\n\t\t\tplaceBomb();\n\t\t}\n\n\t}", "public Controller (Salle salle) {\n double marge = 30;\n this.salle = salle;\n \n cSalle = salle.afficher();\n cSalle.setTranslateX(marge);\n cSalle.setTranslateY(marge);\n cSalle.setController(this);\n\n cPanel = new ControllerPanel();\n cPanel.setTranslateY(salle.getHauteur() + (3 * marge));\n\n creerObstacle = new ArrayList<>();\n pointObstacle = new ArrayList<>();\n ligneObstacle = new ArrayList<>();\n suppressionObstacle = false;\n \n // Event utilisé pour ajouter des Personnes, Obstacles en lors d'un clique.\n // Seulement lorsque la simulation n'est pas lancée\n cSalle.getSalleGraphique().setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n double rayon = new Personne().getRayon();\n double x = event.getX();\n double y = event.getY();\n if((x+marge > marge+rayon && x < salle.getLargeur()-rayon)){\n if(!salle.isRunning() && !creationObstacle && !suppressionObstacle){\n cSalle.afficherPersonne(cSalle.createPersonne(x,y));\n } else if(!salle.isRunning() && creationObstacle && !suppressionObstacle){\n Circle c = new Circle(x+marge, y+marge, 10);\n getChildren().add(c);\n pointObstacle.add(c);\n if(pointObstacle.size()>1){\n Line l = new Line(pointObstacle.get(pointObstacle.size()-2).getCenterX(),pointObstacle.get(pointObstacle.size()-2).getCenterY() , event.getX()+marge, event.getY()+marge);\n getChildren().add(l);\n ligneObstacle.add(l);\n }\n if(pointObstacle.size()>2){\n if(pointObstacle.size()>3) getChildren().remove(getChildren().get(getChildren().size()-3));\n Line l = new Line(event.getX()+marge, event.getY()+marge, pointObstacle.get(0).getCenterX(), pointObstacle.get(0).getCenterY());\n getChildren().add(l);\n ligneObstacle.add(l);\n }\n \n creerObstacle.add(new Point(event.getX(), event.getY()));\n }\n }\n }\n });\n\n // Event utilisé pour supprimer un obstacle en cliquant.\n // Seulement lorsque la simulation n'est pas lancée\n this.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n if(!salle.isRunning() && suppressionObstacle){\n for(ControllerObstacle o : cSalle.getListObstacles()){\n if(o.contains(event.getX()-marge, event.getY()-marge)){\n salle.removeObstacle(o.getObstacle()); \n suppressionObstacle = false;\n cPanel.visibility(true);\n cPanel.getGroupeGraphe().getSelectedToggle().setSelected(false);\n cPanel.getEnleverGrapheRB().setSelected(true);\n cSalle.cacherGraphe();\n }\n }\n }\n }\n });\n\n // Event qui lance la simulation lorsque l'utilisateur appuie sur le bouton play.\n // Prends en compte les différents paramètres (checkbox) de gestion des collisions.\n cPanel.getPlayButton().setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n salle.setVitessePersonnes(cPanel.getVitesseValue());\n if(cPanel.getCollisionStatus()){\n salle.play(true);\n }\n else\n salle.play(false);\n if(salle.isRunning())\n cPanel.setLoopTimer(0);\n }\n });\n\n // Event qui met en pause la simulation lorsque l'utilisateur clique sur le bouton pause.\n cPanel.getPauseButton().setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n salle.pause();\n cPanel.setLoopTimer(1);\n }\n });\n\n // Event qui supprime toutes les personnes de la salle et stoppe la simulation lorsque l'utilisateur clique sur clear.\n cPanel.getClearButton().setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n salle.removeAllPersonne();\n cPanel.setLoopTimer(2);\n }\n });\n\n // Event qui affiche ou cache le graphe des chemins les plus courts lorsque l'utilisateur active ou désactive la checkbox correspondante.\n cPanel.getGrapheRB().setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n cSalle.cacherGraphe();\n salle.initialisationGrapheAvecAffichage(\"\");\n }\n });\n\n cPanel.getGrapheDiagonaleRB().setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n cSalle.cacherGraphe();\n salle.initialisationGrapheAvecAffichage(\"Diagonale\");\n }\n });\n\n cPanel.getGrapheCartesienRB().setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n cSalle.cacherGraphe();\n salle.initialisationGrapheAvecAffichage(\"Cartesien\");\n }\n });\n\n cPanel.getGraphePhysiqueRB().setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n cSalle.cacherGraphe();\n salle.initialisationGrapheAvecAffichage(\"Physique\");\n }\n });\n\n cPanel.getEnleverGrapheRB().setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n cSalle.cacherGraphe();\n }\n });\n\n // Event qui ouvre un popup pour ajouter un nombre de personnes définis lorsque l'utilisateur clique sur le bouton correspondant.\n cPanel.getAddPersonButton().setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n if(!salle.isRunning())\n createPopup(\"Personne\");\n }\n });\n\n // Event qui permet d'activer l'option de creation d'obstacle lorsque l'utilisateur clique sur le bouton correspondant.\n cPanel.getAddObstacleButton().setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n if(!salle.isRunning()){\n creationObstacle = true;\n cPanel.visibility(false);\n }\n }\n });\n\n // Event qui permet de valider la creation d'un obstacle lorsque l'utilisateur clique sur le bouton valider.\n cPanel.getValiderObstacleButton().setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n boolean intersec = false;\n double rayon = new Personne().getRayon();\n for(int i=0;i<pointObstacle.size() && !intersec;i++){\n Point A = new Point(pointObstacle.get(i).getCenterX()-marge,pointObstacle.get(i).getCenterY()-marge);\n Point B;\n if(i==pointObstacle.size()-1) B = new Point(pointObstacle.get(0).getCenterX()-marge,pointObstacle.get(0).getCenterY()-marge);\n else B = new Point(pointObstacle.get(i+1).getCenterX()-marge,pointObstacle.get(i+1).getCenterY()-marge);\n if(salle.intersecObstacle(A, B)) {\n intersec = true;\n }\n }\n creationObstacle = false;\n cPanel.visibility(true);\n if(!intersec){\n if(!creerObstacle.isEmpty() && creerObstacle.size()>2){\n Obstacle obstacle = new ObstaclePolygone(creerObstacle);\n ControllerObstacle obstacleGraphique = obstacle.afficher();\n salle.addObstacle(obstacle);\n cSalle.afficherControllerObstacle(obstacleGraphique);\n List<ControllerObstacle> obstacles = cSalle.getListObstacles();\n for(ControllerObstacle o : obstacles){\n if(!obstacleGraphique.equals(o)){\n if(obstacleGraphique.contains(o.getObstacle().getListePointsGraphiques().get(0).getX(),o.getObstacle().getListePointsGraphiques().get(0).getY())) salle.removeObstacle(o.getObstacle());\n }\n }\n cPanel.getGroupeGraphe().getSelectedToggle().setSelected(false);\n cPanel.getEnleverGrapheRB().setSelected(true);\n cSalle.cacherGraphe();\n }\n }\n creerObstacle.clear();\n for(Circle c : pointObstacle) getChildren().remove(c);\n for(Line l : ligneObstacle) getChildren().remove(l);\n pointObstacle.clear();\n ligneObstacle.clear();\n }\n });\n // Event qui permet d'activer l'option pour supprimer un obstacle lorsque l'utilisateur clique sur le bouton correspondant.\n cPanel.getSupprimerObstacleButton().setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n if(!salle.isRunning() && !salle.getListObstacles().isEmpty()){\n suppressionObstacle = true;\n cPanel.visibility(false);\n cPanel.getValiderObstacleButton().setVisible(false);\n }\n }\n });\n\n getChildren().addAll(cSalle, cPanel);\n }", "void toyPlacingfStuff(){\n //nu stiu daca asta ramane\n gettingBackToInitial();\n nearingTheWallBefore();\n parallelToTheWall();\n actualToyPlacing();\n }", "public void draw() {\n\t\tif (doge.getLife()>0) {\r\n\t\t\tthis.background(WHITE);\r\n\t\t\tif (keyPressed) {\r\n\t\t\t\tif (key == 'a') {\r\n\t\t\t\t\tdoge.goLeft();\r\n\t\t\t\t\tif (doge.getX()<=0) {\r\n\t\t\t\t\t\tdoge.setX(PlayGame.WIDTH);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(key == 's') {\r\n\t\t\t\t\tdoge.goDown();\r\n\t\t\t\t\tif (doge.getY()>=PlayGame.HEIGHT) {\r\n\t\t\t\t\t\tdoge.setY(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(key == 'd') {\r\n\t\t\t\t\tdoge.goRight();\r\n\t\t\t\t\tif (doge.getX()>=PlayGame.WIDTH) {\r\n\t\t\t\t\t\tdoge.setX(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(key == 'w') {\r\n\t\t\t\t\tdoge.goUp();\r\n\t\t\t\t\tif (doge.getY()<=0) {\r\n\t\t\t\t\t\tdoge.setY(PlayGame.HEIGHT);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tdoge.draw();\r\n\t\t\t\r\n\t\t\tif (!bones.get(0).getIsEaten()) {\r\n\t\t\t\t//Move and draw bone, if it has not been eaten.\r\n\t\t\t\tbones.get(0).move();\r\n\t\t\t\tbones.get(0).draw();\r\n\t\t\t\t//if it get eaten, score + 1, get a new bone, and get one more obstacle\r\n\t\t\t\tif (Math.pow((bones.get(0).getY() - doge.getY()), 2) + Math.pow(bones.get(0).getX() - doge.getX(),2) <= 2*(Math.pow(Bone.getHeight()/2+doge.getHeight()/2, 2)/10)) {\r\n\t\t\t\t\tbones.get(0).eat();\r\n\t\t\t\t\tthis.setScore(this.score+1);\r\n\t\t\t\t\tBone theBone=new Bone(this);\r\n\t\t\t\t\tthis.bones.add(theBone);\r\n\t\t\t\t\tSmileObstacle newObstacle = new SmileObstacle(this);\r\n\t\t\t\t\tthis.obstacles.add(newObstacle);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t\tfor (int i = 0; i < this.obstacles.size(); i++) {\r\n\t\t\t\t//Keep draw and move obstacle\r\n\t\t\t\tSmileObstacle obstacle = this.obstacles.get(i);\r\n\t\t\t\tobstacle.move();\r\n\t\t\t\tobstacle.draw();\r\n\t\t\t\t//If clashed, eliminate the obstacle and make the background black for a moment.\r\n\t\t\t\tif (Math.pow((obstacle.getY() - doge.getY()), 2) + Math.pow(obstacle.getX() - doge.getX(),2) <= Math.pow(SmileObstacle.getHeight()/2+doge.getHeight()/2, 2)/10) {\r\n\t\t\t\t\tthis.background(BLACK);\r\n\t\t\t\t\tobstacle.eliminate();\r\n\t\t\t\t\tthis.hearts.get(this.hearts.size()-1).loseHeart();\r\n\t\t\t\t\tdoge.setLife(doge.getLife()-1);\r\n\t\t\t\t}\t\t\r\n\t\t\t}\r\n\t\t\t//draw heart for life numbers.\r\n\t\t\tfor (int j = 0; j < this.hearts.size(); j++) {\r\n\t\t\t\tHeart heart = this.hearts.get(j);\r\n\t\t\t\theart.draw();\r\n\t\t\t}\r\n\t\t\t//Draw smallbone for scores. \r\n\t\t\tfor (int h = 0; h<this.score; h++) {\r\n\t\t\t\tSmallBone smallBone=new SmallBone(this, h*SmallBone.getWidth(), PlayGame.getHeight()-SmallBone.getHeight());\r\n\t\t\t\tthis.smallBones.add(smallBone);\r\n\t\t\t}\r\n\t\t\tfor (int n = 0; n<this.smallBones.size(); n++) {\r\n\t\t\t\tSmallBone theSM = this.smallBones.get(n);\r\n\t\t\t\ttheSM.draw();\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Once life is lower than 0, game over. \r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Game Over! Your score is \" + this.score);\r\n\t\t}\r\n\t\t\r\n\t}", "public abstract void manageCell(int x, int y, int livingNeighbours);", "public void render(Graphics g) {\n int sxtemp = sx, sytemp = sy;\n g.drawImage(background, 0, 0, 1024, 768, sxtemp, sytemp-768, sxtemp+1024, sytemp, null);\n \n for (Obstacle1 obstacle : floors) {\n\t Rectangle range = new Rectangle(obstacle.getLocation(), obstacle.getSize());\n g.drawImage(obstacle.getImage(), range.x - sx , range.y - sy + 768, range.width, range.height, null);\n //g.drawImage(obstacle, 666, 444, obstacle.getWidth(), obstacle.getHeight(), null);\n\t}\n\tfor (Obstacle2 stair : stairs) {\n\t Rectangle range = new Rectangle(stair.getLocation(), stair.getSize());\n if (stair.getFace() == Direction.RIGHT) {\n g.drawImage(stair.getImage(), range.x + range.width - sx, range.y - sy + 768, -range.width, range.height, null);\n } else {\n g.drawImage(stair.getImage(), range.x - sx , range.y - sy + 768, range.width, range.height, null);\n }\n //g.drawImage(obstacle, 666, 444, obstacle.getWidth(), obstacle.getHeight(), null);\n\t}\n\tfor (Obstacle3 obstacle : rocks) {\n\t Rectangle range = new Rectangle(obstacle.getLocation(), obstacle.getSize());\n g.drawImage(obstacle.getImage(), range.x - sx , range.y - sy + 768, range.width, range.height, null);\n\t}\n\t\n for (Sprite sprite : sprites) {\n //System.out.println(sprite.location);\n //System.out.printf(\"%d %d\\n\", sxtemp, sytemp);\n sprite.setLocation(new Point(sprite.getX()-sxtemp, sprite.getY()-sytemp+768));\n //System.out.printf(\"%d %d\\n\", sxtemp, sytemp);\n sprite.render(g);\n sprite.setLocation(new Point(sprite.getX()+sxtemp, sprite.getY()+sytemp-768));\n }\n for(DropItem dropItem : dropItems) {\n dropItem.setLocation(new Point(dropItem.getLocation().x-sxtemp, dropItem.getLocation().y-sytemp+768));\n dropItem.render(g);\n dropItem.setLocation(new Point(dropItem.getLocation().x+sxtemp, dropItem.getLocation().y+sytemp-768));\n }\n sx = sxtemp; sy = sytemp;\n\n BufferedImage bg = resizeImage((BufferedImage)background, background.getWidth(null)/16, background.getHeight(null)/16);\n g.drawImage(bg, 0, 0, null);\n for (Sprite sprite : sprites) {\n g.setColor(Color.RED);\n Point p = sprite.getLocation();\n if(sprite instanceof Boss) g.fillOval((int)(p.getX()/16), (int)(p.getY()/16), 16, 16);\n else g.fillOval((int)(p.getX()/16), (int)(p.getY()/16), 6, 6);\n }\n for(Obstacle obstacle : floors) {\n Point p = obstacle.getLocation();\n int w = obstacle.getImage().getWidth(null), h = obstacle.getImage().getHeight(null);\n BufferedImage img = resizeImage((BufferedImage)obstacle.getImage(), w/16, h/16);\n g.drawImage(img, (int)(p.getX()/16), (int)(p.getY()/16), null);\n }\n for(Obstacle obstacle : rocks) {\n Point p = obstacle.getLocation();\n int w = obstacle.getImage().getWidth(null), h = obstacle.getImage().getHeight(null);\n BufferedImage img = resizeImage((BufferedImage)obstacle.getImage(), w/16, h/16);\n g.drawImage(img, (int)(p.getX()/16), (int)(p.getY()/16), null);\n }\n for(Obstacle obstacle : stairs) {\n Point p = obstacle.getLocation();\n int w = obstacle.getImage().getWidth(null), h = obstacle.getImage().getHeight(null);\n BufferedImage img = resizeImage((BufferedImage)obstacle.getImage(), w/16, h/16);\n g.drawImage(img, (int)(p.getX()/16), (int)(p.getY()/16), null);\n }\n\n\n g.setColor(Color.green);\n Point p = player.getLocation();\n g.fillOval((int)(p.getX()/16), (int)(p.getY()/16), 8, 8);\n g.setColor(Color.black);\n g.drawOval((int)(p.getX()/16), (int)(p.getY()/16), 8, 8);\n\n g.drawImage(pause, 950, 0, null);\n\n g.setColor(Color.pink);\n g.fillRect(350, 650, 300, 80);\n g.setColor(Color.black);\n g.drawRect(350, 650, 300, 80);\n Image pl;\n try {\n pl = ImageIO.read(new File(\"assets/others/player.png\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(pl, 365, 655, null);\n g.setColor(Color.black);\n g.setFont(new Font(\"TimesRoman\", Font.BOLD, 16));\n g.drawString(\"LV. \" + player.lv, 415, 700); //player.exp + \"/\" + player.lv*100\n g.drawString(\"exp \", 480, 675);\n\n g.setFont(new Font(\"TimesRoman\", Font.PLAIN, 16));\n g.setColor(Color.GRAY);\n g.fillRect(510, 660, 120, 15);\n g.setColor(Color.YELLOW);\n g.fillRect(510, 660, (int) (player.exp * 120 / (player.lv*100)), 15);\n g.setColor(Color.BLACK);\n g.drawRect(510, 660, 120, 15);\n g.drawString(player.exp + \"/\" + player.lv*100, 520, 675);\n\n HealthPointBar hpBar = player.hpBar;\n int width = (int) (hpBar.getHp() * 120 / player.KNIGHT_HP);\n int widthMp = (int) (hpBar.getMp() * 120 / player.KNIGHT_MP);\n g.setColor(Color.RED);\n g.fillRect(510, 685, 120, 15);\n g.setColor(Color.GREEN);\n g.fillRect(510, 685, width, 15);\n g.setColor(Color.WHITE);\n g.fillRect(510, 705, 120, 15);\n g.setColor(Color.BLUE);\n g.fillRect(510, 705, widthMp, 15);\n g.setColor(Color.black);\n g.drawRect(510, 685, 120, 15);\n g.drawRect(510, 705, 120, 15);\n g.setFont(new Font(\"TimesRoman\", Font.PLAIN, 16));\n g.setColor(Color.black);\n g.drawString(\"HP \", 480, 700);\n g.drawString(\"MP \", 480, 720);\n g.drawString(hpBar.getHp() + \"/\" + player.KNIGHT_HP, 520, 700);\n g.drawString(hpBar.getMp() + \"/\" + player.KNIGHT_MP, 520, 720);\n\n\n //boss\n if(bossAppear && !bossDies) {\n g.setColor(Color.pink);\n g.fillRect(350, 0, 300, 80);\n g.setColor(Color.black);\n g.drawRect(350, 0, 300, 80);\n Image bo;\n try {\n bo = ImageIO.read(new File(\"assets/others/boss.png\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(bo, 560, -5, null);\n g.setColor(Color.black);\n\n g.setFont(new Font(\"TimesRoman\", Font.PLAIN, 16));\n hpBar = boss.hpBar;\n width = (int) (hpBar.getHp() * 150 / boss.HP);\n g.setColor(Color.RED);\n g.fillRect(420, 35, 150, 15);\n g.setColor(Color.GREEN);\n g.fillRect(420, 35, width, 15);\n g.setColor(Color.black);\n g.drawRect(420, 35, 150, 15);\n g.setFont(new Font(\"TimesRoman\", Font.PLAIN, 16));\n g.setColor(Color.black);\n g.drawString(\"HP \", 380, 50);\n g.drawString(hpBar.getHp() + \"/\" + boss.HP, 425, 50);\n\n }\n\n if(player.levelUping > 0) {\n player.levelUping--;\n Image lvup;\n try {\n lvup = ImageIO.read(new File(\"assets/lvup/\" + player.lv + \".png\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(lvup, 290, 80, null);\n }\n\n g.setFont(new Font(\"TimesRoman\", Font.BOLD, 16));\n g.setColor(Color.gray);\n if(player.lv >= 1) {\n Image skillu;\n try {\n skillu = ImageIO.read(new File(\"assets/skillicon/skillu.jpg\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(skillu, 0, 680, null);\n g.drawString(\"u\", 20, 675);\n }\n if(player.lv >= 2) {\n Image twoStepJump;\n try {\n twoStepJump = ImageIO.read(new File(\"assets/skillicon/2stepjump.jpg\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(twoStepJump, 50, 680, null);\n g.drawString(\"space\", 50, 675);\n }\n if(player.lv >= 3) {\n Image skilli;\n try {\n skilli = ImageIO.read(new File(\"assets/skillicon/skilli.jpg\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(skilli, 100, 680, null);\n g.drawString(\"i\", 120, 675);\n }\n if(player.lv >= 4) {\n Image skillo;\n try {\n skillo = ImageIO.read(new File(\"assets/skillicon/heal.png\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(skillo, 150, 680, null);\n g.drawString(\"o\", 170, 675);\n }\n\n int hp = player.hpPotionCount, mp = player.mpPotionCount, ring = player.ringCount;\n g.setColor(Color.yellow);\n g.fillRect(860, 680, 150, 50);\n g.setColor(Color.black);\n g.drawRect(860, 680, 50, 50);\n g.drawRect(910, 680, 50, 50);\n g.drawRect(960, 680, 50, 50);\n\n g.setFont(new Font(\"TimesRoman\", Font.BOLD, 16));\n g.setColor(Color.black);\n Image im;\n try {\n im = ImageIO.read(new File(\"assets/dropitem/33.png\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(im, 860, 680, null);\n g.setColor(Color.gray);\n g.drawString(\"1\", 895, 695);\n g.setColor(Color.black);\n g.drawString(\"\" + hp, 895, 730);\n\n try {\n im = ImageIO.read(new File(\"assets/dropitem/22.png\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(im, 910, 680, null);\n g.setColor(Color.gray);\n g.drawString(\"2\", 945, 695);\n g.setColor(Color.black);\n g.drawString(\"\" + mp, 945, 730);\n\n try {\n im = ImageIO.read(new File(\"assets/dropitem/11.png\"));\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n g.drawImage(im, 960, 680, null);\n g.setColor(Color.gray);\n g.drawString(\"3\", 995, 695);\n g.setColor(Color.black);\n g.drawString(\"\" + ring, 995, 730);\n }", "public void placeAtRandomSpot(ArrayList<GameObject> obstacles) {\n // Increase size of all obstacles so that cheese doesn't go too close to any obstacle\n for(GameObject obstacle : obstacles) {\n obstacle.setX(obstacle.getX() - Game.CHEESE_OBS_DIST);\n obstacle.setY(obstacle.getY() - Game.CHEESE_OBS_DIST);\n\n obstacle.setWidth(obstacle.getWidth() + (2*Game.CHEESE_OBS_DIST));\n obstacle.setHeight(obstacle.getHeight() + (2*Game.CHEESE_OBS_DIST));\n }\n\n double xPos, yPos;\n do {\n xPos = Game.SAFE_SPACE_WIDTH + (rand.nextInt(Game.BASE_WIDTH - Game.PLAYER_HEIGHT - (2*Game.SAFE_SPACE_WIDTH)));\n yPos = (rand.nextInt(Game.BASE_HEIGHT - Game.PLAYER_HEIGHT));\n placeAt(xPos, yPos);\n }\n while(collidesWithAny(obstacles));\n }", "public void updateOptimalCollisionArea();", "public ArrayList<Obstacle> getObstacles(){\n\t\treturn obstacles;\n\t}", "public boolean estObstacle(int x, int y){\r\n\t\tif(y >= 0 && y < hauteur && x >= 0 && x < largeur)\r\n\t\t\treturn this.plateau[y][x].estObstacle();\r\n\t\treturn false;\r\n\t}", "public Player() { \n grid = new Cell[GRID_DIMENSIONS][GRID_DIMENSIONS]; //size of grid\n for (int i = 0; i < GRID_DIMENSIONS; i++) {\n for (int j = 0; j < GRID_DIMENSIONS; j++) {\n grid[i][j] = new Cell(); //creating all Cells for a new grid\n }\n }\n \n fleet = new LinkedList<Boat>(); //number of boats in fleet\n for (int i = 0; i < NUM_BOATS; i++) {\n Boat temp = new Boat(BOAT_LENGTHS[i]); \n fleet.add(temp);\n }\n shipsSunk = new LinkedList<Boat>();\n }", "public void mueveBala() {\n switch (direccion) {\n case NORTE:\n posY -= velocidadBala;\n break;\n case SUR:\n posY += velocidadBala;\n break;\n case ESTE:\n posX += velocidadBala;\n break;\n case OESTE:\n posX -= velocidadBala;\n break;\n }\n actualizaHitbox();\n }", "@Override\n public void paintComponent(Graphics g){\n super.paintComponent(g);\n if(ingame){\n\n int screenWidth = this.getWidth();\n int screenHeight = this.getHeight();\n\n\n for(int i = 0; i < end_positions.size(); i++){\n End_position item = end_positions.get(i);\n g.setColor(Color.green);\n g.fillRect(item.getDestinationX()*screenWidth/LEVEL_WIDTH,item.getDestinationY()*screenHeight/LEVEL_HEIGHT,item.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,item.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n }\n\n g.setColor(Color.white);\n g.fillRect(player.getCurrentX()*screenWidth/LEVEL_WIDTH,player.getCurrentY()*screenHeight/LEVEL_HEIGHT,player.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,player.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n\n\n for(int i = 0; i < boxes.size(); i++){\n Box item = boxes.get(i);\n g.setColor(Color.yellow);\n g.fillRect(item.getCurrentX()*screenWidth/LEVEL_WIDTH,item.getCurrentY()*screenHeight/LEVEL_HEIGHT,item.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,item.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n }\n for(int i = 0; i < walls.size(); i++){\n Wall item = walls.get(i);\n\n g.setColor(Color.red);\n g.fillRect(item.getDestinationX()*screenWidth/LEVEL_WIDTH,item.getDestinationY()*screenHeight/LEVEL_HEIGHT,item.getImage().getWidth(null)*screenWidth/LEVEL_WIDTH,item.getImage().getWidth(null)*screenHeight/LEVEL_HEIGHT);\n\n }\n\n }\n\n }", "public void create3(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\n\n\t\t//creating stairs to connect rooms\n\t\tfor(int i = 0; i <this.Stairs.length; i++){\n\t\t\tfor(int p = 0; p < this.Stairs.length; p++){\n\t\t\t\tthis.Stairs[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}\n\t\tthis.Stairs[1][1] = 1;\n\n\t\t//creating board to keep track of garret\n\t\tfor(int i = 0; i <this.Garret.length; i++){\n\t\t\tfor(int p = 0; p < this.Garret.length; p++){\n\t\t\t\tthis.Garret[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of garret board\n\t\tthis.Garret[18][10] = 1;//putts garret there\n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 1; i< 6 ; i++){\n\t\t\tfor(int p = 7; p < 8; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 6; i< 7 ; i++){\n\t\t\tfor(int p = 7; p > 4; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 6; i< 11 ; i++){\n\t\t\tfor(int p = 4; p < 5; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 10; i< 11 ; i++){\n\t\t\tfor(int p = 5; p < 8; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 11; i< 15 ; i++){\n\t\t\tfor(int p = 7; p < 8; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 7; p > 3; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 13; i< 14 ; i++){\n\t\t\tfor(int p = 1; p < 4; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 12; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 5; i< 9 ; i++){\n\t\t\tfor(int p = 12; p < 13; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 13; i< 14 ; i++){\n\t\t\tfor(int p = 7; p < 12; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 13; i< 16 ; i++){\n\t\t\tfor(int p = 12; p < 13; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 9; i< 10 ; i++){\n\t\t\tfor(int p = 12; p < 19; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes\n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{\n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}", "private void computeMovableTilesToDisplayToPlayer() {\n \tfor (Entity enemyEntity : allCreaturesOfCurrentRoom) {\n \t\tAIComponent aiComponent = Mappers.aiComponent.get(enemyEntity);\n \t\tif (aiComponent.getSubSystem() != null) {\n \t\t\tboolean handledInSubSystem = aiComponent.getSubSystem().computeMovableTilesToDisplayToPlayer(this, enemyEntity, room);\n \t\t\tif (handledInSubSystem) continue;\n \t\t}\n \t\t\n \tMoveComponent moveCompo = Mappers.moveComponent.get(enemyEntity);\n \tAttackComponent attackCompo = Mappers.attackComponent.get(enemyEntity);\n \t\n \t\t//clear the movable tile\n \t\tmoveCompo.clearMovableTiles();\n \t\tif (attackCompo != null) attackCompo.clearAttackableTiles();\n \t\t\n \t\tmoveCompo.setMoveRemaining(moveCompo.getMoveSpeed());\n \t\t\n \t//Build the movable tiles list\n \t\ttileSearchService.buildMoveTilesSet(enemyEntity, room);\n \t\tif (attackCompo != null) attackTileSearchService.buildAttackTilesSet(enemyEntity, room, false, true);\n \t\tmoveCompo.hideMovableTiles();\n \t\tif (attackCompo != null) attackCompo.hideAttackableTiles();\n \t}\n }", "public void moveBlueCrab() {\n\t\tloseLife();\n\t\tif (wallOverlapX()) {\n\t\t\tif (hitRight) {\n\t\t\t\tif (xVel > 0) {\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else if (hitLeft) {\n\t\t\t\tif (xVel < 0) {\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (wallOverlapY()) {\n\t\t\tif (hitUp) {\n\t\t\t\tif (yVel < 0) {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t} else if (hitDown) {\n\t\t\t\tif (yVel > 0) {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\txPos += xVel;\n\t\t\t\t\tyPos += yVel;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint xLow = xPos;\n\t\tint xHigh =xPos + width;\n\t\tint yTop = yPos;\n\t\tint yBot = yPos + height;\n\t\tfor (int i = 0; i < game.m.walls.size(); i++) {\n\t\t\tif (game.m.walls.get(i).wallHit(this) > 0) {\n//\t\t\t\twhile (game.m.walls.get(i).wallHit(this)) {\n\t\t\t\tif (game.m.walls.get(i).wallHit(this) == 4) {\n\t\t\t\t\tif (yVel < 0) {\n\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 1) {\n\t\t\t\t\t\t\t\tif (xVel > 0) {\n\t\t\t\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 2) {\n\t\t\t\t\t\t\t\tif (xVel < 0) {\n\t\t\t\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (game.m.walls.get(i).wallHit(this) == 3) {\n\t\t\t\t\tif (yVel > 0) {\n\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 1) {\n\t\t\t\t\t\t\t\tif (xVel > 0) {\n\t\t\t\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 2) {\n\t\t\t\t\t\t\t\tif (xVel < 0) {\n\t\t\t\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (game.m.walls.get(i).wallHit(this) == 2) {\n\t\t\t\t\tif (xVel < 0) {\n\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 3) {\n\t\t\t\t\t\t\t\tif (yVel > 0) {\n\t\t\t\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 4) {\n\t\t\t\t\t\t\t\tif (yVel < 0) {\n\t\t\t\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (game.m.walls.get(i).wallHit(this) == 1) {\n\t\t\t\t\tif (xVel > 0) {\n\t\t\t\t\t\txPos += xVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 3) {\n\t\t\t\t\t\t\t\tif (yVel > 0) {\n\t\t\t\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (int j = 0; j < game.m.walls.size(); j++) {\n\t\t\t\t\t\t\tif (game.m.walls.get(j).wallHit(this) == 4) {\n\t\t\t\t\t\t\t\tif (yVel < 0) {\n\t\t\t\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tyPos += yVel;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n//\t\t\t\tif (xVel > 0) {\n//\t\t\t\t\txPos -= 20;\n//\t\t\t\t\treturn;\n//\t\t\t\t} \n//\t\t\t\telse if (xVel < 0) {\n//\t\t\t\t\txPos += 20;\n//\t\t\t\t\treturn;\n//\t\t\t\t}\n//\t\t\t\tif (yVel > 0) {\n//\t\t\t\t\tyPos -= 20;\n//\t\t\t\t\treturn;\n//\t\t\t\t}\n//\t\t\t\telse if (yVel < 0) {\n//\t\t\t\t\tyPos += 20;\n//\t\t\t\t\treturn;\n//\t\t\t\t}\n//\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (xPos <= 0) {\n\t\t\tif (xVel > 0) {\n\t\t\t\txPos += xVel;\n\t\t\t} else if (yPos + height <= game.mapHeight && yPos >= 0){\n\t\t\t\tyPos += yVel;\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else if (xPos + width >= game.mapWidth) {\n\t\t\tif (xVel < 0) {\n\t\t\t\txPos += xVel;\n\t\t\t} else if (yPos + height <= game.mapHeight && yPos >= 0){\n\t\t\t\tyPos += yVel;\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else if (yPos <= 0) {\n\t\t\tif (yVel > 0) {\n\t\t\t\tyPos += yVel;\n\t\t\t} else if (xPos + width <= game.mapWidth && xPos >= 0){ \n\t\t\t\txPos += xVel;\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else if (yPos + height >= game.mapHeight) { \n\t\t\tif (yVel < 0) {\n\t\t\t\tyPos += yVel;\n\t\t\t} else if (xPos + width <= game.mapWidth && xPos >= 0){\n\t\t\t\txPos += xVel;\n\t\t\t} else {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\t\t\txPos += xVel;\n\t\t\tyPos += yVel;\n\t\t}\n\n\t}", "public void manageCell(int x, int y, int livingNeighbours){\n if(livingNeighbours < 2 || livingNeighbours > 3)\n turnToDead(x, y);\n else if(livingNeighbours == 3)\n turnToLiving(x, y);\n }", "public void fillBoard()\r\n {\r\n //fill 2d button array with the cells from bombList\r\n ListIterator itr = gameBoard.bombList.listIterator();\r\n for (int y = 0; y < gameBoard.BOARD_WIDTH; y++)\r\n {\r\n for (int x = 0; x < gameBoard.BOARD_WIDTH; x++)\r\n {\r\n if (itr.hasNext())\r\n {\r\n gameBoard.gameCells[y][x] = (Cell) itr.next();\r\n gameBoard.gameCells[y][x].setX(x);\r\n gameBoard.gameCells[y][x].setY(y);\r\n }\r\n }\r\n }\r\n// // **Debugging** print array to console\r\n// System.out.println(\"****** 2D Array Contents *******\");\r\n// for (int y = 0; y < gameBoard.BOARD_WIDTH; y++)\r\n// {\r\n// for (int x = 0; x < gameBoard.BOARD_WIDTH; x++)\r\n// {\r\n// System.out.print(gameBoard.gameCells[y][x].getText());\r\n// }\r\n// System.out.print(\"\\n\");\r\n// }\r\n\r\n // tell nearby spaces im a bomb\r\n for (int y = 0; y < gameBoard.BOARD_WIDTH; y++)\r\n {\r\n for (int x = 0; x < gameBoard.BOARD_WIDTH; x++)\r\n {\r\n if (gameBoard.gameCells[y][x].isBomb())\r\n {\r\n tellNearby(x, y);\r\n }\r\n }\r\n }\r\n }", "public void SpiritBomb()\r\n {\r\n\r\n\t \r\n\t\tLocation loc = new Location(userRow+1, userCol);\r\n\t\tLocation loc1 = new Location(userRow+1, userCol1);\r\n\t\tLocation loc2 = new Location(userRow+1, userCol2);\r\n\t\tLocation loc3 = new Location(userRow+1, userCol3);\r\n\t\t\r\n\t\tLocation loc4 = new Location(userRow, userCol);\r\n\t\tLocation loc5 = new Location(userRow, userCol1);\r\n\t\tLocation loc6 = new Location(userRow, userCol2);\r\n\t\tLocation loc7 = new Location(userRow, userCol3);\r\n\t\t\r\n\t\tLocation loc8 = new Location(userRow-1, userCol);\r\n\t\tLocation loc9 = new Location(userRow-1, userCol1);\r\n\t\tLocation loc10 = new Location(userRow-1, userCol2);\r\n\t\tLocation loc11 = new Location(userRow-1, userCol3);\r\n\t\t\r\n\t\tLocation loc12 = new Location(userRow-2, userCol);\r\n\t\tLocation loc13= new Location(userRow-2, userCol1);\r\n\t\tLocation loc14 = new Location(userRow-2, userCol2);\r\n\t\tLocation loc15 = new Location(userRow-2, userCol3);\r\n\r\n\t \r\n\r\n\r\n\r\n\t\t\r\n\t\tLocation base1 = new Location(userRow,0);\r\n\t\t\r\n\t\t\tgrid.setImage(base1, \"FSpiritHold.png\");\r\n\t\t\t\r\n\t\tfor(int a = 0; a<9; a++) {\r\n\t\tif(userCol>0 && userCol3 !=15 && userCol2!=15 && userCol1!=15 && userCol!=15 && userRow>0)\r\n\t\t{\r\n\t\r\n\t\t\t Location next101 = new Location(userRow+1,userCol);\r\n\t\t\t Location next102 = new Location(userRow+1,userCol1);\r\n\t\t\t Location next103 = new Location(userRow+1,userCol2);\r\n\t\t\t Location next104 = new Location(userRow+1,userCol3);\r\n\r\n\t\t\t\tLocation next201 = new Location(userRow,userCol);\r\n\t\t\t\tLocation next202 = new Location(userRow,userCol1);\r\n\t\t\t\tLocation next203 = new Location(userRow,userCol2);\r\n\t\t\t\tLocation next204 = new Location(userRow,userCol3);\r\n\t\t\t\t\r\n\t\t\t\tLocation next301 = new Location(userRow-1,userCol);\r\n\t\t\t\tLocation next302 = new Location(userRow-1,userCol1);\r\n\t\t\t\tLocation next303 = new Location(userRow-1,userCol2);\r\n\t\t\t\tLocation next304 = new Location(userRow-1,userCol3);\r\n\t\t\t\t\r\n\t\t\t Location next401 = new Location(userRow-2,userCol);\r\n\t\t\t Location next402 = new Location(userRow-2,userCol1);\r\n\t\t\t Location next403 = new Location(userRow-2,userCol2);\r\n\t\t\t Location next404 = new Location(userRow-2,userCol3);\r\n\t\t\t userCol+=1;\r\n\t\t\t userCol1+=1;\r\n\t\t\t\tuserCol2+=1;\r\n\t\t\t\tuserCol3+=1;\r\n\t\t\t grid.setImage(next101, \"SB401.png\");\r\n\t\t\t grid.setImage(loc1, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next102, \"SB402.png\");\r\n\t\t\t grid.setImage(loc2, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next103, \"SB403.png\");\r\n\t\t\t grid.setImage(loc2, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next104, \"SB404.png\");\r\n\t\t\t grid.setImage(loc3, null);\r\n\r\n\t\t\t\t\r\n\t\t\t\tgrid.setImage(next201, \"SB301.png\");\r\n\t\t\t grid.setImage(loc4, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next202, \"SB302.png\");\r\n\t\t\t grid.setImage(loc5, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next203, \"SB303.png\");\r\n\t\t\t grid.setImage(loc6, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next204, \"SB304.png\");\r\n\t\t\t grid.setImage(loc7, null);\r\n\r\n\t\t\t\t\r\n\t\t\t\tgrid.setImage(next301, \"SB201.png\");\r\n\t\t\t grid.setImage(loc8, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next302, \"SB202.png\");\r\n\t\t\t grid.setImage(loc9, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next303, \"SB203.png\");\r\n\t\t\t grid.setImage(loc10, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next304, \"SB204.png\");\r\n\t\t\t grid.setImage(loc11, null);\r\n\r\n\t\t\t\t\r\n\t\t\t\tgrid.setImage(next401, \"SB101.png\");\r\n\t\t\t grid.setImage(loc12, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next402, \"SB102.png\");\r\n\t\t\t grid.setImage(loc13, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next403, \"SB103.png\");\r\n\t\t\t grid.setImage(loc14, null);\r\n\r\n\t\t\t \r\n\t\t\t\tgrid.setImage(next404, \"SB104.png\");\r\n\t\t\t grid.setImage(loc15, null);\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t \r\n\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n }\r\n }", "@Test\n public void testWithObstacle() {\n Grid g = new Grid(3, 3, 0, 0, 0, 0);\n Obstacle o = new Obstacle(1, 1);\n g.setObject(o, 1, 1);\n g.setObject(o, 1, 2);\n AStarStrategy strategy = new AStarStrategy();\n\n Location from = new Location(0, 0);\n Location to = new Location(2, 2);\n Path path = strategy.generatePath(g, from, to);\n assertNotNull(path);\n assertEquals(4, path.getMoves().size());\n assertEquals(Move.DOWN, path.getMoves().get(0).direction);\n assertEquals(Move.DOWN, path.getMoves().get(1).direction);\n assertEquals(Move.RIGHT, path.getMoves().get(2).direction);\n assertEquals(Move.RIGHT, path.getMoves().get(3).direction);\n }", "private void placeBombs() {\n\t\tfor (int i = 0; i < NUM_BOMBS; i++) {\n\t\t\tplaceBomb();\n\t\t}\n\t}", "public void tick() {\n\t\tif (mainRef.player().getPos()[1] <= lastEnd.getPos()[1] + 2000)\r\n\t\t\tloadNextMap();\r\n\r\n\t\tfor (GameObject go : gameObjects)\r\n\t\t\tgo.tick();\r\n\r\n\t\t// Check Player Collision\r\n\t\t// Top-Left\r\n\t\tPointColObj cTL = new PointColObj(mainRef.player().getPos()[0] + mainRef.player().getCol()[2],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3]);\r\n\t\t// Top-Right\r\n\t\tPointColObj cTR = new PointColObj(mainRef.player().getPos()[0] + mainRef.player().getCol()[2],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3] + mainRef.player().getCol()[1]);\r\n\t\t// Bottom-Left\r\n\t\tPointColObj cBL = new PointColObj(\r\n\t\t\t\tmainRef.player().getPos()[0] + mainRef.player().getCol()[2] + mainRef.player().getCol()[0],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3]);\r\n\t\t// Bottom-Right\r\n\t\tPointColObj cBR = new PointColObj(\r\n\t\t\t\tmainRef.player().getPos()[0] + mainRef.player().getCol()[2] + mainRef.player().getCol()[0],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3] + mainRef.player().getCol()[1]);\r\n\r\n\t\t// Inverse Collision, no part of the player's ColBox should be not\r\n\t\t// colliding...\r\n\t\tif (checkCollisionWith(cTL).size() == 0 || checkCollisionWith(cTR).size() == 0\r\n\t\t\t\t|| checkCollisionWith(cBL).size() == 0 || checkCollisionWith(cBR).size() == 0) {\r\n\t\t\t// If it would have left the bounding box of the floor, reverse the\r\n\t\t\t// player's posiiton\r\n\t\t\tmainRef.player().setMoveBack(true);\r\n\t\t} else\r\n\t\t\tmainRef.player().setMoveBack(false);\r\n\r\n\t\t// Check General Collision\r\n\t\tArrayList<GameObject> allCol = checkCollisionWith(mainRef.player());\r\n\t\tfor (GameObject go : allCol) {\r\n\t\t\tif (go instanceof Tile) {\r\n\t\t\t\tTile gameTile = (Tile) go;\r\n\t\t\t\tif (gameTile.getType() == GameObjectRegistry.TILE_WALL\r\n\t\t\t\t\t\t|| gameTile.getType() == GameObjectRegistry.TILE_BASE\r\n\t\t\t\t\t\t|| gameTile.getType() == GameObjectRegistry.TILE_DOOR\r\n\t\t\t\t\t\t|| gameTile.getType() == GameObjectRegistry.TILE_SEWER\r\n\t\t\t\t\t\t|| (gameTile.getType() == GameObjectRegistry.TILE_WATERFALL && gameTile.getVar() == 0)) {\r\n\t\t\t\t\tmainRef.player().setMoveBack(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t} else if (go instanceof LineColObjHor || go instanceof LineColObjVert) {\r\n\t\t\t\tmainRef.player().setMoveBack(true);\r\n\t\t\t\tbreak;\r\n\t\t\t} else if (go instanceof SkillDrop) {\r\n\t\t\t\tSkillDrop d = (SkillDrop) go;\r\n\t\t\t\tmainRef.player().getInv()[d.getVariation()]++;\r\n\t\t\t\tremoveGameObject(go);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}", "public ArrayList<PathBlockingObstacle> getStationaryObstacles(){\r\n ArrayList<PathBlockingObstacle> obstacles = (ArrayList)obstaclesMap.get(gameObjects.getMoveableObjectsList().get(0).getObjectRadius());\r\n return obstacles;\r\n }", "private void drawTiles(Graphics g)\n {\n for (int x = 0; x < 19; x++)\n {\n for (int y = 0; y < 15; y++)\n {\n tileset.getSprite(5, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n switch(board[x][y])\n {\n case 1:\n {\n tileset.getSprite(4, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n break;\n }\n case 2:\n {\n tileset.getSprite(3, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n break;\n }\n case 3:\n {\n if (bombs[x][y].getTimeLeft() > 80)\n {\n bombImage.getSprite(0, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n if (bombs[x][y].getTimeLeft() <= 80 && bombs[x][y].getTimeLeft() > 50)\n {\n bombImage.getSprite(1, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n if (bombs[x][y].getTimeLeft() <= 50 && bombs[x][y].getTimeLeft() > 20)\n {\n bombImage.getSprite(2, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n if (bombs[x][y].getTimeLeft() <= 20)\n {\n bombImage.getSprite(3, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n break;\n }\n //4 is player\n case 5:\n {\n if (fire[x][y] == null)\n {\n tileset.getSprite(2, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n break;\n }\n case 6:\n {\n if (fire[x][y] == null)\n {\n tileset.getSprite(15, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n break;\n }\n }\n }\n }\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 checkObstacles(UserCar userCar) {\n for (int i = 0; i < outSideItems.size(); i++) {\n if (userCar.collidesWith(outSideItems.get(i).getCollisionRectangle())) {\n userCar.fullStop();\n }\n }\n }", "public void bordersColision(VisibleObject object, int colision) {\n\r\n switch (colision) {\r\n case 1:\r\n if(object instanceof KillerShoot){\r\n ((KillerShoot) object).setMove(10);\r\n }\r\n if (this.killerGameRules.getVisualR().getSocket() != null) {\r\n \r\n this.killerGameRules.SendAndeliminateObjectRight(object);\r\n } else {\r\n this.killerGameRules.moveObjectLeftFronter(object);\r\n }\r\n break;\r\n case 2:\r\n if (this.killerGameRules.getVisualL().getSocket() != null) {\r\n this.killerGameRules.SendAndeliminateObjectLeft(object);\r\n\r\n } else {\r\n this.killerGameRules.moveObjectRightFronter(object);\r\n }\r\n break;\r\n case 3:\r\n if (object instanceof KillerShip) {\r\n\r\n object.setY(object.getY() + 1);\r\n } if(object instanceof Asteroids) {\r\n this.killerGameRules.reboundAsteroidsTop((Asteroids)object);\r\n }\r\n if(object instanceof KillerShoot){\r\n this.killerGameRules.reboundKillerShootTop((KillerShoot)object);\r\n }\r\n \r\n break;\r\n case 4:\r\n if (object instanceof KillerShip) {\r\n object.setY(object.getY() - 1);\r\n } if(object instanceof Asteroids) {\r\n this.killerGameRules.reboundAsteroidsBottom((Asteroids)object);\r\n }if(object instanceof KillerShoot){\r\n this.killerGameRules.reboundKillerShootBottom((KillerShoot)object);\r\n }\r\n break;\r\n default:\r\n break;\r\n }\r\n }", "public void arrangeBoard(){\n for(int i=0;i<6;i++){\n for(int j=0;j<6;j++){\n if(i==2 && j==0){ //set the target ship.\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.gridwidth = 2;\n targetShip = new JLabel();\n targetShip.setIcon(new ImageIcon(\"design\\\\ships\\\\targetShip.png\"));\n mainPanel.add(targetShip,gbc);\n }\n else if(i==2 && j==1){\n continue;\n }\n else{ //put free spaces in the other places.\n gbc.gridx = j;\n gbc.gridy = i;\n gbc.gridwidth = 1;\n gbc.gridheight = 1;\n freeSpaceButton freeSpace = new freeSpaceButton(new Point(j,i));\n mainPanel.add(freeSpace,gbc);\n }\n }\n }\n }", "public void create(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\t\tthis.position[1][1] = 1;//putting player in this position\n\n\t\t//creating door in the rooms\n\t\tfor(int i = 0; i <this.Door.length; i++){\n\t\t\tfor(int p = 0; p < this.Door.length; p++){\n\t\t\t\tthis.Door[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Door[9][13] = 1;//puts the door here \n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 4; p < 7; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 4; p < 7; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 7; i< 8 ; i++){\n\t\t\tfor(int p = 2; p < 7; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 17; i< 18 ; i++){\n\t\t\tfor(int p = 13; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\t\n\t\t}\n\t\tfor(int i = 14; i< 15 ; i++){\n\t\t\tfor(int p = 13; p < 17; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\t\n\t\t}\t\n\t\tfor(int i = 11; i< 12 ; i++){\n\t\t\tfor(int p = 10; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 3; p < 6; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 16; i< 17 ; i++){\n\t\t\tfor(int p = 6; p < 13; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 12; i< 13 ; i++){\n\t\t\tfor(int p = 5; p < 10; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\t\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes \n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{ \n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}", "public void colocarBomba() \r\n {\r\n \tBomba bom;\r\n \tCelda c= miJuego.getNivel(0).getCelda(this.posX, this.posY);\r\n \tif(!dios)\r\n \t{\r\n \t\tif(misBombas.size()>0)\r\n \t\t{\r\n \t\t\tif(c.getBomba()==null){\r\n \t\t\t\tbom=misBombas.remove(misBombas.size()-1);\r\n \t\t\t\tbom.setUbicacion(c);\r\n \t\t\t\tmiJuego.getGui().agregarJuego(bom.getGrafico().getGrafico(),20);\r\n \t\t\t\tbom.getGrafico().setPos(posX, posY);\r\n \t\t\t\tc.colocarBomba(bom);\r\n \t\t\t\tbom=null;\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \telse\r\n \t{\r\n \t\tbom=new Bomba(this);\r\n \t\tbom.setUbicacion(c);\r\n\t\t\tmiJuego.getGui().agregarJuego(bom.getGrafico().getGrafico(),20);\r\n \t\tbom.getGrafico().setPos(posX, posY);\r\n \t\tc.colocarBomba(bom);\r\n \t\tbom=null;\r\n \t}\r\n \r\n }", "public void boom() {\n\t\tboom.setPosition(sprite.getX(),sprite.getY());\n\t\tsprite = boom;\n\t}", "protected ArrayList<Obstacle> getObstacles() {\n return obstacles;\n }", "public void trouverQuelObjetEstSeletionne(MouseEvent e) {\n\t\tdouble xPrecedent = e.getX();\n\t\tdouble yPrecedent = e.getY();\n\t\t//double xPrecedent =0;\n\t\t//double yPrecedent = 0;\n\t\tif(getObstaclesList().size()>indiceObjetSelectionne) {\n\t\t\twhile(getObstaclesList().get(i).getArea().contains(e.getX(), e.getY())&&getObstaclesList().size()>i&& enClique) {\n\n\n\t\t\t\tinterieur=true;\n\t\t\t\t//System.out.println(\"clic sur un obstacle!!\");\n\t\t\t\tindiceObjetSelectionne =i;\n\t\t\t\ti++;\n\t\t\t\tif(i==getObstaclesList().size()) {\n\n\t\t\t\t\ti=0;\n\t\t\t\t\tenClique= false;\n\t\t\t\t}\n\t\t\t\t//break;\n\n\n\t\t\t}\n\t\t}\n\n\t}", "public Obstacle(String action, String name, int[] bounds, Area startArea, int id) {\n this.action = action;\n this.name = name;\n this.bounds = bounds;\n this.startArea = startArea;\n this.id = id;\n }", "public void act() \n {\n World myWorld = getWorld();\n \n Mapa mapa = (Mapa)myWorld;\n \n EnergiaMedicZ vidaMZ = mapa.getEnergiaMedicZ();\n \n EnergiaGuerriZ vidaGZ = mapa.getEnergiaGuerriZ();\n \n EnergiaConstrucZ vidaCZ = mapa.getEnergiaConstrucZ();\n \n GasZerg gasZ = mapa.getGasZerg();\n \n CristalZerg cristalZ = mapa.getCristalZerg();\n \n BunkerZerg bunkerZ = mapa.getBunkerZerg();\n \n Mina1 mina1 = mapa.getMina1();\n Mina2 mina2 = mapa.getMina2();\n Mina3 mina3 = mapa.getMina3();\n \n \n //movimiento del personaje\n if(Greenfoot.isKeyDown(\"b\")){\n if(Greenfoot.isKeyDown(\"d\")){\n if(getX()<1000){\n setLocation(getX()+1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"a\")){\n if(getX()<1000){\n setLocation(getX()-1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"w\")){\n if(getY()<600){\n setLocation(getX(),getY()-1);\n }\n }\n if(Greenfoot.isKeyDown(\"s\")){\n if(getY()<600){\n setLocation(getX(),getY()+1);}\n }\n }\n else if(Greenfoot.isKeyDown(\"z\")){\n if(Greenfoot.isKeyDown(\"d\")){\n if(getX()<1000){\n setLocation(getX()+1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"a\")){\n if(getX()<1000){\n setLocation(getX()-1,getY());\n }\n }\n if(Greenfoot.isKeyDown(\"w\")){\n if(getY()<600){\n setLocation(getX(),getY()-1);\n }\n }\n if(Greenfoot.isKeyDown(\"s\")){\n if(getY()<600){\n setLocation(getX(),getY()+1);}\n }}\n //encuentro con objeto\n \n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"d\"))\n {\n setLocation(getX()-1,getY());\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"a\"))\n {\n setLocation(getX()+1,getY());\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"w\"))\n {\n setLocation(getX(),getY()+1);\n }\n if(isTouching(Arbol.class) && Greenfoot.isKeyDown(\"s\"))\n {\n setLocation(getX(),getY()-1);\n }\n \n \n //probabilida de daño al enemigo\n \n if(isTouching(MedicTerran.class) && Greenfoot.getRandomNumber(100)==3)\n {\n \n vidaCZ.removervidaCZ();\n \n }\n \n if(isTouching(ConstructorTerran.class) && (Greenfoot.getRandomNumber(100)==3 ||\n Greenfoot.getRandomNumber(100)==2||Greenfoot.getRandomNumber(100)==1))\n {\n \n vidaCZ.removervidaCZ();\n \n }\n if(isTouching(GuerreroTerran.class) && (Greenfoot.getRandomNumber(100)==3||\n Greenfoot.getRandomNumber(100)==2||Greenfoot.getRandomNumber(100)==1||Greenfoot.getRandomNumber(100)==4||Greenfoot.getRandomNumber(100)==5))\n {\n \n vidaCZ.removervidaCZ();\n \n }\n \n \n \n //encuentro con Bunker\n \n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"d\"))\n {\n setLocation(getX()-1,getY());\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"a\"))\n {\n setLocation(getX()+1,getY());\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"w\"))\n {\n setLocation(getX(),getY()+1);\n }\n \n if(isTouching(BunkerMedicoZ.class)&& Greenfoot.isKeyDown(\"s\"))\n \n {\n setLocation(getX(),getY()-1);\n }\n \n //AccionesUnicas\n \n if(isTouching(YacimientoDeGas.class) && gasZ.gasZ < 100)\n {\n \n gasZ.addGasZ();\n \n }\n \n \n if(isTouching(Mina1.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina1.removemina1();\n \n }\n \n if(isTouching(Mina2.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina2.removemina2();\n \n }\n \n if(isTouching(Mina3.class) && cristalZ.cristalZ < 20) {\n \n cristalZ.addCristalZ();\n mina3.removemina3();\n \n }\n \n \n if(isTouching(DepositoZ.class) && gasZ.gasZ > 4 && bunkerZ.bunkerZ() < 400){\n \n gasZ.removeGasZ();\n bunkerZ.addbunkerZ();\n }\n \n if(isTouching(DepositoZ.class) && cristalZ.cristalZ() > 0 && bunkerZ.bunkerZ() < 400 ){\n \n cristalZ.removeCristalZ();\n bunkerZ.addbunkerZ();\n }\n \n //determinar si la vida llega a 0\n \n if( vidaCZ.vidaCZ <= 0 )\n {\n \n getWorld().removeObjects(getWorld().getObjects(EnergiaConstrucZ.class)); \n \n getWorld().removeObjects(getWorld().getObjects(ConstructorZerg.class));\n \n EnergiaZerg energiaZ = mapa.getEnergiaZerg(); \n \n energiaZ.removenergiaCZ();\n }\n \n if( mina1.mina1() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina1.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal1.class));\n \n }\n \n if( mina2.mina2() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina2.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal2.class));\n \n }\n \n if( mina3.mina3() == 0 ){\n \n getWorld().removeObjects(getWorld().getObjects(Mina3.class)); \n \n getWorld().removeObjects(getWorld().getObjects(Cristal3.class));\n \n }\n \n \n}", "public void create2(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\n\n\t\t//creating door in the rooms\n\t\tfor(int i = 0; i <this.Door.length; i++){\n\t\t\tfor(int p = 0; p < this.Door.length; p++){\n\t\t\t\tthis.Door[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Door[1][1] = 1;\n\n\t\t//creating stairs to transport to room3\n\t\tfor(int i = 0; i <this.Stairs.length; i++){\n\t\t\tfor(int p = 0; p < this.Stairs.length; p++){\n\t\t\t\tthis.Stairs[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Stairs[18][18] = 1;\n\n\t\t//creating board to keep track of ari\n\t\tfor(int i = 0; i <this.Ari.length; i++){\n\t\t\tfor(int p = 0; p < this.Ari.length; p++){\n\t\t\t\tthis.Ari[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}\n\t\tthis.Ari[7][11] = 1;//putts ari there\n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 3; i< 4 ; i++){\n\t\t\tfor(int p = 1; p < 18; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 6; i< 7 ; i++){\n\t\t\tfor(int p = 19; p > 1; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 9; i< 10 ; i++){\n\t\t\tfor(int p = 1; p < 18; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 12; i< 13 ; i++){\n\t\t\tfor(int p = 19; p > 1; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 1; p < 18; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes\n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{\n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}", "@Override\n \tpublic void update() {\n \t\tif (!constructing) {\n \t\t\t// not constructing means the pellet is still traveling through\n \t\t\t// space\n \n \t\t\t// move the pellet\n \t\t\tVector3f.add(pos, vel, pos);\n \n \t\t\t// if it's too old, kill it\n \t\t\tif (Main.timer.getTime() - birthday > 5) {\n \t\t\t\talive = false;\n \t\t\t} else {\n \t\t\t\t// if the pellet is not dead yet, see if it intersected anything\n \n \t\t\t\t// did it hit another pellet?\n \t\t\t\tPellet neighbor_pellet = queryOtherPellets();\n \n \t\t\t\t// did it hit a line or plane?\n \t\t\t\tVector3f closest_point = queryScaffoldGeometry();\n \n \t\t\t\tif (neighbor_pellet != null) {\n \t\t\t\t\talive = false;\n \n\t\t\t\t\tif (neighbor_pellet == current_cycle.lastElement()){\n\t\t\t\t\t\tSystem.out.println(\"shot at same pellet\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n \t\t\t\t\tif (!(neighbor_pellet instanceof PolygonPellet)) {\n \t\t\t\t\t\tMain.all_dead_pellets_in_world.add(neighbor_pellet);\n \t\t\t\t\t\tneighbor_pellet = new PolygonPellet(neighbor_pellet);\n \t\t\t\t\t\tMain.new_pellets_to_add_to_world.add(neighbor_pellet);\n \t\t\t\t\t}\n \n \t\t\t\t\t// if neighbor pellet's class is not PolygonPellet...\n \t\t\t\t\t// neighbor_pellet = new PolygonPellet(neighbor_pellet)\n \t\t\t\t\t// copy the position and stuff from the line/plane\n \t\t\t\t\t// pellet into the new polygon pellet\n \t\t\t\t\t// then go and add it to this cycle\n \t\t\t\t\t// hopefully it changes in the actual array of world\n \t\t\t\t\t// pellets\n \t\t\t\t\t// if not, remove that pellet from all world pelelts and\n \t\t\t\t\t// then add the new one to the end\n \n \t\t\t\t\tcurrent_cycle.add((PolygonPellet) neighbor_pellet);\n \t\t\t\t\tif (current_cycle.size() > 1) {\n \t\t\t\t\t\tmakeLine();\n \t\t\t\t\t}\n \n \t\t\t\t\tif (current_cycle.size() > 2\n \t\t\t\t\t\t\t&& current_cycle.get(0) == current_cycle\n \t\t\t\t\t\t\t\t\t.get(current_cycle.size() - 1)) {\n \t\t\t\t\t\tmakePolygon();\n \t\t\t\t\t} else {\n \t\t\t\t\t\tActionTracker.newPolygonPellet(this);\n \t\t\t\t\t}\n \n \t\t\t\t} else if (closest_point != null) {\n \t\t\t\t\tSystem.out.println(\"pellet stuck to some geometry\");\n \t\t\t\t\tconstructing = true;\n \n \t\t\t\t\tpos.set(closest_point);\n \n \t\t\t\t\tif (CONNECT_TO_PREVIOUS)\n \t\t\t\t\t\tcurrent_cycle.add(this);\n \n \t\t\t\t\tif (CONNECT_TO_PREVIOUS && current_cycle.size() > 1) {\n \t\t\t\t\t\tmakeLine();\n \t\t\t\t\t}\n \n \t\t\t\t\tif (current_cycle.size() > 2\n \t\t\t\t\t\t\t&& current_cycle.get(0) == current_cycle\n \t\t\t\t\t\t\t\t\t.get(current_cycle.size() - 1))\n \t\t\t\t\t\tmakePolygon();\n \t\t\t\t} else if (Main.draw_points) {\n \t\t\t\t\t// if it's not dead yet and also didn't hit a\n \t\t\t\t\t// neighboring\n \t\t\t\t\t// pellet, look for nearby points in model\n \t\t\t\t\tint neighbors = queryKdTree(pos.x, pos.y, pos.z, radius);\n \n \t\t\t\t\t// is it near some points?!\n \t\t\t\t\tif (neighbors > 0) {\n \t\t\t\t\t\tconstructing = true;\n \t\t\t\t\t\tsetInPlace();\n \n \t\t\t\t\t\tsnapToCenterOfPoints();\n \n \t\t\t\t\t\tif (CONNECT_TO_PREVIOUS)\n \t\t\t\t\t\t\tcurrent_cycle.add(this);\n \n \t\t\t\t\t\tif (CONNECT_TO_PREVIOUS && current_cycle.size() > 1) {\n \t\t\t\t\t\t\tmakeLine();\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t\tif (current_cycle.size() > 0)\n \t\t\t\t\tcurrent_cycle.get(0).setAsFirstInCycle();\n \n \t\t\t\tif (constructing == true) {\n \t\t\t\t\tActionTracker.newPolygonPellet(this);\n \t\t\t\t}\n \t\t\t}\n \t\t} else {\n \t\t\t// the pellet has stuck... here we just give it a nice growing\n \t\t\t// bubble animation\n \t\t\tif (radius < max_radius) {\n \t\t\t\tradius *= 1.1;\n \t\t\t}\n \t\t}\n \t}", "private void UpdateSurround(int row, int col) {\n\t\t\n\t\t// updates the 3 positions below the bomb\n\t\tif(row - 1 >= 0) {\n\t\t\tif(grid[row-1][col] < 9)\n\t\t\t\tgrid[row-1][col] = grid[row-1][col] + 1;\n\t\t\tif(col - 1 >= 0) {\n\t\t\t\tif(grid[row-1][col-1] < 9)\n\t\t\t\t\tgrid[row-1][col-1] = grid[row-1][col-1] + 1;\n\t\t\t}\n\t\t\tif(col + 1 < width) {\n\t\t\t\tif(grid[row-1][col+1] < 9)\n\t\t\t\t\tgrid[row-1][col+1] = grid[row-1][col+1] + 1;\n\t\t\t}\n\t\t}\n\t\t// updates the 3 positions above the bomb\n\t\tif(row + 1 < height) {\n\t\t\tif(grid[row+1][col] < 9)\n\t\t\t\tgrid[row+1][col] = grid[row+1][col] + 1;\n\t\t\tif(col - 1 >= 0) {\n\t\t\t\tif(grid[row+1][col-1] <9)\n\t\t\t\t\tgrid[row+1][col-1] = grid[row+1][col-1] + 1;\n\t\t\t}\n\t\t\tif(col + 1 < width) {\n\t\t\t\tif(grid[row+1][col+1] < 9)\n\t\t\t\t\tgrid[row+1][col+1] = grid[row+1][col+1] + 1;\n\t\t\t}\n\t\t}\n\t\t// updates position to the left\n\t\tif(col - 1 >= 0) {\n\t\t\tif(grid[row][col-1] < 9)\n\t\t\t\tgrid[row][col-1] = grid[row][col-1] + 1;\n\t\t}\n\t\t// updates position to the right\n\t\tif(col + 1 < width) {\n\t\t\tif(grid[row][col+1] < 9)\n\t\t\t\tgrid[row][col+1] = grid[row][col+1] + 1;\n\t\t}\n\t}", "public void updatePosition()\r\n\t{\r\n\t\tsuper.updatePosition();\r\n\t\t\r\n\t\t// Update the bomb's position\r\n\t\tPoint nextPosition = getPath().getLocation(t++);\r\n\t\tsetX(nextPosition.x + startX);\r\n\t\tint nextY = nextPosition.y + startY;\r\n\t\tsetY(nextY);\r\n\t\t\r\n\t\t// Blow the bomb up after it reaches mid screen\r\n\t\tif (t > 120 || (nextY < (Global.WINDOW_HEIGHT >> 1) && t > 30))\r\n\t\t{\r\n\t\t\tbombSound.stop();\r\n\t\t\tsuper.remove();\r\n\t\t\tGamePanel.makeExplosion(getX(), getY());\r\n\t\t\t\r\n\t\t\t// Injure all the enemies on the screen\r\n\t\t\t\r\n\t\t\tArrayList<Sprite> sprites = GamePanel.getSprites();\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < sprites.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tif (sprites.get(i) instanceof Enemy)\r\n\t\t\t\t{\r\n\t\t\t\t\tEnemy enemy = (Enemy) sprites.get(i);\r\n\t\t\t\t\t\r\n\t\t\t\t\tint currentYTop = GamePanel.getLevel().getCurrentY() +\r\n\t\t\t\t\t\tBLOCKS_PER_Y - 1;\r\n\t\t\t\t\tboolean visibleX = enemy.getX() + enemy.getWidth() >= 0 &&\r\n\t\t\t\t\t\tenemy.getX() <= Global.WINDOW_WIDTH;\r\n\t\t\t\t\tboolean yOnScreen = enemy.getY() <= Global.WINDOW_HEIGHT +\r\n\t\t\t\t\t\t100;\r\n\t\t\t\t\tboolean visibleY = enemy.getYBlock() >= currentYTop &&\r\n\t\t\t\t\t\tyOnScreen;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (visibleX && visibleY && enemy.isAlive())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tenemy.offsetHealth(-300);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (enemy.getHealth() <= 0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tenemy.remove();\r\n\t\t\t\t\t\t\tGamePanel.offsetNumLevelPoints(100);\r\n\t\t\t\t\t\t\tGamePanel.makeExplosion(enemy.getX(), enemy.getY());\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}\r\n\t}", "public Obstacle(int xPos,BufferedImage bi)\r\n {\r\n super(xPos,(int)(bi.getHeight()*2/3*(Math.random()*0.5+0.25)),bi);\r\n //super(x,y,width,height);\r\n }", "public void elementosMapa() {\n\t\t\n\t\tHeroes heroe = (Heroes) ven.getHeroe();\n\t\t\n\t\tif(heroe.getPosX() >= 250 && heroe.getPosX() <= 302 && heroe.getPosY() >= 208 && heroe.getPosY() <= 255 && pregunta1 == false) {\n\n\t\t\tString respuesta = JOptionPane.showInputDialog(this, \"¿Cuántas transformaciones sufre Freezer?\" + \"\\n\" + \"a) 4\" + \"\\n\" + \"b) 5\" + \"\\n\" + \"c) 2\");\n\t\t\t\n\t\t\tif(respuesta == null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tthrow new RespuestaNulaException();\n\t\t\t\t} catch (RespuestaNulaException e) {\n\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta.equalsIgnoreCase(\"a\")) {\n\t\t\t\t\n\t\t\t\tpregunta1 = true;\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es correcta, acabas de ganar una nueva esfera :D\");\n\t\t\t\tven.modificarEsfera(2);\n\t\t\t\tven.actualizarInfo();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta != \"a\") {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es incorrecta :(\");\n\t\t\t\theroe.setPosX(281); \n\t\t\t\theroe.setPosY(311);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\telse if(heroe.getPosX() >= 1148 && heroe.getPosX() <= 1202 && heroe.getPosY() >= 33 && heroe.getPosY() <= 84 && pregunta2 == false) {\n\t\t\t\n\t\t\tString respuesta = JOptionPane.showInputDialog(this, \"¿Quién logró liberar la espada Z?\" + \"\\n\" + \"a) Goten\" + \"\\n\" + \"b) Goku\" + \"\\n\" + \"c) Gohan\");\n\t\t\t\n\t\t\tif(respuesta == null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tthrow new RespuestaNulaException();\n\t\t\t\t} catch (RespuestaNulaException e) {\n\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta.equalsIgnoreCase(\"c\")) {\n\t\t\t\t\n\t\t\t\tpregunta2 = true;\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es correcta, acabas de ganar una nueva esfera\");\n\t\t\t\tven.modificarEsfera(4);\n\t\t\t\tven.actualizarInfo();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta != \"a\") {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es incorrecta :(\");\n\t\t\t\theroe.setPosX(1280);\n\t\t\t\theroe.setPosY(119);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\telse if(heroe.getPosX() >= 50 && heroe.getPosX() <= 103 && heroe.getPosY() >= 558 && heroe.getPosY() <= 607 && pregunta3 == false) {\n\t\t\t\n\t\t\t\n\t\t\tString respuesta = JOptionPane.showInputDialog(this, \"¿Quién es hijo de Paragus?\" + \"\\n\" + \"a) Bardock\" + \"\\n\" + \"b) Broly\" + \"\\n\" + \"c) Freezer\");\n\t\t\t\n\t\t\tif(respuesta == null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tthrow new RespuestaNulaException();\n\t\t\t\t} catch (RespuestaNulaException e) {\n\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta.equalsIgnoreCase(\"b\")) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tpregunta3 = true;\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es correcta, acabas de ganar una nueva esfera :D\");\n\t\t\t\tven.modificarEsfera(6);\n\t\t\t\tven.actualizarInfo();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta != \"b\") {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es incorrecta :(\");\n\t\t\t\theroe.setPosX(135);\n\t\t\t\theroe.setPosY(593);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\telse if(heroe.getPosX() >= 70 && heroe.getPosX() <= 130 && heroe.getPosY() >= 1 && heroe.getPosY() <= 55 && pregunta4 == false) {\n\n\t\t\tString respuesta = JOptionPane.showInputDialog(this, \"¿Quién se convirtío primero en SSJ2?\" + \"\\n\" + \"a) Goku\" + \"\\n\" + \"b) Trunks\" + \"\\n\" + \"c) Gohan\");\n\t\t\t\n\t\t\tif(respuesta == null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tthrow new RespuestaNulaException();\n\t\t\t\t} catch (RespuestaNulaException e) {\n\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta.equalsIgnoreCase(\"c\")) {\n\t\t\t\t\n\t\t\t\tpregunta4 = true;\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es correcta, has aumentado el poder de tus ataques :D\");\n\t\t\t\theroe.setAtaque1(20);\n\t\t\t\theroe.setAtaque2(20);\n\t\t\t\theroe.setAtaque3(20);\n\t\t\t\theroe.setAtaqueEspecial(20);\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta != \"c\") {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es incorrecta :(\");\n\t\t\t\theroe.setPosX(208); \n\t\t\t\theroe.setPosY(47);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\n\t\telse if(heroe.getPosX() >= 585 && heroe.getPosX() <= 640 && heroe.getPosY() >= 258 && heroe.getPosY() <= 310 && pregunta5 == false) {\n\n\t\t\tString respuesta = JOptionPane.showInputDialog(this, \"¿Quién mantuvo su cola hasta la muerte?\" + \"\\n\" + \"a) Vegeta\" + \"\\n\" + \"b) Bardock\" + \"\\n\" + \"c) Gohan\");\n\t\t\t\n\t\t\tif(respuesta == null){\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tthrow new RespuestaNulaException();\n\t\t\t\t} catch (RespuestaNulaException e) {\n\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta.equalsIgnoreCase(\"b\")) {\n\t\t\t\t\n\t\t\t\tpregunta5 = true;\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es correcta, has aumentado el poder de tus ataques :D\");\n\t\t\t\theroe.setAtaque1(20);\n\t\t\t\theroe.setAtaque2(20);\n\t\t\t\theroe.setAtaque3(20);\n\t\t\t\theroe.setAtaqueEspecial(20);\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta != \"b\") {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"La respuesta es incorrecta :(\");\n\t\t\t\theroe.setPosX(577); \n\t\t\t\theroe.setPosY(356);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\telse if(heroe.getPosX() >= 396 && heroe.getPosX() <= 444 && heroe.getPosY() >= 230 && heroe.getPosY()<= 300 && Broly == false) {\n\t\t\t\n\t\t\tVillanos villano = (Villanos) ven.getJuego().getHeroe(\"Broly\");\n\t\t\tvillanoActual = \"Broly\";\n\t\t\t\n\t\t\tint resp = JOptionPane.showConfirmDialog(null,\"Broly: \" + villano.getFrasePelea() + \"\\n\" + \"\\n\" + \"¿Desea pelear para ganar una esfera?\" , \"Batallar\", JOptionPane.YES_NO_OPTION);\n\n\t\t\tif(resp == JOptionPane.YES_OPTION) {\n\n\t\t\t\tven.getBatalla().getFondo().setImagenRuta(\"Datos/Fondos/FondoBatalla3.jpg\");\n\t\t\t\theroe.setVida(500);\n\t\t\t\tvillano.setVida(500);\n\t\t\t\tven.visualizarBatalla();\n\t\t\t\theroe.setPosX(414);\n\t\t\t\theroe.setPosY(352);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}else if(resp == JOptionPane.NO_OPTION) {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Debes pelear para ganar una esfera :(\");\n\t\t\t\theroe.setPosX(414);\n\t\t\t\theroe.setPosY(352);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\telse if(heroe.getPosX() >= 1235 && heroe.getPosX() <= 1295 && heroe.getPosY() >= 290 && heroe.getPosY() <= 360 && Freezer == false) {\n\t\t\tVillanos villano = (Villanos) ven.getJuego().getHeroe(\"Freezer\");\n\t\t\tvillanoActual = \"Freezer\";\n\t\t\t\n\t\t\tint resp = JOptionPane.showConfirmDialog(null,\"Freezer: \" + villano.getFrasePelea() + \"\\n\" + \"\\n\" + \"¿Desea pelear para ganar una esfera?\" , \"Batallar\", JOptionPane.YES_NO_OPTION);\n\t\t\t\n\t\t\tif(resp == JOptionPane.YES_OPTION) {\n\n\t\t\t\tven.getBatalla().getFondo().setImagenRuta(\"Datos/Fondos/FondoBatalla2.png\");\n\t\t\t\theroe.setVida(500);\n\t\t\t\tvillano.setVida(500);\n\t\t\t\tven.visualizarBatalla();\n\t\t\t\theroe.setPosX(1279);\n\t\t\t\theroe.setPosY(229);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}else if(resp == JOptionPane.NO_OPTION) {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Debes pelear para ganar una esfera :(\");\n\t\t\t\theroe.setPosX(1279);\n\t\t\t\theroe.setPosY(229);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\telse if(heroe.getPosX() >= 1015 && heroe.getPosX() <= 1067 && heroe.getPosY() >= 7 && heroe.getPosY() <= 57 && MajinB == false) {\n\t\t\tVillanos villano = (Villanos) ven.getJuego().getHeroe(\"Majin boo\");\n\t\t\tvillanoActual = \"Majin boo\";\n\t\t\t\n\t\t\tint resp = JOptionPane.showConfirmDialog(null,\"Majin boo: \" + villano.getFrasePelea() + \"\\n\" + \"\\n\" + \"¿Desea pelear para ganar una esfera?\" , \"Batallar\", JOptionPane.YES_NO_OPTION);\n\t\t\t\n\t\t\tif(resp == JOptionPane.YES_OPTION) {\n\n\t\t\t\tven.getBatalla().getFondo().setImagenRuta(\"Datos/Fondos/FondoBatalla4.jpg\");\n\t\t\t\theroe.setVida(500);\n\t\t\t\tvillano.setVida(500);\n\t\t\t\tven.visualizarBatalla();\n\t\t\t\theroe.setPosX(1020);\n\t\t\t\theroe.setPosY(106);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}else if(resp == JOptionPane.NO_OPTION) {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Debes pelear para ganar una esfera :(\");\n\t\t\t\theroe.setPosX(1020);\n\t\t\t\theroe.setPosY(106);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}else if(heroe.getPosX() >= 222 && heroe.getPosX() <= 294 && heroe.getPosY() >= 480 && heroe.getPosY() <= 560 && Cell == false) {\n\t\t\tVillanos villano = (Villanos) ven.getJuego().getHeroe(\"Cell\");\n\t\t\tvillanoActual = \"Cell\";\n\t\t\t\n\t\t\tint resp = JOptionPane.showConfirmDialog(null,\"Cell: \" + villano.getFrasePelea() + \"\\n\" + \"\\n\" + \"¿Desea pelear para ganar una esfera?\" , \"Batallar\", JOptionPane.YES_NO_OPTION);\n\t\t\t\n\t\t\tif(resp == JOptionPane.YES_OPTION) {\n\n\t\t\t\tven.getBatalla().getFondo().setImagenRuta(\"Datos/Fondos/FondoBatalla.jpg\");\n\t\t\t\theroe.setVida(500);\n\t\t\t\tvillano.setVida(500);\n\t\t\t\tven.visualizarBatalla();\n\t\t\t\theroe.setPosX(364);\n\t\t\t\theroe.setPosY(583);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}else if(resp == JOptionPane.NO_OPTION) {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Debes pelear para ganar una esfera :(\");\n\t\t\t\theroe.setPosX(364);\n\t\t\t\theroe.setPosY(583);\n\t\t\t\tven.actualizarMapa();\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}else if(heroe.getPosX() >= 900 && heroe.getPosX() <= 988 && heroe.getPosY() >= 314 && heroe.getPosY() <= 421) {\n\t\t\t\n\t\t\theroe.setPosX(956);\n\t\t\theroe.setPosY(484);\n\t\t\t\n\t\t\tString respuesta = JOptionPane.showInputDialog(this, \"¿Qué deseas hacer \" + ven.getNombreUsuario() + \"?\" + \"\\n\" + \"a) Guardar puntaje\" + \"\\n\" + \"b) Ver información de los personajes\" + \"\\n\" + \"c) Ver puntajes\");\n\t\t\tif(respuesta.equalsIgnoreCase(\"a\")) {\n\t\t\t\t\n\t\t\t\tven.guardarPuntaje();\n\t\t\t\t\n\t\t\t\t\n\t\t\t}else if(respuesta.equalsIgnoreCase(\"c\")){\n\t\t\t\tven.cargarPuntajes();\n\t\t\t\tven.visualizarPuntajes();\n\t\t\t}\n\t\t\t\n\t\t\telse if(respuesta.equalsIgnoreCase(\"b\")) {\n\t\t\t\t\n\t\t\t\tString per = JOptionPane.showInputDialog(this, \"¿De qué personaje deseas ver la información \" + ven.getNombreUsuario() + \"\\n\" + \"a) Goku\" + \"\\n\" + \"b) Roshi\" + \"\\n\" + \"c) Vegeta\" + \"\\n\" + \"d) Freezer\" + \"\\n\" + \"e) Cell\" + \"\\n\" + \"f) Majin boo\" + \"\\n\" + \"g) Broly\");\n\t\t\t\t\n\t\t\t\tif(per.equalsIgnoreCase(\"a\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Goku\");\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(per.equalsIgnoreCase(\"b\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Roshi\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(per.equalsIgnoreCase(\"c\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Vegeta\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(per.equalsIgnoreCase(\"d\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Freezer\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(per.equalsIgnoreCase(\"e\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Cell\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(per.equalsIgnoreCase(\"f\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Majin boo\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(per.equalsIgnoreCase(\"g\")) {\n\t\t\t\t\t\n\t\t\t\t\tven.mostrarInfoPersonajes(\"Broly\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\ttry {\n\t\t\t\t\tthrow new CaracterEquivocadoException();\n\t\t\t\t} catch (CaracterEquivocadoException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}", "private void collision() {\n\t\tfor(int i = 0; i < brownMeteors.length; i++) {\n\t\t\tif( distance(brownMeteors[i].getLayoutX() + ENTITIES_SIZE/2, brownMeteors[i].getLayoutY() - ENTITIES_SIZE/2, \n\t\t\t\t\tplayer.getLayoutX() + ENTITIES_SIZE/2, player.getLayoutY() - ENTITIES_SIZE/2) <= ENTITIES_SIZE) {\n\t\t\t\tsetNewElementPosition(brownMeteors[i]);\n\t\t\t\t\n\t\t\t\t//Update score -\n\t\t\t\tsc.score -= 3 * sc.collisionCounter; \n\t\t\t\tsc.collisionCounter++;\n\t\t\t}\n\t\t}\n\t\t//player vs grey Meteor\n\t\tfor(int i = 0; i < greyMeteors.length; i++) {\n\t\t\tif( distance(greyMeteors[i].getLayoutX() + ENTITIES_SIZE/2, greyMeteors[i].getLayoutY() - ENTITIES_SIZE/2, \n\t\t\t\t\tplayer.getLayoutX() + ENTITIES_SIZE/2, player.getLayoutY() - ENTITIES_SIZE/2) <= ENTITIES_SIZE) {\n\t\t\t\tsetNewElementPosition(greyMeteors[i]);\n\n\t\t\t\t//Update score -\n\t\t\t\tsc.score -= 3 * sc.collisionCounter;\n\t\t\t\tsc.collisionCounter++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t//laser vs brown Meteor\n\t\tfor(int i = 0; i < lasers.size(); i++) {\n\t\t\tfor(int j = 0; j < brownMeteors.length; j++) { // 0 - 2 -> 3elem\n\t\t\t\tif(lasers.get(i).getBoundsInParent().intersects(brownMeteors[j].getBoundsInParent())) {\t// bounds of a node in it's parent coordinates\n\t\t\t\t\tsetNewElementPosition(brownMeteors[j]);\n\t\t\t\t\tgamePane.getChildren().remove(lasers.get(i));\n\t\t\t\t\tlasers.remove(i);\n\t\t\t\t\tSystem.out.println(lasers.size());\n\t\t\t\t\t\n\t\t\t\t\t//Update score +\n\t\t\t\t\tsc.score += 1; \n\t\t\t\t\tbreak; //kein fehler mehr durch index out of bounds verletzung\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\t\n\t\tfor(int i = 0; i < lasers.size(); i++) {\n\t\t\tfor(int j = 0; j < greyMeteors.length; j++) { // 0 - 2 -> 3elem\n\t\t\t\tif(lasers.get(i).getBoundsInParent().intersects(greyMeteors[j].getBoundsInParent())) {\t// bounds of a node in it's parent coordinates\n\t\t\t\t\tsetNewElementPosition(greyMeteors[j]);\n\t\t\t\t\tgamePane.getChildren().remove(lasers.get(i));\n\t\t\t\t\tlasers.remove(i);\n\t\t\t\t\tSystem.out.println(lasers.size());\n\t\t\t\t\t\n\t\t\t\t\t//Update score +\n\t\t\t\t\tsc.score += 1; \n\t\t\t\t\tbreak; //kein fehler mehr durch index out of bounds verletzung\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\t\t\n\t}", "private void createNodes(Obstacle obs){\n\t\n\tfor(int i = 0; i < 10; i++){\n\t double angle = Math.PI * i / 5;\n\t double clearance = (CLEARANCE + 0.3F) / 2 + obs.getRadius();\n\t double x_pos = (obs.getX() + clearance * Math.cos(angle));\n\t if(x_pos > Position.ARENA_WIDTH() / -2 + Position.WALL_CLEARANCE() && x_pos < Position.ARENA_WIDTH() / 2 - Position.WALL_CLEARANCE())\n\t\taddNode(getNodes(), new AStarNode(x_pos, (obs.getY() + clearance * Math.sin(angle))));\n\t}\n }", "public void build()\n {\n\t\tPoint3d loc;\n\t\n\t\tcomputeFPS(0);\n\t\n\t\t// Make random number generator\n\t\tif (seed == -1) {\n\t\t seed = System.currentTimeMillis() % 10000;\n\t\t System.out.println(\"Seed value: \" + seed);\n\t\t}\n\t\trgen = new Random(seed);\n\t\n\t\t// Create empty scene\n\t\tobstacles = new Vector<Obstacle>();\n\t\tcritters = new Vector<Critter>();\n\t\n\t\t// ---------------\n\n // Create a couple of trees, one big and one smaller\n obstacles.addElement(new Tree(rgen, 5, 6, 4.5f, 0.4f, 0.0f, 0.0f));\n obstacles.addElement(new Tree(rgen, 4, 6, 2.5f, 0.15f, 8.0f, -5.0f));\n\n // Create a few rocks\n obstacles.addElement(new Rock(rgen, 4, 2, 2, 1));\n obstacles.addElement(new Rock(rgen, 3, 4, 8, 1));\n obstacles.addElement(new Rock(rgen, 3, 7, 2, 2));\n obstacles.addElement(new Rock(rgen, 2, -2.6, -9, 2));\n obstacles.addElement(new Rock(rgen, 4, -2, -3, 1));\n obstacles.addElement(new Rock(rgen, 3, -2, -1.11, 1));\n \n // Create the main bug\n mainBug = new Bug(rgen, 0.4f, -1, 1, 0.1f, 0.0f);\n critters.addElement(mainBug);\n \n // baby critters\n critters.addElement(new Bug(rgen, 0.1f, -5, 6, 0.1, 0.0f));\n critters.addElement(new Bug(rgen, 0.15f, -7, -6, 0.1, 0.0f));\n critters.addElement(new Bug(rgen, 0.2f, -8, 1, 0.1, 0.0f));\n \n //predator\n predator = new Predator(rgen, 0.3f, -9, 9, 0, 0);\n critters.addElement(predator);\n \n \n goal = new Point3d(rgen.nextDouble()*5, rgen.nextDouble()*5, 0);\n target = 0;\n\n\t\t// Reset computation clock\n\t\tcomputeClock = 0;\n }", "@Test\n public void testWithObstacle2() {\n Grid g = new Grid(3, 3, 0, 0, 0, 0);\n Obstacle o = new Obstacle(1, 1);\n g.setObject(o, 1, 0);\n g.setObject(o, 1, 1);\n AStarStrategy strategy = new AStarStrategy();\n\n Location from = new Location(0, 0);\n Location to = new Location(2, 2);\n Path path = strategy.generatePath(g, from, to);\n assertNotNull(path);\n assertEquals(4, path.getMoves().size());\n assertEquals(Move.RIGHT, path.getMoves().get(0).direction);\n assertEquals(Move.RIGHT, path.getMoves().get(1).direction);\n assertEquals(Move.DOWN, path.getMoves().get(2).direction);\n assertEquals(Move.DOWN, path.getMoves().get(3).direction);\n }", "private boolean isInObstacle(PVector targetPosition, ArrayList<Obstacle> obstacles) {\n\t\tfloat distance = Float.POSITIVE_INFINITY;\r\n\t\tfor(Obstacle ob: obstacles) {\r\n\t\t\tif(targetPosition.dist(ob.getPosition()) < distance){\r\n\t\t\t\tdistance = targetPosition.dist(ob.getPosition());\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(distance < Constants.GRID_SIZE)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public void performOptimalPlacement(CameraPlacementProblem problem)\n {\n \tint i, j, index = 0, maxTiles = 0;\n \t//ArrayList<Camera> cameraList = new ArrayList<Camera>();\n\n \t//Iterate through all optimal amera placements, and select\n \t//the best one (Highest covered tiles)\n \tfor (i = 0; i < optimalDir.size(); i++)\n \t{\n \t\tif (optimalDir.get(i)[1] > maxTiles && isValid(optimalDir.get(i)[2], optimalDir.get(i)[3]))\n \t\t{\n \t\t\tmaxTiles = optimalDir.get(i)[1];\n \t\t\tindex = i;\n \t\t}\n \t}\n\n \tCamera camera = new Camera(new Pointd(optimalDir.get(index)[2], optimalDir.get(index)[3]), optimalDir.get(index)[0]);\n\n \t//System.out.println(\"Removing: [ \" + optimalDir.get(index)[0] + \" \" + optimalDir.get(index)[1] + \" \" + optimalDir.get(index)[2] + \" \" + optimalDir.get(index)[3] + \" ]\");\n\n \t//Now remove camera from optimalDir (because currently in cameraList)\n \t//optimalDir.remove(index);\n\n \tcameraList.add(camera);\n }", "public void controlla_collisioni() {\n\n for (int i = punti; i > 0; i--) {\n\n if ((i > 4) && (x[0] == x[i]) && (y[0] == y[i])) {\n in_gioco = false;\n }\n }\n\n if (y[0] >= ALTEZZA+85) { //devo aggungere +85 perche' l'area di gioco comincia dal punto 100,100\n in_gioco = false;\n }\n\n if (y[0] <= 100) {\n in_gioco = false;\n }\n\n if (x[0] >= LARGHEZZA+85) {\n in_gioco = false;\n }\n\n if (x[0] <= 100) {\n in_gioco = false;\n }\n }", "public void actualiza() {\n //Si el indice de bloque a mover no es -1(no hay que mover bloque)...\n if(bAvanzaBloque) {\n for (Object objeBloque : lnkBloques) {\n Objeto objBloque = (Objeto) objeBloque;\n //Mueves los bloques que hay que mover\n if(objBloque.getVelocidad()!=0) {\n objBloque.abajo();\n }\n }\n }\n //Si la direccion X es true(el proyectil va a la derecha)\n if (bDireccionX) {\n objProyectil.derecha();\n } //Si es false (va ala izquierda)\n else {\n objProyectil.izquierda();\n }\n\n //Si la direccion Y es true(el proyectil va hacia arriba)\n if (!bDireccionY) {\n objProyectil.arriba();\n } //Si es false (va hacia abajo)\n else {\n objProyectil.abajo();\n }\n\n if (iNumBloques == 0) { // Si se acaban los bloques\n iNumBloques = 54; // Se reinicia la variable de los bloques\n iNivel++; // Aumenta el nivel\n // Se reposiciona el proyectil\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n // Se aumenta la velocidad del proyectil\n objProyectil.setVelocidad(objProyectil.getVelocidad() + 3);\n // Se reposiciona la barra\n objBarra.reposiciona(((getWidth() / 2)\n - (objProyectil.getAncho() / 2)), (getHeight()\n - objBarra.getAlto()));\n // se limpia la lista de bloques\n lnkBloques.clear();\n // se vuelve a llenar y se acomoda\n try {\n acomodaBloques();\n } catch (IOException ioeError) {\n System.out.println(\"Hubo un error al cargar el juego: \"\n + ioeError.toString());\n }\n // se mueve hacia arriba el proyectil\n bDireccionY = false;\n bDireccionX = true;\n }\n\n if (iVidas == 0) {\n bPerdio = true;\n }\n /*if (iVidas == 0) {\n bPerdio = true;\n bPausado = true;\n iNumBloques = 54; // se reinicia la cantidad de bloques\n iNivel = 1; // vuelve al nivel 1\n // La direccion del proyectil sera para arrib\n bDireccionY = false;\n // La direccion que nos interesa es: false: Izq. true: Dererecha\n bDireccionX = true;\n // Se reposiciona el proyectil\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n // Se reincia la velocidad del proyectil\n objProyectil.setVelocidad(5);\n // Se reposiciona la barra\n objBarra.reposiciona(((getWidth() / 2) \n - (objProyectil.getAncho() / 2)), (getHeight() \n - objBarra.getAlto()));\n // se limpia la lista de bloques\n lnkBloques.clear();\n // se vuelve a llenar y se acomoda\n try {\n acomodaBloques();\n } catch (IOException ioeError) {\n System.out.println(\"Hubo un error al cargar el juego: \"\n + ioeError.toString());\n }\n }\n \n if (!bPerdio) {\n iVidas = 3; // se reinicia la cantidad de vidas\n iScore = 0; // se reincia el score\n }*/\n }", "private void createBlocks(){\n for (int row=0; row < grid.length; row++) \n {\n for (int column=0; column < grid[row].length; column++)\n {\n boolean player = false;\n boolean walkable;\n \n switch (grid[row][column]){\n case(0) : \n returnImage = wall; \n walkable = false;\n break;\n case(2) : \n returnImage = start; \n walkable = true;\n player = true;\n break;\n case(4) : \n returnImage = finish; \n walkable = true;\n break;\n \n default :\n returnImage = pad; \n walkable = false;\n }\n \n \n Block blok;\n try {\n if(player==true) \n { \n blok = new Block(returnImage, blockSize, true);\n blok.setTopImage(held);\n }else\n {\n blok = new Block(returnImage, blockSize, false);\n }\n blocks.add(blok);\n } catch (Exception e) {\n \n }\n } \n \n }\n \n }", "public void destroyArea(Entity[][] map, int x, int y){\r\n map[y][x] = null;\r\n //check if the area to destroy is within the map\r\n if ((x > 0) && (y > 0)){\r\n checkIfOtherType(map, y-1, x-1);\r\n map[y-1][x-1] = null;\r\n map[y-1][x-1] = new ExplodedArea(3, x-1, y-1);\r\n }\r\n if ((x + 1 < map.length) && (y + 1< map.length)){\r\n checkIfOtherType(map, y+1, x+1);\r\n map[y+1][x+1] = null;\r\n map[y+1][x+1] = new ExplodedArea(3, x+1, y+1);\r\n }\r\n if ((y > 0)){\r\n checkIfOtherType(map, y-1, x);\r\n map[y-1][x] = null;\r\n map[y-1][x] = new ExplodedArea(3, x, y-1);\r\n }\r\n if ((x +1 < map.length) && (y > 0)){\r\n checkIfOtherType(map, y-1, x+1);\r\n map[y-1][x+1] = null;\r\n map[y-1][x+1] = new ExplodedArea(3, x+1, y-1);\r\n }\r\n if ( x < map.length -1){\r\n checkIfOtherType(map, y, x+1);\r\n map[y][x+1] = null;\r\n map[y][x+1] = new ExplodedArea(3, x+1, y);\r\n }\r\n if(x > 0){\r\n checkIfOtherType(map, y, x-1);\r\n map[y][x-1] = null;\r\n map[y][x-1] = new ExplodedArea(3, x-1, y);\r\n }\r\n if (y < map.length-1){\r\n checkIfOtherType(map, y+1, x);\r\n map[y+1][x] = null;\r\n map[y+1][x] = new ExplodedArea(3, x, y+1);\r\n }\r\n if((x > 0) && (y < map.length -1)){\r\n checkIfOtherType(map, y+1, x-1);\r\n map[y+1][x-1] = null;\r\n map[y+1][x-1] = new ExplodedArea(3, x-1, y+1);\r\n }\r\n }", "private void placeBomb(int x, int y, int newValue) {\n setCell(x, y, newValue); // a: Turns this cell into a bomb\n ++bombsPlaced; // b: increments bombs placed\n GridHelper.oneUpAll(x, y, hiddenGrid); // b: Increments all cells surrounding the new bomb\n }", "public void setAsObstacle() {\n\t\tnodeStatus = Status.obstacle;\n\t}", "public gameWorld()\n { \n // Create a new world with 600x600 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n addObject(new winSign(), 310, 300);\n addObject(new obscureDecorative(), 300, 400);\n addObject(new obscureDecorative(), 300, 240);\n \n for(int i = 1; i < 5; i++) {\n addObject(new catchArrow(i * 90), 125 * i, 100);\n }\n for (int i = 0; i < 12; i++) {\n addObject(new damageArrowCatch(), 50 * i + 25, 50); \n }\n \n \n //Spawning Interval\n\n if(timerInterval >= 10) {\n arrowNumber = Greenfoot.getRandomNumber(3);\n }\n if(arrowNumber == 0) {\n addObject(new upArrow(directionOfArrow[0], imageOfArrow[0]), 125, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 1) {\n addObject(new upArrow(directionOfArrow[1], imageOfArrow[1]), 125 * 2, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 2) {\n addObject(new upArrow(directionOfArrow[2], imageOfArrow[2]), 125 * 3, 590);\n arrowNumber = 5;\n }\n if( arrowNumber == 3) {\n addObject(new upArrow(directionOfArrow[3], imageOfArrow[3]), 125 * 4, 590);\n arrowNumber = 5;\n }\n \n \n\n \n }", "public void setNumberObstacles(int numberObstacles) {\n this.numberObstacles = numberObstacles;\n }", "private void move() {\n if(this.movement[0]) {\n moveRight();\n } else {\n moveLeft();\n }\n if(this.movement[1]) {\n moveDown();\n } else {\n moveUp();\n }\n\n //Checking boundaries of the game\n if(this.XPosition + this.ballWidth > instance.getWidth()) {\n this.movement[0] = false;\n } else if(XPosition <= 0) {\n this.movement[0] = true;\n } else if(YPosition <= 0) {\n this.movement[1] = true;\n } else if(YPosition + ballHeight >= instance.getHeight()) {\n instance.missedBall();\n if (instance.getBalls() > 0){\n this.lostLife.play();\n }\n this.XPosition = instance.getWidth() / 2;\n this.YPosition = instance.getHeight() - 43;\n this.movement[1] = false;\n Player.setPlayerX((instance.getWidth() - 111) / 2);\n Player.setPlayerY(instance.getHeight() - 19);\n instance.isPaused(true);\n }\n\n if (this.boundingBox.intersects(this.playerBoundingBox)){\n Rectangle leftHalfOfPlayer = new Rectangle((int)this.playerBoundingBox.getWidth() / 2, (int)this.playerBoundingBox.getHeight(),\n this.playerBoundingBox.x, this.playerBoundingBox.y);\n this.movement[0] = !this.boundingBox.intersects(leftHalfOfPlayer);\n this.movement[1] = false;\n } else {\n // Check if ball collides with brick;\n for (Bricks[] bricks : instance.getBricks()){\n for (Bricks brick: bricks){\n if (brick.collidesWith(new Rectangle(this.XPosition , this.YPosition , this.ballWidth , this.ballHeight))){\n Rectangle iRect = brick.brickHitBox.intersection(this.boundingBox);\n brick.destroy();\n //Sound brickBreak = new Sound(\"res/Break-Sound.wav\");\n this.brickBreak.play();\n // make logic\n this.movement[1] = true;\n if ((this.boundingBox.x+(this.boundingBox.width/2))<(iRect.x+(iRect.width/2))) {\n this.movement[0] = false;\n }\n if ((this.boundingBox.x+(this.boundingBox.width/2))>(iRect.x+(iRect.width/2))) {\n this.movement[0] = true;\n }\n if ((this.boundingBox.y+(this.boundingBox.height/2))<(iRect.y+(iRect.height/2))) {\n this.movement[1] = false;\n }\n }\n }\n }\n\n }\n\n }", "private void placeAllShips()\n {\n \t\n \t//place 2 aircrafts\n \tfor(int n = 0; n < 2; n++){\n \trandomRow = rnd.nextInt(10); //get random integer from 0-9\n \trandomCol = rnd.nextInt(10);//get random integer from 0-9\n \trandomDir = rnd.nextInt(2);//get random integer from 0-1\n \twhile(!checkOverlap(randomRow,randomCol,AIRCRAFT_CARRIER_LENGTH)){ //check if random integers overlap existing ones\n \t\trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \t}\n \t//place aircraft if no overlap\n \tfor(int i = randomRow; i <randomRow + AIRCRAFT_CARRIER_LENGTH ; i++){\n \t\tfor(int j = randomCol; j < randomCol + AIRCRAFT_CARRIER_LENGTH; ++j){\n \t\t\tif(randomDir == DIRECTION_RIGHT)\n \t\t\t\tgrid[i][randomCol] = SHIP;\n \t\t\tif(randomDir == DIRECTION_DOWN)\n \t\t\t\tgrid[randomRow][j] = SHIP;\n \t\t\t}\n \t\t}\n \t}\n \t\n \t\n \t//place battleship\n \trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \trandomDir = rnd.nextInt(2);\n \twhile(!checkOverlap(randomRow,randomCol,BATTLESHIP_LENGTH)){\n \t\trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \t}\n \tfor(int i = randomRow; i <randomRow + BATTLESHIP_LENGTH ; i++){\n\t\t\tfor(int j = randomCol; j < randomCol + BATTLESHIP_LENGTH; j++){\n\t\t\t\tif(randomDir == DIRECTION_RIGHT)\n\t\t\t\t\tgrid[i][randomCol] = SHIP;\n\t\t\t\tif(randomDir == DIRECTION_DOWN)\n\t\t\t\t\tgrid[randomRow][j] = SHIP;\n\t\t\t}\n\t\t}\t\n \t//place destroyer\n \trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \trandomDir = rnd.nextInt(2);\n \twhile(!checkOverlap(randomRow,randomCol,DESTROYER_LENGTH)){\n \t\trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \t}\n \tfor(int i = randomRow; i < randomRow + DESTROYER_LENGTH ; i++){\n\t\t\tfor(int j = randomCol; j < randomCol + DESTROYER_LENGTH; j++){\n\t\t\t\tif(randomDir == DIRECTION_RIGHT)\n\t\t\t\t\tgrid[i][randomCol] = SHIP;\n\t\t\t\tif(randomDir == DIRECTION_DOWN)\n\t\t\t\t\tgrid[randomRow][j] = SHIP;\n\t\t\t}\n\t\t}\t\n \t//place submarine\n \trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \trandomDir = rnd.nextInt(2);\n \twhile(!checkOverlap(randomRow,randomCol,SUBMARINE_LENGTH)){\n \t\trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \t}\n \tfor(int i = randomRow; i < randomRow + SUBMARINE_LENGTH ; i++){\n\t\t\tfor(int j = randomCol; j < randomCol + SUBMARINE_LENGTH; j++){\n\t\t\t\tif(randomDir == DIRECTION_RIGHT)\n\t\t\t\t\tgrid[i][randomCol] = SHIP;\n\t\t\t\tif(randomDir == DIRECTION_DOWN)\n\t\t\t\t\tgrid[randomRow][j] = SHIP;\n\t\t\t}\n\t\t}\n \t//place patrol\n \trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \trandomDir = rnd.nextInt(2);\n \twhile(!checkOverlap(randomRow,randomCol,PATROL_BOAT_LENGTH)){\n \t\trandomRow = rnd.nextInt(10);\n \trandomCol = rnd.nextInt(10);\n \t}\n \tfor(int i = randomRow; i < randomRow + PATROL_BOAT_LENGTH ; i++){\n\t\t\tfor(int j = randomCol; j < randomCol + PATROL_BOAT_LENGTH; j++){\n\t\t\t\tif(randomDir == DIRECTION_RIGHT)\n\t\t\t\t\tgrid[i][randomCol] = SHIP;\n\t\t\t\tif(randomDir == DIRECTION_DOWN)\n\t\t\t\t\tgrid[randomRow][j] = SHIP;\n\t\t\t}\n\t\t}\n }", "private void makeGrid(JLabel moves, JLabel remainingBombs) {\r\n this.grid = new Tile[gridSize][gridSize]; \r\n for (int r = 0; r < gridSize; r++) {\r\n for (int c = 0; c < gridSize; c++) {\r\n if (solution[r][c] == 1) {\r\n grid[r][c] = new Tile(r, c, true);\r\n } else {\r\n grid[r][c] = new Tile(r, c, false);\r\n }\r\n final Tile t = grid[r][c];\r\n t.repaint();\r\n handleClicksAndMoves(t, moves, remainingBombs); \r\n }\r\n }\r\n }", "O_Game(JFrame inFrame) {\n \t\t// Initiate object variables\n \t\tgameWindow \t\t= inFrame;\n \t\trooms \t\t\t= new ArrayList<ArrayList<GameObjects>>();\n \t\tfigure \t\t\t= new Figure(0, 0, gameWindow);\n \t\tint element, line, column, dest; //for room generation, saves the current char (as int),the line its from, and the column its in\n \t\t\n \t\t\n \t\t// iterate over all objects and rooms within the level, all objects run within [0...800)x[0...600)\n \t\t// TODO: make that shit better!!, implement the current level\n \t\tfor (int i=0; i<3; i++) {\n \t\t\tArrayList<GameObjects> temp = new ArrayList<GameObjects>();\n \t\t\ttemp.add(figure);\n \t\t\t\n \t\t\ttry {\n \t\t\t\tInputStream roomStream = new FileInputStream(\"Level/raum\"+i+\".txt\");\n \t\t\t\tReader roomReader = new InputStreamReader (roomStream);\n \t\t\t\t\n \t\t\t\telement = 0;\n \t\t\t\tcolumn = 0; \n \t\t\t\tline = 0;\t\n \t\t\t\tdest = 0;\n \t\t\t\twhile ((element = roomReader.read()) != -1){ //Goes trough the whole raumX.txt, and spawns Objects at their Positions\n \t\t\t\t\t\n \t\t\t\t\tswitch (element) { \t//ASCII: W=87 D=68 E=69\n \t\t\t\t\tcase 87:\t\t\t//In order of probability\n \t\t\t\t\t\ttemp.add(new Wall(column-1, line-1, 0.5, 1)); \t//-1 because the top left corner seems to have\n \t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\t\t\t//the coordinates 1:1\n \t\t\t\t\tcase 69:\n \t\t\t\t\t\ttemp.add(new Enemy(column-1, line-1, 0.5, gameWindow));\n \t\t\t\t\t\tbreak;\n \t\t\t\t\tcase 68: //looks where the door is, then sets destination accordingly\n \t\t\t\t\t\t\n \t\t\t\t\t\tif (line-1 == 0) \t{dest = 1;} //Door is on the upper edge of the field, door should lead up\n \t\t\t\t\t\tif (line-1 == 14) \t{dest = 3;} //Door is on the bottom edge of the field, door should lead down\n \t\t\t\t\t\tif (column-1==24)\t{dest = 2;} //Door is on the right edge of the field, door should lead right\n \t\t\t\t\t\tif (column-1==0) \t{dest = 4;} //Door is on the left edge of the field, door should lead left\n \t\t\t\t\t\t\n \t\t\t\t\t\ttemp.add(new Door(column-1, line-1, 0.5, true, true, dest)); //creating door with correct destination\n \t\t\t\t\t\tbreak;\t\n \t\t\t\t\t}\n \t\t\t\t\tcolumn++; //sets column up for the next cycle of the switch-case\n \t\t\t\t\t\tif (column==25){ //since we use 0-24 chars per line, the 25th should trigger the next line\n \t\t\t\t\t\t\tcolumn = 0;\n \t\t\t\t\t\t\tline++;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n\n \t\t\t\t} catch (IOException e) {\n \t\t\t\tSystem.out.println(\"File not found, system exiting.\");\n \t\t\t\tSystem.exit(1);\n \t\t\t}\n \t\t\t\n \t\t\trooms.add(i, temp);\n \t\t}\n \n \t\t// Initialize Logic and Graphics\n \t\tgraphics \t= new GameDrawer(rooms, gameWindow);\n \t\tlogic \t\t= new Logic(rooms, figure, this);\n \t\t\n \t\t// set contentPane to JPanel returned by GameDrawer, set GameIO as keyboard manager\n \t\tgameWindow.setContentPane(graphics.init(logic));\n \t\tKeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager();\n manager.addKeyEventDispatcher(new Game_IO(logic));\n \t}", "public void preyMovement(WallBuilding wb, int x1, int x2, int y1, int y2){\r\n int b1 = wb.block.get(wb.block.stx(x1), wb.block.sty(y1));//one away\r\n int b2 = wb.block.get(wb.block.stx(x2), wb.block.sty(y2));//two away\r\n if(b1 == 0){//if there are no blocks, we can move normally\r\n if(wb.food.getObjectsAtLocation(x1, y1) == null){//if there is no food in that space\r\n wb.prey.setObjectLocation(this, wb.prey.stx(x1),wb.prey.sty(y1));\r\n }\r\n }else if(b1 == 1){//if there is one block\r\n if(b2 == 0){//if the space after is empty, we can move too!\r\n if(wb.food.getObjectsAtLocation(x2, y2) == null){//if there is no food in that space\r\n wb.block.set(wb.block.stx(x2), wb.block.sty(y2), b2+1);\r\n wb.block.set(wb.block.stx(x1), wb.block.sty(y1), b1-1);\r\n wb.prey.setObjectLocation(this, wb.prey.stx(x1),wb.prey.sty(y1));\r\n }\r\n }else if(b2 < 3){//there is space to move the block\r\n wb.block.set(wb.block.stx(x2), wb.block.sty(y2), b2+1);\r\n wb.block.set(wb.block.stx(x1), wb.block.sty(y1), b1-1);\r\n }\r\n }else{//if there are 2 or 3 blocks\r\n if(b2 < 3){//there is space to move the block\r\n if(wb.food.getObjectsAtLocation(x2, y2) == null){//if there is no food in that space\r\n wb.block.set(wb.block.stx(x2), wb.block.sty(y2), b2+1);\r\n wb.block.set(wb.block.stx(x1), wb.block.sty(y1), b1-1);\r\n }\r\n }\r\n }\r\n }", "@Override\n public void render(float delta) {\n if (!w.isFinished()){\n cam.update();\n batch.setProjectionMatrix(cam.combined);\n\n //Updates\n gl.updateAccelerometer();\n udpatePosMoveableElements(delta);\n updateCollisions();\n if (pathfindCounter == 0){\n updateGhostsPath();\n pathfindCounter = 20;\n }\n\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n batch.begin();\n for (GameElement gm : w){\n gm.updateBB(w.getPpux(), w.getPpuy());\n batch.draw(gm.getTexture(), gm.getPosition().x * w.getPpux(), gm.getPosition().y * w.getPpuy(), gm.getWidth() * w.getPpux(), gm.getHeight() * w.getPpuy());\n }\n /* Dessin du chemin du fantôme */\n for (GameElement gm : w.getBlinky()){\n gm.updateBB(w.getPpux(), w.getPpuy());\n batch.draw(gm.getTexture(), gm.getPosition().x * w.getPpux(), gm.getPosition().y * w.getPpuy(), gm.getWidth() * w.getPpux(), gm.getHeight() * w.getPpuy());\n }\n batch.end();\n fps.log();\n\n pathfindCounter--;\n } else {\n pg.setEndscreen(w.pacmanWon(), w.getPacman().getScore()); //Chargement de l'écran de fin\n }\n }", "public void deplacements () {\n\t\t//Efface de la fenetre le mineur\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getLabyrinthe()[this.laby.getMineur().getY()][this.laby.getMineur().getX()].imageCase(themeJeu));\n\t\t//Deplace et affiche le mineur suivant la touche pressee\n\t\tpartie.laby.deplacerMineur(Partie.touche);\n\t\tPartie.touche = ' ';\n\n\t\t//Operations effectuees si la case ou se trouve le mineur est une sortie\n\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Sortie) {\n\t\t\t//On verifie en premier lieu que tous les filons ont ete extraits\n\t\t\tboolean tousExtraits = true;\t\t\t\t\t\t\t\n\t\t\tfor (int i = 0 ; i < partie.laby.getHauteur() && tousExtraits == true ; i++) {\n\t\t\t\tfor (int j = 0 ; j < partie.laby.getLargeur() && tousExtraits == true ; j++) {\n\t\t\t\t\tif (partie.laby.getLabyrinthe()[i][j] instanceof Filon) {\n\t\t\t\t\t\ttousExtraits = ((Filon)partie.laby.getLabyrinthe()[i][j]).getExtrait();\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//Si c'est le cas alors la partie est terminee et le joueur peut recommencer ou quitter, sinon le joueur est averti qu'il n'a pas recupere tous les filons\n\t\t\tif (tousExtraits == true) {\n\t\t\t\tpartie.affichageLabyrinthe ();\n\t\t\t\tSystem.out.println(\"\\nFelicitations, vous avez trouvé la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire à present : [r]ecommencer ou [q]uitter ?\");\n\t\t\t\tString[] choixPossiblesFin = {\"Quitter\", \"Recommencer\"};\n\t\t\t\tint choixFin = JOptionPane.showOptionDialog(null, \"Felicitations, vous avez trouve la sortie, ainsi que tous les filons en \" + partie.laby.getNbCoups() + \" coups !\\n\\nQue voulez-vous faire a present :\", \"Fin de la partie\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, choixPossiblesFin, choixPossiblesFin[0]);\n\t\t\t\tif ( choixFin == 1) {\n\t\t\t\t\tPartie.touche = 'r';\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tPartie.touche = 'q';\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpartie.enTete.setText(\"Tous les filons n'ont pas ete extraits !\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t//Si la case ou se trouve le mineur est un filon qui n'est pas extrait, alors ce dernier est extrait.\n\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Filon && ((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getExtrait() == false) {\n\t\t\t\t((Filon)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setExtrait();\n\t\t\t\tSystem.out.println(\"\\nFilon extrait !\");\n\t\t\t}\n\t\t\t//Sinon si la case ou se trouve le mineur est une clef, alors on indique que la clef est ramassee, puis on cherche la porte et on l'efface de la fenetre, avant de rendre la case quelle occupe vide\n\t\t\telse {\n\t\t\t\tif (partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()] instanceof Clef && ((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).getRamassee() == false) {\n\t\t\t\t\t((Clef)partie.laby.getLabyrinthe()[partie.laby.getMineur().getY()][partie.laby.getMineur().getX()]).setRamassee();\n\t\t\t\t\tint[] coordsPorte = {-1,-1};\n\t\t\t\t\tfor (int i = 0 ; i < this.laby.getHauteur() && coordsPorte[1] == -1 ; i++) {\n\t\t\t\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() && coordsPorte[1] == -1 ; j++) {\n\t\t\t\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Porte) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tcoordsPorte[0] = j;\n\t\t\t\t\t\t\t\tcoordsPorte[1] = i;\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\tpartie.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].setEtat(true);\n\t\t\t\t\t((JLabel)grille.getComponents()[coordsPorte[1]*this.laby.getLargeur()+coordsPorte[0]]).setIcon(this.laby.getLabyrinthe()[coordsPorte[1]][coordsPorte[0]].imageCase(themeJeu));\n\t\t\t\t\tSystem.out.println(\"\\nClef ramassee !\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void moverPlataformas(){\n\t\tfor ( int x=0 ; x < 2; x++){\n\t\t\tquitarPoder(x);\n\t\t\tgame.moverPersonaje(x);\n\t\t}\n\t}", "public void doAi(){\n\t\t\tif(MathHelper.getRandom(0, Game.FRAMERATE * 5) == 5){\n\t\t\t\tsetScared(true);\n\t\t\t}\n\t\t\n\t\t//Update rectangle\n\t\tsetRectangle(getX(), getY(), getTexture().getWidth(), getTexture().getHeight());\n\t\t\n\t\trect = new Rectangle(getDestinationX(), getDestinationY(), 10, 10);\n\t\t\n\t\tif(rect.intersects(getRectangle())){\n\t\t\t\n\t\t\tif(StateManager.getState() == StateManager.STATE_BOSSTWO){\n\t\t\t\t\n\t\t\t\t\tsetDestinationX(StateGame.player.getX());\n\t\t\t\t\t\n\t\t\t\t\tsetDestinationY(StateGame.player.getY());\n\t\t\t\t\t\n\t\t\t\t\trect = new Rectangle(getDestinationX(), getDestinationY(), 10, 10);\n\t\t\t\t\treachedDestination = (true);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Check for collision with jelly\n\t\tint checkedJelly = (0);\n\t\twhile(checkedJelly < EntityJelly.JELLY.size() && EntityJelly.JELLY.get(checkedJelly) != null){\n\t\t\tif(EntityJelly.JELLY.get(checkedJelly).getDead() == false){\n\t\t\t\tif(getRectangle().intersects(EntityJelly.JELLY.get(checkedJelly).getRectangle())){\n\t\t\t\t\tsetHealth(getHealth() - 2);\n\t\t\t\t\tif(MathHelper.getRandom(1, 10) == 10){\n\t\t\t\t\tAnnouncer.addAnnouncement(\"-2\", 60, EntityJelly.JELLY.get(checkedJelly).getX(), EntityJelly.JELLY.get(checkedJelly).getY());\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tcheckedJelly++;\n\t\t}\n\t\t\n\t\t//If we're out of health, kill the entity\n\t\tif(getHealth() < 0){\n\t\t\tsetDead(true);\n\t\t}\n\t\t\n\t\tif(StateManager.getState() == StateManager.STATE_BOSSTWO){\n\t\t\tif(reachedDestination == true){\n\t\t\t\tif(getScared() == false){\n\t\t\t\tsetY(getY() + getSpeed());\n\t\t\t\t}else{\n\t\t\t\t\tsetY(getY() - getSpeed() * 3);\n\t\t\t\t\tsetX(getX() - getSpeed() * 3);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(getScared() == false){\n\t\t\t\tif(getX() < getDestinationX())\n\t\t\t\t\tsetX(getX() + getSpeed());\n\t\t\t\tif(getX() > getDestinationX())\n\t\t\t\t\tsetX(getX() - getSpeed());\n\t\t\t\tif(getY() < getDestinationY())\n\t\t\t\t\tsetY(getY() + getSpeed());\n\t\t\t\tif(getY() > getDestinationY())\n\t\t\t\t\tsetY(getY() - getSpeed());\n\t\t\t\t}else{\n\t\t\t\t\t\tsetY(getY() - getSpeed() * 3);\n\t\t\t\t\t\tsetX(getX() - getSpeed() * 3);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public MyWorld()\n { \n // Create a new world with 1600x1200 cells with a cell size of 1x1 pixels.\n super(1125, 1125, 1);\n //Adds the Cornucopia to the center of the Arena.\n int centerX = this.getWidth()/2;\n int centerY = this.getHeight()/2;\n this.addObject(new Cornucopia(), centerX, centerY);\n \n //The following adds the main character for the game.\n int CharacterX = 1125/2;\n int CharacterY = 770;\n this.addObject(new Character(), CharacterX, CharacterY);\n \n //The following code adds 6 \"Careers\" into the arena.\n int CareerX = 405;\n int CareerY = 328;\n this.addObject(new Careers(), CareerX, CareerY);\n this.addObject(new Careers(), CareerX+310, CareerY-5);\n this.addObject(new Careers(), CareerX+90, CareerY+430);\n this.addObject(new Careers(), CareerX+290, CareerY+405);\n this.addObject(new Careers(), CareerX+190, CareerY-60);\n \n //The following code add the remaining 17 Tributes to the arena.\n //Also, I cannot add like a normal person so there will only be twenty-three tributes. The Capitol goofed this year.\n int TribX = 660;\n int TribY = 288;\n this.addObject(new Tributes(), TribX, TribY);\n this.addObject(new Tributes(), TribX-200, TribY);\n this.addObject(new Tributes(), TribX-227, TribY+443);\n this.addObject(new Tributes(), TribX-280, TribY+400);\n this.addObject(new Tributes(), TribX-34, TribY+467);\n this.addObject(new Tributes(), TribX+86, TribY+397);\n this.addObject(new Tributes(), TribX-134, TribY-22);\n this.addObject(new Tributes(), TribX+103, TribY+82);\n this.addObject(new Tributes(), TribX+139, TribY+144);\n this.addObject(new Tributes(), TribX+150, TribY+210);\n this.addObject(new Tributes(), TribX+150, TribY+280);\n this.addObject(new Tributes(), TribX+120, TribY+342);\n this.addObject(new Tributes(), TribX-338, TribY+275);\n this.addObject(new Tributes(), TribX-319, TribY+343);\n this.addObject(new Tributes(), TribX-343, TribY+210);\n this.addObject(new Tributes(), TribX-330, TribY+150);\n this.addObject(new Tributes(), TribX-305, TribY+80);\n \n //The following code should add the forest onto the map.\n int ForX = this.getWidth()/2;\n int ForY = 900;\n this.addObject(new Forest(), ForX, ForY);\n \n //The following code should add the lake to the map.\n int LakX = 790;\n int LakY = 990;\n this.addObject(new Lake(), LakX, LakY);\n \n //The following should add the cave to the map.\n int CavX = 125;\n int CavY = 110;\n this.addObject(new Cave(), CavX, CavY);\n \n \n int actorCount = getObjects(Tributes.class).size();\n if(actorCount == 17) {\n int BeastX = 200;\n int BeastY = 200;\n this.addObject(new Beasts(), BeastX, BeastY);\n this.addObject(new Beasts(), BeastX+100, BeastY+100);\n }\n }", "public void setRemainingToScenery(){\n\t\tfor(int i=0;i<grid.length;i++){\n\t\t\tfor(int j=0;j<grid[0].length;j++){\n\t\t\t\tif(grid[i][j]==null)\n\t\t\t\t\tgrid[i][j]=new Scenery(i*grid[0].length+j);\n\t\t\t}\n\t\t}\n\t}", "public DungeonCrawlerGame(MainWindow mainWindow){\n \t\tthis.mainWindow = mainWindow;\n \t\tc = new Controller(this);\n \t\t\n \t\tworld = new World(currentLevel + currentRoom, this);\n \t\tp1 = new Player(world);\n \t\ted = c.getEntDestrList();\n \t\tem = c.getEntMovList();\n \t\teMO = c.getEntMO();\n \t\tthis.k1 = new MyKeyListener(); \n \t\t// mob1 = new NPC( 250, 26, this, p1);\n \t\tb = new Bullet(p1.getX(), p1.getY(), p1,this);\n \t\taddKeyListener(k1);\n \t\t\n \t\t\n \t\t\n \t\tsetPreferredSize(gameDim);\n \t\tsetBackground(Color.BLACK);\n \t\tsetFocusable(true);\n \t\trequestFocus(true);\n \t\t\n \t\t//Handles users key inputs\n \t/*\taddKeyListener(new KeyAdapter() {\n \t\t\tpublic void keyPressed (KeyEvent e){\n \t\t\t\t\n \t\t\t\tint c = e.getKeyCode();\n \t\t\t//\tSystem.out.println(c); //debugging string to see which number gets var c \n \t\t\t\tif(c==KeyEvent.VK_LEFT){\n \t\t\t\t\tif (!p1.checkForCollision())\n \t\t\t\t\t{\n \t\t\t\t\tp1.setXDirection(-1);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif(c== KeyEvent.VK_RIGHT){\n \t\t\t\t\tif (!p1.checkForCollision())\n \t\t\t\t\t{\n \t\t\t\t\tp1.setXDirection(1);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif(c==KeyEvent.VK_UP){\n \t\t\t\t\tif (!p1.checkForCollision())\n \t\t\t\t\t{\n \t\t\t\t\tp1.setYDirection(-1);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tif(c==KeyEvent.VK_DOWN){\n \t\t\t\t\tif (!p1.checkForCollision())\n \t\t\t\t\t{\n \t\t\t\t\tp1.setYDirection(1);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t\n \t\t\t}\n \t\t\tpublic void keyReleased (KeyEvent e){\n \t\t\t\tp1.setYDirection(0);\n \t\t\t\tp1.setXDirection(0);\n \t\t\t}\n \t\t\tpublic void keyTyped (KeyEvent e){\n \t\t\n \t\t\t}\n \t\t});\n \t\t*/\n \t}", "private void prepareBomb(int x, int y, GraphicsContext gc) {\n\t\t Bomb bomb = new Bomb(x, y);\n\t\t GameController.getCurrentMap().addEntity(bomb, x, y);\n\t\t Thread thread = new Thread(() -> {\n\t\t try {\n\t\t Thread.sleep(2000);\n\t\t Platform.runLater(new Runnable() {\n\n\t\t @Override\n\t\t public void run() {\n\t\t bomb.bomb();\n\t\t }\n\n\t\t });\n\t\t GameController.getCurrentMap().removeEntity(x, y);\n\t\t drawGameBoard(gc, index);\n\n\t\t // GameController.getCurrentMap().addEntity(bomb, x, y);\n\t\t } catch (InterruptedException e) {\n\t\t // TODO Auto-generated catch block\n\t\t e.printStackTrace();\n\t\t }\n\t\t });\n\t\t thread.start();\n\n\t}", "public void move(){\n if(isAlive) {\n //update each bound\n for (int i = 0; i < boundQueue.size(); i++) {\n boundQueue.get(i).move();\n }\n\n //check if new bound can be made\n if (boundQueue.peekLast().getX() + boundQueue.peekLast().width <= screenWidth) {\n boundQueue.add(new Bound(boundQueue.peekLast().getLastHeight()));\n }\n\n if (boundQueue.peek().getX() < -boundQueue.peek().width) {\n boundQueue.remove();\n }\n }\n }", "@Test\n public void testWithObstacle3() {\n Grid g = new Grid(4, 4, 0, 0, 0, 0);\n Obstacle o = new Obstacle(1, 1);\n g.setObject(o, 0, 3);\n g.setObject(o, 1, 1);\n g.setObject(o, 1, 2);\n g.setObject(o, 3, 0);\n g.setObject(o, 3, 1);\n AStarStrategy strategy = new AStarStrategy();\n\n Location from = new Location(0, 0);\n Location to = new Location(3, 3);\n Path path = strategy.generatePath(g, from, to);\n assertNotNull(path);\n assertEquals(6, path.getMoves().size());\n assertEquals(Move.DOWN, path.getMoves().get(0).direction);\n assertEquals(Move.DOWN, path.getMoves().get(1).direction);\n assertEquals(Move.RIGHT, path.getMoves().get(2).direction);\n assertEquals(Move.RIGHT, path.getMoves().get(3).direction);\n assertEquals(Move.RIGHT, path.getMoves().get(4).direction);\n assertEquals(Move.DOWN, path.getMoves().get(5).direction);\n }", "public GameBis() { \t\n\t\t\n\t\t// initialization of the size of the game\n\t\tthis.width = 12; // ATTENTION : dimensions of the map (can be changed)\n\t\tthis.height = 12;\n\t\tthis.widthRoad = width * 2 + 1;\n\t\tthis.heightRoad = height * 2 + 1;\n\t\tthis.pxWidth = (width * 50) + ((width + 1) * 20); // ATTENTION TAILLE DES IMAGES : 50*50px (constructions), 20px (roads) (can be changed)\n\t\tthis.pxHeight = (width * 50) + ((width + 1) * 20);\n this.onTheRoadAgain= new LinkedList<Inhabitant>();\n\t\t\n\t\t// initialization of the boards of roads and constructions\n\t\tboardRoad = new BoardRoad(widthRoad, heightRoad); \n\t\tboardBuilding = new BoardBuilding(width, height);\n\t\t\n\t\t/*\n\t\t// initialization of 50 inhabitants ready to moving in at the beginning of the game\n\t\tfor (int i=0 ; i<50 ; i++) {\n\t\t\tpopulation.add(new Inhabitant(\"Inhabitant\"+i));\n\t\t}\n\t\t*/\n //initialistation du timer\n\t\ttimer = new Timer (100, new TimerClass());\n\t\ttimer.start();\n\t\t\n\t\t// display of the game\n\t\twindow = new Window(pxWidth, pxHeight, boardBuilding, boardRoad);\n\t\t\n\t}" ]
[ "0.72846365", "0.6865106", "0.68318444", "0.664952", "0.6608757", "0.6590694", "0.65528643", "0.65248656", "0.6245267", "0.6220814", "0.6198683", "0.6105541", "0.60586244", "0.6038406", "0.59983826", "0.5979737", "0.59639645", "0.593264", "0.5927935", "0.59065646", "0.58913875", "0.5888633", "0.58805496", "0.5865934", "0.5861649", "0.5851077", "0.5844181", "0.5830414", "0.5828278", "0.580466", "0.58018875", "0.5796425", "0.5766107", "0.57577413", "0.5754278", "0.57512665", "0.57388157", "0.57365596", "0.5736043", "0.57192934", "0.57020897", "0.56959033", "0.56860584", "0.567693", "0.5667302", "0.5654804", "0.5652503", "0.5638844", "0.5632362", "0.56260604", "0.5620768", "0.56135744", "0.5603653", "0.5602263", "0.55960864", "0.5593774", "0.5591435", "0.55870974", "0.55861413", "0.5584315", "0.55829364", "0.5579957", "0.55760455", "0.55751854", "0.5570535", "0.5568796", "0.556426", "0.55636996", "0.5555047", "0.5553996", "0.5550786", "0.5534752", "0.55334705", "0.5533426", "0.552994", "0.55290043", "0.5528234", "0.55143553", "0.5512357", "0.5511085", "0.5506754", "0.54888284", "0.5474625", "0.5466282", "0.54644907", "0.5461161", "0.544923", "0.5438317", "0.5436317", "0.54352033", "0.5434686", "0.54319555", "0.5431089", "0.54299337", "0.5426102", "0.5421454", "0.54167885", "0.5413796", "0.5410607", "0.5404547" ]
0.5951151
17
fonction pour determiner si un joueur a gagner la course
public boolean aGagne(char grille[][],int x ){ boolean aGagne=false; if(grille.length==x) aGagne = true; return aGagne; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasTutorial();", "boolean hasHadithChapterIntro();", "private boolean setLecture(Course course) {\n if (course.getLectures().size() > 0) {\n for (DetailedSection lecture : course.getLectures()) {\n if (canBeAdded(lecture)) {\n course.setSelectedLecture(lecture);\n if(setDiscussion(course)) {\n return true;\n }\n }\n }\n return false;\n }\n return setDiscussion(course);\n }", "public boolean tieneRepresentacionGrafica();", "public boolean isForGenere();", "public boolean jeu() {\n int k;\n\n String compJoueur = \"\";\n String compOrdi = \"\";\n String reponse;\n\n boolean victoireJoueur = false;\n boolean victoireOrdi = false;\n String mystJoueur = challenger.nbMystere(); /**nb que le joueur doit trouver*/\n String mystOrdi = defenseur.nbMystere(); /**nb que l'ordinateur doit trouver*/\n String propOrdi = defenseur.proposition(); /**ordinateur genere un code aleatoire en premiere proposition*/\n log.info(\"Proposition ordinateur : \" + propOrdi); /**afficher proposition ordinateur*/\n String propJoueur = \"\";\n String goodResult = MethodesRepetitives.bonResultat();\n\n\n for (k = 1; !victoireJoueur && !victoireOrdi && k <= nbEssais; k++) { /**si ni le joueur ou l'ordinateur n'ont gagne et si le nombre d'essais n'est pas atteind, relancer*/\n\n compOrdi = MethodesRepetitives.compare(mystOrdi, propOrdi); /**lancer la methode de comparaison du niveau defenseur*/\n log.info(\"Reponse Ordinateur :\" + compOrdi); /**afficher la comparaison*/\n propJoueur = challenger.proposition(); /**demander une saisie au joueur selon le mode challenger*/\n compJoueur = MethodesRepetitives.compare(mystJoueur, propJoueur); /**comparer selon le mode challenger*/\n log.info(\"Reponse Joueur :\" + compJoueur); /**afficher la comparaison*/\n\n if (compOrdi.equals(goodResult)) { /**si l'ordinateur a gagne, changement de la valeur victoireOrdi*/\n victoireOrdi = true;\n }else if(compJoueur.equals(goodResult)) {/**si le joueur a gagne changement de la valeur victoireJoeur*/\n victoireJoueur = true;\n } else if (k < nbEssais) { /**sinon redemander un code a l'ordinateur selon les symboles de comparaison*/\n propOrdi = defenseur.ajuste(propOrdi, compOrdi);\n log.info(\"Proposition Ordinateur :\" + propOrdi);\n }\n }\n\n if (victoireOrdi || !victoireJoueur)/**si l'ordinateur ou le joueur perdent alors perdu sinon gagne*/\n victoireJoueur = false;\n else\n victoireJoueur = true;\n\n return victoireJoueur;\n\n\n }", "private boolean correcto() {\r\n return (casillas.size()>numCasillaCarcel); //&&tieneJuez\r\n }", "boolean hasHadithChapterNo();", "boolean hasStartingHadithNo();", "public boolean tienePapel()\n {\n //COMPLETE\n return this.hojas > 0;\n }", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "boolean hasLte();", "private boolean soyYo(Jugador jugador){\r\n return this.jugador==jugador;\r\n }", "boolean checkCourse (String course){\r\n // If the course either .net or c/c++ or java, then return true\r\n if (course.equalsIgnoreCase(\".net\") \r\n || course.equalsIgnoreCase(\"c/c++\") \r\n || course.equalsIgnoreCase(\"java\"))\r\n return true;\r\n // else if it's not neither, return false\r\n else return false;\r\n \r\n }", "private boolean estPlein() {\n return (nbAssoc == associations.length);\n }", "public boolean checkCourse(String nombre) {\n\t\tString[] campos = new String[] { \"nombre\" };\n\t\tString[] args = new String[] { nombre };\n\n\t\tCursor c = db.query(\"Cursos\", campos, \"nombre=?\", args, null, null,\n\t\t\t\tnull);\n\n\t\tif (c.getCount() <= 0) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "boolean contemProfessor(Professor p);", "private void verificaVencedor(){\n\n // Metodo para verificar o vencedor da partida\n\n if(numJogadas > 4) {\n\n String vencedor = tabuleiro.verificaVencedor();\n\n vencedor = (numJogadas == tabuleiro.TAM_TABULEIRO && vencedor == null) ? \"Deu Velha!\" : vencedor;\n\n if (vencedor != null) {\n\n mostraVencedor(vencedor);\n temVencedor = true;\n\n }\n\n }\n\n }", "public boolean isGraduatingYear(Education education) {\n return education.toString().equals(\"JC 2\") || education.toString().equals(\"Primary 6\")\n || education.toString().equals(\"Secondary 4\") || education.toString().equals(\"Secondary 5\");\n }", "public boolean estaLlena() {\n return (capacidad == top+1); // regresa verdadero si la capacidad es igual al tope (la cima +1)\r\n }", "boolean contemProfessor(String cpf);", "private boolean getNeedTitle()\r\n\t{\n\t\tif (new EditionSpeService().ficheProducteurNeedEngagement()==false)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Si on interdit d'afficher un des deux blocs : pas de titre\r\n\t\tif ((peMesContrats.canPrintContrat==ImpressionContrat.JAMAIS) || (peMesContrats.canPrintContratEngagement==ImpressionContrat.JAMAIS))\r\n\t\t{\t\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Sinon, il faut un titre\r\n\t\treturn true;\r\n\t}", "public String getGeslacht(){\n if(geslacht == \"man\" || geslacht == \"vrouw\"){\n return geslacht;\n }\n else {\n return \"onbekent\";\n }\n }", "public boolean passed(){\n if (totalMark() == -1) {\n throw new IllegalArgumentException(\"Not enough marks to evaluate student\"); \n } else if (totalMark() >= 50){\n return true;\n }else{\n return false;\n }\n }", "public boolean validateGeslacht(){\n String geslacht = getGeslacht();\n String toernooiSoort = getToernooiSoort();\n\n if(!geslacht.equals(\"F\") && toernooiSoort.equals(\"PinkRibbon\")){\n return false;\n }\n else if(geslacht.equals(\"poepieScheetje\") || toernooiSoort.equals(\"askjeBlap\")){\n return true;\n }\n else{return true;}\n }", "public boolean HayFlorEnLaEsquina(int avenida, int calle);", "boolean hasAccY();", "public boolean estDetecteCoteGauche()\r\n\t{\n\t\treturn !this.detecteurGauche.get();\r\n\t}", "@Override\r\n\tpublic boolean takeCourse(String studentId,Course course) {\n\t\tList<String> hasTaken=db.findStudentCourseHistory( studentId);\r\n\t\tList<String> prerequisite=getPrerequisite(course.getDescription());\r\n\t\treturn false;\r\n\t}", "public boolean isSelectedPredefinedCourse(){\n if(predefinedCourseName == null) return false;\n else return true;\n }", "public boolean isGoal();", "boolean isIntroduced();", "public int calcPassedCourseNum(){\n int score = 0;\n \n score += course1.isPassed() ? 1 : 0;\n score += course2.isPassed() ? 1 : 0;\n score += course3.isPassed() ? 1 : 0;\n \n return score;\n }", "public boolean HayPapelEnLaEsquina(int avenida, int calle);", "public boolean addCourse(String user, String course){\n String[] tokens = usersRepository.getclassString(user).split(\" \");\r\n String[] courseids = new String[tokens.length];\r\n String courseid = classesRepository.getClassCourseid(course);\r\n for(int i =0; i < tokens.length; i++){\r\n courseids[i] = classesRepository.getClassCourseid(tokens[i]);\r\n }\r\n for(int f =0; f < tokens.length; f++) {\r\n if(courseids[f] == null){\r\n continue;\r\n }\r\n if(courseids[f].equals(courseid)){\r\n return false;\r\n }\r\n }\r\n //check for course space\r\n if(!classesRepository.checkCourseSpace(course)){\r\n return false;\r\n }\r\n\r\n //check here for prereqs\r\n //get student records\r\n String studentrecord = usersRepository.findUserRecords(user);\r\n String studentgrade = usersRepository.findUserGrades(user);\r\n String[] tokenrecords;\r\n String[] tokengrades;\r\n if(studentrecord==null){\r\n tokenrecords = new String[0];\r\n tokengrades = new String[0];\r\n }else{\r\n tokenrecords = studentrecord.split(\" \");\r\n tokengrades = studentgrade.split(\" \");\r\n }\r\n //get course prereq\r\n String[] prereqs = classesRepository.getCoursePrereqs(courseid);\r\n //compare all token records with course prereqs, must be in records without d or f\r\n boolean meetsreq1 = true, meetsreq2 = true;\r\n if(prereqs[0] != null){\r\n meetsreq1=false;\r\n }\r\n if(prereqs[1] != null){\r\n meetsreq2=false;\r\n }\r\n for(int s = 0; s < tokenrecords.length; s++){\r\n if(!tokengrades[s].equals(\"D\") && !tokengrades[s].equals(\"F\")){\r\n if(prereqs[0] != null){\r\n if(prereqs[0].equals(tokenrecords[s])){\r\n meetsreq1 = true;\r\n }\r\n }\r\n if(prereqs[1] != null){\r\n if(prereqs[1].equals(tokenrecords[s])){\r\n meetsreq2 = true;\r\n }\r\n }\r\n }\r\n\r\n }\r\n if(meetsreq1 && meetsreq2){\r\n usersRepository.addCourse(user, course);\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean isGoal() {\n return (man == 0);\n }", "boolean hasInstructor(){\n\t\treturn instructor == null ? false : true;\n\t}", "private boolean estPrise(Deplacement unDeplacement, Couleur couleurJoueur) {\n\t\tPosition[] positions = unDeplacement.toArray(new Position[0]); \n\t\tif(positions.length > 2) {\n\t\t\treturn true;\n\t\t}\n\t\tCollection<Position> c = Position.diagonale(positions[0], positions[1]); \n\t\tif (c.size() >= 1) {\n\t\t\tPion aDeplacer = obtenirPion(positions[0]);\n\t\t\tif(!(aDeplacer instanceof Dame)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\tfor (Position pos: c) {\n\t\t\t\t\tif(obtenirPion(pos) != null) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "boolean getCorrect();", "boolean hasDrugLumn();", "boolean hasDrugLumn();", "boolean isGameComplete();", "boolean estVide();", "@Override\n\tpublic boolean checkCourse(String code) {\n\t\treturn false;\n\t}", "boolean isOnlineEvaluation();", "boolean hasCorrect();", "private boolean learning()\r\n\t{\r\n\t\tint temp = (int) (Math.random() * 100);\t\t//generate a random int between 0-100\r\n\t\tif(temp<=intelligence)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public boolean erTom(){\n return hode.neste == hale;\n }", "boolean hasMinExperience();", "protected abstract boolean gradeable();", "public char Grading(RegCourse a){\n\t\t//CODE HERE\n\t\t\t\t\tif(a.getAccumScore()>=0.8&&a.getAccumScore()<=1){\n\t\t\t\t\t\t\n\t\t\t\t\t\ta.setGrade(4.00);\n\t\t\t\t\t\treturn 'A';\n\t\t\t\t\t}else if(a.getAccumScore()>=0.7&&a.getAccumScore()<0.8){\n\t\t\t\t\t\t\n\t\t\t\t\t\ta.setGrade(3.00);\n\t\t\t\t\t\treturn 'B';\n\t\t\t\t\t}else if(a.getAccumScore()>=0.6&&a.getAccumScore()<0.7){\n\t\t\t\t\t\t\n\t\t\t\t\t\ta.setGrade(2.00);\n\t\t\t\t\t\treturn 'C';\n\t\t\t\t\t}else if(a.getAccumScore()>=0.5&&a.getAccumScore()<0.6){\n\t\t\t\t\t\t\n\t\t\t\t\t\ta.setGrade(1.00);\n\t\t\t\t\t\treturn 'D';\n\t\t\t\t\t}else {\n\t\t\t\t\t\t\n\t\t\t\t\t\ta.setGrade(0.00);\n\t\t\t\t\t\treturn 'F';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\n\t\t\n\t}", "boolean moduleHasLesson(Module module, Lesson lesson);", "private boolean checkPre(int id) {\r\n boolean x = true;\r\n try {\r\n String query = \"SELECT * FROM preregs WHERE courseid=?\";\r\n PreparedStatement pstmt = conn.prepareStatement(query);\r\n pstmt.setInt(1, id);\r\n ResultSet rs = pstmt.executeQuery();\r\n if (rs != null) {\r\n while (rs.next()) {\r\n if (!checkCompletedCourse(rs.getInt(\"preregid\"))) {\r\n x = false;\r\n break;\r\n }\r\n }\r\n }\r\n pstmt.close();\r\n rs.close();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return x;\r\n }", "boolean hasHasInjury();", "public boolean muerteInesperada() {\n r = new Random();\r\n return Float.compare(r.nextFloat(), probMuerte) <= 0;\r\n }", "@java.lang.Override\n public boolean getIsChulaStudent() {\n return isChulaStudent_;\n }", "private boolean checkCompletedCourse(int id) {\r\n boolean x = false;\r\n for (Registration registration : completeCourses) {\r\n if (id == registration.getCourseId()) {\r\n x = true;\r\n break;\r\n }\r\n x = false;\r\n }\r\n return x;\r\n }", "boolean isEstConditionne();", "public boolean Victoria(){\n boolean respuesta=false;\n if(!(this.palabra.contains(\"-\"))&& this.oportunidades>0 && !(this.palabra.isEmpty())){\n this.heGanado=true;\n respuesta=true;\n }\n return respuesta;\n }", "private void tutorialCheck() {\n SharedPreferences sp = getApplicationContext().getSharedPreferences(getApplicationContext().getString(R.string.app_name), MODE_PRIVATE);\n if (sp.contains(\"Tutorial_Complete\")) {\n if (sp.getBoolean(\"Tutorial_Complete\", false)) {\n return;\n }\n }\n Intent intent = new Intent(this, TutorialPanel.class);\n startActivity(intent);\n }", "public boolean gano() {\r\n\t\tboolean gano = false;\r\n\t\tint contador = 0;\r\n\t\tint c = (casillas.length * casillas[0].length) - cantidadMinas;\r\n\t\tfor(int i = 0; i< casillas.length && !gano; i++) {\r\n\t\t\tfor(int j = 0; j<casillas[i].length && !gano; j++) {\r\n\t\t\t\tif(casillas[i][j].esMina() == false) {\r\n\t\t\t\tif(casillas[i][j].darSeleccionada() == true) {// si no es mina\r\n\t\t\t\t\tcontador++;\r\n\t\t\t\t\tif(contador == c) {// no ha sido seleccionada\r\n\t\t\t\t\t\tgano = true;\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}\r\n\t\t}\r\n\t\treturn gano;\r\n\t}", "public void verificar_que_se_halla_creado() {\n\t\t\n\t}", "public boolean Vacia (){\n return cima==-1;\n \n }", "boolean hasMission();", "public boolean isTheOnlyGold() {\n return (numM == 1) && (numG == 1) ;\n }", "public void enroll(String courseName, World world) {\n\t\tCourse course = world.dbCourses().get(courseName);\n\t\tif (course == null) {\n\t\t\tSystem.out.println(\"No course named: \" + courseName);\n\t\t\treturn;\n\t\t}\n\n\t\tList<Course> unfinishedCourses = super.getUnfinishedCourses();\n\t\tList<Course> finishedCourses = super.getFinishedCourses();\n\t\tif (unfinishedCourses.contains(course)) {\n\t\t\tSystem.out.println(\"You are already enrolled in \" + course + \".\");\n\t\t\treturn;\n\t\t}\n\t\tif (finishedCourses.contains(course)) {\n\t\t\tSystem.out.println(\"You have already completed \" + course + \"!\");\n\t\t\treturn;\n\t\t}\n\n\t\tRoom room = super.getRoom();\n\t\tList<Creature> roomCreatures = room.getCreatures();\n\t\tCreature creature;\n\t\tfor (int i = 0; i < roomCreatures.size(); i++) {\n \tcreature = roomCreatures.get(i);\n \tif (creature.isTeacher()) {\n \t\tTeacher teacher = (Teacher) creature;\n \t\tif (teacher.getCourse().equals(course)) { // Check that teacher for course is in room\n \t\t\tunfinishedCourses.add(course);\n \t\t\tSystem.out.println(\"You have enrolled in '\" + course + \"'.\");\n \t\t\treturn;\n \t\t}\n \t}\n\t\t}\n\t\tSystem.out.println(\"No teacher who teaches '\" + course + \"' in the room.\");\n\t}", "public boolean PilaLlena()\n {\n if(this.tope == this.max)\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public boolean isInPlanOfStudy(Course representedCourse) {\n\t\treturn false;\n\t}", "@Override\n public boolean isStudent() {\n return false;\n }", "@Override\n\tpublic EnrollmentStatus isSatisfiedBy(Section section) {\n\t\tfor(Course c : palnOfStudy.getCourses()){\n\t\t\tSystem.out.println(\"section:\"+section.getRepresentedCourse().getCourseNo());\n\t\t\tSystem.out.println(\"courseNo:\"+c.getCourseNo());\n\t\t\tif(section.getRepresentedCourse().getCourseNo().equals(c.getCourseNo())){\n\t\t\t\treturn EnrollmentStatus.success;\n\t\t\t}\n\t\t}\n\t\treturn EnrollmentStatus.notInPlan;\n\t}", "boolean hasResidentYn();", "public boolean estPlein() {\n return this.tapis.size() == capacite;\n }", "boolean estaAcabado();", "public boolean isGoal() \n {\n return this.manhattan() == 0;\n // return this.manhattan() == 0 || this.checkTwinSolution();\n }", "boolean hasMaxExperience();", "@java.lang.Override\n public boolean getIsChulaStudent() {\n return isChulaStudent_;\n }", "public boolean kraj() {\r\n\t\treturn (broj_slobodnih == 0 && !mozeLiSeSpojiti());\r\n\t}", "private void afficheSuiv(){\n\t\ttry{ // Essayer ceci\n\t\t\tif(numCourant <= rep.taille()){\n\t\t\t\tnumCourant ++;\n\t\t\t\tPersonne e = rep.recherchePersonne(numCourant); // Rechercher la personne en fonction du numCourant\n\t\t\t\tafficherPersonne(e);\n\t\t\t}else{\n\t\t\t\tafficherMessageErreur();\n\t\t\t}\n\t\t}catch(Exception e){ // Permet de voir s'il y a cette exception\n\t\t\tafficherMessageErreur();\n\t\t\tnumCourant --;\n\t\t}\n\t}", "boolean hasEndingHadithNo();", "public FinishedCourse(String name)\n\t{\n\t\tsuper (name);\n\t\t_grade = Grades.O;\n\t\t_passed = false;\n\t\t\n\t\t\n\t}", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "private boolean revisar(DigrafoAristaPonderada G) {\n\n // edge-weighted digraph is cyclic\n if (tieneCiclo()) {\n // verify ciclo\n AristaDirigida primero = null, ultimo = null;\n for (AristaDirigida a : ciclo()) {\n if (primero == null) primero = a;\n if (ultimo != null) {\n if (ultimo.hacia() != a.desde()) {\n System.err.printf(\n \"aristas de ciclo %s and %s no incidentes\\n\",\n ultimo, a);\n return false;\n }\n }\n ultimo = a;\n }\n\n if (ultimo.hacia() != primero.desde()) {\n System.err.printf(\n \"aristas de ciclo %s and %s no incidentes\\n\", \n ultimo, primero);\n return false;\n }\n }\n\n\n return true;\n }", "public void checkGame() {\n\n\t}", "@Override\n\tpublic boolean estPleine() {\n\t\treturn getNbClients()==capacite;\n\t}", "public boolean kiemTraPSToiGian(){\n if (timUSCLN(tuSo,mauSo) == 1){\n return true;\n }else {\n return false;\n }\n }", "public boolean studentePresente(int matricola) {\n\t\tboolean trovato=false;\n\t\tString sql = \"SELECT matricola FROM studente \" + \n\t\t\t\t\t \"WHERE studente.matricola=?\";\n\t\ttry {\n\t\t\tConnection conn = ConnectDB.getConnection();\n\t\t\tPreparedStatement st = conn.prepareStatement(sql);\n\t\t\tst.setInt(1, matricola);\n\t\t\tResultSet rs = st.executeQuery();\n\t\t\tif(rs.next()) {\n\t\t\t\ttrovato=true;\n\t\t\t}\n\t\t}\n\t\tcatch(SQLException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\treturn trovato;\n\t\t\n\t}", "public boolean garretFight(){\n\t\tint XG = 0;\n\t\tint YG = 0;\n\t\tint Xyou = 1;\n\t\tint Yyou = 1;\n\t\tfor(int i = 0 ; i < this.Garret.length;i++){\n\t\t\tfor(int p = 0; p < this.Garret.length;p++){\n\t\t\t\tif(this.Garret[i][p] == 1){\n\t\t\t\t\tYG = i;\n\t\t\t\t\tXG = p;\n\t\t\t\t}\n\t\t\t\tif(this.position[i][p] == 1){\n\t\t\t\t\tYyou = i;\n\t\t\t\t\tXyou = p;\n\t\t\t\t}\n\t\t\t}\n\t\t}//end of outter for\n\t\tif(YG==Yyou && XG==Xyou){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "boolean hasGcj02();", "public boolean estSurLaCase(ICase c) ;", "public int orientaceGrafu(){\n\t\tint poc = 0;\n\t\tfor(int i = 0 ; i < hrana.length ; i++){\n\t\t\tif(!oriNeboNeoriHrana(hrana[i].zacatek,hrana[i].konec))\n\t\t\t poc++;\n\t\t}\n\t\tif(poc == 0 )\n\t\t\treturn 0;\n\t\t\n\t\tif(poc == pocetHr)\n\t\t\treturn 1;\n\t\t\n\t\t\n\t\t\treturn 2;\n\t\t \n\t\t\n\t\t\t\t\t\n\t}", "public boolean pertanyAlGrup( Casella casella )\n\t{\n\t\treturn grup.contains( casella );\n\t}", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "boolean hasCurMP();", "public synchronized boolean checkAvailabilityOfCourse(Character courseName){\n\t\treturn getCourseSeatsCount(courseName) < 60;\n\t}", "boolean hasFairplay();", "private boolean verifica(){\n if(et_nomeAddFamiliar.getText().length()>3 && spinnerParentesco.getSelectedItemPosition()>0){\n return true;\n }\n else return false;\n\n }", "public static void main(String[] args) {\r\n\t\tCourse la = new Course(\"CS 2110\", 3.0, 4.0);\r\n\t\tCourse laa = new Course(3.0);\r\n\t\tlaa.setName(\"CS 2110\");\r\n\t\tla.gpaConverter();\r\n\t\tSystem.out.println(la);\r\n\t\tSystem.out.println(la.equals(laa));\r\n\t}" ]
[ "0.65740925", "0.63917583", "0.63066", "0.618307", "0.6160966", "0.61389464", "0.60092336", "0.6008488", "0.5913496", "0.590874", "0.58864194", "0.5878571", "0.587415", "0.5869114", "0.5850177", "0.5835068", "0.5755093", "0.5741991", "0.574157", "0.570657", "0.57051575", "0.5683558", "0.5675004", "0.5662161", "0.56548387", "0.56513846", "0.56467426", "0.5643925", "0.5636737", "0.56337756", "0.56214535", "0.5618262", "0.5615228", "0.56132954", "0.56126726", "0.5604383", "0.5589713", "0.5578382", "0.55780935", "0.55579805", "0.55579805", "0.55551755", "0.5550781", "0.5541506", "0.5532543", "0.55237144", "0.55201095", "0.5516839", "0.55086607", "0.55044174", "0.55011904", "0.5495211", "0.54888844", "0.545863", "0.54460865", "0.5442364", "0.5440979", "0.5431291", "0.5426834", "0.54260236", "0.542103", "0.5413015", "0.54121906", "0.5411866", "0.5407087", "0.5406523", "0.5406515", "0.5405552", "0.5402213", "0.5390081", "0.53788275", "0.5374558", "0.5373571", "0.53722644", "0.53713155", "0.5367236", "0.5357177", "0.5355534", "0.53528714", "0.5350206", "0.5348613", "0.534471", "0.5344614", "0.53437304", "0.53326887", "0.5329707", "0.5327687", "0.53230476", "0.5322919", "0.5320082", "0.53161377", "0.53133506", "0.53133506", "0.53133506", "0.53133506", "0.53133506", "0.53133506", "0.530835", "0.53074044", "0.5306648", "0.53040344" ]
0.0
-1
SELECT DISTINCT u FROM users u RIGHT JOIN documents d ON u.id = d.user_id
@Query(value="SELECT * FROM users WHERE (status = :status) AND (id IN (SELECT user_id FROM documents))", nativeQuery = true) Page<User> findAuthors(@Param("status") int status, Pageable pageable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic List<DocumentDTO> getDocumentListByTeacherId(Long userId) {\n\t\t\treturn documentDAO.getDocumentListByTeacherId(userId);\r\n\t\t}", "public void getUsers() {\n CollectionReference ref = FirebaseFirestore.getInstance().collection(\"users\");\n listOfUsers = new ArrayList<>();\n\n ref.get().addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n if(task.isSuccessful()) {\n for(DocumentSnapshot doc: task.getResult()) {\n listOfUsers.add(doc.toObject(User.class).getUserID());\n }\n listOfUsers.remove(user.getUserID());\n }\n }\n });\n }", "public void getOneUserPost(String un, UserPosts up) {\n\n // see if that user have made their posts private or not\n boolean isPrivate = false;\n\n // accessing registeredUser table (collection)\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n\n FindIterable<Document> docOne = collRU.find(Filters.eq(\"username\", un)); // find document by filters\n MongoCursor<Document> cursor1 = docOne.iterator(); // set up cursor to iterate rows of documents\n try {\n while (cursor1.hasNext()) {\n isPrivate = cursor1.next().getBoolean(\"hideposts\");\n }\n } finally {\n cursor1.close();\n }\n\n if (!isPrivate) {\n // accessing posts table\n MongoCollection<Document> postColl = db.getCollection(\"postsRecord\");\n\n //ArrayList<Document> userPost = new ArrayList<>(); // all posts from this user will be in here\n if (!up.postDocs.isEmpty())\n up.postDocs.clear(); // clearing out the arrayList first\n\n FindIterable<Document> postDocs = postColl\n .find(Filters.eq(\"username\", un)) // get all documents from this user\n .sort(Sorts.descending(\"date\")); // sorts by newest post first\n\n MongoCursor<Document> cursor = postDocs.iterator(); // set up cursor to iterate rows of documents\n try {\n while (cursor.hasNext()) {\n //System.out.println(cursor.next().toJson()); // print username's document in String\n up.postDocs.add(cursor.next()); // add every post Documents into allPosts\n }\n } finally {\n cursor.close();\n }\n\n // print\n for (Document post : up.postDocs) {\n System.out.println(post.toJson());\n System.out.println(\"^^^ post date: \" + new Date(post.getLong(\"date\")).toString() + \"\\n\");\n }\n }\n else {\n System.out.println(un + \" has made their posts private\");\n }\n }", "List<IDiscussionUser> getUsersByIds(Collection<String> userIds);", "@Transactional\n\t@Override\n\tpublic List<Documents> findDocuments(int userId) {\n\t\treturn documentsDao.findDocuments(userId);\n\t}", "public Collection<UserDoc> findByUserName(String username);", "@Override\n public List<Long> findContactsWithoutUser() {\n\tList<Long> ids = from(USER).where(USER.contact.isNotNull()).list(USER.contact.id);\n\n\t// id of contacts that hasn't user\n\tList<Long> result = from(CONTACT).where(CONTACT.id.notIn(ids)).list(CONTACT.id);\n\n\treturn result;\n }", "public List<UserJoins> listUserJoinsbyUid(int uid);", "public List<List<String>> getUserSubjects(int userId) {\r\n \t\r\n \tCollection<Integer> userLikesSource = jungCompleteGraph.getNeighbors(userId);\r\n \tuserLikesSource.containsAll(getSourceNodes());\r\n \tList<List<String>> userSubjects = new ArrayList<List<String>>();\r\n \t\r\n \tfor (Integer ver: userLikesSource) {\r\n \t\tList<String> tmp = new ArrayList<>();\r\n \t\t\r\n \t\tfor (String edge :jungCompleteGraph.getOutEdges(ver)){\r\n \t\t\tif(edge.contains(\"http://purl.org/dc/terms/subject\")){\r\n \t\t\t\tList<String> tokens = Arrays.asList(getURI(jungCompleteGraph.getDest(edge)).replace(\"http://dbpedia.org/resource/Category:\", \"\").split(\"_\")); \r\n \t\t\t\ttmp.addAll(tokens);\r\n \t\t\t}\r\n \t\t}\r\n \t\tuserSubjects.add(tmp);\r\n \t}\r\n \treturn userSubjects;\r\n \t\r\n }", "public List<MTSDocumentVO> getBookmarks(String userId) {\n\t\tList<Object> vals = Arrays.asList(userId);\n\t\tString schema = getCustomSchema();\n\t\tStringBuilder sql = new StringBuilder(500);\n\t\tsql.append(DBUtil.SELECT_FROM_STAR).append(schema).append(\"mts_user_info a \");\n\t\tsql.append(DBUtil.INNER_JOIN).append(schema).append(\"mts_document d \");\n\t\tsql.append(\"on a.value_txt = d.unique_cd \");\n\t\tsql.append(\"inner join sb_action b \");\n\t\tsql.append(\"on d.action_group_id = b.action_group_id and pending_sync_flg = 0 \");\n\t\tsql.append(\"inner join document doc on b.action_id = doc.action_id \");\n\t\tsql.append(\"inner join \").append(schema).append(\"mts_issue i \");\n\t\tsql.append(\"on d.issue_id = i.issue_id \");\n\t\tsql.append(\"inner join \").append(schema).append(\"mts_user u \");\n\t\tsql.append(\"on d.author_id = u.user_id \");\n\t\tsql.append(\"where a.user_id = ? \");\n\t\tsql.append(\"order by b.action_nm \");\n\t\tlog.debug(sql.length() + \"|\" + sql + \"|\" + vals);\n\n\t\tDBProcessor db = new DBProcessor(getDBConnection(), schema);\n\t\treturn db.executeSelect(sql.toString(), vals, new MTSDocumentVO());\n\t}", "public static void removeUserDocuments(JetspeedUser user) {\n getService().removeUserDocuments(user);\n }", "@Query(value = \"select subscribers from User u where u.id =:userId\")\n List<User> findSubscribers(@Param(\"userId\") long userId);", "public static Set<Doc> not(Set<Doc> set1,Set<Doc> corpus) {\r\n \t\tif(set1 == null)\r\n \t\t\tset1 = new TreeSet<Doc>();\r\n \t\tTreeSet<Doc> result = new TreeSet<Doc>(corpus);\r\n \t\tresult.removeAll(set1);\r\n \t\treturn result;\r\n \t}", "Set<Document> findDocuments(Map<String, String> fields);", "List<Joined> findByUserId(String userId);", "Document getAllAccounts(String username);", "@Override\n\tpublic Set<ReimbJoint> getReimbursementAllUsers() {\n\t\tSet<ReimbJoint> eList = new TreeSet<>();\n\t\tString sql = \"select u.username ,reimbid,reimbamount ,reimbsubmitted ,reimbrecipturl,reimbresolved ,reimbdescription,typename,statusname from reimbursement r inner join users u on r.reimbauthor =u.userid inner join reimbursement_type rt on rt.typeid =r.typeid inner join reimbursement_status rs on rs.statusid =r.statusid order by username ;\";// only users\n\t\ttry (Connection con = ConnectionUtil.getConnection(); PreparedStatement ps = con.prepareStatement(sql);) {\n\t\t \n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tReimbJoint rjoint = new ReimbJoint();\n\t\t\t\t\n\t\t\t\trjoint.setReimbId(rs.getInt(\"reimbid\"));\n\t\t\t\trjoint.setUsername(rs.getString(\"username\"));\n\t\t\t\trjoint.setReimbAmount(rs.getBigDecimal(\"reimbamount\"));\n\t\t\t\trjoint.setReimbSubmitted(rs.getTimestamp(\"reimbsubmitted\"));\n\t\t\t\tString filePath =rs.getString(\"reimbrecipturl\");\n\t\t\t filePath = filePath.substring(filePath.lastIndexOf(\"/\") + 1);\n\t\t\t System.out.println(filePath);\n\t\t\t\trjoint.setReimbrecipturl(filePath);\n\t\t\t\tSystem.out.println(\"fvfdvbfd\"+rjoint.getReimbSubmitted());\n\t\t\t\trjoint.setReimbResolved(rs.getTimestamp(\"reimbresolved\"));\n\t\t\t\trjoint.setReimbDescription(rs.getString(\"reimbdescription\"));\n\t\t\t\trjoint.setTypeName(rs.getString(\"typename\"));\n\t\t\t\trjoint.setStatusName(rs.getString(\"statusname\"));\n\t\t\t\n\t\t\t\teList.add(rjoint);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"gbgfb\");\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn eList;\n\t\t\n\t\t\n\t}", "public Collection<Publication> foreignReferencesWithoutAuthor(final Author author) {\n return referenceToThis.values().stream()\n .filter(x->!x.hasAuthor(author))\n .collect(Collectors.toList());\n }", "@RequestMapping(path = \"documentosUser\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<Documento> listarDocumentosDeUsuario(@RequestParam(value=\"id\") int idUser) {\n\t\ttry {\n\t\t\treturn documentoServicio.listarDocumentosDeUser(idUser);\n\t\t} catch (Exception ex) {\n\t\t\tlog.error(\"=====\\nError Ctrl:(listarDocumentosDeUsuario):\\n\" + ex.getMessage()+\"\\n\");\n\t\t\treturn null;\n\t\t}\n\t}", "@Query(value = \"select subscriptions from User u where u.id =:userId\")\n List<User> findUserSubscriptions(@Param(\"userId\") long userId);", "List<DocPatRelation> selectRelationPatInfoByDocId(String docId);", "public List<DocumentPDF> getDocumentsForEnvelopeId(String envelopeId, User user);", "private DocumentReference userRef(String userId) {\n return firestore.collection(collectionPath).document(userId);\n }", "protected static Document userToBson(User u) {\n Document d = new Document();\n throw new NotImplementedException();\n }", "public static Task<QuerySnapshot> getFriendEmails(String userId) {\n return FirebaseFirestore.getInstance()\n .collection(Const.USERS_COLLECTION)\n .document(userId)\n .collection(Const.USER_FRIENDS_COLLECTION)\n .get();\n }", "public List<User> getDisabledUsers();", "public Collection<UserDoc> findByMenuId(int menuId);", "Collection<Document> getDocuments();", "public ArrayList<Document> getDocumentList(){\n\t\tSession session = HibernateUtils.getSessionFactory().openSession();\n\t\tArrayList<Document> list = new ArrayList<Document>();\n\t\ttry{\n\t\t\tCriteria cr = session.createCriteria(TblDocument.class);\n\t\t\tcr.setResultTransformer(CriteriaSpecification.DISTINCT_ROOT_ENTITY);\n\t\t\tList<TblDocument> documents = cr.list();\n\t\t\tif (documents.size() > 0){\n\t\t\t\tfor (Iterator<TblDocument> iterator = documents.iterator(); iterator.hasNext();){\n\t\t\t\t\tTblDocument tbldocument = iterator.next();\n\t\t\t\t\tDocument document = new Document();\n\t\t\t\t\tdocument.convertFromTable(tbldocument);\n\t\t\t\t\tlist.add(document);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(HibernateException e){\n\t\t\tSystem.err.println(\"ERROR IN LIST!!!!!!\");\n\t\t\te.printStackTrace();\n\t\t\tthrow new ExceptionInInitializerError(e);\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t\treturn list;\n\t}", "public static ArrayList<User> findAllUsers() {\n\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findAllUsers = \"SELECT * FROM public.member where type = 0\";\n PreparedStatement stmt = DBConnection.prepare(findAllUsers);\n ArrayList<User> userList = new ArrayList<User>();\n\n try {\n ResultSet rs = stmt.executeQuery();\n\n while(rs.next()) {\n User user = load(rs);\n\n targetUser = userIdentityMap.get(user.getId());\n if (targetUser == null) {\n userList.add(user);\n userIdentityMap.put(user.getId(), user);\n } else {\n userList.add(targetUser);\n }\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n return userList;\n }", "List<User> fetchAllUSers();", "public String getAllSubjects (){\n MongoCursor<Document> cursor = subject.find().iterator();\n boolean hasOne = false;\n String json = \"{\\\"result\\\":[\";\n while (cursor.hasNext()){\n Document c = (Document)cursor.next();\n json +=c.toJson()+\",\";\n hasOne = true;\n }\n if (hasOne) json = json.substring(0,json.length()-1);\n json+=\"]}\";\n return json;\n}", "public Iterable<UserWithProfile> getUserUnmatched(Long userId)\n\t{\n\t\tUser user = userRepository.findUserById(userId);\n\t\tArrayList<User> liked = new ArrayList<User>(user.getLiked());\n\t\tArrayList<User> disliked = new ArrayList<User>(user.getDisliked());\n\t\t\n\t\t//this is the fix for heroku...\n\t\tif (liked.size() == 0)\n\t\t{\n\t\t\tliked.add(userService.getCurrentUser());\n\t\t}\n\t\tif (disliked.size() == 0)\n\t\t{\n\t\t\tdisliked.add(userService.getCurrentUser());\n\t\t}\n\t\t\n\t\tIterable<User> userUnmatched = userRepository.findUserUnmatched(user.getId(), liked, disliked);\n\t\t\n\t\tLOG.info(\"user {} fetches unmatched list\", userId);\n\t\t\n\t\treturn this.createUserWithProfiles(userUnmatched);\n\t}", "ArrayList<String> showUsersRecive() throws SQLException {\r\n String queryMittente = \"SELECT DISTINCT username FROM users JOIN tweet on users.username = tweet.destinatario GROUP BY (username)\";\r\n //Oggetti per interrogare il db\r\n Statement statement=null;\r\n connection=DBConnection.connect();\r\n ResultSet resultSet=null;\r\n //Lista messaggi\r\n ArrayList<String> usersList = new ArrayList<>();\r\n\r\n try {\r\n statement=connection.createStatement();\r\n resultSet = statement.executeQuery(queryMittente);\r\n while(resultSet.next()){\r\n String username = resultSet.getString(\"username\");\r\n usersList.add(username);\r\n }\r\n\r\n return usersList;\r\n }catch (SQLException e){\r\n e.printStackTrace();\r\n }finally {\r\n if (connection!=null) connection.close();\r\n if (statement!=null) statement.close();\r\n if(resultSet!=null) resultSet.close();\r\n }\r\n return null;\r\n }", "List<User> selectAll();", "List<User> selectAll();", "private User[] getUniqueUsers(User[] users) {\n User[] uniqueList = null;\n\n if (users.length > 0) {\n // Collect users in a hashtable to remove duplicate usernames\n Hashtable<String, User> userHash = new Hashtable<String, User>();\n\n // Examine each user in the list\n String username = null;\n for (int idx = 0; idx < users.length; idx++) {\n username = users[idx].getUsername();\n if (!userHash.containsKey(username)) {\n userHash.put(username, users[idx]);\n }\n }\n\n // Return an array of unique users\n int idx = 0;\n uniqueList = new User[userHash.size()];\n Collection<User> values = userHash.values();\n Iterator<User> userIterator = values.iterator();\n while (userIterator.hasNext()) {\n uniqueList[idx] = (User) userIterator.next();\n idx++;\n }\n }\n\n return uniqueList;\n }", "List<UserDO> getUserListByOrgId(Long orgId);", "public static Set<Doc> or(Set<Doc> set1, Set<Doc> set2) {\r\n \t\tif(set1 == null)\r\n \t\t\tset1 = new TreeSet<Doc>();\r\n \t\tif(set2 == null)\r\n \t\t\tset2 = new TreeSet<Doc>();\r\n \t\t\r\n \t\tTreeSet<Doc> result = new TreeSet<Doc>(set1);\r\n \t\tresult.addAll(set2);\r\n \t\treturn result;\r\n \t}", "public abstract boolean isDocumentBelongsToThisUser(String username, ClinicalDocumentDto clinicalDocumentDto);", "List<Share> findDistinctByUserOrderByCreateTimeDesc(User user);", "List<User> getRandomUsers(List<User> uList, int num);", "@Override\n\tpublic List<User> selectAllUser() {\n\t\treturn null;\n\t}", "@Override\n\tpublic int getDoc_User_ID() {\n\t\treturn 0;\n\t}", "private static boolean checkDuplicateDocName(User user, String name) {\n\n\t\t// Check if document name is already in user's documents\n\t\tboolean isInvalid = false;\n\n\t\tfor(@SuppressWarnings(\"unchecked\")\n\t\tIterator<Document> iter = user.getDocumentList().iterator(); iter.hasNext(); ) {\n\t\t\tDocument doc = iter.next();\n\t\t\tif(doc.getDocName().equals(name)) {\n\t\t\t\tisInvalid = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isInvalid;\n\t}", "@Override\r\n public List<User> darUsers() {\r\n Query q = em.createQuery(\"SELECT u FROM UserEntity u\");\r\n List<UserEntity> l = q.getResultList();\r\n List<User> ltr = new ArrayList();\r\n for(UserEntity te: l)\r\n {\r\n ltr.add(TransformadorEntityDto.getInstance().entityADtoUser(te));\r\n }\r\n return ltr;\r\n }", "boolean deleteDocuments(Map<String, String> fields);", "public List<cn.edu.nju.teamwiki.jooq.tables.pojos.Document> fetchByDId(String... values) {\n return fetch(Document.DOCUMENT.D_ID, values);\n }", "List<UserTopic> selectByExample(UserTopicExample example);", "List<UserTopic> selectByExample(UserTopicExample example);", "List<BlogUser> getUsers() throws DAOException;", "@Override\n\tpublic Set<Long> getAllUserId() {\n\t\tfinal Set<Long> allUserIds = new HashSet<>();\n\t\tfinal Object[][] result = SQL.select(SQLs.USER_SELECT_ID_ONLY);\n\t\tif (null != result && result.length > 0) {\n\t\t\tfor (int i = 0; i < result.length; i++) {\n\t\t\t\tif (null != result[i]) {\n\t\t\t\t\tallUserIds.add((Long) result[i][0]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn allUserIds;\n\t}", "List<UUser> selectByExample(UUserExample example);", "public List getUsers(User user);", "public long getDisambiguatedAuthorsInCollection()\n\tthrows DataAccessException;", "List<ROmUsers> selectByExample(ROmUsersExample example);", "public static Task<QuerySnapshot> getTripSummaries(String userId) {\n return FirebaseFirestore.getInstance()\n .collection(Const.USERS_COLLECTION)\n .document(userId)\n .collection(Const.USER_TRIPS_COLLECTION)\n .get();\n }", "private String idsConstrain(ArrayList <String> uids){\n String query = \"\";\n if(uids.size() > 0){\n query = \" ( \" \n // If uids used are PMC ids, remove PMC part - not recognized by Entrez utilites! \n + uids.get(0).replace(\"PMC\", \"\") \n + \"[UID] \";\n\n for(int i = 1; i < uids.size() ; i++){\n query += \"OR \" \n // If uids used are PMC ids, remove PMC part - not recognized by Entrez utilites! \n + uids.get(i).replace(\"PMC\", \"\") \n + \"[UID] \";\n }\n query += \") \"; \n }\n return query; \n }", "public List<BlogUser> getAllUsers() throws DAOException;", "public List<UserModel> getAllUsers()\n {\n List<UserModel> userModels =new ArrayList<>();\n //user.findAll().forEach(topics::add);\n for(UserModel userModel : userRepository.findAll())\n {\n userModels.add(userModel);\n }\n return userModels;\n }", "public List<UserDto> index() {\n\t\treturn userRepository.findByDeletedFalse().stream().map(userMapper::toUserDto).collect(Collectors.toList());\n\t}", "public Set<String> getWordsNotFoundByUser(){\n\n Set<String> validWordsOnBoardCopy = new HashSet<String>();\n validWordsOnBoardCopy.addAll(validWordsOnBoard);\n validWordsOnBoardCopy.removeAll(validWordsFoundByUser);\n\n return validWordsOnBoardCopy;\n }", "List<BaseUser> selectAll();", "private static void removeExistingFromResults(List<Author> resultList, List<String> existingList) {\n\n // Check that existingList is not null\n if (existingList == null) return;\n\n // Remove items from resultList that are already in the user's friend/follow list\n for (String userId : existingList) {\n for (int i = resultList.size() - 1; i >= 0; i--) {\n Author user = resultList.get(i);\n\n if (user.firebaseId.equals(userId)) {\n resultList.remove(user);\n break;\n }\n }\n }\n }", "public List<Document> findByAuthor(String userName, int limit) {\n\n // XXX HW 3.2, Work Here\n // Return a list of DBObjects, each one a post from the posts collection\n\n // Want to get ALL the documents, so don't really need a filter. Add a sort to get the posts in order\n List<Document> posts = new LinkedList<Document>();;\n Document theSort=new Document(\"date\",-1);\n Document theFltr=new Document(\"author\",userName);\n\n // Empty filter and sort to get the first relevant post (and we can then step through the list using iterator)\n MongoCursor<Document> cursor=postsCollection.find(theFltr).sort(theSort).limit(limit).iterator();\n\n // Step through and to our list (makes little odds if it's array or linked list)\n while(cursor.hasNext()) {\n posts.add(cursor.next());\n }\n\n // pass list back\n return posts;\n }", "public List<TurmaDocente> docentesPorTurma(Long idTurma){\n Session session = getSessionFactory().openSession();\n Criteria criteria = session.createCriteria(TurmaDocente.class);\n criteria.add(Restrictions.eq(\"idTurma\", idTurma));\n //criteria.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);\n\n List results = criteria.list();\n session.close();\n\n return results; \n }", "List<User> getUnapprovedUserList(UserVo userVo);", "public abstract CCDDto findCCDDto(String username, long documentId);", "ObservableList<Link> getUnfilteredLinkList();", "List<CommentUser> selectByExample(CommentUserExample example);", "public void getEveryonePosts(String myUN, UserPosts up, UserFriends uf) {\n\n // get who I'm following\n //ArrayList<String> following = getFollowList(myUN);\n //following.add(myUN); // \"add\" myself into follow list so I can see my own post in homepage\n //System.out.println(\"Follow = \" + following);\n\n // hold all posts from everyone I follow here\n //ArrayList<Document> allPosts = new ArrayList<>();\n //if (!up.postDocs.isEmpty())\n up.postDocs.clear();\n\n getFollowList(myUN, uf);\n\n // accessing posts table\n MongoCollection<Document> postColl = db.getCollection(\"postsRecord\");\n\n // get all posts in newest first order\n FindIterable<Document> everyPost = postColl.find().sort(Sorts.descending(\"date\"));\n\n MongoCursor<Document> cursor = everyPost.iterator(); // set up cursor to iterate rows of documents\n try {\n while (cursor.hasNext()) {\n Document currCursor = cursor.next(); // get current document from cursor\n String cursorUN = currCursor.getString(\"username\"); // see username of that document\n //System.out.println(\"cursorUN = \" + cursorUN);\n\n // if post by me or I follow user of current document\n if (cursorUN.equals(myUN) || uf.friendsList.contains(cursorUN))\n up.postDocs.add(currCursor); // add that post into postDocs\n }\n } finally {\n cursor.close();\n }\n\n // print\n for (Document post: up.postDocs) {\n System.out.println(post.toJson());\n }\n }", "Collection<User> getUsers() throws DataAccessException;", "UserTopic selectByPrimaryKey(Integer userid);", "Set<Document> findDocuments(Map<String, String> fields, int offset, int numberOfResults);", "private void removeUserAssociations(Collection<Long> ids) throws ServiceException {\n\t\ttry{\n\t\t\t// remove the user from all user groups\n\t\t\tUserGroupUserDao uguDao = (UserGroupUserDao)super.context.getBean(\"userGroupUserDao\");\n\t\t\tuguDao.deleteUsersById(ids);\n\n\t\t\t// remove the user from all restricted incidents\n\t\t\tRestrictedIncidentUserDao riuDao = (RestrictedIncidentUserDao)context.getBean(\"restrictedIncidentUserDao\");\n\t\t\triuDao.deleteUsersById(ids);\n\t\t\t\n\t\t\t// remove the user from all shared work areas\n\t\t\tWorkAreaUserDao wauDao = (WorkAreaUserDao)context.getBean(\"workAreaUserDao\");\n\t\t\twauDao.deleteUserFromSharedWorkAreas(ids);\n\t\t\t//the work area shared out flag needs to be updated after removing users from shared work areas\n\t\t\tWorkAreaDao waDao = (WorkAreaDao)context.getBean(\"workAreaDao\");\n\t\t\twaDao.updateSharedOutFlag();\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tsuper.handleException(e);\n\t\t}\n\t}", "@Override\r\n public int hashCode() {\r\n return doc1.hashCode() + doc2.hashCode();\r\n }", "public User[] usersRestricted(int[] indexs){\n User[] usersRestrictedPlayLists = new User[5];\n for(int i = 0; i<5; i++){\n usersRestrictedPlayLists[i] = user[indexs[i]];\n }\n return usersRestrictedPlayLists;\n }", "private static <T> Set<T> union(Collection<T> c1, Collection<T> c2) {\n return Stream.concat(c1.stream(), c2.stream()).collect(Collectors.toUnmodifiableSet());\n }", "public List<cn.edu.nju.teamwiki.jooq.tables.pojos.Document> fetchByUploader(Integer... values) {\n return fetch(Document.DOCUMENT.UPLOADER, values);\n }", "@Transactional\n\t@Override\n\tpublic List<Documents> getShareDocuments() {\n\t\treturn documentsDao.getShareDocuments();\n\t}", "List<Map<String, String>> getFilteredDocuments(Map<String, Object> paramsMap);", "public synchronized List<MTDDocument> getDocumentos(Collection<Integer> ids){\r\n\t\tArrayList<MTDDocument> listaRetorno = new ArrayList<MTDDocument>();\r\n\t\tDirectoryReader reader;\r\n\t\ttry {\r\n\t\t\treader = DirectoryReader.open(getCopiaDiretorioMemoria());\r\n\t\tIndexSearcher searcher = new IndexSearcher(reader);\t\t\r\n\t for(Integer docId: ids){\r\n \t\tDocument documento = searcher.doc(docId.intValue());\r\n \t\tif(documento != null){\r\n \t\tMTDDocument doc = new MTDDocumentBuilder().buildDocument(documento).build();\r\n \t\tdoc.setDocId(docId.intValue());\r\n \t\tlistaRetorno.add(doc);\r\n \t\t}else\r\n \t\t{System.out.println(\"Document with docId \"+docId.intValue()+\" not found.\");}\r\n\t }\r\n\t\t} catch (IOException 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 listaRetorno;\r\n\t}", "@Override\r\n public List<User> userfindAll() {\n return userMapper.userfindAll();\r\n }", "WbUser selectByPrimaryKey(Integer userId);", "public List<UserExtraDTO> getAllUser(List<User> users,List<UserExtra> userextra)\n {\n \tList <UserExtraDTO> dto=new ArrayList<UserExtraDTO>();\n\t\tfor(int i=0;i<users.size();i++)\n\t\t{\n\t\t\tfor(int j=0;j<userextra.size();j++)\n\t\t\t{\n\t\t\t\tif(i==j)\n\t\t\t\t{\n\t\t\t\t\tUserExtraDTO u=new UserExtraDTO(users.get(i),userextra.get(j));\n\t\t\t\t\tdto.add(u);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn dto;\n }", "public long getUniqueAuthorsInCollection()\n\tthrows DataAccessException;", "private void updateUserDoc(){\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n\n Map<String, Object> userData = new HashMap<>();\n userData.put(\"name\", FieldValue.delete());\n userData.put(\"updated\", new Timestamp(new Date()));\n\n db.collection(\"users\")\n .document(mUser.getUid())\n .set(userData, SetOptions.merge())\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.d(LOG_TAG, \"Document successfully written.\");\n\n // Proceed to the main activity\n Intent intent = new Intent(LoginActivity.this, MainActivity.class);\n startActivity(intent);\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.e(LOG_TAG, \"Error writing document.\", e);\n Toast.makeText(LoginActivity.this, \"Database Error\", Toast.LENGTH_SHORT)\n .show();\n\n setVisibleView(SignInView.SIGN_IN); // Show the Sign In Button\n }\n });\n }", "public Collection<String> getUsers() {\r\n \t\tCollection<String> users = new TreeSet<>();\r\n \t\tusers.addAll(this.dataLayer.getUser());\r\n \r\n \t\treturn users;\r\n \t}", "public List<UserJoins> listUserJoinsbyTid(Integer tid);", "public abstract Set<String> getTerms(Document doc);", "public synchronized Set<User> getUsers() {\r\n Set<User> userSet = new HashSet<User>(userSetSize); \r\n userSet.addAll(this.email2user.values());\r\n return userSet;\r\n }", "private void findPlantsList() {\n try {\n\n RemoteMongoCollection<Document> plants = mongoDbSetup.getCollection(getString(R.string.eye_plant_plants));\n RemoteMongoIterable<Document> plantIterator = plants.find();\n\n final ArrayList<Document> docsToUser = new ArrayList<>();\n\n plantIterator\n .forEach(document -> {\n docsToUser.add(document);\n setPlantList(docsToUser);\n })\n .addOnFailureListener(e -> Log.e(TAG, \"Error\" + e.getCause()))\n\n .addOnCompleteListener(task -> {\n\n if (getPlantList().size() == docsToUser.size() && getPlantList().size() != 0) {\n setUpRecyclerView();\n }\n });\n } catch (Throwable e) {\n Log.e(TAG, \"NullPointerException: \" + e.getMessage());\n }\n }", "@Override\n public Future<Seq<TUser>> getUsers() {\n return futurePool.apply(new BlockingUserRetriever(\"user1\", false))\n .join(futurePool.apply(new BlockingUserRetriever(\"user2\", false)))\n .transformedBy(\n new FutureTransformer<Tuple2<User, User>, List<TUser>>() {\n @Override\n public List<TUser> map(Tuple2<User, User> value) {\n List<TUser> list = new ArrayList<TUser>(2);\n list.add(value._1().toTObject());\n list.add(value._2().toTObject());\n return list;\n }\n\n // if we call BlockingUserRetriever with useRandom=true then\n // one of the users of maybe both can fail because don't exist so\n // we catch the exception and return an empty list instead\n @Override\n public List<TUser> handle(Throwable throwable) {\n return new ArrayList<TUser>();\n }\n }\n ).transformedBy(\n new FutureTransformer<List<TUser>, Seq<TUser>>() {\n @Override\n public Seq<TUser> map(List<TUser> value) {\n return ScalaSupport.toScalaSeq(value);\n }\n }\n );\n }", "@Override\r\n\tpublic UserDTO queryUnique(UserQO qo) {\n\t\treturn null;\r\n\t}", "public static Task<DocumentSnapshot> getUserDates(String userId) {\n Log.d(Const.TAG, \"getUserDatesForCal: \" + Thread.currentThread().getId());\n return FirebaseFirestore.getInstance()\n .collection(Const.USERS_COLLECTION)\n .document(userId)\n .get();\n }", "protected static User userFromBson(Document d) {\n throw new NotImplementedException();\n }", "@Override\n public List<UserSuper> findAllUserSuper() {\n return userSuperMapper.selectAll();\n }", "List<WbUser> selectByExample(WbUserExample example);", "public ObservableList<prescription> findBydID(int userID) {\n\t\t// TODO Auto-generated method stub\n\t\tprescription p=null;\n\t\t\n\t\tObservableList<prescription> prescription =FXCollections.observableArrayList();\n\t\tString query = \"SELECT * FROM pmohan_prescription WHERE docId = ?;\";\n\t\ttry(PreparedStatement statement = connection.prepareStatement(query))\n\t\t{ \n\t\t\t\n\t\t\t statement.setInt(1, userID);\n\t\t\t ResultSet resultSet = statement.executeQuery();\n\t\t\twhile(resultSet.next()){\n\t\t\t\t p= new prescription();\n\t\t\t\t p.setDocId(resultSet.getInt(3));\n\t\t\t\t p.setMedcineName(resultSet.getString(4));\n\t\t\t\t p.setMedicinePurpose(resultSet.getString(5));\n\t\t\t\t p.setEat(resultSet.getString(6));\n\t\t\t\t p.setPatientName(resultSet.getString(7));\n\t\t\t\t p.setPid(resultSet.getInt(2));\n\t\t\t\t p.setDocName(docName(resultSet.getInt(3)));\n\t\t\t\t// p.setDocName(pName(resultSet.getString(4),resultSet.getString(5),resultSet.getString(6)));\n\t\t\t\t prescription.add(p);\n\t\t }\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\treturn prescription;\n\t}", "ROmUsers selectByPrimaryKey(String pkUserid);", "public List<UsersRobots> findByUserId(int idUser){\n return (List<UsersRobots>) entityManager.createQuery(\"SELECT ur FROM UsersRobots ur where ur.idUser = :idUser\").setParameter(\"idUser\",idUser).getResultList();\n }" ]
[ "0.5398923", "0.5385296", "0.50306904", "0.4927502", "0.48912656", "0.48516127", "0.47823", "0.46936694", "0.46727967", "0.46659473", "0.46615338", "0.4628005", "0.462352", "0.46106488", "0.46012294", "0.4546218", "0.4545175", "0.45434555", "0.45144764", "0.45129648", "0.45115644", "0.4486307", "0.44676012", "0.44607827", "0.44407147", "0.44313124", "0.44302097", "0.442833", "0.44143298", "0.43922016", "0.43895575", "0.43878308", "0.43865317", "0.43849322", "0.43804646", "0.43804646", "0.43799457", "0.43760675", "0.43717143", "0.43450326", "0.43401957", "0.43326083", "0.43324703", "0.4331667", "0.433087", "0.43240005", "0.4314946", "0.42988956", "0.42930022", "0.42930022", "0.42913368", "0.42863318", "0.42834058", "0.42788205", "0.42673022", "0.42483938", "0.42435765", "0.42309797", "0.42140397", "0.4213748", "0.42133686", "0.42087066", "0.4200162", "0.41993973", "0.41949487", "0.4187745", "0.41828528", "0.41804057", "0.41749358", "0.41740102", "0.41667414", "0.4163751", "0.41615972", "0.4160831", "0.4158665", "0.41575298", "0.41553712", "0.41553172", "0.4152163", "0.4151182", "0.41493267", "0.41486472", "0.41441223", "0.4139217", "0.41377893", "0.41359508", "0.4134214", "0.41338563", "0.41312796", "0.41289788", "0.4124144", "0.41171423", "0.41080278", "0.41067922", "0.4104369", "0.41015127", "0.4098308", "0.4094492", "0.40853584", "0.40843636", "0.40839523" ]
0.0
-1
Created by nathanmsika on 13/11/2017.
public interface DB_manager { boolean check_exist_client(Client c); ///add function content value String addclient(ContentValues client); String addmodel(ContentValues model); int addcar(ContentValues car); int addbranch(ContentValues car); void add_url_image(ContentValues contentValues); ////list function List<Models> allmodels(); List<Client> allclient(); List<Branch> allbranch(); List<Car> allcars(); public void allurl(); /// instance of all database void db_all(Context context); ///cursor list function Cursor Allmodels(); Cursor Allclient(); Cursor Allcar(); Cursor Allbranch(); public String get_url_image(String num); ///delete function int delete_client(int id); int delete_model(int id); int delete_branch(int id); int delete_car(int id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\n public void init() {\n\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\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 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\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@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\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void init() {}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "private void m50366E() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public void initialize() { \n }", "@Override\n protected void init() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "private void init() {\n\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}", "protected boolean func_70814_o() { return true; }", "public void mo38117a() {\n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@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 rozmnozovat() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\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\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n protected void getExras() {\n }", "@Override public int describeContents() { return 0; }", "private MetallicityUtils() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "private Rekenhulp()\n\t{\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 init()\n\t{\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n public void init() {\n }" ]
[ "0.59657705", "0.57798946", "0.5720545", "0.5695452", "0.56481445", "0.5609097", "0.560591", "0.5602103", "0.55862474", "0.55813307", "0.55813307", "0.5580264", "0.5580264", "0.5580264", "0.5580264", "0.5580264", "0.5580264", "0.554818", "0.5542784", "0.553563", "0.5522039", "0.55116373", "0.55116373", "0.55074346", "0.55048954", "0.55048954", "0.55048954", "0.55048954", "0.55048954", "0.5504244", "0.5497816", "0.5478301", "0.547509", "0.54667985", "0.5460074", "0.5456692", "0.5455444", "0.5453838", "0.5442644", "0.5440412", "0.5422799", "0.54184616", "0.5417357", "0.5414603", "0.54122156", "0.5406373", "0.54046863", "0.5397059", "0.5397059", "0.53923607", "0.53892106", "0.53892106", "0.53892106", "0.53774136", "0.53651935", "0.5357977", "0.5357977", "0.5357977", "0.53562194", "0.53562194", "0.53562194", "0.53486806", "0.53460056", "0.53460056", "0.5345841", "0.5345841", "0.5345841", "0.53405297", "0.5334019", "0.533189", "0.53299904", "0.53247297", "0.5313875", "0.5312089", "0.5310224", "0.53086257", "0.53076434", "0.53076434", "0.5284574", "0.5262597", "0.5261694", "0.5256973", "0.5250033", "0.5247517", "0.52447957", "0.524169", "0.5231275", "0.5231275", "0.5231275", "0.5231275", "0.5231275", "0.5231275", "0.5231275", "0.5231275", "0.5231275", "0.5231275", "0.52272904", "0.52259207", "0.52253675", "0.52247804", "0.5224326" ]
0.0
-1
/add function content value
String addclient(ContentValues client);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "org.globus.swift.language.Function addNewFunction();", "private void addition()\n\t{\n\t\tFun = Function.ADD;\t//Function set to determine what action should be taken later. \n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "public boolean addFunction(Accessibility pPAccess, SubRoutine pExec, MoreData pMoreData);", "public void add(String f){\n\t\tthis.vetor[contagem] = f;\n\t\tthis.contagem++;\n\t}", "private void addFuncArgument(ST template, String reg, String id, String argtype) {\n ST alloca = this.group.getInstanceOf(\"localdeclare\");\n alloca.add(\"reg\", reg);\n alloca.add(\"type\", argtype);\n template.add(\"allocaargs\", alloca.render() + \"\\n\");\n\n ST store = this.group.getInstanceOf(\"store\");\n store.add(\"type\", argtype);\n store.add(\"reg\", id);\n store.add(\"where\", reg);\n template.add(\"storeargs\", store.render() + \"\\n\");\n }", "@Override\n protected void adicionar(Funcionario funcionario) {\n\n }", "@Override\r\n\tpublic void func01() {\n\t\t\r\n\t}", "public void addValue() {\n addValue(1);\n }", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n public void visitFunction(Function function) {\n }", "@Override\r\n\tpublic void addFunction(Function function) {\n\t\tgetHibernateTemplate().save(function);\r\n\t}", "@Override\n\tpublic void visit(Addition arg0) {\n\t\t\n\t}", "@Override\n\tpublic void visit(Addition arg0) {\n\n\t}", "public boolean addFuncDynamic(Accessibility pAccess, ExecSignature pES, MoreData pMoreData);", "@Override\r\n public void visit(Add n, functionStruct fStruct) {\r\n String resultIntObject = n.f0.f0.toString();\r\n addId(resultIntObject, fStruct.functionName, fStruct.lineNumber);\r\n\r\n String firstIntObject = n.f2.f0.toString();\r\n addId(firstIntObject, fStruct.functionName, fStruct.lineNumber);\r\n\r\n String secondIntObject = n.f4.f0.toString();\r\n addId(secondIntObject, fStruct.functionName, fStruct.lineNumber); \r\n \r\n }", "public void add1() {\r\n value++;\r\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "void add(int val);", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "private void add() {\n\n\t}", "public void add(int add) {\r\n value += add;\r\n }", "org.globus.swift.language.Function insertNewFunction(int i);", "final public void function() throws ParseException {\n String name = \"\";\n LinkedList<String> params = new LinkedList<String>();\n jj_consume_token(TO);\n jj_consume_token(VARIABLE);\n name = token.image;\n label_8:\n while (true) {\n if (jj_2_44(4)) {\n ;\n } else {\n break label_8;\n }\n jj_consume_token(PARAM);\n params.add(token.image);\n }\n //retorna el viejo valor (si ya habia uno con esa misma key) y null si es la primera vez que se inserta.\n if(functions.put(name,params)!=null) {\n {if (true) throw new ParseException(\"La funcion: \"+ name +\" ya fue previamente definida.\");}\n }\n funparams = params;\n label_9:\n while (true) {\n if (jj_2_45(4)) {\n ;\n } else {\n break label_9;\n }\n jj_consume_token(34);\n }\n jj_consume_token(OUTPUT);\n label_10:\n while (true) {\n if (jj_2_46(4)) {\n ;\n } else {\n break label_10;\n }\n jj_consume_token(34);\n }\n command(salidaS);\n label_11:\n while (true) {\n if (jj_2_47(4)) {\n ;\n } else {\n break label_11;\n }\n jj_consume_token(34);\n }\n jj_consume_token(END);\n funparams = null;\n }", "void addData();", "public void parseFunctions(){\n\t\t\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n\tpublic void visit(Function arg0) {\n\t\t\n\t}", "public int getFunctionType() {\n/* 60 */ return 4;\n/* */ }", "@Override\n\tpublic void visit(Function arg0) {\n\n\t}", "public void add(Consumer<Builder> code) {\n\t\tBuilder builder = CodeBlock.builder();\n\t\tcode.accept(builder);\n\t\tadd(builder.build());\n\t}", "public Function getFunction();", "public boolean addFuncDlgAttr(Accessibility pAccess, ExecSignature pES, String pTName, MoreData pMoreData);", "void add(int value);", "public void addInstruction(){\n\n }", "@Override\r\n\tpublic void add(float var) {\n\t\t\r\n\t}", "protected void addBuildFunction(S source) {\n Function build =\n FunctionBuilder.of(source, \"build\", Purpose.build())\n .setReturnValue(new DataObject(new ObjectName(\"Widget\"), new PackageName(\"com.dummy\")))\n .addArgument(\n new DataObject(\n new ObjectName(\"BuildContext\"),\n new PackageName(\"com.dummy\"),\n new VariableName(\"context\")))\n .build();\n\n source.addFunction(build);\n }", "public ConcatFunction(Object value) {\r\n\t\tsuper(value);\r\n\t}", "void add(int a,int b){\r\n\t\tint c=a+b;\r\n\t\tSystem.out.println(\"Sum =\"+c);\r\n\t}", "int add();", "public Function add(Function f) {\r\n // A totall of 3 function objects are present in this method, the current\r\n //object called to with \"this\", the inputed function f, and the final sum of both\r\n //functions, Function sum.\r\n //this function uses addterm method to add each term from both functions by scanning\r\n //both arrays and placing values for degrees, and coefficient in Function sum arrays.\r\n //sum is then returned.\r\n Function sum = new Function();\r\n for (int i = 0; i < this.cindex; i++){\r\n sum.addTerm(this.co[i],this.degree[i]); \r\n }\r\n for (int i = 0; i < f.cindex; i++){\r\n sum.addTerm(f.co[i],f.degree[i]); \r\n }\r\n for (int i = 0; i < this.sinindex; i++){\r\n sum.addTerm(this.sinc[i],\"sin\",this.sind[i]); \r\n } \r\n for (int i = 0; i < f.sinindex; i++){\r\n sum.addTerm(f.sinc[i],\"sin\",f.sind[i]); \r\n }\r\n for (int i = 0; i < this.cosindex; i++){\r\n sum.addTerm(this.cosc[i],\"cos\",this.cosd[i]); \r\n }\r\n for (int i = 0; i < f.cosindex; i++){\r\n sum.addTerm(f.cosc[i],\"cos\",f.cosd[i]); \r\n }\r\n for (int i = 0; i < this.tanindex; i++){\r\n sum.addTerm(this.tanc[i],\"tan\",this.tand[i]); \r\n }\r\n for (int i = 0; i < f.tanindex; i++){\r\n sum.addTerm(f.tanc[i],\"tan\",f.tand[i]); \r\n }\r\n return sum; \r\n\t}", "void agregar(int c, int x);", "void addAndReplace(FuncItem f){\n // if exist replace\n if (classMethodMap.containsKey(f.funSymbol)){\n var old_f_idx = findMethod(f.funSymbol);\n f.storeIdx = old_f_idx;\n members.set(old_f_idx, f);\n } else {\n f.storeIdx = members.size();\n members.add(f);\n }\n classMethodMap.put( f.funSymbol, f.storeIdx);\n }", "Funcionario(){\n }", "static void add() {\r\n\t\t\r\n\t\tint a = 500;\r\n\t\tint b = 300;\r\n\t\t\r\n\t\tint s = a +b;\r\n\t\tSystem.out.println(s);\r\n\t}", "void add(String value);", "int insert(FunctionInfo record);", "static void perform_add(String passed){\n\t\tint type = type_of_add(passed);\n\t\tif(type==1)\n\t\t\tadd_with_reg(passed);\n\t\telse if(type==2)\n\t\t\tadd_with_mem(passed);\n\t}", "public void addFunction( Object obj)\r\n {\r\n functionClasses.add(obj);\r\n }", "public void addfuntion(String name, CinemaFunction funtion) throws CinemaPersistenceException{\n\t\tcps.addfuntion(name,funtion);\n\t}", "Rule Function() {\n // Push 1 FunctionNode onto the value stack\n StringVar functionName = new StringVar(\"\");\n return Sequence(\n Optional(\"oneway \"),\n FunctionType(),\n Identifier(),\n actions.pop(),\n ACTION(functionName.set(match())),\n \"( \",\n ZeroOrMore(Field()),\n \") \",\n Optional(Throws()),\n Optional(ListSeparator()),\n push(new IdentifierNode(functionName.get())),\n actions.pushFunctionNode());\n }", "public String getfunction() {\n\t\treturn _function;\n\t}", "public void addFunction(FunctionItem _functionItem) {\n\t\tfunctionItem.add(_functionItem);\n\t\t_functionItem.parentClass=this;\n\t}", "private void add(String thestring) {\n\t\t\n\t}", "public void add(int v, int p){\n \n \n \n }", "@Override\n\tpublic void addArg(FormulaElement arg){\n\t}", "private String addExtra() {\n\t\t// One Parameter: ExtraName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|extra:\" + parameters[0]);\n\t\treturn tag.toString();\n\t}", "void add(int a,int b) {\r\n\t\tint c=a+b;\r\n\t\tSystem.out.print(c);\r\n\t}", "static int ReturnType(int e, int f) {\n return (e + f); //return statementm\n }", "private String addEffect() {\n\t\t// One Parameter: EffectName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|effect:\" + parameters[0]);\n\t\treturn tag.toString();\n\n\t}", "@Override\n public void addStatement(IRBodyBuilder builder, TranslationContext context,\n FunctionCall call) {\n \n }", "@Override\r\n public String getCommand() {\n return \"function\";\r\n }", "public void add(int x){\n\t\tint[] index = functions(x);// get the indexes by send the value to the hash functions\n\t\tfor(int i=0; i<index.length; i++)\n\t\t\tflags[index[i]] = true; // change the relevant flags to be true\n\t}", "void add(double val) {\r\n\t\tresult = result + val;\r\n\t}", "@Override\n public void setFunctionName(String functionName) {\n\n }", "public Function getFunction()\n\t{\n\t\treturn function;\n\t}", "public void add() {\n\t\tSystem.out.println(\"I am from Add method\");\n\t}", "public interface IFunction {\r\n void setFunctions(String tag);\r\n}", "public int getFunction() {\n\t\treturn var;\n\t}", "public void append(ValueFunction valueFunction, double tau) {\n }", "public static void add(int a,float b){ }", "public void add() {\n\t\t\n\t}", "public static void add(int a,int b){ }", "@Override\r\n\tpublic String getFunc() {\n\t\treturn null;\r\n\t}", "@Override\n public String codeGeneration() {\n StringBuilder localDeclarations = new StringBuilder();\n StringBuilder popLocalDeclarations = new StringBuilder();\n\n if (declarationsArrayList.size() > 0) {\n for (INode dec : declarationsArrayList) {\n localDeclarations.append(dec.codeGeneration());\n popLocalDeclarations.append(\"pop\\n\");\n }\n }\n\n //parametri in input da togliere dallo stack al termine del record di attivazione\n StringBuilder popInputParameters = new StringBuilder();\n for (int i = 0; i < parameterNodeArrayList.size(); i++) {\n popInputParameters.append(\"pop\\n\");\n }\n\n\n String funLabel = Label.nuovaLabelFunzioneString(idFunzione.toUpperCase());\n\n if (returnType instanceof VoidType) {\n // siccome il return è Void vengono rimosse le operazioni per restituire returnvalue\n FunctionCode.insertFunctionsCode(funLabel + \":\\n\" +\n \"cfp\\n\" + //$fp diventa uguale al valore di $sp\n \"lra\\n\" + //push return address\n localDeclarations + //push dichiarazioni locali\n body.codeGeneration() +\n popLocalDeclarations +\n \"sra\\n\" + // pop del return address\n \"pop\\n\" + // pop dell'access link, per ritornare al vecchio livello di scope\n popInputParameters +\n \"sfp\\n\" + // $fp diventa uguale al valore del control link\n \"lra\\n\" + // push del return address\n \"js\\n\" // jump al return address per continuare dall'istruzione dopo\n );\n } else {\n //inserisco il codice della funzione in fondo al main, davanti alla label\n FunctionCode.insertFunctionsCode(funLabel + \":\\n\" +\n \"cfp\\n\" + //$fp diventa uguale al valore di $sp\n \"lra\\n\" + //push return address\n localDeclarations + //push dichiarazioni locali\n body.codeGeneration() +\n \"srv\\n\" + //pop del return value\n popLocalDeclarations +\n \"sra\\n\" + // pop del return address\n \"pop\\n\" + // pop dell'access link, per ritornare al vecchio livello di scope\n popInputParameters +\n \"sfp\\n\" + // $fp diventa uguale al valore del control link\n \"lrv\\n\" + // push del risultato\n \"lra\\n\" + // push del return address\n \"js\\n\" // jump al return address per continuare dall'istruzione dopo\n );\n }\n\n return \"push \" + funLabel + \"\\n\";\n }", "@Override\n\t\tpublic void addText(String txt) {\n\t\t\t\n\t\t}", "@Override\n public void onInterfaceNewFunctionType(int CODE_FUNCTION_ADF_ID, Object objectFunctionType) {\n ModelItemManageFunctions modelItemManageFunctions = new ModelItemManageFunctions();\n modelItemManageFunctions.link = gSelectedListaItemId;\n modelItemManageFunctions.function = CODE_FUNCTION_ADF_ID;\n\n modelItemManageFunctions.JSON = createStringFunctionJSON(CODE_FUNCTION_ADF_ID, objectFunctionType);\n\n //modelItemLists.id:? Database assigns the value to this item\n //getting value auto generated\n Long newDataBaseItemId = gDataBaseManageFunctions.addNewItem(modelItemManageFunctions);\n modelItemManageFunctions.id = newDataBaseItemId;\n //create a counter to reorder table later\n modelItemManageFunctions.order = newDataBaseItemId;\n //inserting new item\n gRecyclerManageFunctions.addItemToRecycler(modelItemManageFunctions);\n\n }", "void addingGlobalData() {\n\n }", "@Override\n\tpublic String toString() {\n\t\treturn getValue() + \":ADD(\" + value + ')';\n\t}", "String getAdditionalCode();", "String getAdditionalCode();", "String getAdditionalCode();", "protected int addInfo(syntaxMap toAdd){\n if(index == 10){\n return 0;\n }\n else if(index < 5) {\n this.array1[index] = toAdd;\n }\n else{\n this.array2[index - 5] = toAdd;\n }\n ++index;\n return 1;\n }", "public void Metodo1(String valor1){\r\n\r\n }", "public void addFjlx(Fjlx fx) {\n\r\n\t}", "FunctionExtract createFunctionExtract();", "void mo4827a(Context context, C0152fo foVar);", "long addExpression(Expression expression);", "@Override\n public String codeGen() {\n\n\tString labelFun = \"labelFun\" + MiniFunLib.getLabIndex();\n\tString popParSequence = \"\";\n\tString popLocalVariable = \"\";\n\tString localVariableCodeGen = \"\";\n\n\tfor (int i = 0; i < funParams.size(); i++) {\n\t NodeType nt = this.funParams.get(i).getType().getNodeType();\n\n\t if (nt == NodeType.ARROWTYPE_NODE)\n\t\tpopParSequence += VMCommands.POP + \"\\n\" + VMCommands.POP + \"\\n\";\n\t else\n\t\tpopParSequence += VMCommands.POP + \"\\n\";\n\t}\n\n\tfor (int i = 0; i < funLocalVariables.size(); i++) {\n\t localVariableCodeGen += funLocalVariables.get(i).codeGen();\n\t popLocalVariable += VMCommands.POP + \"\\n\";\n\t}\n\n\tString code = labelFun + \" :\\n\" +\n\t// Preparo parte bassa dell'activation Record\n\n\t\t// Il registro FP punterà al nuovo Activation Record\n\t\tVMCommands.CFP + \"\\n\"\n\n\t\t// PUSH dei dati Locali\n\t\t+ localVariableCodeGen +\n\n\t\t// PUSH return address del chiamante\n\t\tVMCommands.LRA + \"\\n\"\n\n\t\t// Corpo della funzione\n\t\t+ funBody.codeGen() +\n\n\t\t// POP RV e salvo nel registro\n\t\tVMCommands.SRV + \"\\n\" +\n\n\t\t// POP RA e salvo nel registro\n\t\tVMCommands.SRA + \"\\n\" +\n\n\t\t// Rimuovo variabili locali\n\t\tpopLocalVariable +\n\t\t// Rimuovo Access Link\n\t\tVMCommands.POP + \"\\n\" +\n\t\t// Rimuovo Pametri\n\t\tpopParSequence +\n\n\t\t// Ripristino il Registro FP che punterà all'Activation Record\n\t\t// del chiamante\n\t\tVMCommands.SFP + \"\\n\" +\n\n\t\t// PUSH valore di ritorno\n\t\tVMCommands.LRV + \"\\n\" +\n\t\t// PUSH indirizzo di ritorno\n\t\tVMCommands.LRA + \"\\n\" +\n\n\t\t// Salto al Chiamante\n\t\tVMCommands.JS + \"\\n\";\n\n\tMiniFunLib.addFunctionCode(code);\n\n\treturn VMCommands.PUSH + \" \" + labelFun + \"\\n\";\n }", "public String getFun() {\n return fun;\n }", "public abstract void add(T var1);", "private static void addFuncionesName() {\n\n funcionesName = new ArrayList<String>();\n if (funciones == null) {\n addFunciones();\n }\n Iterator it = funciones.iterator();\n while (it.hasNext()) {\n funcionesName.add(((GlobalSimilarityNode) it.next()).getName());\n }\n }", "public void add(Object value) {\n\n\t}", "private void updateFunctionNode(JsMessage message, Node functionNode)\n throws MalformedException {\n checkNode(functionNode, Token.FUNCTION);\n Node nameNode = functionNode.getFirstChild();\n checkNode(nameNode, Token.NAME);\n Node argListNode = nameNode.getNext();\n checkNode(argListNode, Token.PARAM_LIST);\n Node oldBlockNode = argListNode.getNext();\n checkNode(oldBlockNode, Token.BLOCK);\n\n Iterator<CharSequence> iterator = message.parts().iterator();\n Node valueNode = constructAddOrStringNode(iterator, argListNode);\n Node newBlockNode = IR.block(IR.returnNode(valueNode));\n\n if (!newBlockNode.isEquivalentTo(\n oldBlockNode,\n /* compareType= */ false,\n /* recurse= */ true,\n /* jsDoc= */ false,\n /* sideEffect= */ false)) {\n newBlockNode.useSourceInfoIfMissingFromForTree(oldBlockNode);\n functionNode.replaceChild(oldBlockNode, newBlockNode);\n compiler.reportChangeToEnclosingScope(newBlockNode);\n }\n }", "@Override\n\tpublic Type generateIntermediateCode(Function fun) {\n\t\tErrorList err = ErrorList.getInstance();\n\t\tFunctionDeclaration funDec = null;\n\t\tif(Semantic.globalFuntionTable.containsKey(id))\n\t\t\tfunDec = Semantic.globalFuntionTable.get(id);\n\t\telse \n\t\t\terr.addException(new SemanticException(id, super.getLine(), 8));\n\t\t\n\t\tfor(int i = argsList.size() - 1; i >= 0; i--){\n\t\t\tOperation op = new Operation(OperandType.PUSH, fun.getCurrBlock());\n\t\t\tType paramType = argsList.get(i).generateIntermediateCode(fun);\n\t\t\tif(funDec != null){\n\t\t\t\tif(funDec.getParameters().get(i) == null || funDec.getParameters().get(i).getType() != paramType ||\n\t\t\t\t\t\t(fun.getSymbolTable().get(id) != null && (funDec.getParameters().get(i).isArray() != \n\t\t\t\t\t\tfun.getSymbolTable().get(id).isArray()))){\n\t\t\t\t\terr.addException(new SemanticException(id, super.getLine(), 11));\n\t\t\t\t}\n\t\t\t}\n\t\t\tOperand oper = null;\n\t\t\tif(argsList.get(i) instanceof LiteralExpression){\n\t\t\t\tObject num = ((LiteralExpression)argsList.get(i)).getNumber();\n\t\t\t\tif(num.getClass() == Integer.class)\n\t\t\t\t\toper = new Operand(OperandType.INT, (int)num);\n\t\t\t\telse\n\t\t\t\t\toper = new Operand(OperandType.FLOAT, (double)num);\n\t\t\t}\n\t\t\telse \n\t\t\t\toper = new Operand(OperandType.REG, argsList.get(i).getRegNum());\n\t\t\top.setSrcOperand(0, oper);\n\t\t\tfun.getCurrBlock().appendOperation(op);\n\t\t}\n\t\tOperation op = new Operation(OperandType.CALL, fun.getCurrBlock());\n\t\t//Attribute\n\t\tOperand oper = new Operand(OperandType.FUNC_NAME, getId());\n\t\top.setSrcOperand(0, oper);\n\t\tfun.getCurrBlock().appendOperation(op);\n\t\t\n\t\top = new Operation(OperandType.MOV, fun.getCurrBlock());\n\t\toper = new Operand(OperandType.RET, \"ret\");\n\t\top.setSrcOperand(0, oper);\n\t\t\n\t\tsuper.setRegNum(fun.getNewRegisterNum());\n\t\toper = new Operand(OperandType.REG, super.getRegNum());\n\t\top.setDestOperand(0, oper);\n\t\tfun.getCurrBlock().appendOperation(op);\n\t\tif(funDec != null)\n\t\t\treturn funDec.getType();\n\t\telse\n\t\t\treturn Type.NULL;\n\t}", "public void MIPSme()\n {\n System.out.println(\"Took func from offset: \" + offset);\n TEMP label_address = TEMP_FACTORY.getInstance().getFreshTEMP();\n sir_MIPS_a_lot.getInstance().load(label_address, src);\n sir_MIPS_a_lot.getInstance().addi(label_address,label_address,4*offset);\n sir_MIPS_a_lot.getInstance().load(dst,label_address); //take the function address to dst\n }", "public void addToCode(String code){\r\n\t\tiCode+=getTabs()+code+\"\\n\";\r\n\t}", "public void addMainFunction(MainFunctionItem _functionItem) {\n\t\tfunctionItem=_functionItem;\n\t\t_functionItem.parentClass=this;\n\t}" ]
[ "0.62357223", "0.61231536", "0.59044206", "0.5797107", "0.57524467", "0.57478064", "0.57159734", "0.56785667", "0.5675806", "0.5601942", "0.5600775", "0.55985594", "0.55915755", "0.5587797", "0.5578026", "0.5550526", "0.55225253", "0.55169237", "0.55169237", "0.5505158", "0.5498368", "0.5498368", "0.5496108", "0.54893845", "0.5486062", "0.54770523", "0.5469597", "0.54665184", "0.546218", "0.545837", "0.5455734", "0.5422873", "0.5410436", "0.5348042", "0.5342201", "0.5335486", "0.53299487", "0.5324495", "0.53243643", "0.53228784", "0.5322289", "0.53052855", "0.53036886", "0.53000396", "0.5276423", "0.5264096", "0.52588093", "0.52570146", "0.5249963", "0.523921", "0.5210962", "0.52089024", "0.5204898", "0.5203023", "0.5200098", "0.5198823", "0.5185239", "0.5174474", "0.5169174", "0.5159709", "0.5148915", "0.5140693", "0.51379734", "0.51247966", "0.5123984", "0.5119396", "0.5111979", "0.5110212", "0.510149", "0.50967836", "0.50964355", "0.5091016", "0.50875187", "0.50835115", "0.5082944", "0.5077005", "0.50722927", "0.50706816", "0.50621045", "0.5059347", "0.5051583", "0.50512403", "0.5049772", "0.5049772", "0.5049772", "0.50483584", "0.5040836", "0.5026792", "0.50258565", "0.5023613", "0.5017206", "0.50168836", "0.5016856", "0.501332", "0.5009833", "0.50088555", "0.50044066", "0.5001634", "0.5001497", "0.5001355", "0.50009775" ]
0.0
-1
/ instance of all database
void db_all(Context context);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GraphDatabaseService GetDatabaseInstance() {\r\n\t\treturn _db;\r\n\t}", "private DBMaster() {\r\n\t\t//The current address is localhost - needs to be changed at a later date\r\n\t\t_db = new GraphDatabaseFactory().newEmbeddedDatabase(\"\\\\etc\\\\neo4j\\\\default.graphdb\");\r\n\t\tregisterShutdownHook();\r\n\t}", "Database createDatabase();", "Database getDataBase() {\n return database;\n }", "public static Database getInstance() {\n if (database == null) database = new Database();\n return database;\n }", "private void getDatabase(){\n\n }", "protected static Database getInstance() {\n if (instance == null) {\n instance = new Database();\n }\n return instance;\n }", "private static MongoDatabase getDatabase(){\n\t\tint port_number = 27017;\n\t\tString host = \"localhost\";\n\n\t\tMongoClient mongoClient = new MongoClient(host, port_number);\n\t\treturn mongoClient.getDatabase(\"myDb\");\n\t}", "public String getDatabase();", "Database getDatabase(Properties properties, ApplicationContext applicationContext);", "public Database<T> getDatabase();", "Object getDB();", "public static Database getInstance() {\r\n\t\t\r\n\t\tif(database_instance == null) {\r\n\t\t\tdatabase_instance = new Database();\t\t\t\r\n\t\t}\r\n\t\treturn database_instance;\t\t\r\n\t}", "private static void initializeDatabase()\n\t{\n\t\tResultSet resultSet = dbConnect.getMetaData().getCatalogs();\n\t\tStatment statement = dbConnect.createStatement();\n\t\t\n\t\tif (resultSet.next())\n\t\t{\n\t\t\tstatement.execute(\"USE \" + resultSet.getString(1));\n\t\t\tstatement.close();\n\t\t\tresultSet.close();\n\t\t\treturn; //A database exists already\n\t\t}\n\t\tresultSet.close();\n\t\t//No database exists yet, create it.\n\t\t\n\t\tstatement.execute(\"CREATE DATABASE \" + dbName);\n\t\tstatement.execute(\"USE \" + dbName);\n\t\tstatement.execute(createTableStatement);\n\t\tstatement.close();\n\t\treturn;\n\t}", "public static DbManager getInstance() {\n \t\treturn INSTANCE;\n \t}", "public Database(){\n ItemBox.getLogger().info(\"[Database] protocol version \" + net.mckitsu.itembox.protocol.ItemBoxProtocol.getVersion());\n }", "public static MongoDatabase loadAll() throws UnknownHostException\r\n\t{\n\t\tmongoClient = new MongoClient(\"localhost\");\r\n\t\tDB dataBase = mongoClient.getDB(\"prism\");\r\n\t\t//\t\tboolean auth = dataBase.authenticate(myUserName, myPassword);\r\n\r\n\t\t// initialize AccManager\r\n\t\tMongoDatabase db = new MongoDatabase(dataBase);\r\n\r\n\t\t//\t\tString name = \"lara\";\r\n\t\t//\t\tAccount a = new Account(new Text(name), new byte[32], name + \"@gmx.de\", new Date(), new Date());\r\n\t\t//\t\tam.createAccount(a);\r\n\t\t//\t\tam.findAccount(a.getAccName());\r\n\t\t//\r\n\t\t//\t\tList<String> list = mongoClient.getDatabaseNames();\r\n\t\t//\t\tSystem.out.print(\"databases: \");\r\n\t\t//\t\tfor (String s : list)\r\n\t\t//\t\t\tSystem.out.print(s + \", \");\r\n\t\t//\t\tSystem.out.println(\" (\" + list.size() + \")\");\r\n\t\t//\t\t// ----------------\r\n\t\t//\t\tDB db = mongoClient.getDB(\"test\");\r\n\t\t//\t\t//\t\t\tboolean auth = db.authenticate(myUserName, myPassword);\r\n\t\t//\r\n\t\t//\t\tSet<String> list2 = db.getCollectionNames();\r\n\t\t//\t\tSystem.out.print(\"collections: \");\r\n\t\t//\t\tfor (String s : list2)\r\n\t\t//\t\t\tSystem.out.print(s + \", \");\r\n\t\t//\t\tSystem.out.println(\" (\" + list2.size() + \")\");\r\n\t\t//\t\t// ----------------\r\n\t\t//\t\tDBCollection coll = db.getCollection(\"test\");\r\n\t\t//\t\tlong n = coll.count();\r\n\t\t//\t\tSystem.out.println(\"collection count: \" + n);\r\n\t\t//\t\t// ----------------\r\n\t\t//\r\n\t\t//\t\tSystem.out.print(\"done\");\r\n\r\n\t\treturn db;\r\n\t}", "protected abstract ODatabaseInternal<?> newDatabase();", "public static Database getInstance() {\n\t\treturn OfflineDatabase.getInstance();\n\t}", "yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database getDatabases(int index);", "java.util.List<yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database> \n getDatabasesList();", "protected DB getDb() throws UnknownHostException {\n return new Mongo(\"localhost\", MongoDBRule.MONGO_PORT).getDB(\"yawl\");\n }", "public abstract String [] listDatabases();", "@Override\r\n\tpublic Database getDefaultDatabase() {\r\n\t\treturn databases.getDatabase( \"default\" );\r\n\t}", "static AppDatabase getDatabase(final Context context) {\n if (INSTANCE == null) { //only a single thread can run this block at once\n //we only want this because we don't want to run too many databases\n synchronized (AppDatabase.class) {\n if(INSTANCE == null) {\n INSTANCE = Room.databaseBuilder(context.getApplicationContext(), AppDatabase.class, \"saved_locations_db\").build(); //build a database object\n }\n\n }\n }\n return INSTANCE;\n }", "public abstract String getDatabaseName();", "private DB getDB() {\n\t\tServletContext context = this.getServletContext();\n\t\tsynchronized (context) {\n\t\t\tDB db = (DB)context.getAttribute(\"DB\");\n\t\t\tif(db == null) {\n\t\t\t\tdb = DBMaker.newFileDB(new File(\"db\")).closeOnJvmShutdown().make();\n\t\t\t\tcontext.setAttribute(\"DB\", db);\n\t\t\t}\n\t\t\tcheckAdminInDB(db);\n\t\t\tcheckCategoriaInDB(db);\n\t\t\treturn db;\n\t\t}\n\t}", "DataBase createDataBase();", "String getDatabase();", "public void creatDataBase(String dbName);", "public DatabaseConnector() {\n String dbname = \"jdbc/jobs\";\n\n try {\n ds = (DataSource) new InitialContext().lookup(\"java:comp/env/\" + dbname);\n } catch (NamingException e) {\n System.err.println(dbname + \" is missing: \" + e.toString());\n }\n }", "public void connect() {\n\n DatabaseGlobalAccess.getInstance().setEmf(Persistence.createEntityManagerFactory(\"PU_dashboarddb\"));\n DatabaseGlobalAccess.getInstance().setEm(DatabaseGlobalAccess.getInstance().getEmf().createEntityManager());\n DatabaseGlobalAccess.getInstance().getDatabaseData();\n DatabaseGlobalAccess.getInstance().setDbReachable(true);\n }", "public Database(String dbName) {\n this.dbName = dbName;\n }", "public Database(String name) {\r\n\t\tthis.name = name;\r\n\t\tDatabaseUniverse.getAllDatabases().add(this);\r\n\t\tDatabaseUniverse.setDatabaseNumber(1);\r\n\t\tCommandLineMenu.setActiveDatabase(this);\r\n\t}", "public Database getDatabase() {\n return dbHandle;\n }", "DbObjectNameAll createDbObjectNameAll();", "private DatabaseHandler(){\n createConnection();\n }", "public DatabaseManager getDatabase() {\n\t\treturn (db);\n\t}", "DatabaseController() {\n\n\t\tloadDriver();\n\t\tconnection = getConnection(connection);\n\t}", "public static DbConnector getInstancia() {\r\n\t\tif (instancia == null) {\r\n\t\t\tinstancia = new DbConnector();\r\n\t\t}\r\n\t\treturn instancia;\r\n\t}", "public DB getDatabase(){\n\t\treturn database;\n\t}", "public List<String> getAllDatabase() throws Exception {\n\t\treturn null;\n\t}", "public DatabaseAdaptor() {\n\t\ttry {\n\t\t\tdatabase = new MyDatabase(DB_NAME);\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public String getDatabase() {\r\n \t\treturn properties.getProperty(KEY_DATABASE);\r\n \t}", "public ODatabaseInternal<?> db() {\n return ODatabaseRecordThreadLocal.INSTANCE.get().getDatabaseOwner();\n }", "void createDb(String dbName);", "public static AbstractDatabaseController getInstance(){\r\n\t\treturn AbstractDatabaseController.instance;\r\n\t}", "public static DBCatalog getInstance(){\n return instance;\n }", "private DatabaseManager() {}", "public void bootstrapDatabase() throws Exception {\n\n }", "private void init() {\n\t\t/* Add the DNS of your database instances here */\n\t\tdatabaseInstances[0] = \"ec2-52-0-167-69.compute-1.amazonaws.com\";\n\t\tdatabaseInstances[1] = \"ec2-52-0-247-64.compute-1.amazonaws.com\";\n\t}", "public List<DatabaseResult> getDatabases() {\n return _databases;\n }", "public DatabaseMeta getSharedDatabase( String name ) {\n return (DatabaseMeta) getSharedObject( DatabaseMeta.class.getName(), name );\n }", "public String[] getDatabaseNames() {\n return context.databaseList();\n }", "public DB returnDB(String database) {\r\n return mongo.getDB(database);\r\n }", "private void setupDatabase() {\r\n\t\tDatabaseHelperFactory.init(this);\r\n\t\tdatabase = DatabaseHelperFactory.getInstance();\r\n\t}", "public SQLiteDatabase getDatabaseInstance() {\n return db;\n }", "public void setDatabase(Connection _db);", "public String databaseName();", "public static Area28Database getDatabase(final Context context) {\n if (INSTANCE == null) {\n synchronized (Area28Database.class) {\n if (INSTANCE == null) {\n INSTANCE = Room.databaseBuilder(context.getApplicationContext(),\n Area28Database.class, database_name)\n .build();\n\n // Copy pre-created database to application runtime memory space\n try {\n copyDatabase(context, database_name);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }\n return INSTANCE;\n }", "public interface DatabaseFactory {\r\n\r\n Database makeDatabase();\r\n}", "private void setupDBs()\n {\n\t mSetupDBTask = new SetupDBTask(this);\n\t\tmSetupDBTask.execute((Void[])null);\n }", "private createSingletonDatabase()\n\t{\n\t\tConnection conn = createDatabase();\n\t\tcreateTable();\n\t\tString filename = \"Summer expereince survey 2016 for oliver.csv\"; \n\t\timportData(conn, filename);\n\t}", "public Database getDatabase() {\n\t\tDatabase database = null;\n\t\t//TODO fail when more than one provider was found?\n\t\ttry {\n\t\t\tIterator<Database> databaseProviders = loader.iterator();\n\t\t\twhile (database == null && databaseProviders.hasNext()) {\n\t\t\t\tdatabase = databaseProviders.next();\n\t\t\t\tlog.debug(\"Found database service provider {\" + database.getClass() + \"}\");\n\t\t\t}\n\t\t} catch (ServiceConfigurationError serviceError) {\n\t\t\tserviceError.printStackTrace();\n\t\t}\n\t\tif (database == null) {\n\t\t\tthrow new RuntimeException(\"Could not find database provider.\");\n\t\t}\n\t\treturn database;\n\t}", "public DatabaseManager() {\n try {\n con = DriverManager.getConnection(DB_URL, \"root\", \"marko\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "private static IOseeDatabaseService getDatabase() throws OseeDataStoreException {\n return ServiceUtil.getDatabaseService();\n }", "public static void main(String[] args){\n\n DbSingleton instance = DbSingleton.getInstance();\n\n //DbSingleton test = new DbSingleton();\n DbSingleton instance2 = DbSingleton.getInstance();\n\n System.out.println(instance);\n System.out.println(instance2);\n\n }", "@java.lang.Override\n public java.util.List<yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database> getDatabasesList() {\n return databases_;\n }", "@java.lang.Override\n public yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.Database getDatabases(int index) {\n return databases_.get(index);\n }", "public static String getDatabase() {\r\n return database;\r\n }", "public static Database getInstance(Context ctx) {\n if (mInstance == null) {\n mInstance = new Database(ctx.getApplicationContext());\n }\n return mInstance;\n }", "public String getDatabase() {\r\n return Database;\r\n }", "java.lang.String getDatabaseName();", "java.lang.String getDatabaseName();", "java.lang.String getDatabaseName();", "java.lang.String getDatabaseName();", "public String getDatabase() {\n return this.database;\n }", "public static MongoDatabase init() {\n\n\t\tMongoClientURI connectionString = new MongoClientURI(\n\t\t\t\t\"mongodb+srv://xxxxx:[email protected]/test\");\n\t\tMongoClient mongoClient = new MongoClient(connectionString);\n\n\t\tMongoDatabase database = mongoClient.getDatabase(\"city\");\n\n\t\treturn database;\n\n\t}", "public Database getDatabase() {\n\t\treturn this.database;\n\t}", "public abstract ODatabaseInternal<?> openDatabase();", "public static Database getInstance() throws SQLException, ClassNotFoundException {\r\n if (Database.instance == null) {\r\n instance = new Database();\r\n }\r\n return instance;\r\n }", "public Database()\r\n\t{\r\n\t\tinitializeDatabase();\r\n\t\t\r\n\t}", "public static void createDataBase() {\n final Configuration conf = new Configuration();\n\n addAnnotatedClass(conf);\n\n conf.configure();\n new SchemaExport(conf).create(true, true);\n }", "protected MongoDatabase getDB() {\n return mongoClient.getDatabase(\"comp391_yourusername\");\n }", "public DBManager(){\r\n connect(DBConstant.driver,DBConstant.connetionstring);\r\n }", "public GosplPopulationInDatabase() {\n\t\ttry {\n\t\t\tthis.connection = DriverManager.getConnection(\n\t\t\t\t\t\"jdbc:hsqldb:mem:\"+mySqlDBname+\";shutdown=true\", \"SA\", \"\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"error while trying to initialize the HDSQL database engine in memory: \"+e.getMessage(), e);\n\t\t}\n\t}", "@Override\n public Database getDatabase() {\n return m_database;\n }", "public DB getDB() {\n return database;\n }", "yandex.cloud.api.mdb.mongodb.v1.DatabaseOuterClass.DatabaseSpec getDatabaseSpec();", "boolean hasDatabase();", "public static MyDatabase getDatabase() {\n if (instance == null) {\n synchronized (MyDatabase.class) {\n if (instance == null) {\n instance = Room.databaseBuilder(Constants.context.getApplicationContext(),\n MyDatabase.class, Constants.DATABASE_NAME)\n .build();\n }\n }\n }\n return instance;\n }", "@Override\n public String getDatabaseName() {\n return mappings.getDatabaseName();\n }", "public static synchronized Database get() {\n return instance;\n }", "public messages.Databaseinterface.DatabaseInterface getDatabase() {\n return database_;\n }", "private Database() throws SQLException {\n con = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:MusicAlbums\", \"c##dba\", \"sql\");\n }", "public interface LocalDatabase {\n void start();\n void stop();\n boolean isAvailable();\n\n String getUrl();\n String getDriver();\n String getUsername();\n String getPassword();\n String getDialect();\n}", "@Override\n\t@SuppressWarnings(\"unchecked\")\n\tpublic void start() {\n\t\tinitLogger();\n\n\t\tif (!databaseEnabled) {\n\t\t\tlog.info(\"DB not enabled.\");\n\t\t\treturn;\n\t\t}\n\n\t\tlog.info(\"DB start ----------\");\n\n\t\tfinal PetiteContainer petiteContainer = joyPetiteSupplier.get().getPetiteContainer();\n\n\t\t// connection pool\n\t\tconnectionProvider = createConnectionProviderIfNotSupplied();\n\n\t\tpetiteContainer.addBean(beanNamePrefix() + \"pool\", connectionProvider);\n\n\t\tif (connectionProvider instanceof CoreConnectionPool) {\n\t\t\tfinal CoreConnectionPool pool = (CoreConnectionPool) connectionProvider;\n\t\t\tif (pool.getDriver() == null) {\n\t\t\t\tdatabaseEnabled = false;\n\t\t\t\tlog.warn(\"DB configuration not set (\" + beanNamePrefix() + \"pool.*). DB will be disabled.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tconnectionProvider.init();\n\n\t\tcheckConnectionProvider();\n\n\t\t// transactions manager\n\t\tjtxManager = createJtxTransactionManager(connectionProvider);\n\t\tjtxManager.setValidateExistingTransaction(true);\n\n\t\tfinal AnnotationTxAdviceManager annTxAdviceManager = new AnnotationTxAdviceManager(new LeanJtxWorker(jtxManager), jtxScopePattern);\n\t\tAnnotationTxAdviceSupport.manager = annTxAdviceManager;\n\n\t\t// create proxy\n\t\tjoyProxettaSupplier.get().getProxetta().withAspect(createTxProxyAspects(annTxAdviceManager.getAnnotations()));\n\n\t\tfinal DbSessionProvider sessionProvider = new DbJtxSessionProvider(jtxManager);\n\n\t\t// querymap\n\t\tfinal long startTime = System.currentTimeMillis();\n\n\t\tfinal QueryMap queryMap = new DbPropsQueryMap();\n\n\t\tlog.debug(\"Queries loaded in \" + (System.currentTimeMillis() - startTime) + \"ms.\");\n\t\tlog.debug(\"Total queries: \" + queryMap.size());\n\n\t\t// dboom\n\t\tdbOom = DbOom.create()\n\t\t\t.withConnectionProvider(connectionProvider)\n\t\t\t.withSessionProvider(sessionProvider)\n\t\t\t.withQueryMap(queryMap)\n\t\t\t.get();\n\n\t\tdbOom.connect();\n\n\t\tfinal DbEntityManager dbEntityManager = dbOom.entityManager();\n\t\tdbEntityManager.reset();\n\n\t\tpetiteContainer.addBean(beanNamePrefix() + \"query\", dbOom.queryConfig());\n\t\tpetiteContainer.addBean(beanNamePrefix() + \"oom\", dbOom.config());\n\n\t\t// automatic configuration\n\t\tif (autoConfiguration) {\n\t\t\tfinal AutomagicDbOomConfigurator automagicDbOomConfigurator =\n\t\t\t\tnew AutomagicDbOomConfigurator(dbEntityManager, true);\n\n\t\t\tautomagicDbOomConfigurator.configure();\n\t\t}\n\n\t\tdbEntityManagerConsumers.accept(dbEntityManager);\n\n\t\tlog.info(\"DB OK!\");\n\t}", "public Database() {\n size = 0;\n tables = new HashMap();\n p = new Parse(this);\n }", "public static DatabaseConnection getDb() {\n return db;\n }", "public DataHandlerDBMS() {\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tDBMS = DriverManager.getConnection(url);\n\t\t\tSystem.out.println(\"DBSM inizializzato\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Errore apertura DBMS\");\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"Assenza driver mySQL\");\n\t\t}\n\t}" ]
[ "0.715381", "0.7057678", "0.6956365", "0.6706847", "0.6699695", "0.66959727", "0.6691323", "0.66479385", "0.6639628", "0.6617022", "0.6575066", "0.6551765", "0.64868045", "0.64855707", "0.6482147", "0.6452595", "0.6430351", "0.64021474", "0.63992953", "0.6366706", "0.63594544", "0.63543755", "0.63452995", "0.6342902", "0.6330448", "0.6327861", "0.63276744", "0.6322799", "0.6321372", "0.6316819", "0.62903243", "0.62845254", "0.6281795", "0.62607235", "0.6259221", "0.6254819", "0.62455314", "0.62350106", "0.6227994", "0.6226938", "0.62252426", "0.6222115", "0.62173945", "0.619427", "0.618791", "0.6174935", "0.6169669", "0.61577266", "0.6145924", "0.6143796", "0.614057", "0.61326885", "0.61262983", "0.61244446", "0.6122341", "0.6121285", "0.6117402", "0.61147046", "0.61090136", "0.61002755", "0.60941714", "0.60928816", "0.60907984", "0.6084118", "0.60814214", "0.60735935", "0.6067037", "0.6054073", "0.6050383", "0.60467094", "0.60437834", "0.6038125", "0.60359293", "0.60359293", "0.60359293", "0.60359293", "0.6030843", "0.6020858", "0.60177666", "0.6016768", "0.60044485", "0.59984535", "0.5992889", "0.5991414", "0.59910774", "0.5989177", "0.5987585", "0.59770304", "0.59672713", "0.59604204", "0.59564584", "0.59509254", "0.5941405", "0.5939185", "0.5938012", "0.5937065", "0.5932521", "0.592988", "0.592797", "0.59272134" ]
0.63458806
22
This doesn't make sense right now. Will be revisited when we implement quote
String getDisplayValue() { return symbol; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getQuote();", "Quote createQuote();", "public Quotes() { }", "boolean isQuote();", "public LocalQuote\t\tgetQuote();", "@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 String getQuotes() {\r\n\t\treturn this.quotes;\r\n\t}", "QuoteTerm createQuoteTerm();", "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}", "protected void testForOpenQuotes() {\n\t\tif (this.inQuotes) {\n\t\t\tgetProcessor().recordUnevenQuotes();\n\t\t}\n\t}", "protected String getQuote() {\n return \"\\\"\";\n }", "public Quotes() {\n\t\tthis(\"quotes\", null);\n\t}", "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 ATObject meta_quote(ATContext ctx) throws InterpreterException {\n\t\treturn unqExp_.meta_eval(ctx);\n\t}", "@Test\n public void deletesQuote() throws Exception {\n final Base base = new DyBase(\n this.dynamo.region(), new MkSttc().counters().get(\"tf8\")\n );\n final String name = \"walter2007\";\n final Book book = base.books().add(\n String.format(\"@book{%s, author=\\\"Walter Sobchak\\\"}\", name)\n );\n final Quotes quotes = base.quotes();\n final Quote quote = quotes.add(\n book, \"never give up, never ever\", \"99-103\"\n );\n MatcherAssert.assertThat(\n quotes.refine(name).iterate(),\n Matchers.<Quote>iterableWithSize(1)\n );\n quotes.delete(quote.number());\n MatcherAssert.assertThat(\n quotes.refine(name).iterate(),\n Matchers.<Quote>iterableWithSize(0)\n );\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 }", "String applyQuote(String name);", "protected GuiTestObject getQuote() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"getQuote\"));\n\t}", "public void getQuote(String symbol)\r\n {\r\n brokerage.getQuote(symbol, this);\r\n }", "QuoteNote createQuoteNote();", "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 static String randomQuote() {\n\t\tint i = (int) (Math.random() * quotes.length);\n\t\treturn quotes[i];\n\t}", "String getQuoteOfTheDay();", "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 String quote(String s) {\r\n\t\treturn this.getQuotes().concat(s).concat(this.getQuotes());\r\n\t}", "@Override\n\tprotected void testForOpenSingleQuotes() {\n\t}", "QuoteItem createQuoteItem();", "QuoteType createQuoteType();", "QuoteAttribute createQuoteAttribute();", "boolean accept(StockQuote pQuote);", "public void quote() {\n text.append(\"\\'\");\n }", "private boolean noquotes() {\r\n return OPT(GO() && noquote() && noquotes());\r\n }", "private int getMQuote()\n {\n if (mQuote != 0)\n {\n return mQuote; // already calculated\n }\n\n// assert this.sign > 0;\n\n int d = -magnitude[magnitude.length - 1];\n\n// assert (d & 1) != 0;\n\n return mQuote = modInverse32(d);\n }", "public String getInspirationalQuote() {\n\t\treturn inspirationalQuote;\n\t}", "public String getQuoteCharacter() {\n return this.quoteCharacter;\n }", "public Quote(String ticker, String idfinam) {\n this.ticker = ticker;\n this.idfinam = idfinam;\n }", "public void setQuoted( boolean quote ) {\n quote_ = quote;\n }", "private static final String quote(String s) {\n return s == null ? \"(null)\" : \"\\\"\" + s + '\"';\n }", "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}", "QuoteAdjustment createQuoteAdjustment();", "public Quote(String quoteBody, String author){\n this.quoteBody = quoteBody;\n this.author = author;\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 char openQuote() {\n \t\treturn '\"';\n \t}", "public java.lang.Object getQuoteID() {\n return quoteID;\n }", "amdocs.iam.pd.pdwebservices.GetQuoteDocument.GetQuote getGetQuote();", "@Override\n\tprotected void testForOpenDoubleQuotes() {\n\t}", "public void onQuote(Quote event) {\n quoteCount++;\n }", "public String quote(Stack<String> StackLinea) {\n String quote = \"\";\n \n while(!StackLinea.isEmpty()) {\n if(StackLinea.peek().equals(\"(\") && StackLinea.get(StackLinea.size() - 2).equals(\"quote\")) {\n quote = quote + \"' \";\n StackLinea.pop();\n StackLinea.pop();\n StackLinea.remove(0);\n }\n else\n quote = quote + StackLinea.pop() + \" \";\n }\n \n quote = quote.replace(\" ( \", \"(\");\n quote = quote.replace(\" ) \", \")\");\n quote = quote.replace(\"( \", \"(\");\n quote = quote.replace(\") \", \")\");\n \n return quote;\n }", "public void setQuoteCharacter(String quoteCharacter) {\n this.quoteCharacter = quoteCharacter;\n }", "@Override\n public String doQuote(String identifier) {\n return \"\\\"\" + identifier + \"\\\"\";\n }", "private String stripQuotes( String quoted ) { return quoted.substring( 1, quoted.length() - 1 ); }", "private static String quote(String identifierPart, char quotingChar) {\n if (identifierPart == null) {\n return null;\n }\n\n if (identifierPart.isEmpty()) {\n return new StringBuilder().append(quotingChar).append(quotingChar).toString();\n }\n\n if (identifierPart.charAt(0) != quotingChar && identifierPart.charAt(identifierPart.length() - 1) != quotingChar) {\n identifierPart = identifierPart.replace(quotingChar + \"\", repeat(quotingChar));\n identifierPart = quotingChar + identifierPart + quotingChar;\n }\n\n return identifierPart;\n }", "QuoteCoefficient createQuoteCoefficient();", "void setGetQuote(amdocs.iam.pd.pdwebservices.GetQuoteDocument.GetQuote getQuote);", "private String doubleQuote( String raw ) { return '\"' + raw + '\"'; }", "@Test\n public void fieldQuote() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Insert a QUOTE field, which will display the value of its Text property.\n FieldQuote field = (FieldQuote) builder.insertField(FieldType.FIELD_QUOTE, true);\n field.setText(\"\\\"Quoted text\\\"\");\n\n Assert.assertEquals(\" QUOTE \\\"\\\\\\\"Quoted text\\\\\\\"\\\"\", field.getFieldCode());\n\n // Insert a QUOTE field and nest a DATE field inside it.\n // DATE fields update their value to the current date every time we open the document using Microsoft Word.\n // Nesting the DATE field inside the QUOTE field like this will freeze its value\n // to the date when we created the document.\n builder.write(\"\\nDocument creation date: \");\n field = (FieldQuote) builder.insertField(FieldType.FIELD_QUOTE, true);\n builder.moveTo(field.getSeparator());\n builder.insertField(FieldType.FIELD_DATE, true);\n\n Assert.assertEquals(\" QUOTE \\u0013 DATE \\u0014\" + LocalDate.now().format(DateTimeFormatter.ofPattern(\"M/d/YYYY\")) + \"\\u0015\", field.getFieldCode());\n\n // Update all the fields to display their correct results.\n doc.updateFields();\n\n Assert.assertEquals(\"\\\"Quoted text\\\"\", doc.getRange().getFields().get(0).getResult());\n\n doc.save(getArtifactsDir() + \"Field.QUOTE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.QUOTE.docx\");\n\n TestUtil.verifyField(FieldType.FIELD_QUOTE, \" QUOTE \\\"\\\\\\\"Quoted text\\\\\\\"\\\"\", \"\\\"Quoted text\\\"\", doc.getRange().getFields().get(0));\n\n TestUtil.verifyField(FieldType.FIELD_QUOTE, \" QUOTE \\u0013 DATE \\u0014\" + LocalDate.now().format(DateTimeFormatter.ofPattern(\"M/d/YYYY\")) + \"\\u0015\",\n LocalDate.now().format(DateTimeFormatter.ofPattern(\"M/d/YYYY\")), doc.getRange().getFields().get(1));\n\n }", "@Override\r\npublic Object produceValue(Annotation np, Document doc)\r\n{\n SortedSet<Integer> quoteLocations = new TreeSet<Integer>();\r\n Pattern p = Pattern.compile(\"\\\"|''|``|\\u201C|\\u201D\");\r\n\r\n String text = doc.getText();\r\n Matcher m = p.matcher(text);\r\n\r\n boolean inQuote = false;\r\n while (m.find()) {\r\n int start = m.start();\r\n if (inQuote && (text.substring(start).startsWith(\"``\") || text.substring(start).startsWith(\"\\u201C\"))) {\r\n // We have an opening quote; Make sure the previous quote is closed\r\n quoteLocations.add((start - 1));\r\n inQuote = false;\r\n }\r\n quoteLocations.add((start));\r\n inQuote = !inQuote;\r\n }\r\n // System.out.println(\"Quote locations: \"+quoteLocations);\r\n\r\n // Figure out which noun corresponds to which quote\r\n AnnotationSet sent = doc.getAnnotationSet(Constants.SENT);\r\n Iterator<Integer> quoteIter = quoteLocations.iterator();\r\n HashMap<Integer, Annotation> reporters = new HashMap<Integer, Annotation>();\r\n HashMap<Integer, Annotation> companies = new HashMap<Integer, Annotation>();\r\n HashMap<Integer, Annotation> sentReporter = new HashMap<Integer, Annotation>();\r\n HashMap<Integer, Annotation> compReporter = new HashMap<Integer, Annotation>();\r\n int counter = 1;\r\n while (quoteIter.hasNext()) {\r\n int qStart = quoteIter.next();\r\n if (!quoteIter.hasNext()) {\r\n break;\r\n }\r\n int qEnd = quoteIter.next() + 1;\r\n\r\n AnnotationSet sentences = sent.getOverlapping(qStart, qEnd);\r\n\r\n // Three cases for the size of the sentences set\r\n Annotation match, compMatch;\r\n if (sentences.size() < 1) {\r\n System.out.println(\"Quote is not covered by any sentence:\");\r\n int beg = qStart - 15;\r\n beg = beg < 0 ? 0 : beg;\r\n int en = qStart + 15;\r\n en = en >= text.length() ? text.length() - 1 : en;\r\n System.out.println(Utils.getAnnotText(beg, en, text));\r\n System.out.println(\"Position \" + qStart);\r\n match = Annotation.getNullAnnot();\r\n compMatch = Annotation.getNullAnnot();\r\n // throw new RuntimeException(\"Quote is not covered by any sentence\");\r\n }\r\n else if (sentences.size() == 1) {\r\n Annotation s = sentences.getFirst();\r\n // System.out.println(\"Sent: \"+Utils.getAnnotText(s, text));\r\n if (s.properCovers(qStart, qEnd)) {\r\n match = findReporter(qStart, qEnd, s, doc);\r\n compMatch = findCompany(qStart, qEnd, s, doc);\r\n if (match.equals(Annotation.getNullAnnot())) {\r\n match = findReportCont(sentReporter, s, doc);\r\n compMatch = findReportCont(compReporter, s, doc);\r\n }\r\n }\r\n else {\r\n match = findReportCont(sentReporter, s, doc);\r\n compMatch = findReportCont(compReporter, s, doc);\r\n }\r\n sentReporter.put(Integer.decode(s.getAttribute(\"sentNum\")), match);\r\n compReporter.put(Integer.decode(s.getAttribute(\"sentNum\")), compMatch);\r\n }\r\n else {\r\n // The quoted string spans more than one sentence.\r\n Annotation beg = sentences.getFirst();\r\n // System.out.println(\"First sent: \"+Utils.getAnnotText(beg, text));\r\n Annotation end = sentences.getLast();\r\n // System.out.println(\"Last sent: \"+Utils.getAnnotText(end, text));\r\n match = Annotation.getNullAnnot();\r\n compMatch = Annotation.getNullAnnot();\r\n if (beg.getStartOffset() < qStart) {\r\n match = findReporter(qStart, qEnd, beg, doc);\r\n compMatch = findCompany(qStart, qEnd, beg, doc);\r\n }\r\n if (match.equals(Annotation.getNullAnnot()) && qEnd < end.getEndOffset()) {\r\n match = findReporter(qStart, qEnd, end, doc);\r\n compMatch = findCompany(qStart, qEnd, end, doc);\r\n }\r\n if (match.equals(Annotation.getNullAnnot())) {\r\n match = findReportCont(sentReporter, beg, doc);\r\n compMatch = findCompany(qStart, qEnd, end, doc);\r\n }\r\n sentReporter.put(Integer.parseInt(beg.getAttribute(\"sentNum\")), match);\r\n sentReporter.put(Integer.parseInt(end.getAttribute(\"sentNum\")), match);\r\n compReporter.put(Integer.parseInt(beg.getAttribute(\"sentNum\")), compMatch);\r\n compReporter.put(Integer.parseInt(end.getAttribute(\"sentNum\")), compMatch);\r\n\r\n }\r\n reporters.put(counter, match);\r\n companies.put(counter, compMatch);\r\n counter += 2;\r\n\r\n // System.out.println(\"Quote: \"+Utils.getAnnotText(qStart, qEnd, text));\r\n // if(!match.equals(Annotation.getNullAnnot())){\r\n // System.out.println(\"Match: \"+Utils.getAnnotText(match, text));\r\n // }else{\r\n // System.out.println(\"no match!\");\r\n // }\r\n }\r\n int initial = quoteLocations.size();\r\n\r\n AnnotationSet nps = doc.getAnnotationSet(Constants.NP);\r\n for (Annotation a : nps.getOrderedAnnots()) {\r\n int s = a.getStartOffset();\r\n quoteLocations = quoteLocations.tailSet(s);\r\n int numQuotes = initial - quoteLocations.size();\r\n\r\n // System.err.println(numQuotes);\r\n if (numQuotes % 2 == 0) {\r\n a.setProperty(this, -1);\r\n a.setProperty(Property.AUTHOR, Annotation.getNullAnnot());\r\n a.setProperty(Property.COMP_AUTHOR, Annotation.getNullAnnot());\r\n }\r\n else {\r\n a.setProperty(this, numQuotes);\r\n a.setProperty(Property.AUTHOR, reporters.get(numQuotes));\r\n a.setProperty(Property.COMP_AUTHOR, companies.get(numQuotes));\r\n // if(FeatureUtils.isPronoun(a, annotations, text)&&FeatureUtils.getPronounPerson(FeatureUtils.getText(a,\r\n // text))==1\r\n // &&FeatureUtils.NumberEnum.SINGLE.equals(FeatureUtils.getNumber(a, annotations, text))){\r\n // Annotation repo = reporters.get(new Integer(numQuotes));\r\n // if(repo==null||repo.equals(Annotation.getNullAnnot())){\r\n // Annotation thisSent = sent.getOverlapping(a).getFirst();\r\n // System.out.println(\"*** No author in \"+Utils.getAnnotText(thisSent, text+\"***\"));\r\n // }\r\n // }\r\n }\r\n }\r\n // System.out.println(\"End of inquote\");\r\n\r\n return np.getProperty(this);\r\n}", "QuotePackage getQuotePackage();", "private String getQuote(String[] i_StringArray) {\n Random random = new Random();\n int randomNumber = random.nextInt(i_StringArray.length + 1); // a random number indicating some index in the array.\n String randomString = i_StringArray[randomNumber]; // a string corresponding to the random index chosen.\n\n return randomString;\n }", "@Override\n public String applyQuoteIfNeeded(final String identifier) {\n return applyQuote(identifier);\n }", "private boolean noquote() {\r\n return NOT(GO() && CHAR('\\'')) && literal();\r\n }", "public ForexQuote getDccQuote() {\n return dccQuote;\n }", "private String q(String s) {\r\n\t\treturn '\"' + s + '\"';\r\n\t}", "private static String quote(String text) {\r\n String result;\r\n if (null == text) {\r\n result = text;\r\n } else {\r\n result = \"\\\"\" + text + \"\\\"\";\r\n }\r\n return result;\r\n }", "public void checkQuotas() {\n checkQuotas(time.milliseconds());\n }", "@Override\n\tprotected void handleSingleQuote() {\n\n\t\tif (this.trackSingleQuotes) {\n\t\t\tboolean ignoreThisQuote = false;\n\n\t\t\tif (!this.inSingleQuotes) {\n\t\t\t\tif (!this.lastCharTokenDelim) {\n\t\t\t\t\t//We are not in single quotes and the last character was not a word delimiter...\n\t\t\t\t\t//This is therefore probably an apostrophe and should be ignored\n\t\t\t\t\tignoreThisQuote = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!ignoreThisQuote) {\n\t\t\t\tthis.inQuotes = !this.inQuotes;\n\t\t\t}\n\n\t\t\t//If no longer in single quotes this indicates the end of a sentence if the last char was a sentence delimiter\n\t\t\tif (!ignoreThisQuote && !this.inSingleQuotes) {\n\t\t\t\ttestForQuotedEndOfSentence();\n\t\t\t}\n\t\t}\n\t}", "protected GuiTestObject getQuote(TestObject anchor, long flags) \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"getQuote\"), anchor, flags);\n\t}", "public final String quote(String name) {\n \t\tif ( name == null ) {\n \t\t\treturn null;\n \t\t}\n \n \t\tif ( name.charAt( 0 ) == '`' ) {\n \t\t\treturn openQuote() + name.substring( 1, name.length() - 1 ) + closeQuote();\n \t\t}\n \t\telse {\n \t\t\treturn name;\n \t\t}\n \t}", "QuoteTypeAttr createQuoteTypeAttr();", "public interface Tradable {\n\n /**\n * Get method returns the product symbol (IBM, GOOG).\n *\n * @return product symbol\n */\n String getProduct();\n\n /**\n * Get method returns the price of the tradable.\n *\n * @return price object\n * @throws Exception\n */\n Price getPrice() throws Exception;\n\n /**\n * Get method returns the original volume (quantity) of the tradable.\n *\n * @return volume of tradable\n */\n int getOriginalVolume();\n\n /**\n * Get method returns the remaining volume of the tradable.\n *\n * @return remaining volume\n */\n int getRemainingVolume();\n\n /**\n * Get method returns the canceled volume of the tradable.\n *\n * @return canceled volume\n */\n int getCancelledVolume();\n\n /**\n * Set method sets the tradable canceled quantity to the value passed in.\n *\n * @param newCancelledVolume\n * @throws Exception\n */\n void setCancelledVolume(int newCancelledVolume) throws Exception;\n\n /**\n * Set method sets the tradable remaining quantity to the value passed in.\n *\n * @param newRemainingVolume\n * @throws Exception\n */\n void setRemainingVolume(int newRemainingVolume) throws Exception;\n\n /**\n * Get method returns the user id associated with the tradable.\n *\n * @return user id\n */\n String getUser();\n\n /**\n * Get method returns the \"side\" (BUY/SELL) of the tradable.\n *\n * @return side of book\n */\n BookSide getSide();\n\n /**\n * Is quote method returns true if the tradable is part of a quote, returns\n * false if not.\n *\n * @return boolean if quote\n */\n boolean isQuote();\n\n /**\n * Get method returns the tradable \"id\" or system id.\n *\n * @return id of tradable\n */\n String getId();\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 }", "public void recordOpeningQuote(Quote openingQuote_, MarketDataSession marketDataSession_);", "protected String quoteIdentifiers(String s) {\n return databasePlatform.convertQuotedIdentifiers(s);\n }", "@Override\n\tpublic Quotation generateQuotation(ClientInfo info) {\n\t\t// Create an initial quotation between 800 and 1000\n\t\tdouble price = generatePrice(800, 200);\n\t\t\n\t\t// 5% discount per penalty point (3 points required for qualification)\n\t\tint discount = (info.points > 3) ? 5*info.points:-50;\n\t\t\n\t\t// Add a no claims discount\n\t\tdiscount += getNoClaimsDiscount(info);\n\t\t\n\t\t// Generate the quotation and send it back\n\t\treturn new Quotation(COMPANY, generateReference(PREFIX), (price * (100-discount)) / 100);\n\t}", "public void setQuoteID(java.lang.Object quoteID) {\n this.quoteID = quoteID;\n }", "public void setQuoteChar(char quoteChar) {\n\t\tthis.quoteChar = quoteChar;\n\t}", "QuoteTermAttribute createQuoteTermAttribute();", "@attribute(value = \"\", required = false)\t\r\n\tpublic void setQuoteText(Boolean quote) {\r\n\t\tthis.quoteText = quote;\r\n\t}", "private boolean threeQuotes(int ch) {\n // reader.readChar() ; // Read first quote.\n int ch2 = reader.peekChar();\n if (ch2 != ch) {\n // reader.pushbackChar(ch2) ;\n return false;\n }\n\n reader.readChar(); // Read second quote.\n int ch3 = reader.peekChar();\n if (ch3 != ch) {\n // reader.pushbackChar(ch3) ;\n reader.pushbackChar(ch2);\n return false;\n }\n\n // Three quotes.\n reader.readChar(); // Read third quote.\n return true;\n }", "private boolean nodquotes() {\r\n return OPT(GO() && NOT(GO() && CHAR('\"')) && literal() && nodquotes());\r\n }", "@Override\n\tpublic String sqlQuote(String name) {\n\t\treturn String.format(\"\\\"%s\\\"\", name);\n//\t\treturn name;\n\t}", "@Override\n public void createPolicyFromQuote(Policy policy, Quote quote) {\n checkCommonData(quote.getCommonData());\n ProductUtils.validateMainInsured(quote);\n\n // There is only one insured at this point\n Insured insured = quote.getInsureds().get(0);\n\n // check main insured stuff\n ProductUtils.checkInsuredAgeInRange(insured, MIN_AGE, MAX_AGE);\n ProductUtils.checkMainInsured(insured);\n checkMainInsured10ECSpecific(insured);\n\n // Recalculate the quote\n //TODO this method do nothing!!!\n calculateQuote(quote, null);\n\n // check for calculated data\n ProductUtils.validateNumberOfCoverages(quote.getCoverages());\n\n // There is only one coverage at this point\n Coverage coverage = quote.getCoverages().get(0);\n\n ProductUtils.checkBeneficiaries(insured, coverage.getBeneficiaries());\n check10ECPremiumsData(quote.getPremiumsData(), insured.getStartDate());\n\n // Copy from quote to Policy\n policy.setQuoteId(quote.getQuoteId());\n policy.setCommonData(SerializationUtils.clone(quote.getCommonData()));\n policy.setPremiumsData(SerializationUtils.clone(quote.getPremiumsData()));\n policy.addCoverage(SerializationUtils.clone(coverage));\n policy.addInsured(SerializationUtils.clone(insured));\n\n // Add payment schedule\n addPayments(policy, DURATION_PAYMENT_IN_YEAR);\n }", "public void updateQuote(){\n\t\tDate date = new Date();\n\t\tlong maxTimeNoUpdate = Long.parseLong(config.getQOTD_expiration_time());\n\n\t\tlong timeNow = date.getTime()/1000L;\n\t\tlong timeLastQuote = 0;\n\n\t\ttry {\n\t\t\tcrs = qb.selectFrom(\"qotd\").all().executeQuery();\n\t\t\tif(crs.next()){\n\t\t\t\ttimeLastQuote = crs.getDate(\"date\").getTime()/1000L;\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\n\t\tif(timeNow-timeLastQuote > maxTimeNoUpdate){\n\t\t\tSystem.out.println(\"UPDATING QUOTE\");\n\t\t\tsaveQuote();\n\t\t} else {\n\t\t\tSystem.out.println(\"QUOTE IS UP TO DATE\");\n\t\t}\n\t}", "public void putQuote(Quote q) {\n\t\tquoteMap.put(q.getSymbolInfo().getSymbol(), q);\n\t\tif(q.getRequestSymbol() != null) {\n\t\t\tquoteMap.put(q.getRequestSymbol(), q);\n\t\t}\n\t}", "public String quotate(String content){\n\n return \"'\"+content+\"'\";\n }", "public Quotes(String alias) {\n\t\tthis(alias, QUOTES);\n\t}", "public void setInspirationalQuote(String inspirationalQuote) {\n\t\tthis.inspirationalQuote = inspirationalQuote;\n\t}", "public String toString(char quote)\n {\n StringBuilder builder = new StringBuilder();\n dump(builder, 0, quote);\n return builder.toString();\n }", "void stringifyPair(boolean quoted, StringBuffer buf) {\n\t\tString special = null;\n\t\tif ((rest instanceof Pair) && rest(rest) == null)\n\t\t\tspecial = (first == \"quote\") ? \"'\" : (first == \"quasiquote\") ? \"`\"\n\t\t\t\t: (first == \"unquote\") ? \",\" : (first == \"unquote-splicing\") ? \",@\"\n\t\t\t\t: null;\n\n\t\tif (special != null) {\n\t\t\tbuf.append(special); stringify(second(this), quoted, buf);\n\t\t} else {\n\t\t\tbuf.append('(');\n\t\t\tstringify(first, quoted, buf);\n\t\t\tObject tail = rest;\n\t\t\twhile (tail instanceof Pair) {\n\t\t\t\tbuf.append(' ');\n\t\t\t\tstringify(((Pair)tail).first, quoted, buf);\n\t\t\t\ttail = ((Pair)tail).rest;\n\t\t\t}\n\t\t\tif (tail != null) {\n\t\t\t\tbuf.append(\" . \");\n\t\t\t\tstringify(tail, quoted, buf);\n\t\t\t}\n\t\t\tbuf.append(')');\n\t\t}\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}", "public String getQuote(String weather){\n String quote = null;\n Random indexer = new Random();\n int index = indexer.nextInt(4);\n if(weather.equals(\"SUN\"))\n quote = String.format(\": %s\", this.sun[index]);\n else if(weather.equals(\"RAIN\"))\n quote = String.format(\": %s\", this.rain[index]);\n else if(weather.equals(\"FOG\"))\n quote = String.format(\": %s\", this.fog[index]);\n else if(weather.equals(\"SNOW\"))\n quote = String.format(\": %s\", this.snow[index]);\n\n return quote;\n }", "public Integer getQuoteId() {\n\t\treturn quoteId;\n\t}", "static String escape(String str,char quote) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(quote);\n\t\tsb.append(str.replaceAll(Character.toString(quote), \"\\\\\"+quote));\n\t\tsb.append(quote);\n\t\treturn sb.toString();\n\t}", "amdocs.iam.pd.pdwebservices.GetQuoteDocument.GetQuote addNewGetQuote();", "private boolean nobquotes() {\r\n return OPT(GO() && NOT(GO() && CHAR('`')) && literal() && nobquotes());\r\n }", "private void eatTripleQuote() {\n position += 3;\n while (position < length) {\n if (data.charAt(position) == '\\'' && isTripleQuoteAtPosition()) {\n tokenStart += 3;\n tokenEnd = position;\n isEscaped = true;\n position += 3;\n return;\n }\n\n position++;\n }\n\n tokenEnd = position;\n }", "@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 }", "public Quote getQuote(final String symbol) {\n\n\t\tif (symbol == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tQuote quote = quoteMap.get(symbol);\n\n\t\treturn quote;\n\n\t}", "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}", "private HashSet<String> getUserQuotes() {\n\t\treturn userQuotes;\n\t}", "public final void mQUOTE() throws RecognitionException {\r\n try {\r\n int _type = QUOTE;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:288:7: ( '\\\"' )\r\n // C:\\\\sandbox\\\\objc2j\\\\src\\\\ru\\\\andremoniy\\\\objctojavacnv\\\\antlr\\\\Preprocessor.g:288:9: '\\\"'\r\n {\r\n match('\\\"'); \r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }" ]
[ "0.71723", "0.7052622", "0.6726797", "0.6626044", "0.65942264", "0.6577831", "0.65420264", "0.6488976", "0.64266336", "0.64024055", "0.6351438", "0.63120025", "0.62984365", "0.62927794", "0.62738496", "0.6273651", "0.62480855", "0.6240508", "0.61848134", "0.6169402", "0.6166911", "0.6161159", "0.61506605", "0.6127585", "0.6126593", "0.61169064", "0.6106937", "0.6086501", "0.60729545", "0.6046635", "0.60182106", "0.5987934", "0.59572625", "0.59519905", "0.5937556", "0.5910154", "0.5902113", "0.5876194", "0.585256", "0.5838636", "0.58348584", "0.5832968", "0.58315396", "0.5745925", "0.5729965", "0.5704834", "0.56980467", "0.5690711", "0.56694436", "0.564733", "0.56439364", "0.5637934", "0.5631909", "0.5621008", "0.56153774", "0.56142944", "0.56124806", "0.56094134", "0.56067795", "0.5596467", "0.55904573", "0.55719554", "0.5553138", "0.5541048", "0.5502115", "0.5501201", "0.54835945", "0.548293", "0.5461492", "0.54555833", "0.54548395", "0.544399", "0.54312164", "0.5429961", "0.5426961", "0.54209805", "0.54115963", "0.5402978", "0.5383507", "0.53819287", "0.53742784", "0.5340054", "0.53345", "0.53263247", "0.53242064", "0.5320951", "0.5320441", "0.5319498", "0.5317567", "0.53163046", "0.5292906", "0.5280054", "0.52798057", "0.5278854", "0.5269705", "0.5254143", "0.52517676", "0.5231776", "0.5201771", "0.51982623", "0.5197019" ]
0.0
-1
Implement hashCode and equals as the plan is to use SymbolExpression as key in scope. So it must have proper hashcode and equals implementation TODO: Make symbol objects interned
@Override public int hashCode() { // TODO: Do we need null check? return symbol.hashCode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int hashCode() {\n\n if (this.hashCode == null) {\n int hashCode = this.symbol.hashCode();\n\n if (this.isLookahead) {\n hashCode *= 109;\n }\n\n this.hashCode = hashCode;\n }\n\n return this.hashCode;\n }", "@Override\n public boolean equals(\n Object obj) {\n\n if (this == obj) {\n return true;\n }\n\n if (obj == null) {\n return false;\n }\n\n if (getClass() != obj.getClass()) {\n return false;\n }\n\n RichSymbol richSymbol = (RichSymbol) obj;\n\n if (this.isLookahead != richSymbol.isLookahead) {\n return false;\n }\n\n return this.symbol.equals(richSymbol.symbol);\n }", "public interface SymbolTable\n{\n /**\n * Indicates that a symbol's integer ID could not be determined. That's\n * generally the case when constructing value instances that are not yet\n * contained by a datagram.\n */\n public final static int UNKNOWN_SYMBOL_ID = -1;\n\n\n /**\n * Gets the unique name of this symbol table.\n *\n * @return the unique name, or {@code null} if {@link #isLocalTable()}.\n */\n public String getName();\n\n\n /**\n * Gets the version of this symbol table.\n *\n * @return at least one, or zero if {@link #isLocalTable()}.\n */\n public int getVersion();\n\n\n /**\n * Determines whether this symbol table is local, and therefore unnamed\n * and unversioned.\n * <p>\n * If this method returns {@code true}, then both {@link #isSharedTable()}\n * and {@link #isSystemTable()} will return {@code false}.\n */\n public boolean isLocalTable();\n\n /**\n * Determines whether this symbol table is shared, and therefore named,\n * versioned, and {@linkplain #isReadOnly() read-only}.\n * <p>\n * If this method returns {@code true}, then {@link #isLocalTable()}\n * will return {@code false}.\n */\n public boolean isSharedTable();\n\n /**\n * Determines whether this instance is substituting for an imported\n * shared table for which no exact match was found in the catalog.\n * Such tables are not authoritative and may not even have any symbol text\n * at all (as is the case when no version of an imported table is found).\n * <p>\n * Substitute tables are always shared, non-system tables.\n *\n */\n public boolean isSubstitute();\n\n /**\n * Determines whether this symbol table is a system symbol table, and\n * therefore shared, named, versioned, and\n * {@linkplain #isReadOnly() read-only}.\n * <p>\n * If this method returns {@code true}, then {@link #isLocalTable()}\n * will return {@code false} and {@link #isSharedTable()} will return\n * {@code true}.\n */\n public boolean isSystemTable();\n\n\n /**\n * Determines whether this symbol table can have symbols added to it.\n * Shared symtabs are always read-only.\n * Local symtabs can also be {@linkplain #makeReadOnly() made read-only}\n * on demand, which enables some optimizations when writing data but will\n * cause failures if new symbols are encountered.\n *\n * @return true if this table is read-only, false if symbols may\n * be added.\n *\n * @see #makeReadOnly()\n *\n\n */\n public boolean isReadOnly();\n\n\n /**\n * Prevents this symbol table from accepting any more new symbols.\n * Shared symtabs are always read-only.\n * Making a local symtab read-only enables some optimizations when writing\n * data, but will cause failures if new symbols are encountered.\n *\n * @see #isReadOnly()\n *\n\n */\n public void makeReadOnly();\n\n\n /**\n * Gets the system symbol table being used by this local table.\n * <p>\n * If {@link #isSystemTable()} then this method returns {@code this}.\n * Otherwise, if {@link #isSharedTable()} then this method returns\n * {@code null}.\n *\n * @return not <code>null</code>, except for non-system shared tables.\n */\n public SymbolTable getSystemSymbolTable();\n\n\n /**\n * Gets the identifier for the Ion version (and thus the system symbol\n * table) used by this table.\n * The version identifier is a string of the form {@code \"$ion_X_Y\"}.\n *\n * @return the version identifier; or {@code null} for non-system shared\n * tables.\n */\n public String getIonVersionId();\n\n\n /**\n * Gets the sequence of shared symbol tables imported by this (local)\n * symbol table. The result does not include a system table.\n * <p>\n * If this local table imported a shared table for which the relevant\n * {@link IonCatalog} has the same name but different version and/or max_id,\n * then that entry will be a substitute table with the\n * correct version and max_id, wrapping the original shared symbol table\n * that was found.\n * <p>\n * If this local table imported a shared table for which the relevant\n * {@link IonCatalog} has no entry with the same name, but the import\n * declaration has a max_id available, then that entry will\n * be a substitute table with max_id undefined symbols.\n *\n * @return {@code null} if this is a shared or system table, otherwise a\n * non-null but potentially zero-length array of shared tables (but no\n * system table).\n */\n public SymbolTable[] getImportedTables();\n\n\n /**\n * Gets the highest symbol id reserved by this table's imports (including\n * system symbols). Any id higher than this value is a local symbol\n * declared by this table. This value is zero for shared symbol tables,\n * since they do not utilize imports.\n */\n public int getImportedMaxId();\n\n\n /**\n * Gets the highest symbol id reserved by this table.\n *\n * @return the largest integer such that {@link #findKnownSymbol(int)} could\n * return a non-<code>null</code> result. Note that there is no promise\n * that it <em>will</em> return a name, only that any larger id will not\n * have a name defined.\n */\n public int getMaxId();\n\n\n /**\n * Adds a new symbol to this table, or finds an existing definition of it.\n * <p>\n * The resulting {@link SymbolToken} has the same String instance that\n * was first interned. In order to reduce memory\n * footprint, callers should generally replace their copy of the text with\n * the string in the result.\n * <p>\n * This method will not necessarily return the same instance given the\n * same input.\n *\n * @param text the symbol text to intern.\n *\n * @return the interned symbol, with both text and SID defined; not null.\n *\n * @throws IonException if this symtab {@link #isReadOnly()} and\n * the text isn't already interned.\n *\n * @see #find(String)\n *\n\n */\n public SymbolToken intern(String text);\n\n\n /**\n * Finds a symbol already interned by this table.\n * <p>\n * This method will not necessarily return the same instance given the\n * same input.\n *\n * @param text the symbol text to find.\n *\n * @return the interned symbol, with both text and SID defined;\n * or {@code null} if it's not already interned.\n *\n * @see #intern(String)\n *\n\n */\n public SymbolToken find(String text);\n\n\n /**\n * Gets the symbol ID associated with a given symbol name.\n *\n * @param name must not be null or empty.\n * @return the id of the requested symbol, or\n * {@link #UNKNOWN_SYMBOL_ID} if it's not defined.\n *\n * @throws NullPointerException if {@code name} is null.\n */\n public int findSymbol(String name);\n\n\n /**\n * Gets the interned text for a symbol ID.\n *\n * @param id the requested symbol ID.\n * @return the interned text associated with the symbol ID,\n * or {@code null} if the text is not known.\n *\n * @throws IllegalArgumentException if {@code id < 1}.\n */\n public String findKnownSymbol(int id);\n\n\n /**\n * Creates an iterator that will return all non-imported symbol names, in\n * order of their symbol IDs. The iterator will return {@code null} where\n * there is an undefined sid.\n * <p>\n * The first string returned by the iterator has a symbol ID that is one\n * more than {@link #getImportedMaxId()}, and the last string has symbol\n * ID equals to {@link #getMaxId()}.\n *\n * @return a new iterator.\n */\n public Iterator<String> iterateDeclaredSymbolNames();\n\n\n /**\n * Writes an Ion representation of this symbol table.\n *\n * @param writer must not be null.\n * @throws IOException if thrown by the writer.\n */\n public void writeTo(IonWriter writer)\n throws IOException;\n}", "public boolean equals(Object obj){\n return ((value == ((SequiturSymbol)obj).value) &&\n (n.value == ((SequiturSymbol)obj).n.value));\n }", "@Override\n public int hashCode() {\n return Objects.hash(getSymbol(), getDescription(), getType(), getCountry(), getExchange(), getExchangeCountry(), getCategory1(), getCategory2(), getCategory3(), getSedol());\n }", "@Override\n public int hashCode() {\n int result = stockSymbol != null ? stockSymbol.hashCode() : 0;\n result = 31 * result + (lastDividend != null ? lastDividend.hashCode() : 0);\n result = 31 * result + (parValue != null ? parValue.hashCode() : 0);\n result = 31 * result + (stockPrice != null ? stockPrice.hashCode() : 0);\n return result;\n }", "public interface BasicST<Key, Value> {\n /**\n * Returns {@code true} if this symbol table is empty, and {@code false} otherwise.\n *\n * @return {@code true} if this symbol table is empty, and {@code false} otherwise.\n */\n public boolean isEmpty();\n\n /**\n * Returns the number of key-value pairs in this symbol table.\n *\n * @return the number of key-value pairs in this symbol table.\n */\n public int size();\n\n /**\n * Inserts the {@code key} and {@code value} pair into this symbol table.\n *\n * @param key the key.\n * @param value the value.\n */\n public void put(Key key, Value value);\n\n /**\n * Returns the value associated with {@code key} in this symbol table, or {@code null}.\n *\n * @param key the key.\n * @return the value associated with {@code key} in this symbol table, or {@code null}.\n */\n public Value get(Key key);\n\n /**\n * Returns {@code true} if this symbol table contains {@code key}, and {@code false} otherwise.\n *\n * @param key the key.\n * @return {@code true} if this symbol table contains {@code key}, and {@code false} otherwise.\n */\n public boolean contains(Key key);\n\n /**\n * Deletes {@code key} and the associated value from this symbol table.\n *\n * @param key the key.\n */\n public void delete(Key key);\n\n /**\n * Returns all the keys in this symbol table.\n *\n * @return all the keys in this symbol table.\n */\n public Iterable<Key> keys();\n}", "@Test\r\n\tvoid testHashCodes() {\n\r\n\t\tvar dummyExpr = new BooleanValue(false);\r\n\t\tvar dummyStatement = new Statement.Empty();\r\n\t\tvar dummyBlock = new Block(new Statement[]{\r\n\t\t\tdummyStatement\r\n\t\t});\r\n\r\n\t\t// The statements\r\n\t\tnew Statement.ExpressionStatement(dummyExpr, ExpressionStatementKind.NORMAL).hashCode();\r\n\t\tnew Statement.Assignment(new Expression.Symbol(\"foo\"), dummyExpr).hashCode();\r\n\t\tnew Statement.WhileLoop(dummyExpr, dummyBlock).hashCode();\r\n\t\tnew Statement.If(new Expression[]{}, new Block[]{}).hashCode();\r\n\t\tnew Statement.BlockStatement(dummyBlock).hashCode();\r\n\t\tnew Statement.Rule(new Expression[]{\r\n\t\t\tdummyExpr\r\n\t\t}, new Expression[]{}, dummyBlock).hashCode();\r\n\t\tvar functionDef = new Statement.FunctionDefinition(new Expression.Symbol(\"foo\"), new Expression.Symbol[]{}, 0, dummyBlock);\r\n\t\tfunctionDef.hashCode();\r\n\t\tnew Statement.Empty().hashCode();\r\n\r\n\t\t// The expressions.\r\n\t\tnew Expression.Binary(dummyExpr, BinaryOperator.ADD, dummyExpr).hashCode();\r\n\t\tnew Expression.FunctionCall(dummyExpr, new Expression[]{}).hashCode();\r\n\t\tnew Expression.Index(dummyExpr, dummyExpr).hashCode();\r\n\t\tnew Expression.Symbol(\"foo\").hashCode();\r\n\t\tnew Expression.Unary(dummyExpr, UnaryOperator.NEGATE).hashCode();\r\n\t\tnew Expression.Array(new Expression[]{}).hashCode();\r\n\t\tnew Expression.Dictionary(new Expression[]{}, new Expression[]{}).hashCode();\r\n\t\tnew Expression.Lambda(functionDef).hashCode();\r\n\t\tnew Expression.IndexRange(dummyExpr, dummyExpr, dummyExpr).hashCode();\r\n\r\n\t\t// The values.\r\n\t\tnew BooleanValue(false).hashCode();\r\n\t\tnew IntegerValue(0).hashCode();\r\n\t\tnew DoubleValue(0).hashCode();\r\n\t\tnew StringValue(\"foo\").hashCode();\r\n\t\tnew ArrayValue(new ExpressionValue[]{}).hashCode();\r\n\t\tnew DictionaryValue(new HashMap<>()).hashCode();\r\n\t}", "@Override\n public boolean equals(Object o) {\n if (o instanceof AccessSymbol) {\n AccessSymbol other = (AccessSymbol)o;\n return (base.equals(other.base) && member.equals(other.member));\n } else {\n return false;\n }\n }", "@Override\r\n\tpublic int hashCode()\r\n\t{\r\n\t\tint hash = 1;\r\n\r\n\t\tif (containingExpression != null)\r\n\t\t{\r\n\t\t\thash = hash & Constants.HASH_PRIME + containingExpression.hashCode();\r\n\t\t}\r\n\r\n\t\tif (conditions != null)\r\n\t\t{\r\n\t\t\thash = hash * Constants.HASH_PRIME + new HashSet<ICondition>(conditions).hashCode();\r\n\t\t}\r\n\r\n\t\treturn hash;\r\n\t}", "@Test\n public void testEquals() {\n Term t1 = structure(\"abc\", atom(\"a\"), atom(\"b\"), atom(\"c\"));\n Term t2 = structure(\"abc\", integerNumber(), decimalFraction(), variable());\n PredicateKey k1 = PredicateKey.createForTerm(t1);\n PredicateKey k2 = PredicateKey.createForTerm(t2);\n testEquals(k1, k2);\n }", "public SymbolTable() {\n\t\tclassScope = new Hashtable<String, Values>();\n\t\tsubScope = new Hashtable<String, Values>();\n\t\tcurrScope = classScope;\n\t\tsubArgIdx = 0;\n\t\tsubVarIdx = 0;\n\t\tclassStaticIdx = 0;\n\t\tclassFieldIdx = 0;\n\t}", "public Symbol(Hashtable symbols,String name,int value,int type) {\n\tthis.name = name;\n\tthis.value = value;\n\tthis.type = type;\n\tmdefs = new Vector();\n\tif (symbols != null) symbols.put(name,this);\n }", "public static SymbolTable getInstance() { return instance ; }", "@Override\n public boolean equals(Object obj) {\n if (obj != null && getClass() == obj.getClass()) {\n Identifier o = (Identifier)obj;\n boolean b;\n b = o.getName().equals(name);\n b &= o.getScope() == scope;\n b &= o.getType() == type;\n b &= o.getValue() == value;\n \n return b;\n }\n return false;\n }", "@Override\r\n public int hashCode() {\n return 37 * (37 * (37 * 23 \r\n + typeVariable.getName().hashCode()) \r\n + typeVariable.getGenericDeclaration().hashCode())\r\n + base.hashCode();\r\n }", "public interface Symbol {\r\n String getFullId();\r\n String getId(); // scoped to parent id\r\n String getFullParentId();\r\n String getDescriptiveName();\r\n String getHRef(String preDir);\r\n String getFileLocation();\r\n\r\n Type getType();\r\n\r\n enum Type {\r\n Dir,File,Other\r\n }\r\n}", "@Override\n\tpublic int hashCode () {\n\t\treturn Objects.hash(name, active, valueType);\n\t}", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 89 * hash + Objects.hashCode(this.recipentQualifiedName);\n return hash;\n }", "private SymbolData[]\n\t\t\tmakeSymbolMap(Map<StandardSymbolData, JsName> symbolTable) {\n\t\tfinal Set<String> nameUsed = new HashSet<String>();\n\t\tfinal Map<JsName, Integer> nameToFragment = new HashMap<JsName, Integer>();\n\t\tfor (int i = 0; i < jsProgram.getFragmentCount(); i++) {\n\t\t\tfinal Integer fragId = i;\n\t\t\tnew JsVisitor() {\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsForIn x, JsContext ctx) {\n\t\t\t\t\tif (x.getIterVarName() != null) {\n\t\t\t\t\t\tnameUsed.add(x.getIterVarName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsFunction x, JsContext ctx) {\n\t\t\t\t\tif (x.getName() != null) {\n\t\t\t\t\t\tnameToFragment.put(x.getName(), fragId);\n\t\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsLabel x, JsContext ctx) {\n\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsNameOf x, JsContext ctx) {\n\t\t\t\t\tif (x.getName() != null) {\n\t\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsNameRef x, JsContext ctx) {\n\t\t\t\t\t// Obviously this isn't even that accurate. Some of them are\n\t\t\t\t\t// variable names, some of the are property. At least this\n\t\t\t\t\t// this give us a safe approximation. Ideally we need\n\t\t\t\t\t// the code removal passes to remove stuff in the scope\n\t\t\t\t\t// objects.\n\t\t\t\t\tif (x.isResolved()) {\n\t\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsParameter x, JsContext ctx) {\n\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsVars.JsVar x, JsContext ctx) {\n\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t// alcina - add classlits to name/fragment\n\t\t\t\t\tif (x.getName().getIdent().startsWith(\n\t\t\t\t\t\t\t\"com_google_gwt_lang_ClassLiteralHolder_\")) {\n\t\t\t\t\t\tnameToFragment.put(x.getName(), fragId);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}.accept(jsProgram.getFragmentBlock(i));\n\t\t}\n\t\t// TODO(acleung): This is a temp fix. Once we know this is safe. We\n\t\t// new to rewrite it to avoid extra ArrayList creations.\n\t\t// Or we should just consider serializing it as an ArrayList if\n\t\t// it is that much trouble to determine the true size.\n\t\tList<SymbolData> result = new ArrayList<SymbolData>();\n\t\tfor (Map.Entry<StandardSymbolData, JsName> entry : symbolTable\n\t\t\t\t.entrySet()) {\n\t\t\tStandardSymbolData symbolData = entry.getKey();\n\t\t\tsymbolData.setSymbolName(entry.getValue().getShortIdent());\n\t\t\tInteger fragNum = nameToFragment.get(entry.getValue());\n\t\t\tif (fragNum != null) {\n\t\t\t\tsymbolData.setFragmentNumber(fragNum);\n\t\t\t}\n\t\t\tif (nameUsed.contains(entry.getValue().getIdent())\n\t\t\t\t\t|| entry.getKey().isClass()) {\n\t\t\t\tresult.add(symbolData);\n\t\t\t}\n\t\t}\n\t\treturn result.toArray(new SymbolData[result.size()]);\n\t}", "public interface Symbols {\n /* terminals */\n public static final int BAG = 68;\n public static final int RETRIEVE = 93;\n public static final int AS = 34;\n public static final int TIMES = 13;\n public static final int LCURLY = 54;\n public static final int TYPE = 58;\n public static final int LEAVESBY = 91;\n public static final int LOWEREQUALS = 33;\n public static final int LAZY_FAILURE = 97;\n public static final int CLOSEUNIQUEBY = 90;\n public static final int NAME = 7;\n public static final int ENUM = 70;\n public static final int FORSOME = 41;\n public static final int CATCH = 114;\n public static final int DATEPREC = 109;\n public static final int COMMA = 29;\n public static final int VIRTUAL = 99;\n public static final int RANDOM = 110;\n public static final int DOUBLE_LITERAL = 4;\n public static final int SUM = 48;\n public static final int THROW = 116;\n public static final int JOIN = 28;\n public static final int RPAREN = 19;\n public static final int ON_NAVIGATE = 106;\n public static final int STRUCT = 69;\n public static final int NOT_MATCH_STRING = 23;\n public static final int LPAREN = 18;\n public static final int NOW = 108;\n public static final int INTEGER_LITERAL = 2;\n public static final int NOT = 24;\n public static final int VIEW = 98;\n public static final int INSTANCE = 73;\n public static final int DIFFERENT = 21;\n public static final int DATE_LITERAL = 6;\n public static final int MIN = 43;\n public static final int THEN = 65;\n public static final int EXTERNAL = 67;\n public static final int RECORD = 57;\n public static final int SEROID = 120;\n public static final int REVERSE = 107;\n public static final int ON_UPDATE = 103;\n public static final int LOWER = 31;\n public static final int INSERTCOPY = 83;\n public static final int BOOLEAN_LITERAL = 5;\n public static final int TEMPORAL = 80;\n public static final int CLASS = 71;\n public static final int SEED = 101;\n public static final int IMPLEMENT = 95;\n public static final int MODULO = 17;\n public static final int UNIQUEREF = 47;\n public static final int PLUS = 10;\n public static final int FORALL = 42;\n public static final int DIVIDE = 14;\n public static final int EXISTS = 49;\n public static final int GREATEREQUALS = 32;\n public static final int WHILE = 84;\n public static final int UNION = 16;\n public static final int DELETE = 77;\n public static final int EXTENDS = 72;\n public static final int MODULE = 53;\n public static final int INTERFACE = 117;\n public static final int ASSIGN = 61;\n public static final int RSQUARE = 52;\n public static final int FOR = 86;\n public static final int DO = 85;\n public static final int SCHEMADEF = 96;\n public static final int MATCH_STRING = 22;\n public static final int GREATER = 30;\n public static final int RANGEAS = 119;\n public static final int MAX = 44;\n public static final int RETURN = 60;\n public static final int TRY = 113;\n public static final int ELSE = 66;\n public static final int DOTDOT = 50;\n public static final int BREAK = 87;\n public static final int DOT = 26;\n public static final int PERMANENT = 79;\n public static final int AVG = 45;\n public static final int TRANSACTION_ABORT = 112;\n public static final int STRING_LITERAL = 3;\n public static final int EOF = 0;\n public static final int SEMICOLON = 8;\n public static final int INTERSECT = 15;\n public static final int LSQUARE = 51;\n public static final int WHERE = 27;\n public static final int COUNT = 25;\n public static final int LOCAL = 81;\n public static final int IMPORT = 56;\n public static final int IS = 59;\n public static final int UNIQUE = 46;\n public static final int IN = 36;\n public static final int OR = 39;\n public static final int error = 1;\n public static final int HYPHEN = 11;\n public static final int LEAVESUNIQUEBY = 92;\n public static final int FINALLY = 115;\n public static final int CONTINUE = 88;\n public static final int INSTANCEOF = 74;\n public static final int IF = 64;\n public static final int CONTAINS = 37;\n public static final int COLON = 9;\n public static final int SUBTRACT = 12;\n public static final int CREATE = 78;\n public static final int DEREF = 62;\n public static final int FOREACH = 63;\n public static final int REF = 75;\n public static final int ON_DELETE = 104;\n public static final int DESEROID = 121;\n public static final int CLOSEBY = 89;\n public static final int RENAME = 122;\n public static final int UPDATE = 94;\n public static final int INSERT = 82;\n public static final int OBJECTS = 100;\n public static final int AND = 40;\n public static final int SESSION = 76;\n public static final int ON_RETRIEVE = 102;\n public static final int GROUPAS = 35;\n public static final int ON_NEW = 105;\n public static final int ORDERBY = 38;\n public static final int DISTINCT = 118;\n public static final int RCURLY = 55;\n public static final int EQUALS = 20;\n public static final int TRANSACTION_CAPABLE = 111;\n}", "boolean hasSymbolId();", "public Value restrictToSymbol() {\n checkNotPolymorphicOrUnknown();\n Value r = new Value(this);\n r.flags &= ~PRIMITIVE;\n r.num = null;\n r.str = null;\n r.getters = r.setters = null;\n r.excluded_strings = r.included_strings = null;\n r.object_labels = newSet();\n if (object_labels != null)\n for (ObjectLabel objlabel : object_labels)\n if (objlabel.getKind() == Kind.SYMBOL)\n r.object_labels.add(objlabel);\n if (r.object_labels.isEmpty())\n r.object_labels = null;\n return canonicalize(r);\n }", "public void testHashFunction(){\r\n Token otherToken;\r\n\r\n try{\r\n token = new Token(TokenType.ID, \"abc\", 5);\r\n otherToken = new Token(TokenType.ID, \"abc\", 6);\r\n //assertTrue(token.hashCode() == 28456490);\r\n assertTrue(token.hashCode() == otherToken.hashCode());\r\n\r\n otherToken = new Token(TokenType.STRING, \"abc\", 5);\r\n assertFalse(token.hashCode() == otherToken.hashCode());\r\n\r\n token = new Token(TokenType.Q_MARK, \"?\", 10);\r\n otherToken = new Token(TokenType.Q_MARK, \"?\", 10);\r\n assertTrue(token.hashCode() == otherToken.hashCode());\r\n\r\n otherToken = new Token(TokenType.STRING, \"?\", 10);\r\n assertFalse(token.hashCode() == otherToken.hashCode());\r\n\r\n otherToken = new Token(TokenType.PERIOD, \".\", 10);\r\n assertFalse(token.hashCode() == otherToken.hashCode());\r\n \r\n }catch(ParserException e){\r\n };\r\n }", "public static Symbol getSymbolOf(Expression e) {\n if (e instanceof Identifier) {\n return ((Identifier)e).getSymbol();\n } else if (e instanceof ArrayAccess) {\n return getSymbolOf(((ArrayAccess)e).getArrayName());\n } else if (e instanceof AccessExpression) {\n return new AccessSymbol((AccessExpression)e);\n } else if (e instanceof UnaryExpression) {\n return getSymbolOf(((UnaryExpression)e).getExpression());\n/*\n UnaryExpression ue = (UnaryExpression)e;\n if (ue.getOperator() == UnaryOperator.DEREFERENCE) {\n DFIterator<Identifier> iter = new DFIterator<Identifier>(\n ue.getExpression(), Identifier.class);\n if (iter.hasNext()) {\n return iter.next().getSymbol();\n }\n }\n*/\n } else if (e instanceof Typecast) {\n return getSymbolOf(((Typecast)e).getExpression());\n }\n return null;\n }", "public abstract String getSymbol();", "public Symbol getSymbol() {\r\n\t\treturn symbol;\r\n\t}", "@SuppressWarnings(\"EqualsUnsafeCast\")\n @Override\n public boolean equals(Object o) {\n final Key key = (Key) o;\n return powerComponent == key.powerComponent\n && processState == key.processState;\n }", "@Override\n public Set<ObjectLabel> getSymbols() {\n if (object_labels == null)\n return Collections.emptySet();\n Set<ObjectLabel> s = newSet();\n for (ObjectLabel objlabel : object_labels)\n if (objlabel.getKind() == Kind.SYMBOL)\n s.add(objlabel);\n return s;\n }", "@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null || getClass() != obj.getClass()) {\n return false;\n }\n Key key = (Key) obj;\n return Objects.equals(exponent, key.exponent)\n && Objects.equals(modulus, key.modulus);\n }", "java.lang.String getSymbolId();", "public Symbol(String _name) {\n\t\tsetName(_name);\n\t}", "public com.google.protobuf.ByteString\n getSymbolBytes() {\n Object ref = symbol_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n symbol_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n int hashCode();", "@Override\n public int hashCode();", "@Override\r\n\tpublic int hashCode() {\n\t\tint result = QAOperation.SEED;\r\n\t\tresult = QAOperation.PRIME_NUMBER * result + operator.hashCode();\r\n\t\tresult = QAOperation.PRIME_NUMBER * result + operand.hashCode();\r\n\t\tresult = QAOperation.PRIME_NUMBER * result + constraint.hashCode();\r\n\t\treturn result;\r\n\t}", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n\n NameKey nameKey = (NameKey) o;\n return this.analyser.compare(this, nameKey) == 0;\n }", "public com.google.protobuf.ByteString\n getSymbolBytes() {\n java.lang.Object ref = symbol_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n symbol_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + _currencyPair.hashCode();\n result = prime * result + _expiries.hashCode();\n result = prime * result + _delta.hashCode();\n result = prime * result + _vega.hashCode();\n return result;\n }", "String symbol();", "@Test\n\tpublic void unitIsEquivalentToItself() {\n\t\tDummyUnit unit = new DummyUnit(SYMBOL);\n\t\tassertTrue(unit.isEquivalentTo(unit));\n\t}", "public Object clone() {\n\t\tSymbolTable st = new SymbolTable();\n\t\tst.var = (HashMap<String, Variable>) var.clone();\n\t\tst.name = new HashMap<String, NameSSA>();\n\t\tfor (String n : name.keySet()) {\n\t\t\tst.name.put(n, (NameSSA) name.get(n).clone());\n\t\t}\n\t\tst.save = (Stack<HashMap<String, ?>>) save.clone();\n\t\treturn st;\n\t}", "public Symbol getSymbol() {\n\n return this.symbol;\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn name.hashCode();\n\t}", "@SuppressWarnings(\"unused\")\n private void initSymbolTable() {\n MethodType I_V = new MethodType(Type.Int, Type.Void);\n MethodType I_R = new MethodType(Type.Int, Type.Real);\n MethodType I_S = new MethodType(Type.Int, Type.String);\n MethodType I_D = new MethodType(Type.Int, Type.NodeSet);\n MethodType R_I = new MethodType(Type.Real, Type.Int);\n MethodType R_V = new MethodType(Type.Real, Type.Void);\n MethodType R_R = new MethodType(Type.Real, Type.Real);\n MethodType R_D = new MethodType(Type.Real, Type.NodeSet);\n MethodType R_O = new MethodType(Type.Real, Type.Reference);\n MethodType I_I = new MethodType(Type.Int, Type.Int);\n MethodType D_O = new MethodType(Type.NodeSet, Type.Reference);\n MethodType D_V = new MethodType(Type.NodeSet, Type.Void);\n MethodType D_S = new MethodType(Type.NodeSet, Type.String);\n MethodType D_D = new MethodType(Type.NodeSet, Type.NodeSet);\n MethodType A_V = new MethodType(Type.Node, Type.Void);\n MethodType S_V = new MethodType(Type.String, Type.Void);\n MethodType S_S = new MethodType(Type.String, Type.String);\n MethodType S_A = new MethodType(Type.String, Type.Node);\n MethodType S_D = new MethodType(Type.String, Type.NodeSet);\n MethodType S_O = new MethodType(Type.String, Type.Reference);\n MethodType B_O = new MethodType(Type.Boolean, Type.Reference);\n MethodType B_V = new MethodType(Type.Boolean, Type.Void);\n MethodType B_B = new MethodType(Type.Boolean, Type.Boolean);\n MethodType B_S = new MethodType(Type.Boolean, Type.String);\n MethodType D_X = new MethodType(Type.NodeSet, Type.Object);\n MethodType R_RR = new MethodType(Type.Real, Type.Real, Type.Real);\n MethodType I_II = new MethodType(Type.Int, Type.Int, Type.Int);\n MethodType B_RR = new MethodType(Type.Boolean, Type.Real, Type.Real);\n MethodType B_II = new MethodType(Type.Boolean, Type.Int, Type.Int);\n MethodType S_SS = new MethodType(Type.String, Type.String, Type.String);\n MethodType S_DS = new MethodType(Type.String, Type.Real, Type.String);\n MethodType S_SR = new MethodType(Type.String, Type.String, Type.Real);\n MethodType O_SO = new MethodType(Type.Reference, Type.String, Type.Reference);\n\n MethodType D_SS =\n new MethodType(Type.NodeSet, Type.String, Type.String);\n MethodType D_SD =\n new MethodType(Type.NodeSet, Type.String, Type.NodeSet);\n MethodType B_BB =\n new MethodType(Type.Boolean, Type.Boolean, Type.Boolean);\n MethodType B_SS =\n new MethodType(Type.Boolean, Type.String, Type.String);\n MethodType S_SD =\n new MethodType(Type.String, Type.String, Type.NodeSet);\n MethodType S_DSS =\n new MethodType(Type.String, Type.Real, Type.String, Type.String);\n MethodType S_SRR =\n new MethodType(Type.String, Type.String, Type.Real, Type.Real);\n MethodType S_SSS =\n new MethodType(Type.String, Type.String, Type.String, Type.String);\n\n /*\n * Standard functions: implemented but not in this table concat().\n * When adding a new function make sure to uncomment\n * the corresponding line in <tt>FunctionAvailableCall</tt>.\n */\n\n // The following functions are inlined\n\n _symbolTable.addPrimop(\"current\", A_V);\n _symbolTable.addPrimop(\"last\", I_V);\n _symbolTable.addPrimop(\"position\", I_V);\n _symbolTable.addPrimop(\"true\", B_V);\n _symbolTable.addPrimop(\"false\", B_V);\n _symbolTable.addPrimop(\"not\", B_B);\n _symbolTable.addPrimop(\"name\", S_V);\n _symbolTable.addPrimop(\"name\", S_A);\n _symbolTable.addPrimop(\"generate-id\", S_V);\n _symbolTable.addPrimop(\"generate-id\", S_A);\n _symbolTable.addPrimop(\"ceiling\", R_R);\n _symbolTable.addPrimop(\"floor\", R_R);\n _symbolTable.addPrimop(\"round\", R_R);\n _symbolTable.addPrimop(\"contains\", B_SS);\n _symbolTable.addPrimop(\"number\", R_O);\n _symbolTable.addPrimop(\"number\", R_V);\n _symbolTable.addPrimop(\"boolean\", B_O);\n _symbolTable.addPrimop(\"string\", S_O);\n _symbolTable.addPrimop(\"string\", S_V);\n _symbolTable.addPrimop(\"translate\", S_SSS);\n _symbolTable.addPrimop(\"string-length\", I_V);\n _symbolTable.addPrimop(\"string-length\", I_S);\n _symbolTable.addPrimop(\"starts-with\", B_SS);\n _symbolTable.addPrimop(\"format-number\", S_DS);\n _symbolTable.addPrimop(\"format-number\", S_DSS);\n _symbolTable.addPrimop(\"unparsed-entity-uri\", S_S);\n _symbolTable.addPrimop(\"key\", D_SS);\n _symbolTable.addPrimop(\"key\", D_SD);\n _symbolTable.addPrimop(\"id\", D_S);\n _symbolTable.addPrimop(\"id\", D_D);\n _symbolTable.addPrimop(\"namespace-uri\", S_V);\n _symbolTable.addPrimop(\"function-available\", B_S);\n _symbolTable.addPrimop(\"element-available\", B_S);\n _symbolTable.addPrimop(\"document\", D_S);\n _symbolTable.addPrimop(\"document\", D_V);\n\n // The following functions are implemented in the basis library\n _symbolTable.addPrimop(\"count\", I_D);\n _symbolTable.addPrimop(\"sum\", R_D);\n _symbolTable.addPrimop(\"local-name\", S_V);\n _symbolTable.addPrimop(\"local-name\", S_D);\n _symbolTable.addPrimop(\"namespace-uri\", S_V);\n _symbolTable.addPrimop(\"namespace-uri\", S_D);\n _symbolTable.addPrimop(\"substring\", S_SR);\n _symbolTable.addPrimop(\"substring\", S_SRR);\n _symbolTable.addPrimop(\"substring-after\", S_SS);\n _symbolTable.addPrimop(\"substring-before\", S_SS);\n _symbolTable.addPrimop(\"normalize-space\", S_V);\n _symbolTable.addPrimop(\"normalize-space\", S_S);\n _symbolTable.addPrimop(\"system-property\", S_S);\n\n // Extensions\n _symbolTable.addPrimop(\"nodeset\", D_O);\n _symbolTable.addPrimop(\"objectType\", S_O);\n _symbolTable.addPrimop(\"cast\", O_SO);\n\n // Operators +, -, *, /, % defined on real types.\n _symbolTable.addPrimop(\"+\", R_RR);\n _symbolTable.addPrimop(\"-\", R_RR);\n _symbolTable.addPrimop(\"*\", R_RR);\n _symbolTable.addPrimop(\"/\", R_RR);\n _symbolTable.addPrimop(\"%\", R_RR);\n\n // Operators +, -, * defined on integer types.\n // Operators / and % are not defined on integers (may cause exception)\n _symbolTable.addPrimop(\"+\", I_II);\n _symbolTable.addPrimop(\"-\", I_II);\n _symbolTable.addPrimop(\"*\", I_II);\n\n // Operators <, <= >, >= defined on real types.\n _symbolTable.addPrimop(\"<\", B_RR);\n _symbolTable.addPrimop(\"<=\", B_RR);\n _symbolTable.addPrimop(\">\", B_RR);\n _symbolTable.addPrimop(\">=\", B_RR);\n\n // Operators <, <= >, >= defined on int types.\n _symbolTable.addPrimop(\"<\", B_II);\n _symbolTable.addPrimop(\"<=\", B_II);\n _symbolTable.addPrimop(\">\", B_II);\n _symbolTable.addPrimop(\">=\", B_II);\n\n // Operators <, <= >, >= defined on boolean types.\n _symbolTable.addPrimop(\"<\", B_BB);\n _symbolTable.addPrimop(\"<=\", B_BB);\n _symbolTable.addPrimop(\">\", B_BB);\n _symbolTable.addPrimop(\">=\", B_BB);\n\n // Operators 'and' and 'or'.\n _symbolTable.addPrimop(\"or\", B_BB);\n _symbolTable.addPrimop(\"and\", B_BB);\n\n // Unary minus.\n _symbolTable.addPrimop(\"u-\", R_R);\n _symbolTable.addPrimop(\"u-\", I_I);\n }", "@Override\n\tpublic int hashCode() {\n\t\treturn this.name.hashCode();\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn this.name.hashCode();\n\t}", "@Override\n public int hashCode() {\n return name.hashCode();\n }", "com.google.protobuf.ByteString\n getSymbolBytes();", "private boolean existsSymbol(String symbol) {\r\n\t\treturn ts.containsKey(symbol.hashCode());\r\n\t}", "@Override\r\n public int hashCode() {\n return this.name.hashCode();\r\n }", "@Override\n\t\tpublic int hashCode()\n\t\t{\n\t\t\treturn super.hashCode(); //Default implementation; may need to bring in line to equals\n\t\t}", "public SymbolTable() {\n scopes = new ArrayList<>();\n currentScopeLevel = NO_SCOPE;\n }", "String getSymbol();", "@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + _currencyPair.hashCode();\n result = prime * result + _vega.hashCode();\n return result;\n }", "@Override\r\n public int hashCode() {\r\n return this.name.hashCode();\r\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n\n AbstractStock that = (AbstractStock) o;\n\n if (stockSymbol != null ? !stockSymbol.equals(that.stockSymbol) : that.stockSymbol != null) return false;\n if (lastDividend != null ? !lastDividend.equals(that.lastDividend) : that.lastDividend != null) return false;\n if (parValue != null ? !parValue.equals(that.parValue) : that.parValue != null) return false;\n return stockPrice != null ? stockPrice.equals(that.stockPrice) : that.stockPrice == null;\n\n }", "public boolean equals(Term t)\n {\n //-- 't' is not a constant symbol.\n if (!(t instanceof TermConstant))\n return false;\n\n //-- Check if 't' is the same constant symbol.\n return (index == ((TermConstant)t).index);\n }", "public SymbolicFeature(String symbol) {\r\n\t\tthis.symbol = symbol;\r\n\t\tthis.isResolved = false;\r\n\t}", "@Override\n\t public int hashCode();", "public com.google.protobuf.ByteString\n getSymbolBytes() {\n java.lang.Object ref = symbol_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n symbol_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public abstract int hashCode();", "@Override\n public abstract int hashCode();", "@Override\n public abstract int hashCode();", "public com.google.protobuf.ByteString\n getSymbolBytes() {\n Object ref = symbol_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n symbol_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (this == obj)\r\n\t\t\treturn true;\r\n\t\tif (obj == null)\r\n\t\t\treturn false;\r\n\t\tif (getClass() != obj.getClass())\r\n\t\t\treturn false;\r\n\t\tSprite other = (Sprite) obj;\r\n\t\tif (column != other.column)\r\n\t\t\treturn false;\r\n\t\tif (row != other.row)\r\n\t\t\treturn false;\r\n\t\tif (symbol != other.symbol)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "@Override\n public int hashCode() {\n\tint hash = 7;\n\thash = 67 * hash + Objects.hashCode(this.targetType);\n\thash = 67 * hash + Objects.hashCode(this.unresolvedType);\n\thash = 67 * hash + Objects.hashCode(this.targetName);\n\thash = 67 * hash + Objects.hashCode(this.targetActions);\n\treturn hash;\n }", "public SymbolTable getSymbolTable() {\n return this.symbolTable;\n }", "public int hashCode()\r\n {\r\n int hash = super.hashCode();\r\n hash ^= hashValue( m_name );\r\n hash ^= hashValue( m_classname );\r\n if( m_implicit )\r\n {\r\n hash ^= 35;\r\n }\r\n hash ^= hashValue( m_production );\r\n hash ^= hashArray( m_dependencies );\r\n hash ^= hashArray( m_inputs );\r\n hash ^= hashArray( m_validators );\r\n hash ^= hashValue( m_data );\r\n return hash;\r\n }", "@Override \n int hashCode();", "public HashMap<String, Fraction> getSymbolTable() {\n\n\t\treturn symbolTable;\n\t}", "boolean hasSymbol();", "boolean hasSymbol();", "@Test\n public void testASTKeySymbolCreation() {\n final Grammar_WithConceptsGlobalScope globalScope = GrammarGlobalScopeTestFactory.create();\n Optional<MCGrammarSymbol> grammarOpt = globalScope.resolveMCGrammar(\"de.monticore.KeyAndNext\");\n assertTrue(grammarOpt.isPresent());\n MCGrammarSymbol grammar = grammarOpt.get();\n assertNotNull(grammar);\n assertTrue(grammar.isPresentAstNode());\n\n // no usage name\n Optional<ProdSymbol> aProd = grammar.getSpannedScope().resolveProd(\"A\");\n assertTrue(aProd.isPresent());\n List<RuleComponentSymbol> comps = aProd.get().getSpannedScope().resolveRuleComponentDownMany(\"b\");\n assertFalse(comps.isEmpty());\n RuleComponentSymbol aBRule= comps.get(0);\n assertFalse(aBRule.isIsList());\n\n // with usage name\n Optional<ProdSymbol> bProd = grammar.getSpannedScope().resolveProd(\"B\");\n assertTrue(bProd.isPresent());\n List<RuleComponentSymbol> bBRules = bProd.get().getSpannedScope().resolveRuleComponentMany(\"b\");\n assertTrue(!bBRules.isEmpty());\n assertTrue(bBRules.get(0).isIsList());\n\n // no usage name\n Optional<ProdSymbol> cProd = grammar.getSpannedScope().resolveProd(\"C\");\n assertTrue(cProd.isPresent());\n List<RuleComponentSymbol> cBRules= cProd.get().getSpannedScope().resolveRuleComponentMany(\"b\");\n assertFalse(cBRules.isEmpty());\n assertFalse(cBRules.get(0).isIsList());\n\n // no usage name\n Optional<ProdSymbol> dProd = grammar.getSpannedScope().resolveProd(\"D\");\n assertTrue(dProd.isPresent());\n List<RuleComponentSymbol> dBRules= dProd.get().getSpannedScope().resolveRuleComponentMany(\"b\");\n assertFalse(dBRules.isEmpty());\n assertFalse(dBRules.get(0).isIsList());\n\n // with usage name\n Optional<ProdSymbol> eProd = grammar.getSpannedScope().resolveProd(\"E\");\n assertTrue(eProd.isPresent());\n List<RuleComponentSymbol> eBRules = eProd.get().getSpannedScope().resolveRuleComponentMany(\"b\");\n assertTrue(!eBRules.isEmpty());\n assertTrue(eBRules.get(0).isIsList());\n\n // no usage name\n Optional<ProdSymbol> fProd = grammar.getSpannedScope().resolveProd(\"F\");\n assertTrue(fProd.isPresent());\n List<RuleComponentSymbol> fBRules = fProd.get().getSpannedScope().resolveRuleComponentMany(\"b\");\n assertTrue(fBRules.isEmpty());\n\n // with usage name\n Optional<ProdSymbol> gProd = grammar.getSpannedScope().resolveProd(\"G\");\n assertTrue(gProd.isPresent());\n List<RuleComponentSymbol> gBRules = gProd.get().getSpannedScope().resolveRuleComponentMany(\"b\");\n assertFalse(gBRules.isEmpty());\n }", "@Override\n\t\tpublic int hashCode() {\n\t\t\treturn mTerm.hashCode();\n\t\t}", "@Override\n public int hashCode() {\n return Objects.hash(name, unit, price, minimum, numUnits);\n }", "public SymbolTableEntry(){\n\t}", "long getSymbol();", "public int hashCode() {\n return lho.hashCode() + op.hashCode() + rho.hashCode();\n }", "public boolean equals(Object obj) {\n if (obj == null) return false;\n if ((obj.getClass() != this.getClass()) || (obj.hashCode() != this.hashCode())) {\n return false;\n }\n else {\n Bracket casted = (Bracket) obj;\n ASTSpanInfo temp_info = getInfo();\n ASTSpanInfo casted_info = casted.getInfo();\n if (!(temp_info == casted_info || temp_info.equals(casted_info))) return false;\n LHS temp_obj = getObj();\n LHS casted_obj = casted.getObj();\n if (!(temp_obj == casted_obj || temp_obj.equals(casted_obj))) return false;\n Expr temp_index = getIndex();\n Expr casted_index = casted.getIndex();\n if (!(temp_index == casted_index || temp_index.equals(casted_index))) return false;\n return true;\n }\n }", "@Override\n public void saveSymbol(SecuritySymbols symbol) {\n\n }", "public void testHashcode() {\n XYBlockRenderer r1 = new XYBlockRenderer();\n XYBlockRenderer r2 = new XYBlockRenderer();\n int h1 = r1.hashCode();\n int h2 = r2.hashCode();\n }", "public String getSymbol() {\r\n\t\treturn symbol;\r\n\t}", "public String getSymbol() {\r\n\t\treturn symbol;\r\n\t}", "public String getSymbolName() {\n return this.name;\n }", "@Override\n public int hashCode() {\n return ticker.hashCode();\n }", "@Override\r\n\t\tpublic int compareTo(BSTSymbolTable<K, V>.Entry other) \r\n\t\t{\r\n\t\t\treturn this.key.compareTo(other.key);\r\n\t\t}", "public SymbolTable copy() {\n\t\tSymbolTable st = new SymbolTable();\n\t\tst.var = (HashMap<String, Variable>) var.clone();\n\t\tst.name = new HashMap<String, NameSSA>();\n\t\tfor (String n : name.keySet()) {\n\t\t\tst.name.put(n, (NameSSA) name.get(n).clone());\n\t\t}\n\t\treturn st;\n\t}", "public int hashCode(){\n return name.hashCode();\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 }", "public String getSymbol() {\n return symbol;\n }", "@Override\n public int hashCode() {\n return values.descriptor.hashCode() ^ values.hashCode();\n }", "@Test\n\tpublic void constructorWithSymbolHasTheSymbolWiredCorrectly() {\n\t\tDummyUnit unit = new DummyUnit(SYMBOL);\n\t\tassertEquals(SYMBOL, unit.getSymbol());\n\t}", "@Override\n\tpublic int hashCode() {\n\t\treturn Double.hashCode(getX()) + \n\t\t\t\tDouble.hashCode(getY()) * 971;\n\t}", "public C_Symbol(String symbol_str) {\n if(symbol_str.compareTo(String.valueOf((char)176)) == 0) {\n this.srch_Symbol = new C_Search_Symbol(symbol_str);\n this.nt = new C_NT();\n }\n else {\n this.nt = new C_NT(symbol_str);\n this.srch_Symbol = new C_Search_Symbol();\n }\n this.t = new C_T();\n this.epsilon = new C_Epsilon();\n \n }", "@Override\n\tpublic int hashCode() {\n\t\treturn map.hashCode() ^ y() << 16 ^ x();\n\t}", "@Test\n public void hashCodeTest2() {\n Device device2 = new Device(\"other\", token);\n assertNotEquals(device.hashCode(), device2.hashCode());\n }", "protected abstract boolean equalityTest(Object key, Object key2);", "public String getSymbol() {\n return symbol;\n }", "@Override\r\n\t\tpublic int hashCode() {\r\n\t\t\tfinal int prime = 31;\r\n\t\t\tint result = 1;\r\n\t\t\tresult = prime * result + getOuterType().hashCode();\r\n\t\t\tresult = prime * result + ((kind == null) ? 0 : kind.hashCode());\r\n\t\t\tresult = prime * result + length;\r\n\t\t\tresult = prime * result + line;\r\n\t\t\tresult = prime * result + pos;\r\n\t\t\tresult = prime * result + pos_in_line;\r\n\t\t\treturn result;\r\n\t\t}" ]
[ "0.6614692", "0.6563599", "0.6291879", "0.62706625", "0.6148756", "0.61220056", "0.6015288", "0.599508", "0.59495425", "0.5935006", "0.59077483", "0.5887816", "0.5852156", "0.584776", "0.58068085", "0.57639307", "0.57498574", "0.57326466", "0.5684428", "0.56789297", "0.5652821", "0.56527525", "0.5639261", "0.562463", "0.56146616", "0.55980915", "0.5598058", "0.5572412", "0.557086", "0.5568302", "0.5561794", "0.5554283", "0.5534589", "0.5529609", "0.55240166", "0.55222493", "0.5504933", "0.5497696", "0.54968035", "0.54960626", "0.5493636", "0.5491715", "0.5485911", "0.54796594", "0.5473069", "0.5467599", "0.5467599", "0.54661506", "0.5462654", "0.5448467", "0.5445284", "0.5439388", "0.54354495", "0.543436", "0.5432383", "0.54307383", "0.5428761", "0.542706", "0.54266745", "0.5425638", "0.54216737", "0.5420475", "0.5420475", "0.5420475", "0.5417613", "0.5415271", "0.54139704", "0.5405414", "0.5405305", "0.5393258", "0.5391071", "0.5388118", "0.5388118", "0.5385331", "0.53819907", "0.5378648", "0.5370136", "0.53682023", "0.53680116", "0.53678757", "0.536004", "0.53555304", "0.53468776", "0.53468776", "0.5341296", "0.5336211", "0.5333856", "0.53254235", "0.5318895", "0.5316194", "0.5312968", "0.5311", "0.531085", "0.5309568", "0.530532", "0.5302606", "0.52975255", "0.52961546", "0.5295", "0.52944016" ]
0.74818665
0
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "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
1st type of method overloading the method has the same name and return type but the number of parameters has changed
public void setInfo(String inName, int inAge) { name = inName; age = inAge; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isMoreSpecific (MethodType type) throws OverloadingAmbiguous {\r\n boolean status = false;\r\n\r\n try {\r\n for (int i = 0, size = arguments.size (); i < size; i++) {\r\n\tIdentifier this_arg = (Identifier) arguments.elementAt (i);\r\n\tIdentifier target_arg = (Identifier) type.arguments.elementAt (i);\r\n\r\n\tint type_diff = this_arg.type.compare (target_arg.type);\r\n\tif (type_diff == 0)\r\n\t continue;\r\n\telse if (type_diff > 0) {\r\n\t if (status == true) throw new OverloadingAmbiguous ();\r\n\t} else {\r\n\t if (i != 0) throw new OverloadingAmbiguous ();\r\n\t status = true;\r\n\t}\r\n }\r\n } catch (OverloadingAmbiguous ex) {\r\n throw ex;\r\n } catch (TypeMismatch ex) {\r\n throw new OverloadingAmbiguous ();\r\n }\r\n\r\n return status;\r\n }", "public static void main(String[] args) {\n\t\tMethodOverloading7.add(1, 2, 3);\n\t\tMethodOverloading7.add(1, 2l, 3l);\n\t\tMethodOverloading7.add(1, 2, 3l);\n\t}", "static void add() {\r\n\t\tSystem.out.println(\"Overloading Method\");\r\n\t}", "public static void main(String[] args) {\n\t\tOverloadingType1 ot1 = new OverloadingType1();\n\t\tshort a=3, b=6;\n\t\tot1.add(2, 3);\n\t\tot1.add(a, b);\n\t\tot1.add(a);\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void javaMethodBaseWithTwoParams(long longParam, double doubleParam) {\n\t\t\n\t}", "public static void main(String[] args) {\n methodOverloading();\n }", "public void openen() {\n System.out.println(\"2.Overloaded methode zonder argument\");\n }", "public static void main(String[] args) {\n\t\tP92_Overloading_Sample obj=new P92_Overloading_Sample();\n\t\tSystem.out.println(obj.add());//30\n\t\tSystem.out.println(obj.add(500));//530\n\t\tSystem.out.println(obj.add(200, 300.9f));//500\n\t\tSystem.out.println(obj.add(55, 500));//555\n\t}", "public interface IMostSpecificOverloadDecider\n{\n OverloadRankingDto inNormalMode(\n WorkItemDto workItemDto, List<OverloadRankingDto> applicableOverloads, List<ITypeSymbol> argumentTypes);\n\n //Warning! start code duplication, more or less the same as in inNormalMode\n List<OverloadRankingDto> inSoftTypingMode(\n WorkItemDto workItemDto, List<OverloadRankingDto> applicableOverloads);\n}", "public void testOverloadedMethods(){\n System.out.printf(\"Square of integer 7 is %d\\n\", square(7));\n System.out.printf(\"Square of double 7.5 is %f\\n\", square(7.5));\n }", "@Override\n public int getMethodCount()\n {\n return 1;\n }", "public abstract void a(b paramb, int paramInt1, int paramInt2);", "public AmbiguousMethodException() {\n super();\n }", "protected void a(int paramInt1, int paramInt2, boolean paramBoolean, yz paramyz) {}", "class_1069 method_104(int var1, int var2);", "public void sum(int a, int b)\r\n\t{\r\n\t\tint c=a+b;\r\n\t\tSystem.out.println(\"Addition of 2 no [method overloading] : \" + c);\r\n\t\t\r\n\t}", "@Override\n public final int getMethodCount() {\n return 1;\n }", "public int a(String paramString, float paramFloat1, float paramFloat2, int paramInt)\r\n/* 234: */ {\r\n/* 235:243 */ return a(paramString, paramFloat1, paramFloat2, paramInt, true);\r\n/* 236: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public static void main(String[] args) {\n\t\t\r\n\t\tCompleOverloadDemo1 obj = new CompleOverloadDemo1();\r\n\t\t\r\n\t\tobj.add(1, 3); \t\t\t\t\t\t\t\t\t\t//Calling first function with 2 parameters\r\n\t\tobj.add(3.2, 3);\t\t\t\t\t\t\t\t\t//Calling second function with 2 different type of parameters\r\n\t\tobj.add(2, 3, 1);\t\t\t\t\t\t\t\t\t//Calling third function with 3 parameters\r\n\t\tobj.add(3, 3.4);\t\t\t\t\t\t\t\t\t//Calling Forth function with 2 different type of parameters in different order\r\n\r\n\t}", "public interface C2950c {\n /* renamed from: a */\n int mo9690a(int i, int i2);\n\n /* renamed from: a */\n int mo9691a(String str, String str2, float f);\n\n /* renamed from: a */\n int mo9692a(String[] strArr, int i);\n\n /* renamed from: a */\n void mo9693a();\n\n /* renamed from: a */\n void mo9694a(float f, float f2);\n\n /* renamed from: a */\n void mo9695a(float f, float f2, float f3, float f4, float f5);\n\n /* renamed from: a */\n void mo9696a(float f, float f2, int i);\n\n /* renamed from: a */\n void mo9697a(String str);\n\n /* renamed from: a */\n void mo9698a(String str, float f);\n\n /* renamed from: a */\n void mo9699a(String str, String str2, boolean z);\n\n /* renamed from: a */\n void mo9700a(String str, boolean z);\n\n /* renamed from: a */\n void mo9701a(boolean z);\n\n /* renamed from: b */\n int mo9702b(String str, String str2, float f);\n\n /* renamed from: b */\n void mo9703b(float f, float f2);\n\n /* renamed from: b */\n void mo9704b(float f, float f2, int i);\n\n /* renamed from: c */\n void mo9705c(float f, float f2);\n}", "List method_111(class_922 var1, int var2, int var3, int var4);", "class_1069 method_105(int var1, int var2);", "interface C15937b {\n /* renamed from: a */\n void mo13368a();\n\n /* renamed from: a */\n void mo13369a(int i, int i2, int i3, boolean z);\n\n /* renamed from: a */\n void mo13370a(int i, int i2, List<C15929a> list) throws IOException;\n\n /* renamed from: a */\n void mo13371a(int i, long j);\n\n /* renamed from: a */\n void mo13372a(int i, ErrorCode errorCode);\n\n /* renamed from: a */\n void mo13373a(int i, ErrorCode errorCode, ByteString byteString);\n\n /* renamed from: a */\n void mo13374a(boolean z, int i, int i2);\n\n /* renamed from: a */\n void mo13375a(boolean z, int i, int i2, List<C15929a> list);\n\n /* renamed from: a */\n void mo13376a(boolean z, int i, BufferedSource bufferedSource, int i2) throws IOException;\n\n /* renamed from: a */\n void mo13377a(boolean z, C15943j c15943j);\n }", "public static void main(String[] args) {\n\t\tOverloadingAdditionEx ad=new OverloadingAdditionEx();\n\t\tad.add(10, 20);\n\t\tad.add(10,20, 30);\n\t\tad.add(20.5f, 10.7f);\n\t\tad.add(10, 20.6f);\n\n\t}", "OverloadedFunctionDescriptor() {\n super();\n this.overloads = new ArrayList<>();\n }", "public int a(String paramString, int paramInt1, int paramInt2, int paramInt3)\r\n/* 239: */ {\r\n/* 240:247 */ return a(paramString, (float)paramInt1, (float)paramInt2, paramInt3, false);\r\n/* 241: */ }", "public static void main(String[] args) {\r\n\t\t\r\n\t\tMethodOverloading m = new MethodOverloading();\r\n\t\tm.sum();\r\n\t\tm.sum(15, 15);\r\n\t\t\r\n\t}", "public void testOneOrMoreParameters() {\n int nrParameters = methodToTest.getParameterTypes().length;\n Class[] params = methodToTest.getParameterTypes();\n Object[] foo = new Object[nrParameters];\n \n // set up all parameters. Some methods are invoked with\n // primitives or collections, so we need to create them\n // accordingly\n for (int i = 0; i < nrParameters; i++) {\n try {\n if (params[i].isPrimitive()) {\n String primitiveName = params[i]\n .getName();\n if (primitiveName.equals(\"int\")) {\n foo[i] = Integer.valueOf(0);\n }\n if (primitiveName.equals(\"boolean\")) {\n foo[i] = Boolean.TRUE;\n }\n if (primitiveName.equals(\"short\")) {\n foo[i] = new Short(\"0\");\n }\n } else if (params[i].getName().equals(\"java.util.Collection\")) {\n foo[i] = new ArrayList();\n } else {\n /*\n * this call could easily fall if there is e.g. no public\n * default constructor. If it fails tweak the if/else tree\n * above to accommodate the parameter or check if we need to\n * test the particular method at all.\n */\n foo[i] = params[i].newInstance();\n }\n } catch (InstantiationException e) {\n fail(\"Cannot create an instance of : \"\n + params[i].getName()\n + \", required for \"\n + methodToTest.getName()\n + \". Check if \"\n + \"test needs reworking.\");\n } catch (IllegalAccessException il) {\n fail(\"Illegal Access to : \"\n + params[i].getName());\n }\n }\n \n try {\n methodToTest.invoke(facade, foo);\n fail(methodToTest.getName()\n + \" does not deliver an IllegalArgumentException\");\n } catch (InvocationTargetException e) {\n if (e.getTargetException() instanceof IllegalArgumentException \n || e.getTargetException() instanceof ClassCastException\n || e.getTargetException() instanceof NotImplementedException) {\n return;\n }\n fail(\"Test failed for \" + methodToTest.toString()\n + \" because of: \"\n + e.getTargetException());\n } catch (NotImplementedException e) {\n // If method not supported ignore failure\n } catch (Exception e) {\n fail(\"Test failed for \" + methodToTest.toString()\n + \" because of: \" + e.toString());\n }\n }", "interface C9349bs {\n /* renamed from: a */\n int mo28885a(int i);\n\n /* renamed from: a */\n void mo28886a(int i, double d) throws zzlm;\n\n /* renamed from: a */\n void mo28887a(int i, int i2, zzno zzno) throws IOException, InterruptedException;\n\n /* renamed from: a */\n void mo28888a(int i, long j, long j2) throws zzlm;\n\n /* renamed from: a */\n void mo28889a(int i, String str) throws zzlm;\n\n /* renamed from: b */\n void mo28890b(int i) throws zzlm;\n\n /* renamed from: b */\n void mo28891b(int i, long j) throws zzlm;\n\n /* renamed from: c */\n boolean mo28892c(int i);\n}", "public interface C20288m {\n /* renamed from: a */\n int mo54403a(String str, String str2);\n\n /* renamed from: a */\n List<DownloadInfo> mo54404a(String str);\n\n /* renamed from: a */\n void mo54405a();\n\n /* renamed from: a */\n void mo54406a(int i);\n\n /* renamed from: a */\n void mo54407a(int i, int i2);\n\n /* renamed from: a */\n void mo54408a(int i, int i2, int i3, int i4);\n\n /* renamed from: a */\n void mo54409a(int i, int i2, int i3, long j);\n\n /* renamed from: a */\n void mo54410a(int i, int i2, long j);\n\n /* renamed from: a */\n void mo54411a(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);\n\n /* renamed from: a */\n void mo54412a(int i, Notification notification);\n\n /* renamed from: a */\n void mo54413a(int i, C20254v vVar);\n\n /* renamed from: a */\n void mo54414a(int i, List<DownloadChunk> list);\n\n /* renamed from: a */\n void mo54415a(int i, boolean z);\n\n /* renamed from: a */\n void mo54416a(C20211ac acVar);\n\n /* renamed from: a */\n void mo54417a(DownloadChunk downloadChunk);\n\n /* renamed from: a */\n void mo54418a(DownloadTask downloadTask);\n\n /* renamed from: a */\n void mo54419a(List<String> list);\n\n /* renamed from: a */\n void mo54420a(boolean z, boolean z2);\n\n /* renamed from: a */\n boolean mo54421a(DownloadInfo downloadInfo);\n\n /* renamed from: b */\n DownloadInfo mo54422b(String str, String str2);\n\n /* renamed from: b */\n List<DownloadInfo> mo54423b(String str);\n\n /* renamed from: b */\n void mo54424b(int i);\n\n /* renamed from: b */\n void mo54425b(int i, int i2, IDownloadListener iDownloadListener, ListenerType listenerType, boolean z);\n\n /* renamed from: b */\n void mo54426b(int i, List<DownloadChunk> list);\n\n /* renamed from: b */\n void mo54427b(DownloadInfo downloadInfo);\n\n /* renamed from: b */\n void mo54428b(DownloadTask downloadTask);\n\n /* renamed from: b */\n boolean mo54429b();\n\n /* renamed from: c */\n List<DownloadInfo> mo54430c(String str);\n\n /* renamed from: c */\n boolean mo54431c();\n\n /* renamed from: c */\n boolean mo54432c(int i);\n\n /* renamed from: c */\n boolean mo54433c(DownloadInfo downloadInfo);\n\n /* renamed from: d */\n List<DownloadInfo> mo54434d(String str);\n\n /* renamed from: d */\n void mo54435d();\n\n /* renamed from: d */\n void mo54436d(int i);\n\n /* renamed from: e */\n void mo54437e(int i);\n\n /* renamed from: e */\n boolean mo54438e();\n\n /* renamed from: f */\n long mo54439f(int i);\n\n /* renamed from: f */\n void mo54440f();\n\n /* renamed from: g */\n int mo54441g(int i);\n\n /* renamed from: g */\n boolean mo54442g();\n\n /* renamed from: h */\n boolean mo54443h(int i);\n\n /* renamed from: i */\n DownloadInfo mo54444i(int i);\n\n /* renamed from: j */\n List<DownloadChunk> mo54445j(int i);\n\n /* renamed from: k */\n void mo54446k(int i);\n\n /* renamed from: l */\n void mo54447l(int i);\n\n /* renamed from: m */\n void mo54448m(int i);\n\n /* renamed from: n */\n boolean mo54449n(int i);\n\n /* renamed from: o */\n int mo54450o(int i);\n\n /* renamed from: p */\n boolean mo54451p(int i);\n\n /* renamed from: q */\n void mo54452q(int i);\n\n /* renamed from: r */\n boolean mo54453r(int i);\n\n /* renamed from: s */\n C20254v mo54454s(int i);\n\n /* renamed from: t */\n C20259y mo54455t(int i);\n\n /* renamed from: u */\n C20241o mo54456u(int i);\n}", "interface C23413e {\n /* renamed from: a */\n void mo60902a(AvatarImageWithVerify avatarImageWithVerify);\n\n /* renamed from: a */\n boolean mo60903a(AvatarImageWithVerify avatarImageWithVerify, UserVerify userVerify);\n\n /* renamed from: b */\n void mo60904b(AvatarImageWithVerify avatarImageWithVerify);\n }", "public interface AbstractC2930hp1 {\n void a(String str, boolean z);\n\n void b(String str, long j);\n\n void c(String str, int i, int i2, int i3, int i4);\n\n void d(String str, int i);\n\n void e(String str, int i, int i2, int i3, int i4);\n}", "@Test\n\tpublic void testChangeMethodParameters() {\n\t\tDeclarationListDelta delta = createClassDelta(\n\t\t\t\t\"int someMethod(String x) { return 0;} \",\n\t\t\t\t\"int someMethod(int x) { return 0;}\");\n\n\t\tassertEquals(1, delta.getAddedDeclarations().size());\n\t\tassertEquals(0, delta.getChangedDeclarations().size());\n\t\tassertEquals(1, delta.getRemovedDeclarations().size());\n\n\t\tString removedMethod = methodSignature(delta.getRemovedDeclarations()\n\t\t\t\t.get(0));\n\t\tassertEquals(\"int someMethod(String)\", removedMethod);\n\n\t\tString addedMethod = methodSignature(delta.getAddedDeclarations()\n\t\t\t\t.get(0));\n\t\tassertEquals(\"int someMethod(int)\", addedMethod);\n\t}", "public void b(int paramInt1, int paramInt2) {}", "public void b(int paramInt1, int paramInt2) {}", "public interface class_25 {\r\n\r\n // $FF: renamed from: b (int, int) boolean\r\n boolean method_103(int var1, int var2);\r\n\r\n // $FF: renamed from: c (int, int) gI\r\n class_1069 method_104(int var1, int var2);\r\n\r\n // $FF: renamed from: d (int, int) gI\r\n class_1069 method_105(int var1, int var2);\r\n\r\n // $FF: renamed from: b (gG, int, int) void\r\n void method_106(class_25 var1, int var2, int var3);\r\n\r\n // $FF: renamed from: b (boolean, vu) boolean\r\n boolean method_107(boolean var1, class_81 var2);\r\n\r\n // $FF: renamed from: a () boolean\r\n boolean method_108();\r\n\r\n // $FF: renamed from: b () boolean\r\n boolean method_109();\r\n\r\n // $FF: renamed from: c () java.lang.String\r\n String method_110();\r\n\r\n // $FF: renamed from: b (as, int, int, int) java.util.List\r\n List method_111(class_922 var1, int var2, int var3, int var4);\r\n\r\n // $FF: renamed from: b (ahb, java.lang.String, int, int, int) dd\r\n class_1034 method_112(ahb var1, String var2, int var3, int var4, int var5);\r\n\r\n // $FF: renamed from: d () int\r\n int method_113();\r\n\r\n // $FF: renamed from: f (int, int) void\r\n void method_114(int var1, int var2);\r\n\r\n // $FF: renamed from: e () void\r\n void method_115();\r\n}", "@Override\n\tpublic Class[] getMethodParameterTypes() {\n\t\treturn new Class[]{byte[].class, int.class,byte[].class,\n\t\t byte[].class, int.class, byte[].class,\n\t\t int.class, byte[].class, byte[].class};\n\t}", "public static void main(String[] args) {\n\n MethodOverloading mo = new MethodOverloading();\n mo.sum();\n int s1 = mo.sum(4,9,7);\n System.out.println(\"With three params sum is : \"+s1);\n int s2 = mo.sum(6,8);\n System.out.println(\"With two params sum is : \"+s2);\n\n }", "public abstract void mo102900a(int i, int i2);", "public interface C2541a {\n /* renamed from: O */\n boolean mo6498O(C41531v c41531v);\n\n /* renamed from: P */\n boolean mo6499P(C41531v c41531v);\n\n /* renamed from: a */\n void mo6500a(int i, int i2, Object obj, boolean z);\n\n /* renamed from: a */\n void mo6501a(C41531v c41531v, View view, Object obj, int i);\n\n /* renamed from: a */\n boolean mo6502a(C41531v c41531v, Object obj);\n\n /* renamed from: b */\n View mo6503b(RecyclerView recyclerView, C41531v c41531v);\n\n /* renamed from: by */\n void mo6504by(Object obj);\n\n /* renamed from: cu */\n void mo6505cu(View view);\n}", "public abstract Result mo5059a(Params... paramsArr);", "boolean method_107(boolean var1, class_81 var2);", "public interface AbstractC2726a {\n /* renamed from: a */\n void mo36480a(int i, int i2, ImageView imageView, Uri uri);\n\n /* renamed from: a */\n void mo36481a(int i, ImageView imageView, Uri uri);\n\n /* renamed from: a */\n void mo36482a(ImageView imageView, Uri uri);\n\n /* renamed from: b */\n void mo36483b(int i, ImageView imageView, Uri uri);\n}", "public String overloadingMeth(int angka) { //contoh dari overloading method\n int x;\n x = angka % 10;\n valueword = \"\";\n if (angka == 0) {\n valueword = \"Nol\";\n\n } else if (angka == 100) {\n valueword = \"Seratus\";\n } else if (x == 0) {\n valueword += normalword[angka / 10] + \" Puluh\";\n\n } else if (angka < 12) {\n valueword += normalword[angka];\n } else if (angka < 20) {\n\n valueword += normalword[angka - 10] + \" Belas\";\n } else if (angka < 100) {\n valueword += normalword[angka / 10] + \" Puluh \" + normalword[angka % 10];\n } else if (angka > 100) {\n System.out.println(\"MASUKAN ERROR,ANGKA TIDAK BOLEH LEBIH DARI 100\");\n }\n return valueword;\n }", "public interface b {\n void a(int i, String str, String str2, String str3);\n\n void a(long j);\n }", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "private void init() {\n\t\t// pick to pieces method signature description\n\t\tthis.argTypes = Type.getArgumentTypes(this.desc);\n\t\tthis.newArgTypes = new LinkedList<Type>();\n\t\tfor (Type t : this.argTypes) {\n\t\t\tthis.newArgTypes.add(t);\n\t\t\tif(t.getSort() == Type.OBJECT && !TaintTrackerConfig.isString(t))\n\t\t\t\tcontinue;\n//\t\t\tdetermine proper taint for each argument and append it to newArgTypes\n\t\t\tif (t.getSort() == Type.ARRAY) {\n\t\t\t\tif (t.getElementType().getSort() != Type.OBJECT || TaintTrackerConfig.isString(t.getElementType())) {\n\t\t\t\t\tif (t.getDimensions() > 1) {\n\t\t\t\t\t\tthis.newArgTypes.add(Type.getType(TaintTrackerConfig.TAINT_DESC));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.newArgTypes.add(Type.getType(TaintTrackerConfig.TAINT_DESC_ARR));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.newArgTypes.add(Type.getType(TaintTrackerConfig.TAINT_DESC));\n\t\t\t}\n\t\t}\n\t\tthis.newReturnType = Type.getReturnType(desc);\n\t\tif (this.newReturnType.getSort() != Type.VOID && this.newReturnType.getSort() != Type.OBJECT) {\n\t\t\tTaintWrapper<?,?> returnType = TaintTrackerConfig.wrapReturnType(Type.getReturnType(desc));\n\t\t\tif(returnType != null)\n\t\t\t\tthis.newReturnType = Type.getType(returnType.getClass());\n\t\t}\n\t\telse if( (this.newReturnType.getSort() == Type.OBJECT && TaintTrackerConfig.isString(this.newReturnType))\n\t\t|| (this.newReturnType.getSort() == Type.ARRAY && TaintTrackerConfig.isString(this.newReturnType.getElementType())) ){\n\t\t\tTaintWrapper<?,?> returnType = TaintTrackerConfig.wrapReturnType(Type.getReturnType(desc));\n\t\t\tif(returnType != null)\n\t\t\t\tthis.newReturnType = Type.getType(returnType.getClass());\n\t\t}\n\t\t\n\t\tType[] newArgs = new Type[newArgTypes.size()];\n\t\tnewArgTypes.toArray(newArgs);\n\t\tthis.newDesc = Type.getMethodDescriptor(newReturnType, newArgs);\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\t\toverload2 ov=new overload2();\r\n\t\tint i=88;\r\n\t\tov.test();\r\n\t\tov.test(10, 20);\r\n\t\tov.test(i);//test(double a) exacute \r\n\t\tov.test(123.2);\r\n\r\n\r\n\t}", "interface dmf {\n void a(int i, double d);\n\n void a(int i, float f);\n\n void a(int i, int i2);\n\n void a(int i, long j);\n\n void a(int i, dik dik);\n\n void a(int i, Object obj);\n\n void a(int i, Object obj, dkw dkw);\n\n void a(int i, boolean z);\n\n void b(int i, int i2);\n\n void b(int i, long j);\n\n @Deprecated\n void b(int i, Object obj, dkw dkw);\n\n void c(int i, int i2);\n\n void c(int i, long j);\n\n void d(int i, int i2);\n\n void d(int i, long j);\n\n void e(int i, int i2);\n\n void e(int i, long j);\n\n void f(int i, int i2);\n}", "public interface a {\n void a(int i, O o, Object obj);\n\n void a(int i, String str);\n }", "@Override\n public SubroutineDescriptor getOverload(List<ExpressionNode> actualParameters) throws LexicalException {\n for (SubroutineDescriptor descriptor : this.overloads) {\n if (this.compareActualWithFormatParameters(descriptor.getFormalParameters(), actualParameters)) {\n return descriptor;\n }\n }\n\n throw new LexicalException(\"Not existing overload for this subroutine\");\n }", "int foo(int a, int b);", "@OOPMultipleInterface\npublic interface I7D {\n @OOPMultipleMethod\n default String f(Object p1, Object p2, Object p3) throws OOPMultipleException {return \"\";}\n @OOPMultipleMethod\n default String f(Integer p1, Object p2, E p3) throws OOPMultipleException {return \"\";}\n}", "public interface C1115k {\n /* renamed from: a */\n int mo5866a(State state, String... strArr);\n\n /* renamed from: a */\n int mo5867a(String str, long j);\n\n /* renamed from: a */\n List<C1111j> mo5868a();\n\n /* renamed from: a */\n List<C1111j> mo5869a(int i);\n\n /* renamed from: a */\n void mo5870a(C1111j jVar);\n\n /* renamed from: a */\n void mo5871a(String str);\n\n /* renamed from: a */\n void mo5872a(String str, Data data);\n\n /* renamed from: b */\n List<C1111j> mo5873b();\n\n /* renamed from: b */\n List<C1113b> mo5874b(String str);\n\n /* renamed from: b */\n void mo5875b(String str, long j);\n\n /* renamed from: c */\n List<String> mo5876c();\n\n /* renamed from: c */\n List<String> mo5877c(String str);\n\n /* renamed from: d */\n int mo5878d();\n\n /* renamed from: d */\n C1114c mo5879d(String str);\n\n /* renamed from: e */\n State mo5880e(String str);\n\n /* renamed from: f */\n C1111j mo5881f(String str);\n\n /* renamed from: g */\n int mo5882g(String str);\n\n /* renamed from: h */\n List<C1114c> mo5883h(String str);\n\n /* renamed from: i */\n List<Data> mo5884i(String str);\n\n /* renamed from: j */\n int mo5885j(String str);\n\n /* renamed from: k */\n List<C1114c> mo5886k(String str);\n}", "private boolean methodEqueals(Method m1, Method m2) {\n\t\tif (m1.getName() == m2.getName()) {\n\t\t\tif (!m1.getReturnType().equals(m2.getReturnType()))\n\t\t\t\treturn false;\n\t\t\tClass<?>[] params1 = m1.getParameterTypes();\n\t\t\tClass<?>[] params2 = m2.getParameterTypes();\n\t\t\tif (params1.length == params2.length) {\n\t\t\t\tfor (int i = 0; i < params1.length; i++) {\n\t\t\t\t\tif (params1[i] != params2[i])\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "interface C4571et<T> {\n /* renamed from: a */\n int mo16684a(T t);\n\n /* renamed from: a */\n T mo16685a();\n\n /* renamed from: a */\n void mo16686a(T t, C4570es esVar, C4499ch chVar) throws IOException;\n\n /* renamed from: a */\n void mo16687a(T t, C4621gg ggVar) throws IOException;\n\n /* renamed from: a */\n boolean mo16688a(T t, T t2);\n\n /* renamed from: b */\n int mo16689b(T t);\n\n /* renamed from: b */\n void mo16690b(T t, T t2);\n\n /* renamed from: c */\n void mo16691c(T t);\n\n /* renamed from: d */\n boolean mo16692d(T t);\n}", "public abstract boolean a(e parame, b paramb, int paramInt1, int paramInt2);", "interface C3069a {\n @C0193h0\n /* renamed from: a */\n Bitmap mo12204a(int i, int i2, Config config);\n\n /* renamed from: a */\n void mo12205a(Bitmap bitmap);\n\n /* renamed from: a */\n void mo12206a(byte[] bArr);\n\n /* renamed from: a */\n void mo12207a(int[] iArr);\n\n /* renamed from: a */\n int[] mo12208a(int i);\n\n /* renamed from: b */\n byte[] mo12209b(int i);\n }", "void method_114(int var1, int var2);", "public AmbiguousMethodException(String s) {\n super(s);\n }", "public static void main(String[] args) {\n\n Method();\n Method(10);\n Method(\"Hello\");\n Method(10, 20);\n // Multiple methods can have the same name as long as the number and/or type of parameters are different.\n \n }", "public interface xe {\n Object a(int i, Class cls);\n\n Object a(Class cls);\n\n void a();\n\n void a(int i);\n\n void a(Object obj);\n}", "interface C0868a {\n /* renamed from: a */\n void mo3207a(Object obj);\n\n /* renamed from: a */\n void mo3208a(String str, Bundle bundle);\n\n /* renamed from: a */\n void mo3209a(String str, Bundle bundle, ResultReceiver resultReceiver);\n\n /* renamed from: a */\n boolean mo3210a(Intent intent);\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "private Arguments validateAndReturnType(String[] arguments) {\n\t\tif(arguments == null || arguments.length == 0 || arguments.length > 3)\n \t\treturn Arguments.INVALID;\n\t\tString arg1 = arguments[0].toLowerCase();\n\t\tif(arg1.equals(\"increase\") || arg1.equals(\"reduce\") || arg1.equals(\"inrange\")){\n\t\t\tif(arguments.length != 3)\n\t\t\t\treturn Arguments.INVALID;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(arg1.equals(\"increase\"))\n\t\t\t\t\treturn Arguments.INCREASE;\n\t\t\t\telse if(arg1.equals(\"reduce\"))\n\t\t\t\t\treturn Arguments.REDUCE;\n\t\t\t\telse if(arg1.equals(\"inrange\"))\n\t\t\t\t\treturn Arguments.INRANGE;\n\t\t\t}\n\t\t} else if(arg1.equals(\"next\") || arg1.equals(\"previous\") || arg1.equals(\"count\")) {\n\t\t\tif(arguments.length != 2)\n\t\t\t\treturn Arguments.INVALID;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(arg1.equals(\"next\"))\n\t\t\t\t\treturn Arguments.NEXT;\n\t\t\t\telse if(arg1.equals(\"previous\"))\n\t\t\t\t\treturn Arguments.PREVIOUS;\n\t\t\t\telse if(arg1.equals(\"count\"))\n\t\t\t\t\treturn Arguments.COUNT;\n\t\t\t}\n\t\t} else if(arg1.equals(\"quit\")) {\n\t\t\treturn Arguments.QUIT;\n\t\t} else\n\t\t\treturn Arguments.INVALID;\n\t\t\t\n\t\treturn null;\n\t}", "public interface C20779a {\n /* renamed from: a */\n C15430g mo56154a();\n\n /* renamed from: a */\n void mo56155a(float f);\n\n /* renamed from: a */\n void mo56156a(int i, int i2);\n\n /* renamed from: b */\n float mo56157b();\n\n /* renamed from: b */\n boolean mo56158b(int i, int i2);\n\n /* renamed from: c */\n int[] mo56159c();\n\n /* renamed from: d */\n int[] mo56160d();\n\n /* renamed from: e */\n void mo56161e();\n\n /* renamed from: f */\n ReactionWindowInfo mo56162f();\n\n /* renamed from: g */\n void mo56163g();\n}", "public void method_197(class_1549 var1, long var2) {}", "public interface C2604b {\n /* renamed from: a */\n void mo1886a(String str, String str2);\n\n /* renamed from: a */\n boolean mo1887a(String str);\n\n /* renamed from: b */\n String mo1888b(String str, String str2, String str3, String str4);\n }", "private static void a(Object param0, Class<?> param1) {\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "public interface AbstractC16592a {\n /* renamed from: a */\n void mo67920a();\n\n /* renamed from: a */\n void mo67921a(Object obj);\n\n /* renamed from: a */\n void mo67922a(AbstractC32732ag agVar, Throwable th);\n\n /* renamed from: b */\n void mo67923b();\n\n /* renamed from: c */\n void mo67924c();\n }", "public interface RoundtripPortTypeB {\n\n public java.lang.Float methodSoapFloat(java.lang.Float inSoapFloat)\n throws java.rmi.RemoteException;\n public java.lang.Double methodSoapDouble(java.lang.Double inSoapDouble)\n throws java.rmi.RemoteException;\n public java.lang.Boolean methodSoapBoolean(java.lang.Boolean inSoapBoolean)\n throws java.rmi.RemoteException;\n public java.lang.Byte methodSoapByte(java.lang.Byte inSoapByte)\n throws java.rmi.RemoteException;\n public java.lang.Short methodSoapShort(java.lang.Short inSoapShort)\n throws java.rmi.RemoteException;\n public java.lang.Integer methodSoapInt(java.lang.Integer inSoapInt)\n throws java.rmi.RemoteException;\n public java.lang.Long methodSoapLong(java.lang.Long inSoapLong)\n throws java.rmi.RemoteException;\n public void throwInvalidTickerException()\n throws InvalidTickerSymbol, \n java.rmi.RemoteException;\n public void throwInvalidTradeExchange()\n throws InvalidCompanyId, InvalidTradeExchange, InvalidTickerSymbol, \n java.rmi.RemoteException;\n\n // Overloading test\n public int getId(BondInvestment investment) throws java.rmi.RemoteException;\n public int getId(Investment investment) throws java.rmi.RemoteException;\n\n public void holderTest(StringHolder sh, BondInvestmentHolder bih);\n}", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "private static String getMethodSignature(Class[] paramTypes, Class retType) {\n StringBuffer sbuf = new StringBuffer();\n sbuf.append('(');\n for (int i = 0; i < paramTypes.length; i++) {\n sbuf.append(getClassSignature(paramTypes[i]));\n }\n sbuf.append(')');\n sbuf.append(getClassSignature(retType));\n return sbuf.toString();\n }", "public String formOverloaded()\r\n {\r\n return formError(\"502 Server overloaded\",\"Try again latter\");\r\n }", "public interface C2672h {\n /* renamed from: a */\n void mo1927a(NLPResponseData nLPResponseData);\n\n /* renamed from: a */\n void mo1931a(C2848p c2848p);\n\n /* renamed from: a */\n void mo1932a(String str);\n\n /* renamed from: b */\n void mo1933b(int i);\n\n /* renamed from: b */\n void mo1934b(String str);\n\n /* renamed from: c */\n void mo1935c(String str);\n\n /* renamed from: i */\n void mo1940i();\n\n /* renamed from: j */\n void mo1941j();\n\n /* renamed from: k */\n void mo1942k();\n\n /* renamed from: l */\n void mo1943l();\n}", "public void a(int paramInt1, int paramInt2, float paramFloat)\r\n/* 23: */ {\r\n/* 24:22 */ a(0, 0, this.l, this.m, -12574688, -11530224);\r\n/* 25: */ \r\n/* 26:24 */ a(this.q, this.a, this.l / 2, 90, 16777215);\r\n/* 27:25 */ a(this.q, this.f, this.l / 2, 110, 16777215);\r\n/* 28: */ \r\n/* 29:27 */ super.a(paramInt1, paramInt2, paramFloat);\r\n/* 30: */ }", "protected abstract void handle(Object... params);", "public OverloadedFunction getOverloadedFunctionByNameAndArity(String name, int arity) throws NoSuchRascalFunction {\n\t OverloadedFunction of = overloadedStoreMap.get(name);\n\t Type tp = null;\n\t //System.err.println(of);\n\t ArrayList<Integer> filteredAlts = new ArrayList<>();\n\t if(of != null){\n\t for (int alt : of.getFunctions()) {\n\t //System.err.println(\"alt: \" + functionStore[alt].ftype);\n\t if (functionStore[alt].ftype.getArity() == arity) {\n\t tp = functionStore[alt].ftype;\n\t filteredAlts.add(alt);\n\t }\n\t }\n\t if(filteredAlts.size() > 0){\n\t int falts[] = new int[filteredAlts.size()];\n\t for(int i = 0; i < falts.length; i++){\n\t falts[i] = filteredAlts.get(i);\n\t }\n\t OverloadedFunction ovf = new OverloadedFunction(name, tp, falts, new int[] { }, \"\");\n\t ovf.fids2objects(functionStore, constructorStore);\n\t return ovf;\n\t }\n\t }\n\t filteredAlts = getFunctionByNameAndArity(name, arity);\n\t if(filteredAlts.size() > 0){\n\t tp = tf.tupleType(tf.valueType()); // arbitrary!\n int falts[] = new int[filteredAlts.size()];\n for(int i = 0; i < falts.length; i++){\n falts[i] = filteredAlts.get(i);\n }\n OverloadedFunction ovf = new OverloadedFunction(name, tp, falts, new int[] { }, \"\");\n ovf.fids2objects(functionStore, constructorStore);\n return ovf;\n }\n\t \n\n\t // ?? why are constructors not part of overloaded functions?\n\t for(int i = 0; i < constructorStore.length; i++){\n\t tp = constructorStore[i];\n\t if (tp.getName().equals(name) && tp.getArity() == arity) {\n\t OverloadedFunction ovf = new OverloadedFunction(name, tp, new int[]{}, new int[] { i }, \"\");\n\t ovf.fids2objects(functionStore, constructorStore);\n return ovf;\n\t }\n\t }\n\n\t throw new NoSuchRascalFunction(name);\n\t}", "@Override\n\tpublic int method1() {\n\t\treturn 20;\n\t}", "public interface C0141g {\n /* renamed from: a */\n void mo84a();\n\n /* renamed from: a */\n void mo85a(int i);\n\n /* renamed from: a */\n void mo86a(C0163d c0163d);\n\n /* renamed from: a */\n void mo87a(String str);\n\n /* renamed from: a */\n void mo88a(byte[] bArr, int i, int i2);\n\n /* renamed from: b */\n C0139e mo89b();\n}", "public static void main(String[] args) {\n\t\t\n\t\tmethodoverloading mol = new methodoverloading();\n\t\toverriding ovr = new overriding();\n\t\t\n\t\tSystem.out.println(mol.sum(5, 7));\n\t\tSystem.out.println(mol.sum(10, 5, 8));\n\t\tmol.print();\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public String a(String paramString, int paramInt)\r\n/* 512: */ {\r\n/* 513:512 */ return a(paramString, paramInt, false);\r\n/* 514: */ }", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "public abstract void m1(int a);", "public interface T93 {\n\n void get2(List<String> stringList);\n\n void get(List<Integer> integerList);\n}", "@Test\n\tpublic void testClassHasCopyAndReplaceLessThanMethod() {\n\t\t// EDIT THESE TO MATCH YOUR METHOD\n\t\tmethodName = \"copyAndReplaceLessThan\";\n\t\targTypes = \"\";\n\t\treturnType = \"int[]\";\n\t\t// END EDIT\n\t\t// class exists\n\t\ttry {\n\t\t\tPackage pkg = getClass().getPackage();\n\t\t\tString path = pkg == null ? \"\" : pkg.getName() + \".\";\n\t\t\tcls = Class.forName(path + className);\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tfail(\"File \\\"\" + className + \".class\\\" doesn't have a \\\"\" + className\n\t\t\t\t\t+ \"\\\" class. (is the class name spelled right?)\");\n\t\t}\n\n\t\t// class has method\n\t\ttry {\n\t\t\t// EDIT HERE TO GIVE PARAMETER TYPES\n\t\t\tmethod = cls.getMethod(methodName, int[].class, int.class);\n\t\t\t// END EDIT\n\t\t} catch (NoSuchMethodException | SecurityException e) {\n\t\t\tfail(\"Class \\\"\" + className + \"\\\" doesn't have a \\\"\" + methodName + \"(\" + argTypes\n\t\t\t\t\t+ \")\\\" method. (is the method name spelled right? are its parameters correct?)\");\n\t\t}\n\t\tinvokation = className + \".\" + methodName + \"(\" + argTypes + \")\";\n\t}", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public abstract boolean method_1028(class_44 var1);", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "void method16(int aOne)\n {\n }", "MethodType (String m, Type r, ExpressionList args) {\r\n name = m;\r\n return_type = r;\r\n arguments = args;\r\n body = null;\r\n }", "class_1034 method_112(ahb var1, String var2, int var3, int var4, int var5);", "public abstract void method1();", "public interface ArrayAccessReplacementMethodNames{\n\n /**\n * Returns the name of a static method with the signature\n * <code>(Ljava/lang/Object;I)B</code> to replace reading from a byte[].\n */\n String byteOrBooleanRead();\n\n /**\n * Returns the name of a static method with the signature\n * <code>(Ljava/lang/Object;IB)V</code> to replace writing to a byte[].\n */\n String byteOrBooleanWrite();\n\n /**\n * @return the name of a static method with the signature\n * <code>(Ljava/lang/Object;I)C</code> to replace reading from a char[].\n */\n String charRead();\n\n /**\n * Returns the name of a static method with the signature\n * <code>(Ljava/lang/Object;IC)V</code> to replace writing to a byte[].\n */\n String charWrite();\n\n /**\n * Returns the name of a static method with the signature\n * <code>(Ljava/lang/Object;I)D</code> to replace reading from a double[].\n */\n String doubleRead();\n\n /**\n * Returns the name of a static method with the signature\n * <code>(Ljava/lang/Object;ID)V</code> to replace writing to a double[].\n */\n String doubleWrite();\n\n /**\n * Returns the name of a static method with the signature\n * <code>(Ljava/lang/Object;I)F</code> to replace reading from a float[].\n */\n String floatRead();\n\n /**\n * Returns the name of a static method with the signature\n * <code>(Ljava/lang/Object;IF)V</code> to replace writing to a float[].\n */\n String floatWrite();\n\n /**\n * Returns the name of a static method with the signature\n * <code>(Ljava/lang/Object;I)I</code> to replace reading from a int[].\n */\n String intRead();\n\n /**\n * Returns the name of a static method with the signature\n * <code>(Ljava/lang/Object;II)V</code> to replace writing to a int[].\n */\n String intWrite();\n\n /**\n * Returns the name of a static method with the signature\n * <code>(Ljava/lang/Object;I)J</code> to replace reading from a long[].\n */\n String longRead();\n\n /**\n * Returns the name of a static method with the signature\n * <code>(Ljava/lang/Object;IJ)V</code> to replace writing to a long[].\n */\n String longWrite();\n\n /**\n * Returns the name of a static method with the signature\n * <code>(Ljava/lang/Object;I)Ljava/lang/Object;</code>\n * to replace reading from a Object[] (or any subclass of object).\n */\n String objectRead();\n\n /**\n * Returns the name of a static method with the signature\n * <code>(Ljava/lang/Object;ILjava/lang/Object;)V</code>\n * to replace writing to a Object[] (or any subclass of object).\n */\n String objectWrite();\n\n /**\n * Returns the name of a static method with the signature\n * <code>(Ljava/lang/Object;I)S</code> to replace reading from a short[].\n */\n String shortRead();\n\n /**\n * Returns the name of a static method with the signature\n * <code>(Ljava/lang/Object;IS)V</code> to replace writing to a short[].\n */\n String shortWrite();\n }", "private boolean isOverloaded(){\n\t\tif(((double) this.contains) / this.table.length > .6){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public interface C11994b {\n /* renamed from: a */\n C11996a mo41079a(String str);\n\n /* renamed from: a */\n C11996a mo41080a(String str, C11997b bVar, String... strArr);\n\n /* renamed from: a */\n C11998c mo41081a(String str, C11999d dVar, String... strArr);\n\n /* renamed from: a */\n C12000e mo41082a(String str, C12001f fVar, String... strArr);\n\n /* renamed from: a */\n void mo41083a();\n\n /* renamed from: a */\n void mo41084a(C12018b bVar, ConnectionState... connectionStateArr);\n\n /* renamed from: b */\n C11996a mo41085b(String str);\n\n /* renamed from: b */\n void mo41086b();\n\n /* renamed from: c */\n C12000e mo41087c(String str);\n\n /* renamed from: c */\n C12017a mo41088c();\n\n /* renamed from: d */\n void mo41089d(String str);\n\n /* renamed from: e */\n C11998c mo41090e(String str);\n\n /* renamed from: f */\n C12000e mo41091f(String str);\n\n /* renamed from: g */\n C11998c mo41092g(String str);\n}", "public void a(long arg16, double arg18, double arg20) {\n }", "public abstract void mo70711a(String str, String str2);" ]
[ "0.6712232", "0.6265107", "0.6216218", "0.61900115", "0.61320615", "0.6110381", "0.6063182", "0.6046722", "0.6033004", "0.59593123", "0.59459376", "0.5883066", "0.5861709", "0.5785834", "0.57702726", "0.5762672", "0.576111", "0.5729419", "0.57215303", "0.5719421", "0.5710422", "0.56940275", "0.56884104", "0.56683046", "0.5644422", "0.5613301", "0.56128603", "0.5596552", "0.558799", "0.5580893", "0.55413836", "0.5507921", "0.5507638", "0.54979104", "0.5492438", "0.5492438", "0.54915714", "0.5487004", "0.54697615", "0.5469061", "0.5468441", "0.5460888", "0.5457418", "0.5456798", "0.54467064", "0.54384756", "0.5437932", "0.5421001", "0.5403226", "0.53899103", "0.5382225", "0.53688735", "0.53604054", "0.53379476", "0.5336978", "0.5315946", "0.5314429", "0.53057873", "0.5301697", "0.53014934", "0.5296886", "0.5288866", "0.52871644", "0.52860826", "0.52853996", "0.52838284", "0.52723104", "0.5260782", "0.52583945", "0.52561295", "0.5244", "0.5225379", "0.5224328", "0.52227825", "0.5222275", "0.52174914", "0.5208316", "0.5201264", "0.5198252", "0.5193581", "0.5182466", "0.5165188", "0.51624495", "0.5151097", "0.5148974", "0.514611", "0.51429856", "0.51405424", "0.51375", "0.51367706", "0.5134184", "0.5128384", "0.51200616", "0.5119277", "0.5113242", "0.5112294", "0.51120037", "0.5100343", "0.5100144", "0.5095842", "0.50808984" ]
0.0
-1
2nd type of overloading. the type of the parameter changed compared to the 1st one
public void setInfo(int inAge){ age = inAge; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isMoreSpecific (MethodType type) throws OverloadingAmbiguous {\r\n boolean status = false;\r\n\r\n try {\r\n for (int i = 0, size = arguments.size (); i < size; i++) {\r\n\tIdentifier this_arg = (Identifier) arguments.elementAt (i);\r\n\tIdentifier target_arg = (Identifier) type.arguments.elementAt (i);\r\n\r\n\tint type_diff = this_arg.type.compare (target_arg.type);\r\n\tif (type_diff == 0)\r\n\t continue;\r\n\telse if (type_diff > 0) {\r\n\t if (status == true) throw new OverloadingAmbiguous ();\r\n\t} else {\r\n\t if (i != 0) throw new OverloadingAmbiguous ();\r\n\t status = true;\r\n\t}\r\n }\r\n } catch (OverloadingAmbiguous ex) {\r\n throw ex;\r\n } catch (TypeMismatch ex) {\r\n throw new OverloadingAmbiguous ();\r\n }\r\n\r\n return status;\r\n }", "public static void main(String[] args) {\n\t\tOverloadingType1 ot1 = new OverloadingType1();\n\t\tshort a=3, b=6;\n\t\tot1.add(2, 3);\n\t\tot1.add(a, b);\n\t\tot1.add(a);\n\t\t\n\t\t\n\t}", "public void testOverloadedMethods(){\n System.out.printf(\"Square of integer 7 is %d\\n\", square(7));\n System.out.printf(\"Square of double 7.5 is %f\\n\", square(7.5));\n }", "static void add() {\r\n\t\tSystem.out.println(\"Overloading Method\");\r\n\t}", "public static void main(String[] args) {\n\t\tP92_Overloading_Sample obj=new P92_Overloading_Sample();\n\t\tSystem.out.println(obj.add());//30\n\t\tSystem.out.println(obj.add(500));//530\n\t\tSystem.out.println(obj.add(200, 300.9f));//500\n\t\tSystem.out.println(obj.add(55, 500));//555\n\t}", "public void openen() {\n System.out.println(\"2.Overloaded methode zonder argument\");\n }", "public void sum(int a, int b)\r\n\t{\r\n\t\tint c=a+b;\r\n\t\tSystem.out.println(\"Addition of 2 no [method overloading] : \" + c);\r\n\t\t\r\n\t}", "@Override\n\tpublic void javaMethodBaseWithTwoParams(long longParam, double doubleParam) {\n\t\t\n\t}", "public abstract void a(b paramb, int paramInt1, int paramInt2);", "public static void main(String[] args) {\n methodOverloading();\n }", "public interface IMostSpecificOverloadDecider\n{\n OverloadRankingDto inNormalMode(\n WorkItemDto workItemDto, List<OverloadRankingDto> applicableOverloads, List<ITypeSymbol> argumentTypes);\n\n //Warning! start code duplication, more or less the same as in inNormalMode\n List<OverloadRankingDto> inSoftTypingMode(\n WorkItemDto workItemDto, List<OverloadRankingDto> applicableOverloads);\n}", "private static void a(Object param0, Class<?> param1) {\n }", "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\t\toverload2 ov=new overload2();\r\n\t\tint i=88;\r\n\t\tov.test();\r\n\t\tov.test(10, 20);\r\n\t\tov.test(i);//test(double a) exacute \r\n\t\tov.test(123.2);\r\n\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tMethodOverloading7.add(1, 2, 3);\n\t\tMethodOverloading7.add(1, 2l, 3l);\n\t\tMethodOverloading7.add(1, 2, 3l);\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tCompleOverloadDemo1 obj = new CompleOverloadDemo1();\r\n\t\t\r\n\t\tobj.add(1, 3); \t\t\t\t\t\t\t\t\t\t//Calling first function with 2 parameters\r\n\t\tobj.add(3.2, 3);\t\t\t\t\t\t\t\t\t//Calling second function with 2 different type of parameters\r\n\t\tobj.add(2, 3, 1);\t\t\t\t\t\t\t\t\t//Calling third function with 3 parameters\r\n\t\tobj.add(3, 3.4);\t\t\t\t\t\t\t\t\t//Calling Forth function with 2 different type of parameters in different order\r\n\r\n\t}", "public void b(int paramInt1, int paramInt2) {}", "public void b(int paramInt1, int paramInt2) {}", "public interface a {\n void a(int i, O o, Object obj);\n\n void a(int i, String str);\n }", "@Override\n\tprotected void merge(Object in1, Object in2, Object out) {\n\t\t\n\t}", "boolean method_107(boolean var1, class_81 var2);", "protected void a(int paramInt1, int paramInt2, boolean paramBoolean, yz paramyz) {}", "private void checkTypes(Variable first, Variable second) throws OutmatchingParameterType {\n VariableVerifier.VerifiedTypes firstType = first.getType();\n VariableVerifier.VerifiedTypes secondType = second.getType();\n\n if (!firstType.equals(secondType)) {\n throw new OutmatchingParameterType();\n }\n }", "public abstract boolean a(e parame, b paramb, int paramInt1, int paramInt2);", "@Override\n\tpublic void test(T1 t) {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tOverloadingAdditionEx ad=new OverloadingAdditionEx();\n\t\tad.add(10, 20);\n\t\tad.add(10,20, 30);\n\t\tad.add(20.5f, 10.7f);\n\t\tad.add(10, 20.6f);\n\n\t}", "public interface b {\n void a(int i, String str, String str2, String str3);\n\n void a(long j);\n }", "S op(final S a, final S b);", "public AmbiguousMethodException() {\n super();\n }", "public int a(String paramString, int paramInt1, int paramInt2, int paramInt3)\r\n/* 239: */ {\r\n/* 240:247 */ return a(paramString, (float)paramInt1, (float)paramInt2, paramInt3, false);\r\n/* 241: */ }", "protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);", "public abstract T zzg(T t, T t2);", "public abstract T2 $2();", "public int a(String paramString, float paramFloat1, float paramFloat2, int paramInt)\r\n/* 234: */ {\r\n/* 235:243 */ return a(paramString, paramFloat1, paramFloat2, paramInt, true);\r\n/* 236: */ }", "public getType_args(getType_args other) {\n }", "private boolean methodEqueals(Method m1, Method m2) {\n\t\tif (m1.getName() == m2.getName()) {\n\t\t\tif (!m1.getReturnType().equals(m2.getReturnType()))\n\t\t\t\treturn false;\n\t\t\tClass<?>[] params1 = m1.getParameterTypes();\n\t\t\tClass<?>[] params2 = m2.getParameterTypes();\n\t\t\tif (params1.length == params2.length) {\n\t\t\t\tfor (int i = 0; i < params1.length; i++) {\n\t\t\t\t\tif (params1[i] != params2[i])\n\t\t\t\t\t\treturn false;\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 StringUnionFunc() {\n\t super.addLinkableParameter(\"str1\"); \n\t\t super.addLinkableParameter(\"str2\"); \n }", "OverloadedFunctionDescriptor() {\n super();\n this.overloads = new ArrayList<>();\n }", "public static void method(Object obj){\n\t System.out.println(\"method with param type - Object\");\n\t }", "public static void main(String[] args) {\r\n\t\t\r\n\t\tMethodOverloading m = new MethodOverloading();\r\n\t\tm.sum();\r\n\t\tm.sum(15, 15);\r\n\t\t\r\n\t}", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public interface xe {\n Object a(int i, Class cls);\n\n Object a(Class cls);\n\n void a();\n\n void a(int i);\n\n void a(Object obj);\n}", "@Override\r\n\tpublic void PrimitiveOperation2() {\n\t\tSystem.out.println(\"Concrete class B method 2 implemation\");\r\n\t}", "protected boolean method_4324(class_1691 var1, float var2) {\r\n return super.method_3896(var1, var2);\r\n }", "void mo16690b(T t, T t2);", "private boolean isOverloaded(){\n\t\tif(((double) this.contains) / this.table.length > .6){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public SubroutineDescriptor getOverload(List<ExpressionNode> actualParameters) throws LexicalException {\n for (SubroutineDescriptor descriptor : this.overloads) {\n if (this.compareActualWithFormatParameters(descriptor.getFormalParameters(), actualParameters)) {\n return descriptor;\n }\n }\n\n throw new LexicalException(\"Not existing overload for this subroutine\");\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "class_1069 method_104(int var1, int var2);", "public void a(int paramInt1, int paramInt2, float paramFloat)\r\n/* 23: */ {\r\n/* 24:22 */ a(0, 0, this.l, this.m, -12574688, -11530224);\r\n/* 25: */ \r\n/* 26:24 */ a(this.q, this.a, this.l / 2, 90, 16777215);\r\n/* 27:25 */ a(this.q, this.f, this.l / 2, 110, 16777215);\r\n/* 28: */ \r\n/* 29:27 */ super.a(paramInt1, paramInt2, paramFloat);\r\n/* 30: */ }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "protected ScaledBlit(SurfaceType paramSurfaceType1, CompositeType paramCompositeType, SurfaceType paramSurfaceType2) {\n/* 89 */ super(methodSignature, primTypeID, paramSurfaceType1, paramCompositeType, paramSurfaceType2);\n/* */ }", "boolean mo16688a(T t, T t2);", "protected abstract boolean canConvert(Class<?> parameterType, Class<?> originalArgumentType);", "public AmbiguousMethodException(String s) {\n super(s);\n }", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "interface cl {\n void b(List<a> list, List<String> list2);\n}", "BParameterTyping createBParameterTyping();", "class_1069 method_105(int var1, int var2);", "public setType_result(setType_result other) {\n }", "public Exp\nadjustTypesOfBinaryOperands( Exp pExp1, Exp pExp2 );", "public void b(String param1, jl.f param2) {\n }", "public static void main(String[] args) {\n\n MethodOverloading mo = new MethodOverloading();\n mo.sum();\n int s1 = mo.sum(4,9,7);\n System.out.println(\"With three params sum is : \"+s1);\n int s2 = mo.sum(6,8);\n System.out.println(\"With two params sum is : \"+s2);\n\n }", "public abstract void mo70715b(String str, String str2);", "private boolean areSameType(String s1, String s2) {\n\t\treturn((isMatrix(s1) && isMatrix(s2)) || (isOperator(s1) && isOperator(s2)) || (isNumber(s1) && isNumber(s2)));\n\t}", "public abstract void mo102900a(int i, int i2);", "public abstract void mo70711a(String str, String str2);", "private void tryCallWithPrimitives() {\n int primitiveType = 10;\n // the method call will take a copy of primitiveType variable value, the original value will not changed\n callMethod(primitiveType);\n // the value is just 100\n System.out.println(primitiveType);\n }", "Type1Equivalent getType1Equivalent();", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "public void method_197(class_1549 var1, long var2) {}", "public abstract void zza(zzk zzk, zzk zzk2);", "public abstract A a(com.airbnb.lottie.g.a<K> aVar, float f2);", "public abstract int a(long j2, int i2);", "public interface b {\n void a(long j);\n\n void a(boolean z);\n\n void e();\n }", "public static void main(String[] args) {\n\t\tMethodOverload m=new MethodOverload();\t\n\t\tint p=m.add(40,1);\n\t\t\t\tint q=m.add(10, 1);\n\t\tSystem.out.println(\"p=\" +p);\n\t\tSystem.out.println(\"q=\" +q);\n\t\t// TODO Auto-generated method stub\n\n\t}", "public interface o<Downstream, Upstream> {\n r<? super Upstream> a(r<? super Downstream> rVar) throws Exception;\n}", "public boolean a(String param1, jl.f param2) {\n }", "public interface T93 {\n\n void get2(List<String> stringList);\n\n void get(List<Integer> integerList);\n}", "public void a(Object obj) {\n }", "static int type_of_call(String passed){\n\t\treturn 1;\n\t}", "boolean overrides(MethodDeclaration sub, MethodDeclaration sup);", "private boolean match(Type t, Type original) {\n\t\t\t\treturn original.getSort() == Type.METHOD && original.getSort() == t.getSort();\n\t\t\t}", "public boolean sameSignature(MethodType other) {\n return name.equals(name) &&\n Arrays.equals(typeParams, other.typeParams) &&\n Arrays.equals(paramTypes, other.paramTypes);\n }", "public void setOverloaded(final boolean overloaded) {\n _overloaded = overloaded;\n }", "private void fixType(NameInfo name1Info, NameInfo name2Info) {\n\t\tString type1 = name1Info.getType();\n\t\tString type2 = name2Info.getType();\n//\t\tString name1 = name1Info.getName();\n//\t\tString name2 = name2Info.getName();\n\t\t\n\t\tif (!name1Info.isEnforced() && !name2Info.isEnforced()) {\n\t\t\tfixLoc(name1Info);\n\t\t\tfixLoc(name2Info);\n\t\t\tfixOrg(name1Info);\n\t\t\tfixOrg(name2Info);\n\t\t\tfixPeople(name1Info);\n\t\t\tfixPeople(name2Info);\n\t\t\tString longName = \"\";\n\t\t\tString shortName = \"\";\n\t\t\tif ((name1Info.getName()).length() >= (name2Info.getName()).length()) {\n\t\t\t\tlongName = name1Info.getName();\n\t\t\t\tshortName = name2Info.getName();\n\t\t\t} else {\n\t\t\t\tlongName = name2Info.getName();\n\t\t\t\tshortName = name1Info.getName();\n\t\t\t}\n\t\t\tif (acroMan.isAcronymFirstLetters(shortName, longName)) {\n\t\t\t\tname1Info.setType(\"ORG\");\n\t\t\t\tname2Info.setType(\"ORG\");\n\t\t\t}\n\t\t}\n\t\t\n\t\ttype1 = name1Info.getType();\n\t\ttype2 = name2Info.getType();\n\t\t\n\t\tif (!type1.equals(NameInfo.GENERIC_TYPE) && !type2.equals(NameInfo.GENERIC_TYPE) && !type1.equals(type2)){\n\t\t\tscoreShingle = 0.0f;\n\t\t\tscore = 0.0f;\n\t\t\treason = \"Types \" + type1 + \" and \" + type2 + \" cannot be compared\";\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (type1.equals(NameInfo.GENERIC_TYPE) && !type2.equals(NameInfo.GENERIC_TYPE)) {\n\t\t\ttype1 = type2;\n\t\t\tname1Info.setType(type1);\n\t\t} else if (type2.equals(NameInfo.GENERIC_TYPE) && !type1.equals(NameInfo.GENERIC_TYPE)) {\n\t\t\ttype2 = type1;\n\t\t\tname2Info.setType(type2);\n\t\t}\n\t}", "boolean replacementfor(Type o);", "public static void main(String[] args) {\n\t\t\n\t\tmethodoverloading mol = new methodoverloading();\n\t\toverriding ovr = new overriding();\n\t\t\n\t\tSystem.out.println(mol.sum(5, 7));\n\t\tSystem.out.println(mol.sum(10, 5, 8));\n\t\tmol.print();\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public boolean overrideEquivalent(MethodType other) {\n return this.sameSubsignature(other) || other.sameSubsignature(this);\n }", "protected abstract int intOp(int i1, int i2);", "public void setValue(Object param1, Object param2) {\n }", "@Override\npublic void sub(int a, int b) {\n\t\n}", "public interface dhd {\n InputStream a(Object obj);\n\n Object a(InputStream inputStream);\n}", "public String overloadingMeth(int angka) { //contoh dari overloading method\n int x;\n x = angka % 10;\n valueword = \"\";\n if (angka == 0) {\n valueword = \"Nol\";\n\n } else if (angka == 100) {\n valueword = \"Seratus\";\n } else if (x == 0) {\n valueword += normalword[angka / 10] + \" Puluh\";\n\n } else if (angka < 12) {\n valueword += normalword[angka];\n } else if (angka < 20) {\n\n valueword += normalword[angka - 10] + \" Belas\";\n } else if (angka < 100) {\n valueword += normalword[angka / 10] + \" Puluh \" + normalword[angka % 10];\n } else if (angka > 100) {\n System.out.println(\"MASUKAN ERROR,ANGKA TIDAK BOLEH LEBIH DARI 100\");\n }\n return valueword;\n }", "public interface i\n{\n\n public abstract void a(long l, a a1);\n}", "void method16(int aOne)\n {\n }", "void typePromition(int a, long b){\n\t\tSystem.out.println(\"Method-5 (TypePromotion) Result is: \" + (a+b));\n\t}", "@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}", "public abstract T accept(Context context, FieldType left, FieldType right);", "public interface RestrictVatIdNumber<SELF extends Restrict<SELF>> extends Restrict<SELF>\n{\n\n default SELF vatIdNumber(String... numbers)\n {\n return restrict(\"vatIdNumber\", (Object[]) numbers);\n }\n\n default SELF vatIdNumbers(Collection<String> numbers)\n {\n return vatIdNumber(numbers.toArray(new String[numbers.size()]));\n }\n\n}", "public void a(long arg16, double arg18, double arg20) {\n }", "@Override\n\tpublic void particular1() {\n\t\t\n\t}" ]
[ "0.6570035", "0.6256793", "0.62124974", "0.61894757", "0.6098348", "0.5990616", "0.59548277", "0.5892586", "0.58523494", "0.5764113", "0.57367474", "0.5735386", "0.5726303", "0.5714523", "0.5576255", "0.5542524", "0.5542524", "0.55248684", "0.54929745", "0.54648584", "0.5445069", "0.53384966", "0.53224826", "0.53220457", "0.5313268", "0.5307361", "0.5294368", "0.52898306", "0.52620524", "0.52413726", "0.5231431", "0.5228683", "0.52198493", "0.5215297", "0.5204577", "0.51971036", "0.51716584", "0.515629", "0.51489615", "0.5146359", "0.51378983", "0.5137473", "0.5135439", "0.5131323", "0.5120507", "0.51107275", "0.5103785", "0.5084141", "0.50797707", "0.50763524", "0.5066638", "0.5057058", "0.50464106", "0.50252414", "0.5014477", "0.5012436", "0.50035906", "0.5001858", "0.4983368", "0.49778956", "0.49730587", "0.49719402", "0.49665952", "0.49573296", "0.49512628", "0.49474183", "0.49406898", "0.49393576", "0.49383762", "0.4925261", "0.491821", "0.49181432", "0.4913504", "0.49116674", "0.48989758", "0.48985258", "0.48887858", "0.48812208", "0.487273", "0.4864101", "0.48615634", "0.48568985", "0.48528966", "0.4842592", "0.48423988", "0.48370183", "0.4814722", "0.48142186", "0.4813618", "0.48074836", "0.48019227", "0.48010427", "0.47958344", "0.47879028", "0.47821346", "0.47754264", "0.47749847", "0.476638", "0.476", "0.47523078", "0.47500515" ]
0.0
-1
///////////////////////////////////////////////////////////////// // public methods ////
public TransferableObject(ObjBase obj) { this.obj = obj; }
{ "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\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n protected void prot() {\n }", "public void gored() {\n\t\t\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}", "private void getStatus() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "private void strin() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void method_4270() {}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public abstract void mo70713b();", "private void kk12() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\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 protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@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\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "protected abstract Set method_1559();", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public abstract void mo27385c();", "public abstract String mo41079d();", "@Override\n public void init() {\n\n }", "private void init() {\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public void mo21793R() {\n }", "public void mo4359a() {\n }", "public abstract String mo118046b();", "private void init() {\n\n\n\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "private void poetries() {\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 void mo38117a() {\n }", "@Override\n protected void initialize() {\n\n \n }", "private static void cajas() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "@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 final void mo51373a() {\n }", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "private void m50366E() {\n }", "public void mo21877s() {\n }", "@Override\n\tpublic void processing() {\n\n\t}", "public abstract Object mo26777y();", "@Override\n public void memoria() {\n \n }", "private static void iterator() {\n\t\t\r\n\t}", "public void mo21779D() {\n }", "public void ovr() {\n\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}" ]
[ "0.65948933", "0.6475392", "0.63615495", "0.632693", "0.62893796", "0.62046444", "0.6188225", "0.6075393", "0.6058208", "0.6040633", "0.6040633", "0.60404086", "0.60386187", "0.60386187", "0.6020168", "0.60170305", "0.6006618", "0.6004605", "0.59884095", "0.59869736", "0.5976427", "0.59688395", "0.5962125", "0.5926038", "0.592267", "0.5910956", "0.59049445", "0.5887896", "0.5887371", "0.588736", "0.58596545", "0.5859328", "0.5855669", "0.5854508", "0.57967025", "0.57964957", "0.5796181", "0.57952213", "0.57880574", "0.5768075", "0.5766605", "0.57569855", "0.5744783", "0.57447", "0.57445925", "0.57445925", "0.57423574", "0.5736239", "0.57280946", "0.57280946", "0.57280946", "0.57280946", "0.57280946", "0.57158417", "0.5715425", "0.5714495", "0.5712972", "0.5711614", "0.57113165", "0.57092834", "0.5708652", "0.5708652", "0.570199", "0.57017595", "0.5701339", "0.5699984", "0.5695529", "0.5695047", "0.569081", "0.56857", "0.56713974", "0.56703377", "0.56619096", "0.56617606", "0.5661716", "0.5661585", "0.5661585", "0.5661585", "0.5661392", "0.5656803", "0.5655104", "0.5647703", "0.5643614", "0.5643614", "0.5643614", "0.56373364", "0.5636343", "0.5636343", "0.56357384", "0.5633827", "0.56305206", "0.5629124", "0.56236935", "0.5620793", "0.5615308", "0.5613169", "0.5608981", "0.56084174", "0.56074166", "0.5589249", "0.5587979" ]
0.0
-1
NAME OF THE FORMAT
@Override public String getFormat() { return "properties"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFormat();", "String getFormat();", "String getFormat();", "public String getFormat() {\n/* 206 */ return getValue(\"format\");\n/* */ }", "@Override\n public String getFormatName() throws IOException {\n return input == null? myDefaultFormat.getName() : getInfo().getFormat().getName();\n }", "public abstract String getFileFormatName();", "public String formatTypeName()\r\n {\r\n return mFormatTypeName;\r\n }", "Object getFormat();", "public String format () {\n\t\treturn format;\n\t}", "public String getFormat()\n {\n return format;\n }", "private String inFormat() {\n File f = cfg.getReadFromFile();\n if (f != null) {\n return \" in format file \" + f.getPath();\n }\n return \" in format \" + StringUtils.defaultString(cfg.getName(), \"(unnamed)\");\n }", "@VTID(8)\r\n java.lang.String format();", "public String getFormat() {\n return format;\n }", "public String getFormat() {\n return format;\n }", "public String getFormat() {\n return format;\n }", "public String getFormat() {\n return this.format;\n }", "public String getFormat() {\r\n return _format;\r\n }", "public String getFormat() {\n\t\treturn format;\n\t}", "public String getFormatName()\n/* */ {\n/* 465 */ if (getClass() == JsonFactory.class) {\n/* 466 */ return \"JSON\";\n/* */ }\n/* 468 */ return null;\n/* */ }", "String getFormatter();", "public String getFormat() {\n\t\treturn formatString;\n\t}", "public int getFormat ()\n {\n return this.format;\n }", "String documentFormat();", "protected abstract String format();", "public String getFormatName() {\n\t\tString name = getName();\n\t\tif (name.startsWith(SpotlessPlugin.EXTENSION)) {\n\t\t\tString after = name.substring(SpotlessPlugin.EXTENSION.length());\n\t\t\tif (after.endsWith(SpotlessPlugin.CHECK)) {\n\t\t\t\treturn after.substring(0, after.length() - SpotlessPlugin.CHECK.length()).toLowerCase(Locale.US);\n\t\t\t} else if (after.endsWith(SpotlessPlugin.APPLY)) {\n\t\t\t\treturn after.substring(0, after.length() - SpotlessPlugin.APPLY.length()).toLowerCase(Locale.US);\n\t\t\t}\n\t\t}\n\t\treturn name;\n\t}", "public int getFormat()\n {\n return format;\n }", "String getValueFormat();", "public String getFormat() {\n\t\treturn getAttribute(FORMAT_TAG);\n\t}", "private String descFormat() {\n File f = cfg.getReadFromFile();\n if (f != null) {\n return f.getPath();\n }\n return StringUtils.defaultString(cfg.getName(), \"(unnamed)\");\n }", "public String getFormatString() {\r\n if (format == null) { return \"\"; }\r\n if (format.equals(ImportQueueItem.FORMAT_TAB)) {\r\n return FORMAT_TAB_DISPLAY;\r\n } else if (format.equals(ImportQueueItem.FORMAT_XML)) {\r\n return FORMAT_XML_DISPLAY;\r\n } else if (format.equals(ImportQueueItem.FORMAT_DISCOURSE)) {\r\n return FORMAT_DISCOURSE_DISPLAY;\r\n } else {\r\n return format + \" format\";\r\n }\r\n }", "Format internalGetFormat()\n {\n return doGetFormat();\n }", "@Override\n\tpublic String toString()\n\t{\n\t\treturn toString(Locale.getDefault(Locale.Category.FORMAT));\n\t}", "public String fileFormat() {\n DateTimeFormatter df = DateTimeFormatter.ofPattern(\"dd MMM yyyy HHmm\");\n return \"D | \" + (super.isDone ? \"1 | \" : \"0 | \") + this.description + \" | \" + df.format(this.date);\n }", "public void setFormat(String fmt)\n {\n format = fmt;\n }", "FileFormat getFormat();", "public String getFormat() {\n Object ref = format_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n format_ = s;\n return s;\n }\n }", "public String toString(){\n return \"Format: \" + format +\", \" + super.toString(); \n }", "public String getLabelFormat() {\n\t\treturn this.labelFormat;\n\t}", "public String getFormat() {\n Object ref = format_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n format_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getWriteFormatDescription(int formatIndex);", "public String getFormat() throws Exception {\n\t\treturn doc.selectSingleNode(\"/metadataFieldInfo/field/@metaFormat\").getText();\n\t}", "private void formatSystem() {}", "protected String getToStringFormat()\n {\n return getClass().getSimpleName() + \"@\"\n + Integer.toHexString(hashCode()) + \": { \"\n + \"offset = 0x\" + Integer.toHexString(offset) + \"; \"\n + \"size = \" + size + \"; \"\n + \"%s\"\n + \"value = \" + getValue() + \"; \"\n + \"isAccessible = \" + isAccessible() + \"; \"\n + \"checksum = 0x\" + Integer.toHexString(checksum()) + \"; \"\n + \"}\";\n }", "String getKeyFormat();", "private Format()\n {\n super();\n }", "String getOutputFormat();", "void format();", "String getContentFormat();", "public void setFormat(String value) {\n/* 198 */ setValue(\"format\", value);\n/* */ }", "@Override\r\n\tpublic String getFormat() {\r\n\t\treturn \"java\";\r\n\t}", "public com.google.protobuf.ByteString\n getFormatBytes() {\n Object ref = format_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n format_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getSupportFormat() {\r\n\t\treturn supportFormat;\r\n\t}", "public DefaultFormat() {\n }", "public String getFormatCode() {\n if (format == null) return \"MP4\";\n switch(format) {\n case \"Windows Media\": return \"WMV\";\n case \"Flash Video\": return \"FLV\";\n case \"MPEG-4\": return \"MP4\";\n case \"Matroska\": return \"MKV\";\n case \"AVI\": return \"AVI\";\n default: return \"MP4\";\n }\n }", "public void setFormat(String format) {\r\n _format = format;\r\n }", "public String getFormatString() {\n\t\treturn formatString;\n\t}", "public default String getFormat() {\n return Constants.FORMAT_JSON;\n }", "public String getNameIdFormat() {\n return nameIdFormat;\n }", "public String getChangeFileBeginFormat() {\r\n \t\treturn properties.getProperty(KEY_CHANGE_FILE_BEGIN_FORMAT);\r\n \t}", "protected Format doGetFormat()\n {\n return null;\n }", "@UML(identifier=\"fileFormat\", obligation=MANDATORY, specification=ISO_19139)\n Format getFileFormat();", "public void setFormat(String format) {\n this.format = format;\n }", "public void setFormat(String format) {\n this.format = format;\n }", "public void setFormat(String format) {\n this.format = format;\n }", "private Formats() {\n }", "public String getFormatDesign() {\n return (String)getAttributeInternal(FORMATDESIGN);\n }", "public RMFormat getFormat()\n {\n return getStyle().getFormat();\n }", "public com.google.protobuf.ByteString\n getFormatBytes() {\n Object ref = format_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n format_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public abstract String getOutputFormat();", "public String getGUITimestampFormat();", "private String getTimeFormat() {\r\n return mData.getConfiguration(\"x-labels-time-format\", \"yyyy-MM-dd\");\r\n }", "@ApiModelProperty(required = true, value = \"The file type of the file.\")\n public String getFormat() {\n return format;\n }", "@Field(0) \n\tpublic int format() {\n\t\treturn this.io.getIntField(this, 0);\n\t}", "private String formatGroupName (String groupName) {\n\t\treturn groupName;\n\t}", "public String getFileFormat()\r\n\t{\r\n\t\treturn this.getSerializer().getFileFormat();\r\n\t}", "public String getFormato() {\n\t\treturn formato;\n\t}", "public String getChangeFileEndFormat() {\r\n \t\treturn properties.getProperty(KEY_CHANGE_FILE_END_FORMAT);\r\n \t}", "public String getDataFormatPattern() {\r\n return dataFormatPattern;\r\n }", "@Override\r\n public OwFormat getFormat()\r\n {\n return null;\r\n }", "protected String getDataFormat() {\n return this.dataFormat;\n }", "public APIFormat(AS400 system, String name) {\r\n\r\n this.system = system;\r\n this.name = name;\r\n this.length = -1;\r\n this.fields = null;\r\n\r\n this.int4Conv = null;\r\n this.charConv = null;\r\n this.dateTimeConv = null;\r\n\r\n this.offset = 0;\r\n }", "@Override\n\tpublic String[] getFormats() {\n\t\treturn new String[] {\"yyyy-MM-dd'T'HH:mm:ss\",\"yyyy-MM-dd HH:mm:ss\",\"yyyy-MM-dd HH:mm\",\"yyyy-MM-dd'T'HH:mm\",\"yyyy-MM-dd HH\", \"yyyy-MM-dd\" };\n\t}", "@Override\n\tpublic KRRFormat format() {\n\t\treturn null;\n\t}", "public String toString()\n {\n return toString((Format) null);\n }", "public String printFormat(){\n return \"The workout: \" + getName() + \" should be done for \" + getSets() + \" sets and in each set should be \"\n + getReps() + \" reps.\";\n }", "public String getGUIDateFormat();", "@Override\n\tpublic String getName() {\n\t\treturn String.format(\"%s|%.1f|%d\", this.getClass().getName(), this.scale, this.targetContent);\n\t}", "public void addFormat(Format format);", "String getFormat(Object elementID) throws Exception;", "private FormatUtilities() {}", "public int getAlFormat()\n {\n return alFormat;\n }", "@Override\n public String saveFormat() {\n return \"E\" + super.saveFormat() + \",\" + by;\n }", "com.google.protobuf.ByteString\n getFormatBytes();", "void formatName(String name) throws NameFormatException;", "@Field(0) \r\n\tpublic ValuedEnum<DXGI_FORMAT> format() {\r\n\t\treturn this.io.getEnumField(this, 0);\r\n\t}", "public abstract String getImageFormat();", "public final AdFormat getFormat() {\n\t\treturn impl.getFormat();\n }", "public String getFormat()\r\n\t{\r\n\t\treturn (String) queryParams.get(FMT_JSON);\r\n\t}", "public Format getFormat()\n {\n return (formatControl == null) ? null : formatControl.getFormat();\n }", "public String getReadFormatDescription(int formatIndex);" ]
[ "0.8222087", "0.8222087", "0.8222087", "0.7820706", "0.7749716", "0.76816833", "0.76154673", "0.7526173", "0.75144905", "0.74909234", "0.74657255", "0.7458386", "0.74171245", "0.74171245", "0.74171245", "0.73406446", "0.7340287", "0.73301184", "0.72931194", "0.7258528", "0.7251416", "0.7205645", "0.7198803", "0.7175902", "0.71089935", "0.7084478", "0.70419544", "0.693535", "0.6924057", "0.686758", "0.6839779", "0.6838945", "0.675871", "0.67502004", "0.67243385", "0.67073077", "0.67039114", "0.66967225", "0.6654958", "0.6640064", "0.6626144", "0.66205657", "0.6612044", "0.66075283", "0.6594862", "0.65851295", "0.6583439", "0.6570701", "0.65593827", "0.6552287", "0.6514247", "0.64849526", "0.64837", "0.64811546", "0.6480936", "0.6473127", "0.64682394", "0.646041", "0.6447599", "0.6424217", "0.64241093", "0.64124095", "0.64124095", "0.64124095", "0.6410927", "0.6410086", "0.6383678", "0.63809896", "0.632946", "0.6322908", "0.6308845", "0.63085395", "0.6280561", "0.6277752", "0.62616336", "0.62512743", "0.6249816", "0.6243025", "0.62259126", "0.621519", "0.6207664", "0.61996907", "0.61806", "0.6173347", "0.61709803", "0.6161922", "0.6158777", "0.6156609", "0.6144281", "0.61430895", "0.61419904", "0.6127139", "0.6111156", "0.6084662", "0.60799944", "0.6060929", "0.6059778", "0.60592735", "0.6042338", "0.60376304" ]
0.64734876
55
Matriz da somatoria total desejada e da lista de elementos a se somar.
private static int getHighestSum(List<? extends ISubsetSum> list, int n, int sum) { boolean subset[][] = new boolean[sum + 1][n + 1]; // primeira coluna toda true, pois se considera que com qualquer // conjunto se pode obter uma somatoria de 0. for (int i = 0; i <= n; i++) subset[0][i] = true; // nenhuma somatoria é possível com nenhum elemento. for (int i = 1; i <= sum; i++) subset[i][0] = false; // Vai verificando se com aqueles elementos se obtem a sum iterada. for (int i = 1; i <= sum; i++) { for (int j = 1; j <= n; j++) { subset[i][j] = subset[i][j - 1]; if (i >= list.get(j - 1).getValue()) { subset[i][j] = subset[i][j] || subset[i - list.get(j - 1).getValue()][j - 1]; } } } // itera sobre a ultima row de tras para frente até achar um valor true // e retorna a maior somatoria, tal que somatoria <= sum. int maxSum = 0; for (int i = sum; i > 0; i--) { if (subset[i][n] == true) { maxSum = i; break; } } return maxSum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTotalElements();", "private int obstaculos() {\n\t\treturn this.quadricula.length * this.quadricula[0].length - \n\t\t\t\tthis.ardiveis();\n\t}", "public float totalVentas() {\n float total = 0;\n for (int i = 0; i < posicionActual; i++) {\n total += getValorCompra(i); //Recorre el arreglo y suma toda la informacion el el arreglo de los valores en una variable que luego se retorna \n }\n return total;\n }", "public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\treturn total;\n}", "public void totalEntradas(int[][] entradas) {\n int totalProductos = 0;\n int costoTotal = 0;\n \n ciclo : {\n for (int i = 0; i < entradas.length; i++) {\n if (entradas[i][1] != 0) {\n totalProductos++;\n costoTotal += entradas[i][3];\n }\n } \n }\n \n DefaultTableModel modelo = (DefaultTableModel) jTableTotalEntradaCostos.getModel();\n Object[] filaNueva = { totalProductos, costoTotal };\n modelo.addRow(filaNueva);\n }", "public List viewTotalInscritosBD();", "@Override\n public int summarizeQuantity() {\n int sum = 0;\n\n for ( AbstractItem element : this.getComponents() ) {\n sum += element.summarizeQuantity();\n }\n\n return sum;\n }", "public BigDecimal getValorTotal(){\r\n\t\r\n\t\t// percorre a lista de ItemVenda - stream especie de interator do java 8\r\n\t\treturn itens.stream()\r\n\t .map(ItemVenda::getValorTotal) // para cada um dos itens, obtem o valor total do item\t\r\n\t .reduce(BigDecimal::add) // soma todos os valores total \r\n\t .orElse(BigDecimal.ZERO); // caso não tenha nenhum item retorna zeo\r\n\t}", "@Override\n public double calcularValorCompra(ArrayList<Mueble> muebles){\n double total = 0d;\n for (Mueble m : muebles) {\n total+= m.getCantidad()*m.getPrecio();\n }\n return total; \n }", "public void mostrarTotales() { \n // Inicializacion de los atributos en 0\n totalPCs = 0;\n totalLaptops = 0;\n totalDesktops = 0; \n /* Recorrido de la lista de computadores para acumular el precio usar instanceof para comparar el tipo de computador */ \n for (Computador pc : computadores){\n if (pc instanceof PCLaptop) {\n totalLaptops += pc.calcularPrecio(); \n } else if (pc instanceof PCDesktop){\n totalDesktops += pc.calcularPrecio();\n }\n }\n totalPCs = totalLaptops + totalDesktops;\n System.out.println(\"El precio total de los computadores es de \" + totalPCs); \n System.out.println(\"La suma del precio de los Laptops es de \" + totalLaptops); \n System.out.println(\"La suma del precio de los Desktops es de \" + totalDesktops);\n }", "private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }", "public void Sumatoria()\n {\n for (int i = 0; i < vector1.length; i++) {\n sumatoria[i]=vector1[i]+vector2[i];\n }\n }", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "public double sum() {\n double resultat = 0;\n for (int i = 0; i < tab.size(); i++) {\n resultat += CalculatorArray.sum(tab.get(i));\n }\n System.out.println(\"Sum colonne:\" + resultat);\n return resultat;\n }", "public BigDecimal getTotal() {\n BigDecimal total = new BigDecimal(0);\n for (Item item : items){\n int quantity = item.getQuantity();\n BigDecimal subtotal = item.getPrice().multiply(new BigDecimal(quantity));\n total = total.add(subtotal);\n }\n return total;\n }", "protected int sumAll() {\n\t\tint total = 0;\n\t\t//iterate all rows\n\t\tfor(int i = 0;i<size();i++){\n\t\t\t//itreate all columns\n\t\t\tfor(int j = 0;j<size();j++){\n\t\t\t\tInteger cell = matrix.get(i).get(j);\n\t\t\t\ttotal+=cell;\n\t\t\t}\n\t\t}\n\t\treturn total;\n\t}", "long getNombreElements();", "public List<ParProdutoQuantidade> produtosMaisComprados(String cliente){\r\n Map<String, Integer> m = new HashMap<>();\r\n for (int i = 0; i < this.numFiliais; i++){\r\n Map<String, Integer> m2 = this.filial.get(i).produtosMaisComprados(cliente);\r\n for (String produto: m2.keySet()){\r\n Integer quantidade = m.get(produto);\r\n if (quantidade == null){\r\n m.put(produto, m2.get(produto));\r\n }\r\n else {\r\n m.put(produto, quantidade + m2.get(produto));\r\n }\r\n }\r\n }\r\n Set<ParProdutoQuantidade> s = new TreeSet<>();\r\n for (String produto: m.keySet()){\r\n s.add(new ParProdutoQuantidade (produto, m.get(produto)));\r\n }\r\n List<ParProdutoQuantidade> l = new ArrayList<>();\r\n for (ParProdutoQuantidade p: s){\r\n l.add(p);\r\n }\r\n return l;\r\n }", "public long getTotal() {\r\n\t\treturn page.getTotalElements();\r\n\t}", "public void generarTotal(){\n\n\t\tfloat total = 0;\n\n\t\tfor (int con = 0; con < modelo.getRowCount(); con++) {\n\n\t\t\ttotal += (float) tabla.getValueAt(con, 3);\n\t\t\t\n\t\t}\n\n\t\tcampoTotal.setText(formato.format(total));\n\n\t\tlimpiarCampos();\n\n\t}", "public void calcularPesos(){\r\n StructursDecisors.weightsDecisors=new ArrayList();\r\n double [][] matrizEigenvectors=createMatriz();\r\n for(int i=0; i<Structurs.names.size();i++)\r\n for(int j=0; j<StructursDecisors.names.size(); j++)\r\n System.out.println(\"MatrizEigenvector[\"+i+\"][\"+j+\"]\"+\"=\"+matrizEigenvectors[i][j]);\r\n double eigenvectorCriterios[]=new double[Structurs.eigenvector.size()];\r\n for(int i=0; i<Structurs.eigenvector.size(); i++)\r\n eigenvectorCriterios[i]=(double) Structurs.eigenvector.get(i);\r\n double []vectorPesos=createArrayPesos(matrizEigenvectors, eigenvectorCriterios);\r\n \r\n }", "public void totalFacturaVenta(){\n BigDecimal totalVentaFactura = new BigDecimal(0);\n \n try{\n //Recorremos la lista de detalle y calculamos la Venta total de la factura\n for(Detallefactura det: listDetalle){\n //Sumamos a la variable 'totalVentaFactura'\n totalVentaFactura = totalVentaFactura.add(det.getTotal());\n } \n }catch(Exception e){\n e.printStackTrace();\n }\n \n //Setemos al objeto Factura el valor de la variable 'totalFacturaVenta'\n factura.setTotalVenta(totalVentaFactura);\n \n }", "public int getCartasJugador() {\r\n\t\tint suma = this.escudoTorre.getValor() + this.escudoRey.getValor()\r\n\t\t\t\t+ this.escudoNobleza.getValor() + this.escudoRey.getValor();\r\n\t\treturn suma;\r\n\t}", "public int getTotalRecaudado()\n {\n return maquina1.getTotal() + maquina2.getTotal();\n }", "public double totalQuantity() {\r\n\t\tdouble t = 0;\r\n\t\tfor(int i=0;i<boxes[0];i++)\r\n\t\t\tfor(int j=0;j<boxes[1];j++)\r\n\t\t\t\tfor(int k=0;k<boxes[2];k++) t += quantity[i][j][k];\r\n\t\treturn t;\r\n\t}", "public static int[] totalCost(ArrayList<Medicine> list){\n int x[] = new int[3];// to save all (cost and sales)\n for(int i = 0; i<list.size(); i++){\n x[0] += list.get(i).getUnitCost();// save total cost in here\n x[1] += list.get(i).getSalesPrice(); // save total sale in here\n }\n x[2] = x[0]-x[1]; // calculate net cost\n return x;\n }", "@Override\n\tpublic int size() {\n\t\tint nr = 0;\n\t\tfor (int i = 0; i < nrb; i++) {\n\t\t\t// pentru fiecare bucket numar in lista asociata acestuia numarul de\n\t\t\t// elemente pe care le detine si le insumez\n\t\t\tfor (int j = 0; j < b.get(i).getEntries().size(); j++) {\n\t\t\t\tnr++;\n\t\t\t}\n\t\t}\n\t\treturn nr;// numaru total de elemente\n\t}", "private void getSum() {\n\t\tint sum =0;\r\n\t\t\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i] != null)\r\n\t\t\t\tsum += products[i].getPrice();\r\n\t\t}\r\n\t\tSystem.out.println(sum);\r\n\t}", "Soldat[][] getUnites();", "public void notaFinal() {\n\n for (int i = 0; i <= (nombres.size() - 1); i++) {\n\n notaFinal.add((notas.get(0) + notas.get(1) + notas.get(2)) / 3);\n\n }\n\n }", "@Override\n\tpublic int size() {\n\t\tint tamano = 0;\n\t\tint i = 0;\n\t\tIterator it = tabla.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tit.next();\n\t\t\ttamano += tabla.get(i).keySet().size();\n\t\t\ti++;\n\t\t}\n\t\treturn tamano;\n\t}", "public synchronized double getTotal(){\n float CantidadTotal=0;\n Iterator it = getElementos().iterator();\n while (it.hasNext()) {\n ArticuloVO e = (ArticuloVO)it.next();\n CantidadTotal=CantidadTotal+(e.getCantidad()*e.getPrecio());\n}\n\n \n return CantidadTotal;\n\n }", "public BigDecimal getValorTotal() {\n\t\treturn itens.stream()\n\t\t\t\t.map(ItemDieta::getValorTotal)\n\t\t\t\t.reduce(BigDecimal::add)\n\t\t\t\t.orElse(BigDecimal.ZERO);\n\t}", "public void prinRecaudacion()\n {\n System.out.println(\"La cantidad recaudada por la maquina1 es \" + maquina1.getTotal());\n System.out.println(\"La cantidad recaudada por la maquina2 es \" + maquina2.getTotal());\n System.out.println(\"La cantidad total es\" + ( maquina1.getTotal() + maquina2.getTotal()));\n}", "private static void calcularTotal(String[] campos) {\n\t\tif (campos.length == 1)\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos: \" + gestor.totalAtribuidos());\n\t\telse {\n\t\t\tint escalao = Integer.valueOf(campos[1]);\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos no escalao \" + escalao + \" : \" + gestor.atribuidosNoEscalao(escalao));\n\t\t}\n\t}", "public int getPrecios()\r\n {\r\n for(int i = 0; i < motos.size(); i++)\r\n {\r\n precio_motos += motos.get(i).getCoste();\r\n }\r\n \r\n return precio_motos;\r\n }", "private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }", "public static String[][] leerTotales() {\n //saco el total de registros\n int cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM totales\");\n while (result.next()) {\n cont++;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //matriz para guardar los registros\n String[][] reporte = new String[cont][12];\n cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM totales\");\n while (result.next()) {\n //leo los registros y los guardo cada uno en un renglon de la matriz \n reporte[cont][0] = result.getString(1);\n reporte[cont][1] = result.getString(2);\n reporte[cont][2] = result.getString(3);\n reporte[cont][3] = result.getString(4);\n reporte[cont][4] = result.getString(5);\n reporte[cont][5] = result.getString(6);\n reporte[cont][6] = result.getString(7);\n reporte[cont][7] = result.getString(8);\n reporte[cont][8] = result.getString(9);\n reporte[cont][9] = result.getString(10);\n reporte[cont][10] = result.getString(11);\n reporte[cont][11] = result.getString(12);\n\n cont++;\n }\n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //regreso reporte completo\n return reporte;\n }", "public float valorTotalItem()\r\n {\r\n float total = (produto.getValor() - (produto.getValor() * desconto)) * quantidade;\r\n return total;\r\n }", "public int getTotal() {\n return total[ke];\n }", "public int getCouts(){\r\n\t\treturn listeEleves.size();\r\n\t}", "public ArrayList getOrdenCartas();", "public int[][] MatrizPesos(){\n return this.mat;\n }", "private ArrayList<Integer> GetAllServiceQuantity(List<Services> services){\n // Create new empty arrayList of service quantity\n ArrayList<Integer> tmp = new ArrayList<Integer>();\n\n // Loop though services list and add service quantity to tmp arraylist\n for(Services service : services){\n tmp.add(service.getServiceQuantity());\n }\n\n return tmp;\n }", "private void laskeMatkojenKesto() {\n matkojenkesto = 0.0;\n\n for (Matka m : matkat) {\n matkojenkesto += m.getKesto();\n }\n }", "@Override\r\n\tpublic long getTotal() {\n\t\treturn 0;\r\n\t}", "private int sumaCen(){\n int kasa = 0;\n for(Restauracja r :zamowioneDania){\n kasa+=r.getCena();\n }\n return kasa;\n }", "public int ardiveis() {\n\t\tint result = 0;\n\t\tfor (EstadoAmbiente[] linha : this.quadricula) {\n\t\t\tfor (EstadoAmbiente ea : linha) {\n\t\t\t\tif(ea == EstadoAmbiente.CASA || ea == EstadoAmbiente.TERRENO){\n\t\t\t\t\tresult++;\t\t\t\t \n\t\t\t\t}\t\t\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t\treturn result;\n\t}", "public int getQuantidade() {\r\n\r\n return produtos.size();\r\n }", "public void listadoNotaMediaAlumnos() {\r\n\t\tint acumulador;\r\n\t\tfor(int i=0; i<notasAlumnos.length; i++) {\r\n\t\t\tacumulador = 0;\r\n\t\t\tfor(int j=0; j<notasAlumnos[i].length; j++) {\r\n\t\t\t\tacumulador += notasAlumnos[i][j];\r\n\t\t\t}\r\n\t\t\tSystem.out.println(alumnos[i] + \": \" + acumulador + \" de Nota Media.\");\r\n\t\t}\r\n\t}", "public int precioTotalRepuestos() {\n int sumaTotal = 0;\n for (Dispositivo dispositivo : dispositivos) {\n sumaTotal += dispositivo.getPrecioRepuesto();\n }\n return sumaTotal;\n }", "public void total() {\n\t\t\n\t}", "public void listar_mais_vendeu(String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_MaisVendidas.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getMaisVendeu(tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal_vendido()});\n }\n \n \n }", "public void listar_saldoMontadoData(String data_entrega,String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_Saldo_Montado.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getSaldoVendaMontadoPorData(data_entrega, tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getTotal()});\n }\n \n \n }", "public HashSet<Integer> mesesComprou(){\n HashSet<Integer> hs = new HashSet<>();\n produtosComprados.keySet().stream().forEach(x->hs.add(x.getMes()));\n return hs;\n }", "public float montos(){\n\tDefaultTableModel modelo = vc.returnModelo();\r\n\tint numeroFilas=modelo.getRowCount();\r\n\tfloat monto=0;\r\n\t\tif(modelo.getRowCount()!=0){\r\n\t\t\r\n\t\t\tfor (int i = 0; i < numeroFilas; i++) {\r\n\t\t\t\t\r\n\t\t\t\tmonto = monto + Float.valueOf(modelo.getValueAt(i, 5).toString());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tmonto=0;\r\n\t\t}\r\n\t\treturn monto;\r\n\t}", "private double totalPrice(){\n\n double sum = 0;\n\n for (CarComponent carComponent : componentsCart) {\n sum += (carComponent.getCompPrice() * carComponent.getCompQuantity()) ;\n }\n return sum;\n }", "public ArrayList<Elemento> getPosicionesAdyacentes(){\n ArrayList <Elemento> result = new ArrayList<>();\n int[] coordenada_i = {0,1,1,1,0,-1,-1,-1};\n int[] coordenada_j = {1,1,0,-1,-1,-1,0,1};\n int nueva_posicion_fila = 0;\n int nueva_posicion_columna = 0;\n for(int k=0; k<8; k++){\n nueva_posicion_fila = fila + coordenada_i[k];\n nueva_posicion_columna = columna + coordenada_j[k];\n \n if((0 <= nueva_posicion_fila) && (nueva_posicion_fila < automata.getAutomata().length) && \n (0<= nueva_posicion_columna) && (nueva_posicion_columna < automata.getAutomata()[0].length)){\n result.add(automata.getElemento(nueva_posicion_fila,nueva_posicion_columna));\n \n }\n \n }\n return result;\n }", "public EstadoSimulacao[][] alvoSimulacao() {\n\t\treturn this.ambiente.alvoSimulacao();\n\t}", "private void somarQuantidade(Integer id_produto){\n\t for (ItensCompra it : itensCompra){\n\t\t //verifico se o item do meu arraylist é igual ao ID passado no Mapping\n\t\t if(it.getTable_Produtos().getId_produto().equals(id_produto)){\n\t //defino a quantidade atual(pego a quantidade atual e somo um)\n\t it.setQuantidade(it.getQuantidade() + 1);\n\t //a apartir daqui, faço o cálculo. Valor Total(ATUAL) + ((NOVA) quantidade * valor unitário do produto(ATUAL))\n\t it.setValorTotal(0.);\n\t it.setValorTotal(it.getValorTotal() + (it.getQuantidade() * it.getValorUnitario()));\n }\n}\n\t}", "public BigDecimal calcolaImportoTotaleSubdoumenti(){\n\t\tBigDecimal result = BigDecimal.ZERO;\n\t\tfor(SD ds : getListaSubdocumenti()){\n\t\t\tresult = result.add(ds.getImporto());\n\t\t}\n\t\treturn result;\n\t}", "public List<MovimentoPorCanalDeVendaVO> validaSelecionaEmissaoPorCanal(String movimento) {\n\n\t\tList<MovimentoPorCanalDeVendaVO> list = new ArrayList<MovimentoPorCanalDeVendaVO>(listaEmissaoPorCanal);\n\n\t\tList<MovimentoPorCanalDeVendaVO> listTotal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tString[] mesesTotaisValor = { \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\",\n\t\t\t\t\"0.0\" };\n\n\t\tString[] mesesTotaisQuantidade = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\tString anoTotal = null;\n\t\tString produtoTotal = null;\n\n\t\tint qtdQuantidade = 0;\n\t\tint qtdValor = 0;\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tif (!(list.get(i).getMovimento().trim().equalsIgnoreCase(movimento.trim()))) {\n\t\t\t\tlist.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\tfor (MovimentoPorCanalDeVendaVO objLista : list) {\n\t\t\tif (objLista.getTipo().equalsIgnoreCase(\"Valor\")) {\n\t\t\t\tqtdValor++;\n\t\t\t} else if (objLista.getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\t\t\t\tqtdQuantidade++;\n\t\t\t}\n\t\t}\n\t\tint indiceElementoNaoEncontrado = 0;\n\t\tif (qtdValor != qtdQuantidade) {\n\n\t\t\tif (qtdValor > qtdQuantidade) {// Valor eh maior\n\t\t\t\touter: for (int i = 0; i < list.size(); i++) {\n\t\t\t\t\tif (list.get(i).getTipo().equalsIgnoreCase(\"Valor\")) {\n\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// System.out.print(\" 1 | \"\n\t\t\t\t\t\t// + list.get(i).getCanalDeVenda());\n\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\t\t\tint achou = -1;\n\t\t\t\t\t\t\tif (list.get(j).getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\n\t\t\t\t\t\t\t\t// System.out.print(\" 2 | \"\n\t\t\t\t\t\t\t\t// + list.get(j).getCanalDeVenda());\n\t\t\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\t\t\tif (list.get(i).getCanalDeVenda().equals(list.get(j).getCanalDeVenda())) {\n\t\t\t\t\t\t\t\t\tachou = j;\n\t\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (j == list.size() - 1 && achou == -1) {\n\t\t\t\t\t\t\t\t\tindiceElementoNaoEncontrado = i;\n\t\t\t\t\t\t\t\t}\n\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}\n\n\t\t\t\tString[] meses = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\t\t\tMovimentoPorCanalDeVendaVO canalVendaVazio = new MovimentoPorCanalDeVendaVO();\n\t\t\t\tcanalVendaVazio.setCanalDeVenda(list.get(indiceElementoNaoEncontrado).getCanalDeVenda());\n\t\t\t\tcanalVendaVazio.setProduto(list.get(indiceElementoNaoEncontrado).getProduto());\n\t\t\t\tcanalVendaVazio.setTipo(\"Quantidade\");\n\t\t\t\tcanalVendaVazio.setMeses(meses);\n\n\t\t\t\tlist.add(((list.size() + 1) / 2 + indiceElementoNaoEncontrado), canalVendaVazio);// aqui\n\t\t\t\t/* estou ordenando tudo que é tipo 'Valor' antes de 'Quantidade' */\n\t\t\t} else {// Qtd eh maior\n\t\t\t\touter: for (int i = 0; i < list.size(); i++) {\n\t\t\t\t\tif (list.get(i).getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// System.out.print(\" 1 | \"\n\t\t\t\t\t\t// + list.get(i).getCanalDeVenda());\n\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\t\t\tint achou = -1;\n\t\t\t\t\t\t\tif (list.get(j).getTipo().equalsIgnoreCase(\"Valor\")) {\n\n\t\t\t\t\t\t\t\t// System.out.print(\" 2 | \"+\n\t\t\t\t\t\t\t\t// list.get(j).getCanalDeVenda());\n\t\t\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\t\t\tif (list.get(i).getCanalDeVenda().equals(list.get(j).getCanalDeVenda())) {\n\t\t\t\t\t\t\t\t\tachou = j;\n\t\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (j == list.size() - 1 && achou == -1) {\n\t\t\t\t\t\t\t\t\tindiceElementoNaoEncontrado = 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}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tString[] meses = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\t\t\tMovimentoPorCanalDeVendaVO canalVendaVazio = new MovimentoPorCanalDeVendaVO();\n\t\t\t\tcanalVendaVazio.setCanalDeVenda(list.get(indiceElementoNaoEncontrado).getCanalDeVenda());\n\t\t\t\tcanalVendaVazio.setProduto(list.get(indiceElementoNaoEncontrado).getProduto());\n\t\t\t\tcanalVendaVazio.setTipo(\"Valor\");\n\t\t\t\tcanalVendaVazio.setMeses(meses);\n\n\t\t\t\tlist.add(((list.size() + 1) / 2 + indiceElementoNaoEncontrado), canalVendaVazio);// aqui\n\t\t\t\t/* estou ordenando tudo que é tipo 'Valor' antes de 'Quantidade' */\n\n\t\t\t}\n\n\t\t}\n\n\t\t/*\n\t\t * ===Primeiro crio os objetos com os totais=========\n\t\t */\n\t\tfor (MovimentoPorCanalDeVendaVO emi : list) {\n\n\t\t\tif (emi.getTipo().equals(\"Valor\")) {\n\n\t\t\t\tfor (int i = 0; i < emi.getMeses().length; i++) {\n\t\t\t\t\tmesesTotaisValor[i] = new BigDecimal(mesesTotaisValor[i]).add(new BigDecimal(emi.getMeses()[i]))\n\t\t\t\t\t\t\t.toString();\n\t\t\t\t}\n\n\t\t\t} else if (emi.getTipo().equals(\"Quantidade\")) {\n\n\t\t\t\tfor (int i = 0; i < emi.getMeses().length; i++) {\n\t\t\t\t\tmesesTotaisQuantidade[i] = Integer.toString(\n\t\t\t\t\t\t\t(Integer.parseInt(mesesTotaisQuantidade[i]) + Integer.parseInt(emi.getMeses()[i])));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tanoTotal = emi.getAno();\n\t\t\tprodutoTotal = emi.getProduto();\n\n\t\t}\n\n\t\tMovimentoPorCanalDeVendaVO totalValor = new MovimentoPorCanalDeVendaVO();\n\t\tMovimentoPorCanalDeVendaVO totalQuantidade = new MovimentoPorCanalDeVendaVO();\n\n\t\ttotalValor.setCanalDeVenda(\"Total\");\n\t\ttotalValor.setProduto(produtoTotal);\n\t\ttotalValor.setTipo(\"Valor\");\n\t\ttotalValor.setAno(anoTotal);\n\t\ttotalValor.setMeses(mesesTotaisValor);\n\t\tlistTotal.add(totalValor);\n\n\t\ttotalQuantidade.setCanalDeVenda(\"Total\");\n\t\ttotalQuantidade.setProduto(produtoTotal);\n\t\ttotalQuantidade.setTipo(\"Quantidade\");\n\t\ttotalQuantidade.setAno(anoTotal);\n\t\ttotalQuantidade.setMeses(mesesTotaisQuantidade);\n\t\tlistTotal.add(totalQuantidade);\n\n\t\t/*\n\t\t * ===Agora calculo os percentuais=========\n\t\t */\n\n\t\tfinal int VALOR = 0;\n\t\tfinal int QUANTIDADE = 1;\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0.00%\");\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\t\tUteis uteis = new Uteis();\n\t\tList<MovimentoPorCanalDeVendaVO> listFinal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tfor (int i = 0; i < list.size() / 2; i++) {\n\t\t\tMovimentoPorCanalDeVendaVO emissaoValor = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===VALOR==== */\n\t\t\temissaoValor.setCanalDeVenda(list.get(i).getCanalDeVenda());\n\t\t\temissaoValor.setTipo(list.get(i).getTipo());\n\t\t\temissaoValor.setMeses(list.get(i).getMeses());\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoValorPercent = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===%=VALOR==== */\n\t\t\temissaoValorPercent.setCanalDeVenda(list.get(i).getCanalDeVenda());\n\t\t\temissaoValorPercent.setTipo(\"% \" + list.get(i).getTipo());\n\n\t\t\tString[] mesesPercentValor = new String[12];\n\t\t\tfor (int k = 0; k < list.get(i).getMeses().length; k++) {\n\n\t\t\t\ttry {\n\t\t\t\t\tdouble total = Double.parseDouble(new BigDecimal(list.get(i).getMeses()[k])\n\t\t\t\t\t\t\t.divide(new BigDecimal(listTotal.get(VALOR).getMeses()[k]), 5, RoundingMode.HALF_DOWN)\n\t\t\t\t\t\t\t.toString());\n\t\t\t\t\tmesesPercentValor[k] = percentForm.format(total);\n\n\t\t\t\t} catch (ArithmeticException e) {\n\t\t\t\t\tmesesPercentValor[k] = \"0%\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\temissaoValorPercent.setMeses(mesesPercentValor);\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoQuantidade = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===QUANTIDADE==== */\n\t\t\tint j = list.size() / 2;\n\t\t\temissaoQuantidade.setCanalDeVenda(list.get(j + i).getCanalDeVenda());\n\t\t\temissaoQuantidade.setTipo(list.get(j + i).getTipo());\n\t\t\temissaoQuantidade.setMeses(list.get(j + i).getMeses());\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoQuantidadePercent = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===%=QUANTIDADE==== */\n\t\t\temissaoQuantidadePercent.setCanalDeVenda(list.get(j + i).getCanalDeVenda());\n\t\t\temissaoQuantidadePercent.setTipo(\"% \" + list.get(j + i).getTipo());\n\n\t\t\tString[] mesesPercentQuantidade = new String[12];\n\t\t\tfor (int k = 0; k < list.get(j + i).getMeses().length; k++) {\n\n\t\t\t\ttry {\n\n\t\t\t\t\tdouble total = Double.parseDouble(list.get(j + i).getMeses()[k])\n\t\t\t\t\t\t\t/ Double.parseDouble(listTotal.get(QUANTIDADE).getMeses()[k]);\n\t\t\t\t\tmesesPercentQuantidade[k] = percentForm\n\t\t\t\t\t\t\t.format(Double.toString(total).equalsIgnoreCase(\"NaN\") ? 0.0 : total);\n\n\t\t\t\t} catch (ArithmeticException e) {\n\t\t\t\t\tmesesPercentQuantidade[k] = \"0%\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\temissaoQuantidadePercent.setMeses(mesesPercentQuantidade);\n\n\t\t\tString[] valorFormatado = new String[12];\n\t\t\tfor (int k = 0; k < emissaoValor.getMeses().length; k++) {\n\t\t\t\tvalorFormatado[k] = uteis\n\t\t\t\t\t\t.insereSeparadoresMoeda(roundForm.format(Double.parseDouble(emissaoValor.getMeses()[k])));\n\n\t\t\t}\n\t\t\temissaoValor.setMeses(valorFormatado);\n\n\t\t\tString[] valorFormatado2 = new String[12];\n\t\t\tfor (int k = 0; k < emissaoQuantidade.getMeses().length; k++) {\n\t\t\t\tvalorFormatado2[k] = uteis.insereSeparadores(emissaoQuantidade.getMeses()[k]);\n\t\t\t}\n\t\t\temissaoQuantidade.setMeses(valorFormatado2);\n\n\t\t\tlistFinal.add(emissaoValor);\n\t\t\tlistFinal.add(emissaoValorPercent);\n\t\t\tlistFinal.add(emissaoQuantidade);\n\t\t\tlistFinal.add(emissaoQuantidadePercent);\n\n\t\t}\n\n\t\treturn listFinal;\n\n\t}", "private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}", "public Vector listaAsignaturasTotal(String nombre_titulacion)\n {\n try\n { \n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM asignaturatotal \";\n query += \"WHERE tit_nombre='\"+nombre_titulacion+\"' AND activa = 's'\";\n\n //Se crea un vector de asignaturas\n Vector vectorAsignaturas = new Vector();\n\n //Se ejecuta la query\n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n\n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n asignatura asignatura = new asignatura();\n\n asignatura.setCodigo(resultado.getString(\"codigo\"));\n asignatura.setTitulo(resultado.getString(\"titulo\"));\n asignatura.setFechaInicio(resultado.getDate(\"fechainicio\"));\n asignatura.setFechaFin(resultado.getDate(\"fechafin\"));\n asignatura.setResponsable(resultado.getString(\"responsable\"));\n asignatura.setEmail(resultado.getString(\"email\"));\n asignatura.setTelefono(resultado.getString(\"telefono\"));\n\n //Se añade la asignatura al vector de asignaturas\n vectorAsignaturas.add(asignatura);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorAsignaturas;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las asignaturas de la Base de Datos: \"+e.getMessage());\n return null;\n }\n }", "public double getTotal(){\n\t\tBigDecimal total =BigDecimal.valueOf(0);\n\t\tfor(CartItem cartItem : map.values()){\n\t\t\ttotal = total.add(BigDecimal.valueOf(cartItem.getSubtotal())) ;\n\t\t}\t\t\n\t\treturn total.doubleValue();\n\t}", "private int[] buscarMenores(ArrayList<ArbolCod> lista){\n int temp;\n int m1=1;\n int m2=0;\n float vm1,vm2,aux;\n \n vm1=lista.get(m1).getProbabilidad();\n vm2=lista.get(m2).getProbabilidad();\n if (vm1<=vm2){\n temp=m1;\n m1=m2;\n m2=temp;\n } \n for (int i=2;i<lista.size();i++){\n vm1=lista.get(m1).getProbabilidad();\n vm2=lista.get(m2).getProbabilidad();\n aux=lista.get(i).getProbabilidad();\n if (aux<=vm2){\n m1=m2;\n m2=i;\n } \n else if (aux<=vm1){\n m1=i;\n }\n }\n int[] res=new int[2];\n res[0]=m1;\n res[1]=m2;\n return res;\n }", "public float capacidadeTotal() {\r\n float toneladas = 0;\r\n\r\n for (int i = 0; i < numNavios; i++) {\r\n if (navios[i] instanceof Petroleiro) {\r\n Petroleiro petroleiro = (Petroleiro) navios[i];\r\n toneladas = toneladas + petroleiro.getCapacidadeCarga();\r\n } else if (navios[i] instanceof PortaContentores) {\r\n PortaContentores portaContentores = (PortaContentores) navios[i];\r\n toneladas = toneladas + portaContentores.getMaxContentores() * 10;\r\n }\r\n }\r\n return toneladas;\r\n }", "private float getSubSum(){\n float sum = 0;\n for(int i = 0; i < subList.size(); i++){\n sum = sum + subList.get(i).getCost();\n }\n return sum;\n }", "public int vecinos(){\n int v=0;\n if(fila<15 && columna<15 && fila>0 && columna>0){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;} \n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n }\n else{v=limitesX();}\n return v;\n }", "public List<WebElement> getTestmonialsCount() {\n\t\treturn driver.findElements(By.xpath(\"//td[@class='sorting_1']\"));\n\t\t//return driver.findElements((By.xpath(\"//tbody//tr\"));\n\t}", "@Override\n public double getTotal() {\n return total;\n }", "@Override\n public int getRowCount() {\n return listaMoradores.size();\n }", "public int sumOfElements(){\n\t\tint sum = 0;\n\t\tNode temp = this.head;\n\t\twhile(temp != null){\n\t\t\tsum += temp.data;\n\t\t\ttemp = temp.next;\n\t\t}\n\t\treturn sum;\n\t}", "public ArrayList<DTOValoracion> listaValoraciones() {\n ArrayList<DTOValoracion> lista = new ArrayList<>();\n try {\n Connection conn = DriverManager.getConnection(CONN, USER, PASS);\n\n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(\"select valoracion, COUNT (valoracion) cantidad\\n\"\n + \"from Comentarios\\n\"\n + \"where valoracion is not null\\n\"\n + \"group by valoracion \");\n\n while (rs.next()) {\n\n int valoracion = rs.getInt(1);\n int cantidad = rs.getInt(2);\n\n DTOValoracion v = new DTOValoracion(valoracion, cantidad);\n\n lista.add(v);\n }\n\n st.close();\n conn.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n return lista;\n }", "public static ArrayList<Integer> estadisticageneral() {\n\n\t\tArrayList<Integer> mensaje = new ArrayList<>();\n\n\t\tArrayList<Res> resesAntes = ResCRUD.select();\n\t\tArrayList<Res> resess = new ArrayList<>();\n\n\t\t\n\t\tfor (int i = 0; i < resesAntes.size(); i++) {\n\t\t\t\n\t\t\tif (resesAntes.get(i).getVivo()==1) {\n\t\t\t\t\n\t\t\t\tresess.add(resesAntes.get(i));\n\t\t\t}\n\t\t}\t\t\n\n\t\tArrayList<Potrero> potrero = PotreroCRUD.select();\n\n\t\tRes res = null;\n\n\t\tint potreros = potrero.size();\n\t\tint reses = resess.size();\n\t\tint hembras = 0;\n\t\tint machos = 0;\n\t\tint ch = 0;\n\t\tint hl = 0;\n\t\tint nv = 0;\n\t\tint vh = 0;\n\t\tint vp = 0;\n\t\tint cm = 0;\n\t\tint ml = 0;\n\t\tint mc = 0;\n\t\tint tp = 0;\n\n\t\tfor (int i = 0; i < resess.size(); i++) {\n\n\t\t\tres = resess.get(i);\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"H\")) {\n\t\t\t\thembras++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CH\":\n\n\t\t\t\t\tch++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"HL\":\n\n\t\t\t\t\thl++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"NV\":\n\n\t\t\t\t\tnv++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VH\":\n\n\t\t\t\t\tvh++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VP\":\n\n\t\t\t\t\tvp++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"M\")) {\n\t\t\t\tmachos++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CM\":\n\n\t\t\t\t\tcm++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"ML\":\n\n\t\t\t\t\tml++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"MC\":\n\n\t\t\t\t\tmc++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TP\":\n\n\t\t\t\t\ttp++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tmensaje.add(potreros);\n\t\tmensaje.add(reses);\n\t\tmensaje.add(hembras);\n\t\tmensaje.add(machos);\n\t\tmensaje.add(ch);\n\t\tmensaje.add(hl);\n\t\tmensaje.add(nv);\n\t\tmensaje.add(vh);\n\t\tmensaje.add(vp);\n\t\tmensaje.add(cm);\n\t\tmensaje.add(ml);\n\t\tmensaje.add(mc);\n\t\tmensaje.add(tp);\n\n\t\treturn mensaje;\n\t}", "public double peso() {\n double peso = 0.0;\n for (Arista a : aristas())\n peso += a.peso();\n return peso;\n }", "private void buildMatrix() {\n\n int totalnumber=this.patents.size()*this.patents.size();\n\n\n\n int currentnumber=0;\n\n\n for(int i=0;i<this.patents.size();i++) {\n ArrayList<Double> temp_a=new ArrayList<>();\n for (int j=0;j<this.patents.size();j++) {\n if (i==j) temp_a.add(0.0); else if (i<j)\n {\n double temp = distance.distance(this.patents.get(i), this.patents.get(j));\n temp = (new BigDecimal(temp).setScale(2, RoundingMode.UP)).doubleValue();\n temp_a.add(temp);\n\n\n // simMatrix.get(i).set(j, temp);\n // simMatrix.get(j).set(i, temp);\n } else {\n temp_a.add(simMatrix.get(j).get(i));\n }\n currentnumber++;\n System.out.print(\"\\r\"+ProgressBar.barString((int)((currentnumber*100/totalnumber)))+\" \"+currentnumber);\n\n }\n simMatrix.add(temp_a);\n }\n System.out.println();\n\n }", "public void barajarCartas()\n {\n for (int posicionActual = 0; posicionActual < mazo.size(); posicionActual++) {\n Carta carta1 = mazo.get(0);\n Random aleatorio = new Random();\n int posicionAleatoria = aleatorio.nextInt(mazo.size());\n mazo.set(posicionActual, mazo.get(posicionAleatoria));\n mazo.set(posicionAleatoria, carta1);\n }\n }", "public Complejo[][] getNumeros(){\n\t\treturn numeros;\n\t}", "public int getSum() {\n\t\t\treturn 0;\r\n\t\t}", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public void verCartasDelMazo()\n { \n for (Carta carta : mazo) {\n System.out.println(carta);\n }\n }", "public int getNumTotal() {\n return nucleiSelected.size();\n }", "public double getTotal(){\n\t\tdouble Total = 0;\n\t\t\n\t\tfor(LineItem lineItem : lineItems){\n\t\t\tTotal += lineItem.getTotal();\t\n\t\t}\n\t\treturn Total;\n\t}", "double getTotal();", "public double get(){\n sum = 0;\n if(hasFilled){\n for(int j=0; j<list.length; j++)\n {\n sum += list[j];\n }\n \n return sum/(double)list.length;\n }\n else{\n for(int j = 0; j < index;j++){\n sum += list[j];\n }\n return sum/(double)index;\n }\n }", "private ArrayList<ParCharProb> calcularProbabilidadLista(ArrayList<ParCharProb> lista) {\n\t\tdouble cantidadElementos = 0;\r\n\t\tParCharProb par;\r\n\t\tIterator<ParCharProb> it = lista.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tpar = it.next();\r\n\t\t\tcantidadElementos += par.getFrecuencia();\r\n\t\t}\r\n\t\t\r\n\t\tit = lista.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tpar = it.next();\r\n\t\t\tpar.setProbabilidad((double) par.getFrecuencia()/(double) cantidadElementos);\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "public int produtosDiferentesComprados(){\r\n return this.faturacao.produtosDiferentesComprados();\r\n }", "public void verCartasDelMazo(){\n for(Carta carta: cartasBaraja){\n System.out.println(carta);\n }\n }", "public double getTotal (){ \r\n return total;\r\n }", "public void calcularTotalVentas(FormularioRegistrarCorte formularioRegistrarCorte) {\n Double suma = 0.00;\n try {\n for (int i = 0; i < formularioRegistrarCorte.getTablaEntradas().getRowCount(); i++) {\n suma = suma + (Double.valueOf(formularioRegistrarCorte.getTablaEntradas().getValueAt(i, 2).toString()));\n }\n formularioRegistrarCorte.getTxtTotalVentas().setText(new OperacionesUtiles().formatoDouble(suma));\n } catch (Exception e) {\n showMessageDialog(null, \"Ocurrio un error al intenetar calcular total entradas\");\n\n }\n\n }", "boolean hasTotalElements();", "public double getTotal() {\n double total = 0.0;\n for (OrderItem i : getOrderItems()) {\n total += i.getOrderQuantity() * i.getPrice();\n }\n return total;\n }", "private int kiemtrasopt (List list){\n int dem = list.size();\n return dem;\n }", "public Double getTotal() {\n\t\treturn null;\n\t}", "@Override\n\tpublic int totalItem() {\n\t\treturn 0;\n\t}", "public BigDecimal calcolaImportoTotaleNoteCollegateSpesa(){\n\t\tBigDecimal result = BigDecimal.ZERO;\n\t\tfor(DocumentoSpesa ds : getListaNoteCreditoSpesaFiglio()){\n\t\t\tresult = result.add(ds.getImporto());\n\t\t}\n\t\treturn result;\n\t}", "public int total() {\n int summation = 0;\n for ( int value : map.values() ) {\n summation += value;\n }\n return summation;\n }", "@Override\n\tpublic int getTotalItem() {\n\t\treturn 0;\n\t}", "public int elements() {\n\t\treturn elements;\n\n\t}", "public int getTotal() {\n int value = 0;\n for (Map.Entry<Integer, Integer> entry : gramma.entrySet()) {\n value += entry.getKey() * entry.getValue();\n }\n return value;\n }" ]
[ "0.6717648", "0.6328699", "0.628535", "0.6112732", "0.6105828", "0.60848624", "0.60546345", "0.60272074", "0.60159487", "0.5989778", "0.5987039", "0.5942072", "0.59224945", "0.59223825", "0.5918493", "0.58905715", "0.58877873", "0.58728725", "0.58616626", "0.58461195", "0.5834141", "0.5829534", "0.58257896", "0.58247346", "0.58233434", "0.5822482", "0.58113813", "0.580731", "0.57883555", "0.5783495", "0.5783173", "0.57711595", "0.57552135", "0.57537687", "0.5753593", "0.5739528", "0.57383937", "0.5723737", "0.5718541", "0.5672267", "0.5661124", "0.5656118", "0.5645397", "0.56396616", "0.5628288", "0.56192064", "0.5618658", "0.5616879", "0.56119114", "0.5611437", "0.55924815", "0.55816174", "0.5565697", "0.556316", "0.5556513", "0.55398136", "0.55348307", "0.5526635", "0.552389", "0.5500098", "0.54925114", "0.5486745", "0.54861915", "0.54754895", "0.5470681", "0.54664034", "0.5465472", "0.546511", "0.54640675", "0.54584527", "0.54582435", "0.5454891", "0.54512274", "0.544179", "0.5441528", "0.54404473", "0.54349315", "0.54327023", "0.54281574", "0.54281074", "0.5421417", "0.54208535", "0.5420401", "0.5419405", "0.5418403", "0.5410792", "0.54076046", "0.54057723", "0.5401411", "0.5399757", "0.5395016", "0.5393806", "0.53900623", "0.5388444", "0.5388346", "0.53850406", "0.5382803", "0.5380837", "0.5379514", "0.5368662", "0.5365248" ]
0.0
-1
Checks if the present value is contained in the dataset or not.
public boolean isInDataset() { for (int i = 0; i < Dna.data.getStatements().size(); i++) { if (Dna.data.getStatements().get(i).getStatementTypeId() == this.getStatementTypeId() && Dna.data.getStatements().get(i).getValues().get(this.variable).equals(this.value)) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean dataExists(Data income){\r\n\t\t// Make sure the value exists in the map.\r\n\t\tif(this.data.get(income.getKeyValue()) != null) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\t// end if\r\n\t}", "boolean containsValue(Object value) throws NullPointerException;", "protected boolean datasetExists(URI dataset) {\n return Db.getStatements(dataset, RDF.TYPE, Sparql.namespaced(\"dcat\",\"Dataset\"),true,dataset).size() == 1;\n }", "public boolean existsAnyMissingValue(){\r\n\t\treturn (anyMissingValue[0] || anyMissingValue[1]);\r\n\t}", "public boolean valueExists(String tableName, String key, Object value) throws SQLException, NullPointerException {\n ResultSet rs = mysql.query(\"SELECT * FROM `\"+ tableName +\"` WHERE `\" + key + \"` LIKE '\" + value.toString() + \"'\");\n\n // Gets the next line from the table\n if(rs.next()){\n // return true if the String is available\n return rs.getString(key) != null;\n }\n\n // Value and Key are not identified\n return false;\n }", "public boolean existsInputMissingValues(){\r\n\t\treturn anyMissingValue[0];\r\n\t}", "public boolean containsValue(Object value) {\n\t\treturn false;\r\n\t}", "protected boolean matchData() {\n for (int i = 0; i < itsNumPoints; i++) {\n if (itsValues[i] == null || itsValues[i].getData() == null) {\n return false;\n }\n }\n return true;\n }", "public boolean hasData(String key) {\n\t\treturn data.containsKey(key);\n\t}", "public boolean existInItinerary() {\n\t\t\n\t\tlong position = mPref.getLong(\"KEY_DATA_POSITION\", 0);\n\t\t\n\t\tif (mPref.contains(\"USER_DATA_\" + position)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\r\n\tpublic boolean containsValue(Object value) {\r\n\t\tif (value == null) throw new NullPointerException();\r\n\t\tfor (K key : keySet()) {\r\n\t\t\tif (get(key).equals(value)) return true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean contains(int columnIndex, Object value) {\n return findRow(columnIndex, value) != null;\n }", "public boolean contains(Object value) {\n\t\treturn false;\n\t}", "public boolean exists() {\n \t\treturn (type != UNASKED && isValid() && ((type == STRING) ? !sVal.equals(\"\") : true));\n \t}", "public boolean exists() {\n \t\treturn (type != UNKNOWN && isValid() && ((type == STRING) ? !sVal.equals(\"\") : true));\n \t}", "boolean hasDataset();", "boolean hasData1();", "boolean hasData1();", "boolean hasData();", "boolean hasData();", "boolean hasData();", "boolean hasData();", "boolean hasData();", "boolean hasData();", "boolean hasData();", "@Override\n public boolean contains(Object object) {\n T value = (T) object;\n boolean result = false;\n for (int index = 0; index < this.values.length; index++) {\n T data = (T) this.values[index];\n if (data != null) {\n if (value.equals(data)) {\n result = true;\n }\n }\n }\n\n return result;\n }", "public boolean contains(U value) {\n\t\t\treturn indexOf(value) != -1;\n\t\t}", "@Override\n\tpublic boolean contains(Object value) {\n\t\tif (indexOf(value) != -1) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "boolean containsValue(Object value);", "@Override\n\t\t\tpublic boolean containsValue(Object value) {\n\t\t\t\treturn false;\n\t\t\t}", "private boolean contains(int[] valueSet, int value) {\n\t\tfor (int i = 0; i < valueSet.length; i++) {\r\n\t\t\tif (valueSet[i] == value) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean isValueExists(String key, String value) {\n\t\tSystem.out.println(\"Checking for value : \" + value + \" existance\");\n\t\tboolean valueExist = false;\n\t\tMap<String, List<String>> dictMap = getDictionary();\n\t\tif (dictMap != null && dictMap.isEmpty() != true) {\n\t\t\tif (dictMap.containsKey(key)) {\n\t\t\t\tList<String> membersList = dictMap.get(key);\n\t\t\t\tif (membersList.contains(value))\n\t\t\t\t\tvalueExist = true;\n\t\t\t}\n\t\t}\n\t\treturn valueExist;\n\t}", "public boolean contains(String key) {\r\n\t\treturn getValue(key) != null;\r\n\t}", "public boolean contains(int element) {\n for(Integer i:data) {\n if(i!=null && i==element) {\n return true;\n }\n }\n return false;\n /*for(int i=0;i<data.length;i++) {\n if(data[i]==element) {\n return true;\n }\n }\n return false;*/\n }", "boolean hasData2();", "boolean hasData2();", "public boolean hasData();", "public boolean containsValue(Object v) {\n/* 119 */ return false;\n/* */ }", "public boolean contains(T data)\r\n {\r\n if(containsData.contains(data) == true) //Checking my hashset of data to see if our data has been inserted!\r\n return true;\r\n \r\n return false;//If we didnt find the node within our list, return false. \r\n }", "@Override\n public boolean containsValue(Object value) {\n for (LinkedList<Entry<K,V>> list : table) {\n for (Entry<K,V> entry : list) {\n if (entry.getValue().equals(value)) {\n return true;\n }\n }\n }\n return false;\n }", "public boolean isSetData() {\n return this.data != null;\n }", "boolean hasVal();", "boolean hasVal();", "@Override\n\tpublic boolean containsValue(Object value) {\n\t\treturn map.containsValue(value);\n\t}", "@Override\n public boolean containsValue(Object value) {\n // Walk the values.\n for (Map.Entry<String, T> e : entries.values()) {\n if (value.equals(e.getValue())) {\n // Its there!\n return true;\n }\n }\n return false;\n }", "public boolean checkData()\n {\n boolean ok = true;\n int l = -1;\n for(Enumeration<Vector<Double>> iter = data.elements(); iter.hasMoreElements() && ok ;)\n {\n Vector<Double> v = iter.nextElement();\n if(l == -1)\n l = v.size();\n else\n ok = (l == v.size()); \n }\n return ok; \n }", "public boolean containsValue(Object value) {\n return map.containsValue(value);\n }", "public abstract boolean containsValue(V value);", "@Override\n\tpublic boolean containsValue(Object value) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean contains(Object value) {\n\t\tif(indexOf(value)!=-1)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "boolean hasSearchValue();", "public boolean containsValue(Object value) {\r\n for (Map.Entry<K, V> pair : entrySet()) {\r\n // Optimize in case the Entry is one of our own.\r\n if (pair.getValue().equals(value) && ((CacheData<K, V>) pair).validateKey() != null) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "boolean hasContains();", "@Override\r\n\t\tpublic boolean contains(E value) {\n\t\t\treturn value == null;\r\n\t\t}", "public boolean isContained(T aData){\r\n return this.findNodeWith(aData) != null;\r\n }", "@Override\n\tpublic boolean containsValue(Object arg0) {\n\t\treturn false;\n\t}", "public boolean containsValue(V value) {\n\tfor(int i=0;i<this.capacity;i++) {\n\t for(MyEntry k:table[i]) {\n\t\tif(k.value.equals(value)) {\n\t\t return true;\n\t\t}\n\t }\n\t}\n\treturn false;\n }", "boolean contains();", "public boolean HasOneValueInTheSpace()\n {\n return _valuesToPut.size() == 1;\n }", "public boolean containsValue(V value) {\r\n for (Node datum : data) {\r\n if (datum != null) {\r\n Node targetNode = datum;\r\n while (targetNode != null) {\r\n if (targetNode.value == value || targetNode.value.equals(value)) {\r\n return true;\r\n }\r\n targetNode = targetNode.next;\r\n }\r\n\r\n }\r\n }\r\n return false;\r\n }", "public boolean hasValue() {\n return value_ != null;\n }", "public boolean contains(T value) {\n for (T tmp : arr) {\n if (tmp.equals(value)) {\n return true;\n }\n }\n return false;\n }", "default boolean hasValue() {\n\t\t\treturn getValue() != null;\n\t\t}", "public boolean hasValue() {\n return result.hasValue();\n }", "public boolean hasValue() {\n return result.hasValue();\n }", "public boolean isMaybePresentData() {\n checkNotUnknown();\n if (isPolymorphic())\n return (flags & PRESENT_DATA) != 0;\n else\n return (flags & PRIMITIVE) != 0 || num != null || str != null || object_labels != null;\n }", "@Override public boolean containsValue(Object value) {\n if (value == null) {\n for (LinkedEntry<K, V> header = this.header, e = header.nxt;\n e != header; e = e.nxt) {\n if (e.value == null) {\n return true;\n }\n }\n return false;\n }\n\n // value is non-null\n for (LinkedEntry<K, V> header = this.header, e = header.nxt;\n e != header; e = e.nxt) {\n if (value.equals(e.value)) {\n return true;\n }\n }\n return false;\n }", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "boolean hasValue();", "public boolean containsValue(Object value) {\r\n\t\tTableEntry<K, V> currentElement = null;\r\n\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\tif (table[i] == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tcurrentElement = table[i];\r\n\r\n\t\t\tdo {\r\n\t\t\t\tif (currentElement.value.equals(value)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcurrentElement = currentElement.next;\r\n\t\t\t} while (currentElement != null);\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "public boolean contains(T obj) {\r\n\t\tlogger.trace(\"Enter contains\");\r\n\t\tlogger.trace(\"Exit contains\");\r\n\t\treturn data.contains(obj);\r\n\t}", "@Override\n public boolean present(T present) {\n return (this.data.equals(present));\n }", "public boolean isSetDatas() {\n return this.datas != null;\n }", "public boolean isSetDatas() {\n return this.datas != null;\n }", "public boolean contains(String key){\r\n\t\treturn get(key) != null;\r\n\t}", "public boolean hasData() {\n return dataBuilder_ != null || data_ != null;\n }", "public boolean containsValue(int k) {\r\n\t\tint[] v = getIntArray();\r\n\t\tfor (int i = 0; i < v.length; i++) {\r\n\t\t\tif (v[i] == k) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static boolean containsHashtableValue(Hashtable data) {\r\n Object[] array = data.keySet().toArray();\r\n for (int i = 0; i < array.length; i++) {\r\n if (data.get(array[i]) instanceof Hashtable) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public boolean hasValue(final Class<? extends T> clazz) {\n return data.stream().anyMatch(element -> clazz.isAssignableFrom(element.getClass()));\n }", "public boolean contains(A val) {\n return false; \n }", "public boolean containsValue(V value)\r\n\t{\r\n\t\tList<V> values = values();\r\n\t\t\r\n\t\tfor(V element : values)\r\n\t\t{\r\n\t\t\tif(element.equals(value))\r\n\t\t\t{\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "protected boolean isLookupDataFound() {\n return lookupDataFound;\n }", "private boolean contains(List<NodeId> array, NodeId searchValue) {\n return array != null && array.contains(searchValue);\n }", "public boolean contains(T data) {\n if (data == null) {\n throw new IllegalArgumentException(\"Data cannot be null.\");\n } else if (root == null) {\n return false;\n } else {\n return (getHelper(data, root) != null);\n }\n }", "public boolean hasData() {\n return dataBuilder_ != null || data_ != null;\n }", "public boolean containsValue(int valor){\n boolean found = false;\n if(!valores.isEmpty()){\n if(valores.contains(valor)){\n found = true;\n }\n }\n return found;\n }", "public boolean containsValue(Object v) {\n\t\tif (v == null)\n\t\t\tv = (V) nullObject;\n\n\t\tfor (int ix = 0; ix < values.length; ix++)\n\t\t\tif (values[ix] != null && values[ix].equals(v))\n\t\t\t\treturn true;\n\n\t\treturn false;\n\t}", "public boolean contains(String key)\r\n { return get(key) != null; }" ]
[ "0.67773014", "0.63276595", "0.63049966", "0.62981856", "0.62829036", "0.62578356", "0.6254543", "0.62440974", "0.6239816", "0.62275016", "0.6194526", "0.619145", "0.6181696", "0.61802125", "0.6166012", "0.61623836", "0.61608785", "0.61608785", "0.6142807", "0.6142807", "0.6142807", "0.6142807", "0.6142807", "0.6142807", "0.6142807", "0.61333543", "0.61058015", "0.6105014", "0.60715556", "0.606702", "0.60609007", "0.6054916", "0.6052466", "0.6029312", "0.6010096", "0.6010096", "0.6003752", "0.5995079", "0.5986418", "0.5963965", "0.5961615", "0.5960678", "0.5960678", "0.59547126", "0.59543854", "0.59530216", "0.59460986", "0.59430516", "0.5939156", "0.59286577", "0.59196055", "0.5915862", "0.59122264", "0.5912028", "0.59045243", "0.5898389", "0.58981156", "0.58955", "0.58917665", "0.58896816", "0.58812016", "0.5876019", "0.58685833", "0.5867241", "0.5867241", "0.58642876", "0.58614594", "0.58506334", "0.58506334", "0.58506334", "0.58506334", "0.58506334", "0.58506334", "0.58506334", "0.58506334", "0.58506334", "0.58506334", "0.58506334", "0.58506334", "0.58506334", "0.58506334", "0.58444744", "0.584104", "0.5834111", "0.5832047", "0.5832047", "0.5827968", "0.5820922", "0.58083355", "0.5806595", "0.57887214", "0.57881576", "0.57827276", "0.57798165", "0.5776142", "0.5764392", "0.57599366", "0.57535875", "0.5753543", "0.57524514" ]
0.66878664
1
necessary for sorting purposes
public int hashCode(){ return this.id; // this.hashCode() }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void sortingMemo() {\n\t\t\n\t}", "public void sort() {\n }", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "public void sortCompetitors(){\n\t\t}", "public String doSort();", "void sort();", "void sort();", "public void radixSorting() {\n\t\t\n\t}", "@Override\r\n\tpublic void sort() {\r\n\t\tint minpos;\r\n\t\tfor (int i = 0; i < elements.length-1; i++) {\r\n\t\t\tminpos=AuxMethods.minPos(elements, i);\r\n\t\t\telements=AuxMethods.swapElements(elements, i, minpos);\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Override\n \tpublic void sort() {\n \t\tArrays.sort(data);\n \t}", "private void sortEntities(){\n for (int i = 1; i < sorted.size; i++) {\n for(int j = i ; j > 0 ; j--){\n \tEntity e1 = sorted.get(j);\n \tEntity e2 = sorted.get(j-1);\n if(getRL(e1) < getRL(e2)){\n sorted.set(j, e2);\n sorted.set(j-1, e1);\n }\n }\n }\n }", "private Sort() { }", "public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }", "@Override\n public void sort() {\n for (int i = 0; i < size; i++) {\n for (int j = i + 1; j < size; j++) {\n if (((Comparable) data[i]).compareTo(data[j]) > 0) {\n E c = data[i];\n data[i] = data[j];\n data[j] = c;\n\n }\n }\n }\n }", "private void sort() {\n Collections.sort(mEntries, new Comparator<BarEntry>() {\n @Override\n public int compare(BarEntry o1, BarEntry o2) {\n return o1.getX() > o2.getX() ? 1 : o1.getX() < o2.getX() ? -1 : 0;\n }\n });\n }", "void sortV();", "public void sortAllRows(){\n\t\t/* code goes here */ \n\t\t\n\t\t\n\t\t//WHY SHOULD THEY BE SORTED LIKE THE EXAMPLE SAYS???????\n\t\t\n\t}", "public void sortMatches();", "@Override\r\n\tpublic void editSort() {\n\t\t\r\n\t}", "public void sort() {\r\n int k = start;\r\n for (int i = 0; i < size - 1; i++) {\r\n int p = (k + 1) % cir.length;\r\n for (int j = i + 1; j < size; j++) {\r\n if ((int) cir[p] < (int) cir[k % cir.length]) {\r\n Object temp = cir[k];\r\n cir[k] = cir[p];\r\n cir[p] = temp;\r\n }\r\n p = (p + 1) % cir.length;\r\n }\r\n k = (k + 1) % cir.length;\r\n }\r\n }", "protected void sort() {\n\n\t\tCollections.sort(this.myRRList);\n\t}", "public String sortBy();", "abstract String getSortKey();", "private PerfectMergeSort() {}", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "void sortUI();", "public void sort() {\n\t\tdivider(0, array.size() - 1);\n\t}", "private void sortMedApts(List<MedicationAppointment> medApts2) {\n \t}", "public static WordFrq[] sort(WordFrq b[]){\n WordFrq temp;\n int i=0;\n while (i < 3) {\n for (i = 1; i < 3; i++) {\n if (b[i-1].count > b[i].count) {\n temp = b[i];\n b[i] = b[i-1];\n b[i-1] = temp;\n break;\n }\n }\n }\n\n\n return b;\n\n\n\n\n\n }", "@Override\n public void sortCurrentList(FileSortHelper sort) {\n }", "private void sortDate()\n {\n for(int i = 0; i < movieList.size(); i++){\n for(int j = 1; j < movieList.size() - i; j++)\n {\n Movie a = movieList.get(j-1);\n Movie b = movieList.get(j);\n int result = a.getReleaseDate().compareTo(b.getReleaseDate());\n if( result < 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n else if(result == 0)\n {\n result = a.getTitle().compareTo(b.getTitle());\n if(result > 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n }\n }\n }\n }", "public void oldSort()\n\t{\n\t\tfor (int index = 0; index < arraySize; index++) {\n\t\t\tfor (int secondIndex = index + 1; secondIndex < arraySize; secondIndex++) {\n\t\t\t\tint temp = 0;\n\t\t\t\tif (array[index] > array[secondIndex]) {\n\t\t\t\t\ttemp = array[index];\n\t\t\t\t\tarray[index] = array[secondIndex];\n\t\t\t\t\tarray[secondIndex] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public int compare(Object o1, Object o2) {\n/* 25 */ Alphabet a1 = (Alphabet)o1;\n/* 26 */ Alphabet a2 = (Alphabet)o2;\n/* */ \n/* 28 */ return a2.order - a1.order;\n/* */ }", "public abstract void sort() throws RemoteException;", "@Override\r\n\tpublic void deleteSort() {\n\t\t\r\n\t}", "public String sortOriginOrReturn();", "@Override\n\tpublic String sort() {\n\t\tString s=\"Insertionsort Function\";\n\t\treturn s;\n\t}", "private void sort() {\n\t\tCollections.sort(this.entities, comparator);\n\t}", "@Override\n\tpublic int compare(Person p1, Person p2) { //because this class implements Comparator \n\t\treturn p1.id-p2.id;\n\t}", "@Override\n public int compare(Item i1,Item i2){\n return i2.mark.compareTo(i1.mark);\n\n // return i1.mark.compareTo(i2,mark);\n //This is the ascending version of the same.\n }", "public void sortElements(){\n\t\tgetInput();\n\t\tPeople[] all = countAndSort(people, 0, people.length-1);\n\t\t//PrintArray(all);\n\t\tSystem.out.println(InversionCount);\n\t}", "public void triCollection(){\r\n Collections.sort(collection);\r\n }", "public void sortOccurred() {\n //SET ALL THE ROWS TO -1, (THEY INITIALIZE TO 0).\n \tfor(int i = 0; i < data.length; i++) {\n \t\tdata[i] = null;\n \t\trowIndexLookup[i] = -1;\n \t}\t\t\n }", "double getSortTime();", "public void sortByAndser() {\r\n\t\tQuestion[][] question2DArray = new Question[displayingList.size()][];\r\n\t\tfor (int i = 0; i < displayingList.size(); i++) {\r\n\t\t\tquestion2DArray[i] = new Question[1];\r\n\t\t\tquestion2DArray[i][0] = displayingList.get(i);\r\n\t\t}\r\n\r\n\t\twhile (question2DArray.length != 1) {\r\n\t\t\tquestion2DArray = (Question[][]) merge2DArray(question2DArray);\r\n\t\t}\r\n\t\tdisplayingList.removeAll(displayingList);\r\n\t\tfor (int i = 0; i < question2DArray[0].length; i++) {\r\n\t\t\tdisplayingList.add(question2DArray[0][i]);\r\n\t\t}\r\n\t}", "public void jsort() {\n\tArrays.sort(data);\n }", "public void sort() {\n\t\tfor (int i = 1; i < this.dataModel.getLength(); i++) {\n\t\t\tfinal int x = this.dataModel.get(i);\n\n\t\t\t// Find location to insert using binary search\n\t\t\tfinal int j = Math.abs(this.dataModel.binarySearch(0, i, x) + 1);\n\n\t\t\t// Shifting array to one location right\n\t\t\tthis.dataModel.arrayCopy(j, j + 1, i - j);\n\n\t\t\t// Placing element at its correct location\n\t\t\tthis.dataModel.set(j, x);\n\t\t\tthis.repaint(this.count++);\n\t\t}\n\t}", "private void doSort (Column A, int [] i, int p, int r, int begin) {//double[] A, int p, int r, MutableTable t) {\n\t\tif (p < r) {\n\t\t\tint q = partition(A, i, p, r, begin);\n\t\t\tdoSort(A, i, p, q, begin);\n\t\t\tdoSort(A, i, q + 1, r, begin);\n\t\t}\n\t}", "public void changeSortOrder();", "public void SortByPrice() {\n for (int i = 1; i < LastIndex; i++) {\n int x = i;\n while (x >= 1) {\n if (ForChild[x - 1].getPrice() > ForChild[x].getPrice()) {\n Confectionery sweets = ForChild[x - 1];\n ForChild[x - 1] = ForChild[x];\n ForChild[x] = sweets;\n\n }\n x -= 1;\n }\n }\n }", "private void updateOrder() {\n Arrays.sort(positions);\n }", "public void sort() // sort according to primary key defined in RecordTemplate\n\t{\n\t\trecordList.sort((Record r1, Record r2)->r1.getValue(PRIMARY_KEY_FIELD_INDEX).compareTo(r2.getValue(PRIMARY_KEY_FIELD_INDEX))); \n //recordList.forEach((r)->System.out.println(r)); \n\t}", "public void insertionNumberSort()\n {\n\t for(int j=1; j<AL.size(); j++)\n\t {\n\t\t Generics temp = AL.get(j);\n\t\t int possibleIndex = j;\n\t\t \n\t\t while(possibleIndex>0 && Integer.parseInt(AL.get(possibleIndex - 1).toString()) < Integer.parseInt(temp.toString()))\n\t\t {\n\t\t\t AL.set(possibleIndex, AL.get(possibleIndex -1));\n\t\t\t possibleIndex--;\n\t\t\t \n\t\t }\n\t\t \n\t\t AL.set(possibleIndex, temp);\n\t }\n \n }", "ColumnSortList.ColumnSortInfo getSortInfo();", "public void step2(){\n\n Collections.sort(names,(String a,String b) -> {\n return a.compareTo(b);\n });\n }", "@Override\r\n\t\t\tpublic int compare(Presentor o1, Presentor o2) {\n\t\t\t\tint sort = 0;\r\n\t\t\t\tint a = o1.getZs() - o2.getZs();\r\n\t\t\t\tif (a != 0) {\r\n\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ta = o1.getJd() - o2.getJd();\r\n\t\t\t\t\tif (a != 0) {\r\n\t\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn sort;\r\n\t\t\t}", "int order();", "Vector<NewsArticle> insertionSort(Vector<NewsArticle> articles) {\n int i, j;\n int size = articles.size();\n NewsArticle sortedList[] = new NewsArticle[articles.size()];\n\n articles.copyInto(sortedList);\n NewsArticle temp;\n\n for (i = 1; i < size; i++) {\n temp = sortedList[i];\n\n j = i;\n while ((j > 0) && (sortedList[j - 1].getScore(filterType) < temp.getScore(filterType))) {\n sortedList[j] = sortedList[j - 1];\n j = j - 1;\n }\n sortedList[j] = temp;\n }\n Vector<NewsArticle> outList = new Vector<NewsArticle>();\n\n for (i = 0; i < size; i++) {\n temp = sortedList[i];\n outList.addElement(temp);\n }\n return outList;\n }", "@Override\n protected void runAlgorithm() {\n for (int i = 0; i < getArray().length; i++) {\n for (int j = i + 1; j < getArray().length; j++) {\n if (applySortingOperator(getValue(j), getValue(i))) {\n swap(i, j);\n }\n }\n }\n }", "public List<SortedArrayInfo> sortHistory();", "protected abstract Comparator<UsageInfo> makeUsageInfoComparator();", "@Override\n // Compare values according to columns\n public int compare(final int[] entry1, final int[] entry2) {\n if (entry1[0] > entry2[0])\n return 1;\n else\n return -1;\n }", "private void sortByAmount(){\n int stopPos = 0;\n while(colours.size()-stopPos > 0){\n int inARow = 1;\n for(int i = colours.size() - 1; i > stopPos; i--){\n if(colours.get(i-1).getAmount() < colours.get(i).getAmount()){\n rgb temp = new rgb(colours.get(i-1));\n colours.set(i-1, colours.get(i));\n colours.set(i, temp);\n }else{\n inARow++;\n }\n }\n stopPos++;\n if(inARow == colours.size()){\n break;\n }\n }\n }", "private static void sortingArrayList() {\n Collections.sort(allMapData, new Comparator<MapDataModel>() {\n public int compare(MapDataModel d1, MapDataModel d2) {\n return valueOf(d1.getDateTime().compareTo(d2.getDateTime()));\n }\n });\n }", "public void sort() {\n compares = 0;\n shuttlesort((int[]) indexes.clone(), indexes, 0, indexes.length);\n }", "private static void sortFriends() {\n friends.postValue(friends.getValue());\n }", "private final int compare( AnyType item, RedBlackNode<AnyType> t )\n {\n if( t == header )\n return 1;\n else\n return item.compareTo( t.element ); \n }", "public void sort() {\n /*int jokers = this.getJokers();\n\t\tif (jokers > 0 && this.size() > 2) {\n\t\t\tArrayList<Tile> list = new ArrayList<>();\n for (int i=0; i<this.size(); i++) {\n\t\t\t\tif (this.get(i).getColour() == 'J') {\n\t\t\t\t\tTile joker = this.remove(this.get(i));\n\t\t\t\t\tlist.add(joker);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Tile j : list) {\n\t\t\t\tthis.addInSort(j);\n\t\t\t}\n }*/\n \n\n //may need something in here to accomodate a joker changing its form\n\n if (tiles.size() > 1) { //will only sort a meld with any tiles in it\n //Override default comparator to compare by tile value (ints)\n Collections.sort(tiles, new Comparator<Tile>() {\n @Override \n public int compare(Tile t1, Tile t2) { \n if (t1.getColour() > t2.getColour()) {\n return 1;\n } else if (t1.getColour() < t2.getColour()) {\n return -1;\n }\n if (t1.getValue() > t2.getValue()) {\n return 1;\n } else if (t1.getValue() < t2.getValue()) {\n return -1;\n } else {\n return 0;\n }\n }\n });\n }\n\n }", "@Override\r\n public int compare(HDTV o1, HDTV o2) {\n return o1.getSize() - o2.getSize(); // prints object in ascending order\r\n\r\n }", "public void sort() {\n documents.sort();\n }", "@VTID(28)\n boolean getSortUsingCustomLists();", "public List<ValueType> sort() {\r\n // TODO\r\n return null;\r\n }", "boolean isSortResult();", "private List<Article> orderArticles(List<Article> things){\n\t\t Comparator<Article> comparatorPrizes = new Comparator<Article>() {\n\t public int compare(Article x, Article y) {\n\t return (int) (x.getPrize() - y.getPrize());\n\t }\n\t };\n\t Collections.sort(things,comparatorPrizes); \n\t Collections.reverse(things);\n\t return things;\n\t }", "public void sort() {\n ListNode start = head;\n ListNode position1;\n ListNode position2;\n\n // Going through each element of the array from the second element to the end\n while (start.next != null) {\n start = start.next;\n position1 = start;\n position2 = position1.previous;\n // Checks if previous is null and keeps swapping elements backwards till there\n // is an element that is bigger than the original element\n while (position2 != null && (position1.data < position2.data)) {\n swap(position1, position2);\n numberComparisons++;\n position1 = position2;\n position2 = position1.previous;\n }\n }\n }", "public void selectionSort()\r\n {\r\n for(int x = 0; x < numItems; x++)\r\n {\r\n int smallestLoc = x;\r\n for(int y = x+1; y<numItems; y++)\r\n {\r\n if(mArray[y]< mArray[smallestLoc])\r\n {\r\n smallestLoc = y;\r\n }\r\n }\r\n int temp = mArray[x];\r\n mArray[x] = mArray[smallestLoc];\r\n mArray[smallestLoc] = temp;\r\n }\r\n }", "private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }", "private void sortByDateOpen() {\n //selection sort\n for (int i = 0; i < size - 1; i++) {\n int earliestDateIndex = i;\n for (int j = i + 1; j < size; j++)\n if (accounts[j].getDateOpen().compareTo(accounts[earliestDateIndex].getDateOpen()) < 0) {\n earliestDateIndex = j;\n }\n Account acc = accounts[earliestDateIndex];\n accounts[earliestDateIndex] = accounts[i];\n accounts[i] = acc;\n }\n }", "public void step3(){\n\n Collections.sort(names,(String a, String b) -> a.compareTo(b));\n }", "public void sortGivenArray_popularity() { \n int i, j, k; \n for(i = movieList.size()/2; i > 0; i /= 2) {\n for(j = i; j < movieList.size(); j++) {\n Movie key = movieList.get(j);\n for(k = j; k >= i; k -= i) {\n if(key.rents > movieList.get(k-i).rents) {\n movieList.set(k, movieList.get(k-i));\n } else {\n break; \n }\n }\n movieList.set(k, key);\n }\n } \n }", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "public abstract void compare();", "public void sort() {\n\tqsort(a,0,a.length-1);\n }", "@Override\n\t\t\tpublic int compareTo(Object o) {\n\t\t\t\treturn 0;\n\t\t\t}", "@Override\n public int compare(Entry<String, Integer> arg0, Entry<String, Integer> arg1) {\n if(arg0.getValue() == arg1.getValue()){\n return arg0.getKey().compareTo(arg1.getKey());\n } else {\n return arg1.getValue() - arg0.getValue();\n }\n }", "public abstract void sort(int[] sortMe);", "private static ArrayList<Integer> sort(ArrayList<Integer> v) {\n\t\tint key, i, j; \n\t\tfor (j = 1; j != v.size(); j++) {\n\t\t\tkey = v.get(j); \n\t\t\ti = j - 1; \n\t\t\twhile ((i >= 0) && (v.get(i) > key)) {\n\t\t\t\tv.set(i+1, v.get(i));\n\t\t\t\ti -= 1; \n\t\t\t}\n\t\t\tv.set(i+1, key); \n\t\t}\n\t\treturn v; \n\t}", "JDKSort() {\n }", "public void sort()\n\t{\n\t\tfor(int i=0;i<bowlers.size()-1;i++)\n\t\t{\n\t\t\tfor(int j=i+1;j<bowlers.size();j++)\n\t\t\t{\n\t\t\t\tif(bowlers.get(i).getBall()<bowlers.get(j).getBall())\n\t\t\t\t{\n\t\t\t\t\tBowler bowler=bowlers.get(i);\n\t\t\t\t\tbowlers.set(i,bowlers.get(j));\n\t\t\t\t\tbowlers.set(j,bowler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<bowlers.size();i++)\n\t\t{\n\t\tSystem.out.println(bowlers.get(i).getBall());\n\t\t}\n\t}", "public static void customSort(List<Integer> array) {\n Map<Integer, Integer> map = new HashMap<>();\n List<Integer> outputArray = new ArrayList<>();\n int ii = 0;\n for (int current : array) {\n if (ii==0){\n ii++;\n continue;\n }\n int count = map.getOrDefault(current, 0);\n map.put(current, count + 1);\n outputArray.add(current);\n ii++;\n }\n\n Set<Map.Entry<Integer, Integer>> entries = map.entrySet();\n for (Map.Entry<Integer, Integer> entry : entries) {\n entry.getKey();\n }\n\n // Compare the map by value\n SortComparator comp = new SortComparator(map);\n\n // Sort the map using Collections CLass\n Collections.sort(outputArray,comp);\n\n // Final Output\n for (Integer i : outputArray) {\n System.out.print(i + \" \");\n }\n System.out.println();\n\n }", "@Override\r\n\t public int compare(Student_UsingComparator obj1, Student_UsingComparator obj2){\n\t\t return obj2.rollno-obj1.rollno;\r\n\t }", "@Override\n public void sortAndCount() {\n Insertion.reset();\n Insertion.sort(arrayForTests);\n comp = Sort.getComparisonOperations(); // Sort.getComp();\n copy = Sort.getCopyOperations(); // Sort.getCopy();\n }", "@Override\n\t\tpublic int compare(Object arg0, Object arg1) {\n\t\t\treturn 0;\n\t\t}", "@Override\n\tpublic String sort(String content) {\n\t\treturn null;\n\t}", "public void sortBasedYearService();", "private int compare(T item, RedBlackNode t) {\n if (t == header) {\n return 1;\n } else\n return item.compareTo(t.element);\n }", "boolean areSorted();", "public void sortEmployeeById() {\r\n\t\tfor (int indexI = 0; indexI < emp.size() - 1; indexI++) {\r\n\t\t\t\r\n\t\t\tfor (int indexJ = 0; indexJ < emp.size() - indexI - 1; indexJ++) {\r\n\t\t\t\t\r\n\t\t\t\tif (emp.get(indexJ).empId > emp.get(indexJ + 1).empId) {\r\n\t\t\t\t\tEmployee temp1 = emp.get(indexJ);\r\n\t\t\t\t\tEmployee temp2 = emp.get(indexJ + 1);\r\n\t\t\t\t\temp.set(indexJ, temp2);\r\n\t\t\t\t\temp.set(indexJ + 1, temp1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static void sortHelperMSD(String[] asciis, int start, int end, int index) {\n // Optional MSD helper method for optional MSD radix sort\n return;\n }", "@Override\n public int compare(int[] o1, int[] o2) {\n return o1[1] - o2[1];\n }", "@Override\n public void sort() {\n int cont = 0;\n int mov = 0;\n for (int i = 0; i < (100 - 1); i++) {\n int menor = i;\n for (int j = (i + 1); j < 100; j++){\n if (array[menor] > array[j]){\n cont= cont + 1;\n menor = j;\n mov = mov + 1;\n }\n }\n swap(menor, i);\n mov = mov + 3;\n }\n System.out.println(cont + \" comparações\");\n System.out.println(mov + \" Movimenteções\");\n }" ]
[ "0.71459544", "0.68802094", "0.6787368", "0.672482", "0.67191595", "0.67137533", "0.67137533", "0.6661488", "0.6638789", "0.65783834", "0.65510285", "0.6504868", "0.64823455", "0.6455627", "0.64490277", "0.64403015", "0.64080495", "0.63918394", "0.63585174", "0.6351714", "0.6290304", "0.62688005", "0.6250408", "0.62390393", "0.620908", "0.6198986", "0.61759853", "0.615721", "0.6144881", "0.61427635", "0.6134126", "0.6131945", "0.61290586", "0.61127967", "0.6110191", "0.6105096", "0.6103853", "0.6099207", "0.6097984", "0.60791296", "0.6078216", "0.6077284", "0.6062883", "0.60612863", "0.60578394", "0.6056211", "0.6052871", "0.60462755", "0.60447955", "0.6037963", "0.60315776", "0.6030639", "0.6025742", "0.601895", "0.6011551", "0.60047656", "0.6002177", "0.5995401", "0.59922683", "0.59885", "0.59831864", "0.59822786", "0.59809685", "0.59805334", "0.59778196", "0.5975823", "0.59741366", "0.5966039", "0.59625417", "0.5946279", "0.5938324", "0.59379554", "0.5934218", "0.5928734", "0.5926549", "0.59211385", "0.5919444", "0.5917779", "0.5915113", "0.59132594", "0.58927447", "0.5889105", "0.58852684", "0.5877217", "0.58675426", "0.5866602", "0.5866383", "0.5864917", "0.586303", "0.586144", "0.5856961", "0.58434016", "0.5842885", "0.58414453", "0.5840374", "0.5839771", "0.5837387", "0.58322346", "0.5831699", "0.58289737", "0.582826" ]
0.0
-1
how should entries be sorted in a list or table?
public int compareTo(AttributeVector av) { if (((Integer) this.getStatementTypeId()).compareTo(av.getStatementTypeId()) < 0) { return -1; } else if (((Integer) this.getStatementTypeId()).compareTo(av.getStatementTypeId()) > 0) { return 1; } else { if (this.getVariable().compareTo(av.getVariable()) < 0) { return -1; } else if (this.getVariable().compareTo(av.getVariable()) > 0) { return 1; } else { if (this.getValue().compareTo(av.getValue()) < 0) { return -1; } else if (this.getValue().compareTo(av.getValue()) > 0) { return 1; } else { return 0; } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sortAllRows(){\n\t\t/* code goes here */ \n\t\t\n\t\t\n\t\t//WHY SHOULD THEY BE SORTED LIKE THE EXAMPLE SAYS???????\n\t\t\n\t}", "private static void sortingMemo() {\n\t\t\n\t}", "public String doSort();", "public void sort() // sort according to primary key defined in RecordTemplate\n\t{\n\t\trecordList.sort((Record r1, Record r2)->r1.getValue(PRIMARY_KEY_FIELD_INDEX).compareTo(r2.getValue(PRIMARY_KEY_FIELD_INDEX))); \n //recordList.forEach((r)->System.out.println(r)); \n\t}", "public void testSortedList() {\r\n List<InfoNode> sortedList = MapUtils.sortByDistance(exampleList, node3.getTitle());\r\n assertTrue(sortedList.size() == 2);\r\n assertTrue(sortedList.get(0) == node2);\r\n assertTrue(sortedList.get(1) == node1);\r\n assertTrue(sortedList.contains(node1));\r\n assertTrue(sortedList.contains(node2));\r\n assertFalse(sortedList.contains(node3));\r\n\r\n sortedList = MapUtils.sortByDistance(exampleList, node1.getTitle());\r\n assertTrue(sortedList.size() == 2);\r\n assertTrue(sortedList.get(0) == node2);\r\n assertTrue(sortedList.get(1) == node3);\r\n assertFalse(sortedList.contains(node1));\r\n assertTrue(sortedList.contains(node2));\r\n assertTrue(sortedList.contains(node3));\r\n\r\n sortedList = MapUtils.sortByDistance(exampleList, \" \");\r\n assertTrue(sortedList.equals(exampleList));\r\n }", "private void sortEntities(){\n for (int i = 1; i < sorted.size; i++) {\n for(int j = i ; j > 0 ; j--){\n \tEntity e1 = sorted.get(j);\n \tEntity e2 = sorted.get(j-1);\n if(getRL(e1) < getRL(e2)){\n sorted.set(j, e2);\n sorted.set(j-1, e1);\n }\n }\n }\n }", "@VTID(28)\n boolean getSortUsingCustomLists();", "public List<SortedArrayInfo> sortHistory();", "void buildTable(){\n HashMap<String, Integer> map = new HashMap<String, Integer>();\n while (first.hasNext()){\n String s = first.next();\n for(String key: s.split(SPLIT)) {\n int val = map.getOrDefault(key, 0);\n map.put(key, val + 1);\n }\n }\n ArrayList<Tuple> arr = new ArrayList<>();\n for (String key: map.keySet()){\n int num = map.get(key);\n //filter the unusual items\n if (num >= this.support){\n arr.add(new Tuple(key, num));\n }\n }\n //descending sort\n arr.sort((Tuple t1, Tuple t2)->{\n if (t1.num <= t2.num)\n return 1;\n else\n return -1;\n });\n\n int idx = 0;\n for(Tuple t: arr){\n this.table.add(new TableEntry(t.item, t.num));\n this.keyToNum.put(t.item, t.num);\n this.keyToIdx.put(t.item, idx);\n idx += 1;\n }\n /*\n for(TableEntry e: table){\n System.out.println(e.getItem()+ \" \"+ e.getNum());\n }*/\n }", "public void sortMatches();", "public String sortBy();", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "private static void SortHash(HashMap<String,ArrayList<input>> hashMap,Distribution list)\n\t{\n\t\tCollections.sort(list.First, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.sort(list.Second, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.sort(list.Third, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.sort(list.Fourth, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.sort(list.Fifth, new Comparator<input>() {\n\t\t public int compare(input one, input other) {\n\t\t \tif(one.sum>other.sum)\n\t\t \t{\n\t\t \t\treturn 1;\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\treturn -1;\n\t\t \t}\n\t\t }\n\t\t}); \n\t\tCollections.reverse(list.First);\n\t\tCollections.reverse(list.Second);\n\t\tCollections.reverse(list.Third);\n\t\tCollections.reverse(list.Fourth);\n\t\tCollections.reverse(list.Fifth);\n\t\tputInHashMap(hashMap,list);\n\t}", "private static final List<Fooable> sortFooables(\n \t\t\tMap<Fooable, Integer> fooPairs) {\n \t\t// Create a list of Map.Entries based on the input Map\n \t\tList<Map.Entry<Fooable, Integer>> pairList = new ArrayList<>();\n \t\tpairList.addAll(fooPairs.entrySet());\n \n \t\t// Sort the list of Map.Entries containing Fooables and Levenshtein\n \t\t// Distances\n \t\tCollections.sort(pairList,\n \t\t\t\tnew Comparator<Map.Entry<Fooable, Integer>>() {\n \t\t\t\t\t@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\t// Initially sort by Levenshtein Distance\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}\n \t\t\t\t});\n \n \t\t// Construct a sorted list of Fooables\n \t\tList<Fooable> sortedList = new ArrayList<>();\n \t\tfor (Map.Entry<Fooable, Integer> pair : pairList) {\n \t\t\tsortedList.add(pair.getKey());\n \t\t}\n \n \t\treturn sortedList;\n \t}", "@Override\r\n\tpublic void editSort() {\n\t\t\r\n\t}", "public void changeSortOrder();", "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 }", "public void sort() {\n }", "public Collection getSortedEntries(final PropertyAccessor sortProperty, boolean descending) {\n \t\tIEntryQueries queries = (IEntryQueries)getSession().getAdapter(IEntryQueries.class);\n \tif (queries != null) {\n \t\treturn queries.getSortedEntries(this, sortProperty, descending);\n \t} else {\n \t\t// IEntryQueries has not been implemented in the datastore.\n \t\t// We must therefore provide our own implementation.\n \t\t\n \t\tList sortedEntries = new LinkedList();\n \t\t\n \t\tIterator it = entries.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tsortedEntries.add(it.next());\n \t\t}\n \t\t\n \t\tComparator entryComparator;\n \t\tif (sortProperty.getPropertySet() == EntryInfo.getPropertySet()) {\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\tObject value1 = ((Entry) a).getPropertyValue(sortProperty);\n \t\t\t\t\tObject value2 = ((Entry) b).getPropertyValue(sortProperty);\n \t\t\t\t\tif (value1 == null && value2 == null) return 0;\n \t\t\t\t\tif (value1 == null) return 1;\n \t\t\t\t\tif (value2 == null) return -1;\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(sortProperty.getValueClass())) {\n \t\t\t\t\t\treturn ((Comparable)value1).compareTo(value2);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tthrow new RuntimeException(\"not yet implemented\");\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t};\n \t\t} else if (sortProperty.getPropertySet() == TransactionInfo.getPropertySet()) {\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\tObject value1 = ((Entry) a).getTransaction().getPropertyValue(sortProperty);\n \t\t\t\t\tObject value2 = ((Entry) b).getTransaction().getPropertyValue(sortProperty);\n \t\t\t\t\tif (value1 == null && value2 == null) return 0;\n \t\t\t\t\tif (value1 == null) return 1;\n \t\t\t\t\tif (value2 == null) return -1;\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(sortProperty.getValueClass())) {\n \t\t\t\t\t\treturn ((Comparable)value1).compareTo(value2);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tthrow new RuntimeException(\"not yet implemented\");\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t};\n \t\t} else if (sortProperty.getPropertySet() == AccountInfo.getPropertySet()) {\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\tObject value1 = ((Entry) a).getAccount().getPropertyValue(sortProperty);\n \t\t\t\t\tObject value2 = ((Entry) b).getAccount().getPropertyValue(sortProperty);\n \t\t\t\t\tif (value1 == null && value2 == null) return 0;\n \t\t\t\t\tif (value1 == null) return 1;\n \t\t\t\t\tif (value2 == null) return -1;\n \t\t\t\t\tif (Comparable.class.isAssignableFrom(sortProperty.getValueClass())) {\n \t\t\t\t\t\treturn ((Comparable)value1).compareTo(value2);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tthrow new RuntimeException(\"not yet implemented\");\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t};\n \t\t} else {\n \t\t\tthrow new RuntimeException(\"given property cannot be used for entry sorting\");\n \t\t}\n \t\t\n \t\tif (descending) {\n \t\t\tfinal Comparator ascendingComparator = entryComparator;\n \t\t\tentryComparator = new Comparator() {\n \t\t\t\tpublic int compare(Object a, Object b) {\n \t\t\t\t\treturn ascendingComparator.compare(b, a);\n \t\t\t\t}\n \t\t\t};\n \t\t}\n \t\t\n \t\tCollections.sort(sortedEntries, entryComparator);\n \t\t\n \t\treturn sortedEntries;\n \t}\n \t}", "private void sort() {\n\t\tCollections.sort(this.entities, comparator);\n\t}", "@Override\n\t\t\tpublic int compare(Entry<String, Integer> o1, Entry<String, Integer> o2) {\n\t\t\t\treturn o2.getValue().compareTo(o1.getValue());\n\t\t\t}", "public void listSort() {\n\t\tCollections.sort(cd);\n\t}", "public static void main(String[] args) {\n\t\tLinkedList list=new LinkedList();\n\t\tlist.insert(10);\n\t\tlist.insert(5);\n\t\tlist.insert(15);\n\t\tlist.insert(100);\n\t\tlist.insert(500);\n\t\tlist.insert(200);\n\t\tlist.show();\n\t\tlist.sort();\n\t\tSystem.out.println();\n\t\tlist.show();\n\t}", "@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}", "public String getSortOrder();", "public void sortElements(){\n\t\tgetInput();\n\t\tPeople[] all = countAndSort(people, 0, people.length-1);\n\t\t//PrintArray(all);\n\t\tSystem.out.println(InversionCount);\n\t}", "public void sortCompetitors(){\n\t\t}", "public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }", "void sort();", "void sort();", "@Override\n public int compare(Entry<String, Integer> arg0, Entry<String, Integer> arg1) {\n if(arg0.getValue() == arg1.getValue()){\n return arg0.getKey().compareTo(arg1.getKey());\n } else {\n return arg1.getValue() - arg0.getValue();\n }\n }", "public void testUpdateUserDefinedSortForEntryWithOnlyTwoElementsInList()\n\t{\n\t\t// arrange\n\t\tUri listUri = helper.insertNewList(\"testlist\");\n\t\tlong listId = Integer.parseInt(listUri.getPathSegments().get(1));\n\t\tUri categoryUri = helper.insertNewCategory(listId, \"dudus\", 1);\n\t\tlong categoryId = Integer.parseInt(categoryUri.getPathSegments().get(1));\n\n\t\tlong[] entryIds = new long[2];\n\t\tUri entryUri = helper.insertNewItem(categoryId, \"dudus\", true, 1);\n\t\tentryIds[0] = Integer.parseInt(entryUri.getPathSegments().get(1));\n\t\tentryUri = helper.insertNewItem(categoryId, \"dudus2\", true, 2);\n\t\tentryIds[1] = Integer.parseInt(entryUri.getPathSegments().get(1));\n\n\t\t// Act & Assert\n\t\t// This test updates the sort order of entry from 2 to 1 (0-based)\n\t\tservice.updateUserDefinedSortForEntry(categoryId, entryIds[1], 1, 0);\n\n\t\tlong[] expectedEntryIds = new long[2];\n\t\texpectedEntryIds[0] = entryIds[1];\n\t\texpectedEntryIds[1] = entryIds[0];\n\n\t\t// now get all entries for category\n\t\tCursor entriesToBeUpdatedCursor = dataProvider.query(EntryColumns.CONTENT_URI,\n\t\t\t\tENTRY_PROJECTION, EntryColumns.CATEGORY_ID + \" = \" + categoryId, null,\n\t\t\t\tEntryColumns.SORT_POSITION);\n\n\t\tlong[] updatedEntryIds = new long[2];\n\t\tentriesToBeUpdatedCursor.moveToFirst();\n\t\twhile (!entriesToBeUpdatedCursor.isAfterLast())\n\t\t{\n\t\t\tlong entId = entriesToBeUpdatedCursor.getLong(entriesToBeUpdatedCursor\n\t\t\t\t\t.getColumnIndex(EntryColumns._ID));\n\n\t\t\tint position = entriesToBeUpdatedCursor.getInt(entriesToBeUpdatedCursor\n\t\t\t\t\t.getColumnIndex(EntryColumns.SORT_POSITION));\n\n\t\t\tupdatedEntryIds[position - 1] = entId;\n\t\t\tentriesToBeUpdatedCursor.moveToNext();\n\t\t}\n\t\t// Assert\n\t\tfor (int i = 0; i < 2; i++)\n\t\t\tassertEquals(expectedEntryIds[i], updatedEntryIds[i]);\n\t}", "@Test\n public void testSort() {\n initialize();\n var realList = new HighScoreList();\n realList.setList(list);\n realList.sort();\n\n assertEquals(300, realList.getList().get(0).getScore());\n assertEquals(200, realList.getList().get(1).getScore());\n assertEquals(100, realList.getList().get(2).getScore());\n }", "public void testUpdateUserDefinedSortForEntriesWithMultipleElementsInList()\n\t{\n\t\t// arrange\n\t\tUri listUri = helper.insertNewList(\"testlist\");\n\t\tlong listId = Integer.parseInt(listUri.getPathSegments().get(1));\n\t\tUri categoryUri = helper.insertNewCategory(listId, \"dudus\", 1);\n\t\tlong categoryId = Integer.parseInt(categoryUri.getPathSegments().get(1));\n\t\t\n\t\tlong[] entryIds = new long[5];\n\t\tUri entryUri = helper.insertNewItem(categoryId, \"dudus\", false, 1);\n\t\tentryIds[0] = Integer.parseInt(entryUri.getPathSegments().get(1));\n\t\tentryUri = helper.insertNewItem(categoryId, \"dudus\", false, 2);\n\t\tentryIds[1] = Integer.parseInt(entryUri.getPathSegments().get(1));\n\t\tentryUri = helper.insertNewItem(categoryId, \"dudus\", false, 3);\n\t\tentryIds[2] = Integer.parseInt(entryUri.getPathSegments().get(1));\n\t\tentryUri = helper.insertNewItem(categoryId, \"dudus\", false, 4);\n\t\tentryIds[3] = Integer.parseInt(entryUri.getPathSegments().get(1));\n\t\tentryUri = helper.insertNewItem(categoryId, \"dudus\", false, 5);\n\t\tentryIds[4] = Integer.parseInt(entryUri.getPathSegments().get(1));\n\n\t\t// Act\n\t\t// This test updates the sort order of entry from 3 to 1 (0-based)\n\t\tservice.updateUserDefinedSortForEntry(categoryId, entryIds[3], 3, 1);\n\n\t\tlong[] expectedEntryIds = new long[5];\n\t\texpectedEntryIds[0] = entryIds[0];\n\t\texpectedEntryIds[1] = entryIds[3];\n\t\texpectedEntryIds[2] = entryIds[1];\n\t\texpectedEntryIds[3] = entryIds[2];\n\t\texpectedEntryIds[4] = entryIds[4];\n\n\t\t// now get all entries for category\n\t\tCursor entriesToBeUpdatedCursor = dataProvider.query(EntryColumns.CONTENT_URI,\n\t\t\t\tENTRY_PROJECTION, EntryColumns.CATEGORY_ID + \" = \" + categoryId, null,\n\t\t\t\tEntryColumns.SORT_POSITION);\n\n\t\tlong[] updatedEntryIds = new long[5];\n\t\tentriesToBeUpdatedCursor.moveToFirst();\n\t\twhile (!entriesToBeUpdatedCursor.isAfterLast())\n\t\t{\n\t\t\tlong entId = entriesToBeUpdatedCursor.getLong(entriesToBeUpdatedCursor\n\t\t\t\t\t.getColumnIndex(EntryColumns._ID));\n\n\t\t\tint position = entriesToBeUpdatedCursor.getInt(entriesToBeUpdatedCursor\n\t\t\t\t\t.getColumnIndex(EntryColumns.SORT_POSITION));\n\n\t\t\tupdatedEntryIds[position - 1] = entId;\n\t\t\tentriesToBeUpdatedCursor.moveToNext();\n\t\t}\n\n\t\t// Assert\n\t\tfor (int i = 0; i < 5; i++)\n\t\t\tassertEquals(expectedEntryIds[i], updatedEntryIds[i]);\n\t}", "boolean areSorted();", "public abstract List<Log> getSorted(boolean asc, String columnName) throws DatabaseConfigException;", "ColumnSortList.ColumnSortInfo getSortInfo();", "@Override\r\n\tpublic int compare(Entry<Integer, Integer> o1, Entry<Integer, Integer> o2) {\n\t\treturn o2.getValue().compareTo(o1.getValue());\r\n\t}", "Listof<V> sortedVals();", "Map<String, org.springframework.batch.item.database.Order> genBatchOrderByFromSort(TableFields tableFields, Sort sort);", "private static void sortByVerified( ArrayList<Volunteer> list)\n {\n // Find the string reference that should go in each cell of\n // the array, from cell 0 to the end\n for ( int j = 0; j < list.size();j++ )\n {\n // Find min: the index of the string reference that should go into cell j.\n // Look through the unsorted strings (those at j or higher) for the one that is first in lexicographic order\n int min = j;\n for ( int k=j+1; k < list.size(); k++ ) {\n if (list.get(k).compareTo(list.get(min)) > 0) {\n min = k;\n }\n\n }\n\n // Swap the reference at j with the reference at min\n Collections.swap(list, j, min);\n }\n }", "@Override\n\t\t\t\t\tpublic int compare(Entry<Integer, String> o1, Entry<Integer, String> o2) {\n\t\t\t\t\t\treturn o1.getValue().compareTo(o2.getValue());\n\t\t\t\t\t}", "private List<Article> orderArticles(List<Article> things){\n\t\t Comparator<Article> comparatorPrizes = new Comparator<Article>() {\n\t public int compare(Article x, Article y) {\n\t return (int) (x.getPrize() - y.getPrize());\n\t }\n\t };\n\t Collections.sort(things,comparatorPrizes); \n\t Collections.reverse(things);\n\t return things;\n\t }", "public SortingAlgorithmResult<E> sort(List<E> l);", "private void print() {\n\t\tList<Entry<String, Double>> entries = sort();\n\t\tfor (Entry<String, Double> entry: entries) {\n\t\t\tSystem.out.println(entry);\n\t\t}\n\t}", "List<Employee> sort(Sorting selectedSortColoumn) throws SQLException;", "private void sort() {\n Collections.sort(mEntries, new Comparator<BarEntry>() {\n @Override\n public int compare(BarEntry o1, BarEntry o2) {\n return o1.getX() > o2.getX() ? 1 : o1.getX() < o2.getX() ? -1 : 0;\n }\n });\n }", "public static void main(String[] args) {\n\t\tHashMap<String, String> hm = new HashMap<String, String>();\n\t\thm.put(\"1\", \"2\");\n\t\thm.put(\"0\", \"5\");\n\t\thm.put(\"890\", \"6\");\n\t\thm.put(\"90\", \"3\");\n\t\tArrayList<HashMap> a = new ArrayList<HashMap>();\n\t\t\ta.add(hm);;\t\n\t\tCollections.sort((java.util.List) a);\n\t\tSystem.out.println(hm.values());\n\t}", "public void writeList() {\n\n HeapSort heapSort = new HeapSort();\n heapSort.sort(list);\n\n// QuickSort quickSort = new QuickSort();\n// quickSort.sort(list);\n\n// MergeSort mergeSort = new MergeSort();\n// mergeSort.sortNumbers(list);\n\n System.out.println(\"Result of sorting :\");\n list.stream().forEach(s -> System.out.println(s));\n }", "public static boolean testSort() {\r\n Manager inst;\r\n try {\r\n inst = new PokemonTable();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n LinkedList<Pokemon> list;\r\n list = inst.sortByAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() < list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() > list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() < list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() > list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).getFavorite() && list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getFavorite() && !list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() < list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() > list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).isLegendary() && list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).isLegendary() && !list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) > 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) < 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() < list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() > list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() < list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() > list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() < list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() > list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "void sortUI();", "public void sortFullList()\r\n {\r\n if (log.isDebugEnabled())\r\n {\r\n log.debug(\"[\" + this.id + \"] sorting full data\");\r\n }\r\n sortRowList(this.getRowListFull());\r\n }", "public static void main(String[] args) {\n List l = new ArrayList();\r\n\tl.add(Month.SEP);\r\n\tl.add(Month.MAR);\r\n\tl.add(Month.JUN);\r\n\tSystem.out.println(\"\\nList before sort : \\n\" + l);\r\n\tCollections.sort(l);\r\n\tSystem.out.println(\"\\nList after sort : \\n\" + l);\r\n }", "private void sortByDate(List<Entry> entries) {\n\t\t\n\t\tCollections.sort(entries, new Comparator<Entry>() {\n\t\t\tpublic int compare(Entry o1, Entry o2) {\n\t\t\t if (o1.getTimestamp() == null || o2.getTimestamp() == null)\n\t\t\t return 0;\n\t\t\t return o1.getTimestamp().compareTo(o2.getTimestamp());\n\t\t\t }\n\t\t\t});\n\t}", "public List<Entry> getSortable() \n\t{\n\t\tList<Registry.Entry> list = new ArrayList(this.size() + JavaUtil.arrayInitCapacity);\n\t\tfor(Registry.Entry entry : this)\n\t\t\tlist.add(entry);\n\t\treturn list;\n\t}", "List<User> getUsersSortedByNameAndAge(List<User> users);", "@Override\r\n\t\t\tpublic int compare(Entry<Integer, LinkedList<Link>> o1, Entry<Integer, LinkedList<Link>> o2) {\n\t\t\t\treturn o1.getKey() - o2.getKey();\r\n\t\t\t}", "@SuppressWarnings(\"unchecked\")\n public C entriesListIsSortedAscBy(String field)\n {\n List<Model> modelEntries = modelCollection.getEntries();\n List<String> fieldValues = new ArrayList<String>();\n for(Model m: modelEntries)\n {\n Object model = loadModel(m);\n String fieldValue = \"\";\n try {\n fieldValue = BeanUtils.getProperty(model, field);\n fieldValues.add(fieldValue);\n }\n catch (Exception e)\n {\n // nothing to do\n }\n }\n Assert.assertTrue(Ordering.natural().isOrdered(fieldValues), String.format(\"Entries are not ordered ASC by %s\", field));\n return (C) modelCollection;\n }", "public void sortPageList()\r\n {\r\n if (log.isDebugEnabled())\r\n {\r\n log.debug(\"[\" + this.id + \"] sorting page list\");\r\n }\r\n sortRowList(this.getRowListPage());\r\n\r\n }", "public static void main(String[] args) {\n\t\tList<StatetostateDetail> list = new ArrayList<StatetostateDetail>();\n\t\tfor(int i = 1; i < 16; i++){\n\t\t\tStatetostateDetail s = new StatetostateDetail();\n\t\t\ts.setId(i);\n\t\t\ts.setStatue(0);\n\t\t\ts.setTime(System.currentTimeMillis() + (i + i * 100));\n\t\t\tlist.add(s);\n\t\t}\n\t\tlist.get(3).setStatue(1);\n\t\tlist.get(5).setStatue(1);\n\t\tlist.get(10).setStatue(1);\n\t\tlist.get(14).setStatue(1);\n\t\tlist.get(7).setStatue(2);\n\t\tlist.get(9).setStatue(2);\n\t\tSystem.out.println(\"list:\" + list);\n\t\n\t\t\n\t\tCollections.sort(list, new Comparator<StatetostateDetail>(){\n public int compare(StatetostateDetail s1, StatetostateDetail s2) {\n \tLong t1 = null;\n \tLong t2 = null;\n \ttry{\n \t\tt1 = s1.getTime();\n\t \tt2 = s2.getTime();\n \t}catch(Exception e){\n \t\te.printStackTrace();\n \t}\n \n return t2.compareTo(t1);\n }\n });\n\t\tCollections.sort(list, new Comparator<StatetostateDetail>(){\n public int compare(StatetostateDetail s1, StatetostateDetail s2) {\n \treturn s1.getStatue()>s2.getStatue()?1:(s1.getStatue()==s2.getStatue()?0:(s2.getTime()>s1.getTime()?-1:0));\n }\n });\n\t\t\n\t\tSystem.out.println(\"list:\" + list);\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 sortMedApts(List<MedicationAppointment> medApts2) {\n \t}", "private static void sortFriends() {\n friends.postValue(friends.getValue());\n }", "@Test\n\tpublic void testLLSort() {\n\t\tLinkedList playerList = new LinkedList();\n\t\tPlayer tempInsert5 = new Player();\n\t\ttempInsert5.setName(\"test5\");\n\t\ttempInsert5.setPoints(5);\n\t\ttempInsert5.setWins(4);\n\t\ttempInsert5.setLosses(3);\n\t\tplayerList.LLInsert(tempInsert5);\n\t\tplayerList.LLPrint();\n\t\t\n\t\tPlayer tempInsert2 = new Player();\n\t\ttempInsert2.setName(\"test2\");\n\t\ttempInsert2.setPoints(2);\n\t\ttempInsert2.setWins(1);\n\t\ttempInsert2.setLosses(0);\n\t\tplayerList.LLInsert(tempInsert2);\n\t\t\n\t\tPlayer tempInsert3 = new Player();\n\t\ttempInsert3.setName(\"test3\");\n\t\ttempInsert3.setPoints(3);\n\t\ttempInsert3.setWins(2);\n\t\ttempInsert3.setLosses(1);\n\t\tplayerList.LLInsert(tempInsert3);\n\t\t\n\t\tPlayer tempInsert1 = new Player();\n\t\ttempInsert1.setName(\"test1\");\n\t\ttempInsert1.setPoints(1);\n\t\ttempInsert1.setWins(0);\n\t\ttempInsert1.setLosses(0);\n\t\tplayerList.LLInsert(tempInsert1);\n\t\tplayerList.LLPrint();\n\t\t\n\t\tPlayer tempInsert4 = new Player();\n\t\ttempInsert4.setName(\"test4\");\n\t\ttempInsert4.setPoints(4);\n\t\ttempInsert4.setWins(3);\n\t\ttempInsert4.setLosses(2);\n\t\tplayerList.LLInsert(tempInsert4);\n\t\tplayerList.LLPrint();\n\t\t\n\t\tplayerList.LLSort();\n\t\tassertEquals(playerList.LLPrint(), \n\t\t\t\t\"test5: Points: 5, Wins/Losses: 4/3\\n\"\n\t\t\t\t\t\t+ \"test4: Points: 4, Wins/Losses: 3/2\\n\"\n\t\t\t\t\t\t+ \"test3: Points: 3, Wins/Losses: 2/1\\n\"\n\t\t\t\t\t\t+ \"test2: Points: 2, Wins/Losses: 1/0\\n\"\n\t\t\t\t\t\t+ \"test1: Points: 1, Wins/Losses: 0/0\\n\");\n\t}", "public static void main(String[] args) {\n\t\tArrayList<Employee> list= new ArrayList<Employee>();\n\t\t\n\t\tlist.add(new Employee(3,6000,\"vinod\"));\n\t\tlist.add(new Employee(6,7500,\"Rangu\"));\n\t\tlist.add(new Employee(1,9000,\"kittu\"));\n\t\tlist.add(new Employee(5,5000,\"bunny\"));\n\t\t\n\t\tCollections.sort(list, new NameComparator());\n\t\t\n\t\tIterator it = list.iterator();\n\t\t\n\t\twhile(it.hasNext()){\n\t\t\tEmployee emp = (Employee)it.next();\n\t\t\tSystem.out.println(emp.id+\" \"+emp.salaray+\" \"+emp.name);\n\t\t\t\n\t\t\t/*Collections.sort(list, new SalaryComparator());\n\t\t\t\n\t\t\tIterator it = list.iterator();\n\t\t\t\n\t\t\twhile(it.hasNext()){\n\t\t\t\tEmployee emp = (Employee)it.next();\n\t\t\t\tSystem.out.println(emp.id+\" \"+emp.salaray+\" \"+emp.name);\n\t\t}*/\n\t}\n\t}", "public static void main(String[] args) {\n\n List<String> animals = new ArrayList <String>();\n\n animals.add(\"Elephatn\");\n animals.add(\"snake\");\n animals.add(\"Lion\");\n animals.add(\"Mongoose\");\n animals.add(\"Cat\");\n\n\n\n// Collections.sort(animals, new StringLengthComparator());\n// Collections.sort(animals, new AlphabeticalComparator());\n Collections.sort(animals, new ReverseAlphabeticalComparator());\n for(String animal:animals){\n System.out.println(animal);\n }\n\n//////////////Sorting Numbers ///////////\n List<Integer> numbers = new ArrayList <Integer>();\n\n numbers.add(54);\n numbers.add(1);\n numbers.add(36);\n numbers.add(73);\n numbers.add(9);\n\n Collections.sort(numbers, new Comparator <Integer>() {\n @Override\n public int compare(Integer num1, Integer num2) {\n return num1.compareTo(num2);\n }\n });\n\n for(Integer number: numbers){\n System.out.println(number);\n }\n\n\n///////////////Sorting Arbitrary objects////////\n\n\n List<Person> people = new ArrayList <Person>();\n\n people.add(new Person(1,\"Joe\"));\n people.add(new Person(5,\"Harry\"));\n people.add(new Person(2,\"Hermoine\"));\n people.add(new Person(4,\"Muffet\"));\n\n// Sort in order of ID\n Collections.sort(people, new Comparator <Person>() {\n @Override\n public int compare(Person p1, Person p2) {\n\n if(p1.getId()>p2.getId()){\n return 1;\n }else if(p1.getId()<p2.getId()){\n return -1;\n }\n return 0;\n\n }\n });\n\n\n // Sort in order of Name\n Collections.sort(people, new Comparator <Person>() {\n @Override\n public int compare(Person p1, Person p2) {\n\n return p1.getName().compareTo(p2.getName());\n\n\n }\n });\n\n for(Person person: people){\n System.out.println(person);\n\n }\n\n }", "public static void main(String[] args) {\n sortGeneric list = new sortGeneric();\n list.add(100);\n list.add(7);\n list.add(6);\n list.add(20);\n list.add(1);\n list.add(15);\n System.out.print(\"trc khi sap xep : \");\n for (int i = 0; i < list.size(); i++) {\n System.out.print(list.get(i) + \" \");\n }\n System.out.println();\n list.sort();\n System.out.print(\"sau khi sap xep: \");\n for (int i = 0; i < list.size(); i++) {\n System.out.print(list.get(i) + \" \");\n }\n System.out.println();\n\n\n }", "public void sortToDo(){\n\t\tCollections.sort(allToDoLists);\n\t}", "public static void main(String[] args) {\n\t\tList<String> animal = new ArrayList<String>();\n\n\t\tanimal.add(\"Cat\");\n\t\tanimal.add(\"Mouse\");\n\t\tanimal.add(\"Lion\");\n\t\tanimal.add(\"Zeebra\");\n\t\tanimal.add(\"Bear\");\n\t\tanimal.add(\"Deer\");\n\n\t\t// Collections.sort(animal,new StringLengthComparator());\n\n\t\tCollections.sort(animal, new ReverseAlphabeticalComparator());\n\t\tfor (String animal1 : animal) {\n\n\t\t\tSystem.out.println(animal1);\n\t\t}\n\n\t\t/////////////////////////////// Sorting Numbers ////////////////////////////////\n\t\tList<Integer> numbers = new ArrayList<Integer>();\n\n\t\tnumbers.add(5);\n\t\tnumbers.add(31);\n\t\tnumbers.add(16);\n\t\tnumbers.add(605);\n\t\tnumbers.add(15);\n\n\t\tCollections.sort(numbers, new Comparator<Integer>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Integer num1, Integer num2) {\n\n\t\t\t\treturn -num1.compareTo(num2);\n\t\t\t}\n\n\t\t});\n\n\t\tfor (Integer num1 : numbers) {\n\n\t\t\tSystem.out.println(num1);\n\t\t}\n\t\t///////////////////////////// Sorting Arbitrary Objects ////////////////////////////\n\n\t\tList<Person> people = new ArrayList<Person>();\n\n\t\tpeople.add(new Person(3, \"Ajeer\"));\n\t\tpeople.add(new Person(1, \"Sudeer\"));\n\t\tpeople.add(new Person(2, \"Sureash\"));\n\t\tpeople.add(new Person(4, \"Sam\"));\n\t\t\n\t\t// Sort in Order of ID\n\t\tCollections.sort(people, new Comparator<Person>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Person p1, Person p2) {\n\t\t\t\tif (p1.getId() > p2.getId()) {\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\telse if (p1.getId()< p2.getId()) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t\tfor (Person person1 : people) {\n\n\t\t\tSystem.out.println(person1);\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t\t// Sort In Order of NAME....\n\t\tCollections.sort(people, new Comparator<Person>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Person p1, Person p2) {\n\t\t\t\n\t\t\t\treturn p1.getName().compareTo(p2.getName());\n\t\t\t}\n\t\t});\n\t\tfor (Person person1 : people) {\n\n\t\t\tSystem.out.println(person1);\n\t\t}\n\t}", "public String getMessageSort();", "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}", "@Override\n // Compare values according to columns\n public int compare(final int[] entry1, final int[] entry2) {\n if (entry1[0] > entry2[0])\n return 1;\n else\n return -1;\n }", "protected void sort() {\n\n\t\tCollections.sort(this.myRRList);\n\t}", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "@Override\n\t\t\tpublic int compare(Entry<String, Integer> o1,\n\t\t\t\t\tEntry<String, Integer> o2) {\n\t\t\t\tInteger v2 = o2.getValue();\n\t\t\t\tInteger v1 = o1.getValue();\n\t\t\t\treturn v2.compareTo(v1);\n\t\t\t}", "public static void insertionSort2(IntList l) {\n\t\tIntListEntry input = l.getFirst();\n\t\tl1:\twhile (input != null) {\n\t\t\tfor (IntListEntry e = l.getFirst(); e != input; e = e.getNext())\n\t\t\t\tif (e.getItem() > input.getItem()) {\n\t\t\t\t\tIntListEntry next = input.getNext();\n\t\t\t\t\tl.delete(input);\n\t\t\t\t\tl.insertBefore(input, e);\n\t\t\t\t\tinput = next;\n\t\t\t\t\tcontinue l1;\n\t\t\t\t}\n\t\t\tinput = input.getNext();\n\t\t}\n\t}", "public static void Insertionsort(int a[]) \n\t { \n\t int n = a.length; \n\t for (int i=1; i<n; ++i) \n\t { \n\t int key = a[i]; \n\t int j = i-1;\n\t while (j>=0 && a[j] > key) \n\t { \n\t a[j+1] = a[j]; \n\t j = j-1; \n\t } \n\t a[j+1] = key; \n\t } \n\t }", "public List<Entry<String, Double>> sort()\n\t{\n\t\tList<Entry<String, Double>> list = new ArrayList<Entry<String, Double>>();\n\t\tfor(Entry<String, Double> entry : map.entrySet())\n\t\t{\n\t\t\tlist.add(entry);\n\t\t}\n\n\t\tComparator<Entry<String, Double>> compare = new Comparator<Entry<String, Double>>() {\n\t @Override\n\t public int compare(Entry<String, Double> first, Entry<String, Double> second)\n\t {\n\t \tif (first.getValue() > second.getValue())\n\t \t{\n\t return -1;\n\t }\n\t if (first.getValue() < second.getValue())\n\t {\n\t return 1;\n\t }\n\t return 0;\n\t }\n\t };\n\n\t Collections.sort(list, compare);\n return list;\n\t}", "public void sortByAndser() {\r\n\t\tQuestion[][] question2DArray = new Question[displayingList.size()][];\r\n\t\tfor (int i = 0; i < displayingList.size(); i++) {\r\n\t\t\tquestion2DArray[i] = new Question[1];\r\n\t\t\tquestion2DArray[i][0] = displayingList.get(i);\r\n\t\t}\r\n\r\n\t\twhile (question2DArray.length != 1) {\r\n\t\t\tquestion2DArray = (Question[][]) merge2DArray(question2DArray);\r\n\t\t}\r\n\t\tdisplayingList.removeAll(displayingList);\r\n\t\tfor (int i = 0; i < question2DArray[0].length; i++) {\r\n\t\t\tdisplayingList.add(question2DArray[0][i]);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n ArrayList<SortObjects> a = new ArrayList<SortObjects>();\n\n SortObjects o = new SortObjects(\"Latha\", 23, 26000);\n SortObjects o2= new SortObjects(\"Ramya\", 20, 11000);\n SortObjects o3= new SortObjects(\"Kalai\", 29, 30000);\n SortObjects o4= new SortObjects(\"Vidya\", 24, 25000);\n a.add(o);\n a.add(o2);\n a.add(o3);\n a.add(o4);\n SortComparator s = new SortComparator();\n a.sort(s);\n System.out.println(a);\n \n \n\n\t}", "protected abstract Comparator<UsageInfo> makeUsageInfoComparator();", "@Override\n\t\t\tpublic int compare(Entry<Long, String> e1, Entry<Long, String> e2) {\n\t\t\t\t\n\t\t\t\treturn (int) (e1.getKey()-e2.getKey());\n\t\t\t}", "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\t\tStud1 s1=new Stud1(1,\"Yogi\");\r\n\t\tStud1 s2=new Stud1(4,\"Rushi\");\r\n\t\tStud1 s3=new Stud1(2,\"Praje\");\r\n\t\tStud1 s4=new Stud1(3,\"Amre\");\r\n\t\t\r\n\t\tList l=new ArrayList();\r\n\t\tl.add(s1);\r\n\t\tl.add(s2);\r\n\t\tl.add(s3);\r\n\t\tl.add(s4);\r\n\t\t\r\n\t\tSystem.out.println(l);\r\n\t\t\r\n\t\tCollections.sort(l);\r\n\t\t\r\n\t\tEnumeration e=Collections.enumeration(l);\r\n\t\t\r\n\t\twhile(e.hasMoreElements())\r\n\t\t{\r\n\t\t\tObject o=e.nextElement();\r\n\t\t\tSystem.out.println(o);\r\n\t\t}\r\n\r\n\t}", "public void sort() {\n documents.sort();\n }", "public void sortKnowledgeBase()\n {\n int i;\n Random random;\n String aPredicate;\n StringTokenizer tokenizer;\n //------------\n random = new Random();\n i = 0;\n while (i < knowledgeBase.size())\n {\n aPredicate = knowledgeBase.get(i).commitments.get(0).predicate;\n tokenizer = new StringTokenizer(aPredicate,\"(), \");\n if(tokenizer.nextToken().equals(\"secuencia\"))\n knowledgeBase.get(i).priority = random.nextInt(100);\n //end if\n else\n knowledgeBase.get(i).priority = random.nextInt(10000);\n //end else\n i = i + 1;\n }//end while\n Collections.sort(knowledgeBase);\n }", "private void Sort(int[] list)\r\n {\r\n switch (SortField.getText())\r\n {\r\n case \"Insertion Sort\":\r\n {\r\n InsertionSort insertionSort = new InsertionSort();\r\n\r\n long startTime = System.currentTimeMillis();\r\n\r\n insertionSort.insertionSort(list);\r\n\r\n long endTime = System.currentTimeMillis();\r\n\r\n CompareField.setText(String.valueOf(insertionSort.getComparisons()));\r\n MovementField.setText(String.valueOf(insertionSort.getMovements()));\r\n TimeField.setText((endTime - startTime + \" milliseconds\"));\r\n TimeComField.setText(\"O(n*2)\");\r\n\r\n break;\r\n }\r\n case \"Selection Sort\":\r\n {\r\n SelectionSort selectionSort = new SelectionSort();\r\n\r\n long startTime = System.currentTimeMillis();\r\n\r\n selectionSort.selectionSort(list);\r\n\r\n long endTime = System.currentTimeMillis();\r\n\r\n CompareField.setText(String.valueOf(selectionSort.getComparisons()));\r\n MovementField.setText(String.valueOf(selectionSort.getMovements()));\r\n TimeField.setText((endTime - startTime + \" milliseconds\"));\r\n TimeComField.setText(\"O(n2)\");\r\n\r\n break;\r\n }\r\n case \"Quick Sort\":\r\n {\r\n QuickSort quickSort = new QuickSort();\r\n\r\n long startTime = System.currentTimeMillis();\r\n\r\n quickSort.quickSort(list);\r\n\r\n long endTime = System.currentTimeMillis();\r\n\r\n CompareField.setText(String.valueOf(quickSort.getComparisons()));\r\n MovementField.setText(String.valueOf(quickSort.getMovements()));\r\n TimeField.setText((endTime - startTime + \" milliseconds\"));\r\n TimeComField.setText(\"O(n log n)\");\r\n\r\n break;\r\n }\r\n case \"Merge Sort\":\r\n {\r\n MergeSort mergeSort = new MergeSort();\r\n\r\n long startTime = System.currentTimeMillis();\r\n\r\n mergeSort.mergeSort(list);\r\n\r\n long endTime = System.currentTimeMillis();\r\n\r\n CompareField.setText(String.valueOf(mergeSort.getComparisons()));\r\n MovementField.setText(String.valueOf(mergeSort.getMovements()));\r\n TimeField.setText((endTime - startTime + \" milliseconds\"));\r\n TimeComField.setText(\"T(n) = 2T(n/2) + θ(n)\");\r\n\r\n break;\r\n }\r\n case \"Heap Sort\":\r\n {\r\n HeapSort heapSort = new HeapSort();\r\n\r\n long startTime = System.currentTimeMillis();\r\n\r\n heapSort.heapSort(list);\r\n\r\n long endTime = System.currentTimeMillis();\r\n\r\n CompareField.setText(String.valueOf(heapSort.getComparisons()));\r\n MovementField.setText(String.valueOf(heapSort.getMovements()));\r\n TimeField.setText((endTime - startTime + \" milliseconds\"));\r\n TimeComField.setText(\"O(nLogn)\");\r\n\r\n break;\r\n }\r\n case \"Radix Sort\":\r\n {\r\n RadixSort radixSort = new RadixSort();\r\n\r\n long startTime = System.currentTimeMillis();\r\n\r\n radixSort.radixSort(list, Integer.parseInt(SizeField.getText()));\r\n\r\n long endTime = System.currentTimeMillis();\r\n\r\n CompareField.setText(\"Radix Sort has 0 comparisons\");\r\n MovementField.setText(String.valueOf(radixSort.getMovements()));\r\n TimeField.setText((endTime - startTime + \" milliseconds\"));\r\n TimeComField.setText(\"O(kn)\");\r\n\r\n break;\r\n }\r\n\r\n case \"Bubble Sort\":\r\n {\r\n BubbleSort bubbleSort = new BubbleSort();\r\n\r\n long startTime = System.currentTimeMillis();\r\n\r\n bubbleSort.bubbleSort(list);\r\n\r\n long endTime = System.currentTimeMillis();\r\n\r\n CompareField.setText(String.valueOf(bubbleSort.getComparisons()));\r\n MovementField.setText(String.valueOf(bubbleSort.getMovements()));\r\n TimeField.setText((endTime - startTime + \" milliseconds\"));\r\n TimeComField.setText(\"O(n*n)\");\r\n\r\n break;\r\n }\r\n }\r\n }", "public void radixSorting() {\n\t\t\n\t}", "public List<ValueType> sort() {\r\n // TODO\r\n return null;\r\n }", "@Override\n public int compareTo(Entry other) {\n if(this.tag>other.tag) return 1;\n if(this.tag==other.tag) return 0;\n return -1;\n }", "private void orderList() {\n Iterator<PlanarShape> sort = unorderedList.iterator();\n\n while(sort.hasNext()) {\n orderedList.insertInOrder(sort.next());\n }\n }", "public static List<Person> checkSortLists(List<Person> people){\r\n TreeMap tm = new TreeMap();\r\n for (Person person: people) {\r\n if(person.getAge()>18){\r\n System.out.println(\"checking beyond\");\r\n return null;\r\n }\r\n tm.put(person.getNo(),person);\r\n }\r\n if(people.size()!=tm.size()){\r\n System.out.println(\"checking redundant\");\r\n return null;\r\n }\r\n List<Person> sortPeople = new ArrayList(tm.values());\r\n return sortPeople;\r\n }", "public abstract void sort() throws RemoteException;", "@SuppressWarnings(\"ComparatorMethodParameterNotUsed\")\n @Override\n public int compare(Map.Entry<Integer, Integer> entry1, Map.Entry<Integer, Integer> entry2) {\n return entry2.getValue() > entry1.getValue() ? 1 : -1;\n }", "public String sort() {\n this.foodEntries = FoodListManager.sortListByDate(foodEntries);\n return this.toString();\n }", "public void listEntries() {\n\t\t// Get the entries as a linked list\n\t\tLinkedList<BookEntry> entries = new LinkedList<>(phoneBook.values());\n\t\tCollections.sort(entries); // Sort the entries\n\n\t\tfor (BookEntry entry : entries) {\n\t\t\tSystem.out.println(\"Name = \" + entry.getPerson());\n\t\t\tSystem.out.printf(\"Number =(%s) %s%n\", entry.getNumber().getAreaCode(), entry.getNumber().getPhoneNumberNotAreaCode());\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "public void sortTable() {\n\t\tlist = new TableSorter<Attribute>().sortByAttrNameTranslation(getList());\n\t\tdataProvider.flush();\n\t\tdataProvider.refresh();\n\t}", "List<User> getNaturalSortedUsersByAge(List<User> users);", "public void triCollection(){\r\n Collections.sort(collection);\r\n }", "void sortV();", "@Override\n \tpublic void sort() {\n \t\tArrays.sort(data);\n \t}", "public static void hashMapSort(HashMap input){\n Set keys = input.keySet();\n int i = keys.size();\n ArrayList<String> sortedkeys = new ArrayList<>(i);\n sortedkeys.addAll(keys);\n Collections.sort(sortedkeys);\n System.out.println(\"sortedkeys = \" + sortedkeys);\n for (String item : sortedkeys){\n System.out.printf(input +\"%nItem: %s | Quantity: \" + input.get(item)+\"%n\", item);\n }\n\n}" ]
[ "0.6524589", "0.6447077", "0.64273113", "0.6238197", "0.6231049", "0.6176123", "0.61381716", "0.61066866", "0.60535294", "0.6041715", "0.6040719", "0.60376984", "0.59970963", "0.59816396", "0.5971421", "0.5943665", "0.59412944", "0.5934361", "0.5924586", "0.5913534", "0.5903849", "0.5890649", "0.58867234", "0.588335", "0.58815205", "0.5864501", "0.58632046", "0.58491415", "0.5848344", "0.5848344", "0.58288854", "0.58276165", "0.5823399", "0.5817117", "0.58142257", "0.5806285", "0.58015144", "0.57994926", "0.5791797", "0.5790245", "0.5788373", "0.57763", "0.577146", "0.5763971", "0.57542837", "0.57482475", "0.57471716", "0.5742655", "0.5738015", "0.5732319", "0.5719593", "0.5710255", "0.57028055", "0.5694692", "0.5693103", "0.5680611", "0.5679825", "0.5673906", "0.5651712", "0.5649443", "0.5645057", "0.5639661", "0.5637065", "0.56332403", "0.56332016", "0.5626665", "0.5617307", "0.5608171", "0.5606979", "0.56066173", "0.5606112", "0.5605323", "0.56053114", "0.5604191", "0.5592058", "0.5589656", "0.5583681", "0.55725807", "0.5570747", "0.5553401", "0.55438817", "0.5539154", "0.55382675", "0.5533925", "0.5527683", "0.55276257", "0.552732", "0.5517867", "0.5508687", "0.550706", "0.55054927", "0.5502684", "0.54975086", "0.5492864", "0.54921585", "0.54920375", "0.54911387", "0.5478968", "0.5475225", "0.5474691", "0.5472379" ]
0.0
-1
necessary for sorting purposes
public boolean equals(AttributeVector o) { if (o == null) return false; if (this == o) return true; if (getClass() != o.getClass()) return false; return compareTo((AttributeVector) o) == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void sortingMemo() {\n\t\t\n\t}", "public void sort() {\n }", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "public void sortCompetitors(){\n\t\t}", "public String doSort();", "void sort();", "void sort();", "public void radixSorting() {\n\t\t\n\t}", "@Override\r\n\tpublic void sort() {\r\n\t\tint minpos;\r\n\t\tfor (int i = 0; i < elements.length-1; i++) {\r\n\t\t\tminpos=AuxMethods.minPos(elements, i);\r\n\t\t\telements=AuxMethods.swapElements(elements, i, minpos);\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Override\n \tpublic void sort() {\n \t\tArrays.sort(data);\n \t}", "private void sortEntities(){\n for (int i = 1; i < sorted.size; i++) {\n for(int j = i ; j > 0 ; j--){\n \tEntity e1 = sorted.get(j);\n \tEntity e2 = sorted.get(j-1);\n if(getRL(e1) < getRL(e2)){\n sorted.set(j, e2);\n sorted.set(j-1, e1);\n }\n }\n }\n }", "private Sort() { }", "public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }", "@Override\n public void sort() {\n for (int i = 0; i < size; i++) {\n for (int j = i + 1; j < size; j++) {\n if (((Comparable) data[i]).compareTo(data[j]) > 0) {\n E c = data[i];\n data[i] = data[j];\n data[j] = c;\n\n }\n }\n }\n }", "private void sort() {\n Collections.sort(mEntries, new Comparator<BarEntry>() {\n @Override\n public int compare(BarEntry o1, BarEntry o2) {\n return o1.getX() > o2.getX() ? 1 : o1.getX() < o2.getX() ? -1 : 0;\n }\n });\n }", "void sortV();", "public void sortAllRows(){\n\t\t/* code goes here */ \n\t\t\n\t\t\n\t\t//WHY SHOULD THEY BE SORTED LIKE THE EXAMPLE SAYS???????\n\t\t\n\t}", "public void sortMatches();", "@Override\r\n\tpublic void editSort() {\n\t\t\r\n\t}", "public void sort() {\r\n int k = start;\r\n for (int i = 0; i < size - 1; i++) {\r\n int p = (k + 1) % cir.length;\r\n for (int j = i + 1; j < size; j++) {\r\n if ((int) cir[p] < (int) cir[k % cir.length]) {\r\n Object temp = cir[k];\r\n cir[k] = cir[p];\r\n cir[p] = temp;\r\n }\r\n p = (p + 1) % cir.length;\r\n }\r\n k = (k + 1) % cir.length;\r\n }\r\n }", "protected void sort() {\n\n\t\tCollections.sort(this.myRRList);\n\t}", "public String sortBy();", "abstract String getSortKey();", "private PerfectMergeSort() {}", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "void sortUI();", "public void sort() {\n\t\tdivider(0, array.size() - 1);\n\t}", "private void sortMedApts(List<MedicationAppointment> medApts2) {\n \t}", "public static WordFrq[] sort(WordFrq b[]){\n WordFrq temp;\n int i=0;\n while (i < 3) {\n for (i = 1; i < 3; i++) {\n if (b[i-1].count > b[i].count) {\n temp = b[i];\n b[i] = b[i-1];\n b[i-1] = temp;\n break;\n }\n }\n }\n\n\n return b;\n\n\n\n\n\n }", "@Override\n public void sortCurrentList(FileSortHelper sort) {\n }", "private void sortDate()\n {\n for(int i = 0; i < movieList.size(); i++){\n for(int j = 1; j < movieList.size() - i; j++)\n {\n Movie a = movieList.get(j-1);\n Movie b = movieList.get(j);\n int result = a.getReleaseDate().compareTo(b.getReleaseDate());\n if( result < 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n else if(result == 0)\n {\n result = a.getTitle().compareTo(b.getTitle());\n if(result > 0)\n {\n movieList.set(j-1, b);\n movieList.set(j, a);\n }\n }\n }\n }\n }", "public void oldSort()\n\t{\n\t\tfor (int index = 0; index < arraySize; index++) {\n\t\t\tfor (int secondIndex = index + 1; secondIndex < arraySize; secondIndex++) {\n\t\t\t\tint temp = 0;\n\t\t\t\tif (array[index] > array[secondIndex]) {\n\t\t\t\t\ttemp = array[index];\n\t\t\t\t\tarray[index] = array[secondIndex];\n\t\t\t\t\tarray[secondIndex] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public int compare(Object o1, Object o2) {\n/* 25 */ Alphabet a1 = (Alphabet)o1;\n/* 26 */ Alphabet a2 = (Alphabet)o2;\n/* */ \n/* 28 */ return a2.order - a1.order;\n/* */ }", "public abstract void sort() throws RemoteException;", "@Override\r\n\tpublic void deleteSort() {\n\t\t\r\n\t}", "public String sortOriginOrReturn();", "@Override\n\tpublic String sort() {\n\t\tString s=\"Insertionsort Function\";\n\t\treturn s;\n\t}", "private void sort() {\n\t\tCollections.sort(this.entities, comparator);\n\t}", "@Override\n\tpublic int compare(Person p1, Person p2) { //because this class implements Comparator \n\t\treturn p1.id-p2.id;\n\t}", "@Override\n public int compare(Item i1,Item i2){\n return i2.mark.compareTo(i1.mark);\n\n // return i1.mark.compareTo(i2,mark);\n //This is the ascending version of the same.\n }", "public void sortElements(){\n\t\tgetInput();\n\t\tPeople[] all = countAndSort(people, 0, people.length-1);\n\t\t//PrintArray(all);\n\t\tSystem.out.println(InversionCount);\n\t}", "public void triCollection(){\r\n Collections.sort(collection);\r\n }", "public void sortOccurred() {\n //SET ALL THE ROWS TO -1, (THEY INITIALIZE TO 0).\n \tfor(int i = 0; i < data.length; i++) {\n \t\tdata[i] = null;\n \t\trowIndexLookup[i] = -1;\n \t}\t\t\n }", "double getSortTime();", "public void sortByAndser() {\r\n\t\tQuestion[][] question2DArray = new Question[displayingList.size()][];\r\n\t\tfor (int i = 0; i < displayingList.size(); i++) {\r\n\t\t\tquestion2DArray[i] = new Question[1];\r\n\t\t\tquestion2DArray[i][0] = displayingList.get(i);\r\n\t\t}\r\n\r\n\t\twhile (question2DArray.length != 1) {\r\n\t\t\tquestion2DArray = (Question[][]) merge2DArray(question2DArray);\r\n\t\t}\r\n\t\tdisplayingList.removeAll(displayingList);\r\n\t\tfor (int i = 0; i < question2DArray[0].length; i++) {\r\n\t\t\tdisplayingList.add(question2DArray[0][i]);\r\n\t\t}\r\n\t}", "public void jsort() {\n\tArrays.sort(data);\n }", "public void sort() {\n\t\tfor (int i = 1; i < this.dataModel.getLength(); i++) {\n\t\t\tfinal int x = this.dataModel.get(i);\n\n\t\t\t// Find location to insert using binary search\n\t\t\tfinal int j = Math.abs(this.dataModel.binarySearch(0, i, x) + 1);\n\n\t\t\t// Shifting array to one location right\n\t\t\tthis.dataModel.arrayCopy(j, j + 1, i - j);\n\n\t\t\t// Placing element at its correct location\n\t\t\tthis.dataModel.set(j, x);\n\t\t\tthis.repaint(this.count++);\n\t\t}\n\t}", "private void doSort (Column A, int [] i, int p, int r, int begin) {//double[] A, int p, int r, MutableTable t) {\n\t\tif (p < r) {\n\t\t\tint q = partition(A, i, p, r, begin);\n\t\t\tdoSort(A, i, p, q, begin);\n\t\t\tdoSort(A, i, q + 1, r, begin);\n\t\t}\n\t}", "public void changeSortOrder();", "public void SortByPrice() {\n for (int i = 1; i < LastIndex; i++) {\n int x = i;\n while (x >= 1) {\n if (ForChild[x - 1].getPrice() > ForChild[x].getPrice()) {\n Confectionery sweets = ForChild[x - 1];\n ForChild[x - 1] = ForChild[x];\n ForChild[x] = sweets;\n\n }\n x -= 1;\n }\n }\n }", "private void updateOrder() {\n Arrays.sort(positions);\n }", "public void sort() // sort according to primary key defined in RecordTemplate\n\t{\n\t\trecordList.sort((Record r1, Record r2)->r1.getValue(PRIMARY_KEY_FIELD_INDEX).compareTo(r2.getValue(PRIMARY_KEY_FIELD_INDEX))); \n //recordList.forEach((r)->System.out.println(r)); \n\t}", "public void insertionNumberSort()\n {\n\t for(int j=1; j<AL.size(); j++)\n\t {\n\t\t Generics temp = AL.get(j);\n\t\t int possibleIndex = j;\n\t\t \n\t\t while(possibleIndex>0 && Integer.parseInt(AL.get(possibleIndex - 1).toString()) < Integer.parseInt(temp.toString()))\n\t\t {\n\t\t\t AL.set(possibleIndex, AL.get(possibleIndex -1));\n\t\t\t possibleIndex--;\n\t\t\t \n\t\t }\n\t\t \n\t\t AL.set(possibleIndex, temp);\n\t }\n \n }", "ColumnSortList.ColumnSortInfo getSortInfo();", "public void step2(){\n\n Collections.sort(names,(String a,String b) -> {\n return a.compareTo(b);\n });\n }", "@Override\r\n\t\t\tpublic int compare(Presentor o1, Presentor o2) {\n\t\t\t\tint sort = 0;\r\n\t\t\t\tint a = o1.getZs() - o2.getZs();\r\n\t\t\t\tif (a != 0) {\r\n\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ta = o1.getJd() - o2.getJd();\r\n\t\t\t\t\tif (a != 0) {\r\n\t\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn sort;\r\n\t\t\t}", "int order();", "Vector<NewsArticle> insertionSort(Vector<NewsArticle> articles) {\n int i, j;\n int size = articles.size();\n NewsArticle sortedList[] = new NewsArticle[articles.size()];\n\n articles.copyInto(sortedList);\n NewsArticle temp;\n\n for (i = 1; i < size; i++) {\n temp = sortedList[i];\n\n j = i;\n while ((j > 0) && (sortedList[j - 1].getScore(filterType) < temp.getScore(filterType))) {\n sortedList[j] = sortedList[j - 1];\n j = j - 1;\n }\n sortedList[j] = temp;\n }\n Vector<NewsArticle> outList = new Vector<NewsArticle>();\n\n for (i = 0; i < size; i++) {\n temp = sortedList[i];\n outList.addElement(temp);\n }\n return outList;\n }", "@Override\n protected void runAlgorithm() {\n for (int i = 0; i < getArray().length; i++) {\n for (int j = i + 1; j < getArray().length; j++) {\n if (applySortingOperator(getValue(j), getValue(i))) {\n swap(i, j);\n }\n }\n }\n }", "public List<SortedArrayInfo> sortHistory();", "protected abstract Comparator<UsageInfo> makeUsageInfoComparator();", "@Override\n // Compare values according to columns\n public int compare(final int[] entry1, final int[] entry2) {\n if (entry1[0] > entry2[0])\n return 1;\n else\n return -1;\n }", "private void sortByAmount(){\n int stopPos = 0;\n while(colours.size()-stopPos > 0){\n int inARow = 1;\n for(int i = colours.size() - 1; i > stopPos; i--){\n if(colours.get(i-1).getAmount() < colours.get(i).getAmount()){\n rgb temp = new rgb(colours.get(i-1));\n colours.set(i-1, colours.get(i));\n colours.set(i, temp);\n }else{\n inARow++;\n }\n }\n stopPos++;\n if(inARow == colours.size()){\n break;\n }\n }\n }", "private static void sortingArrayList() {\n Collections.sort(allMapData, new Comparator<MapDataModel>() {\n public int compare(MapDataModel d1, MapDataModel d2) {\n return valueOf(d1.getDateTime().compareTo(d2.getDateTime()));\n }\n });\n }", "public void sort() {\n compares = 0;\n shuttlesort((int[]) indexes.clone(), indexes, 0, indexes.length);\n }", "private static void sortFriends() {\n friends.postValue(friends.getValue());\n }", "private final int compare( AnyType item, RedBlackNode<AnyType> t )\n {\n if( t == header )\n return 1;\n else\n return item.compareTo( t.element ); \n }", "public void sort() {\n /*int jokers = this.getJokers();\n\t\tif (jokers > 0 && this.size() > 2) {\n\t\t\tArrayList<Tile> list = new ArrayList<>();\n for (int i=0; i<this.size(); i++) {\n\t\t\t\tif (this.get(i).getColour() == 'J') {\n\t\t\t\t\tTile joker = this.remove(this.get(i));\n\t\t\t\t\tlist.add(joker);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Tile j : list) {\n\t\t\t\tthis.addInSort(j);\n\t\t\t}\n }*/\n \n\n //may need something in here to accomodate a joker changing its form\n\n if (tiles.size() > 1) { //will only sort a meld with any tiles in it\n //Override default comparator to compare by tile value (ints)\n Collections.sort(tiles, new Comparator<Tile>() {\n @Override \n public int compare(Tile t1, Tile t2) { \n if (t1.getColour() > t2.getColour()) {\n return 1;\n } else if (t1.getColour() < t2.getColour()) {\n return -1;\n }\n if (t1.getValue() > t2.getValue()) {\n return 1;\n } else if (t1.getValue() < t2.getValue()) {\n return -1;\n } else {\n return 0;\n }\n }\n });\n }\n\n }", "@Override\r\n public int compare(HDTV o1, HDTV o2) {\n return o1.getSize() - o2.getSize(); // prints object in ascending order\r\n\r\n }", "public void sort() {\n documents.sort();\n }", "@VTID(28)\n boolean getSortUsingCustomLists();", "public List<ValueType> sort() {\r\n // TODO\r\n return null;\r\n }", "boolean isSortResult();", "private List<Article> orderArticles(List<Article> things){\n\t\t Comparator<Article> comparatorPrizes = new Comparator<Article>() {\n\t public int compare(Article x, Article y) {\n\t return (int) (x.getPrize() - y.getPrize());\n\t }\n\t };\n\t Collections.sort(things,comparatorPrizes); \n\t Collections.reverse(things);\n\t return things;\n\t }", "public void sort() {\n ListNode start = head;\n ListNode position1;\n ListNode position2;\n\n // Going through each element of the array from the second element to the end\n while (start.next != null) {\n start = start.next;\n position1 = start;\n position2 = position1.previous;\n // Checks if previous is null and keeps swapping elements backwards till there\n // is an element that is bigger than the original element\n while (position2 != null && (position1.data < position2.data)) {\n swap(position1, position2);\n numberComparisons++;\n position1 = position2;\n position2 = position1.previous;\n }\n }\n }", "public void selectionSort()\r\n {\r\n for(int x = 0; x < numItems; x++)\r\n {\r\n int smallestLoc = x;\r\n for(int y = x+1; y<numItems; y++)\r\n {\r\n if(mArray[y]< mArray[smallestLoc])\r\n {\r\n smallestLoc = y;\r\n }\r\n }\r\n int temp = mArray[x];\r\n mArray[x] = mArray[smallestLoc];\r\n mArray[smallestLoc] = temp;\r\n }\r\n }", "private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }", "private void sortByDateOpen() {\n //selection sort\n for (int i = 0; i < size - 1; i++) {\n int earliestDateIndex = i;\n for (int j = i + 1; j < size; j++)\n if (accounts[j].getDateOpen().compareTo(accounts[earliestDateIndex].getDateOpen()) < 0) {\n earliestDateIndex = j;\n }\n Account acc = accounts[earliestDateIndex];\n accounts[earliestDateIndex] = accounts[i];\n accounts[i] = acc;\n }\n }", "public void step3(){\n\n Collections.sort(names,(String a, String b) -> a.compareTo(b));\n }", "public void sortGivenArray_popularity() { \n int i, j, k; \n for(i = movieList.size()/2; i > 0; i /= 2) {\n for(j = i; j < movieList.size(); j++) {\n Movie key = movieList.get(j);\n for(k = j; k >= i; k -= i) {\n if(key.rents > movieList.get(k-i).rents) {\n movieList.set(k, movieList.get(k-i));\n } else {\n break; \n }\n }\n movieList.set(k, key);\n }\n } \n }", "@Override\n public void sort(IAlg algorithm, boolean decrescent){}", "public abstract void compare();", "public void sort() {\n\tqsort(a,0,a.length-1);\n }", "@Override\n\t\t\tpublic int compareTo(Object o) {\n\t\t\t\treturn 0;\n\t\t\t}", "@Override\n public int compare(Entry<String, Integer> arg0, Entry<String, Integer> arg1) {\n if(arg0.getValue() == arg1.getValue()){\n return arg0.getKey().compareTo(arg1.getKey());\n } else {\n return arg1.getValue() - arg0.getValue();\n }\n }", "public abstract void sort(int[] sortMe);", "private static ArrayList<Integer> sort(ArrayList<Integer> v) {\n\t\tint key, i, j; \n\t\tfor (j = 1; j != v.size(); j++) {\n\t\t\tkey = v.get(j); \n\t\t\ti = j - 1; \n\t\t\twhile ((i >= 0) && (v.get(i) > key)) {\n\t\t\t\tv.set(i+1, v.get(i));\n\t\t\t\ti -= 1; \n\t\t\t}\n\t\t\tv.set(i+1, key); \n\t\t}\n\t\treturn v; \n\t}", "JDKSort() {\n }", "public void sort()\n\t{\n\t\tfor(int i=0;i<bowlers.size()-1;i++)\n\t\t{\n\t\t\tfor(int j=i+1;j<bowlers.size();j++)\n\t\t\t{\n\t\t\t\tif(bowlers.get(i).getBall()<bowlers.get(j).getBall())\n\t\t\t\t{\n\t\t\t\t\tBowler bowler=bowlers.get(i);\n\t\t\t\t\tbowlers.set(i,bowlers.get(j));\n\t\t\t\t\tbowlers.set(j,bowler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<bowlers.size();i++)\n\t\t{\n\t\tSystem.out.println(bowlers.get(i).getBall());\n\t\t}\n\t}", "public static void customSort(List<Integer> array) {\n Map<Integer, Integer> map = new HashMap<>();\n List<Integer> outputArray = new ArrayList<>();\n int ii = 0;\n for (int current : array) {\n if (ii==0){\n ii++;\n continue;\n }\n int count = map.getOrDefault(current, 0);\n map.put(current, count + 1);\n outputArray.add(current);\n ii++;\n }\n\n Set<Map.Entry<Integer, Integer>> entries = map.entrySet();\n for (Map.Entry<Integer, Integer> entry : entries) {\n entry.getKey();\n }\n\n // Compare the map by value\n SortComparator comp = new SortComparator(map);\n\n // Sort the map using Collections CLass\n Collections.sort(outputArray,comp);\n\n // Final Output\n for (Integer i : outputArray) {\n System.out.print(i + \" \");\n }\n System.out.println();\n\n }", "@Override\r\n\t public int compare(Student_UsingComparator obj1, Student_UsingComparator obj2){\n\t\t return obj2.rollno-obj1.rollno;\r\n\t }", "@Override\n public void sortAndCount() {\n Insertion.reset();\n Insertion.sort(arrayForTests);\n comp = Sort.getComparisonOperations(); // Sort.getComp();\n copy = Sort.getCopyOperations(); // Sort.getCopy();\n }", "@Override\n\t\tpublic int compare(Object arg0, Object arg1) {\n\t\t\treturn 0;\n\t\t}", "@Override\n\tpublic String sort(String content) {\n\t\treturn null;\n\t}", "public void sortBasedYearService();", "private int compare(T item, RedBlackNode t) {\n if (t == header) {\n return 1;\n } else\n return item.compareTo(t.element);\n }", "boolean areSorted();", "public void sortEmployeeById() {\r\n\t\tfor (int indexI = 0; indexI < emp.size() - 1; indexI++) {\r\n\t\t\t\r\n\t\t\tfor (int indexJ = 0; indexJ < emp.size() - indexI - 1; indexJ++) {\r\n\t\t\t\t\r\n\t\t\t\tif (emp.get(indexJ).empId > emp.get(indexJ + 1).empId) {\r\n\t\t\t\t\tEmployee temp1 = emp.get(indexJ);\r\n\t\t\t\t\tEmployee temp2 = emp.get(indexJ + 1);\r\n\t\t\t\t\temp.set(indexJ, temp2);\r\n\t\t\t\t\temp.set(indexJ + 1, temp1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static void sortHelperMSD(String[] asciis, int start, int end, int index) {\n // Optional MSD helper method for optional MSD radix sort\n return;\n }", "@Override\n public int compare(int[] o1, int[] o2) {\n return o1[1] - o2[1];\n }", "@Override\n public void sort() {\n int cont = 0;\n int mov = 0;\n for (int i = 0; i < (100 - 1); i++) {\n int menor = i;\n for (int j = (i + 1); j < 100; j++){\n if (array[menor] > array[j]){\n cont= cont + 1;\n menor = j;\n mov = mov + 1;\n }\n }\n swap(menor, i);\n mov = mov + 3;\n }\n System.out.println(cont + \" comparações\");\n System.out.println(mov + \" Movimenteções\");\n }" ]
[ "0.71459544", "0.68802094", "0.6787368", "0.672482", "0.67191595", "0.67137533", "0.67137533", "0.6661488", "0.6638789", "0.65783834", "0.65510285", "0.6504868", "0.64823455", "0.6455627", "0.64490277", "0.64403015", "0.64080495", "0.63918394", "0.63585174", "0.6351714", "0.6290304", "0.62688005", "0.6250408", "0.62390393", "0.620908", "0.6198986", "0.61759853", "0.615721", "0.6144881", "0.61427635", "0.6134126", "0.6131945", "0.61290586", "0.61127967", "0.6110191", "0.6105096", "0.6103853", "0.6099207", "0.6097984", "0.60791296", "0.6078216", "0.6077284", "0.6062883", "0.60612863", "0.60578394", "0.6056211", "0.6052871", "0.60462755", "0.60447955", "0.6037963", "0.60315776", "0.6030639", "0.6025742", "0.601895", "0.6011551", "0.60047656", "0.6002177", "0.5995401", "0.59922683", "0.59885", "0.59831864", "0.59822786", "0.59809685", "0.59805334", "0.59778196", "0.5975823", "0.59741366", "0.5966039", "0.59625417", "0.5946279", "0.5938324", "0.59379554", "0.5934218", "0.5928734", "0.5926549", "0.59211385", "0.5919444", "0.5917779", "0.5915113", "0.59132594", "0.58927447", "0.5889105", "0.58852684", "0.5877217", "0.58675426", "0.5866602", "0.5866383", "0.5864917", "0.586303", "0.586144", "0.5856961", "0.58434016", "0.5842885", "0.58414453", "0.5840374", "0.5839771", "0.5837387", "0.58322346", "0.5831699", "0.58289737", "0.582826" ]
0.0
-1
what to do if YES is tapped
public void onClick(DialogInterface dialog, int id) { finishAffinity(); System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clickYes ();", "@Override\r\n\tprotected boolean onTap(int index) {\r\n\t\treturn true;\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcheckAnswer(true);\n\t\t\t\t\n\t\t\t}", "@Override\n public boolean onSingleTapConfirmed(MotionEvent e) {\n return true;\n }", "@Override\n\tpublic boolean tap(float x, float y, int count, int button) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean onSingleTapConfirmed(MotionEvent e) {\n\t\treturn false;\r\n\t}", "public boolean isClicked() { return clicked; }", "@Override\n\tpublic boolean onSingleTapConfirmed(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapConfirmed(MotionEvent arg0) {\n\t\treturn false;\n\t}", "@Override\n public boolean onSingleTapConfirmed(MotionEvent e) {\n return false;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcheckAnswer(false);\n\t\t\t\t\n\t\t\t}", "public boolean TapCard(float x, float y) { return false; }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tif (mAnswerIsTrue) {\n\t\t\t\tmAnserTextView.setText(R.string.true_button);\n\t\t\t}else {\n\t\t\t\tmAnserTextView.setText(R.string.false_button);\n\t\t\t}\n\t\t\tsetAnswerShownResult(true);\n\t\t}", "public boolean canProceedWithTapAction() {\n return ClickDelayHelper.canProceedWithTapAction();\n }", "boolean hasClickView();", "public void act() \n {\n super.checkClick();\n active(isActive);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\toptb=btnoptb.getText().toString();\n\t\t\t\tCheckAns(optb,currentPosition);\n\t\t\t\t//Log.e(\"ans\", optb);\n\n\t\t\t}", "abstract public boolean onPositiveClicked(String userInput);", "@Override\n public boolean onSingleTapConfirmed(MotionEvent event) {\n return PickNavigateController.this.onSingleTapHandler(event);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\toptd=btnoptd.getText().toString();\n\t\t\t\tCheckAns(optd,currentPosition);\n\t\t\t\t//Log.e(\"ans\", optd);\n\t\t\t}", "@Override\n public boolean performClick() {\n return super.performClick();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\topta=btnopta.getText().toString();\n\t\t\t\tCheckAns(opta,currentPosition);\n\t\t\t\t \n\n\t\t\t}", "public boolean getClicked(){\n return this.isPressed;\n }", "public void onYesButtonClicked() {\n changeAfterClientPick();\n }", "public void ClickYes()\n\t{\n\t\tdriver.findElementByName(OR.getProperty(\"Yes\")).click();\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\toptc=btnoptc.getText().toString();\n\t\t\t\tCheckAns(optc,currentPosition);\n\t\t\t\t//Log.e(\"ans\", optc);\n\n\t\t\t}", "public boolean getIsClick() {return isClick;}", "public boolean onSingleTapConfirmed(MotionEvent e) {\n hideSystemUI();\n return super.onSingleTapConfirmed(e);\n }", "public void clickOnYesButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Yes\"));\r\n\t}", "public void onButtonAPressed();", "@Override\n public void onClick(View view) {\n switch (view.getId()){\n case R.id.temp_rbt:\n isTemp = true;\n break;\n case R.id.temp_rbf:\n isTemp = false;\n break;\n case R.id.idf_rbt:\n isIdf = true;\n break;\n case R.id.idf_rbf:\n isIdf = false;\n break;\n case R.id.sig_rbt:\n isSig = true;\n break;\n case R.id.sig_rbf:\n isSig = false;\n break;\n case R.id.healthcode_rbt:\n isHcode = true;\n break;\n case R.id.healthcode_rbf:\n isHcode = false;\n break;\n }\n }", "public void act() \n {\n checkClicked();\n }", "protected abstract boolean onOkClicked();", "@Override\r\n public boolean onTouch(View v, MotionEvent event)\r\n {\n switch(event.getActionIndex())\r\n {\r\n case MotionEvent.ACTION_DOWN:\r\n break;\r\n case MotionEvent.ACTION_UP:\r\n break;\r\n case MotionEvent.ACTION_MOVE:\r\n tapAnswer();\r\n return true;\r\n }\r\n \r\n return false;\r\n }", "@Override\n\t\t\t\tpublic void onShowPress(MotionEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "public void onClicked();", "@Override\n\t\tpublic void onShowPress(MotionEvent e) {\n\t\t\t\n\t\t}", "private void determineButtonPress(boolean answer){\n boolean expectedAnswer = currentQuestion.isAnswer();\n String result;\n if (answer == expectedAnswer){\n result=\"Correct\";\n score++;\n txtScore.setText(\"Score: \" + score);\n } else {\n result=\"False\";\n }\n //call this function to display the result to the player\n answerResultAlert(result);\n\n }", "@Override\r\n\tpublic void onShowPress(MotionEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onShowPress(MotionEvent e) {\n\t\t\r\n\t}", "@Override\n\tpublic void onShowPress(MotionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void onShowPress(MotionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void onShowPress(MotionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void onShowPress(MotionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void onShowPress(MotionEvent e) {\n\t\t\n\t}", "@Override\n public void onShowPress(MotionEvent e) {\n\n }", "public boolean isClicked() {\n\t\treturn clicked;\n\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tindoorFlag = !indoorFlag;\n\t\t\t//indoorFlag = true;\n\t\t}", "@Override\n\t\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\t\treturn false;\n\t\t}", "@Override\n\t\tpublic void onShowPress(MotionEvent e) {\n\n\t\t}", "@Override\n\tpublic void onShowPress(MotionEvent e) {\n\n\t}", "@Override\n\tpublic void onShowPress(MotionEvent e) {\n\n\t}", "@Override\n\tpublic void onShowPress(MotionEvent e) {\n\n\t}", "@Override\n\tpublic void onShowPress(MotionEvent e) {\n\n\t}", "@Override\n\tpublic void onShowPress(MotionEvent e) {\n\n\t}", "@Override\n\tpublic void onShowPress(MotionEvent e) {\n\n\t}", "@Override\n\tpublic void onShowPress(MotionEvent e) {\n\n\t}", "@Override\n\t\t\t\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "@Override\n public boolean onSingleTapUp(MotionEvent e) {\n return false;\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@Override\n public boolean onSingleTapUp(MotionEvent e) {\n if (view.isMouseTrackingActive()) return false;\n\n doUIToggle((int) e.getX(), (int) e.getY(), view.getVisibleWidth(), view.getVisibleHeight());\n return true;\n }", "@Override\n public boolean onClick(View view) {\n updateToggle(view, !mChecked);\n// updateText(view); // automatically\n return true;\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1) {\n\t\t\t\treturn true;\n\t\t\t}", "@Override\n public void onShowPress(MotionEvent e) {\n\n }", "@Override\r\n public boolean onSingleTapUp(MotionEvent e)\r\n {\n return false;\r\n }", "@Override\r\n public void onShowPress(MotionEvent e)\r\n {\n }", "@Override\r\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\tx = event.getX();\n\t\ty = event.getY();\n\t\t// see if hint button is clicked. Click is in the area\n\t\t// (GameArea.getWidth-hintButton.getwidth to GameArea.getWidth) Or\n\t\t// (0 to hintButton.getHeight())\n\n\t\tif ((x > (GameArea.getWidth() - hintButton.getWidth()))\n\t\t\t\t&& (x <= GameArea.getWidth())\n\t\t\t\t&& (y > 0 && y <= hintButton.getHeight())) {\n\t\t\t// Simulate press button situation\n\t\t\tswitch (event.getAction()) {\n\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t\t// Hint button clicked\n\t\t\t\tif (hintVisibilityFlag == true) { // hint was shown so hide it\n\t\t\t\t\thintText.setVisibility(View.GONE);\n\t\t\t\t} else { // hintHidden so show it\n\t\t\t\t\thintText.setVisibility(View.VISIBLE);\n\t\t\t\t}\n\t\t\t\thintVisibilityFlag = hintVisibilityFlag ? false:true;\n\t\t\t\tbreak;\n\t\t\tcase MotionEvent.ACTION_UP:\n\n\t\t\t\tbreak;\n\t\t\tcase MotionEvent.ACTION_CANCEL:\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\n\t\t} else { // send the event further to surfaceview\n\t\t\tsurfaceView.setSurfaceViewX(x);\n\t\t\tsurfaceView.setSurfaceViewY(y);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public void onClick(View view) {\n\n if (!prefs.getBoolean(Constants.KEY_IS_MINI_GUIDE_SHOWN, false)) {\n openMiniGuide1();\n } else {\n prefs.edit().putString(Constants.KEY_IS_FIRST_TIME, \"true\");\n startActivity(new Intent(SplashLandingActivity.this, SignUpActivity.class));\n finish();\n }\n\n }", "@Override\r\n\tpublic void onShowPress(MotionEvent arg0) {\n\t\t\r\n\t}", "@Override\n public boolean onMapPoiClick(MapPoi arg0) {\n return false;\n }", "public void setClicked(){\n\t\tclicked=true;\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(isBool == false){\n\t\t\t\t\tLog.e(\"The current checked state of the view\", \"\"+onOffButton.isChecked());\n\t\t\t\t\tLog.e(\"receite before clicked\", \"\" + isBool);\n\t\t\t\t\tonOffButton.setBackgroundDrawable(getResources().getDrawable(R.drawable.on)); \n\t\t\t\t\t\n\t\t\t\t\tisBool = true;//\n\t\t\t\t\tinvoicebool = true;\n\t\t\t\t\tIntent intent = new Intent(OrderPnrMain.this,\n\t\t\t\t\t\t\tFapiaoview.class);\n\t\t\t\t\tstartActivityForResult(intent, RequestCode.TO_SELECT_FAPIAO);\n\t\t\t\t\tLog.e(\"receite after clicked\", \"\" + isBool);\n\t\t\t\t\t}else{ \n\t\t\t\t\t\tLog.e(\"receite before clicked\", \"\" + isBool);\n\t\t\t\t\t\tonOffButton.setBackgroundDrawable(getResources().getDrawable(R.drawable.off)); \n\t\t\t\t\t\t\n\t\t\t\t\t\tisBool = false;\n\t\t\t\t\t\tinvoicebool = false;\n\t\t\t\t\t\treceite.setText(\"不需发票\");\n\t\t\t\t\t\tLog.e(\"receite after clicked\", \"\" + isBool);\n\t\t\t\t\t\t} \n\t\t\t\t}", "public boolean isOkClicked(){\n\t\treturn okClicked;\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n }", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "public void answer1Clicked(View view) {\n\n answer1Clicked = true;\n\n answer2Clicked = false;\n answer3Clicked = false;\n answer4Clicked = false;\n\n changeButtonColor();\n }", "@Override\n\t\t\tpublic void onShowPress(MotionEvent arg0)\n\t\t\t{\n\t\t\t\t\n\t\t\t}", "void onSingleClick( View view);", "@Override\n\tpublic void onShowPress(MotionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onShowPress(MotionEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onShowPress(MotionEvent arg0) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}", "@Override\r\n public boolean onMapPoiClick(MapPoi arg0) {\n return false;\r\n }" ]
[ "0.72822994", "0.7144665", "0.68865156", "0.68601257", "0.67965937", "0.66901183", "0.66722274", "0.66556895", "0.6629212", "0.6624538", "0.6551218", "0.65300065", "0.65127146", "0.6445134", "0.6441141", "0.6439576", "0.64240897", "0.6411579", "0.6400975", "0.6398683", "0.63804466", "0.63784", "0.6354056", "0.6348175", "0.6322225", "0.62874734", "0.6285131", "0.6280099", "0.62354374", "0.6230508", "0.62279403", "0.6217052", "0.61974096", "0.6158811", "0.6134662", "0.6130786", "0.61305374", "0.6110292", "0.6105953", "0.6105953", "0.6097258", "0.6097258", "0.6097258", "0.6097258", "0.6097258", "0.60935867", "0.6090027", "0.6087031", "0.6062622", "0.6061423", "0.60588765", "0.60588765", "0.60588765", "0.60588765", "0.60588765", "0.60588765", "0.60588765", "0.6051188", "0.60510904", "0.6047984", "0.60465497", "0.60373783", "0.6030567", "0.6030567", "0.6030567", "0.6027121", "0.60199624", "0.60160035", "0.60158527", "0.6000285", "0.6000285", "0.5991645", "0.59885275", "0.59862715", "0.5981661", "0.5980996", "0.59805983", "0.5976723", "0.5974304", "0.59710294", "0.59710294", "0.59710294", "0.59710294", "0.59710294", "0.59710294", "0.59710294", "0.59710294", "0.59710294", "0.59710294", "0.59710294", "0.5967581", "0.59668833", "0.59616864", "0.5957136", "0.5957136", "0.5957136", "0.5954338", "0.5954338", "0.5954338", "0.5954338", "0.5950999" ]
0.0
-1
code to do on CANCEL tapped
public void onClick(DialogInterface dialog, int id) { dialog.cancel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onCancelClicked();", "public void onCancelClick()\r\n {\r\n\r\n }", "public void clickedCancel(View view) {\n \treturnResult(Activity.RESULT_CANCELED);\n }", "void onCancelButtonPressed();", "@Override\n public void OnCancelButtonPressed() {\n }", "@Override\n public void OnCancelButtonPressed() {\n }", "public void onCancelClicked() {\n close();\n }", "@Override\n public void onClick(View v) {\n buttonCancelClicked();\n }", "public void onCancelPressed(View view) {\n finish();\n }", "void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }", "public void cancelButtonClicked(View view){\n setResult(RESULT_CANCELED, null);\n finish();\n }", "public void cancelButtonPressed(View view) {\r\n\t\tthis.finish();\r\n\t}", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Pressed Cancel\",\n Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t\ttoastMessage(\"Confirmation cancelled\");\n\t\t\t}", "public void onBtnCancelClick(final View view) {\n\t\tsetResult(RESULT_CANCELED, new Intent());\n\t\tfinish();\n\t}", "public void onCancelButtonClick() {\n close();\n }", "public void onClick(DialogInterface dialog, int whichButton) {\n String nada = null;\n callbackContext.error(\"cancelled\");\n }", "@Override\n\tpublic void onCancel(DialogInterface arg0) {\n\t\t\n\t}", "private void cancel(){\n if(isFormEmpty()){\n finish();\n }else{\n // Confirmation dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(getString(R.string.cancel_booking_creation_confirmation));\n // When users confirms dialog, end activity\n builder.setPositiveButton(android.R.string.ok, (dialog, which) -> {\n finish();\n });\n\n // Do nothing if cancel\n builder.setNegativeButton(android.R.string.cancel, null);\n\n AlertDialog dialog = builder.create();\n dialog.show();\n\n // Change button colors\n Button positiveButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = dialog.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }\n }", "void btnCancel();", "@Override\n public void onCancel(DialogInterface arg0) {\n\n }", "public void onCancelClicked(View view) {\n //ends activity\n finish();\n }", "protected abstract void onCancel();", "public void onCancel();", "public void onCancelClicked(View v) {\n goBackToStart();\n }", "public void onCancelClicked(View v) {\n goBackToStart();\n }", "public void onCancelPressed(View v) {\n finish();\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }", "private void cancel(){\n // Toast toast = Toast.makeText(getApplicationContext(),\"Pressed cancel\",Toast.LENGTH_SHORT);\n // toast.show();\n Intent intent = new Intent();\n setResult(RESULT_CANCELED, intent);\n finish();\n\n }", "@FXML\r\n void actionCancelButton(ActionEvent event) throws IOException {\r\n\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Alert\");\r\n alert.setContentText(\"Do you want to cancel your changes and return to the main screen?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n returnToMainScreen(event);\r\n }\r\n }", "public void onClickCancel(View view) {\n this.finish();\n }", "@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tmListener.onCancelPressed();\r\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}", "public static int cancel() {\n\t\tUIManager.put(\"OptionPane.warningIcon\", icon);\n\t\tJOptionPane.showMessageDialog(null, \"Transaction Canceled.\", \"Cancel\", JOptionPane.WARNING_MESSAGE, null);\n\t\treturn 1;\n\t}", "@Override\n\t\tpublic void onCancel() {\n \n \t}", "@Override\r\n\t \t\t\tpublic void onClick(View v) {\n\t \t\t\t\tdialogDetailConfirm.cancel();\r\n\t \t\t\t}", "private void cancelButtonActionPerformed(ActionEvent e) {\n }", "void onCancel();", "@Override\r\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\r\n\t\t\t\t\t}", "@Override\n public void onCancel(DialogInterface dialog) {\n }", "public void onCancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "public void onCancel(View view) {\n finish();\n }", "@Override\r\n\t\t\t\t\tpublic void onCancel() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\ttoastMessage(\"Setup cancelled\");\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\n\t\t\tpublic void onCancel() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\t\t public void onCancel() {\n\t\t\t\t\t errorMessage = \"You cancelled Operation\";\n\t\t\t\t\t getResponse();\n\t\t\t\t }", "private void cancel() {\n setResult(RESULT_CANCELED, null);\n dbHelper.rollback();\n finish();\n }", "public void cancel() { Common.exitWindow(cancelBtn); }", "public void onCancel() {\n }", "public void onCancel() {\n\t\t\t\t\t}", "protected void onCancelRequestReceipts() {\n \tmTxtStatus.setText(\"requestReceipts onCancel\");\n }", "@Override\r\n\t\tpublic void onCancel() {\n\t\t}", "@Override\n public void onCancel() {\n }", "public void onCancel() {\n\n }", "@Override\n public void onClick(View v) {\n if (null != mCallBack) {\n mCallBack.onCancelClicked();\n }\n }", "private void cancel(ActionEvent e){\r\n // Clear textfields\r\n clearFields();\r\n // If coming from appt management screen, go back there\r\n if (fromAppt){\r\n goToManageApptScreen();\r\n }\r\n // Otherwise, set the current client to null and go to the landing page \r\n else {\r\n currClient = null;\r\n LandingPage.returnToLandingPage();\r\n }\r\n }", "private void onCancel() {\n data.put(\"cerrado\",true);\n dispose();\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tBaseDroidApp.getInstanse().dismissErrorDialog();\n\t\t\t\t\t\n\t\t\t\t\tswitch (v.getId()) {\n\t\t\t\t\tcase R.id.exit_btn:// 取消\n\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase R.id.retry_btn:// 确定\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\n public void onClick(View v) {\n aManager.cancel(pIntent);\n Toast.makeText(getApplicationContext(), \"Cancel\", Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tClickCancel();\n\t\t\t}", "@Override\n protected void onCancel() {\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(MainActivity.this,\"Su registro se ha cancelado\", Toast.LENGTH_SHORT).show();\n }", "@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }", "public void m33491b() {\n Action<String> aVar = f26278b;\n if (aVar != null) {\n aVar.mo21403a(\"User canceled.\");\n }\n f26277a = null;\n f26278b = null;\n finish();\n }", "public void marksCancel(View view) {\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\tcancel(true);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void onCancel(DialogInterface arg0) {\n\t\t\t\tdialog.findViewById(R.id.ast_back_icon).callOnClick();\n\t\t\t}", "@Override\n public void onCancel(DialogInterface dialog) {\n\n }", "public void handleCancelButton(ActionEvent e) {\n\t\tclose();\n\t}", "@Override\n\tprotected void cancel() {\n\t\tsuper.cancel();\n\t\tif(ELSComfirmDialog.showConfirmDlg(GetPanelUtil.getFunctionPanel(this),\n\t\t\t\t\"取消添加\", \"确认退出新增界面?\")){\n\t\t\tback();\n\t\t}\n\t}", "public void cancelTrip() {\n\t\n\t\t// TODO - fill in here\n\t\tIntent intent = new Intent();\n\t\tsetResult(RESULT_CANCELED,intent);\n\t\tfinish();\n\t}", "public void clickOnCancelButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Cancel\"));\r\n\t}", "@Override\n public void onCancel() {\n }", "public void cancel() throws Exception {\n\t\tgetControl(\"cancelButton\").click();\n\t}", "@Override\n public void onCancel() {\n\n }", "@Override\n public void onCancel() {\n\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "void onCancel(int key);", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n Toast.makeText(getApplicationContext(), \"payment not confirmed\",\n Toast.LENGTH_SHORT).show();\n }", "@Override\r\n\tpublic void onCancel(DialogInterface dialog) {\n\r\n\t}", "CancelAction getCancelAction();", "@Override\n public void onClick(View v)\n {\n begindialog.cancel();\n }", "public void onClick(View v) {\n setResult(Activity.RESULT_CANCELED);\n // write a toast message\n Toast.makeText(v.getContext(), \"Canceled!\", Toast.LENGTH_SHORT).show();\n // finish activity\n finish();\n }", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tif(mAlertDialog!=null){\n\t\t\t\tmAlertDialog.cancel();\n\t\t\t}\n\t\t}", "HasClickHandlers getCancelButton();", "private void actionCancel() {\n\t\tselectedDownload.cancel();\n\t\tupdateButtons();\n\t}", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n public void onCancel() {\n\n }", "@Override\n public void onBackPressed() {\n Toast.makeText(getApplicationContext(), \"Please complete or cancel ride \", Toast.LENGTH_SHORT).show();\n\n }", "public void cancel (View view) {\n this.onBackPressed();\n }", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\n\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\n\t\t\t\t\tfinish();\n\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\n\t\t\t\tpublic boolean onCancel() {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "@Override\r\n\tpublic void dialogControyCancel() {\n\r\n\t}", "@Override\n protected void onCancel(@CancelReason int cancelReason, @Nullable Throwable throwable) {\n }", "@Override\n protected void onCancel(@CancelReason int cancelReason, @Nullable Throwable throwable) {\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t\ttoastMessage(\"Bill Out Cancelled\");\n\t\t\t}", "@Override\n public void onCancel() {\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n cancelCurrentTask();\n }", "private void onCancel()\n\t{\n\t\tdispose();\n\t}" ]
[ "0.77066135", "0.76750195", "0.74076873", "0.73936045", "0.7323691", "0.7314351", "0.721525", "0.7194203", "0.7131224", "0.71204895", "0.71039736", "0.7061547", "0.7039041", "0.7038781", "0.7027183", "0.70265543", "0.70178145", "0.7017073", "0.7012823", "0.70059496", "0.6967882", "0.6948485", "0.6943757", "0.6942436", "0.6932846", "0.6932846", "0.69269353", "0.69264144", "0.69140214", "0.6910267", "0.69026023", "0.6896498", "0.68810445", "0.6874026", "0.6873561", "0.68676144", "0.68648833", "0.6855904", "0.68549365", "0.6854373", "0.6853525", "0.68476385", "0.6840121", "0.6838868", "0.68376845", "0.68240154", "0.68140775", "0.6812404", "0.6804906", "0.68012446", "0.67755806", "0.6774542", "0.6770949", "0.6760707", "0.6757004", "0.6747058", "0.6745562", "0.6739094", "0.67208683", "0.6719763", "0.66966945", "0.66957986", "0.6691468", "0.6690779", "0.6686549", "0.668401", "0.66785794", "0.6677975", "0.6673441", "0.6667166", "0.665964", "0.6654583", "0.66508913", "0.6650673", "0.6649922", "0.6649566", "0.6649566", "0.6648744", "0.66472286", "0.66466296", "0.6644484", "0.664325", "0.66409445", "0.66369516", "0.66365796", "0.6634046", "0.6629404", "0.6622522", "0.66140324", "0.66109836", "0.6610875", "0.6610515", "0.65959024", "0.65936166", "0.6592075", "0.6591065", "0.6591065", "0.65900034", "0.6588456", "0.6587898", "0.65875363" ]
0.0
-1
code to do on NO tapped
public void onClick(DialogInterface dialog, int id) { dialog.cancel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onSingleTapConfirmed(MotionEvent e) {\n return false;\n }", "@Override\n\tpublic boolean onSingleTapConfirmed(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean onSingleTapConfirmed(MotionEvent e) {\n\t\treturn false;\r\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tahoraNoOnClick();\n\t\t\t}", "@Override\n\tpublic boolean onSingleTapConfirmed(MotionEvent arg0) {\n\t\treturn false;\n\t}", "public void clickOnNOButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"No\"));\r\n\t}", "public void onNo();", "@Override\n protected void negativeClick() {\n\n }", "@Override\n\tpublic void onNoButtonDialogToConfirmDuiClicked() {\n\n\t}", "@SuppressLint(\"ClickableViewAccessibility\")\n\t\t\t@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\r\n public boolean onSingleTapUp(MotionEvent e)\r\n {\n return false;\r\n }", "@Override\n\tpublic boolean tap(float x, float y, int count, int button) {\n\t\treturn false;\n\t}", "@Override\n public boolean onSingleTapUp(MotionEvent e) {\n return false;\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\treturn;\n\t\t\t}", "@Override\n public boolean onTouch(View arg0, MotionEvent event) {\n if (gestureDetector.onTouchEvent(event)) {\n event.setAction(MotionEvent.ACTION_CANCEL);\n }\n\n return true;\n }", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\treturn false;\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcheckAnswer(false);\n\t\t\t\t\n\t\t\t}", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return false;\n }", "@Override\n\t\t\t\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n return false;\n }", "public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}", "@Override\r\n\t\t\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}", "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\treturn false;\n\t}", "@Override\r\n\t\t\tpublic boolean onDoubleTap(MotionEvent e) {\n\t\t\t\treturn false;\r\n\t\t\t}", "public boolean onSingleTapConfirmed(MotionEvent e) {\n hideSystemUI();\n return super.onSingleTapConfirmed(e);\n }", "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n\t\tpublic boolean onSingleTapUp(MotionEvent e) {\n\t\t\treturn false;\n\t\t}", "@Override\r\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onSingleTapUp(MotionEvent arg0) {\n\t\treturn false;\n\t}", "void onScreenTapped(int x, int y) {\n\t\tboolean missed = true;\t\n\t\tif (missed) {\n\t\t\t// managed to miss everything, clear bubbles\n\t\t\t//mBubbleMap.clear();\n\t\t\tinvalidate();\n\t\t}\n\t}", "@Override\r\n\tpublic boolean onSingleTapUp(MotionEvent arg0) {\n\t\treturn false;\r\n\t}", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n return false;\n }", "@Override\n public boolean onTouchEvent(MotionEvent event) {\n return false;\n }", "@Override\r\n\tprotected boolean onTap(int index) {\r\n\t\treturn true;\r\n\t}", "@Override\n\t\tpublic boolean onDoubleTap(MotionEvent e) {\n\t\t\treturn false;\n\t\t}", "@Override\n\t\t\t\tpublic void onClick(View v) \n\t\t\t\t{\n\t\t\t\t\tv.setVisibility(View.GONE);\n\t\t\t\t\tdiscovry_do();\n\t\t\t\t}", "@Override\n public void onNothingSelected(AdapterView<?> parent) {\n //No-op\n }", "@Override\n\tpublic boolean onDoubleTapEvent(MotionEvent e) {\n\t\treturn false;\n\t}", "public void onNothingSelected(AdapterView<?> parent) {\r\n\r\n // do nothing\r\n\r\n }", "@Override\r\n\tpublic boolean onDoubleTapEvent(MotionEvent e) {\n\t\treturn false;\r\n\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n // Does nothing\n }", "@Override\n\tpublic boolean onDoubleTapEvent(MotionEvent arg0) {\n\t\treturn false;\n\t}", "@Override\n public void onNothingSelected (AdapterView<?> parent)\n {\n // don't care, not used.\n }", "@Override\n public boolean onDown(MotionEvent arg0) {\n return false;\n }", "protected void onDiscard() {\r\n this.setActive(false);\r\n }", "@Override\n\tpublic boolean onDown(MotionEvent arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent arg0) {\n\t\treturn false;\n\t}", "@Override\n\t\tpublic void onEmptyTap(GeoPoint pt) {\n\t\t\tif (mMapView.indexOfChild(viewTip) >= 0) {\n\t\t\t\tmMapView.removeView(viewTip);\n\t\t\t}\n\t\t}", "@Override\r\n public boolean onDown(MotionEvent e) {\n return false;\r\n }", "@Override\n public boolean onMapPoiClick(MapPoi arg0) {\n return false;\n }", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n \t\t\t\n \t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}", "@Override\r\n public boolean onMapPoiClick(MapPoi arg0) {\n return false;\r\n }", "@Override\n\t\t\t\tpublic boolean onDown(MotionEvent e) {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\thandler.sendEmptyMessage(0);\r\n\t\t\t\t\r\n\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\r\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\r\n\t}", "@Override\n public boolean onDown(MotionEvent e) {\n return false;\n }", "@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> parentView){\n\t\t\t\t// do nothing\n\t\t\t}" ]
[ "0.69780266", "0.69688666", "0.6952428", "0.6861114", "0.68396926", "0.678915", "0.6663928", "0.6642443", "0.6602976", "0.655703", "0.65021557", "0.6502099", "0.6500717", "0.647756", "0.64715165", "0.64401174", "0.64401174", "0.64401174", "0.64401174", "0.64401174", "0.64401174", "0.64401174", "0.64401174", "0.64401174", "0.64401174", "0.64401174", "0.643276", "0.643276", "0.6431342", "0.64284784", "0.64232486", "0.6421286", "0.6417779", "0.64121056", "0.639699", "0.639699", "0.639699", "0.6396986", "0.6386285", "0.63661504", "0.6357605", "0.6352221", "0.6340764", "0.6331778", "0.6331778", "0.6331778", "0.63274443", "0.6323819", "0.6318047", "0.6318047", "0.6314528", "0.6301718", "0.62741387", "0.6232716", "0.62091637", "0.6198394", "0.6184438", "0.6181965", "0.61773217", "0.61769444", "0.6166483", "0.6156097", "0.61541706", "0.6146365", "0.6146365", "0.6146365", "0.61438626", "0.61411285", "0.61404043", "0.6130461", "0.61245084", "0.6122208", "0.6120465", "0.6120465", "0.6120465", "0.6120465", "0.6120465", "0.6120465", "0.6120465", "0.6120465", "0.6120465", "0.6120465", "0.6119047", "0.61160874", "0.6105158", "0.6102296", "0.6102296", "0.6102296", "0.6102296", "0.6102296", "0.6102296", "0.6102296", "0.6102296", "0.6102296", "0.6102296", "0.6102296", "0.6102296", "0.6099453", "0.6099453", "0.6091218", "0.6088247" ]
0.0
-1
I want the menu etc to use both the title and the cost amount
public Snacks(String snackName, BigDecimal snackCost) { this.snackName = snackName; this.snackCost = snackCost; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setTitle(){\n float sum = getSubSum();\n if ((sum == 0) && (subList.size() == 0)){\n //if (sum == 0) {\n String newSummary = \"No Subscriptions\";\n summaryText.setText(newSummary);\n } else {\n String newSummary = \"Monthly Cost: $\" + String.valueOf(sum);\n summaryText.setText(newSummary);\n }\n }", "public void displayMenu() {\r\n\t\tSystem.out.println(\"Enter a number between 0 and 8 as explained below: \\n\");\r\n\t\tSystem.out.println(\"[\" + ADD_CUSTOMER + \"] Add a customer.\");\r\n\t\tSystem.out.println(\"[\" + ADD_MODEL + \"] Add a model.\");\r\n\t\tSystem.out.println(\"[\" + ADD_TO_INVENTORY + \"] Add a washer to inventory.\");\r\n\t\tSystem.out.println(\"[\" + PURCHASE + \"] Purchase a washer.\");\r\n\t\tSystem.out.println(\"[\" + LIST_CUSTOMERS + \"] Display all customers.\");\r\n\t\tSystem.out.println(\"[\" + LIST_WASHERS + \"] Display all washers.\");\r\n\t\tSystem.out.println(\"[\" + DISPLAY_TOTAL + \"] Display total sales.\");\r\n\t\tSystem.out.println(\"[\" + SAVE + \"] Save data.\");\r\n\t\tSystem.out.println(\"[\" + EXIT + \"] to Exit\");\r\n\t}", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n total = burrito;\n String Item3 = \"burrito\";\n nameItem = Item3;\n }", "public void printOrderItem(){\r\n\t\tSystem.out.print(this.quantity+\" x \"+this.menuItem.getName()+\" ---- \");\r\n\t\tSystem.out.printf(\"$%.2f\\n\",this.calculatePrice());\r\n\t}", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n total = chicken;\n String Item2 = \"Chicken\";\n nameItem = Item2;\n }", "private void calculateCosts() {\r\n lb_CubicSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_Volume)) + \" €\");\r\n lb_MaterialCostSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_Price)) + \" €\");\r\n lb_CuttingTimeSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_CuttingHours)) + \" €\");\r\n lb_CuttingCostSum.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_CuttingPrice)) + \" €\");\r\n lb_TotalCosts.setText(UtilityFormat.getStringForLabel(getColmunSum(tc_CuttingPrice) + getColmunSum(tc_Price)) + \" €\");\r\n\r\n ModifyController.getInstance().setProject_constructionmaterialList(Boolean.TRUE);\r\n }", "private void initialTitle(TYPE type){\r\n\t\thas_args = false;\r\n\t\tString tail = \"\";\r\n\t\tString period = \"\"; \r\n\t\tprefix=\"\";\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tswitch(type){\r\n\t\tcase MONTH:\r\n\t\t\tperiod = RECENT_MONTH;\r\n\t\t\tbreak;\r\n\t\tcase SEASON:\r\n\t\t\tperiod = RECENT_SEASON;\r\n\t\t\tbreak;\r\n\t\tcase YEAR:\r\n\t\t\tperiod = RECENT_YEAR;\r\n\t\t\tbreak;\r\n\t\tcase ALL:\r\n\t\t\tperiod = RECENT_ALL;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tif(item1.getExpanded()){\r\n\t\t\thas_args = true;\r\n\t\t\tshipment_profit = true;//shipment\r\n\t\t\ttail = \"的出货量\";\r\n\t\t\tif(combo_brand_shipment.getText().equals(AnalyzerConstants.ALL_BRAND)){\r\n\t\t\t\tbrand = AnalyzerConstants.ALL_BRAND;\r\n\t\t\t\tsub = \"\";\r\n\t\t\t}else{\r\n\t\t\t\tbrand = combo_brand_shipment.getText();\r\n\t\t\t\tsub = combo_sub_shipment.getText();\r\n\t\t\t}\r\n\t\t\tif(combo_area_shipment.getText().equals(AnalyzerConstants.ALL_AREA)){\r\n\t\t\t\tarea = AnalyzerConstants.ALL_AREA;\r\n\t\t\t\tcustomer = \"\";\r\n\t\t\t}else{\r\n\t\t\t\tarea = combo_area_shipment.getText();\r\n\t\t\t\tcustomer = combo_cus_shipment.getText();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsb.append(area);\r\n\t\t\tsb.append(customer);\r\n\t\t\tsb.append(period);\r\n\t\t\tsb.append(brand);\r\n\t\t\tsb.append(sub);\r\n\t\t\tsb.append(tail+\"\\n\");\r\n\t\t\t\r\n\t\t\tprefix+=(sb.toString());\r\n\t\t}\r\n\t\tif(item2.getExpanded()){\r\n\t\t\thas_args = true;\r\n\t\t\tshipment_profit = false;\r\n\t\t\ttail = \"的利润\";\r\n\t\t\tif(combo_brand_profit.getText().equals(AnalyzerConstants.ALL_BRAND)){\r\n\t\t\t\tbrand = AnalyzerConstants.ALL_BRAND;\r\n\t\t\t\tsub = \"\";\r\n\t\t\t}else{\r\n\t\t\t\tbrand = combo_brand_profit.getText();\r\n\t\t\t\tsub = combo_sub_profit.getText();\r\n\t\t\t}\r\n\t\t\tif(combo_area_profit.getText().equals(AnalyzerConstants.ALL_AREA)){\r\n\t\t\t\tarea = AnalyzerConstants.ALL_AREA;\r\n\t\t\t\tcustomer = \"\";\r\n\t\t\t}else{\r\n\t\t\t\tarea = combo_area_profit.getText();\r\n\t\t\t\tcustomer = combo_cus_profit.getText();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsb.append(area);\r\n\t\t\tsb.append(customer);\r\n\t\t\tsb.append(period);\r\n\t\t\tsb.append(brand);\r\n\t\t\tsb.append(sub);\r\n\t\t\tsb.append(tail+\"\\n\");\r\n\t\t\tprefix+=(sb.toString());\r\n\t\t}\r\n\t\t\r\n\t\tstyledText.setText(prefix);\r\n\t\tStyleRange styleRange = new StyleRange();\r\n\t\tstyleRange.start = 0;\r\n\t\tstyleRange.length = prefix.length();\r\n\t\tstyleRange.fontStyle = SWT.BOLD;\r\n\t\tstyledText.setStyleRange(styleRange);\r\n\t}", "public void printCost() {\r\n double cost;\r\n cost = quantity * price;\r\n System.out.printf(\"Total cost = $%.2f\", cost);\r\n }", "private void printCreateOrderMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Opret Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Tilføj Medarbejder\");\n System.out.println(\"(2) Tilføj Kunde\");\n System.out.println(\"(3) Tilføj Produkt\");\n System.out.println(\"(4) Bekræft\");\n System.out.print(\"Valg: \");\n }", "public void display() {\r\n String kind;\r\n if (profit == true) {\r\n kind = \"profit\";\r\n }\r\n\r\n else kind = \"non-profit\";\r\n System.out.println(name + \" is a \" + kind + \" organization that has\" + \" \" + revenue + \" dollars in revenue\" );\r\n }", "public static void displayMenu(){\n //*Displays the Menu\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Food Item\", \"Size\", \"Options\", \"Price\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"---------\", \"----\", \"-------\", \"-----\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Drink\", \"S,M,L\", \"Sprite, Rootbeer, and Orange Fanta\", \"$5.50 for small, +$.50 for each size increase\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Burger\", \"N/A\", \"Extra Patty, bacon, cheese, lettuce\", \"$3.00 for a burger, +$.50 for additional toppings\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"tomato, pickles, onions\", \"\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Pizza\", \"S,M,L\", \"Pepperoni, sausage, peppers, chicken\", \"$5.00 for small, +$2.50 for each size increase,\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"salami, tomatoes, olives, anchovies\", \"+$1.00 for each extra topping\" );\n }", "public static void menu(){\n System.out.println(\"-Ingrese el número correspondiente-\");\n System.out.println(\"------------ Opciones -------------\");\n System.out.println(\"------------ 1. Sumar -------------\");\n System.out.println(\"------------ 2. Restar ------------\");\n System.out.println(\"------------ 3. Multiplicar -------\");\n System.out.println(\"------------ 4. Dividir -----------\");\n }", "public void showMenu()\r\n {\r\n System.out.println(\"Enter Truck order: \");\r\n \r\n super.showCommon();\r\n \r\n \r\n super.showMenu(\"What size truck is this? \", SIZE);\r\n \r\n \r\n \r\n \r\n \r\n \r\n super.showMenu(\"What is the engine size of the truck?\", ENGINE_SIZE);\r\n \r\n \r\n \r\n }", "public void menu() {\n System.out.println(\n \" Warehouse System\\n\"\n + \" Stage 3\\n\\n\"\n + \" +--------------------------------------+\\n\"\n + \" | \" + ADD_CLIENT + \")\\tAdd Client |\\n\"\n + \" | \" + ADD_PRODUCT + \")\\tAdd Product |\\n\"\n + \" | \" + ADD_SUPPLIER + \")\\tAdd Supplier |\\n\"\n + \" | \" + ACCEPT_SHIPMENT + \")\\tAccept Shipment from Supplier |\\n\"\n + \" | \" + ACCEPT_ORDER + \")\\tAccept Order from Client |\\n\"\n + \" | \" + PROCESS_ORDER + \")\\tProcess Order |\\n\"\n + \" | \" + CREATE_INVOICE + \")\\tInvoice from processed Order |\\n\"\n + \" | \" + PAYMENT + \")\\tMake a payment |\\n\"\n + \" | \" + ASSIGN_PRODUCT + \")\\tAssign Product to Supplier |\\n\"\n + \" | \" + UNASSIGN_PRODUCT + \")\\tUnssign Product to Supplier |\\n\"\n + \" | \" + SHOW_CLIENTS + \")\\tShow Clients |\\n\"\n + \" | \" + SHOW_PRODUCTS + \")\\tShow Products |\\n\"\n + \" | \" + SHOW_SUPPLIERS + \")\\tShow Suppliers |\\n\"\n + \" | \" + SHOW_ORDERS + \")\\tShow Orders |\\n\"\n + \" | \" + GET_TRANS + \")\\tGet Transaction of a Client |\\n\"\n + \" | \" + GET_INVOICE + \")\\tGet Invoices of a Client |\\n\"\n + \" | \" + SAVE + \")\\tSave State |\\n\"\n + \" | \" + MENU + \")\\tDisplay Menu |\\n\"\n + \" | \" + EXIT + \")\\tExit |\\n\"\n + \" +--------------------------------------+\\n\");\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tif (UIUtilities.isHoneycomb()) {\n\t\t\tgetMenuInflater().inflate(R.menu.item_details, menu);\n\n\t\t\tif (!TextUtilities.isEmpty(mPrice)) {\n\t\t\t\tmenu.findItem(R.id.menu_item_view).setTitle(\n\t\t\t\t\t\tgetString(R.string.menu_item_view_short, \"@\" + mPrice));\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tmenu.findItem(R.id.menu_item_view).setTitle(\n\t\t\t\t\t\tgetString(R.string.menu_item_view_short, \"\"));\n\t\t\t}\n\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public void purchase(){\n\t\t\n\t\t//Ask the user for notes about the item\n\t\tSystem.out.println(\"Please enter any special requests regarding your \" +\n\t\t\t\t\t\t\t\"food item for our staff to see while they prepare it.\");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString foodNotes = scan.nextLine();\n\t\tnotes = foodNotes;\n\t\t\n\t\t//Add this item's price to the order total\n\t\tMenu.orderPrice += price;\n\t\t\n\t}", "public void transactionMenu(){\n\t\tstate = ATM_State.TRANSACTION;\n\t\tgui.setDisplay(\"Transaction menu\\n\"\n\t\t\t\t+ \"1. Balance\\n\"\n\t\t\t\t+ \"2. Deposit\\n\"\n\t\t\t\t+ \"3. Withdraw\\n\"\n\t\t\t\t+ \"4. Log out\\n\"\n\t\t\t\t+ \"Enter choice: \");\n\t}", "public String getDescription() {return \"Use an item in your inventory\"; }", "public static void MakeMerchMenu(ArrayList merchList){\r\n //DecimalFormat to show price nicely with two digits\r\n DecimalFormat df = new DecimalFormat(\"#.00\");\r\n int n = 1;//Dynamic menu selection number starts with 1\r\n for (MerchAbstract i : Inventory.merchList) {\r\n System.out.println( n +\" \"+i.name+\"\\t\\t\\t\"+df.format(i.price)+\" SEK.\");\r\n n++;} \r\n }", "double info() {\n System.out.println(\"Name: \" + name);\n System.out.println(\"Quantity: \" + Integer.toString(quantity));\n System.out.println(\"Price: \" + Double.toString(price));\n System.out.println(\"Total cost: \" + Double.toString(totalCost) + \"\\n\");\n return totalCost;\n }", "private static void placeOrder() {\n System.out.println();\n System.out.println(\"Menu : \");\n for (int i = 0; i < menuItems.length; i++) {\n System.out.printf(\"%2d. %-30s Price: %8.2f Baht%n\", i + 1, menuItems[i], menuPrices[i]);\n }\n System.out.println();\n\n int orderNo = getIntReply(\"What would you like to menuOrder (by menu number)\");\n if (orderNo > menuOrder.length || orderNo == -1) {\n System.out.println(\"Invalid menu number\");\n return;\n }\n\n int amount = getIntReply(\"How many of them\");\n if (amount == -1) return;\n menuOrder[orderNo - 1] += amount;\n\n System.out.printf(\"You've ordered %s for %d piece(s)%n%n\", menuItems[orderNo - 1], menuOrder[orderNo - 1]);\n }", "public void withdrawalMenu(){\n\t\tstate = ATM_State.WITHDRAW;\n\t\tgui.setDisplay(\"Amount to withdraw: \\n$\");\n\t}", "private void printDecreaseItemQuantityMenu(Shop shop, FileManager fileManager) {\n ArrayList<Tool> toolList = new ArrayList<Tool>();\n String selection = \"Y\";\n toolList = sellTools(shop, toolList, selection);\n createAutoOrder(shop, fileManager, toolList);\n }", "public static void f_menu(){\n System.out.println(\"╔══════════════════════╗\");\r\n System.out.println(\"║ SoftAverageHeight ║\");\r\n System.out.println(\"║Version 1.0 20200428 ║\");\r\n System.out.println(\"║Created by:Andres Diaz║\");\r\n System.out.println(\"╚══════════════════════╝\");\r\n\r\n }", "private void printCheckItemQuantityMenu(Shop shop) {\n System.out.println(\"What is the ID of the tool you would like to look up?\");\n int itemId = receiveNumberInput();\n if (shop.searchInventory(itemId)) {\n System.out.println(\"Quantity: \" + shop.checkToolStock(itemId));\n } else {\n System.out.println(\"Tool does not exist or invalid input, please check spelling and try again.\");\n }\n }", "@Override\n public String getDescription() {\n return \"Digital goods purchase\";\n }", "private void mainMenuDetails() {\n try {\n System.out.println(\"Enter your choice:\");\n final int menuOption = option.nextInt();\n switch (menuOption) {\n case 1:\n showFullMenu();\n break;\n case 2:\n acceptRejectResponse();\n break;\n case 3:\n placeOrder();\n break;\n case 4:\n showFullOrder();\n break;\n case 5:\n Runtime.getRuntime().halt(0);\n default:\n System.out.println(\"Choose either 1 or 2\");\n }\n } catch (final Exception e) {\n e.printStackTrace();\n System.out.println(\"enter a valid value\");\n }\n option.nextLine();\n mainMenu();\n }", "private void ShowMenu() {\n\t\tSystem.out.println(\"Please enter a number between 0 and 6 to perform the below actions:\\n\" + \n\t\t\t\t\"0: Exit the program\\n\" + \n\t\t\t\t\"1: Show total population for all zip codes available\\n\" + \n\t\t\t\t\"2: Show the total parking fines per capita for each zip code available\\n\" + \n\t\t\t\t\"3: Show the average market value for residences in a specified zip code\\n\" + \n\t\t\t\t\"4: Show the average total livable area for residences in a specified zip code\\n\" + \n\t\t\t\t\"5: Show the total residential market value per capita for a specified zip code\\n\" +\n\t\t\t\t\"6: Show a sorted list of zip codes and their most common fine in that zip code. Values sorted by total livable area per capita\");\n\t}", "static void afficherMenu() {\n\t\tSystem.out.println(\"\\n\\n\\n\\t\\tMENU PRINCIPAL\\n\");\n\t\tSystem.out.println(\"\\t1. Additionner deux nombres\\n\");\n\t\tSystem.out.println(\"\\t2. Soustraire deux nombres\\n\");\n\t\tSystem.out.println(\"\\t3. Multiplier deux nombres\\n\");\n\t\tSystem.out.println(\"\\t4. Deviser deux nombres\\n\");\n\t\tSystem.out.println(\"\\t0. Quitter\\n\");\n\t\tSystem.out.print(\"\\tFaites votre choix : \");\n\t}", "private void mainMenu() {\n System.out.println(\"Canteen Management System\");\n System.out.println(\"-----------------------\");\n System.out.println(\"1. Show Menu\");\n System.out.println(\"2.AcceptReject\");\n System.out.println(\"3.place orders\");\n System.out.println(\"4.show orders\");\n System.out.println(\"5. Exit\");\n mainMenuDetails();\n }", "private void printToolListMenu(Shop shop) {\n System.out.println(shop.getInventory());\n }", "@Override\n public String toString() {\n\n //convert cents to dollars using cents2dollarsAndCents\n String output = DessertShoppe.cents2dollarsAndCents(this.getCost());\n //create string storing cost in a string \n String costLength = Integer.toString(this.getCost());\n //find spacing needed between name and cost in reciept by subtracting 30(total spaces) by \n //length of name and length of cost\n int spacing = 30 - super.getName().length() - costLength.length() - 1;\n //loop through an add a space each time up to \"spacing\" integer\n for (int i = 0; i < spacing; i++) {\n output = \" \" + output;\n }\n //return name of cookie along with cost along with the right format posting amount of pounds with cost per pound\n return this.weight + \" lbs. \" + \"@ $\" + DessertShoppe.cents2dollarsAndCents(this.pricePerLbs) + \" /lb.\\n\" + this.getName() + output;\n }", "public String showItemInfo()\n {\n return \"The room has 1 \" + currentItem.getDescription() \n + \" weighted \" + currentItem.getWeight() + \" pounds\"; \n }", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n total = noodles;\n String Item1 = \"noodles\";\n nameItem = Item1;\n }", "public String toString() {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tDecimalFormat dFormat = new DecimalFormat(\".00\"); //Format the price ...\n\n\t\tsb.append(\"MENU PIZZA PRONTO\\n\\n\");\n\t\t// Pizzas\n\t\tsb.append(\"Prima special pizzas: \\n 1 normal (Diameter approx. 26 cm) and \\n 2 grande (Diameter approx. 32 cm)\\n\");\n\t\tint i = 0;\n\t\tdo {\n\t\t\tsb.append(dishes.get(i).getNumber() + \"\\t\");\n\t\t\tsb.append(dishes.get(i).getName() + \"\\t\");\n\t\t\tsb.append(dishes.get(i).ingredientsToString());\n\t\t\tsb.append(\"\\n\\tPrice:\\t\\t\\t\"\n\t\t\t\t\t+ dFormat.format(dishes.get(i).getPrice()) + \" Euro\");\n\t\t\tif(dishes.get(i).getNumber() == dishes.get(i+1).getNumber()){\n\t\t\t\tsb.append(\"\\n\\tPrice:\\t\\t\\t\"\n\t\t\t\t\t\t+ dFormat.format(dishes.get(i+1).getPrice()) + \" Euro\");\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\ti+=2;\n\t\t\t}\n\t\t\telse i++;\n\t\t} while (i < dishes.size() && dishes.get(i) instanceof PizzaVO );\n\t\t\n\t\t//Pasta \n\t\t\n\t\tsb.append(\"\\nPrima special pastas: \\n4 Spaghetti\\n5 Tortellini\\n6 Gnocchi\\n\");\n\t\tdo {\n\t\t\tsb.append(\" \" + dishes.get(i).getNumber() + \"\\t\");\n\t\t\tsb.append(dishes.get(i).getName() + \"\\t\");\n\n\t\t\tsb.append(dishes.get(i).ingredientsToString());\n\n\t\t\tsb.append(\"\\n\\tPrice:\\t\\t\\t\"\n\t\t\t\t\t+ dFormat.format(dishes.get(i).getPrice()) + \" Euro\");\n\t\t\tif(dishes.get(i).getNumber() == dishes.get(i+1).getNumber() && dishes.get(i).getNumber() == dishes.get(i+2).getNumber()){\n\t\t\t\ti+=3;\n\t\t\t} else {\n\t\t\tif(dishes.get(i).getNumber() == dishes.get(i+1).getNumber()){\n\t\t\t\ti+=2;\n\t\t\t}\n\t\t\telse\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t} while (i < dishes.size() && dishes.get(i) instanceof PastaVO);\n\t\t\n\t\tsb.append(\"\\nPrima desserts\\n\");\n\t\tdo {\n\t\t\tsb.append(dishes.get(i).getNumber() + \"\\t\");\n\t\t\tsb.append(dishes.get(i).getName() + \"\\t\");\n\n\t\t\tsb.append(dishes.get(i).ingredientsToString());\n\n\t\t\tsb.append(\"\\n\\tPrice:\\t\\t\\t\"\n\t\t\t\t\t+ dFormat.format(dishes.get(i).getPrice()) + \" Euro\");\n\t\t\tsb.append(\"\\n\");\n\t\t\ti++;\n\t\t} while (i < dishes.size() && dishes.get(i) instanceof DessertVO);\n\n\t\treturn sb.toString();\n\t}", "public void depositMenu(){\n\t\tstate = ATM_State.DEPOSIT;\n\t\tgui.setDisplay(\"Amount to deposit: \\n$\");\t\n\t}", "@Override\n public String toString(){\n return \"\" + item.name + \" \" + item.price + \" Coins\";\n }", "public static void menu() {\n\t\tSystem.out.println(\"Menu:\");\n\t\tSystem.out.println(\"1: Create\");\n\t\tSystem.out.println(\"2: Merge\");\n\t\tSystem.out.println(\"3: Collection\");\n\t\tSystem.out.println(\"4: Upgrades\");\n\t\tSystem.out.println(\"5: Sell\");\n\t\tSystem.out.println(\"6: Identify Crystal\");\n\t\tSystem.out.println(\"\");\n\t}", "public void purchaseItem(PlayerModel mod, TowerModel model){\n\t\tint money = mod.getMoney();\n\t\tSystem.out.println(money);\n\t\tsandDollars = money - model.getPrice();\n\t\tSystem.out.println(sandDollars);\n\t\tsandDollarsLabel.setText(\"\" + sandDollars);\n\t}", "private void displayQuantity() {\n Log.d(\"Method\", \"displayQuantity()\");\n TextView quantityTextView = (TextView) findViewById(\n R.id.quantity_text_view);\n\n quantityTextView.setText(String.format(Locale.getDefault(), \"%d\", coffeeCount));\n displayTotal();\n }", "public void showMenu() throws IOException, ClassNotFoundException {\r\n System.out.println(\"--------------------------------------------------------------------------------------------\");\r\n System.out.println(\"\\nADMINISTRATION PAGE:)\");\r\n System.out.println(\"--------------------------------------------------------------------------------------------\");\r\n System.out.println(\"What would you like to do ?\");\r\n Scanner input = new Scanner(System.in);\r\n System.out.print(\"1 - Restock\\n2 - Change Price\\n3 - Print all items\\n4 - Balance\\n5 - Print Restock\\n6 - Cash In\\n7 - Cash Out\\n8- Exit\");\r\n\r\n int option;\r\n do {\r\n System.out.println();\r\n System.out.print(\"Select option: \");\r\n option = input.nextInt();\r\n switch (option) {\r\n // CASE 1 ---> Allow admin to restock items\r\n case 1 -> {\r\n System.out.println(\"--------------------------------------------------------------------------------\");\r\n System.out.println(\"Restock: \");\r\n System.out.println(\"--------------------------------------------------------------------------------\");\r\n }\r\n // CASE 2 ---> Allow admin to Change price of items\r\n case 2 -> {\r\n System.out.println(\"--------------------------------------------------------------------------------\");\r\n this.itemList();\r\n System.out.println(\"--------------------------------------------------------------------------------\");\r\n }\r\n // CASE 3 ---> Allow Admin to Print All the Items in the machine\r\n case 3 -> {\r\n System.out.println(\"--------------------------------------------------------------------------------\");\r\n System.out.println(\"Print all Items: \");\r\n System.out.println(\"--------------------------------------------------------------------------------\");\r\n }\r\n // CASE 4 ---> Allow Admin to Print amount of cash in categories (100NAD, 50NAD, 20NAD, 10NAD up to 5c)\r\n case 4 -> {\r\n System.out.println(\"--------------------------------------------------------------------------------\");\r\n System.out.printf(\"Total Amount Available: N$ %.2f\", this.balance);\r\n System.out.println(\"--------------------------------------------------------------------------------\");\r\n }\r\n // CASE 5 ---> Allow Admin to print out ITEM that need RESTOCKING\r\n case 5 -> {\r\n System.out.println(\"--------------------------------------------------------------------------------\");\r\n System.out.println(\"Item to Restock: \");\r\n System.out.println(\"--------------------------------------------------------------------------------\");\r\n }\r\n // Allow Admin to CASH IN certain amount in the Machine\r\n case 6 -> this.deposit();\r\n // CASE 7 ---> Allow Admin to CASH OUT certain amount\r\n case 7 -> {\r\n System.out.println(\"Enter an amount to withdraw \");\r\n float withdrawnAmount = (float) input.nextDouble();\r\n this.transaction = withdrawnAmount;\r\n while (withdrawnAmount > this.balance || this.balance == 0.0F) {\r\n System.out.println(\"\\nYou have insufficient Balance make this transaction,Please try again!\");\r\n System.out.println(\"Balance: \" + this.balance);\r\n System.out.println(\"---------------------------------------------------------------------\");\r\n this.repeatDeposit(); // Calling the Mentioned Function\r\n }\r\n this.balance -= withdrawnAmount;\r\n System.out.println(\"You have Successfully withdraw: N$\" + withdrawnAmount);\r\n System.out.printf(\"New Balance: N$%.2f\", this.balance);\r\n this.coinDisbursed(); // Calling the Mentioned Function\r\n }\r\n // CASE 8 ---> let Admin know that they entered INVALID option\r\n case 8 -> this.adminPage();\r\n default -> System.out.println(\"Error: Invalid option. Please enter 1,2,3,4,5,6,7 and 8\");\r\n }\r\n } while(option != 9);\r\n\r\n }", "private void createShopMenu() {\n Player player = gameInstance.getEntityManager().getOrCreatePlayer();\n\n Table table = new Table();\n table.top();\n table.setFillParent(true);\n\n //WELCOME MESSAGE\n Label welcome = new Label(\"Welcome to the \"+department.getName()+\" Department!\",\n StyleManager.generateLabelStyle(50, Color.GOLD));\n\n //REPAIR BUTTON\n //label to display if player's boat has full health\n Label noRepair = new Label(\"Your ship does not need repair!\", StyleManager.generateLabelStyle(30, Color.BLACK));\n\n //button updated regularly in render\n repair = new TextButton(\"\", StyleManager.generateTBStyle(40, Color.BLACK, Color.GRAY));\n repair.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent ev, float x, float y) {\n if(player.getBalance()>=getHealCost()) {\n //has enough gold\n player.deductBalance(getHealCost());\n player.setHealth(player.getMaxHealth());\n }\n }\n });\n\n //UPDATE BUTTON\n //label to display if allied college not defeat (crew member not unlocked)\n Label noUpgrade = new Label(\"You have not unlocked this crew member!\", StyleManager.generateLabelStyle(40, Color.BLACK));\n\n //Maximum level label\n Label maxUpgrade = new Label(\"This crew member is at it's maximum level!\", StyleManager.generateLabelStyle(40, Color.BLACK));\n\n\n //button updated regularly in render\n CrewMember crewMember = department.getCrewMember();\n upgrade = new TextButton(\"\",\n StyleManager.generateTBStyle(30, Color.BLACK, Color.GRAY));\n upgrade.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent ev, float x, float y) {\n if((player.getBalance()>=crewMember.getUpgradeCost())\n && crewMember.canUpgrade()) {\n //has enough gold and not maximum level\n player.deductBalance(crewMember.getUpgradeCost());\n crewMember.upgrade();\n }\n }\n });\n\n //EXIT BUTTON\n TextButton exit = new TextButton(\"Exit!\", StyleManager.generateTBStyle(25, Color.RED, Color.GRAY));\n exit.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent ev, float x, float y) {\n gameInstance.fadeSwitchScreen(gameInstance.getSailScreen());\n }\n });\n\n //POPULATE TABLE\n table.add(welcome).padTop(Value.percentHeight(0.35f, table)).expandX();\n table.row();\n if(player.getHealth().equals(player.getMaxHealth())) {\n table.add(noRepair).padTop(Value.percentHeight(0.05f, table)).expandX();\n } else {\n table.add(repair).padTop(Value.percentHeight(0.05f, table)).expandX();\n }\n table.row();\n if(player.getCrewMembers().contains(crewMember)) {\n //has unlocked crew member\n if(crewMember.canUpgrade()) {\n table.add(upgrade).padTop(Value.percentHeight(0.02f, table)).expandX();\n } else {\n table.add(maxUpgrade).padTop(Value.percentHeight(0.02f, table)).expandX();\n }\n } else {\n table.add(noUpgrade).padTop(Value.percentHeight(0.02f, table)).expandX();\n }\n table.row();\n table.add(exit).padTop(Value.percentHeight(0.05f, table)).expandX();\n\n getStage().addActor(table);\n }", "void createOrderText(Client_H client, ProductController_H menu) throws OrderLineFullListException;", "public void calculateAmount() {\n totalAmount = kurv.calculateTotalAmount() + \" DKK\";\n headerPrice.setText(totalAmount);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.home_page, menu);\n final MenuItem menuItem = menu.findItem(R.id.message);\n View actionView = menuItem.getActionView();\n textCartItemCount = (TextView) actionView.findViewById(R.id.cart_badge);\n setupBadge();\n\n actionView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n onOptionsItemSelected(menuItem);\n\n }\n });\n return true;\n }", "public void addMenuItem(String name, Double price) {\n menuItemNames.add(name);\n menuItemPrices.add(price);\n }", "public void balanceMenu(){\n\t\tstate = ATM_State.BALANCE;\n\t\tdouble balance = Bank.getBalance(accountID); \n\t\tgui.setDisplay(\"Current balance: \\n$\" + balance);\t\n\t}", "static void montaMenu() {\n System.out.println(\"\");\r\n System.out.println(\"1 - Novo cliente\");\r\n System.out.println(\"2 - Lista clientes\");\r\n System.out.println(\"3 - Apagar cliente\");\r\n System.out.println(\"0 - Finalizar\");\r\n System.out.println(\"Digite a opcao desejada: \");\r\n System.out.println(\"\");\r\n }", "void showOrdersText();", "public void buyhouse(int cost){\n\t\n}", "private String createOrderSummary(int price,boolean addWhippedCream,boolean addChocolate,String name){\n String priceMessage=\"Name :\"+name;\n priceMessage+=\"\\nadd whipped cream ? \"+addWhippedCream;\n priceMessage+=\"\\nadd chocolate ? \"+addChocolate;\n priceMessage+=\"\\nQuantity \"+quantity;\n priceMessage+=\"\\nTotal :$ \"+price;\n priceMessage+=\"\\nThank you!\";\n return priceMessage;\n }", "private static double checkOrder() {\n double total = 0;\n System.out.println();\n System.out.println(\"Your total order : \");\n System.out.println();\n System.out.printf(\"%2s. %-40s %3s %8s%n\", \"No\", \"Title\", \"Qty\", \"Price\");\n for (int i = 0, j = 1; i < menuItems.length; i++) {\n if (menuOrder[i] == 0) continue;\n double price = menuOrder[i] * menuPrices[i];\n total += price;\n System.out.printf(\"%2d. %-40s %3d %8.2f Baht%n\", j, menuItems[i], menuOrder[i], price);\n j++;\n }\n System.out.printf(\"%47s: %8.2f Baht%n\", \"Total\", total);\n return total;\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}", "public void menu(){\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"<=======|\" + name + \"|=======>\");\n\t\tSystem.out.println(\"------------------------------------------------\");\n\t\tSystem.out.println(\"1 -> Jouer\");\n\t\tSystem.out.println(\"2 -> Creer votre personnage\");\n\t\tSystem.out.println(\"3 -> Charger\");\n\t\tSystem.out.println(\"4 -> Best Score\");\n\t\tSystem.out.println(\"5 -> Instruction\");\n\t\tSystem.out.println(\"6 -> Quitter\");\n\t\tSystem.out.println(\"------------------------------------------------\");\n\t\tint choice = in.nextInt();\n\n\t\t\tswitch (choice){\n\t\t\t\tcase 1:\n\t\t\t\t\tstartPlay();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tcreateChar();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\tchargeGame();\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.print(\" NOM -\");\n\t\t\t\t\tSystem.out.print(\" GENRE -\");\n\t\t\t\t\tSystem.out.print(\" SANTEE -\");\n\t\t\t\t\tSystem.out.print(\" FORCE -\");\n\t\t\t\t\tSystem.out.print(\" ARMES -\");\n\t\t\t\t\tSystem.out.println(\" ARGENT -\");\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tbdd.dbQuery(\"SELECT * FROM score ORDER BY health DESC\");\n\t\t\t\t\tmenu();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\trules();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\texit();\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Choix non valide\");\n\t\t\t\t\tmenu();\n\t\t\t}\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.home_menu, menu);\n MenuItem menuItem = menu.findItem(R.id.cartFragment);\n View actionView = menuItem.getActionView();\n TextView cartShapeTextView = actionView.findViewById(R.id.cart_shape_text_view);\n\n cartShapeTextView.setText(String.valueOf(cartQuantity));\n cartShapeTextView.setVisibility(cartQuantity == 0 ? View.GONE : View.VISIBLE);\n\n actionView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n onOptionsItemSelected(menuItem);\n }\n });\n return true;\n }", "public interface MenuItem {\n\tpublic int getBasePrice();\n\tpublic int getAddOnPrice();\n\tpublic int getTotalGuestPrice(int additionalGuestTotal);\n\tpublic String getName();\n\tpublic String getDetails();\n}", "public static void display(){\n \n //create an array : Remember positions\n //wheat= 0\n //Land = 1 \n //Population = 2\n \n String[] items = {\"Wheat\", \"Land\", \"Population\"};\n \n \n // call the crops object \n Crops theCrops = Game.getCrop();\n \n //get wheat\n int wheat = theCrops.getWheatInStore();\n \n //get land (acres)\n int acres = theCrops.getAcres();\n \n //get population \n \n int population = theCrops.getPopulation();\n \n //print results \n \n System.out.println(\"\\nInventory List:\");\n //wheat \n System.out.println(\"Wheat in Store:\" + wheat + \" bushels of \" + items[0]);\n //acres\n System.out.println(\"Acres of Land owned:\" + acres + \" acres of \" + items[1]);\n \n //population\n System.out.println(\"Current population:\" + population + \" people in the \" + items[2]);\n \n \n \n }", "@Override\n public String toString() {\n return (getName() + \" (\" + getCost() + \")\");\n }", "public ShopDialog(String title, Skin skin, TextureManager manager) {\n\t\tsuper(title, skin);\n\t\tthis.getTitleLabel().setAlignment(Align.center);\n\t\tthis.textureManager = manager;\n\t\t// Making the items table to buy from\n\t\tthis.getContentTable().debugCell();\n\t\tthis.getContentTable().left();\n\t\tthis.skin = skin;\n\n\t\tthis.technologyManager = (TechnologyManager) GameManager.get()\n\t\t\t\t.getManager(TechnologyManager.class);\n\n\t\tstatus = new Label(\"Welcome to the shop!\", skin);\n\n\t\tscrollTable = new Table();\n\t\tscrollTable.top();\n\t\tscrollTable.debugCell();\n\t\tscrollTable.add(new Label(\"Item\", skin)).width(iconSize).top().center();\n\t\tscrollTable.add(new Label(\"Description\", skin)).width(iconSize)\n\t\t\t\t.expandX().top().left();\n\t\tscrollTable.add(new Label(\"Cost\", skin)).width(iconSize).top();\n\t\tscrollTable.row();\n\n\t\tthis.technologyManager = (TechnologyManager) GameManager.get()\n\t\t\t\t.getManager(TechnologyManager.class);\n\t\tif (technologyManager.armourIsUnlocked(1)) {\n\t\t\tunlockArmours(1);\n\t\t}\n\t\tif (technologyManager.armourIsUnlocked(2)) {\n\t\t\tunlockArmours(2);\n\t\t}\n\t\tif (technologyManager.armourIsUnlocked(3)) {\n\t\t\tunlockArmours(3);\n\t\t}\n\t\tif (technologyManager.weaponIsUnlocked(1)) {\n\t\t\tunlockWeapons(1);\n\t\t}\n\t\tif (technologyManager.weaponIsUnlocked(2)) {\n\t\t\tunlockWeapons(2);\n\t\t}\n\t\tif (technologyManager.weaponIsUnlocked(3)) {\n\t\t\tunlockWeapons(3);\n\t\t}\n\t\tif (technologyManager.specialIsUnlocked()) {\n\t\t\tunlockSpecials();\n\t\t}\n\n\t\t// making the right side table for the Commander icons.\n\t\tfinal ScrollPane scroller = new ScrollPane(scrollTable);\n\n\t\tthis.getContentTable().add(scroller).fill().expand().top();\n\n\t\tthis.getContentTable().row();\n\t\tthis.getContentTable().add(status).expandX().center().colspan(2);\n\n\t}", "public String toString(){\n\t\treturn \"Title: \" + title + \"\\nAuthor: \" + author + \"\\nSubject: \" + subject + \"\\nisbn: \" + \n\t\t\t\t\tisbn + String.format( \"\\nPrice: $%.2f\", cost );\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n MenuItem menuItem = menu.findItem(R.id.action_cart);\n View cart = MenuItemCompat.getActionView(menuItem);\n textItemCount = cart.findViewById(R.id.cart_badge);\n setBadge();\n\n }", "private void printMenu() {\n\t\tSystem.out.printf(\"\\n********** MiRide System Menu **********\\n\\n\");\n\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Create Car\", \"CC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Book Car\", \"BC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Complete Booking\", \"CB\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Display ALL Cars\", \"DA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Specific Car\", \"SS\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Available Cars\", \"SA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Seed Data\", \"SD\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Load Cars\", \"LC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Exit Program\", \"EX\");\n\t\tSystem.out.println(\"\\nEnter your selection: \");\n\t\tSystem.out.println(\"(Hit enter to cancel any operation)\");\n\t}", "private void CargaInicial() {\r\n this.setTitle(\"\" + gui.getTitle().concat(\"\").concat(\" - [Modulo: Precio por Producto/Servicio]\"));\r\n }", "public String toString(){\r\n String output = \"\";\r\n //Display the name \r\n output += this.name;\r\n //Turn the cost int in cents to a string in dollars\r\n String totalcost = DessertShoppe.cents2dollarsAndCents(getCost());\r\n //Print out a space between the name and where the cost needs to be\r\n for (int i = this.name.length(); i < DessertShoppe.RECEIPT_WIDTH - totalcost.length(); i++){\r\n output+=\" \";\r\n }\r\n //Print outt he cost string with the dollar sign\r\n output += totalcost;\r\n return output;\r\n \r\n }", "private static void displayCartMenu() {\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Please make your choice, by entering the assigned number\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" 1: Remove an item from the cart\");\r\n\t\tSystem.out.println(\" 2: Modify the number of a certain item in the cart\");\r\n\t\tSystem.out.println(\" 3: Checkout cart\");\r\n\t\tSystem.out.println(\" 0: Quit to main manu\");\r\n\t\tint value = getValidUserInput(scanner, 4);\r\n\t\tswitch (value) {\r\n\t\tcase 0:\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\" Going back to main menu\");\r\n\t\t\tSystem.out.println();\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tremoveItemFromCart();\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tmodifyItemNumberInCart();\r\n\t\t\tbreak; \r\n\t\tcase 3:\r\n\t\t\tcheckoutCart();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\t\r\n\t}", "public void showMoveData(Street street, Integer amount, int newMoney) {\n\t\tif (street instanceof BuyableStreet) {\n\t\t\tBuyableStreet buyStreet = (BuyableStreet) street;\n\t\t\tif (buyStreet.getOwner() == null) {\n\t\t\t\tRectangle color = new Rectangle();\n\t\t\t\tcolor.setWidth(116);\n\t\t\t\tcolor.setHeight(12);\n\t\t\t\tif (buyStreet.getGroup().equalsIgnoreCase(\"brown\")) {\n\t\t\t\t\tcolor.setFill(Color.web(\"#6b004d\"));\n\t\t\t\t} else if (buyStreet.getGroup().equalsIgnoreCase(\"lightblue\")) {\n\t\t\t\t\tcolor.setFill(Color.web(\"#70a9ff\"));\n\t\t\t\t} else if (buyStreet.getGroup().equalsIgnoreCase(\"pink\")) {\n\t\t\t\t\tcolor.setFill(Color.web(\"#ff2370\"));\n\t\t\t\t} else if (buyStreet.getGroup().equalsIgnoreCase(\"orange\")) {\n\t\t\t\t\tcolor.setFill(Color.web(\"#ff8600\"));\n\t\t\t\t} else if (buyStreet.getGroup().equalsIgnoreCase(\"red\")) {\n\t\t\t\t\tcolor.setFill(Color.RED);\n\t\t\t\t} else if (buyStreet.getGroup().equalsIgnoreCase(\"yellow\")) {\n\t\t\t\t\tcolor.setFill(Color.web(\"#ffe400\"));\n\t\t\t\t} else if (buyStreet.getGroup().equalsIgnoreCase(\"green\")) {\n\t\t\t\t\tcolor.setFill(Color.web(\"#04bf19\"));\n\t\t\t\t} else if (buyStreet.getGroup().equalsIgnoreCase(\"blue\")) {\n\t\t\t\t\tcolor.setFill(Color.web(\"#1306bd\"));\n\t\t\t\t} else {\n\t\t\t\t\tcolor = null;\n\t\t\t\t}\n\t\t\t\tHBox name = new HBox(10);\n\t\t\t\tLabel lName = new Label(\"Name:\");\n\t\t\t\tLabel sName = new Label(buyStreet.getName());\n\t\t\t\tname.getChildren().addAll(lName, sName);\n\t\t\t\tHBox rent = new HBox(10);\n\t\t\t\tVBox lRents = new VBox(10);\n\t\t\t\tVBox sRents = new VBox(10);\n\t\t\t\tLabel lRent = new Label(\"Miete:\");\n\t\t\t\tif (buyStreet instanceof BuyableNormalStreet) {\n\t\t\t\t\tBuyableNormalStreet buyNormStreet = (BuyableNormalStreet) buyStreet;\n\t\t\t\t\tLabel l0Rent = new Label(\"Kein Haus:\");\n\t\t\t\t\tLabel l1Rent = new Label(\"Ein Haus:\");\n\t\t\t\t\tLabel l2Rent = new Label(\"Zwei Häuser:\");\n\t\t\t\t\tLabel l3Rent = new Label(\"Drei Häuser:\");\n\t\t\t\t\tLabel l4Rent = new Label(\"Vier Häuser:\");\n\t\t\t\t\tLabel l5Rent = new Label(\"Hotel:\");\n\t\t\t\t\tLabel l6Rent = new Label(\"Gebäudekosten:\");\n\t\t\t\t\tLabel s0Rent = new Label(\"\" + buyNormStreet.getNohouse());\n\t\t\t\t\tLabel s1Rent = new Label(\"\" + buyNormStreet.getOnehouse());\n\t\t\t\t\tLabel s2Rent = new Label(\"\" + buyNormStreet.getTwohouses());\n\t\t\t\t\tLabel s3Rent = new Label(\"\" + buyNormStreet.getThreehouses());\n\t\t\t\t\tLabel s4Rent = new Label(\"\" + buyNormStreet.getFourhouses());\n\t\t\t\t\tLabel s5Rent = new Label(\"\" + buyNormStreet.getHotel());\n\t\t\t\t\tLabel s6Rent = new Label(\"\" + buyNormStreet.getHousecost()); // Gebäudekosten\n\t\t\t\t\tlRents.getChildren().addAll(l0Rent, l1Rent, l2Rent, l3Rent, l4Rent, l5Rent, l6Rent);\n\t\t\t\t\tsRents.getChildren().addAll(s0Rent, s1Rent, s2Rent, s3Rent, s4Rent, s5Rent, s6Rent);\n\t\t\t\t} else if (buyStreet instanceof BuyableFactoryStreet) {\n\t\t\t\t\tBuyableFactoryStreet factoryStreet = (BuyableFactoryStreet) buyStreet;\n\t\t\t\t\tLabel l0Rent = new Label(\"Wenn man 1 Werke besitzt:\");\n\t\t\t\t\tLabel l1Rent = new Label(\"Wenn man 2 Werke besitzt:\");\n\t\t\t\t\tLabel s0Rent = new Label(\"\" + factoryStreet.getFactorsingle());\n\t\t\t\t\tLabel s1Rent = new Label(\"\" + factoryStreet.getFactorgroup());\n\t\t\t\t\tlRents.getChildren().addAll(l0Rent, l1Rent);\n\t\t\t\t\tsRents.getChildren().addAll(s0Rent, s1Rent);\n\n\t\t\t\t} else if (buyStreet instanceof BuyableTrainstationStreet) {\n\t\t\t\t\tBuyableTrainstationStreet trainstationStreet = (BuyableTrainstationStreet) buyStreet;\n\t\t\t\t\tLabel l0Rent = new Label(\"Wenn man 1 Bahnhöfe besitzt:\");\n\t\t\t\t\tLabel l1Rent = new Label(\"Wenn man 2 Bahnhöfe besitzt:\");\n\t\t\t\t\tLabel l2Rent = new Label(\"Wenn man 3 Bahnhöfe besitzt:\");\n\t\t\t\t\tLabel l3Rent = new Label(\"Wenn man 4 Bahnhöfe besitzt:\");\n\t\t\t\t\tLabel s0Rent = new Label(\"\" + trainstationStreet.getOnestation());\n\t\t\t\t\tLabel s1Rent = new Label(\"\" + trainstationStreet.getTwostations());\n\t\t\t\t\tLabel s2Rent = new Label(\"\" + trainstationStreet.getThreestations());\n\t\t\t\t\tLabel s3Rent = new Label(\"\" + trainstationStreet.getFourstations());\n\t\t\t\t\tlRents.getChildren().addAll(l0Rent, l1Rent, l2Rent, l3Rent);\n\t\t\t\t\tsRents.getChildren().addAll(s0Rent, s1Rent, s2Rent, s3Rent);\n\t\t\t\t}\n\t\t\t\trent.getChildren().addAll(lRents, sRents);\n\t\t\t\tHBox cost = new HBox(10);\n\t\t\t\tLabel lCost = new Label(\"Kosten:\");\n\t\t\t\tLabel sCost = new Label(\"\" + buyStreet.getCost()); // TODO DATA\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// insert\n\t\t\t\tcost.getChildren().addAll(lCost, sCost);\n\t\t\t\tHBox mortg = new HBox(10);\n\t\t\t\tLabel lMortg = new Label(\"Hypothek:\");\n\t\t\t\tLabel sMortg = new Label(\"\" + buyStreet.getMortgageValue()); // TODO\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// DATA\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// insert\n\t\t\t\tcost.getChildren().addAll(lMortg, sMortg);\n\t\t\t\tlayout = new VBox(10);\n\t\t\t\tif (color != null) {\n\t\t\t\t\tlayout.getChildren().add(color);\n\t\t\t\t}\n\t\t\t\tHBox actions = new HBox(10);\n\t\t\t\tButton buy = new Button(\"Kaufen\");\n\t\t\t\tButton ignore = new Button(\"Ignorieren\");\n\t\t\t\tbuy.setOnAction(e -> {\n\t\t\t\t\tMonopolyClient.buyStreet(true); // TODO correct Parameter\n\t\t\t\t\tMonopolyClient.toInterruptInterrupt();\n\t\t\t\t});\n\t\t\t\tignore.setOnAction(e -> {\n\t\t\t\t\tMonopolyClient.buyStreet(false);\n\t\t\t\t\tMonopolyClient.toInterruptInterrupt();\n\n\t\t\t\t\tcontinueRound();\n\t\t\t\t});\n\t\t\t\tactions.getChildren().addAll(buy, ignore);\n\t\t\t\tlayout.setPadding(new Insets(10, 10, 10, 10));\n\t\t\t\tlayout.getChildren().addAll(name, lRent, rent, cost, mortg, actions);\n\t\t\t\tlayout.setAlignment(Pos.CENTER);\n\t\t\t\tScene scene = new Scene(layout);\n\t\t\t\troundWindow.setScene(scene);\n\t\t\t} else {\n\n\t\t\t\t// case normal street Owned\n\n\t\t\t\tRectangle color = new Rectangle();\n\t\t\t\tcolor.setWidth(116);\n\t\t\t\tcolor.setHeight(12);\n\t\t\t\tif (\"Placeholder\".equals(\"brown\")) {// TODO proper if handling\n\t\t\t\t\tcolor.setFill(Color.web(\"#6b004d\"));\n\t\t\t\t} else if (\"Placeholder\".equals(\"lightblue\")) {\n\t\t\t\t\tcolor.setFill(Color.web(\"#70a9ff\"));\n\t\t\t\t} else if (\"Placeholder\".equals(\"pink\")) {\n\t\t\t\t\tcolor.setFill(Color.web(\"#ff2370\"));\n\t\t\t\t} else if (\"Placeholder\".equals(\"orange\")) {\n\t\t\t\t\tcolor.setFill(Color.web(\"#ff8600\"));\n\t\t\t\t} else if (\"Placeholder\".equals(\"red\")) {\n\t\t\t\t\tcolor.setFill(Color.RED);\n\t\t\t\t} else if (\"Placeholder\".equals(\"yellow\")) {\n\t\t\t\t\tcolor.setFill(Color.web(\"#ffe400\"));\n\t\t\t\t} else if (\"Placeholder\".equals(\"green\")) {\n\t\t\t\t\tcolor.setFill(Color.web(\"#04bf19\"));\n\t\t\t\t} else if (\"Placeholder\".equals(\"blue\")) {\n\t\t\t\t\tcolor.setFill(Color.web(\"#1306bd\"));\n\t\t\t\t} else {\n\t\t\t\t\tcolor = null;\n\t\t\t\t}\n\t\t\t\tLabel streetName = new Label(buyStreet.getName());\n\t\t\t\tHBox ownerName = new HBox(10);\n\t\t\t\tLabel oName = new Label(\"Besitzer: \");\n\t\t\t\tLabel owName = new Label(buyStreet.getOwner().getName());\n\t\t\t\townerName.getChildren().addAll(oName, owName);\n\t\t\t\tHBox costBox = new HBox(10);\n\t\t\t\tLabel cost = new Label(\"Kosten: \");\n\t\t\t\tLabel costs = new Label(\"\" + amount);\n\t\t\t\tcostBox.getChildren().addAll(cost, costs);\n\t\t\t\tButton pay = new Button(\"Bezahlen\");\n\t\t\t\tpay.setOnAction(e -> {\n\t\t\t\t\trefreshMoney(newMoney);\n\t\t\t\t\tMonopolyClient.toInterruptInterrupt();\n\t\t\t\t\tcontinueRound();\n\t\t\t\t});\n\t\t\t\tlayout = new VBox(10);\n\t\t\t\tif (color != null) {\n\t\t\t\t\tlayout.getChildren().add(color);\n\t\t\t\t}\n\t\t\t\tlayout.setPadding(new Insets(10, 10, 10, 10));\n\t\t\t\tlayout.getChildren().addAll(streetName, ownerName, costBox, pay);\n\t\t\t\tlayout.setAlignment(Pos.CENTER);\n\t\t\t\tScene scene = new Scene(layout);\n\t\t\t\troundWindow.setScene(scene);\n\t\t\t}\n\t\t} else if (street instanceof NonBuyableStreet) {\n\t\t\tNonBuyableStreet noBuyStreet = (NonBuyableStreet) street;\n\t\t\tif (noBuyStreet instanceof NonBuyableCommunityStreet || street instanceof NonBuyableEventStreet) {\n\t\t\t\tMonopolyClient.toInterruptInterrupt();// TODO\n\t\t\t} else if (noBuyStreet instanceof NonBuyableJailStreet) {\n\t\t\t\tjail();\n\t\t\t} else if (noBuyStreet instanceof NonBuyableMoneyStreet) {\n\t\t\t\tNonBuyableMoneyStreet noBuyMonStreet = (NonBuyableMoneyStreet) noBuyStreet;\n\t\t\t\tLabel streetName = new Label(noBuyMonStreet.getName());\n\t\t\t\tHBox costBox = new HBox(10);\n\t\t\t\tLabel cost = new Label(\"Betrag: \");\n\t\t\t\tLabel costs = new Label(\"\" + amount);\n\t\t\t\tcostBox.getChildren().addAll(cost, costs);\n\t\t\t\tButton pay = new Button(\"Bestätigen\");\n\t\t\t\tpay.setOnAction(e -> {\n\t\t\t\t\trefreshMoney(newMoney);\n\t\t\t\t\tMonopolyClient.toInterruptInterrupt();\n\t\t\t\t\tcontinueRound();\n\t\t\t\t});\n\t\t\t\tlayout = new VBox(10);\n\t\t\t\tlayout.setPadding(new Insets(10, 10, 10, 10));\n\t\t\t\tlayout.getChildren().addAll(streetName, costBox, pay);\n\t\t\t\tlayout.setAlignment(Pos.CENTER);\n\t\t\t\tScene scene = new Scene(layout);\n\t\t\t\troundWindow.setScene(scene);\n\t\t\t} else if (noBuyStreet instanceof NonBuyableNormalStreet) {\n\t\t\t\tLabel streetName = new Label(noBuyStreet.getName());\n\t\t\t\tHBox costBox = new HBox(10);\n\t\t\t\tButton pay = new Button(\"Weiter\");\n\t\t\t\tpay.setOnAction(e -> {\n\t\t\t\t\trefreshMoney(newMoney);\n\t\t\t\t\tMonopolyClient.toInterruptInterrupt();\n\t\t\t\t\tcontinueRound();\n\t\t\t\t});\n\t\t\t\tlayout = new VBox(10);\n\t\t\t\tlayout.setPadding(new Insets(10, 10, 10, 10));\n\t\t\t\tlayout.getChildren().addAll(streetName, costBox, pay);\n\t\t\t\tlayout.setAlignment(Pos.CENTER);\n\t\t\t\tScene scene = new Scene(layout);\n\t\t\t\troundWindow.setScene(scene);\n\t\t\t}\n\t\t}\n\t}", "public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }", "public void showMenu() {\n\t\tSystem.out.println(\"Please, choose one option!\");\n\t\tSystem.out.println(\"[ 1 ] - Highest Company Capital\");\n\t\tSystem.out.println(\"[ 2 ] - Lowest Company Capital\");\n\t\tSystem.out.println(\"[ 3 ] - Best Investor of the Day\");\n\t\tSystem.out.println(\"[ 4 ] - Worst Investor of the Day\");\n\t\tSystem.out.println(\"[ 0 ] - Exit\");\n\t}", "@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(itemName + \" \" + price + \"kr \" + tax + \"% \");\n return builder.toString();\n }", "@Override\n public String getDescription() {\n return \"Digital goods listing\";\n }", "public void getCosts() {\n\t}", "@Override\n\tpublic void getCosts() {\n\t\tString renterIDString = String.valueOf(this.renter.getRenterID());\n\t\tString damageChargeString = String.valueOf(this.damageCharge);\n\t\tSystem.out.print(\"The amount owed in damages for renter with ID of: \" + renterIDString + \" is: \" + damageChargeString+\"\\n\");\n\t}", "private static void displayMenu() {\n System.out.println(\"Menu : \");\n System.out.println(\"Type any number for selection\");\n for (int i = 1; i <= totalPlayers; i++) {\n System.out.println(i + \")View \" + playerList.get(i - 1) + \" cards\");\n }\n System.out.println(\"8)Display Each Player's Hand Strength\");\n System.out.println(\"9)Declare Winner\");\n System.out.println(\"10)Exit\");\n }", "private void menuSetup()\n {\n menuChoices = new String []\n {\n \"Add a new product\",\n \"Remove a product\",\n \"Rename a product\",\n \"Print all products\",\n \"Deliver a product\",\n \"Sell a product\",\n \"Search for a product\",\n \"Find low-stock products\",\n \"Restock low-stock products\",\n \"Quit the program\" \n };\n }", "@Override\n public String toString() {\n int width = DessertShoppe.RECEIPT_WIDTH; //get the width of the receipt\n int widthCand = width - (super.getName()).length(); //get the width of the candy receipt\n\n //get all of the information needed to output for the given candy\n String output = this.weight + \" lbs. @ $\" + DessertShoppe.cents2dollarsAndCents(this.pricePerLbs) + \" /lb. \\n\" + super.getName();\n String candCost = DessertShoppe.cents2dollarsAndCents(this.getCost()); //get the cost of the candy\n output += String.format(\"%\" + widthCand + \"s%n\", candCost); //format the line to fi properly to the receipt\n return output; //return the formatted output\n }", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(menuTitle);\n\t\tfor(int i=1; i<menuArr.length; i++)\n\t\t{\n\t\t\tSystem.out.printf(\"%d.%s \", i, menuArr[i]);\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"¼±Åà : \");\n\t\tint num = scan.nextInt();\n\t\tdata.number = num;\n\t\t\n\t}", "public void display_title_screen() {\n parent.textAlign(CENTER);\n parent.textFont(myFont);\n parent.textSize(displayH/10);\n parent.fill(255, 255, 0);\n parent.text(\"PACMAN\", 0.5f*displayW, 0.3f*displayH);\n\n parent.image(maxusLogoImage, 0.5f*displayW, 0.4f*displayH);\n\n parent.textFont(myFont);\n parent.textSize(tileSize);\n parent.fill(180);\n parent.text(\"2013\", 0.5f*displayW, 0.45f*displayH);\n\n display_chase_animation();\n\n display_insert_coin_text();\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\n\t\t\tString name=\"\";\n\t\t\tname=view.getNameTF().getText();\n\t\t\tString price=\"\";\n\t\t\tprice=view.getPriceTF().getText();\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(name.equals(\"\") ||price.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tthrow new BadInput(\"Nu au fost completate toate casutele pentru a se putea realiza CREATE!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble p=Double.parseDouble(price);\n\t\t\t\t\n\t\t\t\tMenuItem nou=new BaseProduct(name,p);\n\t\t\t\t\n\t\t\t\trestaurant.createMenuItem(nou);\n\t\t\t\tview.updateList(name);\n\t\t\t\t\n\t\t\t}catch(NumberFormatException ex)\n\t\t\t{\n\t\t\t\tview.showError(\"Nu s-a introdus o valoare valida pentru pret!\");\n\t\t\t}\n\t\t\tcatch(BadInput ex)\n\t\t\t{\n\t\t\t\tview.showError(ex.getMessage());\n\t\t\t}\n\t\t\tcatch(AssertionError er)\n\t\t\t{\n\t\t\t\tview.showError(\"Nu se poate adauga produsul deoarece acesta EXISTA deja!!!\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "@Override\n public String getText(SwccgGame game) {\n return \"Calculating sabacc total\";\n }", "public CreditsMenu(boolean mainMenu) {\r\n\t\tsuper(\"Credits\");\r\n\t\tKeyBindings kb = EpicGameContainer.MAIN.dvorak ? \r\n\t\t\t\tKeyBindings.DVORAK : KeyBindings.QWERTY;\r\n\t\tthis.items = new ArrayList<Item>();\r\n\t\tif (mainMenu) this.items.add(new CreditsItem(\"Go back to Main Menu\", 0));\r\n\t\tthis.items.add(new CreditsItem(\"Cory Li: \", \"producer, jack of all trades\"));\r\n\t\tthis.items.add(new CreditsItem(\"Alex Jiang: \",\"quest master, level designer\"));\r\n\t\tthis.items.add(new CreditsItem(\"Ruwen Liu: \",\"main artist, story writer\"));\r\n\t\tthis.items.add(new CreditsItem(\"Kaivan Wadia: \",\"AI mastermind, ability designer\"));\r\n\t\tthis.items.add(new CreditsItem(\"Sam Powers: \",\"controller, menu designer\"));\r\n\t\tthis.items.add(new CreditsItem(\"Ben Agre: \",\"networking, willpath\"));\r\n\t\tthis.items.add(new CreditsItem(\"Jackie Hung: \",\"UI designer, overworld artist\"));\r\n\t\tthis.items.add(new CreditsItem(\"Haitao Mao: \",\"architect, visionary\"));\r\n\t\t\r\n\t\tthis.items.add(new CreditsItem(\"Slick: \",\"game engine\"));\r\n\t\tthis.items.add(new CreditsItem(\"Java: \",\"best programming language\"));\r\n\t\tthis.items.add(new CreditsItem(\"Tiled: \",\"level design engine\"));\r\n\t\tthis.items.add(new CreditsItem(\"nocius: \",\"background music\"));\r\n\t\tthis.items.add(new CreditsItem(\"EternalEndeavor: \",\"background music\"));\r\n\t\tthis.items.add(new CreditsItem(\"Tainlorr: \",\"background music\"));\r\n\t\tthis.items.add(new CreditsItem(\"viewtifulday: \",\"background music\"));\r\n\t\tthis.items.add(new CreditsItem(\"GAMBIT staff: \",\"guidance\"));\r\n\t\t\r\n\t}", "private void getEarning() {\n ApiInterface apiInterface = ServiceGenerator.createService(ApiInterface.class);\n Call<GetPotentialEarn> call = apiInterface.getPotentialEarn(userId, categoryId);\n\n call.enqueue(new Callback<GetPotentialEarn>() {\n @Override\n public void onResponse(Call<GetPotentialEarn> call, Response<GetPotentialEarn> response) {\n if (response.isSuccessful()) {\n earning = response.body().getData().getCurrency() + \" \" + response.body().getData().getTotal();\n // get menu from navigationView\n Menu menu = navigationView.getMenu();\n // find MenuItem you want to change\n MenuItem nav_camara = menu.findItem(R.id.erning);\n\n // set new title to the MenuItem\n nav_camara.setTitle(Html.fromHtml(\"\"+\"<font><b>\" + earning + \"</b></font>\"+\"\"));\n\n SpannableString spanString = new SpannableString(nav_camara.getTitle().toString());\n spanString.setSpan(new ForegroundColorSpan(Color.RED), 0, spanString.length(), 0); //fix the color to white\n\n nav_camara.setTitle(spanString);\n\n }\n }\n\n @Override\n public void onFailure(Call<GetPotentialEarn> call, Throwable t) {\n// Toast.makeText(HomeActivity.this, \"\" + t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n public String getDescription() {\n return \"Digital goods price change\";\n }", "public void displayAllInfo(){\nSystem.out.println(\"Dimensions of the room - length in feet : \" + room.getLengthInFeet() + \" width in feet :\" + room.getWidthInFeet());\nSystem.out.println(\"Price per square foot :\" + pricePerSquareFoot);\nSystem.out.println(\"Total Cost :\" + calculateTotalCost());\n}", "public MenuItem add(int titleRes);", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n total = total * amount1;\n String.valueOf(amount1);\n String.valueOf(total);\n //displaying what user chose\n JOptionPane.showMessageDialog(null, total + \" seconds \" + nameItem +\" \"+ amount1 );\n }", "@Override\n public String getDescription() {\n return \"Digital goods quantity change\";\n }", "private String getBillPrice() {\n double cost = 0.00;\n\n for (MenuItem item : bill.getItems()) {\n cost += (item.getPrice() * item.getQuantity());\n cost += item.getExtraIngredientPrice();\n cost -= item.getRemovedIngredientsPrice();\n }\n\n return String.format(\"%.2f\", cost);\n }", "public void mainMenu() {\n\n System.out.println(\"\\n HOTEL RESERVATION SYSTEM\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.println(\" COMMANDS:\");\n System.out.println(\" - View Tables\\t\\t(1)\");\n System.out.println(\" - Add Records\\t\\t(2)\");\n System.out.println(\" - Update Records\\t(3)\");\n System.out.println(\" - Delete Records\\t(4)\");\n System.out.println(\" - Search Records\\t(5)\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.print(\" > \");\n }", "@Override\n protected String[] getText() {\n return new String[] {\n MyTown.instance.LOCAL.getLocalization(\"mytown.sign.sell.title\").getUnformattedText(),\n MyTown.instance.LOCAL.getLocalization(\"mytown.sign.sell.description.owner\").getUnformattedText() + \" \" + owner.getPlayerName(),\n MyTown.instance.LOCAL.getLocalization(\"mytown.sign.sell.description.price\").getUnformattedText() + price,\n restricted ? MyTown.instance.LOCAL.getLocalization(\"mytown.sign.sell.description.restricted\").getUnformattedText() : \"\"\n };\n }", "@Override\n public void printBill() {\n System.out.println(\"BILL FOR TABLE #\" + id);\n for (MenuItem item : bill.getItems()) {\n if (item.getPrice() == 0.0) {\n System.out.println(item.getQuantity() + \" \" + item.getName() + \": $\" + String.format(\"%.2f\", item.getTotal()) + \" Sent back because: \" + item.getComment() + \".\");\n } else {\n System.out.println(item.getQuantity() + \" \" + item.getName() + \": $\" + String.format(\"%.2f\", item.getTotal()));\n }\n for (Ingredient addedIng : item.getExtraIngredients()) {\n System.out.println(\"add \" + item.getQuantity() + \" \" + addedIng.getName() + \": $\" + String.format(\"%.2f\", addedIng.getPrice() * item.getQuantity()));\n }\n for (Ingredient removedIng : item.getRemovedIngredients()) {\n System.out.println(\"remove \" + item.getQuantity() + \" \" + removedIng.getName() + \": -$\" + String.format(\"%.2f\", removedIng.getPrice() * item.getQuantity()));\n }\n\n }\n System.out.println(\"Total: $\" + getBillPrice() + \"\\n\");\n }", "@Override\n public String getDescription() {\n return \"Buy currency\";\n }", "private String createOrderSummary(int price, boolean addWhippedCream, boolean addChocolate ,String name)\n {\n if (addWhippedCream==true) price+= (numOfCufee) ;\n if (addChocolate == true ) price+=(2*numOfCufee) ;\n String priceMessage = \"Name: \"+name;\n priceMessage += \"\\nAdd whipped cream? \" + addWhippedCream;\n priceMessage += \"\\nAdd chocolate? \" + addChocolate;\n priceMessage += \"\\nQuantity: \" + numOfCufee;\n priceMessage += \"\\nTotal: $\" + price;\n priceMessage += \"\\nThank you!\";\n return priceMessage;\n }", "private void trade_shortsell() {\n\t\ttext_code.setText(code);\n\t\t\n\t\tDecimalFormat df=new DecimalFormat(\"#.00\");\n\t\ttext_uprice.setText(df.format(Double.parseDouble(information[2])*1.1) );//涨停价\n\t\t\n\t\ttext_downprice.setText(df.format(Double.parseDouble(information[2])*0.9));//跌停价\n\t\t\n\t\t//getfundown().setText(homepage.get_table_userinfo().getItem(1).getText(1));//可用资金\n\t\t\n\t\t//double d1 = Double.parseDouble(homepage.get_table_userinfo().getItem(1).getText(1));\n\t\t//double d2 = Double.parseDouble(information[3]);\n\t\t//text_limitnum.setText(Integer.toString( (int)(d1/d2) ) );//可卖数量\n\t\t\n\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_Customize) {\n Intent I = new Intent(\"com.example.Scott.concessionstand.Customize\");\n startActivity(I);\n\n int numInList = grid.getChildCount();\n\n eNum.putInt(\"numInList\", numInList);\n eNum.commit();\n\n //finish();\n return true;\n }\n\n if (id == R.id.action_dailyTotal) {\n Intent I2 = new Intent(\"com.example.Scott.concessionstand.DailyTotals\");\n startActivity(I2);\n //finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "public void calculateSale()\n {\n double total = 0.00;\n int numTimbits = 0;\n int numDoughnuts = 0;\n int smallCoffee = 0;\n int mediumCoffee = 0;\n int largeCoffee = 0;\n String order;\n \n for(int i = 0; salesItem[i] != null && i < salesItem.length; i++)\n {\n if(salesItem[i] instanceof Timbit) \n {\n numTimbits = numTimbits + salesItem[i].getNumOfItems();\n }\n else if(salesItem[i] instanceof Doughnut)\n {\n numDoughnuts = numDoughnuts + salesItem[i].getNumOfItems();\n }\n else if(salesItem[i] instanceof Coffee)\n {\n if(salesItem[i].getNumOfItems()==1)\n {\n smallCoffee ++;\n }\n else if(salesItem[i].getNumOfItems()==2)\n {\n mediumCoffee ++;\n }\n else\n {\n largeCoffee ++;\n }\n }\n \n total += salesItem[i].getFinalPrice();\n }\n \n order = \"Timbits: \" + numTimbits + \"\\nDoughnuts: \" + numDoughnuts + \"\\nSmall Coffees: \" + smallCoffee + \"\\nMedium Coffees: \" + mediumCoffee + \"\\nLarge Coffees: \" + largeCoffee ; \n showText(order + String.format(\"\\nTotal Price: $%5.2f\", total), 150, 175);\n }", "public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }", "@Override\n\tpublic void printMenuHeader() {\n\t\tSystem.out.println(\"***** CHECKOUT *****\");\n\t\tSystem.out.print(\"Enter your credit card number without spaces and press enter if you confirm purchase: \");\n\n\t}", "private void printUpdateOrderMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Opdater Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opdater Medarbejder\");\n System.out.println(\"(2) Opdater Kunde\");\n System.out.println(\"(3) Opdater Produkt\");\n System.out.println(\"(4) Tilføj Produkt\");\n System.out.println(\"(5) Bekræft\");\n System.out.print(\"Valg: \");\n }", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n total = total * amount2;\n String.valueOf(total);\n //displaying what user chose\n JOptionPane.showMessageDialog(null, total + \" seconds \" + nameItem +\" \"+ amount2 );\n }", "public void amount() {\n \t\tfloat boxOHamt=boxOH*.65f*48f;\n \t\tSystem.out.printf(boxOH+\" boxes of Oh Henry ($0.65 x 48)= $%4.2f \\n\",boxOHamt);\n \t\tfloat boxCCamt=boxCC*.80f*48f;\n \t\tSystem.out.printf(boxCC+\" boxes of Coffee Crisp ($0.80 x 48)= $%4.2f \\n\", boxCCamt);\n \t\tfloat boxAEamt=boxAE*.60f*48f;\n \t\tSystem.out.printf(boxAE+\" boxes of Aero ($0.60 x 48)= $%4.2f \\n\", boxAEamt);\n \t\tfloat boxSMamt=boxSM*.70f*48f;\n \t\tSystem.out.printf(boxSM+\" boxes of Smarties ($0.70 x 48)= $%4.2f \\n\", boxSMamt);\n \t\tfloat boxCRamt=boxCR*.75f*48f;\n \t\tSystem.out.printf(boxCR+\" boxes of Crunchies ($0.75 x 48)= $%4.2f \\n\",boxCRamt);\n \t\tSystem.out.println(\"----------------------------------------------\");\n \t\t//display the total prices\n \t\tsubtotal=boxOHamt+boxCCamt+boxAEamt+boxSMamt+boxCRamt;\n \t\tSystem.out.printf(\"Sub Total = $%4.2f \\n\", subtotal);\n \t\ttax=subtotal*.07f;\n \t\tSystem.out.printf(\"Tax = $%4.2f \\n\", tax);\n \t\tSystem.out.println(\"==============================================\");\n \t\ttotal=subtotal+tax;\n \t\tSystem.out.printf(\"Amount Due = $%4.2f \\n\", total);\n \t}", "public void onDashItemClickedListener(View view) {\n\n int id = view.getId();\n\n switch (id) {\n case R.id.hm_1:\n mAboutLabel.setText(\"Deposit\");\n break;\n case R.id.hm_2:\n mAboutLabel.setText(\"withdrawals\");\n break;\n case R.id.hm_3:\n mAboutLabel.setText(\"direct transfer\");\n break;\n case R.id.hm_4:\n mAboutLabel.setText(\"money request\");\n break;\n case R.id.hm_5:\n mAboutLabel.setText(\"escrow transfer\");\n break;\n case R.id.hm_6:\n mAboutLabel.setText(\"bulk payments\");\n break;\n case R.id.hm_7:\n mAboutLabel.setText(\"recurring payments\");\n break;\n case R.id.hm_8:\n mAboutLabel.setText(\"invoicing\");\n break;\n case R.id.hm_9:\n mAboutLabel.setText(\"currency exchange\");\n break;\n case R.id.hm_10:\n mAboutLabel.setText(\"utility bills\");\n break;\n case R.id.hm_11:\n mAboutLabel.setText(\"njangi\");\n break;\n case R.id.hm_12:\n mAboutLabel.setText(\"piggy wallets\");\n break;\n case R.id.hm_13:\n mAboutLabel.setText(\"cash-flow agents\");\n break;\n case R.id.hm_14:\n mAboutLabel.setText(\"donations\");\n break;\n case R.id.hm_15:\n mAboutLabel.setText(\"referral system\");\n break;\n }\n\n mAboutScreen.setVisibility(View.VISIBLE);\n }" ]
[ "0.63313407", "0.6317473", "0.6220084", "0.62043643", "0.61672884", "0.6147984", "0.61334246", "0.6129875", "0.60569614", "0.6016636", "0.60105413", "0.60044044", "0.5986575", "0.5985364", "0.59846747", "0.5959139", "0.59496444", "0.5949218", "0.5934148", "0.5925982", "0.5921426", "0.5911716", "0.59111977", "0.590785", "0.5907491", "0.5869483", "0.5850676", "0.5831563", "0.5822872", "0.58191234", "0.5815071", "0.5812087", "0.5803113", "0.5800034", "0.57967234", "0.57963115", "0.57960755", "0.5788841", "0.5785634", "0.57848287", "0.5777906", "0.57746863", "0.5761745", "0.5750366", "0.57486606", "0.57440853", "0.5737578", "0.5735143", "0.57303315", "0.57285243", "0.5724308", "0.57241136", "0.57224613", "0.5715972", "0.57101357", "0.570143", "0.5693506", "0.5693343", "0.56874466", "0.5686824", "0.56807417", "0.5676858", "0.56768286", "0.56669587", "0.56643337", "0.5658808", "0.5657794", "0.5647784", "0.56451315", "0.5640343", "0.5638495", "0.56323427", "0.56277686", "0.56269777", "0.56254435", "0.56148976", "0.5612521", "0.5602548", "0.5596386", "0.5590872", "0.5590476", "0.5588776", "0.5582417", "0.55819297", "0.55785525", "0.55768853", "0.5571464", "0.55694425", "0.55685", "0.556775", "0.55658823", "0.55602306", "0.5557592", "0.5555676", "0.5554719", "0.55513775", "0.55494934", "0.55483484", "0.5547416", "0.5544298", "0.55442315" ]
0.0
-1
When an items sells it will take away 1 item from the set quanity I make
public void itemsSold() { quanitySnacks--; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sell() {\n for (Company x : _market.getCompanies()) {\n if (x.getRisk() > _confidence || x.numLeft() < 3 || x.getRisk() < _confidence - 15){\n if (_stocks.get(x) == 1) {\n _stocks.remove(x);\n } else {\n _stocks.put(x, _stocks.get(x) - 1);\n }\n _money += x.getPrice();\n x.gain();\n break;\n } else {\n _happy = true;\n }\n }\n }", "private void buy() {\n if (asset >= S_I.getPirce()) {\n Item item = S_I.buy();\n asset -= item.getPrice();\n S_I.setAsset(asset);\n } else {\n System.out.println(\"cannot afford\");\n }\n }", "@Test\n\tpublic void testQuality1SellInUnder0() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Sulfuras, Hand of Ragnaros\", -11, 1));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality remains the same\n\t\tassertEquals(\"Quality with quality 0 Sulfuras\", 1, quality);\n\t}", "@Test\n public void notSell() {\n Game game = Game.getInstance();\n Player player = new Player(\"ED\", 4, 4, 4,\n 4, SolarSystems.GHAVI);\n game.setPlayer(player);\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(2, Goods.Water));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(1, Goods.Food));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(0, Goods.Furs));\n CargoItem good = game.getPlayer().getShip().getShipCargo().get(2);\n \n int oldCredits = game.getPlayer().getCredits();\n good.getGood().sell(good.getGood(), 1);\n \n CargoItem water = game.getPlayer().getShip().getShipCargo().get(0);\n CargoItem food = game.getPlayer().getShip().getShipCargo().get(1);\n water.setQuantity(2);\n food.setQuantity(1);\n good.setQuantity(0);\n //int P = good.getGood().getPrice(1);\n int curr = game.getPlayer().getCredits();\n //boolean qn = water.getQuantity() == 2 && food.getQuantity() == 1 && good.getQuantity() == 0;\n boolean check = water.getQuantity() == 2;\n System.out.print(curr);\n assertEquals(curr, oldCredits);\n }", "@Test\n void conjuredItems() {\n int originalSellIn = 10;\n int originalQuality = 10;\n\n Item[] items = new Item[]{new Item(\"Conjured Mana Cake\", originalSellIn, originalQuality)};\n GildedRose app = new GildedRose(items);\n app.updateQuality();\n\n assertEquals(originalQuality - 2, app.items[0].quality, \"Quality of \\\"Conjured\\\" item should decrease twice as fast\");\n }", "private void condenseShoppingCart()\n {\n for(int d = 0; d < PersistentData.ArryShoppingCartItemNo.size(); d++)\n {\n int numberofItems = 0;\n\n boolean itemNoAlreadyCondensed = false;\n if(CondensedShoppingCart.contains(PersistentData.ArryShoppingCartItemNo.get(d)))\n {\n itemNoAlreadyCondensed = true;\n }\n if(itemNoAlreadyCondensed == false)\n {\n for(int y = 0; y < PersistentData.ArryShoppingCartItemNo.size(); y++)\n {\n if(PersistentData.ArryShoppingCartItemNo.get(d) == PersistentData.ArryShoppingCartItemNo.get(y))\n {\n numberofItems++;\n }\n }\n CondensedShoppingCart.add(PersistentData.ArryShoppingCartItemNo.get(d));\n ShoppingCartItemQuantities.add(numberofItems);\n }\n }\n }", "@SuppressWarnings(\"unused\")\n\tpublic void shift() {\n\t\tint totalItems = 0;\n\t\tint highestSlot = 0;\n\t\tfor (int i = 0; i < summonedFamiliar.storeCapacity; i++) {\n\t\t\tif (burdenedItems[i] != 0) {\n\t\t\t\ttotalItems++;\n\t\t\t\tif (highestSlot <= i) {\n\t\t\t\t\thighestSlot = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i <= highestSlot; i++) {\n\t\t\tif (burdenedItems[i] == 0) {\n\t\t\t\tboolean stop = false;\n\t\t\t\tfor (int k = i; k <= highestSlot; k++) {\n\t\t\t\t\tif (burdenedItems[k] != 0 && !stop) {\n\t\t\t\t\t\tint spots = k - i;\n\t\t\t\t\t\tfor (int j = k; j <= highestSlot; j++) {\n\t\t\t\t\t\t\tburdenedItems[j - spots] = burdenedItems[j];\n\t\t\t\t\t\t\tstop = true;\n\t\t\t\t\t\t\tburdenedItems[j] = 0;\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 sellItem(int i){\n Product p = stock.get(i);\n if(p.getQuantity() > 0) {\n if(getCustomerMoney() > p.getCost()) {\n p.decreaseQuantity(1);\n for (Coin c : customerMoney) {\n bank.add(c);\n }\n customerMoney = new ArrayList<>();\n System.out.println(\"1 \" + p.getName() + \" was bought.\");\n } else {\n System.out.println(\"Insufficient Funds...\");\n }\n } else {\n System.out.println(stock.get(i).getName() + \" is out of stock...\");\n }\n }", "private void drink()\n { \n if(i.item3 == true && i.used == false)\n {\n p.energy += 70;\n i.item3 = false;\n i.used = true;\n System.out.println(\"Energy: \" + p.energy);\n }\n else if(i.used == true && i.item3 == false) \n {\n System.out.println(\"You already drank a redbull!\"); \n }\n else if(i.item3 == false && i.used == false)\n {\n System.out.println(\"no more drinks left!\");\n }\n }", "@Test\n\tpublic void testQuality0SellInUnder0() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Sulfuras, Hand of Ragnaros\", -11, 0));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality remains the same\n\t\tassertEquals(\"Quality with quality 0 Sulfuras\", 0, quality);\n\t}", "private void sellItem(ShopItem item) {\n if (!world.ifHasItem(item.getName())) {\n System.out.println(\"You don't have Item : \" + item.getName());\n return;\n }\n world.removeItem(item.getName());\n int gold = world.getCharacter().getGold().get();\n world.getCharacter().setGold(gold + item.getPrice());\n System.out.println(\"You have sold Item : \" + item.getName());\n }", "public void sellItem(String itemName) {\n\t\t// \"Towels\"\n\t\t\n\t\tfor (int i = 0; i < itemsInStock.size(); i++) {\n\t\t\tItem item = itemsInStock.get(i);\n\t\t\tif (item.name.equals(itemName)) {\t\t\n\t\t\t\titem.amount = item.amount - 1;\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "public void smeltItem()\n {\n if (this.canSmelt())\n {\n ItemStack var1 = FurnaceRecipes.smelting().getSmeltingResult(this.furnaceItemStacks[0]);\n\n if (this.furnaceItemStacks[2] == null)\n {\n this.furnaceItemStacks[2] = var1.copy();\n }\n else if (this.furnaceItemStacks[2].isItemEqual(var1))\n {\n ++this.furnaceItemStacks[2].stackSize;\n }\n\n --this.furnaceItemStacks[0].stackSize;\n\n if (this.furnaceItemStacks[0].stackSize <= 0)\n {\n this.furnaceItemStacks[0] = null;\n }\n }\n }", "@Test\n\tpublic void testQualityWithSellInUnder0Concert() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Backstage passes to a TAFKAL80ETC concert\", -1, 100));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality has decreased to 0\n\t\tassertEquals(\"Quality with sellIn under 0 concert passes\", 0, quality);\n\t}", "@Test\n\tvoid purchaseTest() {\n\t\ttestCrew.setMoney(10000);\n\t\tfor(MedicalItem item: itemList) {\n\t\t\tint currentMoney = testCrew.getMoney();\n\t\t\titem.purchase(testCrew);\n\t\t\tassertEquals(testCrew.getMoney(), currentMoney - item.getPrice());\n\t\t\tassertTrue(testCrew.getMedicalItems().get(0).getClass().isAssignableFrom(item.getClass()));\n\t\t\ttestCrew.removeFromMedicalItems(testCrew.getMedicalItems().get(0));\n\t\t}\n\t}", "public void dropItem(String secondWord)\n {\n if(secondWord == null){\n System.out.println(\"Drop what?\");\n }\n else{\n if(!inventory.isEmpty()){\n boolean found = false;\n for(int i = 0; i < inventory.size() && !found; i++){\n Item itemToDrop = inventory.get(i);\n if(itemToDrop.getId().equals(secondWord)){\n if(itemToDrop.getId().equals(\"wheelchair\")){\n maxWeight = 5;\n for(Item patient : inventory){\n if(patient.getId().equals(\"patient\")){\n patient.changePickUpItem(false);\n }\n }\n }\n if(itemToDrop.getId().equals(\"patient\")){\n itemToDrop.changePickUpItem(false);\n } \n currentRoom.addItem(itemToDrop);\n inventoryWeight -= itemToDrop.getItemWeight();\n inventory.remove(itemToDrop);\n found = true;\n System.out.println(\"You have droped the item: \" + itemToDrop.getId() + \".\");\n }\n }\n }\n else{\n System.out.println(\"Your inventory is empty.\");\n }\n }\n }", "@Test\n\tpublic void testQualityWithSellInUnder0() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Conjured Mana Cake\", -1, 6));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality has decreased by two\n\t\tassertEquals(\"Quality with sellIn under 0 Conjured Mana Cake\", 4, quality);\n\t}", "public void Restock() {\n for (Ingredient ingredient : stock.keySet()) {\n stock.put(ingredient, inventoryMax);\n }\n }", "public void sellProduct(){\n if(quantity > 0)\n this.quantity -= 1;\n else\n throw new IllegalArgumentException(\"Cannot sell \"+ this.model +\" with no inventory\");\n\n }", "@Test\n\tpublic void testQualityWithSellInUnder0QualityUnder50Brie() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Aged Brie\", -1, 40));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality has increased by 2\n\t\tassertEquals(\"Quality with sellIn under 0 brie\", 42, quality);\n\t}", "@SuppressWarnings(\"FeatureEnvy\")\n @SuppressLint(\"SetTextI18n\")\n @Override\n public void sellItem(String goods, int price) {\n @SuppressWarnings(\"ChainedMethodCall\") int max = player.getInven().get(goods.toLowerCase());\n if ((max - Integer.parseInt(inputStr)) >= 0) {\n player.getInven().put(goods.toLowerCase(), player.getInven().get(goods.toLowerCase())\n -Integer.parseInt(inputStr));\n player.setCargo(player.getCargo() - Integer.parseInt(inputStr));\n player.setCredit(player.getCredit() + (Integer.parseInt(inputStr) * price));\n bay.setText(String.valueOf(player.getCargo()) + \"/\" + player.getSpaceship().getBay());\n credit.setText(String.valueOf(player.getCredit()) + \" Cr\");\n setupInverntory();\n Toast.makeText(getApplicationContext(), \"You sold \" + inputStr + \" \" + goods,\n Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(getApplicationContext(),\n \"You can not sell anymore. Check your bay.\", Toast.LENGTH_LONG).show();\n }\n }", "public void popItems() {\n\t\t\n\t\tItemList.add(HPup);\n\t\tItemList.add(SHPup);\n\t\tItemList.add(DMGup);\n\t\tItemList.add(SDMGup);\n\t\tItemList.add(EVup);\n\t\tItemList.add(SEVup);\n\t\t\n\t\trandomDrops.add(HPup);\n\t\trandomDrops.add(SHPup);\n\t\trandomDrops.add(DMGup);\n\t\trandomDrops.add(SDMGup);\n\t\trandomDrops.add(EVup);\n\t\trandomDrops.add(SEVup);\n\t\t\n\t\tcombatDrops.add(SHPup);\n\t\tcombatDrops.add(SDMGup);\n\t\tcombatDrops.add(SEVup);\n\t}", "@Test\n void sellingDatePast() {\n int originalQuality = 10;\n Item[] items = new Item[]{\n new Item(\"single\", 5, originalQuality),\n new Item(\"double\", -1, originalQuality)\n };\n GildedRose app = new GildedRose(items);\n app.updateQuality();\n\n assertEquals(\"single\", app.items[0].name);\n assertTrue(originalQuality > app.items[0].quality, \"Quality should've dropped\");\n assertEquals(originalQuality - 1, app.items[0].quality, \"Quality should've dropped regularly\");\n\n assertEquals(\"double\", app.items[1].name);\n assertTrue(originalQuality > app.items[1].quality, \"Quality should've dropped\");\n assertEquals(originalQuality - 2, app.items[1].quality, \"Quality should've dropped twice as much\");\n }", "public void removeItem(String itemName, int Qty) {\n if (checkExist(itemName, Qty) == true) {\n int i;\n //System.out.println(checkExist(itemName));\n for (i = 0; i < inventory.size(); i++) {\n Map<String, Object> removedItem = new HashMap<>();\n removedItem = inventory.get(i);\n\n if (itemName.equals(removedItem.get(\"Name\").toString())) {\n int a = Integer.parseInt((String) removedItem.get(\"Amount\"));\n removedItem.put(\"Amount\", a - Qty);\n\n if (a - Qty < 1) {\n removedItem.put(\"Existence\", \"N\");\n }\n }\n }\n } else {\n System.out.println(\"Item \" + itemName + \" is not available.\");\n for (int i = 0; i < inventory.size(); i++) {\n Map<String, Object> removedItem = new HashMap<>();\n removedItem = inventory.get(i);\n\n if (itemName.equals(removedItem.get(\"Name\").toString())) {\n System.out.println(\"Since item \" + itemName + \"'s amout is not enough, try less amount.\");\n }\n }\n }\n outPutFile();\n }", "@Override\n public void sell(double limitPrice, int quantity) {\n Boolean allSold = false;\n Iterator iter1 = buyOrders.entrySet().iterator();\n while(iter1.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry)iter1.next();\n if(limitPrice <= (Double)entry.getKey()) {\n if(quantity < (Integer)entry.getValue()) {\n allSold = true;\n buyOrders.put((Double)entry.getKey(),(Integer)entry.getValue()-quantity) ;\n quantity =0;\n break;\n }\n }\n }\n if(!allSold){\n if(sellOrders.containsKey(limitPrice)) sellOrders.put(limitPrice,sellOrders.get(limitPrice) + quantity);\n else sellOrders.put(limitPrice,quantity);\n }\n cleanUp();\n\n\n }", "@Override\n protected void dropFewItems(boolean hit, int looting) {\n super.dropFewItems(hit, looting);\n if (hit && (this.rand.nextInt(3) == 0 || this.rand.nextInt(1 + looting) > 0)) {\n Item drop = null;\n switch (this.rand.nextInt(5)) {\n case 0:\n drop = Items.gunpowder;\n break;\n case 1:\n drop = Items.sugar;\n break;\n case 2:\n drop = Items.spider_eye;\n break;\n case 3:\n drop = Items.fermented_spider_eye;\n break;\n case 4:\n drop = Items.speckled_melon;\n break;\n }\n if (drop != null) {\n this.dropItem(drop, 1);\n }\n }\n }", "public void use(Consume item)\r\n {\r\n int gain = item.getRating();\r\n health += gain;\r\n \r\n if (health > maxHealth)\r\n health = maxHealth;\r\n \r\n say(\"I gained \" + gain + \" health by using \" + item.getName() + \" and now have \" + health + \"/\" + maxHealth);\r\n \r\n items.remove(item);\r\n }", "public void sell(int number) {\r\n quantity -= number;\r\n }", "public void buy() throws CannotAffordException {\r\n\t\tGame game = Game.getInstance();\r\n\t\tgame.decreaseBudget(price);\r\n\t\tgame.getInventory().add(id);\r\n\t}", "@Test\n\tpublic void testQualityOver50SellInUnder0() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Aged Brie\", -11, 51));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality remains the same\n\t\tassertEquals(\"Quality with quality 0 Brie\", 51, quality);\n\t}", "@Override\n\tpublic int buy(Weapon item) {\n\t\treturn 0;\n\t}", "public void sellItem(int id, int q)\n\t{\n\t\t/* If the player isn't shopping, ignore this */\n\t\tif(m_currentShop == null)\n\t\t\treturn;\n\t\tif(m_bag.containsItem(id) > -1)\n\t\t{\n\t\t\tm_money = m_money + m_currentShop.sellItem(id, q);\n\t\t\tm_bag.removeItem(id, q);\n\t\t\t/* Tell the client to remove the item from the player's inventory. */\n\t\t\tServerMessage message = new ServerMessage(ClientPacket.REMOVE_ITEM_BAG);\n\t\t\tmessage.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\tmessage.addInt(q);\n\t\t\tgetSession().Send(message);\n\t\t\tupdateClientMoney();\n\t\t\t/* Let player know he sold the item. */\n\t\t\tServerMessage sell = new ServerMessage(ClientPacket.SOLD_ITEM);\n\t\t\tsell.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\tgetSession().Send(sell);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/* Return You don't have that item, fool! */\n\t\t\tServerMessage message = new ServerMessage(ClientPacket.DONT_HAVE_ITEM);\n\t\t\tmessage.addString(GameServer.getServiceManager().getItemDatabase().getItem(id).getName());\n\t\t\tgetSession().Send(message);\n\t\t}\n\t}", "public void sell() throws UnavailableObjectException {\r\n\t\tGame game = Game.getInstance();\r\n\t\tgame.increaseBudget(getSellValue());\r\n\t\tgame.getInventory().take(id);\r\n\t}", "void sell(String bookTitle, int numOfCopies){\n for(int i = 0;i<books.size();i++)\r\n {\r\n Book bk = books.get(i);\r\n if(bk.bookTitle == bookTitle)\r\n {\r\n bk.numOfCopies -= numOfCopies; \r\n }\r\n }\r\n \r\n }", "public void smelt() {\n if (this.canSmelt()) {\n ItemStack itemstack = FurnaceRecipes.instance().getSmeltingResult(this.items[0]);\n if (this.items[1] == null) {\n this.items[1] = itemstack.copy();\n } else if (this.items[1].getItem() == itemstack.getItem()) {\n this.items[1].stackSize += itemstack.stackSize; // Forge BugFix:\n // Results may\n // have multiple\n // items\n }\n\n --this.items[0].stackSize;\n\n if (this.items[0].stackSize <= 0) {\n this.items[0] = null;\n }\n // TODO: Enable after update\n //energy.extractEnergy(1600, false);\n }\n }", "@Override\n protected void dropFewItems(boolean hit, int looting) {\n super.dropFewItems(hit, looting);\n for (int i = this.rand.nextInt(2 + looting); i-- > 0;) {\n this.dropItem(Items.ender_pearl, 1);\n }\n }", "@Test\n\tpublic void testConsertPassQualityWithSellInUnder6() {\n\t\tGildedRose inn = new GildedRose();\n\t\tinn.setItem(new Item(\"Backstage passes to a TAFKAL80ETC concert\", 5, 20));\n\t\tinn.oneDay();\n\t\t\n\t\t//access a list of items, get the quality of the one set\n\t\tList<Item> items = inn.getItems();\n\t\tint quality = items.get(0).getQuality();\n\t\t\n\t\t//assert quality has increased by three (perhaps should be one)\n\t\tassertEquals(\"Quality with sellIn under 6 consert backstage passes\", 23, quality);\n\t}", "@Test\n public void testSell() {\n Game game = Game.getInstance();\n Player player = new Player(\"Chisom\", 2, 2, 2,\n 2, SolarSystems.SOMEBI);\n game.setPlayer(player);\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(2, Goods.Water));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(1, Goods.Food));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(1, Goods.Furs));\n CargoItem good = game.getPlayer().getShip().getShipCargo().get(2);\n good.getGood().sell(good.getGood(), 1);\n CargoItem water = game.getPlayer().getShip().getShipCargo().get(0);\n water.setQuantity(2);\n CargoItem food = game.getPlayer().getShip().getShipCargo().get(1);\n food.setQuantity(1);\n good.setQuantity(0);\n int P = good.getGood().getPrice(1);\n int total = game.getPlayer().getCredits();\n boolean quan = water.getQuantity() == 2 && food.getQuantity() == 1 && good.getQuantity() == 0;\n boolean check = water.getQuantity() == 2;\n System.out.print(total);\n assertTrue(quan && total == 1560);\n //assertEquals(true, quan && total == 1560);\n }", "public void buyItem(int id, int q)\n\t{\n\t\t/* If the player isn't shopping, in a normal shop */\n\t\tif(m_currentShop == null)\n\t\t{\n\t\t\t/* First, check if the player can afford this */\n\t\t\tint price = GameServer.getServiceManager().getItemDatabase().getItem(id).getPrice();\n\t\t\tif(m_money - q * price >= 0)\n\t\t\t{\n\t\t\t\t/* Finally, if the item is in stock, buy it */\n\n\t\t\t\tm_money = m_money - q * price;\n\t\t\t\tm_bag.addItem(id, q);\n\t\t\t\tupdateClientMoney();\n\t\t\t\t/* Let player know he bought the item. */\n\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.BOUGHT_ITEM);\n\t\t\t\tmessage.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\tgetSession().Send(message);\n\t\t\t\t/* Update player inventory. */\n\t\t\t\tServerMessage update = new ServerMessage(ClientPacket.UPDATE_ITEM_TOT);\n\t\t\t\tupdate.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\tupdate.addInt(q);\n\t\t\t\tgetSession().Send(update);\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* Return You have no money, fool! */\n\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.NOT_ENOUGH_MONEY);\n\t\t\t\tgetSession().Send(message);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif(m_bag.hasSpace(id))\n\t\t{\n\t\t\t/* First, check if the player can afford this */\n\t\t\tif(m_money - q * m_currentShop.getPriceForItem(id) >= 0)\n\t\t\t{\n\t\t\t\t/* Finally, if the item is in stock, buy it */\n\t\t\t\tif(m_currentShop.buyItem(id, q))\n\t\t\t\t{\n\t\t\t\t\tm_money = m_money - q * m_currentShop.getPriceForItem(id);\n\t\t\t\t\tm_bag.addItem(id, q);\n\t\t\t\t\tupdateClientMoney();\n\t\t\t\t\t/* Let player know he bought the item. */\n\t\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.BOUGHT_ITEM);\n\t\t\t\t\tmessage.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\t\tgetSession().Send(message);\n\t\t\t\t\t/* Update player inventory. */\n\t\t\t\t\tServerMessage update = new ServerMessage(ClientPacket.UPDATE_ITEM_TOT);\n\t\t\t\t\tupdate.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\t\tupdate.addInt(1);\n\t\t\t\t\tgetSession().Send(update);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* Return You have no money, fool! */\n\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.NOT_ENOUGH_MONEY);\n\t\t\t\tgetSession().Send(message);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/* Send You cant carry any more items! */\n\t\t\tServerMessage message = new ServerMessage(ClientPacket.POCKET_FULL);\n\t\t\tgetSession().Send(message);\n\t\t}\n\t}", "public FinalMysteryItem() {\n int randomIndex = new Random().nextInt(7);\n item = new Item(listOfPossibleNames[randomIndex], PRICE_TO_BUY);\n }", "@Override\n public void buy(double limitPrice, int quantity) {\n Boolean allBought = false;\n Iterator iter1 = sellOrders.entrySet().iterator();\n while(iter1.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry) iter1.next();\n if(limitPrice >= (Double)entry.getKey()) {\n if(quantity <= (Integer)entry.getValue()) {\n allBought = true;\n sellOrders.put((Double)entry.getKey(),(Integer)entry.getValue()-quantity) ;\n }\n else {\n quantity = quantity - (Integer)entry.getValue();\n sellOrders.put((Double)entry.getKey(),0);\n }\n }\n\n }\n if(!allBought) {\n\n if (buyOrders.containsKey(limitPrice))\n buyOrders.put(limitPrice, buyOrders.get(limitPrice) + quantity);\n else\n buyOrders.put(limitPrice, quantity);\n }\n cleanUp();\n\n }", "public void run() {\n Scanner sc=new Scanner(System.in);\n int numOfBox=sc.nextInt();\n int handCap=sc.nextInt();\n int boxCap=sc.nextInt();\n int numOfQuery=sc.nextInt();\n _boxes.add(new Box(0,handCap));\n for(int i=1;i<=numOfBox;i++){\n _boxes.add(new Box(i,boxCap));\n }\n for(int j=0;j<numOfQuery;j++){\n String query=sc.next();\n if(query.equals(\"purchase\")){\n String name=sc.next();\n int value=sc.nextInt();\n int boxNum=0;\n Item item=new Item(name,value);\n _items.add(item);\n for(int k=0;k<_boxes.size();k++){\n if(_boxes.get(k).getCapacity()>_boxes.get(k).getSize()){\n boxNum=k;\n _boxes.get(k).deposit(item);\n item.setLocation(_boxes.get(k));\n break;\n\n }\n }\n if(boxNum==0){\n System.out.println(\"item \"+name+\" is now being held\");\n }\n else{\n System.out.println(\"item \"+name+\" has been deposited to box \"+boxNum);\n } \n }\n if(query.equals(\"deposit\")){\n boolean hasfound=false;\n String name=sc.next();\n for(int i=0;i<_items.size();i++){\n if(_items.get(i).getName().equals(name)){\n hasfound=true;\n Item item=_items.get(i);\n if(item.getLocation().getNumber()!=0){\n System.out.println(\"item \"+name+\" is already in storage\");\n }\n else{\n for(int a=1;a<_boxes.size();a++){\n if(_boxes.get(a).getCapacity()>_boxes.get(a).getSize()){\n int boxNum=a;\n _boxes.get(a).deposit(item);\n _boxes.get(0).withdraw(item);\n item.setLocation(_boxes.get(a));\n System.out.println(\"item \"+name+\" has been deposited to box \"+boxNum);\n break;\n }\n }\n }\n break; \n }\n }\n if(hasfound==false){\n System.out.println(\"item \"+name+\" does not exist\");\n } \n }\n if(query.equals(\"withdraw\")){\n boolean hasfound=false;\n String name=sc.next();\n for(int i=0;i<_items.size();i++){\n if(_items.get(i).getName().equals(name)){\n hasfound=true;\n Item item=_items.get(i);\n if(item.getLocation().getNumber()==0){\n System.out.println(\"item \"+name+\" is already being held\");\n }\n else{\n if(_boxes.get(0).isFull()){\n System.out.println(\"cannot hold any more items\");\n }\n else{\n Box location=item.getLocation();\n location.withdraw(item);\n _boxes.get(0).deposit(item);\n item.setLocation(_boxes.get(0));\n System.out.println(\"item \"+name+\" has been withdrawn\");\n } \n }\n break; \n \n }\n } \n if(hasfound==false){\n System.out.println(\"item \"+name+\" does not exist\");\n }\n }\n if(query.equals(\"location\")){\n String name=sc.next();\n boolean hasfound=false;\n for(int i=0;i<_items.size();i++){\n if(_items.get(i).getName().equals(name)){\n hasfound=true;\n Item item=_items.get(i);\n if(item.getLocation().getNumber()==0){\n System.out.println(\"item \"+name+\" is being held\");\n }\n else{\n int num=item.getLocation().getNumber();\n System.out.println(\"item \"+name+\" is in box \"+num);\n } \n break; \n }\n \n }\n if(hasfound==false){\n System.out.println(\"item \"+name+\" does not exist\");\n } \n }\n if(query.equals(\"valuable\")){\n ArrayList<String> itemName=new ArrayList<String>();\n int highest=0;\n for(int i=0;i<_items.size();i++){\n if(_items.get(i).getValue()>highest){\n highest=_items.get(i).getValue();\n }\n \n }\n for(int b=0;b<_items.size();b++){\n if(_items.get(b).getValue()==highest){\n itemName.add(_items.get(b).getName());\n }\n }\n Collections.sort(itemName);\n System.out.println(itemName.get(0));\n } \n\n } \n }", "@Test\n\tpublic void getCostForDuplicateItem() {\n\t\tfinal BasketItemImpl bi = new BasketItemImpl();\n\t\tbi.addBasketItem(\"banana\", 2);\n\t\tbi.addBasketItem(\"banana\", 4);\n\t\tbi.addBasketItem(\"lemon\", 3);\n\n\t\tfinal int fc = bi.getAllBasketItems().get(\"banana\");\n\t\tassertTrue(Integer.compare(6, fc) == 0);\n\n\t}", "@Test\n void agedBrie() {\n int originalSellIn = 10;\n int originalQuality = 10;\n\n Item[] items = new Item[]{new Item(\"Aged Brie\", originalSellIn, originalQuality)};\n GildedRose app = new GildedRose(items);\n app.updateQuality();\n\n assertEquals(\"Aged Brie\", app.items[0].name, \"Item name should match expected\");\n assertTrue(originalSellIn > app.items[0].sellIn, \"sellIn date should decrease in value\");\n assertTrue(originalQuality < app.items[0].quality, \"Quality of \\\"Aged Brie\\\" should increase\");\n }", "public void setReduceStock(int borrowedHowMany, int itemSearchIndex) \n\t{\n\t\tinStockCounts[itemSearchIndex] -= borrowedHowMany; \n\t}", "private void unequip(Equip e)\r\n { \r\n if (e.getType()==Equip.WEAPON)\r\n {\r\n attack -= e.getRating();\r\n items.add(e);\r\n }\r\n else if (e.getType() == Equip.ARMOR)\r\n {\r\n items.add(e);\r\n defense -= e.getRating();\r\n }\r\n }", "@Test\n void legendaryItems() {\n int[] sellDates = new int[]{-5, 0, 5};\n Item[] items = new Item[]{\n new Item(\"Sulfuras, Hand of Ragnaros\", sellDates[0], 80),\n new Item(\"Sulfuras, Hand of Ragnaros\", sellDates[1], 80),\n new Item(\"Sulfuras, Hand of Ragnaros\", sellDates[2], 80)\n };\n GildedRose app = new GildedRose(items);\n app.updateQuality();\n\n for (int i = 0; i < items.length; i++) {\n assertEquals(80, app.items[i].quality, \"Quality should be fixed\");\n assertEquals(sellDates[i], app.items[i].sellIn, \"SellIn dates should remain the same\");\n }\n }", "public void buyItem() {\n List<Gnome> cart = user.getCart();\n String message = \"\";\n List<Gnome> bought = shopFacade.buyGnomes(cart);\n if (!bought.isEmpty()) {\n message = bought.size() + \" items bought\";\n } else {\n message = \"Could not buy any items\";\n }\n userFacade.assignBought(user, bought);\n user.getCart().removeAll(bought);\n cart.removeAll(bought);\n userFacade.setCartToUser(user.getUsername(), cart);\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Gnomes\", message);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n }", "public TransationRecords sellProduct(String species, int number) {\n HashMap<String , List<HashMap<String,String >>> productInfo = new HashMap<>();\n productInfo = productList.getProductInfo();\n if (species.equals(\"CHICKEN\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.chickenList.size(); i++) {\n if (productList.chickenList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.chickenList.size(); i++) {\n int value = new Chicken().getSellValue();\n if (productList.chickenList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n hasSoldNumber++;\n productList.chickenList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"CHICKEN\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"DOG\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.dogList.size(); i++) {\n if (productList.dogList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.dogList.size(); i++) {\n int value = new Dog().getSellValue();\n if (productList.dogList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n hasSoldNumber++;\n productList.dogList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"DOG\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"PERCH\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.perchList.size(); i++) {\n if (productList.perchList.get(number).getLifestage() == Animal.LifeStage.ADULT) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.perchList.size(); i++) {\n int value = new Perch().getSellValue();\n if (productList.perchList.get(i).getLifestage() == Animal.LifeStage.ADULT) {\n hasSoldNumber++;\n productList.perchList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"PERCH\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"APPLE\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.appleList.size(); i++) {\n if (productList.appleList.get(i).getPlantState().equals(\"Harvestable\")) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.appleList.size(); i++) {\n int value = new Apple().getSellValue();\n if (productList.appleList.get(i).getPlantState().equals(\"Harvestable\")) {\n hasSoldNumber++;\n productList.appleList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"APPLE\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"CHERRY\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.cherryList.size(); i++) {\n if (productList.cherryList.get(i).getPlantState().equals(\"Harvestable\")) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.cherryList.size(); i++) {\n int value = new Cherry().getSellValue();\n if (productList.cherryList.get(i).getPlantState().equals(\"Harvestable\")) {\n hasSoldNumber++;\n productList.cherryList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"CHERRY\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"POTATO\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.potatoList.size(); i++) {\n if (productList.potatoList.get(i).getPlantState().equals(\"Harvestable\")) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.potatoList.size(); i++) {\n int value = new Potato().getSellValue();\n if (productList.potatoList.get(i).getPlantState().equals(\"Harvestable\")) {\n hasSoldNumber++;\n productList.potatoList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"POTATO\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n } else if (species.equals(\"TOMATO\")) {\n int numberBeSold = 0;\n for (int i = 0; i < productList.tomatoList.size(); i++) {\n if (productList.tomatoList.get(i).getPlantState().equals(\"Harvestable\")) {\n numberBeSold++;\n }\n }\n if (numberBeSold < number) {\n System.out.println(\"Exceeding the maximum quantity available for sale!\");\n return emptyRecords;\n }\n int hasSoldNumber = 0;\n for (int i = 0; i < productList.tomatoList.size(); i++) {\n int value = new Tomato().getSellValue();\n if (productList.tomatoList.get(i).getPlantState().equals(\"Harvestable\")) {\n hasSoldNumber++;\n productList.tomatoList.remove(i);\n this.farmOwner.addMoney(value);\n }\n if (hasSoldNumber == number) {\n return new TransationRecords(\"TOMATO\", TransationRecords.SellOrBuy.SELL,\n number, value, (int) this.farmOwner.getMoney(), productInfo);\n }\n }\n }\n return emptyRecords;\n }", "public void sell_all() {\n\t\tfor(int i = 0; i<identifiedArray.length;i++) {\n\t\t\tif(identifiedArray[i]!=null) {\n\t\t\t\tsell(i);\n\t\t\t}\n\t\t}\n\t}", "public void buy(Item item) {\n // remove money from wallet\n try { \n wallet.removeMoney(item.getPrice());\n // remove item from room\n currentRoom.removeItem(item);\n // add item to inventory\n addToInventory(item);\n } catch (IllegalArgumentException e) {\n System.err.println(\"You don't have enough money to purchase \" + item.getDescription());\n }\n\n\n }", "@Override\n\tpublic void seeSoldItem() {\n\t\tShip selectedShip = game.getSelectedShip();\n\t\tHashMap<Goods, ArrayList<String>> soldItems = selectedShip.getSoldItems();\n\t\tint index = 1;\n\t\tSystem.out.println(\"Items that has been sold: \");\n\t\tfor (HashMap.Entry<Goods, ArrayList<String>> set: soldItems.entrySet()) {\n\t\t\tString name = set.getKey().getName();\n\t\t\tint quantity = set.getKey().getQuantitySold();\n\t\t\tSystem.out.println(\"(\" + index + \") Name: \" + name + \" Quantity: \" + quantity + \" Loaction it was sold: \" + set.getValue());\n\t\t\tindex++;\n\t\t\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t\tboolean state = false;\n\t\twhile (state == false) {\n\t\t\tSystem.out.println(\"Choose your actions: \");\n\t\t\tSystem.out.println(\"(1) Go back!\");\n\t\t\ttry {\n\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\tif (selectedAction == 1) {\n\t\t\t\t\t\n\t\t\t\t\tstate = true;\n\t\t\t\t\tgame.seeShipSpec();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\n\t}", "int getSellQuantity();", "public void removeItem(Carryable g) {\r\n for (int i=0; i<numItems; i++) {\r\n if (cart[i] == g) {\r\n cart[i] = cart[numItems - 1];\r\n numItems -= 1;\r\n return;\r\n }\r\n }\r\n }", "@Override\n public void sell() {\n }", "private Item mergeItem(Item newItem, List<Item> items) throws ItemException{\r\n \t\tfor (Item item2 : items) {\r\n \t\t\tif (!item2.isBought() && item2.getName().equals(newItem.getName())) {\r\n\t\t\t\t// sum price\r\n\t\t\t\titem2.setPrice(newItem.getPrice().add(item2.getPrice()));\r\n \t\t\t\tif (newItem.getUnit() == null && item2.getUnit() == null) {\r\n \t\t\t\t\t// Both have no unit --> item has now 2 pieces.\r\n \t\t\t\t\titem2.setQuantity(BigDecimal.valueOf(2), ItemUnit.PIECE);\r\n \t\t\t\t\treturn item2;\r\n \t\t\t\t} else if (newItem.getUnit() == null && item2.getUnit() == ItemUnit.PIECE) {\r\n \t\t\t\t\t// new Item has no unit, existing item has PIECE as unit. add one piece to the existing item.\r\n \t\t\t\t\titem2.setQuantity(item2.getQuantity().add(BigDecimal.ONE), ItemUnit.PIECE);\r\n \t\t\t\t\treturn item2;\r\n \t\t\t\t} else if (newItem.getUnit() != null && newItem.getUnit() == item2.getUnit()) {\r\n \t\t\t\t\t// Both have same unit --> add them together\r\n \t\t\t\t\tBigDecimal newQuantity = newItem.getQuantity().add(item2.getQuantity());\r\n \t\t\t\t\titem2.setQuantity(newQuantity, item2.getUnit());\r\n \t\t\t\t\treturn item2; // we want to save only one item.\r\n \t\t\t\t} else if (ItemUnit.MASSES.contains(newItem.getUnit()) && ItemUnit.MASSES.contains(item2.getUnit())) {\r\n \t\t\t\t\t// Both units are masses. Convert it first to grams and then add them.\r\n \t\t\t\t\tBigDecimal mass1 = newItem.getUnit()==ItemUnit.GRAM ? newItem.getQuantity():newItem.getQuantity().multiply(THOUSAND);\r\n \t\t\t\t\tBigDecimal mass2 = item2.getUnit()==ItemUnit.GRAM ? item2.getQuantity():item2.getQuantity().multiply(THOUSAND);\r\n \t\t\t\t\tBigDecimal finalMass = mass1.add(mass2);\r\n \t\t\t\t\tItemUnit unit = ItemUnit.GRAM;\r\n \t\t\t\t\tif (finalMass.compareTo(THOUSAND) > 0){\r\n \t\t\t\t\t\tfinalMass = finalMass.divide(THOUSAND);\r\n \t\t\t\t\t\tunit = ItemUnit.KILO_GRAM;\r\n \t\t\t\t\t}\r\n \t\t\t\t\titem2.setQuantity(finalMass, unit);\r\n \t\t\t\t\treturn item2;\r\n \t\t\t\t} else {\r\n \t\t\t\t\tthrow new ItemException();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn newItem;\r\n \t}", "private void minusQuantity(TextField source, Clothing clothing) {\n clothing.setCount(-1);\n int quantity = clothing.getCount();\n double totalPriceOfClothing = 0;\n\n for (int i = 0; i < clothingArrayList.size(); i++) {\n double countOfItems = clothingArrayList.get(i).getCount();\n double clothingPricePerUnit = Double.valueOf(clothingArrayList.get(i).getPrice());\n totalPriceOfClothing += clothingPricePerUnit * countOfItems;\n\n }\n source.setText(\"\" + (quantity));\n totalPrices.setText(\"\" + totalPriceOfClothing );\n\n }", "@Override\n public int quantityDroppedWithBonus(int fortune, Random random)\n {\n if (fortune > 0 && Item.getItemFromBlock(this) != this.getItemDropped(this.getBlockState().getValidStates().iterator().next(), random, fortune))\n {\n int i = random.nextInt(fortune + 2) - 1;\n\n if (i < 0)\n {\n i = 0;\n }\n\n return this.quantityDropped(random) * (i + 1);\n }\n else\n {\n return this.quantityDropped(random);\n }\n }", "@Override\n\tpublic Weapon sell(int itemNumber) {\n\t\t\n\t\t\n\t\treturn inventory.removeItem(itemNumber);\n\t}", "public void sellHouse(){\n if(numberHouses != 0){\n owner.addMoney(costs[1]/2);\n numberHouses--;\n }\n }", "private boolean checkStock(){\n int i;\n int inventorySize = inventory.size();\n int count = 0;\n for(i = 0; i < inventorySize; i++){\n count = count + inventory.get(i).getStock();\n\n }\n //System.out.println(\"Count was: \" + count);\n if(count < 1){\n return false;\n }else{\n return true;\n }\n }", "public void dropItem(Item seekItem)\n {\n //get each item from the items's array list.\n for (Item item : items){\n if(item.getName().equals(seekItem.getName())){\n currentRoom.getInventory().getItems().add(item);\n removePlayerItem(item);\n System.out.println(\"You have placed the \"+ item.getName() +\" in the \" + currentRoom.getName() + \".\");\n }\n }\n }", "@Override\r\n\tpublic void sellItem(AbstractItemAPI item) {\n\t\titems.remove(item);\r\n\t\t\r\n\t}", "private void buyItem(ShopItem item) {\n int gold = world.getCharacter().getGold().get();\n if (world.isSurvivalMode() && item.getName().equals(\"Potion\")){\n this.potionNum = 0;\n System.out.println(\"This shop has 0 Potion left.\");\n }\n if (world.isBerserkerMode() && \n (item.getName().equals(\"Helmet\")\n || item.getName().equals(\"Shield\")\n || item.getName().equals(\"Armour\"))){\n this.defenseNum = 0;\n System.out.println(\"This shop has 0 defensive item left.\");\n }\n if (item.getPrice() > gold) {\n System.out.println(\"You don't have enough money.\");\n }\n loadItem(item.getName());\n world.getCharacter().setGold(gold - item.getPrice());\n System.out.println(\"You have bought Item : \" + item.getName() + \".\");\n }", "public void youBrokeSon(){\n\t\tcoinList.clear();\n\t}", "public void smeltItem() {\n\t\tif (this.canSmelt()) {\n\t\t\tItemStack itemstack = FurnaceRecipes.smelting().getSmeltingResult(\n\t\t\t\t\tthis.slots[0]);\n\t\t\tif (this.slots[1] == null) {\n\t\t\t\tthis.slots[1] = itemstack.copy();\n\t\t\t} else if (this.slots[1].getItem() == itemstack.getItem()) {\n\t\t\t\tthis.slots[1].stackSize += itemstack.stackSize;\n\t\t\t}\n\n\t\t\t--this.slots[0].stackSize;\n\n\t\t\tif (this.slots[0].stackSize <= 0) {\n\t\t\t\tthis.slots[0] = null;\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) throws InterruptedException {\n Item item1 = new Item(\"Coca-cola\", 200);\n System.out.println(\"Price before discount: \" + item1.getPrice());\n System.out.println(\"Price after discount: \" + item1.calculateDiscount()); //should be same price, 200, there's no doscount for this type\n\n ItemWithDiscount item2 = new ItemWithDiscount(\"Coca-cola Zero\", 2.0);\n System.out.println(\"\\nPrice before discount: \" + item2.getPrice());\n item2.setDiscount(10);\n System.out.println(\"Price after discount: \" + item2.calculateDiscount()); // 2 - 0.2 = 1.8\n\n\n //CHECK BUY PAY DISCOUNT\n BuyMorePayLess item04 = new BuyMorePayLess(\"Milk\", 10);\n BuyMorePayLess item05 = new BuyMorePayLess(\"Milk\", 10);\n BuyMorePayLess item06 = new BuyMorePayLess(\"Milk\", 1);\n item04.setBuyPayOffer(3,2);\n item04.calculateDiscount();\n\n //Check TakeItAll discount\n ItemTakeItAll item07 = new ItemTakeItAll(\"Tuna\",5.00);\n ItemTakeItAll item08 = new ItemTakeItAll(\"Tuna\",5.00);\n\n// item07.setDiscount(10);\n item07.setMinimumNumber(1);\n System.out.println(\"##################\" + item07.calculateDiscount());\n\n // USERS\n LoyalCustomer customer01 = new LoyalCustomer(\"Giorgi Tsipuria\", \"giobaski\", \"123\",\n \"Gonsiori 33\",\"55945239\");\n\n //B A S K E T S\n Basket basket01 = new Basket(\"Tartu 46\", \"Kairi\", customer01);\n basket01.insertItem(item1); //200 -> 200\n basket01.insertItem(item2); // 2.0 -> 1.8\n System.out.println(\"Total payment in basket: \" + basket01.caclulatePayment()); //201.8 + 201.8 * 0.1 = 221.98\n\n\n\n\n\n //1. Create Store\n Store store = new Store(\"Raua 16\");\n\n //2. sign into store\n Cashier currentCashier = store.cashierAuthentication();\n\n //3.\n Menu currentMenu = store.openMenu();\n\n //4. new basket\n currentMenu.openNewBasket(customer01);\n\n\n //5.Cashier starts adding items into new basket\n System.out.println(currentMenu.getBasket());\n currentMenu.getBasket().insertItem(item1);\n currentMenu.getBasket().insertItem(item2);\n\n\n System.out.println(\"######Basket By ID:\");\n currentMenu.printBasketInfoById(2);\n System.out.println(\"########\");\n\n\n //6. Calculate total price for the current basket\n currentMenu.getBasket().caclulatePayment();\n System.out.println(currentMenu.getBasket());\n System.out.println(\"currents items: \");\n System.out.println(currentMenu.getBasket().getItems());\n\n //7. Logout cashier\n Thread.sleep(10000);\n currentMenu.exit();\n\n\n // Additional features\n System.out.println(\"points of the loyal customer: \" + customer01.getPoints());\n\n System.out.println(\"Bonus for cashier: \" + currentCashier.calculateBonus() + \" Euros\");\n\n\n\n\n\n\n }", "private static void fish(ArrayList<Item> a, ItemManager im) {\n\t\t\n\t\tdouble ph = Math.random();\n\t\tSystem.out.println(\"you rolled a \" + ph);\n\t\tif( ph > 0.7) {\n\t\t\tprintItem(im,1);\n\t\t\ta.add(im.allItems[1]);\n\t\t} else if(ph > 0.03) {\n\t\t\tprintItem(im,2);\n\t\t\ta.add(im.allItems[2]);\n\t\t} else {\n\t\t\tSystem.out.println(\"Bummer! No luck!\");\n\t\t}\t\n\t}", "public void buyDecreaseDamage() {\n this.decreaseDamage++;\n }", "float getBonusItemDrop();", "private Item chooseValidItem()\n {\n\n // Sets the intial random value.\n int numberRandom = random.nextInt(items.size());\n\n while (trackItems.contains(items.get(numberRandom).getName())){\n numberRandom = random.nextInt(items.size());\n }\n\n // Loops until a unused value is assigned to numberRandom,\n // within the array list size.\n \n trackItems.push(items.get(numberRandom).getName());\n\n return items.get(numberRandom);\n }", "public void sellGoodsForStore(HashMap<Goods, Integer> interestedGoods) {\n\t\tArrayList<Goods> listInterestedGoods = accessingGoods(interestedGoods);\n\t\t\n\t\tboolean state1 = false;\n\t\twhile(state1 == false) {\n\t\t\tSystem.out.println(\"(99) Cancel sell\");\n\t\t\tprintGoods(interestedGoods, \"Goods that store want to buy: \");\n\t\t\tSystem.out.println(\"Select the goods you want to sell\");\n\t\t\tint selectedAction = scanner.nextInt();\n\t\t\ttry { \n\t\t\t\tif (selectedAction == 99) {\n\t\t\t\t\tstate1 = true;\n\t\t\t\t\tgame.goToStore();\n\t\t\t\t}\n\t\t\t\telse if (selectedAction <= interestedGoods.size() && selectedAction > 0) {\n\t\t\t\t\tGoods selectedGoods = listInterestedGoods.get(selectedAction - 1);\n\t\t\t\t\t\n\t\t\t\t\tif (game.checkAvailability(selectedGoods)){\n\t\t\t\t\t\tSystem.out.println(\"You have \" + selectedGoods.getQuantityOwned() +\" \"+ selectedGoods.getName() + \" stored in your ship!\");\n\t\t\t\t\t\tint goodsPrice = interestedGoods.get(selectedGoods);\n\t\t\t\t\t\tboolean state2 = false;\n\t\t\t\t\t\twhile(state2 == false) {\n\t\t\t\t\t\t\tSystem.out.println(\"How many do you want to sell?\" );\n\t\t\t\t\t\t\tint quantity = scanner.nextInt();\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 (game.checkQuantity(quantity, selectedGoods)) {\n\t\t\t\t\t\t\t\tstate2 = true;\n\t\t\t\t\t\t\t\tgame.sellGoods(selectedGoods, quantity, goodsPrice);\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\tSystem.out.println(\"You don't have that many quanity of \" + selectedGoods.getName());\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\tcatch (Exception e) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"You have to input an integer!\");\n\t\t\t\t\t\t\t\tscanner.nextLine();\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}\n\t\t\t\t\t\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"You don't have the item!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\t\n\t}", "protected void dropFewItems(boolean par1, int par2) {\r\n\t\tint var3 = this.rand.nextInt(3) + this.rand.nextInt(1 + par2);\r\n\t\t\r\n\t\tfor(int var4 = 0; var4 < var3; ++var4) {\r\n\t\t\tthis.dropItem(SorceryItems.goldfeather, 1);\r\n\t\t}\r\n\t\t\r\n\t\tif(this.isBurning()) {\r\n\t\t\tthis.dropItem(Items.cooked_chicken, 1);\r\n\t\t} else {\r\n\t\t\tthis.dropItem(Items.chicken, 1);\r\n\t\t}\r\n\t}", "public void decreasePrice() {\n //price halved\n //is it okay if the price becomes 0?\n itemToSell.setBuyPrice(itemToSell.getBuyPrice() / 2);\n }", "public void remove(int index){\n if (myBasket.size() == 0)\n System.out.println(\"List is empty.\");\n int i = 0 ;\n boolean isFound = false;\n Product toRemove = null;\n for (Product product: myBasket.keySet())\n {\n i++;\n if (i == index && myBasket.get(product) > 0)\n {\n isFound = true;\n toRemove = product;\n break;\n\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index!\");\n\n // now , checking how many of this product is in the basket\n\n else if (myBasket.get(toRemove) > 1){\n System.out.println(\"How many of this product do you want to give back?\");\n Scanner scanner = new Scanner(System.in);\n int num = scanner.nextInt();\n if (num < myBasket.get(toRemove)) {\n totalCost -= toRemove.getPrice() * num;\n myBasket.replace(toRemove,myBasket.get(toRemove) - num);\n for (int j = 0 ; j < num ; j++)\n inventory.updateStock(toRemove , '+');\n }\n else {\n totalCost -= toRemove.getPrice() * myBasket.get(toRemove);\n myBasket.remove(toRemove);\n for (int j = 0 ; j < myBasket.get(toRemove) ; j++)\n inventory.updateStock(toRemove,'+');\n }\n System.out.println(\"Product removed.\");\n }\n\n // there is just one of this product in basket\n\n else {\n totalCost -= toRemove.getPrice();\n myBasket.remove(toRemove);\n System.out.println(\"Product removed.\");\n inventory.updateStock(toRemove , '+');\n }\n }", "public void usePotion() {\n Potion potion = this.getInventory().getFirstPotion();\n if (potion != null){\n this.setLife(this.getLife() + potion.getGainLife());\n this.getInventory().removeItems(potion);\n }\n }", "@Override\r\n public void updatedSaleInventory(ItemAndQuantity lastItem) {\r\n }", "public void markUnsold(){\n\n myMaxRejectCountCount--;\n }", "boolean examinePaidItems(){\n\t\t\tint count = 0;\n\t\t\tif (!this.items.isEmpty()){\n\t\t\t\tfor (int i = 0; i < this.items.size(); i++){\n\t\t\t\t\tif (this.items.get(i).montaryValue != 0){\n\t\t\t\t\t\tSystem.out.print(this.items.get(i).itemName + \" ($\" + (this.items.get(i).montaryValue * -1) + \"), \");\n\t\t\t\t\t\tcount++;}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!this.receptacle.isEmpty()){//if the location has containers.\n\t\t\t\tfor (int k = 0; k < this.receptacle.size(); k++){//loops through the containers in the location\n\t\t\t\t\tif (!(this.receptacle.get(k) instanceof SpecialtyContainer)){//some containers are hidden, like the depths of the cove. \n\t\t\t\t\t\tfor (int j = 0; j < this.receptacle.get(k).contents.size(); j++){//looks for the items in the non hidden containers\n\t\t\t\t\t\t\tif (this.receptacle.get(k).contents.get(j).montaryValue < 0){//if the item needs to be bought\n\t\t\t\t\t\t\t\tSystem.out.print(this.receptacle.get(k).contents.get(j).itemName + \" ($\" + \n\t\t\t\t\t\t\t\t\t\t(this.receptacle.get(k).contents.get(j).montaryValue * -1) + \"), \");\n\t\t\t\t\t\t\t\tcount++;}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif (count == 0){//it didn't find any items you need to pay for.\n\t\t\t\tSystem.out.println(\"There's nothing here that costs money.\");\n\t\t\t\treturn false;}\n\t\t\treturn true;\n\t\t}", "@Override\r\n public Collection<Item> roll() {\r\n Collection<Item> dropItems = new ArrayList();\r\n \r\n for (LootTableItem item : this.items) {\r\n if (random.nextDouble() <= 1 / item.getChance()) {\r\n dropItems.add(item.create());\r\n }\r\n if (dropItems.size() == amount) break;\r\n }\r\n \r\n return dropItems;\r\n }", "@Override\n public void run() {\n int slotsUsed = 0;\n int potentialBananas = 0;\n RSItem[] items = Inventory.getAll();\n for (RSItem item : items) {\n // If this isn't a bone count it\n if (item.getID() < 6904 || item.getID() > 6907) {\n slotsUsed++;\n }\n else {\n // Item id bone amount\n // 6904 1\n // 6905 2\n // 6906 3\n // 6907 4\n potentialBananas += 1 + item.getID() - 6904;\n }\n }\n \n int slotsAvailable = 28 - slotsUsed;\n\n RSItem[] food = Inventory.find(1963);\n\n // If have bananas/peaches, deposit them, else collect bones\n if (food.length > 0) {\n // Heal and then deposit\n float eatHealth = m_settings.m_eatHealth * Skills.getActualLevel(SKILLS.HITPOINTS);\n float eatTo = m_settings.m_eatTo * Skills.getActualLevel(SKILLS.HITPOINTS);\n \n if (food.length > 0 && Skills.getCurrentLevel(SKILLS.HITPOINTS) < eatHealth) {\n // Eat\n while (food.length > 0 && Skills.getCurrentLevel(SKILLS.HITPOINTS) < eatTo) {\n food[0].click(\"Eat\");\n m_script.sleep(300, 600);\n food = Inventory.find(1963);\n }\n }\n else {\n // Deposit\n RSObject[] objs = Objects.findNearest(50, \"Food chute\");\n if (objs.length > 0) {\n while (!objs[0].isOnScreen()) {\n Walking.blindWalkTo(objs[0]);\n m_script.sleep(250);\n }\n objs[0].click(\"Deposit\");\n m_script.sleep(1200);\n }\n }\n }\n else {\n // If we have more than a full load of bananas worth of bones, cast bones to peaches\n if (potentialBananas >= slotsAvailable) {\n // Cast bones to peaches\n Magic.selectSpell(\"Bones to Bananas\");\n }\n else {\n // Collect bananas\n RSObject[] bonePiles = Objects.findNearest(10725, 10726, 10727, 10728);\n if (bonePiles.length > 0) {\n while (!bonePiles[0].isOnScreen()) {\n Walking.blindWalkTo(bonePiles[0]);\n m_script.sleep(250);\n }\n bonePiles[0].click(\"Grab\");\n m_script.sleep(150);\n }\n }\n }\n }", "@Test\n public void playerWinDoublonsBySellingHisProductionTest(){\n player.playRole(new Craftman(stockGlobal));\n player.playRole(new Trader(stockGlobal,1));\n assertEquals(1,player.getInventory().getDoublons());\n assertEquals(true,stockGlobal.getStockResource(TypeWare.INDIGO)==initialIndigoInStock-1);\n\n ArrayList<Plantation> plantationsCorn = new ArrayList<>();\n plantationsCorn.add(new CornPlantation());\n player.playRole(new Trader(stockGlobal,1));\n player.playRole(new Farmer(plantationsCorn,stockGlobal));\n\n assertEquals(true,player.getInventory().getDoublons()==1);\n assertEquals(true,stockGlobal.getStockResource(TypeWare.CORN)==initialCornStock);\n\n\n\n }", "private static int sellGold(String itemToSell){\r\n int goldReceived = 0;\r\n if(itemToSell.equals(\"Leather Helmet\")){\r\n leatherHelmet LeatherHelmet = new leatherHelmet();\r\n goldReceived = LeatherHelmet.getSellPrice();\r\n return goldReceived;\r\n }else if(itemToSell.equals(\"Chest Plate\")){\r\n leatherChestPlate LeatherChestPlate = new leatherChestPlate();\r\n goldReceived = LeatherChestPlate.getSellPrice();\r\n return goldReceived;\r\n }else if(itemToSell.equals(\"Short Sword\")){\r\n shortSword ShortSword = new shortSword();\r\n goldReceived = ShortSword.getSellPrice();\r\n return goldReceived;\r\n }else if(itemToSell.equals(\"Long Sword\")){\r\n longSword LongSword = new longSword();\r\n goldReceived = LongSword.getSellPrice();\r\n return goldReceived;\r\n }else if(itemToSell.equals(\"Great Sword\")){\r\n greatSword GreatSword = new greatSword();\r\n goldReceived = GreatSword.getSellPrice();\r\n return goldReceived;\r\n }else if(itemToSell.equals(\"Healing Potion\")){\r\n healingPotion HealingPotion = new healingPotion();\r\n goldReceived = HealingPotion.getHealingPotionSellPrice();\r\n return goldReceived;\r\n }else if(itemToSell.equals(\"Greater Healing Potion\")){\r\n greaterHealingPotion GreaterHealingPotion = new greaterHealingPotion();\r\n goldReceived = GreaterHealingPotion.getGreaterHealingPotionSellPrice();\r\n return goldReceived;\r\n }else{\r\n return goldReceived;\r\n }\r\n }", "boolean canBuy( final Item item )\n {\n return !ship.contains( item ) && item.getPrice() <= credits;\n }", "private void checkSold(JComponent parent) {\n if (itemSelected.isSold()) {\n auctionItemList.removeItem(itemSelected);\n userItemList.removeItem(itemSelected);\n playSound();\n JOptionPane.showMessageDialog(parent, \"Congratulations on your purchase!\");\n updateJList();\n scrollPane.setViewportView(list);\n updateLabels();\n } else {\n JOptionPane.showMessageDialog(parent, \"Bid placed on \" + itemSelected.getItemName() + \"!\");\n currentBidLabel.setText(\"Current bid: $\" + itemSelected.getCurrentBid());\n }\n }", "public Item pickup(){\n\t\tfor(int i= 0; i< this.Items.length;i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tif(this.Items[i][p] != null && this.position[i][p] == 1){\n\t\t\t\t\tItem loot = Items[i][p];\n\t\t\t\t\tItems[i][p] = null;\n\t\t\t\t\treturn loot;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn new Item(ItemType.other, \"dust\", 0,0,0);\n\t}", "public int quantityDropped(Random random) {\n/* 37 */ return 0;\n/* */ }", "public void carry(Item item)\n {\n\n // Check if item to be added doesn't go over carry limit.\n if (!((getPerson(PLAYER).getWeight() + item.getWeight()) > getPerson(PLAYER).getCarryLimit())){\n getPerson(PLAYER).getInventory().getItems().add(item); \n\n removeRoomItem(item);\n System.out.println();\n System.out.println(item.getName() + \" has been added to your bag.\");\n System.out.println(\"You are carrying \" + getPerson(PLAYER).getWeight()+ \"kg.\");\n }\n else {\n System.out.println(\"Your bag is too heavy to add more items.\");\n }\n\n }", "public int quantityDropped(int meta, int fortune, Random par1Random) {\n\t\tRandom rnd = new Random();\n\t\tfortune = fortune+1;\n\t\tint i = rnd.nextInt(3) + 1;\n\t\tint fortrand = par1Random.nextInt(fortune);\n\t\tfortrand = fortrand * (rnd.nextInt(3)+1);\n\t\ti = i + fortrand;\n\t\tSystem.out.println(\"fortune: \" + (fortune - 1));\n\t\tSystem.out.println(i);\n\n\t\treturn i;\n\t}", "public void pickUp(String itemName, World world) {\n\t\tItem item = world.dbItems().get(itemName);\n\t\tRoom room = super.getRoom();\n\t\tList<Item> roomItems = room.getItems();\n\n\t\tif (roomItems.contains(item)) {\n\t\t\tif (checkCapacity(item)) {\n\t\t\t\tsuper.addItem(item);\n\t\t\t\troom.removeItem(item);\n\t\t\t\tSystem.out.println(\"Picked up \" + item);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Not enough capacity.\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"No item '\" + itemName + \"' in the room.\");\n\t\t}\n\t}", "public ArrayList<Item> drop()\n {\n ArrayList<Item> drop = new ArrayList<>();\n for( Pair<Enums.ItemName, Integer> possibleDrop : dropTable)\n {\n if(ThreadLocalRandom.current().nextInt(100) < possibleDrop.getY())\n drop.add(new Item(possibleDrop.getX()));\n }\n return drop;\n }", "public void clear() {\n for (int i = 0; i < if_you_items.length; i++) {\n if_you_items[i].setEnabled(true);\n }\n for (int i = 0; i < then_we_items.length; i++) {\n then_we_items[i].setEnabled(true);\n }\n non_promised_ministries.clear();\n non_promised_ministries.addAll(all_ministries);\n // if not at war, can't ask/offer peace\n if (game.getDiplomacy().getDiplomaticState(game.getTurn(), faction) != C.DS_WAR) {\n if_you_items[IfYouWill.PEACE.ordinal()].setEnabled(false);\n then_we_items[ThenWeWill.PEACE.ordinal()].setEnabled(false);\n }\n if (faction > C.HOUSE5) { // non-house\n non_promised_ministries.clear();\n if_you_items[IfYouWill.TECH.ordinal()].setEnabled(false);\n then_we_items[ThenWeWill.TECH.ordinal()].setEnabled(false);\n if_you_items[IfYouWill.VOTES.ordinal()].setEnabled(false);\n then_we_items[ThenWeWill.VOTES.ordinal()].setEnabled(false);\n return;\n }\n // search for promised votes and ministries in pending contracts of sender\n for (Contract con : game.getDiplomacy().getSentContracts()) {\n for (Term term : con.getTerms()) {\n if (term.getDonor() == game.getTurn()) {\n switch (term.getType()) {\n case VOTES:\n System.out.println(\"DBG no votes\");\n then_we_items[ThenWeWill.VOTES.ordinal()].setEnabled(false);\n break;\n case MINISTRY:\n non_promised_ministries.remove(new Integer(term.getAmount()));\n break;\n case MONEY:\n break;\n case STATE:\n break;\n case TECH:\n break;\n default:\n throw new AssertionError();\n }\n }\n if (term.getDonor() == faction) {\n switch (term.getType()) {\n case VOTES:\n System.out.println(\"DBG no votes\");\n if_you_items[IfYouWill.VOTES.ordinal()].setEnabled(false);\n break;\n case MINISTRY:\n non_promised_ministries.remove(new Integer(term.getAmount()));\n break;\n case MONEY:\n break;\n case STATE:\n break;\n case TECH:\n break;\n default:\n throw new AssertionError();\n }\n }\n }\n }\n // search for promised votes and ministries for sender and for receiver\n // those that are made with sender\n if (game.getRegency().getVotes()[game.getTurn()][Regency.CANDIDATE_IDX] > -1\n || game.getRegency().getVotes()[faction][Regency.CANDIDATE_IDX] == game.getTurn()) {\n then_we_items[ThenWeWill.VOTES.ordinal()].setEnabled(false);\n if_you_items[IfYouWill.VOTES.ordinal()].setEnabled(false);\n }\n int[] promises = game.getDiplomacy().getMinistryPromises(game.getTurn());\n for (int i = 0; i < promises.length; i++) {\n if (promises[i] > -1) {\n non_promised_ministries.remove(new Integer(promises[i]));\n }\n }\n promises = game.getDiplomacy().getMinistryPromises(faction);\n for (int i = 0; i < promises.length; i++) {\n if (promises[i] == game.getTurn()) {\n non_promised_ministries.remove(new Integer(promises[i]));\n }\n }\n if (non_promised_ministries.isEmpty()) {\n then_we_items[ThenWeWill.MINISTRY.ordinal()].setEnabled(false);\n if_you_items[IfYouWill.MINISTRY.ordinal()].setEnabled(false);\n }\n }", "public void addWeapon(Pair<Byte,Short> weapon){\n //Total number of weapons player can carry is 5 (inc. default weapon)\n //If player has <3 weapons, simply add weapon.\n //Otherwise, first remove oldest weapon in inventory then add at that\n //position.\n //oldest weapon tracked by linked list of weapon entries.\n if(this.weapons.size() < 3) {\n this.weapons.add(weapon);\n this.weaponEntryTracker.add((byte) this.weapons.indexOf(weapon));\n }else{\n //Checks for duplicates, if duplicate weapons\n //found, new weapons ammo is just added to the current\n //weapon already in inventory\n for(Pair<Byte,Short> w : this.weapons){\n if(Objects.equals(w.getKey(), weapon.getKey())){\n if(weaponEntryTracker.size() == 1){\n weaponEntryTracker = new LinkedList<>();\n }\n else{\n for(int tracker : weaponEntryTracker){\n if(tracker == this.weapons.indexOf(w)){\n weaponEntryTracker.remove((Integer) tracker);\n }\n }\n }\n Pair<Byte,Short> newWeapon = new Pair<>(weapon.getKey(), (short) (w.getValue()+weapon.getValue()));\n if(this.currentWeapon == w){\n this.setCurrentWeapon(newWeapon);\n }\n this.weapons.set(this.weapons.indexOf(w),newWeapon);\n weaponEntryTracker.add((byte) this.weapons.indexOf(newWeapon));\n return;\n }\n }\n //check for any no weapon entries - indicates\n //player dropped weapon.\n for(Pair<Byte,Short> w : this.weapons){\n if(w.getKey() == NO_WEAPON_ID){\n this.weapons.set(this.weapons.indexOf(w),weapon);\n this.weaponEntryTracker.add((byte) this.weapons.indexOf(weapon));\n return;\n }\n }\n //If no null entries are found, remove oldest weapon\n int oldestWeapon = this.weaponEntryTracker.poll();\n byte oldestWeaponKey = this.weapons.get(oldestWeapon).getKey();\n this.weapons.set(oldestWeapon, weapon);\n this.weaponEntryTracker.add((byte) this.weapons.indexOf(weapon));\n if(oldestWeaponKey == currentWeapon.getKey()){\n setCurrentWeapon(weapon);\n }\n\n }\n }", "void removeStock(int i);", "public void handleBuyEggCommand(){\n if(Aquarium.money >= EGGPRICE) {\n Aquarium.money -= EGGPRICE;\n Aquarium.egg++;\n }\n }", "public boolean reset() {\n pouchesUsed.clear();\n int id;\n RSItem[] items = inventory.getItems();\n for (RSItem item : items) {\n id = item.getID();\n if (id > 5508 && id < 5516) {\n pouchesUsed.add(new Pouch(id));\n }\n }\n return true;\n }", "void bust() {\n\t\t_loses++;\n\t\t//_money -= _bet;\n\t\tclearHand();\n\t\t_bet = 0;\n\t}", "public int removeItem(Item item, int n){\r\n if(unitMap.containsKey(item.getType())) {\r\n //if n negative number:\r\n if (n < 0) {\r\n System.out.println(NO_ITEMS_REMOVED_NEGATIVE + item.getType());\r\n return NO_ITEMS_ADDED;\r\n }\r\n //if not negative:\r\n else {\r\n if (unitMap.get(item.getType()) > n || unitMap.get(item.getType()) == n) {\r\n if(unitMap.get(item.getType()) == n) unitMap.remove(item.getType());\r\n else unitMap.put(item.getType(), unitMap.get(item.getType()) - n);\r\n availableCapacity += n*item.getVolume();\r\n return ZERO;\r\n }\r\n // if less then n items in the locker\r\n else {\r\n System.out.println(NO_ITEMS_REMOVED + n + NO_ITEMS_ADDED_NEW_N2 + item.getType());\r\n return NO_ITEMS_ADDED;\r\n }\r\n }\r\n }\r\n else {\r\n System.out.println(GENERAL_ERROR_MSG);\r\n return NO_ITEMS_ADDED;\r\n }\r\n }", "public TransactionResponse sellEnchant() {\r\n \t\tTransactionResponse response = new TransactionResponse(hp);\r\n \t\tCalculation calc = hc.getCalculation();\r\n \t\tAccount acc = hc.getAccount();\r\n \t\tLog log = hc.getLog();\r\n \t\tNotification not = hc.getNotify();\r\n \t\tInfoSignHandler isign = hc.getInfoSignHandler();\r\n \t\ttry {\r\n \t\t\tString nenchant = \"\";\r\n \t\t\tString playerecon = hp.getEconomy();\r\n \t\t\tPlayer p = hp.getPlayer();\r\n \t\t\tnenchant = hyperObject.getMaterial();\r\n \t\t\tEnchantment ench = Enchantment.getByName(nenchant);\r\n \t\t\tint lvl = Integer.parseInt(hyperObject.getName().substring(hyperObject.getName().length() - 1, hyperObject.getName().length()));\r\n \t\t\tint truelvl = im.getEnchantmentLevel(p.getItemInHand(), ench);\r\n \t\t\tif (im.containsEnchantment(p.getItemInHand(), ench) && lvl == truelvl) {\r\n \t\t\t\tdouble dura = p.getItemInHand().getDurability();\r\n \t\t\t\tdouble maxdura = p.getItemInHand().getType().getMaxDurability();\r\n \t\t\t\tdouble duramult = (1 - dura / maxdura);\r\n \t\t\t\tif (p.getItemInHand().getType().equals(Material.ENCHANTED_BOOK)) {\r\n \t\t\t\t\tduramult = 1;\r\n \t\t\t\t}\r\n \t\t\t\tString mater = p.getItemInHand().getType().toString();\r\n \t\t\t\tdouble price = hyperObject.getValue(EnchantmentClass.fromString(mater));\r\n \t\t\t\tdouble fprice = duramult * price;\r\n \t\t\t\tboolean sunlimited = hc.getYaml().getConfig().getBoolean(\"config.shop-has-unlimited-money\");\r\n \t\t\t\tif (acc.checkshopBalance(fprice) || sunlimited) {\r\n \t\t\t\t\tim.removeEnchantment(p.getItemInHand(), ench);\r\n \t\t\t\t\tdouble shopstock = hyperObject.getStock();\r\n \t\t\t\t\thyperObject.setStock(shopstock + duramult);\r\n \t\t\t\t\tdouble salestax = hp.getSalesTax(fprice);\r\n \t\t\t\t\tacc.deposit(fprice - salestax, p);\r\n \t\t\t\t\tacc.withdrawShop(fprice - salestax);\r\n \t\t\t\t\tif (sunlimited) {\r\n \t\t\t\t\t\tString globalaccount = hc.getYaml().getConfig().getString(\"config.global-shop-account\");\r\n \t\t\t\t\t\tacc.setBalance(0, globalaccount);\r\n \t\t\t\t\t}\r\n \t\t\t\t\tfprice = calc.twoDecimals(fprice);\r\n \t\t\t\t\tresponse.addSuccess(L.f(L.get(\"ENCHANTMENT_SELL_MESSAGE\"), 1, calc.twoDecimals(fprice), hyperObject.getName(), calc.twoDecimals(salestax)), calc.twoDecimals(fprice - salestax), hyperObject);\r\n \t\t\t\t\tresponse.setSuccessful();\r\n \t\t\t\t\tString type = \"dynamic\";\r\n \t\t\t\t\tif (Boolean.parseBoolean(hyperObject.getInitiation())) {\r\n \t\t\t\t\t\ttype = \"initial\";\r\n \t\t\t\t\t} else if (Boolean.parseBoolean(hyperObject.getIsstatic())) {\r\n \t\t\t\t\t\ttype = \"static\";\r\n \t\t\t\t\t}\r\n \t\t\t\t\tlog.writeSQLLog(p.getName(), \"sale\", hyperObject.getName(), 1.0, fprice - salestax, salestax, playerecon, type);\r\n \r\n \t\t\t\t\tisign.updateSigns();\r\n \t\t\t\t\tnot.setNotify(hyperObject.getName(), mater, playerecon);\r\n \t\t\t\t\tnot.sendNotification();\r\n \t\t\t\t} else {\r\n \t\t\t\t\tresponse.addFailed(L.get(\"SHOP_NOT_ENOUGH_MONEY\"), hyperObject);\r\n \t\t\t\t}\r\n \t\t\t} else {\r\n \t\t\t\tresponse.addFailed(L.f(L.get(\"ITEM_DOESNT_HAVE_ENCHANTMENT\"), hyperObject.getName()), hyperObject);\r\n \t\t\t}\r\n \t\t\treturn response;\r\n \t\t} catch (Exception e) {\r\n \t\t\tString info = \"ETransaction sellEnchant() passed values name='\" + hyperObject.getName() + \"', player='\" + hp.getName() + \"'\";\r\n \t\t\tnew HyperError(e, info);\r\n \t\t\treturn new TransactionResponse(hp);\r\n \t\t}\r\n \t}", "@Override\n public int quantityDropped(int meta, int fortune, Random random)\n {\n return super.quantityDropped(meta, fortune, random);\n }" ]
[ "0.6699838", "0.6609171", "0.6558611", "0.6550544", "0.6510935", "0.64953953", "0.64755857", "0.6366226", "0.635446", "0.6351268", "0.634899", "0.63338745", "0.63225013", "0.6295299", "0.62910384", "0.6289274", "0.62834483", "0.6277367", "0.62542194", "0.62450856", "0.6232448", "0.6208783", "0.620176", "0.61921185", "0.6180509", "0.617541", "0.6174366", "0.61690485", "0.6167126", "0.61632204", "0.61340815", "0.6102764", "0.60990834", "0.6068998", "0.6051184", "0.6048577", "0.60460013", "0.6031129", "0.60273784", "0.60163695", "0.60055614", "0.59907323", "0.5967112", "0.5954927", "0.59434795", "0.5941201", "0.59236586", "0.59227586", "0.59223175", "0.59161365", "0.5905738", "0.59001124", "0.58974475", "0.58950824", "0.5887418", "0.5879576", "0.58785576", "0.58785534", "0.5877107", "0.58760095", "0.5872602", "0.58643836", "0.585937", "0.58541465", "0.5854074", "0.58383936", "0.58215344", "0.58199924", "0.5816977", "0.5813724", "0.5812599", "0.580279", "0.58019024", "0.5796551", "0.57940847", "0.57927203", "0.579175", "0.5786331", "0.5784691", "0.5777553", "0.5772183", "0.5746247", "0.57447517", "0.57433975", "0.5738748", "0.57365096", "0.5736468", "0.5736416", "0.57332116", "0.5723087", "0.57166684", "0.5714148", "0.57067955", "0.56987035", "0.5695247", "0.56875056", "0.56867725", "0.5684493", "0.568261", "0.567922" ]
0.7677213
0
Advance clock by specified number of millis
public void advance(long millis) { millis_ += millis; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void advanceTimeTo(long millis) {\n\t\tClock clock = Clock.systemUTC();\n\t\tDuration offset = Duration.ofMillis(millis - clock.millis());\n\t\tTime.setClock(Clock.offset(clock, offset));\n\t}", "private static void advanceSystemClock(long milliseconds) {\n ShadowSystemClock.setCurrentTimeMillis(ShadowSystemClock.currentTimeMillis() + milliseconds);\n }", "private void advanceTime(){\n\t minute++;\n\t while (minute > 59) {\n\t minute -= 60;\n\t hour++;\n\t }\n\t while (hour > 23) {\n\t hour -= 24;\n\t day++;\n\t }\n\t while (day > 6) {\n\t day -= 7;\n\t }\n\n\t }", "public void setDelay(double clock);", "public void clockChange(int time);", "public void clock(double period);", "public synchronized static void incrementTimeBy(int ticks) {\n\t\tif (ticks > 0) {\n\t\t\ttime += ticks;\n\t\t}\n\t}", "private void startClock() {\r\n\t\tTimer timer = new Timer(500, new ActionListener() {\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent theEvent) {\r\n\t\t\t\tadvanceTime();\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n timer.setRepeats(true);\r\n timer.setCoalesce(true);\r\n timer.setInitialDelay(0);\r\n timer.start();\r\n\t}", "protected void advanceTimer(long amount, TimeUnit timeUnit) {\r\n\t\tPseudoClockScheduler sessionClock = kieSession.getSessionClock();\r\n\t\tsessionClock.advanceTime(amount, timeUnit);\r\n\t}", "public synchronized static void incrementTime() {\n\t\ttime += 1;\n\t}", "public void advanceTime(){\n\t\tminute++;\r\n\t\twhile (minute > 59) {\r\n\t\t\tminute -= 60;\r\n\t\t\thour++;\r\n\t\t}\r\n\t\twhile (hour > 23) {\r\n\t\t\thour -= 24;\r\n\t\t\tday++;\r\n\t\t}\r\n\t\twhile (day > 6) {\r\n\t\t\tday -= 7;\r\n\t\t\tweek++;\r\n\t\t\ttotalMoney += abonnementen * 40;\r\n\t\t}\r\n\t\twhile(week > 51) {\r\n\t\t\tweek -= 52;\r\n\t\t}\r\n\t\t//System.out.println(\"advanceTime: \"+\"week: \"+ week + \" day: \"+ day +\" hour: \" + hour +\" minute: \"+ minute+ \" Money earned = \" + Math.round(totalMoney));\r\n\t}", "public void update(long ms) {\n\t\t\n\t}", "public abstract void advance(double deltaTime);", "public void next( long time );", "public void pauseUntilNextClock(){\n\t\tlong sleepTime = (long) (1000.0 / Settings.getSettings().getClockSpeed())\n\t\t\t\t- (System.currentTimeMillis() - this.mStartOfClock);\n\t\t\n\t\tif(sleepTime > 0){\n\t\t\ttry {\n\t\t\t\tThread.sleep(sleepTime);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}else{\n\t\t\tSystem.out.println(\"WARNING: System cannot keep up with simulator clock speed!\");\n\t\t\tSystem.out.println(\"WARNING: Reduce clock speed!\");\n\t\t\t}\n\t\t\n\t\tthis.mStartOfClock = System.currentTimeMillis();\n\t}", "void setTime(){\n gTime += ((float)millis()/1000 - millisOld)*(gSpeed/4);\n if(gTime >= 4) gTime = 0;\n millisOld = (float)millis()/1000;\n }", "public void tick()\r\n\t{\r\n\t\tduration = (int) (((Sys.getTime() - lastCall) * resolution) / Sys\r\n\t\t\t\t.getTimerResolution());\r\n\t\tlastCall = Sys.getTime();\r\n\t}", "public void tick(){\r\n if(timer != 0)\r\n timer++;\r\n }", "public void kickTimer() {\n delayTime = System.currentTimeMillis() + shutdownDelay;\n// System.out.println(\"Time at which the loop should kick: \" + delayTime);\n }", "public void sleep(long millis) {\n\n\t\tlong timeOld = System.currentTimeMillis();\n\t\tlong timeNew = 0;\n\t\tlong temp = timeNew - timeOld;\n\n\t\twhile (temp < millis) {\n\t\t\ttimeNew = System.currentTimeMillis();\n\t\t\ttemp = timeNew - timeOld;\n\t\t}\n\n\t}", "public void updateClock(){\n clock += 1;\n if(clock >= 10000){\n clock = 0;\n }\n if (clock % (180 - playerShipManaRate) == 0){\n updateMana(\"player\", 1);\n }\n if (clock % (180 - enemyShipManaRate) == 0){\n updateMana(\"enemy\", 1);\n }\n }", "public void update(int time);", "private static void increment_time()\n\t{\n\t\ttime_of_day = time_of_day + 1;\n\t\tif(time_of_day>=120)\n\t\t{\n\t\t\ttime_of_day=time_of_day-120;\n\t\t}\n\t}", "void tick(long tickSinceStart);", "private void timeSync() throws InterruptedException {\n long realTimeDateMs = currentTimeMs - System.currentTimeMillis();\n long sleepTime = periodMs + realTimeDateMs + randomJitter();\n\n if (slowdownFactor != 1) {\n sleepTime = periodMs * slowdownFactor;\n }\n\n if (sleepTime > 0) {\n Thread.sleep(sleepTime);\n }\n }", "public void advanceDay(long day) {\n clock = Clock.offset(clock, Duration.ofDays(day));\n }", "private void simulateDelay(long millis) {\n try {\n Thread.sleep(millis);\n } catch (InterruptedException ignored) {\n }\n }", "public void nextClockChange(int nextJump);", "public void timeTick()\r\n\t{\r\n\t\tnumberDisplay1.increment();\r\n\t}", "private void plusTime(){\n\n if(totalTimeCountInMilliseconds < 10000)\n {\n countDownTimer.cancel();\n countDownTimer = new MyCountDown(totalTimeCountInMilliseconds + 3000, 50);// give extra 3000 milliseconds if they get the answer right\n }\n else\n {\n countDownTimer.cancel();\n countDownTimer = new MyCountDown(10000, 50);// set the timer to 10000 millisec if totalTimeCountInMilliseconds + 3000 > 10000\n }\n\n countDownTimer.start();\n\n\n }", "public void timePasses(){\n crtClock++;\n if(crtClock==25)crtClock=1; // If end of day, reset to 1\n if(crtClock<=opHours)tellMeterToConsumeUnits(unitsPerHr);\n }", "public void IncWaitTime() {\n this.WaitTime++;\n }", "public synchronized void scheduleTick(long deltat){\n\t\tscheduler.schedule(tickTask, deltat, TimeUnit.MILLISECONDS);\n\t}", "public void timer() \r\n\t{\r\n\t\tSeconds.tick();\r\n\t \r\n\t if (Seconds.getValue() == 0) \r\n\t {\r\n\t \tMinutes.tick();\r\n\t \r\n\t \tif (Minutes.getValue() == 0)\r\n\t \t{\r\n\t \t\tHours.tick();\r\n\t \t\t\r\n\t \t\tif(Hours.getValue() == 0)\r\n\t \t\t{\r\n\t \t\t\tHours.tick();\r\n\t \t\t}\r\n\t \t}\r\n\t }\t\t\r\n\t \r\n\t updateTime();\r\n\t }", "public void timer() {\r\n date.setTime(System.currentTimeMillis());\r\n calendarG.setTime(date);\r\n hours = calendarG.get(Calendar.HOUR_OF_DAY);\r\n minutes = calendarG.get(Calendar.MINUTE);\r\n seconds = calendarG.get(Calendar.SECOND);\r\n //Gdx.app.debug(\"Clock\", hours + \":\" + minutes + \":\" + seconds);\r\n\r\n buffTimer();\r\n dayNightCycle(false);\r\n }", "public void tick() {\n\t\tmFrameCount++;\n\t\t\n\t\tif (mStopwatch.getElapsedTime() > 1000) {\n\t\t\tmFramesPerSecond = mFrameCount;\n\t\t\tmFrameCount = 0;\n\t\t\t\n\t\t\tmStopwatch.restart();\n\t\t}\n\t}", "public void tick() {\r\n tick++;\r\n }", "public void advanceHour(long hour) {\n clock = Clock.offset(clock, Duration.ofHours(hour));\n }", "public abstract void setSecondsPerUpdate(float secs);", "public synchronized void tick(){\r\n\t\ttime++;\r\n\t\tnotifyAll();\r\n\t}", "@Test\n public void testInc(){\n CountDownTimer s1 = new CountDownTimer(1, 49, 30);\n \tfor(int i = 0; i < 15000; i++){\n \t\ts1.inc();\n }\n assertEquals(s1.toString(), \"5:59:30\");\n }", "private void scheduleResetEveryMillis(final int milliseconds) {\n Timer timer = new Timer();\n timer.scheduleAtFixedRate(new APIResetTask(theapi), milliseconds, milliseconds);\n }", "public abstract void advanceBoard(float deltaTime);", "public void timer()\n {\n timer += .1; \n }", "public abstract void updateTime(int currentTime);", "private void advanceTime() {\r\n myCurrentTimeLabel.setText(DateFormat.getDateTimeInstance().format(new Date()));\r\n }", "void incrementTick();", "private void sleep(long millis){\n\t\ttry {\n\t\t\tThread.sleep(millis);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void cycle() {\n ticks++;\n for (int i = 0; i < validDevices; i++)\n devices[i].onClockTick(ticks);\n }", "@Override\n public void referenceClockTime(long value, boolean seconds) {\n }", "public static void sleep(long millis) {\n run(() -> Thread.sleep(millis));\n }", "public void setIncTimeout(int seconds);", "void tick(long ticksSinceStart);", "public void tick(double dt) {\n }", "private void sleep(long millis) {\n\t\ttry {\n\t\t\tThread.sleep(millis);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void advance(int tickCount) {\n if (tickCount % 2 == 0) { // slow the animation down a little\n mySequenceIndex++;\n mySequenceIndex %= 4;\n setAnimatedTile(myAnimatedTileIndex,\n FRAME_SEQUENCE[mySequenceIndex]);\n }\n }", "public void setTimer(long ms) {\r\n\t\tthis.timer = ms;\r\n\t}", "public void sleep(long millis) {\n long end = System.currentTimeMillis() + millis;\n for (;;)\n try {\n Thread.sleep(end - System.currentTimeMillis());\n break;\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (IllegalArgumentException e) {\n break; // If sleep value goes below 0\n }\n }", "private void updateTime() {\n timer.update();\n frametime = timer.getTimePerFrame();\n }", "public void startClock() {\n Timer timer = new Timer(100, new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent evt) {\n String dateTime = new Date().toString();\n \n clockLabel.setText(dateTime);\n \n }\n });\n timer.start();\n }", "void update(int seconds);", "void setInhabitedTime(long ticks);", "public void timeChanged( int newTime );", "public void faster() {\n myTimer.setDelay((int) (myTimer.getDelay() * SPEED_FACTOR));\n }", "public void timeUpdate(int time) {\r\n handler.setTime(time);\r\n }", "public void moveToTime (final TurnType dir,\n float power,\n int timeoutMillis)\n throws InterruptedException\n {\n final float p = Range.clip(power, -1f, 1f);\n\n // turn wheels\n setTurnWait(dir);\n\n setMode2(RunMode.RUN_WITHOUT_ENCODER);\n setZeroPowerBehavior2(ZeroPowerBehavior.FLOAT);\n\n WaitLinear lp = new WaitLinear(op);\n lp.waitMillis(timeoutMillis,\n new WaitLinear.WakeUp() {\n public boolean isWakeUp() {\n // in case skipping\n setPower(p);\n return false;\n }\n });\n\n stop2();\n setMode2(RunMode.RUN_USING_ENCODER);\n setZeroPowerBehavior2(ZeroPowerBehavior.BRAKE);\n\n op.idle();\n }", "public static void increaseDifficaulty() {\r\n\t\tif (Enemy._timerTicker > 5)\r\n\t\t\tEnemy._timerTicker -= 2;\r\n\t\tif (Player._timerTicker < 100)\r\n\t\t\tPlayer._timerTicker += 2;\r\n\t}", "public abstract void twist(long ms);", "void setCurrentTime(long currentTime);", "void setTime(final int time);", "public void increaseSpeed() {\r\n\tupdateTimer.setDelay((int)Math.floor(updateTimer.getDelay()*0.95));\r\n\t\t}", "public long timeIncrement(long reps) {\n long result = 0;\n for (; result < reps; result++) {\n }\n return result;\n }", "public InactivityTimeout milliseconds(long n) {\n millis += n;\n return this;\n }", "public void onTick(long millisUntilFinished){\n seconds=seconds-1000;\n timeUpText.setText(\"seconds remaining: \" + seconds / 1000);\n Log.d(\"seconds\", String.format(\"%d\", seconds/1000));\n drawingCanvas.setSeconds(seconds, originalSecs);\n drawingCanvas.invalidate();\n }", "private void runClock() {\n new Thread(() -> {\n while (true) {\n Date d = new Date();\n lblTime.setText(Application.TIME_FORMAT.format(d));\n lblDate.setText(Application.DATE_FORMAT.format(d));\n try {\n Thread.sleep(1000);\n } catch (InterruptedException ex) {\n // ignore\n }\n }\n }).start();\n }", "public final void sleep(int millis) {\n Utils.sleep(millis);\n }", "public void setTicks(int readSoFar) {\n\t\t\n\t}", "public void step(long now) {\n\t}", "public void timePassed(double dt) {\r\n this.moveOneStep(dt);\r\n }", "public void update(int m) {\r\n\t\tif (this.swit) {\r\n\t\t\tthis.time = time + m;\r\n\t\t\tthis.change = change + m;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.time = time + m; \r\n\t\t}\r\n\t}", "private static void timerTest4() {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tcalendar.set(Calendar.HOUR_OF_DAY, 14);\n\t\tcalendar.set(Calendar.MINUTE, 20);\n\t\tcalendar.set(Calendar.SECOND, 0);\n\t\tDate time = calendar.getTime();\n\n\t\tTimer timer = new Timer();\n\t\tSystem.out.println(\"wait ....\");\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.out.println(\"timertest4\");\n\n\t\t\t}\n\t\t}, time, 24 * 60 * 60 * 1000);\n\n\t}", "protected void runClock() {\r\n // stop gameClock while game is iconified\r\n if( isRunning && (getState() == Frame.NORMAL) ) {\r\n seconds++;\r\n\r\n int hrs = seconds / 3600;\r\n int mins = seconds / 60 - hrs * 60;\r\n int secs = seconds - mins * 60 - hrs * 3600;\r\n\r\n String strHr = (hrs < 10 ? \"0\" : \"\") + Integer.toString( hrs );\r\n String strMin = (mins < 10 ? \"0\" : \"\") + Integer.toString( mins );\r\n String strSec = (secs < 10 ? \"0\" : \"\") + Integer.toString( secs );\r\n\r\n timeMesg.setText( strHr + \":\" + strMin + \":\" + strSec );\r\n }\r\n }", "public void timePassed(double dt) {\r\n moveOneStep(dt);\r\n }", "public abstract void systemTurnStarts(long ms);", "private void incrementShutdownTimer() {\t\r\n\t\tshutdownTime = Calendar.getInstance();\r\n\t\tshutdownTime.add(Calendar.SECOND, TIMEOUT_SECONDS);\r\n\t}", "@Override\n public void reactTo(Tick tick) {\n\ttry {\n\t Thread.sleep(FRAME_INTERVAL_MILLIS);\n\t} catch (InterruptedException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t}\n\tscreen.update();\n\tmpq.add(new Tick(tick.time() + 1));\n }", "public static void forTime(long time) {\n\t\ttry {\n\t\t\tThread.sleep(time);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void setTime(long timeMillis) {\n this.timeMillis = timeMillis;\n }", "public void cycleDay() {\r\n player.gametick();\r\n }", "public static void ComienzaTimer(){\n timer = System.nanoTime();\n }", "public void setCurrentTime(double time) {\n if (time < 0) {\n time = 0;\n }\n \n nextStartTime = time;\n \n makeNewMusic();\n }", "public void moveForward() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t // 2\n\t\tseconds += tic;\n\t\tif (seconds >= 60.0) {\n\t\t\tseconds -= 60.0;\n\t\t\tminutes++;\n\t\t\tif (minutes == 60) {\n\t\t\t\tminutes = 0;\n\t\t\t\thours++;\n\t\t\t}\n\t\t}\n\t}", "private void sleepMilliseconds(int time) {\n int multipliedParam = (int) (Math.random() * time + 1);\n\n try {\n TimeUnit.MILLISECONDS.sleep(multipliedParam);\n Log.v(\"DLASync.sleep\", \" sleep \" + multipliedParam + \" milliseconds...\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private synchronized void scheduleGameUpdate(int updateSpeedInMilliseconds) {\n updateTask.cancel();\n // Create the update task which will simply call updateData\n updateTask = new TimerTask() {\n @Override\n public void run() {\n updateData();\n }\n };\n updateTimer.scheduleAtFixedRate(updateTask, 0,\n updateSpeedInMilliseconds);\n }", "public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}", "public void step() {\n \tinternaltime ++;\n \n }", "public void tick() {\n\t\tfor(GameObject object : gameObject) {\n\t\t\tif(object instanceof Opponents) {\n\t\t\t\t((Opponents) object).move(tickTime);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Game has advanced by \" + tickTime + \" ms = \" + tickTime/1000 + \" ticks.\");\n\t}", "abstract protected void refresh(long time);", "public void onTick(long millisUntilFinished){\n seconds=seconds-1000;\n timeUpText.setText(\"seconds remaining: \" + millisUntilFinished / 1000);\n drawingCanvas.setSeconds(seconds, originalSecs);\n drawingCanvas.invalidate();\n }", "public void update(float _dt){\n timeCount += _dt;\n if (timeCount >= 15){\n worldTimer++;\n countdownHUD.setText(String.format(Locale.getDefault(),\"%03d\", worldTimer));\n timeCount = 5;\n }\n }" ]
[ "0.746045", "0.67097914", "0.66697764", "0.66393894", "0.6485668", "0.647484", "0.64202183", "0.62452984", "0.62352353", "0.6195682", "0.6128737", "0.60758233", "0.60085076", "0.6003685", "0.6000383", "0.5957284", "0.5957057", "0.59407675", "0.5918009", "0.58990216", "0.5880139", "0.58366215", "0.583371", "0.5802132", "0.5773217", "0.57721066", "0.57706463", "0.57463056", "0.57434547", "0.5730522", "0.5676377", "0.5669848", "0.56615806", "0.5661302", "0.5641693", "0.5599555", "0.5580671", "0.55639446", "0.55618656", "0.5557685", "0.5537345", "0.5521172", "0.5517757", "0.55095553", "0.5506594", "0.5491476", "0.5490888", "0.5490106", "0.5489625", "0.5484112", "0.54780585", "0.5477379", "0.54695696", "0.54436135", "0.5442286", "0.5438207", "0.54233104", "0.5420639", "0.5419162", "0.5404281", "0.54036033", "0.5401572", "0.5399477", "0.5398693", "0.5397191", "0.5390846", "0.53905475", "0.5372641", "0.53702193", "0.5361725", "0.53606063", "0.5355663", "0.53511196", "0.5341942", "0.53409666", "0.5337734", "0.5335698", "0.53313184", "0.53284675", "0.5325533", "0.5320776", "0.5318827", "0.5316508", "0.5311263", "0.5307447", "0.5306173", "0.53023946", "0.5301399", "0.5298675", "0.5294343", "0.52891624", "0.52888256", "0.52799755", "0.52778524", "0.52768433", "0.5270977", "0.52590406", "0.5256154", "0.5253991", "0.524425" ]
0.7949918
0
TODO: To be ported
static void init() { ContainerProviderRegistry.INSTANCE.registerFactory(ROCKET_CRATE_CONTAINER, (syncId, id, player, buf) -> new RocketCrateScreenHandler(syncId, buf.readInt(), player.inventory)); ContainerProviderRegistry.INSTANCE.registerFactory(LAUNCH_PAD_CONTAINER, (syncId, id, player, buf) -> new LaunchPadScreenHandler(syncId, buf.readBlockPos(), player.inventory)); ContainerProviderRegistry.INSTANCE.registerFactory(CONTRACT_MACHINE, (syncId, id, player, buf) -> new ContractMachineScreenHandler(syncId, buf.readBlockPos(), player.inventory)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void sacrifier() {\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 }", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n protected void prot() {\n }", "private void init() {\n\n\t}", "private void strin() {\n\n\t}", "public void method_4270() {}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public abstract void mo70713b();", "@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 }", "private void poetries() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "zzafe mo29840Y() throws RemoteException;", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n public void init() {\n\n }", "@Override\n protected void init() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private Util() { }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public abstract void mo6549b();", "@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}", "zzang mo29839S() throws RemoteException;", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n\tprotected void initialize() {\n\n\t}", "public abstract void mo56925d();", "private void m50366E() {\n }", "@Override\n protected void getExras() {\n }", "private void getStatus() {\n\t\t\n\t}", "private JacobUtils() {}", "@Override\n public void init() {\n }", "public final void mo51373a() {\n }", "@Override\n void init() {\n }", "private MetallicityUtils() {\n\t\t\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}", "private NativeSupport() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "protected void mo6255a() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private OMUtil() { }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void init() {}", "private ProcessorUtils() { }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\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 void mo38117a() {\n }", "@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 abstract String mo41079d();", "private void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public abstract String mo13682d();", "public abstract String mo118046b();", "void mo57277b();", "public abstract void mo27385c();", "@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 public int describeContents() { return 0; }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "private ReportGenerationUtil() {\n\t\t\n\t}", "public void mo21877s() {\n }", "private void init() {\n\n\n\n }", "zzana mo29855eb() throws RemoteException;", "public void identify() {\n\n\t}", "@Override\n public void init() {\n\n }" ]
[ "0.57207733", "0.56339276", "0.56202215", "0.5548621", "0.5526838", "0.5491578", "0.54691195", "0.54305506", "0.5387423", "0.53874147", "0.53781617", "0.53708977", "0.5366174", "0.536284", "0.536263", "0.5315175", "0.5314648", "0.5314648", "0.5305603", "0.5304074", "0.5304074", "0.5304074", "0.5304074", "0.5304074", "0.5304074", "0.52816254", "0.527055", "0.52667445", "0.526637", "0.5259383", "0.5257703", "0.52533317", "0.52528614", "0.52498734", "0.52476877", "0.5242368", "0.524054", "0.5228281", "0.52239376", "0.5223174", "0.5223174", "0.5223174", "0.5223174", "0.5223174", "0.5219054", "0.5217309", "0.5205247", "0.5203953", "0.5201601", "0.52003783", "0.52002954", "0.5196148", "0.5189198", "0.5184888", "0.5182631", "0.5181524", "0.5181405", "0.5176498", "0.51756936", "0.51756936", "0.5169095", "0.51610804", "0.51563764", "0.51554465", "0.51554465", "0.515259", "0.5151916", "0.5151838", "0.51461214", "0.51360065", "0.51334095", "0.5132709", "0.51296514", "0.51296514", "0.51296514", "0.51270175", "0.5122368", "0.5122368", "0.5122368", "0.5118957", "0.5115972", "0.51028854", "0.5102577", "0.50969374", "0.50969374", "0.5095291", "0.5094207", "0.50897515", "0.5087447", "0.5087405", "0.5084264", "0.5084264", "0.5084264", "0.5078906", "0.50718075", "0.5071583", "0.50617", "0.5060319", "0.5056498", "0.5053212", "0.5051251" ]
0.0
-1
/ FSCK The UID FSCK is concerned with making sure the UID table is in a clean state. Most important are the forward mappings to UIDs as that's what's used to store time series. A clean table is below: REVERSE | FORWARD 01 > foo foo > 01 02 > bar bar > 02 The reverse map will have a unique set of UIDs but could, in error, have duplicate names. The forward map will have a unique set of names but could, in error, have duplicate IDs. Order of error checking is to loop through the FORWARD map first, then the REVERSE map. Then for each it will check the other map for entries
@Test public void fsckNoData() throws Exception { storage.flushStorage(); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(0, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkReverseMap() throws ApplicationException {\n if (reverseMap == null) {\n reverseMap = Data.makeReverseMap(networkIds);\n }\n }", "private void checkMapKeyToNode(Affinity testAff, Affinity aff) {\n for (int i = 0; i < 10000; i++) {\n assertEquals(testAff.mapKeyToNode(i).id(), aff.mapKeyToNode(i).id());\n\n checkEqualCollection(testAff.mapKeyToPrimaryAndBackups(i), aff.mapKeyToPrimaryAndBackups(i));\n }\n }", "@SuppressWarnings(\"unused\")\n\tprivate void rehashUsers() {\n\t\tfor(Integer userId : users) {\n\t\t\tInteger oldShard = this.calculateShard(userId, prevNumServers);\n\t\t\tInteger newShard = this.calculateShard(userId);\n\t\t\t\n\t\t\t// Pull data out of oldShard database\n\t\t\t// Put data in newShard database\n\t\t}\n\t}", "public void getRemappedUID(int seqid, String uid);", "@Test\n public void fsckMetricsMissingReverse() throws Exception {\n storage.flushColumn(UID_TABLE, new byte[] {0, 0, 1}, NAME_FAMILY, METRICS);\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(1, errors);\n }", "@Test\n public void testEPTIDThenTwo() throws Exception {\n UserMultiID umk = createUMK();\n UserMultiID eptidKey = new UserMultiID(umk.getEptid());\n User user = newUser();\n user.setUserMultiKey(eptidKey);\n getUserStore().update(user, true); // otherwise the next step returns a different user id.\n XMLMap map = getDBSClient().getUser(user.getUserMultiKey(),\n user.getIdP(),\n user.getIDPName(),\n user.getFirstName(),\n user.getLastName(),\n user.getEmail(),\n user.getAffiliation(),\n user.getDisplayName(),\n user.getOrganizationalUnit());\n\n checkUserAgainstMap(map, user);\n // now reget with both eppn and eptid\n UserMultiID umk2 = new UserMultiID(umk.getEppn(), umk.getEptid());\n map = getDBSClient().getUser(umk2, user.getIdP());\n // Backend regression check\n User user2 = getUserStore().get(user.getIdentifier());\n assert user2.getePPN().equals(umk.getEppn()) : \"EPPNs do not match after AbstractDBService multi-get\";\n assert user2.getePTID().equals(umk.getEptid()) : \"EPTIDs do not match after AbstractDBService multi-get\";\n user.setUserMultiKey(umk2);\n // now check that the local copy didn't lose anything when it went through the service.\n checkUserAgainstMap(map, user);\n // final bit of this is to check that giving just eppn in the future will return the right user.\n map = getDBSClient().getUser(eptidKey, user.getIdP());\n checkUserAgainstMap(map, user);\n }", "@Test\n public void testTwoIDs() throws Exception {\n // Get a set of keys.\n UserMultiID umk = createUMK();\n\n User user = newUser();\n UserMultiID newUmk = new UserMultiID(umk.getEppn(), umk.getEptid());\n user.setUserMultiKey(newUmk);\n getUserStore().save(user);\n Collection<User> users = getUserStore().get(newUmk, user.getIdP());\n assert users.size() == 1 : \"Incorrect number of users found. Expected one and got \" + users.size();\n assert user.equals(users.iterator().next());\n // Now reget with just EPTID. Since that is globally unique, this should always work.\n UserMultiID newUmk2 = new UserMultiID(umk.getEptid());\n users = getUserStore().get(newUmk2, user.getIdP());\n assert users.size() == 1 : \"Incorrect number of users found. Expected one and got \" + users.size();\n assert user.equals(users.iterator().next());\n\n XMLMap userMap = getDBSClient().getUser(user.getIdentifier());\n checkUserAgainstMap(userMap, user);\n }", "@VisibleForTesting\n Map<String, String> getUserDNs(Collection<String> userIds) {\n log.info(\"Loading distinguished names for {} users\", userIds.size());\n log.debug(\"Fetching distinguished names for the following users: {}\", userIds);\n Map<String, String> userDNToIdMap = new HashMap<>();\n UserDNMapper userDNIdMapper = new UserDNMapper();\n\n if (StringUtils.isNotEmpty(configProps.getUserSearchFilter())) {\n log.debug(\n \"Fetching user DNs from LDAP since user search filter is set to {}\",\n configProps.getUserSearchFilter());\n // Partition the list of userIds into batches of fixed sizes and process the batches one at a\n // time\n Iterables.partition(userIds, configProps.getLoadUserDNsBatchSize())\n .forEach(\n userIdsInBatch -> {\n log.debug(\"Processing the following batch of users: {}\", userIdsInBatch);\n List<String> idFilters =\n userIdsInBatch.stream()\n .map(\n userId ->\n MessageFormat.format(configProps.getUserSearchFilter(), userId))\n .collect(Collectors.toList());\n\n // This creates an \"OR\" filter of this form:\n // (|([email protected])([email protected])([email protected])...)\n String userDNsFilter = String.format(\"(|%s)\", String.join(\"\", idFilters));\n log.trace(\"LDAP query filter used for fetching the DNs: {}\", userDNsFilter);\n List<Pair<String, String>> userDNIdPairs =\n ldapTemplate.search(\n configProps.getUserSearchBase(), userDNsFilter, userDNIdMapper);\n\n log.trace(\"Fetched the following user id DN pairs from LDAP: {}\", userDNIdPairs);\n userDNIdPairs.forEach(pair -> userDNToIdMap.put(pair.getKey(), pair.getValue()));\n });\n } else {\n log.debug(\"Building user DN from LDAP since user search filter is empty\");\n userIds.forEach(userId -> userDNToIdMap.put(getUserFullDn(userId), userId));\n }\n\n log.debug(\"Loaded {} user DNs\", userDNToIdMap.size());\n return userDNToIdMap;\n }", "public void user_mappings()\n {\n\t boolean mappingpresent =usermapping.size()>0;\n\t if(mappingpresent)\n\t {\n\t\t // System.out.println(\"User mapping report is PRESENT\");\n\t }\n\t else\n\t {\n\t\t System.out.println(\"User mapping report is not present\");\n\t }\n }", "@Test\n public void fsckTagkMissingForward() throws Exception {\n storage.flushColumn(\"host\".getBytes(MockBase.ASCII()), ID_FAMILY, TAGK);\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(0, errors);\n }", "boolean hasToUid();", "boolean hasToUid();", "private void reverseLookupC_Location_ID() throws Exception\r\n\t{\r\n\t\tStringBuilder sql = new StringBuilder();\r\n\t\tString msg = new String();\r\n\t\tint no = 0;\r\n\r\n\t\t//Reverse Loog up C_Location_ID From JP_Location_Label\r\n\t\tmsg = Msg.getMsg(getCtx(), \"Matching\") + \" : \" + Msg.getElement(getCtx(), \"C_Location_ID\")\r\n\t\t+ \" - \" + Msg.getMsg(getCtx(), \"MatchFrom\") + \" : \" + Msg.getElement(getCtx(), \"JP_Location_Label\") ;\r\n\t\tsql = new StringBuilder (\"UPDATE I_LocationJP i \")\r\n\t\t\t\t.append(\"SET C_Location_ID=(SELECT C_Location_ID FROM C_Location p\")\r\n\t\t\t\t.append(\" WHERE i.JP_Location_Label= p.JP_Location_Label AND p.AD_Client_ID=i.AD_Client_ID) \")\r\n\t\t\t\t.append(\" WHERE i.C_Location_ID IS NULL AND JP_Location_Label IS NOT NULL\")\r\n\t\t\t\t.append(\" AND i.I_IsImported='N'\").append(getWhereClause());\r\n\t\ttry {\r\n\t\t\tno = DB.executeUpdateEx(sql.toString(), get_TrxName());\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.fine(msg +\"=\" + no + \":\" + sql);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + sql );\r\n\t\t}\r\n\r\n\t}", "public void unlinkUD()\n {\n this.U.D = this.D;\n this.D.U = this.U;\n }", "private void moveUserDataForDrawnTombolas(String sourceUserId, String targetUserId) {\n List<String> drawnMonthsForSourceUser =\n Optional.ofNullable(tombolaAerospikeDao.getDrawnMonthsForUser(sourceUserId))\n .orElse(Collections.emptyList());\n for (String month : drawnMonthsForSourceUser) {\n moveUserDataForMap(sourceUserId, targetUserId, month, false);\n }\n }", "void unDistributeKeys(Stack<Entry> rs) {\n while (!rs.empty()) {\n Integer key = rs.pop().getHash();\n RemoteMapper rm = findMapper(key);\n try {\n rm.removeKey(key);\n } catch (RemoteException ex) {\n ex.printStackTrace();\n }\n }//while\n }", "private void calcPossibleMappingImpl(\n Collection<Vertex> currentSourceVertices,\n Collection<Vertex> currentTargetVertices,\n List<String> contextId,\n int contextIx,\n List<VertexContextSegment> contexts,\n Set<Vertex> usedSourceVertices,\n Set<Vertex> usedTargetVertices,\n String typeNameForDebug) {\n runningCheck.check();\n\n VertexContextSegment finalCurrentContext = contexts.get(contextIx);\n Map<String, ImmutableList<Vertex>> sourceGroups = FpKit.filterAndGroupingBy(currentSourceVertices,\n v -> finalCurrentContext.filter(v, sourceGraph),\n v -> finalCurrentContext.idForVertex(v, sourceGraph));\n Map<String, ImmutableList<Vertex>> targetGroups = FpKit.filterAndGroupingBy(currentTargetVertices,\n v -> finalCurrentContext.filter(v, targetGraph),\n v -> finalCurrentContext.idForVertex(v, targetGraph));\n\n\n List<String> deletedContexts = new ArrayList<>();\n List<String> insertedContexts = new ArrayList<>();\n List<String> sameContexts = new ArrayList<>();\n Util.diffNamedList(sourceGroups.keySet(), targetGroups.keySet(), deletedContexts, insertedContexts, sameContexts);\n\n // for each unchanged context we descend recursively into\n for (String sameContext : sameContexts) {\n ImmutableList<Vertex> sourceVerticesInContext = sourceGroups.get(sameContext);\n ImmutableList<Vertex> targetVerticesInContext = targetGroups.get(sameContext);\n\n List<String> currentContextId = concat(contextId, sameContext);\n if (contexts.size() > contextIx + 1) {\n calcPossibleMappingImpl(sourceVerticesInContext, targetVerticesInContext, currentContextId, contextIx + 1, contexts, usedSourceVertices, usedTargetVertices, typeNameForDebug);\n }\n /**\n * Either there was no context segment left or not all vertices were relevant for\n * Either way: fill up with isolated vertices and record as possible mapping\n */\n Set<Vertex> notUsedSource = new LinkedHashSet<>(sourceVerticesInContext);\n notUsedSource.removeAll(usedSourceVertices);\n Set<Vertex> notUsedTarget = new LinkedHashSet<>(targetVerticesInContext);\n notUsedTarget.removeAll(usedTargetVertices);\n\n possibleMappings.putPossibleMappings(currentContextId, notUsedSource, notUsedTarget, typeNameForDebug);\n usedSourceVertices.addAll(notUsedSource);\n usedTargetVertices.addAll(notUsedTarget);\n }\n\n /**\n * update the used vertices with the deleted and inserted contexts\n */\n Set<Vertex> possibleSourceVertices = new LinkedHashSet<>();\n for (String deletedContext : deletedContexts) {\n ImmutableList<Vertex> vertices = sourceGroups.get(deletedContext);\n for (Vertex sourceVertex : vertices) {\n if (!usedSourceVertices.contains(sourceVertex)) {\n possibleSourceVertices.add(sourceVertex);\n }\n }\n usedSourceVertices.addAll(vertices);\n }\n\n Set<Vertex> possibleTargetVertices = new LinkedHashSet<>();\n for (String insertedContext : insertedContexts) {\n ImmutableList<Vertex> vertices = targetGroups.get(insertedContext);\n for (Vertex targetVertex : vertices) {\n if (!usedTargetVertices.contains(targetVertex)) {\n possibleTargetVertices.add(targetVertex);\n }\n }\n usedTargetVertices.addAll(vertices);\n }\n if (contextId.size() == 0) {\n contextId = singletonList(typeNameForDebug);\n }\n possibleMappings.putPossibleMappings(contextId, possibleSourceVertices, possibleTargetVertices, typeNameForDebug);\n }", "private void finalizeOutOfTypeSystemFS(FSData aFS) {\n // make ID unique by prefixing a letter\n aFS.id = 'a' + aFS.id;\n // remap ref features\n for (Map.Entry<String, Object> entry : aFS.featVals.entrySet()) {\n String attrName = entry.getKey();\n if (attrName.startsWith(\"_ref_\")) {\n int val = Integer.parseInt((String) entry.getValue());\n if (val >= 0) // negative numbers represent null and are left unchanged\n {\n // attempt to locate target in type system\n FSInfo fsValInfo = fsTree.get(val);\n if (fsValInfo != null) {\n // entry.setValue(Integer.toString(fsValInfo.fs._id));\n entry.setValue(fsValInfo.fs);\n } else\n // out of type system - remap by prepending letter\n {\n entry.setValue(\"a\" + val);\n }\n }\n }\n\n }\n }", "void scanunique() {\n\t\tint oldline, newline;\n\t\tnode psymbol;\n\n\t\tfor (newline = 1; newline <= newinfo.maxLine; newline++) {\n\t\t\tpsymbol = newinfo.symbol[newline];\n\t\t\tif (psymbol.symbolIsUnique()) { // 1 use in each file\n\t\t\t\toldline = psymbol.linenum;\n\t\t\t\tnewinfo.other[newline] = oldline; // record 1-1 map\n\t\t\t\toldinfo.other[oldline] = newline;\n\t\t\t}\n\t\t}\n\t\tnewinfo.other[0] = 0;\n\t\toldinfo.other[0] = 0;\n\t\tnewinfo.other[newinfo.maxLine + 1] = oldinfo.maxLine + 1;\n\t\toldinfo.other[oldinfo.maxLine + 1] = newinfo.maxLine + 1;\n\t}", "@Test\n public void fsckFIXTagkMissingForward() throws Exception {\n storage.flushColumn(\"host\".getBytes(MockBase.ASCII()), ID_FAMILY, TAGK);\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, true, false);\n assertEquals(0, errors);\n assertNull(storage.getColumn(new byte [] {0, 0, 1}, NAME_FAMILY, TAGK));\n }", "@Test\n public void testEPTID2() throws Exception {\n UserMultiID umk = createUMK();\n RemoteUserName ru = umk.getRemoteUserName();\n User user = newUser(); //saved\n UserMultiID eptid = new UserMultiID(umk.getEptid());\n user.setUserMultiKey(new UserMultiID(ru));\n getUserStore().save(user);\n // This puts a new user with a remote user fireld (legacy case) in the store. Now we try and get the user\n // with *both* the remote user and an eptid\n\n user.setUserMultiKey(new UserMultiID(ru, null, eptid.getEptid(), null, null));\n XMLMap userMap = getDBSClient().getUser(user);\n Collection<User> users = getUserStore().get(eptid, user.getIdP());\n assert users.size() == 1 : \"Incorrect number of users found. Expected one and got \" + users.size();\n User testUser = users.iterator().next();\n user.setSerialIdentifier(testUser.getSerialIdentifier()); // this was reset in the getUser command to the AbstractDBService client.\n assert user.equals(users.iterator().next());\n userMap = getDBSClient().getUser(user.getIdentifier());\n checkUserAgainstMap(userMap, user);\n\n }", "@VisibleForTesting\n void updateUsers(List<String> userUnids) {\n final String METHOD = \"updateUsers\";\n LOGGER.entering(CLASS_NAME, METHOD);\n\n long timeStart = System.currentTimeMillis();\n NotesView serverAccessView = null;\n try {\n String userSelectionFormula = connectorSession.getUserSelectionFormula();\n String userNameFormula = connectorSession.getUserNameFormula();\n LOGGER.log(Level.FINEST,\n \"User selection formula is: {0}\\nUser name formula is: {1}\",\n new Object[] { userSelectionFormula, userNameFormula });\n serverAccessView = directoryDatabase.getView(\n NCCONST.DIRVIEW_SERVERACCESS);\n serverAccessView.refresh();\n\n int count = 0;\n for (String unid : userUnids) {\n NotesDocument personDoc = getDocumentByUnid(directoryDatabase, unid);\n if (personDoc == null) {\n LOGGER.log(Level.FINEST, \"Person document [{0}] is not found\", unid);\n } else {\n String notesName = null;\n try {\n if (count++ % NCCONST.GC_INVOCATION_INTERVAL == 0) {\n Util.invokeGC();\n }\n if (!personDoc.getItemValueString(NCCONST.ITMFORM).contentEquals(\n NCCONST.DIRFORM_PERSON)) {\n continue;\n }\n // The first value in this field is the Notes name; other\n // names may be present.\n Vector nameVector = personDoc.getItemValue(NCCONST.PITM_FULLNAME);\n if (nameVector.size() == 0) {\n continue;\n }\n String storedName = nameVector.firstElement().toString();\n notesName = notesSession.createName(storedName)\n .getCanonical().toLowerCase();\n LOGGER.log(Level.FINEST,\n \"Processing user: {0}; name from directory was: {1}\",\n new Object[] { notesName, storedName});\n // Get their PVI\n String pvi = evaluatePvi(userNameFormula, personDoc);\n if (0 == pvi.length()) {\n LOGGER.log(Level.WARNING,\n \"Could not evaluate PVI username for: {0}\", notesName);\n continue;\n }\n LOGGER.log(Level.FINEST, \"PVI: {0}\", pvi);\n // Does this person match the selection formula?\n boolean selected = checkPersonSelectionFormula(userSelectionFormula,\n personDoc);\n if (!selected) {\n LOGGER.log(Level.FINEST, \"User not selected: {0}\", notesName);\n continue;\n }\n updateUser(personDoc, notesName, pvi, serverAccessView);\n // Log user info\n if (LOGGER.isLoggable(Level.FINE)) {\n User user = getUser(\"gsaname\", pvi);\n LOGGER.log(Level.FINE, \"All groups for {0}: {1}\",\n new Object[] { user, user.getGroups() });\n }\n } catch (Exception e) {\n LOGGER.log(Level.WARNING, \"Failed to update user cache\"\n + (notesName != null ? \" for \" + notesName : \"\"), e);\n } finally {\n Util.recycle(personDoc);\n }\n }\n }\n } catch (Exception e) {\n LOGGER.log(Level.WARNING, \"Error processing users\", e);\n } finally {\n Util.recycle(serverAccessView);\n LOGGER.exiting(CLASS_NAME, METHOD);\n }\n long timeFinish = System.currentTimeMillis();\n LOGGER.log(Level.FINE, \"Update users: {0}ms\", timeFinish - timeStart);\n }", "public static int backwardScanBit(long map, int start)\n {\n if ( start >= 0 )\n {\n start = Math.min(start, 63);\n long bit = 1L << start;\n\n for (int i = start; i >= 0; i--, bit >>= 1)\n {\n if ((map & bit) != 0) return i;\n }\n }\n return -1;\n }", "public void relinkUD()\n {\n this.U.D = this.D.U = this;\n }", "public static int forwardScanBit(long map, int start)\n {\n if ( start < 64 )\n {\n start = Math.max(start, 0);\n long bit = 1L << start;\n\n for (int i = start; i <= 63; i++, bit <<= 1)\n {\n if ((map & bit) != 0) return i;\n }\n }\n return 64;\n }", "public static void fixFollowers() throws twitter4j.TwitterException\n\t{\n\n\t\tlong[] friends = twitter.getFriendsIDs(-1).getIDs();\n\n\t\tif (friends.length > 2000)\n\t\t{\n\t\t\tfor (int i = 0; i < friends.length / 2; i++)\n\t\t\t{\n\t\t\t\ttwitter.destroyFriendship(friends[i]);\n\t\t\t}\n\t\t}\n\t}", "private void processTilesetMap() {\r\n for (int t = 0; t < this.getTileSetCount(); t++) {\r\n TileSet tileSet = this.getTileSet(t);\r\n this.tilesetNameToIDMap.put(tileSet.name, t);\r\n }\r\n }", "private static boolean currentStableIdentifierWithMapping(Set<String> currentStableIdentifiers, String primaryId, List<String> secondaryIds) {\n\t\treturn currentStableIdentifiers.contains(primaryId) && !secondaryIds.isEmpty();\n\t}", "void fillLabelHash() {\n log.debug(\" begin fillLabelHash\");\n for (int v = 0; v < vertices.length; v++) {\n log.debug(\" ---- process vertex \" + v);\n System.err.println(\" ---- process vertex \" + v);\n\n HammingVertex vertex = vertices[v];\n\n // all users of the array MUST use exactly the same algorithm lookup sequence\n int missingBitsVertexMapsIndex = 0;\n\n for (int i = 0; i < (labelSize - 1); i++) {\n for (int j = (i + 1); j < labelSize; j++) {\n\n Map missingBitsVertexMap = missingBitsVertexMaps[missingBitsVertexMapsIndex];\n if (missingBitsVertexMap == null) {\n missingBitsVertexMap = new HashMap<Integer, List<Integer>>();\n missingBitsVertexMaps[missingBitsVertexMapsIndex] = missingBitsVertexMap;\n }\n int compressedLabel = vertex.labelWithoutMissingBitsAsInt(i, j);\n List<Integer> list = (List<Integer>) missingBitsVertexMap.get(compressedLabel);\n if (list == null) {\n list = new LinkedList<Integer>();\n missingBitsVertexMap.put(compressedLabel, list);\n }\n list.add(vertex.vertexNumber);\n\n // next missing bit hashMap in sequence\n missingBitsVertexMapsIndex++;\n }\n }\n }\n }", "public void unifyAccessPaths(Set roots) {\n LinkedList worklist = new LinkedList();\n for (Iterator i = roots.iterator(); i.hasNext(); ) {\n worklist.add(i.next());\n }\n while (!worklist.isEmpty()) {\n Node n = (Node) worklist.removeFirst();\n if (n instanceof UnknownTypeNode) continue;\n unifyAccessPathEdges(n);\n for (Iterator i = n.getAccessPathEdges().iterator(); i.hasNext(); ) {\n Map.Entry e = (Map.Entry) i.next();\n FieldNode n2 = (FieldNode) e.getValue();\n Assert._assert(n2 != null);\n if (roots.contains(n2)) continue;\n worklist.add(n2); roots.add(n2);\n }\n for (Iterator i=n.getNonEscapingEdges().iterator(); i.hasNext(); ) {\n Map.Entry e = (Map.Entry) i.next();\n Object o = e.getValue();\n if (o instanceof Node) {\n Node n2 = (Node)o;\n Assert._assert(n2 != null);\n if (roots.contains(n2)) continue;\n worklist.add(n2); roots.add(n2);\n } else {\n Set s = NodeSet.FACTORY.makeSet((Set) o);\n for (Iterator j = s.iterator(); j.hasNext(); ) {\n Object p = j.next();\n Assert._assert(p != null);\n if (roots.contains(p)) j.remove();\n }\n if (!s.isEmpty()) {\n worklist.addAll(s); roots.addAll(s);\n }\n }\n }\n }\n }", "private void reverseLookupAD_Org_ID() throws Exception\r\n\t{\r\n\t\tStringBuilder sql = new StringBuilder();\r\n\t\tString msg = new String();\r\n\t\tint no = 0;\r\n\r\n\t\t//Reverese Look up AD_Org ID From JP_Org_Value\r\n\t\tmsg = Msg.getMsg(getCtx(), \"Matching\") + \" : \" + Msg.getElement(getCtx(), \"AD_Org_ID\")\r\n\t\t+ \" - \" + Msg.getMsg(getCtx(), \"MatchFrom\") + \" : \" + Msg.getElement(getCtx(), \"JP_Org_Value\") ;\r\n\t\tsql = new StringBuilder (\"UPDATE I_LocationJP i \")\r\n\t\t\t\t.append(\"SET AD_Org_ID=(SELECT AD_Org_ID FROM AD_org p\")\r\n\t\t\t\t.append(\" WHERE i.JP_Org_Value=p.Value AND (p.AD_Client_ID=i.AD_Client_ID or p.AD_Client_ID=0) ) \")\r\n\t\t\t\t.append(\" WHERE i.JP_Org_Value IS NOT NULL\")\r\n\t\t\t\t.append(\" AND i.I_IsImported='N'\").append(getWhereClause());\r\n\t\ttry {\r\n\t\t\tno = DB.executeUpdateEx(sql.toString(), get_TrxName());\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.fine(msg +\"=\" + no + \":\" + sql);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + sql );\r\n\t\t}\r\n\r\n\t\t//Invalid JP_Org_Value\r\n\t\tmsg = Msg.getMsg(getCtx(), \"Invalid\")+Msg.getElement(getCtx(), \"JP_Org_Value\");\r\n\t\tsql = new StringBuilder (\"UPDATE I_LocationJP \")\r\n\t\t\t.append(\"SET I_ErrorMsg='\"+ msg + \"'\")\r\n\t\t\t.append(\" WHERE AD_Org_ID = 0 AND JP_Org_Value IS NOT NULL AND JP_Org_Value <> '0' \")\r\n\t\t\t.append(\" AND I_IsImported<>'Y'\").append(getWhereClause());\r\n\t\ttry {\r\n\t\t\tno = DB.executeUpdateEx(sql.toString(), get_TrxName());\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.fine(msg +\"=\" + no + \":\" + sql);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + msg +\" : \" + sql );\r\n\t\t}\r\n\r\n\t\tif(no > 0)\r\n\t\t{\r\n\t\t\tcommitEx();\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + msg );\r\n\t\t}\r\n\r\n\t}", "public Map lookupNoAttributes( Set lfns, String handle ){\n //Map indexed by lrc url and each value a collection\n //of lfns that the RLI says are present in it.\n Map lrc2lfn = this.getLRC2LFNS(lfns);\n if(lrc2lfn == null){\n //probably RLI is not connected!!\n return null;\n }\n\n // now query the LRCs with the LFNs that they are responsible for\n // and aggregate stuff.\n String key = null,message = null;\n Map result = new HashMap(lfns.size());\n for(Iterator it = lrc2lfn.entrySet().iterator();it.hasNext();){\n Map.Entry entry = (Map.Entry)it.next();\n key = (String)entry.getKey();\n message = \"Querying LRC \" + key;\n mLogger.log(message,LogManager.DEBUG_MESSAGE_LEVEL);\n\n //push the lrcURL to the properties object\n mConnectProps.setProperty(this.URL_KEY,key);\n LRC lrc = new LRC();\n if(!lrc.connect(mConnectProps)){\n //log an error/warning message\n mLogger.log(\"Unable to connect to LRC \" + key,\n LogManager.ERROR_MESSAGE_LEVEL);\n continue;\n }\n\n //query the lrc\n try{\n Map m = lrc.lookupNoAttributes((Set)entry.getValue(),handle);\n for(Iterator mit = m.entrySet().iterator();mit.hasNext();){\n entry = (Map.Entry)mit.next();\n //merge the entries into the main result\n key = (String)entry.getKey(); //the lfn\n if(result.containsKey(key)){\n //right now no merging of RCE being done on basis\n //on them having same pfns. duplicate might occur.\n ((Set)result.get(key)).addAll((Set)entry.getValue());\n }\n else{\n result.put(key,entry.getValue());\n }\n }\n }\n catch(Exception ex){\n mLogger.log(\"lookup(Set,String):\",ex,\n LogManager.ERROR_MESSAGE_LEVEL);\n }\n finally{\n //disconnect\n lrc.close();\n }\n\n\n mLogger.log(message + LogManager.MESSAGE_DONE_PREFIX,LogManager.DEBUG_MESSAGE_LEVEL);\n }\n return result;\n\n }", "private void m29109d() {\n PersistentConfiguration cVar = this.f22554b;\n if (cVar != null) {\n if (C6804i.m29033a(cVar.getString(\"UTDID2\"))) {\n String string = this.f22554b.getString(\"UTDID\");\n if (!C6804i.m29033a(string)) {\n m29110f(string);\n }\n }\n boolean z = false;\n String str = \"DID\";\n if (!C6804i.m29033a(this.f22554b.getString(str))) {\n this.f22554b.remove(str);\n z = true;\n }\n String str2 = \"EI\";\n if (!C6804i.m29033a(this.f22554b.getString(str2))) {\n this.f22554b.remove(str2);\n z = true;\n }\n String str3 = \"SI\";\n if (!C6804i.m29033a(this.f22554b.getString(str3))) {\n this.f22554b.remove(str3);\n z = true;\n }\n if (z) {\n this.f22554b.commit();\n }\n }\n }", "private void lookUpUsers() {\n\t\ttry {\n\t\t\tString[] regList = Naming.list(\"//localhost:3000\");\n\t\t\tfor (String s : regList) {\n\t\t\t\tif (!s.contains(\"Notary\") && !s.contains(this.id)) {\n\t\t\t\t\tremoteUsers\n\t\t\t\t\t\t.put(s.replace(\"//localhost:3000/\", \"\"), (UserInterface) Naming.lookup(s));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (MalformedURLException | RemoteException | NotBoundException e) {\n\t\t\tSystem.err.println(\"ERROR looking up user\");\n\t\t}\n\t}", "private void findIternary(Map<String, String> dataSet) {\n\t\tMap<String, String> reverseMap = new HashMap<String, String>();\n\t\tfor (Map.Entry<String, String> entry : dataSet.entrySet())\n\t\t\treverseMap.put(entry.getValue(), entry.getKey());\n\t\tString start = null;\n\t\tfor (Map.Entry<String, String> entry : dataSet.entrySet()) {\n\t\t\tif (!reverseMap.containsKey(entry.getKey())) {\n\t\t\t\tstart = entry.getKey();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (start == null) {\n\t\t\tSystem.out.println(\"Invalid Input\");\n\t\t\treturn;\n\t\t}\n\t\tString to = dataSet.get(start);\n\t\twhile (to != null)\n\n\t\t{\n\t\t\tSystem.out.print(start + \"->\" + to + \",\");\n\t\t\tstart = to;\n\t\t\tto = dataSet.get(to);\n\t\t}\n\n\t}", "boolean hasUid();", "boolean hasUid();", "private void initIDFMap(List<List<Map<String,List<Double>>>> tfMap){\n\t\tfor (int i = 0; i < tfMap.size(); i++) {\n\t\t\tList<Map<String,List<Double>>> gestureDocument = tfMap.get(i);\n\t\t\tfor (int j = 0; j < gestureDocument.size(); j++) {\n\t\t\t\tMap<String,List<Double>> tempMap = gestureDocument.get(j);\n\t\t\t\tIterator<Entry<String, List<Double>>> it = tempMap.entrySet().iterator();\n\t\t\t\t while (it.hasNext()) {\n\t\t\t\t Map.Entry<String,Integer> pairs = (Map.Entry)it.next(); \n\t\t\t\t if(getTfIDFMapGlobal().containsKey(pairs.getKey()))\n\t\t\t\t \tgetTfIDFMapGlobal().put(pairs.getKey(), getTfIDFMapGlobal().get(pairs.getKey())+1);\n\t\t\t\t else\n\t\t\t\t \tgetTfIDFMapGlobal().put(pairs.getKey(), 1);\n\t\t\t\t }\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void fsckMetricsDuplicateReverse() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 4});\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(4L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(2, errors);\n }", "private static void writeMappingsToFile(String releaseNumber, List<List<Object>> stableIdsToOldIdsMappings, Set<String> currentStableIdentifiers) throws IOException {\n\t\tPath oldStableIdsMappingFilePath = Paths.get(releaseNumber, \"reactome_stable_ids.txt\");\n\t\tString header = \"# Reactome stable IDs for release \" + releaseNumber + \"\\n\" + \"Stable_ID\\told_identifier(s)\\n\";\n\t\tFiles.write(oldStableIdsMappingFilePath, header.getBytes(), StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING);\n\t\tfor (List<Object> stableIdsArray : stableIdsToOldIdsMappings)\n\t\t{\n\t\t\tString primaryId = (String) stableIdsArray.get(0);\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<String> secondaryIds = (ArrayList<String>) stableIdsArray.get(1);\n\t\t\tif (currentStableIdentifierWithMapping(currentStableIdentifiers, primaryId, secondaryIds)) {\n\t\t\t\tString line = primaryId + \"\\t\" + String.join(\",\", secondaryIds) + \"\\n\";\n\t\t\t\tFiles.write(oldStableIdsMappingFilePath, line.getBytes(), StandardOpenOption.APPEND);\n\t\t\t}\n\t\t}\n\t}", "public boolean compareXMLNoOrderMapList(List<Element> destinationDataElements, List<Map<Integer, String>> mapList, List<Check> ck, String messageTitle, String keyName, int keyId)\n\t{\n\t\tboolean result = true;\n\t\ttry{\n\t\t\tfor (int i=0; i<mapList.size(); i++)\n\t\t\t{\t\t\t\t\t\n\t\t\t\tMap<Integer, String> map = mapList.get(i);\n\t\t\t\tfor (int j=0; j<destinationDataElements.size(); j++)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\tElement element = destinationDataElements.get(j);\n\t\t\t\t\tif (element.selectSingleNode(keyName).getText().trim().equals(map.get(keyId)))\n\t\t\t\t\t{\n\t\t\t\t\t\tfor (int k=0; k<ck.size(); k++) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCheck check = ck.get(k);\n\t\t\t\t\t\t\tNode destinationNode = element.selectSingleNode(check.DestinationPath);\n\t\t\t\t\t\t\tString sqlValue = map.get(k+1);\n\t\t\t\t\t\t\tif (destinationNode != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (!destinationNode.getText().trim().equals(sqlValue)) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlogger.error(messageTitle + \"\\t\" + keyName + \":\" + map.get(keyId) + \"\\t\" + check.DestinationPath + \" Actual Value isn't equal with Expected Value: \" + destinationNode.getText().trim() + \",\" + sqlValue);\n\t\t\t\t\t\t\t\t\tresult = false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}else if (sqlValue != null )\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (!sqlValue.trim().equals(\"\")) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlogger.error(messageTitle + \"\\t\" + keyName + \":\" + map.get(keyId) + \"\\t\" + check.DestinationPath + \" Actual Value isn't equal with Expected Value: null, \" + sqlValue);\n\t\t\t\t\t\t\t\t\tresult = 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}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif (j == (destinationDataElements.size() -1 ))\n\t\t\t\t\t{\n\t\t\t\t\t\tlogger.error(messageTitle + \"\\t\" + keyName + \":\" + map.get(keyId) + \"\\tCan't find it in Destination Page\");\n\t\t\t\t\t\tresult = false;\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}\n\t\t}catch (Exception ex) {\t\t\t\n\t\t\tlogger.error(messageTitle + \"\\t\" + ex.toString());\n\t\t\tresult = false;\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "void checkRename(Object oldId, Object newId) throws UPAException;", "public void uncover ()\n {\n for (DancingNode i=this.U; i!=this; i=i.U) // go up the column\n {\n for (DancingNode j=i.L; j!=i; j=j.L) // go left across the row \n {\n j.C.size++;\n j.relinkUD();\n }\n }\n this.relinkLR();\n }", "private void upsertFingerTable(boolean first) {\n LOGGER.fine(\"Upserting Fingertable\");\n int fingerTableSize = (int) (Math.log(IDSPACE) / Math.log(2));\n for (int i = 0; i < fingerTableSize; i++) {\n int lookupID = (id + (int) (Math.pow(2, i))) % IDSPACE;\n if (first) {\n fingerTable.add(new Finger(lookupID, null));\n } else {\n try {\n performLookup(getSuccessor(), lookupID, address, new JSONProperties(\"linear\", 0, false));\n } catch (NodeOfflineException e) {\n LOGGER.severe(\"upsertFingerTable failed. \" + getSuccessor() + \" is offline\");\n }\n }\n }\n }", "@Override\r\n\tpublic boolean isUniqueID(String userID)\r\n\t{\r\n\t\tif (hm.containsValue(userID))\r\n\t\t\treturn false;\r\n\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}", "@Override\n public void syncUserData() {\n\n List<User> users = userRepository.getUserList();\n List<LdapUser> ldapUsers = getAllUsers();\n Set<Integer> listUserIdRemoveAM = new HashSet<>();\n\n //check update or delete \n for (User user : users) {\n boolean isDeleted = true;\n for (LdapUser ldapUser : ldapUsers) {\n if (user.getUserID().equals(ldapUser.getUserID())) {\n // is updateours\n user.setFirstName(ldapUser.getFirstName());\n user.setLastName(ldapUser.getLastName());\n user.setUpdatedAt(Utils.getCurrentTime());\n user.setEmail(ldapUser.getMail().trim());\n user.setJobTitle(ldapUser.getTitle() == null ? DEFAULT_JOB_TITLE : ldapUser.getTitle());\n user.setPhoneNumber(ldapUser.getTelephonNumber());\n user.setOfficeLocation(ldapUser.getOfficeLocation());\n \n String managerId = ldapUser.getManagerUser();\n User manager = getUserFromListByUserID(users, managerId);\n user.setManagerId(manager == null ? 0 : manager.getId());\n \n //This code will be lock till deploy the real LDAP have 2 properties are \"department\" and \"userAccountControl\"\n /*user.setActive(ldapUser.getUserAccountControl() == 514 ? (byte) 0 : (byte) 1);*/\n Department department = departmentRepository.getDepartmentByName(ldapUser.getDepartment());\n checkChangeDepartment(user, department, listUserIdRemoveAM);\n \n userRepository.editUser(user);\n \n isDeleted = false;\n break;\n }\n }\n if (isDeleted) {\n user.setIsDeleted((byte) 1);\n user.setActive((byte) 0);\n userRepository.editUser(user);\n }\n }\n\n //check new user\n for (LdapUser ldapUser : ldapUsers) {\n boolean isNew = true;\n for(User user : users){\n if(ldapUser.getUserID().equals(user.getUserID())){\n isNew = false;\n break;\n }\n }\n if(isNew){\n logger.debug(\"Is new User userID = \"+ldapUser.getUserID());\n User user = new User();\n user.setUserID(ldapUser.getUserID());\n user.setStaffCode(ldapUser.getUserID());\n user.setFirstName(ldapUser.getFirstName());\n user.setLastName(ldapUser.getLastName());\n user.setCreatedAt(Utils.getCurrentTime());\n user.setUpdatedAt(Utils.getCurrentTime());\n user.setEmail(ldapUser.getMail().trim());\n user.setJobTitle(ldapUser.getTitle() == null ? DEFAULT_JOB_TITLE : ldapUser.getTitle());\n user.setPhoneNumber(ldapUser.getTelephonNumber());\n user.setActive((byte) 1);\n user.setIsDeleted((byte) 0);\n user.setOfficeLocation(ldapUser.getOfficeLocation());\n user.setRoleId(4);\n user.setApprovalManagerId(0);;\n \n String managerId = ldapUser.getManagerUser();\n User manager = getUserFromListByUserID(users, managerId);\n user.setManagerId(manager == null ? 0 : manager.getId());\n\n //This code will be lock till deploy the real LDAP have 2 properties are \"department\" and \"userAccountControl\"\n Department department = departmentRepository.getDepartmentByName(ldapUser.getDepartment());\n user.setDepartmentId(department == null ? 0 : department.getId());\n \n /*user.setActive(ldapUser.getUserAccountControl() == 514 ? (byte) 0 : (byte) 1);*/\n \n userRepository.addUser(user);\n logger.debug(\"Is new User id = \"+user.getId());\n }\n }\n \n //Remove AprovalManager out User\n for(Integer userId : listUserIdRemoveAM){\n if(userId == null) continue;\n User userRemoveAMId = userRepository.getUserById(userId);\n userRemoveAMId.setApprovalManagerId(0);\n userRepository.editUser(userRemoveAMId);\n }\n }", "@Test\n public void fsckMetricsInconsistentFwdAndDupeRev() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 1});\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(5, errors);\n }", "private void updateNotesDomainNames(List<String> userUnids) {\n final String METHOD = \"updateNotesDomainNames\";\n LOGGER.entering(CLASS_NAME, METHOD);\n\n long timeStart = System.currentTimeMillis();\n\n int count = 0;\n for (String unid : userUnids) {\n if (count++ % NCCONST.GC_INVOCATION_INTERVAL == 0) {\n Util.invokeGC();\n }\n\n NotesDocument doc = getDocumentByUnid(directoryDatabase, unid);\n if (doc == null) {\n LOGGER.log(Level.FINEST, \"Document [{0}] is not found in {1} database\",\n new Object[] {unid, getDatabaseFilePath(directoryDatabase)});\n } else {\n try {\n Vector fullNames = doc.getItemValue(NCCONST.PITM_FULLNAME);\n if (fullNames.size() == 0) {\n continue;\n }\n // Create domains/OUs as groups in H2 if not existed and \n // update domain cache\n List<String> canonicalOUs = notesDomainNames\n .computeExpandedWildcardDomainNames((String) fullNames.get(0));\n verifyMultiDomainsExist(canonicalOUs, true);\n } catch (RepositoryException re) {\n LOGGER.log(Level.WARNING, \n \"Failed to update Notes domain names for person document [\"\n + unid + \"]\", re);\n } finally {\n Util.recycle(doc);\n }\n }\n }\n\n long timeFinish = System.currentTimeMillis();\n LOGGER.log(Level.FINEST, \"Update Notes domain cache [{0}ms]: {1}\",\n new Object[] {(timeFinish - timeStart), notesDomainNames});\n LOGGER.exiting(CLASS_NAME, METHOD);\n }", "private void checkMapPartitionToNode(Affinity testAff, Affinity aff) {\n assertEquals(aff.partitions(), testAff.partitions());\n\n for (int part = 0; part < aff.partitions(); ++part) {\n assertEquals(testAff.mapPartitionToNode(part).id(), aff.mapPartitionToNode(part).id());\n\n checkEqualCollection(testAff.mapPartitionToPrimaryAndBackups(part),\n aff.mapPartitionToPrimaryAndBackups(part));\n }\n }", "private boolean mapTokensToEDUUnits(RSTTreeNode rstTreeNode, JCas jCas)\n {\n List<Token> tokens = new ArrayList<>(JCasUtil.select(jCas, Token.class));\n\n return mapTokensToEDUUnitsRecursive(rstTreeNode, tokens, new AtomicInteger(0));\n }", "private boolean checkRep()\r\n/* 126: */ {\r\n/* 127: */ Iterator localIterator2;\r\n/* 128:217 */ for (Iterator localIterator1 = this.map.keySet().iterator(); localIterator1.hasNext(); localIterator2.hasNext())\r\n/* 129: */ {\r\n/* 130:217 */ N n = (Object)localIterator1.next();\r\n/* 131:218 */ localIterator2 = ((Map)this.map.get(n)).keySet().iterator(); continue;N suc = (Object)localIterator2.next();\r\n/* 132:219 */ if (!((Map)this.map.get(suc)).containsKey(n)) {\r\n/* 133:220 */ return false;\r\n/* 134: */ }\r\n/* 135:223 */ if (!((Map)this.map.get(n)).get(suc).equals(((Map)this.map.get(suc)).get(n))) {\r\n/* 136:224 */ return false;\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139:230 */ return true;\r\n/* 140: */ }", "@Test (timeout=180000)\n public void testDupeStartKey() throws Exception {\n TableName table =\n TableName.valueOf(\"tableDupeStartKey\");\n try {\n setupTable(table);\n assertNoErrors(doFsck(conf, false));\n assertEquals(ROWKEYS.length, countRows());\n\n // Now let's mess it up, by adding a region with a duplicate startkey\n HRegionInfo hriDupe =\n createRegion(tbl.getTableDescriptor(), Bytes.toBytes(\"A\"), Bytes.toBytes(\"A2\"));\n TEST_UTIL.getHBaseCluster().getMaster().assignRegion(hriDupe);\n TEST_UTIL.getHBaseCluster().getMaster().getAssignmentManager()\n .waitForAssignment(hriDupe);\n ServerName server = regionStates.getRegionServerOfRegion(hriDupe);\n TEST_UTIL.assertRegionOnServer(hriDupe, server, REGION_ONLINE_TIMEOUT);\n\n HBaseFsck hbck = doFsck(conf, false);\n assertErrors(hbck, new ERROR_CODE[] { ERROR_CODE.DUPE_STARTKEYS,\n ERROR_CODE.DUPE_STARTKEYS});\n assertEquals(2, hbck.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows()); // seems like the \"bigger\" region won.\n\n // fix the degenerate region.\n doFsck(conf,true);\n\n // check that the degenerate region is gone and no data loss\n HBaseFsck hbck2 = doFsck(conf,false);\n assertNoErrors(hbck2);\n assertEquals(0, hbck2.getOverlapGroups(table).size());\n assertEquals(ROWKEYS.length, countRows());\n } finally {\n cleanupTable(table);\n }\n }", "public static void UdTFIDF(List<LinearProbingHashST<String,Term>> tables, LinearProbingHashST<String, Integer> docFreq){\n\n //The function works by looping through all the keys (the words) in docFreq (a parameter in which I passed DocFreq as the argument)\n for (LinearProbingHashST table : tables) {\n for (Object aWord: table.getKeys()){\n Term tempTerm = (Term) table.get(aWord);\n tempTerm.UpdateTfIdf(table.getN(),tables.size(), (double) docFreq.get((String) aWord));\n table.put(aWord,tempTerm);\n }\n }\n }", "@Test\n public void fsckMetricsInconsistentReverse() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, \n METRICS, \"foo\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(1, errors);\n }", "private boolean checkAllMapsTo(\n Set<BooleanFormula> from,\n SSAMap startSSA,\n Set<BooleanFormula> to,\n SSAMap finishSSA,\n BooleanFormula transition\n ) throws SolverException, InterruptedException {\n return solver.isUnsat(bfmgr.and(\n fmgr.instantiate(bfmgr.and(from), startSSA),\n transition,\n fmgr.instantiate(bfmgr.not(bfmgr.and(to)), finishSSA)\n ));\n }", "@SuppressWarnings(\"unused\")\n private boolean checkIds(CFANode node) {\n\n if (!visited.add(node)) {\n // already handled, do nothing\n return true;\n }\n\n for (CFANode successor : CFAUtils.successorsOf(node)) {\n checkIds(successor);\n }\n\n //node.setReversePostorderId(reversePostorderId2++);\n assert node.getReversePostorderId() == reversePostorderId2++ : \"Node \" + node + \" got \" + node.getReversePostorderId() + \", but should get \" + (reversePostorderId2-1);\n return true;\n }", "public Vector checkAllIdReferences()\n {\n Vector resultVector = new Vector();\n String msgText = \"\";\n String idrefValue = \"\";\n boolean iItemdrefResult = false;\n\n if ( !mItemIdrefs.isEmpty() )\n {\n int mItemIdrefsSize = mItemIdrefs.size();\n for ( int i = 0; i < mItemIdrefsSize; i++ )\n {\n idrefValue = (String)mItemIdrefs.elementAt(i);\n\n if ( !idrefValue.equals(\"\") ) \n {\n msgText = Messages.getString(\"ManifestMap.40\", idrefValue ); \n LOGGER.info( \"INFO: \" + msgText ); \n DetailedLogMessageCollection.getInstance().addMessage( \n new LogMessage( MessageType.INFO, msgText ) );\n\n iItemdrefResult = checkIdReference( idrefValue );\n\n // track all idref values whose reference was not valid\n\n if ( !iItemdrefResult )\n {\n msgText = Messages.getString(\"ManifestMap.43\", idrefValue ); \n LOGGER.info( \"FAILED: \" + msgText ); \n DetailedLogMessageCollection.getInstance().addMessage( new LogMessage(\n MessageType.FAILED, msgText ) );\n\n resultVector.add( idrefValue );\n }\n }\n }\n }\n\n if ( !mDependencyIdrefs.isEmpty() )\n {\n int mDependencyIdrefsSize = mDependencyIdrefs.size();\n for ( int i = 0; i < mDependencyIdrefsSize; i++ )\n {\n idrefValue = (String)mDependencyIdrefs.elementAt(i);\n\n if ( !idrefValue.equals(\"\") ) \n {\n msgText = Messages.getString(\"ManifestMap.40\", idrefValue ); \n LOGGER.info( \"INFO: \" + msgText ); \n DetailedLogMessageCollection.getInstance().addMessage( new LogMessage( MessageType.INFO,\n msgText ) );\n \n boolean iDependencydrefResult = checkIdReference( idrefValue );\n\n // track all idref values whose reference was not valid\n\n if ( !iDependencydrefResult )\n {\n msgText = Messages.getString(\"ManifestMap.43\", idrefValue ); \n LOGGER.info( \"FAILED: \" + msgText ); \n DetailedLogMessageCollection.getInstance().addMessage( new LogMessage(\n MessageType.FAILED, msgText ) );\n\n resultVector.add( idrefValue );\n }\n }\n }\n }\n\n return resultVector;\n }", "private void createLookup() {\r\n\t\tcreateLooupMap(lookupMap, objectdef, objectdef.getName());\r\n\t\tcreateChildIndex(childIndex, objectdef, objectdef.getName());\r\n\r\n\t}", "private void removeIfNeeded(String prefix) {\r\n // remove the previous mapping to the prefix\r\n if (this.prefixMapping.containsValue(prefix)) {\r\n Object key = null;\r\n for (Enumeration e = this.prefixMapping.keys(); e.hasMoreElements();) {\r\n key = e.nextElement();\r\n if (this.prefixMapping.get(key).equals(prefix)) \r\n break;\r\n }\r\n this.prefixMapping.remove(key); // we know key should have a value\r\n\t if (DEBUG) System.err.println(\"Removed \" + prefix);\r\n \r\n }\r\n }", "public static void loadTargetTerm2IdMapping(File input) throws IOException {\n\t\t\tm_namesMap = new SimpleBidirectionalMap<String, Integer>();\n\t\t\tString encoding = FileUtils.getFileEncoding(input);\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(input), encoding));\n\t\t\tString line = reader.readLine();\n\t\t\tint lineNum = 1;\n\t\t\tboolean testFormat = false;\n\t\t\tif(StringUtils.checkIfNumber(line.split(\"\\t\")[0]))\n\t\t\t\ttestFormat = true;\n\t\t\twhile(line!= null) {\n\t\t\t\tif(line.equals(\"@@@\"))\n\t\t\t\t\tbreak;\n\t\t\t\tif(testFormat) {\n\t\t\t\t\tString num = line.split(\"\\t\")[0];\n\t\t\t\t\tSystem.out.println(\"key: \"+line.trim().substring(num.length()+1) + \" value: \" + Integer.parseInt(num));\n\t\t\t\t\tm_namesMap.put(line.trim().substring(num.length()+1), Integer.parseInt(num));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"key????\" + lineNum + \"instead of \" + line.split(\"\\t\")[0]);\n\t\t\t\t\tm_namesMap.put(line.trim(), lineNum);\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t\tlineNum ++;\n\t\t\t}\n\t\t}", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "private void setUpRouteIDsAndIndexes() {\n\n\n for (int i = 0; i < routeIDsOfBillboards.size(); i++) {\n\n List<Integer> routeIDs = routeIDsOfBillboards.get(i);\n\n for (int j = 0; j < routeIDs.size(); j++) {\n\n int routeID = routeIDs.get(j);\n routeIDSet.add(routeID);\n }\n }\n\n buildHash();\n\n for (int i = 0; i < routeIDsOfBillboards.size(); i++) {\n\n List<Integer> routeIndexes = new ArrayList<>();\n List<Integer> routeIDs = routeIDsOfBillboards.get(i);\n for (int j = 0; j < routeIDs.size(); j++) {\n\n int routeID = routeIDs.get(j);\n int routeIndex = (int) routeIDMap.get(routeID);\n routeIndexes.add(routeIndex);\n }\n routeIndexesOfBillboards.add(routeIndexes);\n }\n }", "private void recoverINodes()\n {\n Map<String, DFSNode.SerializedDFSNode> serInodeMap = new HashMap<>();\n try (BufferedReader reader = new BufferedReader(new FileReader(dfsNodeFile)))\n {\n String line;\n while((line=reader.readLine())!=null)\n {\n DFSNode.SerializedDFSNode serializedINode = (DFSNode.SerializedDFSNode) JSONUtil.fromJSON(line, DFSNode.SerializedDFSNode.class);\n DFSNode inode = new DFSNode();\n inode.fqpn = serializedINode.fqpn;\n inode.dataBlockMetas = serializedINode.dataBlockMeta;\n inode.dirOrFile= serializedINode.dirOrFile;\n inodeMap.put(inode.fqpn,inode);\n\n\n serInodeMap.put(serializedINode.fqpn,serializedINode);\n if (NumberUtils.isCreatable(inode.fqpn))\n fileNodeCounter = Math.max(fileNodeCounter,Integer.valueOf(inode.fqpn));\n\n /* if (inode.dataBlockMetas!=null) {\n\n DFSDataBlockMeta meta = inode.dataBlockMetas.get(inode.dataBlockMetas.size()-1);\n\n meta.fileSystem = resolve(meta.fileSystemName);\n\n }*/\n\n\n }\n } catch (Exception ex) {\n ex.printStackTrace();}\n\n\n inodeMap.values().stream().forEach(inode->{\n\n DFSNode.SerializedDFSNode serializedINode = serInodeMap.get(inode.fqpn);\n\n // inode.next = inodeMap.get(serializedINode.nextNodeName);\n\n if (serializedINode.getNodeNames()!=null) {\n List<DFSNode> nodes = serializedINode.getNodeNames().stream().map(name -> {\n return inodeMap.get(name) ;\n }).collect(Collectors.toList());\n\n inode.setNodes(nodes);\n }\n });\n\n }", "private void assignMissingResidueIds() {\n \t\tfor (Atom atom: atomVector) {\n \t\t\tif (atom.residue_id == Integer.MIN_VALUE) {\n \t\t\t\tatom.residue_id = atom.authorResidue_id;\n \t\t\t\tatom.nonpolymer = true;\n \t\t\t}\n \t\t}\n \t}", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n refIdsOnly.removeEventListener(idListener);\n if (dataSnapshot.exists()){\n for (DataSnapshot data:dataSnapshot.getChildren()){\n String id = data.getValue(String.class);\n if (idText1.equals(id)){\n userDoesntExist = false;\n }\n }\n }\n if (userDoesntExist){\n register(idText1);\n }\n else\n Toast.makeText(RegistrationActivity.this, \"duplicate id number\", Toast.LENGTH_LONG).show();\n }", "private void maintain(){\n ArrayList<Integer> shutDown = new ArrayList<Integer>();\n for (String addr : slaveMap.keySet()){\n if (!responderList.containsKey(slaveMap.get(addr))){\n shutDown.add(slaveMap.get(addr));\n }\n }\n //print\n for (Integer id : shutDown){\n synchronized (slaveList) {\n slaveList.remove(id);\n }\n }\n //TODO: one a slave lost control, what should ArcherDFS do?\n }", "public void unfollow(int followerId, int followeeId) {\n if(!u_map.containsKey(followerId) || followerId == followeeId){\n return;\n }\n u_map.get(followerId).unfollow(followeeId);\n }", "public void recreateAlternateIndexes()\n throws DBException\n {\n String utableName = this.getUntranslatedTableName();\n\n /* drop all alternate indexes */\n try {\n DBTableIndexMap indexMap = DBProvider.getActualTableIndexMap(utableName);\n if (indexMap != null) {\n Set<String> altIndexSet = indexMap.getAlternateIndexes();\n if (altIndexSet != null) {\n for (Iterator<String> i = altIndexSet.iterator(); i.hasNext();) {\n String indexName = i.next();\n try {\n DBProvider.removeAlternateIndex(utableName, indexName);\n Print.logInfo(\"Dropped alternate index '\"+indexName+\"' from table \"+utableName);\n } catch (Throwable th) {\n //Print.logWarn(\"Unable to delete alternate index '\"+indexName+\"' for table \"+TN);\n // ignore exception\n }\n }\n }\n }\n } catch (DBException dbe) {\n Print.logWarn(\"Unable to retrieve index information: \" + dbe.getMessage());\n }\n\n /* recreate alternate indexes */\n DBAlternateIndex altIndexes[] = this.getAlternateIndexes();\n if ((altIndexes != null) && (altIndexes.length > 0)) {\n // this table has alternate keys\n\n /* loop through alternate indexes */\n for (int i = 0; i < altIndexes.length; i++) {\n String indexName = altIndexes[i].getIndexName();\n \n /* drop existing alternate key */\n try {\n DBProvider.removeAlternateIndex(utableName, indexName);\n } catch (Throwable th) {\n // This exception is expected\n //Print.logWarn(\"Delete Alternate Index: '\"+indexName+\"' doesn't exist for table \" + TN);\n // ignore exception\n }\n\n /* rebuild alternate key */\n try {\n DBField indexFields[] = altIndexes[i].getFields();\n DBProvider.createAlternateIndex(utableName, altIndexes[i]);\n Print.logInfo(\"Created alternate index '\" + indexName + \"' for table \" + utableName);\n } catch (SQLException sqe) {\n throw new DBException(\"Alternate index create error\", sqe);\n }\n\n }\n\n } else {\n // this table does not have alternate keys\n\n /* drop default alternate key ('altIndex') */\n try {\n DBProvider.removeAlternateIndex(utableName, null);\n } catch (Throwable th) {\n // This exception is expected\n //Print.logWarn(\"Alternate key does not currently exist for table: \" + utableName);\n // ignore exception\n }\n \n }\n }", "private void validateIndexForKeys(CompactRangeIndex ri) {\n assertEquals(6, ri.getIndexStorage().size());\n CloseableIterator<IndexStoreEntry> itr = null;\n try {\n itr = ri.getIndexStorage().iterator(null);\n while (itr.hasNext()) {\n IndexStoreEntry reEntry = itr.next();\n Object obj = reEntry.getDeserializedRegionKey();\n assertTrue(obj instanceof String);\n assertTrue(idSet.contains(obj));\n }\n } finally {\n if (itr != null) {\n itr.close();\n }\n }\n }", "public void checkNLFOJoin() {\n\n String extractedVar = \"\";\n String currQuery = \"\";\n List<Integer> sourceQueries = null;\n List<String> tmpTP = null;\n List<String> extractedVals = null;\n\n for (List<String> key : mapCTPtoQuerySrc.keySet()) {\n\n sourceQueries = mapCTPtoQuerySrc.get(key);\n\n for (int i = 0; i < sourceQueries.size(); i++) {\n\n currQuery = queries.get(sourceQueries.get(i));\n\n //Buuuuuuuuuuuuuug\n if (currQuery.contains(\"mass\")) {\n continue;\n }\n\n if (currQuery.contains(\"filter\") || currQuery.contains(\"FILTER\")) {\n\n extractedVals = myBasUtils.getFILTERvals(currQuery);\n extractedVar = myBasUtils.getFILTERvar(currQuery);\n\n if (extractedVals.size() >= 1) {\n\n if (key.get(0).equalsIgnoreCase(extractedVar) || key.get(2).equalsIgnoreCase(extractedVar)) {\n\n tmpTP = myDedUtils.getCleanTP(key);\n tmpTP.add(extractedVar);\n myBasUtils.insertToMap4(mapDTPtoAnsInverseMap, tmpTP, extractedVals);\n }\n }\n\n }\n\n }\n }\n\n }", "@Test\n public void fsckMetricsInconsistentFwdNoDupes() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 3});\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(3, errors);\n }", "@Override\n\tpublic boolean unfollowUser(Long us_id) {\n\t\treturn false;\n\t}", "@Test\n public void testSameEPPNs() throws Exception {\n // Get a set of keys.\n ArrayList<UserMultiID> umks = new ArrayList<>();\n for (int i = 0; i < count; i++) {\n umks.add(createUMK());\n }\n User user = newUser();\n User mostRecentUser = user;\n String idp = user.getIdP();\n long oneYear = 31557600000L; // in ms.\n long currentTime = System.currentTimeMillis();\n ArrayList<User> newUsers = new ArrayList<>();\n for (int i = 0; i < count; i++) {\n newUsers.add(user);\n\n // all have the same EPPN, but different eptids\n UserMultiID newUmk = new UserMultiID(umks.get(0).getEppn(), umks.get(i).getEptid());\n Date date = new Date(currentTime - (i + 1) * oneYear); // have these spaced one year apart.\n user.setCreationTS(date);\n user.setUserMultiKey(newUmk);\n getUserStore().update(user, true);\n user = newUser();\n user.setIdP(idp);\n }\n UserMultiID newUmk = new UserMultiID(umks.get(0).getEppn());\n\n Collection<User> users = getUserStore().get(newUmk, idp);\n\n assert users.size() == count : \"Incorrect number of users found. Expected \" + count + \" and got \" + users.size();\n XMLMap userMap = getDBSClient().getUser(newUmk, idp);\n checkUserAgainstMap(userMap, mostRecentUser);\n }", "@Override\n\tpublic List<User> getNewFans(String uid) {\n\t\tList<User> res = new ArrayList<User>();\n\t\tList<User> pre = new ArrayList<User>();\n\t\tfor (int i = 0; i < MaxPage; i++) {\n\t\t\ttry {\n\t\t\t\tUserWapper uw = fm.getFollowersById(uid, MaxFan, MaxFan * i);\n\t\t\t\tList<User> userSegment = tranferUser(uw.getUsers());\n\t\t\t\tif (checkFansListExit(uid, userSegment)) {\n\t\t\t\t\tres.addAll(pre);// next segment is ok --> pre can add\n\t\t\t\t\tpre = userSegment;\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (WeiboException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tlog.error(WeiboExceptionHandle.getErrorString(e, \"获取用户\" + uid\n\t\t\t\t\t\t+ \"粉丝出错\"));\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\t// check List of pre\n\t\taddSegmentToResLst(uid, res, pre);\n\t\treturn res;\n\t}", "public void dft() {\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> stack = new LinkedList<>();\r\n\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tif (processed.containsKey(vname)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tPair rootpair = new Pair(vname, vname);\r\n\t\t\tstack.addFirst(rootpair);\r\n\t\t\twhile (stack.size() != 0) {\r\n\t\t\t\t// 1. removeFirst\r\n\t\t\t\tPair rp = stack.removeFirst();\r\n\r\n\t\t\t\t// 2. check if processed, mark if not\r\n\t\t\t\tif (processed.containsKey(rp.vname)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tprocessed.put(rp.vname, true);\r\n\r\n\t\t\t\t// 3. Check, if an edge is found\r\n\t\t\t\tSystem.out.println(rp.vname + \" via \" + rp.psf);\r\n\r\n\t\t\t\t// 4. Add the unprocessed nbrs back\r\n\t\t\t\tArrayList<String> nbrnames = new ArrayList<>(rp.vtx.nbrs.keySet());\r\n\t\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\t\tif (!processed.containsKey(nbrname)) {\r\n\t\t\t\t\t\tPair np = new Pair(nbrname, rp.psf + nbrname);\r\n\t\t\t\t\t\tstack.addFirst(np);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void getUID(int seqid, String prefix, String uid);", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "boolean hasMapID();", "public static boolean checkPermutaionMap(String s1, String s2) {\n if (s1.length() != s2.length()) return false;\n\n int[] charMap = new int[128];\n for (int i = 0; i < s1.length(); ++i) {\n charMap[s1.charAt(i)]++;\n }\n\n for (int i = 0; i < s2.length(); ++i) {\n if (--charMap[s2.charAt(i)] < 0) return false;\n }\n\n return true;\n }", "private void generateKeyMappings(HashMap<Integer, Integer> keys)\n {\n int count = 0;\n for (int i = 0; i < 256; i++)\n {\n byte value = (byte) i;\n int transitions = 0;\n int last = value & 1;\n for (int k = 1; k < 8; k++)\n {\n if (((value >> k) & 1) != last)\n {\n last = ((value >> k) & 1);\n transitions++;\n if (transitions > 2)\n {\n break;\n }\n }\n }\n if (transitions <= 2)\n {\n keys.put(i, count++);\n }\n }\n }", "private void skipStaleEntries()\n {\n while (this.index < keys.size() && !HashBijectiveMap.this.containsKey(keys.get(this.index)))\n this.index++;\n }", "@Test\n public void testIDPChange() throws Exception {\n UserMultiID umk = createUMK();\n UserMultiID eppnKey = new UserMultiID(umk.getEppn());\n UserMultiID eptidKey = new UserMultiID(umk.getEptid());\n UserMultiID openIdKey = new UserMultiID(umk.getOpenID());\n UserMultiID openIdConnectKey = new UserMultiID(umk.getOpenIDConnect());\n UserMultiID ruKey = new UserMultiID(umk.getRemoteUserName());\n\n String badIdp = \"fake:idp\";\n // now we save a user with the right id, then try to get it with a different idp.\n checkGetUser(ruKey, badIdp);\n checkGetUser(eppnKey, badIdp);\n checkGetUser(eptidKey, badIdp);\n checkGetUser(openIdKey, badIdp);\n checkGetUser(openIdConnectKey, badIdp);\n }", "private void cleanupUserKeyRecords() {\n\t\tUserKeyRecord currentlyValid = null;\n\t\t//For all \"new\" entries: If there's another sandbox record (regardless of user)\n\t\t//which shares the sandbox ID, we can set the status of the new record to be\n\t\t//the same as the old record.\n\t\t\n\t\t//TODO: We dont' need to read these records, we can read the metadata straight.\n\t\tSqlStorage<UserKeyRecord> storage = app.getStorage(UserKeyRecord.class);\n\t\tfor(UserKeyRecord record : storage) {\n\t\t\tif(record.getType() == UserKeyRecord.TYPE_NORMAL) {\n\t\t\t\t\n\t\t\t\tif(record.getUsername().equals(username) && record.isCurrentlyValid() && record.isPasswordValid(password)) {\n\t\t\t\t\tif(currentlyValid == null) {\n\t\t\t\t\t\tcurrentlyValid = record;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tLogger.log(AndroidLogger.TYPE_ERROR_ASSERTION, \"User \" + username + \" has more than one currently valid key record!!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if(record.getType() == UserKeyRecord.TYPE_NEW) {\n\t\t\t\t//See if we have another sandbox with this ID that is fully initialized.\n\t\t\t\tif(app.getStorage(UserKeyRecord.class).getIDsForValues(new String[] {UserKeyRecord.META_SANDBOX_ID, UserKeyRecord.META_KEY_STATUS}, new Object[] {record.getUuid(), UserKeyRecord.TYPE_NORMAL}).size() > 0) {\n\t\t\t\t\t\n\t\t\t\t\tLogger.log(AndroidLogger.TYPE_MAINTENANCE, \"Marking new sandbox \" + record.getUuid() + \" as initialized, since it's already in use on this device\");\n\t\t\t\t\t//If so, this sandbox _has_ to have already been initialized, and we should treat it as such.\n\t\t\t\t\trecord.setType(UserKeyRecord.TYPE_NORMAL);\n\t\t\t\t\tstorage.write(record);\n\t\t\t\t}\n\t\t\t} else if (record.getType() == UserKeyRecord.TYPE_PENDING_DELETE) {\n\t\t\t\tLogger.log(AndroidLogger.TYPE_MAINTENANCE, \"Cleaning up sandbox which is pending removal\");\n\t\t\t\t\n\t\t\t\t//See if there are more records in this sandbox. (If so, we can just wipe this record and move on) \n\t\t\t\tif(storage.getIDsForValue(UserKeyRecord.META_SANDBOX_ID, record.getUuid()).size() > 2) {\n\t\t\t\t\tLogger.log(AndroidLogger.TYPE_MAINTENANCE, \"Record for sandbox \" + record.getUuid() + \" has siblings. Removing record\");\n\t\t\t\t\t\n\t\t\t\t\t//TODO: Will this invalidate our iterator?\n\t\t\t\t\tstorage.remove(record);\n\t\t\t\t} else {\n\t\t\t\t\t//Otherwise, we should see if we can read the data, and if so, wipe it as well as the record.\n\t\t\t\t\tif(record.isPasswordValid(password)) {\n\t\t\t\t\t\tLogger.log(AndroidLogger.TYPE_MAINTENANCE, \"Current user has access to purgable sandbox \" + record.getUuid() + \". Wiping that sandbox\");\n\t\t\t\t\t\tUserSandboxUtils.purgeSandbox(this.getContext(), app, record,record.unWrapKey(password));\n\t\t\t\t\t}\n\t\t\t\t\t//Do we do anything here if we couldn't open the sandbox?\n\t\t\t\t}\n\t\t\t}\n\t\t\t//TODO: Specifically we should never have two sandboxes which can be opened by the same password (I think...)\n\t\t}\n\t}", "void populateMaps(int tableSize, PersistentCorfuTable<String, Long> table1, PersistentCorfuTable<String, Long> table2) {\n for (int i = 0; i < tableSize; i++) {\n try {\n table1.insert(String.valueOf(i), (long) i);\n table2.insert(String.valueOf(i), (long) 0);\n } catch (TrimmedException te) {\n // shouldn't happen\n te.printStackTrace();\n throw te;\n }\n }\n }", "private void populatePrefixMappings(OntModel model) {\n\t\tMap<String, String> pm = model.getNsPrefixMap();\n\t\tneededPrefixesForQueries = new String[pm.keySet().size()];\n\t\tint i=0;\n\t\tfor(String key:pm.keySet())\n\t\t{\n\t\t\tneededPrefixesForQueries[i] = key + \": <\" + pm.get(key) + \">\";\n\t\t\ti++;\n\t\t}\n\t}", "@Test\n public void checkUuidIndexUpdatedOnMove() throws Exception {\n // create the node to move\n Node parent = adminSession.getNode(temp1Path);\n String childName = \"child\" + System.currentTimeMillis();\n Node child = parent.addNode(childName, \"sling:Folder\");\n child.addMixin(\"mix:referenceable\");\n adminSession.save();\n \n // verify the id and lookup by id and query works \n String id = child.getIdentifier();\n assertThat(adminSession.getNodeByIdentifier(id), notNullValue());\n verifyLookupByIdentifier(id);\n\n // move it\n adminSession.move(child.getPath(), temp2Path + childName);\n adminSession.save();\n \n // verify the id and lookup by id and query works \n verifyLookupByIdentifier(id);\n }", "private static void mapDbAsstIDs()\r\n {\r\n if (dbIdMap == null) {\r\n dbIdMap = new HashMap<String, Integer>();\r\n dbIdMap.put(\"repair\", 1);\r\n dbIdMap.put(\"fuel\", 2);\r\n dbIdMap.put(\"tuition\", 3);\r\n dbIdMap.put(\"clothing\", 4);\r\n dbIdMap.put(\"registration\", 5);\r\n dbIdMap.put(\"utilities\", 21);\r\n }\r\n }", "static void updateMap(Map um, Iterator i, Map m) {\n while (i.hasNext()) {\n java.util.Map.Entry e = (java.util.Map.Entry)i.next();\n Object f = e.getKey();\n Object o = e.getValue();\n if (o == null) continue;\n if (o instanceof Node) {\n Object q = um.get(o);\n if (o instanceof UnknownTypeNode) q = o;\n if (o == GlobalNode.GLOBAL) q = o;\n if (VERIFY_ASSERTIONS) Assert._assert(q != null, o+\" is missing from map\");\n if (TRACE_INTRA) out.println(\"Updated edge \"+f+\" \"+o+\" to \"+q);\n m.put(f, q);\n } else {\n Set lhs = NodeSet.FACTORY.makeSet();\n m.put(f, lhs);\n for (Iterator j=((Set)o).iterator(); j.hasNext(); ) {\n Object r = j.next();\n Assert._assert(r != null);\n Object q = um.get(r);\n if (r instanceof UnknownTypeNode) q = r;\n if (r == GlobalNode.GLOBAL) q = o;\n if (VERIFY_ASSERTIONS) Assert._assert(q != null, r+\" is missing from map\");\n if (TRACE_INTRA) out.println(\"Updated edge \"+f+\" \"+r+\" to \"+q);\n lhs.add(q);\n }\n }\n }\n }", "public void unCover() {\n linkLR();\n DataNode tmp = this.U;\n while (tmp != this) {\n //select each row and go through all the left nodes and link from respective columns.\n DataNode l = tmp.L;\n while (l!= tmp) {\n l.linkUD();\n l.C.count++;\n l = l.L;\n }\n tmp = tmp.U;\n }\n }", "public void endPrefixMapping(String prefix) { }" ]
[ "0.5254711", "0.48664865", "0.48641762", "0.4692418", "0.46804774", "0.46166256", "0.46077508", "0.45990828", "0.45836756", "0.4582206", "0.45730808", "0.45730808", "0.45024484", "0.4464946", "0.44637746", "0.44502348", "0.44091716", "0.44065022", "0.43799606", "0.43657613", "0.43586746", "0.43565264", "0.4348529", "0.43467036", "0.4338478", "0.43267745", "0.4310047", "0.43091077", "0.43086156", "0.43017906", "0.42954603", "0.4293442", "0.42926243", "0.4285102", "0.4284047", "0.427678", "0.427678", "0.42764485", "0.4274253", "0.42669764", "0.4263361", "0.4249472", "0.4249396", "0.42433238", "0.42346346", "0.42345876", "0.4217405", "0.42147222", "0.42087734", "0.42067114", "0.42015648", "0.42005205", "0.41964185", "0.41926008", "0.41905484", "0.41865176", "0.4183473", "0.41815227", "0.4178334", "0.4175664", "0.41737416", "0.41732806", "0.41698766", "0.41653442", "0.41642088", "0.41638282", "0.4159793", "0.41536143", "0.4138673", "0.41363105", "0.41328782", "0.413273", "0.41318715", "0.4128813", "0.41287288", "0.41282728", "0.41280586", "0.41280586", "0.41280586", "0.41280586", "0.41280586", "0.41280586", "0.41280586", "0.41280586", "0.41280586", "0.41280586", "0.41280586", "0.41280586", "0.41280586", "0.41272515", "0.41256142", "0.41241023", "0.412299", "0.4122481", "0.41186836", "0.4115766", "0.4114787", "0.4110481", "0.41090703", "0.41087627", "0.41087562" ]
0.0
-1
/ Max UID row values that are higher than the largest assigned UID for their type are OK and we just warn on them. This is usually caused by a user removing a name that they no longer need.
@Test public void fsckMetricsUIDHigh() throws Exception { // currently a warning, not an error storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(42L)); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(0, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void fsckMetricsUIDLow() throws Exception {\n // currently a warning, not an error\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(1L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(1, errors);\n }", "@Test\n public void fsckMetricsUIDWrongLength() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromInt(3));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(2, errors);\n }", "@Test\n public void fsckTagkUIDHigh() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGK, Bytes.fromLong(42L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(0, errors);\n }", "private void getLastId() {\n for (int i = 0; i < remindersTable.getRowCount(); i++) {\n if (parseInt(remindersTable.getValueAt(i, 7).toString()) > maxId) {\n maxId = parseInt(remindersTable.getValueAt(i, 7).toString());\n }\n }\n }", "@Test\n public void fsckFIXMetricsUIDLow() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(0L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, true, false);\n assertEquals(1, errors);\n errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(0, errors);\n }", "protected long getLastUID() throws Exception {\n\t\tif(psmt != null) {\n\t\t\tResultSet rs = psmt.getGeneratedKeys();\n\t\t\tif(rs.next())\n\t\t\t\treturn rs.getLong(1);\n\t\t}\n\t\treturn -1L;\n\t}", "@Test\n public void fsckTagvUIDHigh() throws Exception {\n\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGV, Bytes.fromLong(42L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(0, errors);\n }", "public final void ensureMax() {\n\t\tfinal int temp = findMax(lookupPrefix) + 1;\n\t\tif (temp > currentSequenceNumber) {\n\t\t\tcurrentSequenceNumber = temp;\n\t\t}\n\t}", "int getUniquesNumber() throws SQLException;", "public void setUid(int value) {\n this.uid = value;\n }", "public void setUid(int value) {\n this.uid = value;\n }", "public void setUid(int value) {\n this.uid = value;\n }", "public void setUid(int value) {\n this.uid = value;\n }", "public void setUid(int value) {\n this.uid = value;\n }", "public void setUid(int value) {\n this.uid = value;\n }", "public void setUid(int value) {\n this.uid = value;\n }", "public static String checkUserId(String paramName, String paramValue,\n\t\t\tint maxLength, boolean isNulable) {\n\t\tAppLog.begin();\n\t\tString errMsg = null;\n\t\ttry {\n\t\t\tif (null != paramValue) {\n\t\t\t\tif (!isNulable && paramValue.trim().length() == 0) {\n\t\t\t\t\terrMsg = paramName + \" is Mandatory.\";\n\t\t\t\t\tAppLog.end();\n\t\t\t\t\treturn errMsg;\n\t\t\t\t}\n\t\t\t\tif (paramValue.length() != 0) {\n\t\t\t\t\tif (!checkPresenceOfParticularChar(paramValue,\n\t\t\t\t\t\t\tDJBConstants.checkUserIdRegex)) {\n\t\t\t\t\t\terrMsg = \"Invalid \" + paramName + \".\";\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif (paramValue.length() > maxLength) {\n\t\t\t\t\terrMsg = paramName + \" Should not Contain More than \"\n\t\t\t\t\t\t\t+ maxLength + \" Characters.\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (!isNulable) {\n\t\t\t\t\terrMsg = paramName + \" is Mandatory.\";\n\t\t\t\t\tAppLog.end();\n\t\t\t\t\treturn errMsg;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\terrMsg = \"Invalid \" + paramName + \".\";\n\t\t\tAppLog.error(ex);\n\t\t}\n\t\tAppLog.end();\n\t\treturn errMsg;\n\t}", "public void setLastUpdUserId(Integer value) {\n set(6, value);\n }", "private int getUserIdToWipeForFailedPasswords(ActiveAdmin admin) {\n final int userId = admin.getUserHandle().getIdentifier();\n final ComponentName component = admin.info.getComponent();\n return isProfileOwnerOfOrganizationOwnedDevice(component, userId)\n ? getProfileParentId(userId) : userId;\n }", "public void setUid(int value) {\n this.uid = value;\n }", "long getUID() throws UidGenerateException;", "@DefaultMessage(\"Since this user has no permissions, duplication is invalid\")\n @Key(\"systemUser.userDuplicateInvalid\")\n String systemUser_userDuplicateInvalid();", "public void setUID(int value) {\n this.uid = value;\n }", "long getUid();", "long getUid();", "public static int checkNomLongs(final int nomLongs) {\n final int lgNomLongs = Integer.numberOfTrailingZeros(Util.ceilingIntPowerOf2(nomLongs));\n if (lgNomLongs > MAX_LG_NOM_LONGS || lgNomLongs < MIN_LG_NOM_LONGS) {\n throw new SketchesArgumentException(\"Nominal Entries must be >= 16 and <= 67108864: \"\n + nomLongs);\n }\n return lgNomLongs;\n }", "public void setUid(int value) {\n this.uid = value;\n }", "void checkRange(String value) throws TdtTranslationException {\r\n\t\tif (!hasRange)\r\n\t\t\treturn;\r\n\t\tLong intValue;\r\n\t\ttry {\r\n\t\t\tintValue = Long.valueOf(Long.parseLong(value));\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new TdtTranslationException(\"Cannot convert \" + value\r\n\t\t\t\t\t+ \" to ulong in field \" + getId());\r\n\t\t}\r\n\t\tcheckRange(intValue);\r\n\t}", "public String getUIDType() {\n return null;\n }", "int getMaxID() throws DatabaseNotAccessibleException;", "public long getMaximumLong() {\n/* 233 */ return this.max;\n/* */ }", "public Integer getLastUpdUserId() {\n return (Integer) get(6);\n }", "public int getUID() {\n return 0;\n }", "private int getNextUnique() {\r\n\t\ttry {\r\n\t\t\tint nextUnique = 0;\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tResultSet rs = statement.executeQuery(\"SELECT MAX(userID) userID FROM users\");\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tnextUnique = rs.getInt(\"userID\") + 1;\r\n\t\t\t}\r\n\t\t\treturn nextUnique;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "protected static void checkValue(Object value) {\n\tif (!(value instanceof java.lang.Long)) {\n throw new IllegalArgumentException(\"value is not a Long\");\n }\n }", "@Override\n public void onResourceLimitExceeded(MatrixError e) {\n listener.onUsernameAvailabilityChecked(true);\n }", "@Override\n public long getUid() {\n return uid;\n }", "public String getType() {\n return \"uid\";\n }", "public CWE getRxa25_AdministeredBarcodeIdentifier() { \r\n\t\tCWE retVal = this.getTypedField(25, 0);\r\n\t\treturn retVal;\r\n }", "int getUid();", "int getUid();", "public int uid() { return uid; }", "public int getMaxFieldSize() throws SQLException {\n return 0;\r\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void VerifyStduserMaximumuserLimit() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify hether error message is getting displayed when the user tries to add 21st Standard user by clicking No radio button of Add new user page \"); \t \t \t \n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMvMaxStduserValidation\");\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.StandardUserCreations()\n\t\t.StandardMaximumExceedErrorValidation();\t \t \t\n\t}", "public int getUid() {\n return uid;\n }", "public int getUid() {\n return uid;\n }", "public int getUid() {\n return uid;\n }", "public int getUid() {\n return uid;\n }", "public int getUid() {\n return uid;\n }", "public int getUid() {\n return uid;\n }", "public int getUid() {\n return uid;\n }", "public final void mo28291a() throws RemoteException {\n this.f26368Z.f26319g.getMaxUserProperties(this.f26366X, this.f26367Y);\n }", "protected int maxPktsOut() { return Integer.MAX_VALUE; }", "int getUid() {\n return uid;\n }", "@Override\n public int getMaxFieldSize() throws SQLException {\n return max_field_size;\n }", "@Override\n\tpublic int getMaxID() throws SQLException {\n\t\treturn 0;\n\t}", "protected void checkRowNumLimit(PmTableImpl<PmBean<?>, ?> pm, long numOfItemsToValidate) {\n if (numOfItemsToValidate > itemNumWarningLimit) {\n LOG.warn(pm.getPmRelativeName() + \": Performance warning - In memory validation for \" + numOfItemsToValidate + \" row PMs started.\");\n }\n }", "public CWE getAdministeredBarcodeIdentifier() { \r\n\t\tCWE retVal = this.getTypedField(25, 0);\r\n\t\treturn retVal;\r\n }", "java.lang.String getUid();", "java.lang.String getUid();", "@Override\n\tpublic String checkAccountDedlean(int idu) {\n\t\treturn null;\n\t}", "@Override\n\tpublic User getMinimumSpaceAcc() {\n\t\tint minSize = 5121;\n\t\tUser minSpaceUser = null;\n\t\tfor (int i = 0; i<counter; i++)\n\t\t\tif (users[i].getAvailableSpace() < minSize){\n\t\t\t\tminSpaceUser = users[i];\n\t\t\t\tminSize = users[i].getAvailableSpace();\n\t\t\t}\n\t\treturn minSpaceUser;\n\t}", "public int getL1UserInformation();", "public int getUid() {\n return uid;\n }", "protected UniqueInfo cpui() { return hpcpui(columnStShhnKnyMsId()); }", "long getUID();", "private void limitChecking() {\n if (!export) {\n String maxNumberOfRows = ConfigurationService.getAsString(summaryReportConfig.reportDefinition.getGroup(), \"max_number_of_rows\");\n String maxNumberOfColumns = ConfigurationService.getAsString(summaryReportConfig.reportDefinition.getGroup(), \"max_number_of_columns\");\n if (isEmptyOrNull(maxNumberOfRows) || isEmptyOrNull(maxNumberOfColumns)) {\n throw new UserException(\"It is not possible to read \\\"Max Table Summary Columns\\\" and \\\"Max Table Summary Rows\\\" configuration.\");\n }\n\n Long maxProperty1 = Long.valueOf(maxNumberOfRows);\n if (!summaryReportConfig.isTwoDimension()) {\n if (properties1.size() > maxProperty1) {\n logger.info(\"Property \" + groupByList.get(0).getLabel() + \" has [\" + properties1.size()\n + \"] items that exceed the allowed limit of [\" + maxProperty1 + \"]\");\n throw new UserException(\"Report results exceed configured Max Row display limit.\"\n + \" Do you want to export results instead?\"); // max rows\n }\n } else {\n Long maxProperty2 = Long.valueOf(maxNumberOfColumns);\n if ((properties1.size() > maxProperty1) && (properties2.size() > maxProperty2)) {\n logger.info(\"Property \" + groupByList.get(0).getLabel() + \" has [\" + properties1.size()\n + \"] items that exceed the allowed limit of [\" + maxProperty1 + \"] \\n\"\n + \"Property \" + groupByList.get(1).getLabel() + \" has [\" + properties2.size()\n + \"] items that exceed the allowed limit of [\" + maxProperty2 + \"]\");\n throw new UserException(\"Report results exceed configured Max Column and Max Row display limits. \"\n + \"Do you want to export results instead?\"); // max columns and rows\n } else if (properties1.size() > maxProperty1) {\n logger.info(\"Property \" + groupByList.get(0).getLabel() + \" has [\" + properties1.size()\n + \"] items that exceed the allowed limit of [\" + maxProperty1 + \"]\");\n throw new UserException(\"Report results exceed configured Max Row display limit. \"\n + \"Do you want to export results instead?\"); // max rows\n } else if (properties2.size() > maxProperty2) {\n logger.info(\"Property \" + groupByList.get(1).getLabel() + \" has [\" + properties2.size()\n + \"] items that exceed the allowed limit of [\" + maxProperty2 + \"]\");\n throw new UserException(\"Report results exceed configured Max Column display limit. \"\n + \"Do you want to export results instead?\"); // max columns\n }\n }\n }\n }", "public Integer getUid() {\r\n return uid;\r\n }", "public Integer getUid() {\r\n return uid;\r\n }", "public Integer getUid() {\r\n return uid;\r\n }", "public Integer getUid() {\r\n return uid;\r\n }", "public Integer getUid() {\r\n return uid;\r\n }", "public Integer getUid() {\r\n return uid;\r\n }", "public Long getUid() {\n\t\treturn null;\n\t}", "public int hashCode() {\n\t\t return uid.hashCode();\n\t\t}", "protected String getValueOfColumnLastUpdateUser() {\n return SessionContext.open().getUid();\n }", "private int userAlreadyPresent() {\n System.out.printf(\"%s%n%s%n%s%n%s%n\", Notifications.getMessage(\"ERR_USER_ALREADY_PRESENT\"), Notifications.getMessage(\"SEPARATOR\"), Notifications.getMessage(\"PROMPT_PRESENT_USER_MULTIPLE_CHOICE\"), Notifications.getMessage(\"SEPARATOR\"));\n\n switch(insertInteger(1, 3)) {\n case 1:\n System.out.printf(\"%s %s%n\", Notifications.getMessage(\"MSG_EXIT_WITHOUT_SAVING\"), Notifications.getMessage(\"MSG_MOVE_TO_LOGIN\"));\n return -1;\n case 2:\n System.out.println(Notifications.getMessage(\"PROMPT_MODIFY_FIELDS\"));\n return 1;\n default:\n return 0;\n }\n }", "public boolean hasUser(){\n return numUser < MAX_USER;\n }", "@Test(timeout = 4000)\n public void test128() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize(\"create unique indedeltesetciisteam(int, inputstream, long)\");\n fail(\"Expecting exception: NumberFormatException\");\n \n } catch(NumberFormatException e) {\n //\n // For input string: \\\"int\\\"\n //\n verifyException(\"java.lang.NumberFormatException\", e);\n }\n }", "public int maximumAttempNumberAllowed(TransferNORInPSTBean maxAttemptData){\r\n\r\n\t\tint maxAttemptAllow=0;\r\n\t\ttry{\r\n\t\t\tList<TransferNORInPSTBean> maxAttemptAllowed=(List<TransferNORInPSTBean>)sqlMapClient.queryForList(\"TransferNORInPSTBean.getMaxAttempt\", maxAttemptData);\r\n\t\t\tfor(TransferNORInPSTBean maxAttemptAllowedValue: maxAttemptAllowed){\r\n\t\t\t\tmaxAttemptAllow=maxAttemptAllowedValue.getMaxAttemptAllowed();\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\t//System.out.println(\"Exception is: \"+e.getMessage());\r\n\t\t\tlogger.info(\"Exception in max attempt allowed.\"+e.getMessage());\r\n\t\t}\r\n\t\treturn maxAttemptAllow;\r\n\t}", "private int getFailThreshold() {\n\t\t\treturn getContext().getIntegerParameter(\"max_password_fails\",0);\n\t\t}", "public int getIdentifiedUserDataSize() {\n return super.getCdSector().getCdUserDataSize() - 20;\n }", "public abstract String getMaxUsage();", "public int getUID() {\n return uid;\n }", "public int generateUID() {\n if(mdb == null) {\n return -1;\n }\n TreeSet<Integer> sortedSet = new TreeSet<Integer>();\n Set<String> players = mdb.getKeys(false);\n for (String player : players) {\n List<Integer> messageids = mdb.getIntegerList(player + \".messageids\");\n if (messageids != null) {\n // add all messageids found for this player to our ordered set\n sortedSet.addAll(messageids);\n }\n }\n // make sure we don't enter negative number territory\n for(int i=Courier.MIN_ID; i<Courier.MAX_ID; i++) {\n if(sortedSet.add(i)) {\n // i wasn't in the set\n return i;\n }\n }\n return -1;\n }", "private int findUnusedId() {\n for (int i = 0; i < Integer.MAX_VALUE; ++i) {\n if (!doesLegacyExist(LEGACY_TAG,i)) {\n return i;\n }\n }\n throw new RuntimeException(\"Error: Cannot find an unused id\");\n }", "private void checkLength(String value, int maxLength) throws WikiException {\r\n\t\tif (value != null && value.length() > maxLength) {\r\n\t\t\tthrow new WikiException(new WikiMessage(\"error.fieldlength\", value, Integer.valueOf(maxLength).toString()));\r\n\t\t}\r\n\t}", "public int getUid() {\n return uid;\n }", "@Test(timeout = 4000)\n public void test34() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.parseColumnTypeAndSize(\" R[~rnsGR(#-\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Illegal column type format: R[~rnsGR(#-\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "public void checkMetadataTypeValues() {\n for (int k = 0; k < numDataCols; k++) {\n DashDataType<?> dtype = dataTypes[k];\n if ( !dtype.hasRole(DashDataType.Role.FILE_METADATA) )\n continue;\n\n if ( dtype instanceof StringDashDataType ) {\n String singleVal = null;\n for (int j = 0; j < numSamples; j++) {\n String thisVal = (String) stdObjects[j][k];\n if ( thisVal == null )\n continue;\n if ( singleVal == null ) {\n singleVal = thisVal;\n continue;\n }\n if ( singleVal.equals(thisVal) )\n continue;\n\n ADCMessage msg = new ADCMessage();\n // Metadata in data columns is never required\n msg.setSeverity(Severity.ERROR);\n msg.setGeneralComment(dtype.getDisplayName() + \" has differing given values\");\n msg.setDetailedComment(dtype.getDisplayName() + \" has differeing given values '\" +\n singleVal + \"' and \" + thisVal + \"'\");\n msg.setRowNumber(j + 1);\n msg.setColNumber(k + 1);\n msg.setColName(userColNames[k]);\n stdMsgList.add(msg);\n }\n }\n else if ( dtype instanceof IntDashDataType ) {\n Integer singleVal = null;\n for (int j = 0; j < numSamples; j++) {\n Integer thisVal = (Integer) stdObjects[j][k];\n if ( thisVal == null )\n continue;\n if ( singleVal == null ) {\n singleVal = thisVal;\n continue;\n }\n if ( singleVal.equals(thisVal) )\n continue;\n\n ADCMessage msg = new ADCMessage();\n // Metadata in data columns is never required\n msg.setSeverity(Severity.ERROR);\n msg.setGeneralComment(dtype.getDisplayName() + \" has differing given values\");\n msg.setDetailedComment(dtype.getDisplayName() + \" has differing given values '\" +\n singleVal.toString() + \"' and '\" + thisVal.toString() + \"'\");\n msg.setRowNumber(j + 1);\n msg.setColNumber(k + 1);\n msg.setColName(userColNames[k]);\n stdMsgList.add(msg);\n }\n }\n else if ( dtype instanceof DoubleDashDataType ) {\n Double singleVal = null;\n for (int j = 0; j < numSamples; j++) {\n Double thisVal = (Double) stdObjects[j][k];\n if ( thisVal == null )\n continue;\n if ( singleVal == null ) {\n singleVal = thisVal;\n continue;\n }\n if ( singleVal.equals(thisVal) )\n continue;\n if ( Math.abs(singleVal - thisVal) < 1.0E-6 )\n continue;\n\n ADCMessage msg = new ADCMessage();\n // Metadata in data columns is never required\n msg.setSeverity(Severity.ERROR);\n msg.setGeneralComment(dtype.getDisplayName() + \" has differing given values\");\n msg.setDetailedComment(String.format(\"%s has differing given values '%g' and '%g'\",\n dtype.getDisplayName(), singleVal, thisVal));\n msg.setRowNumber(j + 1);\n msg.setColNumber(k + 1);\n msg.setColName(userColNames[k]);\n stdMsgList.add(msg);\n }\n }\n else {\n throw new IllegalArgumentException(\n \"unexpected data type encountered in metadata column checking: \" + dtype);\n }\n }\n }", "public void scemess() {\n\t\tUserExcep ue = new UserExcep();\n\t\t\n\t\ttry {\n\t\t\t\tthrow new UserExcep(\"Try different ID\");\n\t\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}", "public int getMaxId() {\n int count = driver.findElements(By.xpath(xpathTableRows)).size();\n int maxID = -1;\n if (count > 0) {\n maxID = Integer.parseInt(assertAndGetText(xpathTableRows + \"[\" + count + \"]//td[1]\"));\n }\n return maxID;\n }", "private void validateValuesLength(BatchUpdate batchUpdate, \n HRegion region) throws IOException {\n HTableDescriptor desc = region.getTableDesc();\n for (Iterator<BatchOperation> iter = \n batchUpdate.iterator(); iter.hasNext();) {\n BatchOperation operation = iter.next();\n if (operation.getValue() != null) {\n HColumnDescriptor fam = \n desc.getFamily(HStoreKey.getFamily(operation.getColumn()));\n if (fam != null) {\n int maxLength = fam.getMaxValueLength();\n if (operation.getValue().length > maxLength) {\n throw new ValueOverMaxLengthException(\"Value in column \"\n + Bytes.toString(operation.getColumn()) + \" is too long. \"\n + operation.getValue().length + \" instead of \" + maxLength);\n }\n }\n }\n }\n }", "private boolean row_number_error(int min, int max) {\n int row_size = getHighlightedRows() / 2;\n if ( (min <= row_size) && (row_size <= max))\n return false;\n String dup = (min > 1)? \"s\": \"\";\n if (min > row_size) {\n String status = \"Please select at least \" + min + \" meaning\" + dup;\n statusView.setText(status);\n } else if (row_size > max) {\n String status = (max > min)? \"Please select between \" + min + \" and \" + max + \" meanings\":\n \"Please select \" + min + \" meaning\" + dup;\n statusView.setText(status);\n }\n return true;\n }", "private void validateTags(final SAMRecord record, final long recordNumber) {\n for (final SAMRecord.SAMTagAndValue tagAndValue : record.getAttributes()) {\n if (tagAndValue.value instanceof Long) {\n addError(new SAMValidationError(Type.TAG_VALUE_TOO_LARGE,\n \"Numeric value too large for tag \" + tagAndValue.tag,\n record.getReadName(), recordNumber));\n }\n }\n }", "protected long getLastCleanedRow() {\n List<String> res = dbconnector.execRead(\"SELECT value FROM MS_DataCleaning_conf \" +\n \"WHERE name='sample_last_cleaned_row'\").get(0);\n return Long.parseLong(res.get(0));\n }", "public Integer getUid() {\n return uid;\n }", "public Integer getUid() {\n return uid;\n }", "public Integer getUid() {\n return uid;\n }", "public Integer getUid() {\n return uid;\n }" ]
[ "0.57842064", "0.57132995", "0.5486638", "0.53235984", "0.5238696", "0.5194776", "0.51777375", "0.51755893", "0.50838596", "0.5079367", "0.5079367", "0.5079367", "0.5079367", "0.5079367", "0.5079367", "0.5079367", "0.50354666", "0.5022061", "0.5011157", "0.49889088", "0.49787635", "0.49424827", "0.49393132", "0.49302825", "0.49302825", "0.49223152", "0.49033374", "0.48910478", "0.4878838", "0.4872127", "0.4869721", "0.4833232", "0.48147207", "0.47863832", "0.47685915", "0.47662184", "0.47578582", "0.47544906", "0.4749663", "0.47492114", "0.47492114", "0.47430155", "0.47413144", "0.47383785", "0.4732776", "0.4732776", "0.4732776", "0.4732776", "0.4732776", "0.4732776", "0.4732776", "0.47324368", "0.47305068", "0.4719749", "0.47149658", "0.47076872", "0.47019842", "0.46956432", "0.46870807", "0.46870807", "0.46783203", "0.4675506", "0.4674215", "0.46461633", "0.46441305", "0.46282184", "0.462058", "0.4617126", "0.4617126", "0.4617126", "0.4617126", "0.4617126", "0.4617126", "0.4608741", "0.46082026", "0.45981506", "0.45952418", "0.45800146", "0.45792693", "0.4579106", "0.4571485", "0.45666614", "0.45640078", "0.45624807", "0.4557232", "0.4549686", "0.4549237", "0.4547305", "0.45437548", "0.4534059", "0.45335835", "0.45316744", "0.4529982", "0.45289883", "0.45288768", "0.45214996", "0.45181468", "0.45181468", "0.45181468", "0.45181468" ]
0.5967669
0
currently a warning, not an error
@Test public void fsckTagkUIDHigh() throws Exception { storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGK, Bytes.fromLong(42L)); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(0, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "protected boolean func_70041_e_() { return false; }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "public void method_4270() {}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void mo1964g() throws cf {\r\n }", "public void mo1944a() throws cf {\r\n }", "public void mo1976s() throws cf {\r\n }", "protected boolean func_70814_o() { return true; }", "@Override\n public void func_104112_b() {\n \n }", "public void mo1962e() throws cf {\r\n }", "public final void mo91715d() {\n }", "public void mo1972o() throws cf {\r\n }", "public void m23075a() {\n }", "public boolean method_2434() {\r\n return false;\r\n }", "public void mo38117a() {\n }", "void m5770d() throws C0841b;", "private stendhal() {\n\t}", "public boolean method_4088() {\n return false;\n }", "public boolean method_2453() {\r\n return false;\r\n }", "public void mo1966i() throws cf {\r\n }", "public boolean method_4132() {\n return false;\n }", "public boolean method_218() {\r\n return false;\r\n }", "void m5771e() throws C0841b;", "void m5769c() throws C0841b;", "public boolean method_216() {\r\n return false;\r\n }", "private void kk12() {\n\n\t}", "public void inquiryError() {\n\t\t\n\t}", "protected Problem() {/* intentionally empty block */}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "public boolean method_108() {\r\n return false;\r\n }", "public boolean method_194() {\r\n return false;\r\n }", "public boolean method_4093() {\n return false;\n }", "public void mo1963f() throws cf {\r\n }", "public boolean method_4102() {\n return false;\n }", "@Override\n public void perish() {\n \n }", "public boolean method_210() {\r\n return false;\r\n }", "void m1864a() {\r\n }", "public boolean method_208() {\r\n return false;\r\n }", "private void level7() {\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 }", "public void mo55254a() {\n }", "public void mo12628c() {\n }", "public void mo12930a() {\n }", "public void mo1960c() throws cf {\r\n }", "public boolean method_3897() {\r\n return false;\r\n }", "public void mo1970m() throws cf {\r\n }", "public boolean method_214() {\r\n return false;\r\n }", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "void m5768b() throws C0841b;", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "public boolean method_196() {\r\n return false;\r\n }", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "public void mo44053a() {\n }", "public void warningPermit();", "public void mo23813b() {\n }", "public void mo21779D() {\n }", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n System.out.println(\"Warning reported: \" + saxpe.getMessage());\n }", "public void mo21792Q() {\n }", "protected void mo6255a() {\n }", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "public void mo1974q() throws cf {\r\n }", "public abstract void mo70713b();", "public void mo55254a() {\n }", "public void mo21787L() {\n }", "public abstract void mo56925d();", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n }", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "public void mo4359a() {\n }", "public void mo115190b() {\n }", "public boolean method_198() {\r\n return false;\r\n }", "@Override\n\tpublic void onStallWarning(StallWarning arg0) {\n\t\t\n\t}", "private void checkNotUnknown() {\n if (isUnknown())\n throw new AnalysisException(\"Unexpected 'unknown' value!\");\n }", "public void mo6081a() {\n }", "void notSupported(String errorcode);", "public int method_113() {\r\n return 0;\r\n }", "void berechneFlaeche() {\n\t}", "@Override\n\t\tpublic void checkPreconditions() {\n\t\t}", "public void mo1531a() {\n }", "private static void runTestCWE8() {\n}", "private static void runTestCWE8() {\n}", "public void swrap() throws NoUnusedObjectExeption;", "private static void runTestCWE6() {\n}", "private static void runTestCWE6() {\n}", "public void mo21785J() {\n }", "private void m50367F() {\n }" ]
[ "0.6607475", "0.65735716", "0.64578193", "0.64516914", "0.63690615", "0.63607115", "0.6313633", "0.6277263", "0.6264403", "0.6251081", "0.6228066", "0.6212326", "0.6193183", "0.6173823", "0.6159397", "0.61412436", "0.6137461", "0.6134118", "0.6131424", "0.6128311", "0.6125895", "0.60996115", "0.609934", "0.6086772", "0.60867035", "0.60620254", "0.6057853", "0.604901", "0.6039225", "0.60285574", "0.6027521", "0.6026639", "0.6022298", "0.6022298", "0.59733164", "0.595578", "0.5955212", "0.5947853", "0.59411937", "0.5937788", "0.5932163", "0.5924105", "0.5910501", "0.5901154", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.5896116", "0.5893134", "0.58923537", "0.58854276", "0.5877016", "0.587468", "0.58742815", "0.58742815", "0.58696586", "0.58481723", "0.58481723", "0.5847125", "0.584581", "0.584581", "0.5842065", "0.5824734", "0.5819828", "0.5815501", "0.5815053", "0.580836", "0.58021235", "0.57941985", "0.5791938", "0.5791938", "0.57880926", "0.578688", "0.5784708", "0.578307", "0.5779751", "0.5779735", "0.5772275", "0.5772275", "0.5769752", "0.57687587", "0.57637197", "0.57539976", "0.57533115", "0.57527834", "0.5751981", "0.5743167", "0.5740184", "0.57315886", "0.5728917", "0.5728491", "0.5728491", "0.5719336", "0.5711022", "0.5711022", "0.57089555", "0.57051265" ]
0.0
-1
currently a warning, not an error
@Test public void fsckTagvUIDHigh() throws Exception { storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGV, Bytes.fromLong(42L)); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(0, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "protected boolean func_70041_e_() { return false; }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "public void method_4270() {}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void mo1964g() throws cf {\r\n }", "public void mo1944a() throws cf {\r\n }", "public void mo1976s() throws cf {\r\n }", "protected boolean func_70814_o() { return true; }", "@Override\n public void func_104112_b() {\n \n }", "public void mo1962e() throws cf {\r\n }", "public final void mo91715d() {\n }", "public void mo1972o() throws cf {\r\n }", "public void m23075a() {\n }", "public boolean method_2434() {\r\n return false;\r\n }", "public void mo38117a() {\n }", "void m5770d() throws C0841b;", "private stendhal() {\n\t}", "public boolean method_4088() {\n return false;\n }", "public boolean method_2453() {\r\n return false;\r\n }", "public void mo1966i() throws cf {\r\n }", "public boolean method_4132() {\n return false;\n }", "public boolean method_218() {\r\n return false;\r\n }", "void m5771e() throws C0841b;", "void m5769c() throws C0841b;", "public boolean method_216() {\r\n return false;\r\n }", "private void kk12() {\n\n\t}", "public void inquiryError() {\n\t\t\n\t}", "protected Problem() {/* intentionally empty block */}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "public boolean method_108() {\r\n return false;\r\n }", "public boolean method_194() {\r\n return false;\r\n }", "public boolean method_4093() {\n return false;\n }", "public void mo1963f() throws cf {\r\n }", "public boolean method_4102() {\n return false;\n }", "@Override\n public void perish() {\n \n }", "public boolean method_210() {\r\n return false;\r\n }", "void m1864a() {\r\n }", "public boolean method_208() {\r\n return false;\r\n }", "private void level7() {\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 }", "public void mo55254a() {\n }", "public void mo12628c() {\n }", "public void mo12930a() {\n }", "public void mo1960c() throws cf {\r\n }", "public boolean method_3897() {\r\n return false;\r\n }", "public void mo1970m() throws cf {\r\n }", "public boolean method_214() {\r\n return false;\r\n }", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "void m5768b() throws C0841b;", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "public boolean method_196() {\r\n return false;\r\n }", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "public void mo44053a() {\n }", "public void warningPermit();", "public void mo23813b() {\n }", "public void mo21779D() {\n }", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n System.out.println(\"Warning reported: \" + saxpe.getMessage());\n }", "public void mo21792Q() {\n }", "protected void mo6255a() {\n }", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "public void mo1974q() throws cf {\r\n }", "public abstract void mo70713b();", "public void mo55254a() {\n }", "public void mo21787L() {\n }", "public abstract void mo56925d();", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n }", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "public void mo4359a() {\n }", "public void mo115190b() {\n }", "public boolean method_198() {\r\n return false;\r\n }", "@Override\n\tpublic void onStallWarning(StallWarning arg0) {\n\t\t\n\t}", "private void checkNotUnknown() {\n if (isUnknown())\n throw new AnalysisException(\"Unexpected 'unknown' value!\");\n }", "public void mo6081a() {\n }", "void notSupported(String errorcode);", "public int method_113() {\r\n return 0;\r\n }", "void berechneFlaeche() {\n\t}", "@Override\n\t\tpublic void checkPreconditions() {\n\t\t}", "public void mo1531a() {\n }", "private static void runTestCWE8() {\n}", "private static void runTestCWE8() {\n}", "public void swrap() throws NoUnusedObjectExeption;", "private static void runTestCWE6() {\n}", "private static void runTestCWE6() {\n}", "public void mo21785J() {\n }", "private void m50367F() {\n }" ]
[ "0.6607475", "0.65735716", "0.64578193", "0.64516914", "0.63690615", "0.63607115", "0.6313633", "0.6277263", "0.6264403", "0.6251081", "0.6228066", "0.6212326", "0.6193183", "0.6173823", "0.6159397", "0.61412436", "0.6137461", "0.6134118", "0.6131424", "0.6128311", "0.6125895", "0.60996115", "0.609934", "0.6086772", "0.60867035", "0.60620254", "0.6057853", "0.604901", "0.6039225", "0.60285574", "0.6027521", "0.6026639", "0.6022298", "0.6022298", "0.59733164", "0.595578", "0.5955212", "0.5947853", "0.59411937", "0.5937788", "0.5932163", "0.5924105", "0.5910501", "0.5901154", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.5896116", "0.5893134", "0.58923537", "0.58854276", "0.5877016", "0.587468", "0.58742815", "0.58742815", "0.58696586", "0.58481723", "0.58481723", "0.5847125", "0.584581", "0.584581", "0.5842065", "0.5824734", "0.5819828", "0.5815501", "0.5815053", "0.580836", "0.58021235", "0.57941985", "0.5791938", "0.5791938", "0.57880926", "0.578688", "0.5784708", "0.578307", "0.5779751", "0.5779735", "0.5772275", "0.5772275", "0.5769752", "0.57687587", "0.57637197", "0.57539976", "0.57533115", "0.57527834", "0.5751981", "0.5743167", "0.5740184", "0.57315886", "0.5728917", "0.5728491", "0.5728491", "0.5719336", "0.5711022", "0.5711022", "0.57089555", "0.57051265" ]
0.0
-1
/ Max UID row values that are lower than the largest assigned UID for their type can be fixed by simply setting the max ID to the largest found UID.
@Test public void fsckMetricsUIDLow() throws Exception { // currently a warning, not an error storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(1L)); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(1, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getLastId() {\n for (int i = 0; i < remindersTable.getRowCount(); i++) {\n if (parseInt(remindersTable.getValueAt(i, 7).toString()) > maxId) {\n maxId = parseInt(remindersTable.getValueAt(i, 7).toString());\n }\n }\n }", "public int getMaxId() {\n int count = driver.findElements(By.xpath(xpathTableRows)).size();\n int maxID = -1;\n if (count > 0) {\n maxID = Integer.parseInt(assertAndGetText(xpathTableRows + \"[\" + count + \"]//td[1]\"));\n }\n return maxID;\n }", "MaxIDs getMaxIds();", "public long getMaximumLong() {\n/* 233 */ return this.max;\n/* */ }", "int getMaxID() throws DatabaseNotAccessibleException;", "@Override\n\tpublic int getMaxID() {\n\t\tResultSet resultSet = null;\n\t\tint max = 0;\n\t\ttry {\n\t\t\tresultSet = DBManager.getInstance().readFromDB(\"SELECT max(planeid) from fleet\");\n\t\t\tresultSet.next();\n\t\t\tmax = resultSet.getInt(1);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(max == 0) {\n\t\t\treturn 999;\n\t\t}\n\t\treturn max;\n\t}", "private long findMaxId() {\n\t\tlong max = 0;\n\t\tfor (Block block : this.getBlockCollection()) {\n\t\t\tif (block.getId() > max) {\n\t\t\t\tmax = block.getId();\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "public Integer getMaxId(){\n\t\tInteger max=0;\n\t\tfor(Integer i : getIdList()){\n\t\t\tif (i>max)\n\t\t\t\tmax=i;\n\t\t}\n\t\treturn max;\n\t}", "public long getMaxId(MigrationType type);", "public M csmiIdMax(Object max){this.put(\"csmiIdMax\", max);return this;}", "public long getMaxObjectID() {\n\t\treturn maxObjectID;\n\t}", "@Override\n\tpublic int getMaxID() throws SQLException {\n\t\treturn 0;\n\t}", "public Number getMaximumNumber() {\n/* 221 */ if (this.maxObject == null) {\n/* 222 */ this.maxObject = new Long(this.max);\n/* */ }\n/* 224 */ return this.maxObject;\n/* */ }", "public int getImportedMaxId();", "public long getMaxObjectID() {\n\t\t\treturn maxObjectID;\n\t\t}", "public int getMaxAccountsIdValue () throws Exception {\r\n String sql = \"SELECT MAX(ID) AS MAX FROM `accounts`;\";\r\n ResultSet result = stmt.executeQuery(sql);\r\n result.next();\r\n return result.getInt(\"MAX\");\r\n }", "public final void ensureMax() {\n\t\tfinal int temp = findMax(lookupPrefix) + 1;\n\t\tif (temp > currentSequenceNumber) {\n\t\t\tcurrentSequenceNumber = temp;\n\t\t}\n\t}", "public M csmiMemberIdMax(Object max){this.put(\"csmiMemberIdMax\", max);return this;}", "public static int retourneMaxNumber() {\n int tmp = 0;\n try {\n String requete = \"SELECT Max(eleve.id_el) AS Maxeleve FROM eleve\";\n ResultSet rs = Connector1.statement.executeQuery(requete);\n while (rs.next()) {\n tmp = rs.getInt(1);\n\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"ERROR \\n\" + e.getMessage());\n }\n return tmp;\n }", "public int getHighestChromID();", "private long maxIdFromTable(String ename) {\n\t\tEOEntity entity = EOModelGroup.defaultGroup().entityNamed(ename);\n\t\tif (entity == null) throw new NullPointerException(\"could not find an entity named \" + ename);\n\t\tString tableName = entity.externalName();\n\t\tString colName = entity.primaryKeyAttributes().lastObject().columnName();\n\t\tString sql = \"select max(\" + colName + \") from \" + tableName;\n\n\t\tERXJDBCConnectionBroker broker = ERXJDBCConnectionBroker.connectionBrokerForEntityNamed(ename);\n\t\tConnection con = broker.getConnection();\n\t\tResultSet resultSet;\n\t\ttry {\n\t\t\tresultSet = con.createStatement().executeQuery(sql);\n\t\t\tcon.commit();\n\n\t\t\tboolean hasNext = resultSet.next();\n\t\t\tlong v = 1l;\n\t\t\tif (hasNext) {\n\t\t\t\tv = resultSet.getLong(1);\n\t\t\t\tlog.debug(\"received max id from table {}, setting value in PK_TABLE to {}\", tableName, v);\n\t\t\t\tif(encodeEntityInPkValue()) {\n\t\t\t\t\tv = v >> CODE_LENGTH;\n\t\t\t\t}\n\t\t\t\tif(encodeHostInPkValue()) {\n\t\t\t\t\tv = v >> HOST_CODE_LENGTH;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn v + 1;\n\n\t\t} catch (SQLException e) {\n\t\t\tlog.error(\"could not call database with sql {}\", sql, e);\n\t\t\tthrow new IllegalStateException(\"could not get value from \" + sql);\n\t\t} finally {\n\t\t\tbroker.freeConnection(con);\n\t\t}\n\t}", "public static void setMaxAu(int max) {\n\t\tmaxAu = max;\n\t}", "private int getMaxIfIpId() {\n\n // get maxRundowId\n Integer maxIfIpId = this.baseMapper.getSqlSession().selectOne(this.getSqlId(\"getMaxIfIpId\"));\n\n // get form databse\n return maxIfIpId == null ? IntDef.INT_ONE : maxIfIpId.intValue();\n }", "public static int getMaxId() {\r\n\t\treturn maxId++;\r\n\t}", "public void SetMaxVal(int max_val);", "public Long getMaximum() {\r\n\t\treturn maximum;\r\n\t}", "private int getLastID() {\n\t\t\n\t\tArrayList<Integer> domandeIdList = new ArrayList<>();\n\t\tdomandeIdList.add(0);\n\t\tDB db = getDB();\n\t\tMap<Long, Domanda> domande = db.getTreeMap(\"domande\");\n\t\t\n\t\tfor(Map.Entry<Long, Domanda> domanda : domande.entrySet())\n\t\t\tif(domanda.getValue() instanceof Domanda)\n\t\t\t\tdomandeIdList.add(domanda.getValue().getId());\n\t\t\n\t\tInteger id = Collections.max(domandeIdList);\n\t\treturn id;\n\t}", "public int assignIdToNextUser () {\n int currentMax;\n User maxUserId = null;\n try {\n List lst = this.readAllUsers();\n maxUserId = Collections.max(lst, new UserCompar());\n } catch (DaoException exc) {\n exc.printStackTrace();\n }\n currentMax = maxUserId.getId();\n return ++currentMax;\n }", "public int getMaximumInteger() {\n/* 244 */ return (int)this.max;\n/* */ }", "public int findMax() {\n\t\tint max = (int)data.get(0);\n\t\tfor (int count = 1; count < data.size(); count++)\n\t\t\tif ( (int)data.get(count) > max)\n\t\t\t\tmax = (int)data.get(count);\n\t\treturn max;\n\t}", "private int getNextUnique() {\r\n\t\ttry {\r\n\t\t\tint nextUnique = 0;\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tResultSet rs = statement.executeQuery(\"SELECT MAX(userID) userID FROM users\");\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tnextUnique = rs.getInt(\"userID\") + 1;\r\n\t\t\t}\r\n\t\t\treturn nextUnique;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "protected final int getMax() {\n\treturn(this.max);\n }", "public long getMaximum() {\n\t\treturn this._max;\n\t}", "Object getMaximumValue(Object elementID) throws Exception;", "public int getMaxIntValue();", "public Long getMaxValue() {\n return maxValue;\n }", "public long getMax() {\n return m_Max;\n }", "public int getMaxQuestionnaireTemplatesIdValue () throws Exception {\r\n String sql = \"SELECT MAX(ID) AS MAX FROM QUESTIONNAIRETEMPLATES;\";\r\n ResultSet result = stmt.executeQuery(sql);\r\n result.next();\r\n return result.getInt(\"MAX\");\r\n }", "public static void setIDToGive(int highestID){\n\t\tIDToGive = highestID+1;\n\t}", "@Override\n\tpublic TxtRecordFactory maxTargetValue(int max) {\n\t\tmaxTargetValue = max;\n\t\treturn this;\n\t}", "public int getMaxIdPermit() {\n\n\t\t\tConnection con = null;\n\t\t\tPreparedStatement pstmt = null;\n\t\t\tResultSet rs = null;\n\t\t\tString query = null;\n\t\t\t\n\t\t\t\n\t\t\tquery = \" SELECT max(seq) as id FROM bwfl_license.import_permit_duty \";\n\n\t\t\tint maxid = 0;\n\t\t\ttry {\n\t\t\t\tcon = ConnectionToDataBase.getConnection();\n\t\t\t\tpstmt = con.prepareStatement(query);\n\t\t\t\trs = pstmt.executeQuery();\n\t\t\t\tif (rs.next()) {\n\t\t\t\t\tmaxid = rs.getInt(\"id\");\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (rs != null)\n\t\t\t\t\t\trs.close();\n\t\t\t\t\tif (con != null)\n\t\t\t\t\t\tcon.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn maxid + 1;\n\n\t\t}", "@Override\n\tpublic String getMaxSetId() throws RemoteException {\n\t\treturn dao.getMaxSetId();\n\t}", "@Override\r\n\tpublic String getReferenceKey() {\n\t\treturn \"max\";\r\n\t}", "@Override\n public Long findMAX() {\n\n StringBuffer sql = new StringBuffer(\"select max(magoithau) from goithau\");\n Query query = entityManager.createNativeQuery(sql.toString());\n return Long.parseLong(query.getSingleResult().toString()) ;\n }", "public Long getMaxHospitalID() {\n\t\tConnection conn = null; // Resets the connection to the database\n\t\tLong max = new Long(0);\n\t\t\n\t\ttry {\n\t\t\tconn = dataSource.getConnection();\n\t\t\t\n\t\t\tString sql = \"Select max(id) from hospital\";\n\t\t\tPreparedStatement ps = conn.prepareStatement(sql);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\n\t\t\tif (rs.next()) {\n\t\t\t\tmax = rs.getLong(1);\n\t\t\t}\n\t\t\t\n\t\t\trs.close();\n\t\t\tps.close();\n\t\t\treturn max;\n\t\t} catch (SQLException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t} finally {\n\t\t\tif (conn != null) {\n\t\t\t\ttry {\n\t\t\t\tconn.close();\n\t\t\t\t} catch (SQLException e) {}\n\t\t\t}\n\t\t}\n\t}", "public int getMaxInSingleRow() {\n return maxInSingleRow;\n }", "public long peakId() {\n\t\treturn currentMaxId;\n\t}", "public int findMaxValue() {\n\t\treturn findMaxValue( this );\n\t}", "public int getMaximumNumber() {\n\t\treturn 99999;\n\t}", "public static long[] toArray(UIDSet[] uidset, long uidmax) {\n\tif (uidset == null)\n\t return null;\n\tlong[] uids = new long[(int)UIDSet.size(uidset, uidmax)];\n\tint i = 0;\n\tfor (UIDSet u : uidset) {\n\t for (long n = u.start; n <= u.end; n++) {\n\t\tif (uidmax >= 0 && n > uidmax)\n\t\t break;\n\t\tuids[i++] = n;\n\t }\n\t}\n\treturn uids;\n }", "public void setMaxInSingleRow(int value) {\n maxInSingleRow = value;\n }", "public void setLastUpdUserId(Integer value) {\n set(6, value);\n }", "public abstract int getMaximumValue();", "public int getMaximumValue() {\n/* 359 */ return Math.min(32767, (this.c.getMaximumSize()).width);\n/* */ }", "public int largestEntry() throws SQLException {\r\n String statement = \"SELECT Appointment_ID FROM appointments ORDER BY Appointment_ID DESC LIMIT 0,1\";\r\n ResultSet rs = conn.prepareStatement(statement).executeQuery();\r\n rs.next();\r\n return rs.getInt(\"Appointment_ID\");\r\n }", "@In Integer max();", "@In Integer max();", "@Override\n public void setMaxFieldSize(int max) throws SQLException {\n max_field_size = max;\n }", "public int getMaxID(){\n return recipes.get(recipes.size() - 1).getID();\n }", "public int getMaxColumn();", "public M csmiCertifyTypeMax(Object max){this.put(\"csmiCertifyTypeMax\", max);return this;}", "public Integer getMax() {\n\t\t\tif (hotMinMax) {\n\t\t\t\tConfigValue rawMinMax = new ConfigValue();\n\t\t\t\ttry {\n\t\t\t\t\trawSrv.getCfgMinMax(name, rawMinMax);\n\t\t\t\t\t// TODO: FIX HERE\n\t\t\t\t\treturn 100;\n\t\t\t\t} catch (TVMException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\treturn new Integer(max);\n\t\t\t}\n\t\t\t// ....\n\t\t\treturn 100;\n\t\t}", "@Override\n public Integer max() {\n return findSpecialValue(Integer.MIN_VALUE, new MaxComparator());\n }", "public Integer getLastUpdUserId() {\n return (Integer) get(6);\n }", "public void setMax(int max) {\n this.max = max;\n }", "public void setMax(int max) {\n this.max = max;\n }", "@Override\n @SuppressWarnings(\"unchecked\")\n public long getUpperBound() {\n AuditReader auditService = Framework.getService(AuditReader.class);\n String auditQuery = \"from LogEntry log order by log.id desc\";\n log.debug(\"Querying audit log for greatest id: {}\", auditQuery);\n\n List<LogEntry> entries = (List<LogEntry>) auditService.nativeQuery(auditQuery, 1, 1);\n if (entries.isEmpty()) {\n log.debug(\"Found no audit log entries, returning -1\");\n return -1;\n }\n return entries.get(0).getId();\n }", "public int getMaxRow();", "protected void obtainLiveMaxChatId() {\n\t\tfor (int i = 0; i < liveModels.size();i++) {\n\t\t\tSquareLiveChatModel squareLiveChatModel = liveModels.get(i);\n\t\t\tif (squareLiveChatModel.getIsTop() == 0) {//置顶\n\t\t\t\tlong tempLiveMaxChatId = squareLiveChatModel.getChatId();\n\t\t\t\tif (tempLiveMaxChatId>liveMaxChatId) {\n\t\t\t\t\tliveMaxChatId = tempLiveMaxChatId;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t} \n\t\t}\n\t}", "public int getMaximumSignupID(int day) {\r\n\t\treturn maximumSignupID.get(day);\r\n\r\n\t}", "public int getMaxQuestionnaireWinesIdValue () throws Exception {\r\n String sql = \"SELECT MAX(ID) AS MAX FROM QUESTIONNAIREWINES;\";\r\n ResultSet result = stmt.executeQuery(sql);\r\n result.next();\r\n return result.getInt(\"MAX\");\r\n }", "protected final void setMax(Comparable max)\r\n {\r\n myMax = max;\r\n }", "public int getMax() {\n return max;\n }", "public int getMax() {\n return max;\n }", "public int getMax() {\n return max;\n }", "private static void populateRgtMax(List<Integer> rgtMax) {\n\t\tint curMax=-1;\n\t\tfor(int i= lis.size()-1;i>=0;i--) {\n\t\t\trgtMax.add(curMax);\n\t\t\tif(lis.get(i) > curMax )\n\t\t\t\tcurMax= Math.max(curMax, lis.get(i));\n\t\t\telse\n\t\t\t\tcontinue;\n\t\t}\n\t\tCollections.reverse(rgtMax);\n\t\t\n\t}", "public synchronized int getMax() {\r\n\t\treturn mMax;\r\n\t}", "public int getMax() {\n\t\treturn max;\n\t}", "public int getMax() {\n\t\treturn max;\n\t}", "public int getMaxValue(){\n\t\treturn maxValue;\n\t}", "public int getMaxQuestionnaireIdValue () throws Exception {\r\n String sql = \"SELECT MAX(ID) AS MAX FROM QUESTIONNAIRES;\";\r\n ResultSet result = stmt.executeQuery(sql);\r\n result.next();\r\n return result.getInt(\"MAX\");\r\n }", "protected long getLastUID() throws Exception {\n\t\tif(psmt != null) {\n\t\t\tResultSet rs = psmt.getGeneratedKeys();\n\t\t\tif(rs.next())\n\t\t\t\treturn rs.getLong(1);\n\t\t}\n\t\treturn -1L;\n\t}", "@Override\n public int getMaxFileId(){\n int maxFileId = -1;\n for(int id : mapAllVertices.getIds()){\n V v = mapAllVertices.get(id);\n // get File ids for all time frames if exist, take for one ans break since file id will be same for all time frames for a vertex\n List<String> listFileId = \n new ArrayList<>(v.getUserAttributer().getAttributeValues(MeerkatSystem.FILE_ID).values());\n for(String strfileId : listFileId){\n //System.out.println(\"File ID : \" + strfileId);\n int fileId = Integer.parseInt(strfileId);\n if(fileId > maxFileId){\n maxFileId = fileId;\n }\n break;\n }\n }\n return maxFileId;\n\n}", "public int highestUserlogID() {\n\n int count = 0;\n LogDAO ldao = new LogDAO();\n ldao.connect();\n try {\n String query = \"SELECT log_id FROM log_user ORDER BY log_id DESC;\";\n Statement st = connection.createStatement();\n ResultSet rs = st.executeQuery(query);\n rs.next();\n count = rs.getInt(1);\n ldao.closeConnection();\n return count;\n } catch (SQLException ex) {\n ldao.closeConnection();\n System.out.println(\"SQLException in highestUserlogID()\");\n }\n return count;\n }", "public int getMaximum() {\r\n return max;\r\n }", "int getMax( int max );", "public int getMax()\n\t{\n\t\treturn max;\n\t}", "public int getMaxValue() throws Exception {\n\t\treturn RemoteServer.instance().executeAndGetId(\"getmaxvalue\",\n\t\t\t\tgetRefId());\n\t}", "private int getLastIDRisposte() {\n\n\t\tArrayList<Integer> risposteIdList = new ArrayList<>();\n\t\trisposteIdList.add(0);\n\t\tDB db = getDB();\t\t\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\t\n\t\tfor(Map.Entry<Long, Risposta> risposta : risposte.entrySet())\n\t\t\tif(risposta.getValue() instanceof Risposta)\n\t\t\t\trisposteIdList.add(risposta.getValue().getId());\n\t\t\n\t\tInteger id = Collections.max(risposteIdList);\n\t\treturn id;\n\t}", "public int generateUID() {\n if(mdb == null) {\n return -1;\n }\n TreeSet<Integer> sortedSet = new TreeSet<Integer>();\n Set<String> players = mdb.getKeys(false);\n for (String player : players) {\n List<Integer> messageids = mdb.getIntegerList(player + \".messageids\");\n if (messageids != null) {\n // add all messageids found for this player to our ordered set\n sortedSet.addAll(messageids);\n }\n }\n // make sure we don't enter negative number territory\n for(int i=Courier.MIN_ID; i<Courier.MAX_ID; i++) {\n if(sortedSet.add(i)) {\n // i wasn't in the set\n return i;\n }\n }\n return -1;\n }", "public int getMax(){\n return tab[rangMax()];\n }", "public void resize(int max) {\r\n\t\tSet<Language> keys = getDb().keySet();\r\n\t\tSystem.out.println(keys);\r\n\t\tfor(Language lang : keys) {\r\n\t\t\tMap<Integer,LanguageEntry> top = getTop(max,lang);\r\n\t\t\tgetDb().put(lang,top);\r\n\t\t}\r\n\t}", "E maxVal();", "int getMaxInt();", "public long readBoundedLong(final long max) throws IOException {\n final int bits = 0 >= max ? 0 : (int) (Math.floor(Math.log(max) / Math.log(2)) + 1);\n return 0 < bits ? this.read(bits).toLong() : 0;\n }", "@Query(value = \"select max(user_id) from tbl_rating\", nativeQuery = true)\n Long getHighestId();", "public String getMaxKey();", "public int findMax(){\n\t\tif(root==nil){\n\t\t\treturn 0;\n\t\t}\n\t\tNode temp = root;\n\t\twhile(temp.right != nil){\n\t\t\ttemp = temp.right;\n\t\t}\n\t\treturn temp.id;\n\t}", "public int getHighestId() {\n final SQLiteStatement statement = db.compileStatement(\"SELECT MAX(_id) FROM Games\");\n return (int) statement.simpleQueryForLong();\n }", "public int getChromNum()\r\n {\r\n return max;\r\n }", "int getValueMaxRessource(TypeRessource type);" ]
[ "0.7009102", "0.6507809", "0.64194024", "0.6287711", "0.62497497", "0.62495214", "0.61558443", "0.6151869", "0.6145574", "0.6062313", "0.60500973", "0.6048145", "0.60020787", "0.59702283", "0.5951062", "0.5933832", "0.59305394", "0.59243554", "0.5872644", "0.5872632", "0.5835545", "0.5833184", "0.5801956", "0.58018625", "0.57987183", "0.5787091", "0.5786357", "0.57609296", "0.57548517", "0.57517517", "0.573549", "0.57286674", "0.5691378", "0.5666825", "0.5637109", "0.56261134", "0.56162065", "0.560949", "0.5593041", "0.5588988", "0.55591244", "0.55499226", "0.5540272", "0.5527019", "0.5520476", "0.55072516", "0.54953533", "0.5475797", "0.54754", "0.54743886", "0.5454718", "0.5449393", "0.5437674", "0.5431494", "0.5409376", "0.5402688", "0.5402688", "0.5391008", "0.5382717", "0.53820926", "0.53761774", "0.5370294", "0.537001", "0.5369884", "0.53554", "0.53554", "0.53404385", "0.533676", "0.53366804", "0.53282076", "0.5324938", "0.53062797", "0.53017515", "0.53017515", "0.53017515", "0.5293501", "0.52916265", "0.5290678", "0.5290678", "0.528669", "0.5284997", "0.5269452", "0.5267774", "0.5259152", "0.5258683", "0.5255788", "0.5253003", "0.5250916", "0.5243272", "0.5233471", "0.5229047", "0.5228072", "0.5227297", "0.52246064", "0.52124786", "0.52091444", "0.52071303", "0.51988363", "0.5192165", "0.5189632", "0.5188692" ]
0.0
-1
currently a warning, not an error
@Test public void fsckFIXMetricsUIDLow() throws Exception { storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(0L)); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, true, false); assertEquals(1, errors); errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(0, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "protected boolean func_70041_e_() { return false; }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "public void method_4270() {}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void mo1964g() throws cf {\r\n }", "public void mo1944a() throws cf {\r\n }", "public void mo1976s() throws cf {\r\n }", "protected boolean func_70814_o() { return true; }", "@Override\n public void func_104112_b() {\n \n }", "public void mo1962e() throws cf {\r\n }", "public final void mo91715d() {\n }", "public void mo1972o() throws cf {\r\n }", "public void m23075a() {\n }", "public boolean method_2434() {\r\n return false;\r\n }", "public void mo38117a() {\n }", "void m5770d() throws C0841b;", "private stendhal() {\n\t}", "public boolean method_4088() {\n return false;\n }", "public boolean method_2453() {\r\n return false;\r\n }", "public void mo1966i() throws cf {\r\n }", "public boolean method_4132() {\n return false;\n }", "public boolean method_218() {\r\n return false;\r\n }", "void m5771e() throws C0841b;", "void m5769c() throws C0841b;", "public boolean method_216() {\r\n return false;\r\n }", "private void kk12() {\n\n\t}", "public void inquiryError() {\n\t\t\n\t}", "protected Problem() {/* intentionally empty block */}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "public boolean method_108() {\r\n return false;\r\n }", "public boolean method_194() {\r\n return false;\r\n }", "public boolean method_4093() {\n return false;\n }", "public void mo1963f() throws cf {\r\n }", "public boolean method_4102() {\n return false;\n }", "@Override\n public void perish() {\n \n }", "public boolean method_210() {\r\n return false;\r\n }", "void m1864a() {\r\n }", "public boolean method_208() {\r\n return false;\r\n }", "private void level7() {\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 }", "public void mo55254a() {\n }", "public void mo12628c() {\n }", "public void mo12930a() {\n }", "public void mo1960c() throws cf {\r\n }", "public boolean method_3897() {\r\n return false;\r\n }", "public void mo1970m() throws cf {\r\n }", "public boolean method_214() {\r\n return false;\r\n }", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "void m5768b() throws C0841b;", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "public boolean method_196() {\r\n return false;\r\n }", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "public void mo44053a() {\n }", "public void warningPermit();", "public void mo23813b() {\n }", "public void mo21779D() {\n }", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n System.out.println(\"Warning reported: \" + saxpe.getMessage());\n }", "public void mo21792Q() {\n }", "protected void mo6255a() {\n }", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "public void mo1974q() throws cf {\r\n }", "public abstract void mo70713b();", "public void mo55254a() {\n }", "public void mo21787L() {\n }", "public abstract void mo56925d();", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n }", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "public void mo4359a() {\n }", "public void mo115190b() {\n }", "public boolean method_198() {\r\n return false;\r\n }", "@Override\n\tpublic void onStallWarning(StallWarning arg0) {\n\t\t\n\t}", "private void checkNotUnknown() {\n if (isUnknown())\n throw new AnalysisException(\"Unexpected 'unknown' value!\");\n }", "public void mo6081a() {\n }", "void notSupported(String errorcode);", "public int method_113() {\r\n return 0;\r\n }", "void berechneFlaeche() {\n\t}", "@Override\n\t\tpublic void checkPreconditions() {\n\t\t}", "public void mo1531a() {\n }", "private static void runTestCWE8() {\n}", "private static void runTestCWE8() {\n}", "public void swrap() throws NoUnusedObjectExeption;", "private static void runTestCWE6() {\n}", "private static void runTestCWE6() {\n}", "public void mo21785J() {\n }", "private void m50367F() {\n }" ]
[ "0.6607475", "0.65735716", "0.64578193", "0.64516914", "0.63690615", "0.63607115", "0.6313633", "0.6277263", "0.6264403", "0.6251081", "0.6228066", "0.6212326", "0.6193183", "0.6173823", "0.6159397", "0.61412436", "0.6137461", "0.6134118", "0.6131424", "0.6128311", "0.6125895", "0.60996115", "0.609934", "0.6086772", "0.60867035", "0.60620254", "0.6057853", "0.604901", "0.6039225", "0.60285574", "0.6027521", "0.6026639", "0.6022298", "0.6022298", "0.59733164", "0.595578", "0.5955212", "0.5947853", "0.59411937", "0.5937788", "0.5932163", "0.5924105", "0.5910501", "0.5901154", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.5896116", "0.5893134", "0.58923537", "0.58854276", "0.5877016", "0.587468", "0.58742815", "0.58742815", "0.58696586", "0.58481723", "0.58481723", "0.5847125", "0.584581", "0.584581", "0.5842065", "0.5824734", "0.5819828", "0.5815501", "0.5815053", "0.580836", "0.58021235", "0.57941985", "0.5791938", "0.5791938", "0.57880926", "0.578688", "0.5784708", "0.578307", "0.5779751", "0.5779735", "0.5772275", "0.5772275", "0.5769752", "0.57687587", "0.57637197", "0.57539976", "0.57533115", "0.57527834", "0.5751981", "0.5743167", "0.5740184", "0.57315886", "0.5728917", "0.5728491", "0.5728491", "0.5719336", "0.5711022", "0.5711022", "0.57089555", "0.57051265" ]
0.0
-1
/ Max UID row values that are != 8 bytes wide are bizzare. TODO a fix would be to find the max used ID for the type and store that in the max row.
@Test public void fsckMetricsUIDWrongLength() throws Exception { storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromInt(3)); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(2, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getLastId() {\n for (int i = 0; i < remindersTable.getRowCount(); i++) {\n if (parseInt(remindersTable.getValueAt(i, 7).toString()) > maxId) {\n maxId = parseInt(remindersTable.getValueAt(i, 7).toString());\n }\n }\n }", "public long getMaximumLong() {\n/* 233 */ return this.max;\n/* */ }", "public int getMaxId() {\n int count = driver.findElements(By.xpath(xpathTableRows)).size();\n int maxID = -1;\n if (count > 0) {\n maxID = Integer.parseInt(assertAndGetText(xpathTableRows + \"[\" + count + \"]//td[1]\"));\n }\n return maxID;\n }", "@Override\n public int getMaxRowSize() {\n return 1048576;\n }", "public long getMaxId(MigrationType type);", "@Override\n public int getMaxFieldSize() throws SQLException {\n return max_field_size;\n }", "public int getMaximumValue() {\n/* 359 */ return Math.min(32767, (this.c.getMaximumSize()).width);\n/* */ }", "int maxRowSize();", "public int getMaxFieldSize() throws SQLException {\n return 0;\r\n }", "public Integer getMaxCharsPerColumn()\n {\n return maxCharsPerColumn;\n }", "public int getIdentifiedUserDataSize() {\n return super.getCdSector().getCdUserDataSize() - 20;\n }", "public abstract long getMaxSize();", "public static int getMaxSize(){\n\t\treturn 2* 4;\n\t}", "MaxIDs getMaxIds();", "public SizeLimitRowMapper(long maxSize){\r\n\t\tthis.maxBytes = maxSize;\r\n\t}", "@Override\n\tpublic int getMaxID() throws SQLException {\n\t\treturn 0;\n\t}", "@Override\n public void setMaxFieldSize(int max) throws SQLException {\n max_field_size = max;\n }", "@Override\n public int getMaxCapacity() {\n return 156250000;\n }", "private long maxIdFromTable(String ename) {\n\t\tEOEntity entity = EOModelGroup.defaultGroup().entityNamed(ename);\n\t\tif (entity == null) throw new NullPointerException(\"could not find an entity named \" + ename);\n\t\tString tableName = entity.externalName();\n\t\tString colName = entity.primaryKeyAttributes().lastObject().columnName();\n\t\tString sql = \"select max(\" + colName + \") from \" + tableName;\n\n\t\tERXJDBCConnectionBroker broker = ERXJDBCConnectionBroker.connectionBrokerForEntityNamed(ename);\n\t\tConnection con = broker.getConnection();\n\t\tResultSet resultSet;\n\t\ttry {\n\t\t\tresultSet = con.createStatement().executeQuery(sql);\n\t\t\tcon.commit();\n\n\t\t\tboolean hasNext = resultSet.next();\n\t\t\tlong v = 1l;\n\t\t\tif (hasNext) {\n\t\t\t\tv = resultSet.getLong(1);\n\t\t\t\tlog.debug(\"received max id from table {}, setting value in PK_TABLE to {}\", tableName, v);\n\t\t\t\tif(encodeEntityInPkValue()) {\n\t\t\t\t\tv = v >> CODE_LENGTH;\n\t\t\t\t}\n\t\t\t\tif(encodeHostInPkValue()) {\n\t\t\t\t\tv = v >> HOST_CODE_LENGTH;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn v + 1;\n\n\t\t} catch (SQLException e) {\n\t\t\tlog.error(\"could not call database with sql {}\", sql, e);\n\t\t\tthrow new IllegalStateException(\"could not get value from \" + sql);\n\t\t} finally {\n\t\t\tbroker.freeConnection(con);\n\t\t}\n\t}", "@Override\n\tpublic int getMaxID() {\n\t\tResultSet resultSet = null;\n\t\tint max = 0;\n\t\ttry {\n\t\t\tresultSet = DBManager.getInstance().readFromDB(\"SELECT max(planeid) from fleet\");\n\t\t\tresultSet.next();\n\t\t\tmax = resultSet.getInt(1);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(max == 0) {\n\t\t\treturn 999;\n\t\t}\n\t\treturn max;\n\t}", "@Override\n protected long getMaxBytes(final PropertyContext context) {\n return Long.MAX_VALUE;\n }", "public Number getMaximumNumber() {\n/* 221 */ if (this.maxObject == null) {\n/* 222 */ this.maxObject = new Long(this.max);\n/* */ }\n/* 224 */ return this.maxObject;\n/* */ }", "private int getMaxIfIpId() {\n\n // get maxRundowId\n Integer maxIfIpId = this.baseMapper.getSqlSession().selectOne(this.getSqlId(\"getMaxIfIpId\"));\n\n // get form databse\n return maxIfIpId == null ? IntDef.INT_ONE : maxIfIpId.intValue();\n }", "public static long[] toArray(UIDSet[] uidset, long uidmax) {\n\tif (uidset == null)\n\t return null;\n\tlong[] uids = new long[(int)UIDSet.size(uidset, uidmax)];\n\tint i = 0;\n\tfor (UIDSet u : uidset) {\n\t for (long n = u.start; n <= u.end; n++) {\n\t\tif (uidmax >= 0 && n > uidmax)\n\t\t break;\n\t\tuids[i++] = n;\n\t }\n\t}\n\treturn uids;\n }", "private String getAltRegDataType() {\n\t\treturn \"logic[PIO_MAX_TR_WIDTH-1:0]\"; // TODO - make parameterizable, \"u_int\" + regProperties.getRegWidth() + \"_t\"\n\t}", "int getMaxID() throws DatabaseNotAccessibleException;", "public static int totalSizeBits_entries_id() {\n return 176;\n }", "private static long size(UIDSet[] uidset, long uidmax) {\n\tlong count = 0;\n\n\tif (uidset != null)\n\t for (UIDSet u : uidset) {\n\t\tif (uidmax < 0)\n\t\t count += u.size();\n\t\telse if (u.start <= uidmax) {\n\t\t if (u.end < uidmax)\n\t\t\tcount += u.end - u.start + 1;\n\t\t else\n\t\t\tcount += uidmax - u.start + 1;\n\t\t}\n\t }\n\t\n\treturn count;\n }", "public int getIdSize() {\n\t\treturn LongConverter.SIZE;\n\t}", "private int getNextUnique() {\r\n\t\ttry {\r\n\t\t\tint nextUnique = 0;\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tResultSet rs = statement.executeQuery(\"SELECT MAX(userID) userID FROM users\");\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tnextUnique = rs.getInt(\"userID\") + 1;\r\n\t\t\t}\r\n\t\t\treturn nextUnique;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public long getMaxObjectID() {\n\t\treturn maxObjectID;\n\t}", "public static int offsetBits_max() {\n return 64;\n }", "public int getMaxInSingleRow() {\n return maxInSingleRow;\n }", "public YangUInt32 getMaxRecordsPerFileValue() throws JNCException {\n return (YangUInt32)getValue(\"max-records-per-file\");\n }", "public static int getMaxTPDUSize(int maxTPDUSizeParam) {\n if (maxTPDUSizeParam < 7 || maxTPDUSizeParam > 16) {\n throw new IllegalArgumentException(\"maxTPDUSizeParam is out of bound\");\n }\n if (maxTPDUSizeParam == 16) {\n return 65531;\n } else {\n return (int) Math.pow(2, maxTPDUSizeParam);\n }\n }", "private long findMaxId() {\n\t\tlong max = 0;\n\t\tfor (Block block : this.getBlockCollection()) {\n\t\t\tif (block.getId() > max) {\n\t\t\t\tmax = block.getId();\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "com.google.protobuf.ByteString getUidBytes();", "public byte get_max() {\n return (byte)getSIntBEElement(offsetBits_max(), 8);\n }", "public int maxEntrySize() {\n\t\tint max = Integer.MIN_VALUE;\n\t\tfor (int i = 0; (i < table.length); i++) {\n\t\t\tif (table [i] != null) {\n\t\t\t\tif (table[i].size() > max)\n\t\t\t\t\tmax = table[i].size();\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "public void setMaxFieldSize(int max) throws SQLException {\n\r\n }", "public static int offset_max() {\n return (64 / 8);\n }", "public int getMaxColumn();", "public long getMaxObjectID() {\n\t\t\treturn maxObjectID;\n\t\t}", "protected long getLastUID() throws Exception {\n\t\tif(psmt != null) {\n\t\t\tResultSet rs = psmt.getGeneratedKeys();\n\t\t\tif(rs.next())\n\t\t\t\treturn rs.getLong(1);\n\t\t}\n\t\treturn -1L;\n\t}", "com.google.protobuf.ByteString\n getUidBytes();", "public IntegerDt getMaxLengthElement() { \n\t\tif (myMaxLength == null) {\n\t\t\tmyMaxLength = new IntegerDt();\n\t\t}\n\t\treturn myMaxLength;\n\t}", "public Long getMaximum() {\r\n\t\treturn maximum;\r\n\t}", "public static int totalSize_entries_id() {\n return (176 / 8);\n }", "com.google.protobuf.ByteString\n getUidBytes();", "public int getMaximumInteger() {\n/* 244 */ return (int)this.max;\n/* */ }", "public int getImportedMaxId();", "public int getMaxMtu() {\n return mMaxMtu;\n }", "public M csmiIdMax(Object max){this.put(\"csmiIdMax\", max);return this;}", "protected long getLastCleanedRow() {\n List<String> res = dbconnector.execRead(\"SELECT value FROM MS_DataCleaning_conf \" +\n \"WHERE name='sample_last_cleaned_row'\").get(0);\n return Long.parseLong(res.get(0));\n }", "int maxNumberOfPutRows();", "public int getMaxAccountsIdValue () throws Exception {\r\n String sql = \"SELECT MAX(ID) AS MAX FROM `accounts`;\";\r\n ResultSet result = stmt.executeQuery(sql);\r\n result.next();\r\n return result.getInt(\"MAX\");\r\n }", "@Override\n\tpublic int max() {\n\t\treturn 4;\n\t}", "public Integer getMaxId(){\n\t\tInteger max=0;\n\t\tfor(Integer i : getIdList()){\n\t\t\tif (i>max)\n\t\t\t\tmax=i;\n\t\t}\n\t\treturn max;\n\t}", "public Integer getLastUpdUserId() {\n return (Integer) get(6);\n }", "@Override public byte[][] getColumnsMaxValue() {\n // operation of getting the max value is not supported as its a non leaf\n // node\n // and in case of B+Tree data will be stored only in leaf node and\n // intermediate\n // node will be used only for searching the leaf node\n throw new UnsupportedOperationException(\"Unsupported operation\");\n }", "public int getMaxFieldSize() throws SQLException {\n return currentPreparedStatement.getMaxFieldSize();\n }", "public int getMaxLength() {\r\n\t\treturn fieldMaxLength;\r\n\t}", "@Test\n public void fsckMetricsUIDHigh() throws Exception {\n // currently a warning, not an error\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(42L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(0, errors);\n }", "public long getMaximum() {\n\t\treturn this._max;\n\t}", "default int getMaximumCount(int slot) {\n\t\treturn 64;\n\t}", "public static int sizeBits_max() {\n return 8;\n }", "@Test\n public void fsckTagkUIDHigh() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGK, Bytes.fromLong(42L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(0, errors);\n }", "public int getMaxSize()\n {\n return m_MaxSize;\n }", "HugeUInt(String str) {\r\n array = new int[str.length()];\r\n int x = str.length() - 1;\r\n for (int i = x; i >= 0; i--) {\r\n array[x-i] = Character.getNumericValue(str.charAt(i));\r\n }\r\n }", "public Integer getMaxLength() {\n\t\treturn maxLength;\n\t}", "public long maxSize() {\n\t\treturn maxSize;\n\t}", "public static int getMaxId() {\r\n\t\treturn maxId++;\r\n\t}", "long getUid();", "long getUid();", "public int getMaximumNumber() {\n\t\treturn 99999;\n\t}", "@Override\n\tpublic String getMaxSetId() throws RemoteException {\n\t\treturn dao.getMaxSetId();\n\t}", "public synchronized int getUpperSizeLimit() {\n \t\treturn upper;\n \t}", "public com.google.protobuf.ByteString\n getUidBytes() {\n Object ref = uid_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n uid_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getMaxCol() {\n return maxCol;\n }", "public M csmiMemberIdMax(Object max){this.put(\"csmiMemberIdMax\", max);return this;}", "public int getMaxRow();", "public int getMaxBusNdx() { return _maxBusNdx; }", "private final long get_BIGINT(int column) {\n // @AGG force Little Endian\n if (metadata.isZos())\n return dataBuffer_.getLong(columnDataPosition_[column - 1]);\n else\n return dataBuffer_.getLongLE(columnDataPosition_[column - 1]);\n// return SignedBinary.getLong(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }", "long getUID() throws UidGenerateException;", "public int generateUniqueID(){\n\n int uniqueID = 100; \n int maxID =getMaxId() ;\n \n uniqueID = uniqueID + maxID;\n\n return uniqueID;\n }", "int getMaxSize();", "public int getMaximumSignupID(int day) {\r\n\t\treturn maximumSignupID.get(day);\r\n\r\n\t}", "int maxColSize() {\n int max = Integer.MIN_VALUE;\n for (IntSet col : this.cols) {\n if (col.size() > max) {\n max = col.size();\n }\n }\n return max;\n }", "public com.google.protobuf.ByteString\n getUidBytes() {\n Object ref = uid_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n uid_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected abstract int getMaxDesiredSize();", "public Integer maxUsersInLab() {\n return this.maxUsersInLab;\n }", "public int getMaxRow() {\n return maxRow;\n }", "public String getMaxKey() {\n\t\treturn maxkey;\n \n }", "public Long getMaxValue() {\n return maxValue;\n }", "public static int size_moteId() {\n return (16 / 8);\n }", "int getMaxVarcharSize();", "long getToUid();", "public int getMaxLength(){\n return this.maxLength;\n }", "@Test\n public void fsckTagvUIDHigh() throws Exception {\n\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGV, Bytes.fromLong(42L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(0, errors);\n }", "public int getMaxSize() {\n return maxSize_;\n }" ]
[ "0.5967158", "0.5863836", "0.5773861", "0.5768137", "0.5664249", "0.565318", "0.5557341", "0.5557121", "0.5520098", "0.54902434", "0.54811794", "0.54440206", "0.54337984", "0.5429962", "0.54291147", "0.5418273", "0.5347743", "0.5346355", "0.53370917", "0.53338873", "0.5323213", "0.53142804", "0.5311388", "0.53049576", "0.52969", "0.5295124", "0.52791166", "0.52662694", "0.5262992", "0.5257966", "0.5256497", "0.5239788", "0.5231879", "0.52162397", "0.5214063", "0.521376", "0.52007604", "0.51904756", "0.5182194", "0.51812863", "0.5178973", "0.51679546", "0.51554537", "0.5146708", "0.5144712", "0.51372004", "0.51321423", "0.51272964", "0.5125604", "0.51171666", "0.5100822", "0.50898045", "0.5088667", "0.50868434", "0.50812644", "0.50734323", "0.50710344", "0.5069988", "0.5069823", "0.5068469", "0.5064887", "0.50605553", "0.5051046", "0.505048", "0.50492376", "0.5033227", "0.5031308", "0.5024405", "0.5013272", "0.5012692", "0.50074714", "0.5005859", "0.50019157", "0.50019157", "0.49980885", "0.49927726", "0.4989776", "0.49805033", "0.49750045", "0.4974232", "0.4971629", "0.49686518", "0.4961518", "0.49544144", "0.49530274", "0.49504927", "0.4944928", "0.49441954", "0.49404493", "0.4935155", "0.49333182", "0.49332985", "0.49314195", "0.49262527", "0.49252057", "0.4914855", "0.49146718", "0.4908773", "0.49030253", "0.4902178" ]
0.50554
62
/ 1 Missing Reverse Mapping Forward mapping is missing reverse: bar > 02 01 > foo foo > 01 bar > 02 FIX Restore reverse map 02 > bar. OK since 02 doesn't map to anything
@Test public void fsckMetricsMissingReverse() throws Exception { storage.flushColumn(UID_TABLE, new byte[] {0, 0, 1}, NAME_FAMILY, METRICS); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(1, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkReverseMap() throws ApplicationException {\n if (reverseMap == null) {\n reverseMap = Data.makeReverseMap(networkIds);\n }\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tprivate static <ModelElem extends EObject> ModelElem reverse(Object fortranElem, ModelElem modelElem, Map<Object,Object> mappings) {\r\n\t\t\r\n\t\tEClass modelElemClass = modelElem.eClass();\r\n\t\t\t\r\n\t\t//this is required so that we can conditionally add mappings\r\n\t\t//that succeeded at the end of the method when no recursive\r\n\t\t//call is required (this only occurs at leaves of metamodel tree)\r\n\t\tMap<Object, Object> mappingsToAdd = new IdentityHashMap<Object, Object>();\r\n\t\t\r\n\t\t//assume a successful mapping (required for looking up\r\n\t\t//mappings during recursive calls)\r\n\t\t//mapping will be removed later if it fails\r\n\t\tmappings.put(modelElem, fortranElem);\t\r\n\t\t\r\n\t\t\t\t\t\t\r\n\t\tfor (EStructuralFeature sf : modelElemClass.getEAllStructuralFeatures()) {\r\n\t\t\t\r\n\t\t\tMap<String, Object> keywordMap = Regex.getMappingFromAnnotation(sf);\r\n\t\t\t\r\n\t\t\t/////NEW MAPPING PARSER HERE\r\n\t\t\t\t\t\t\r\n\t\t\tEAnnotation ann = sf.getEAnnotation(\"http://www.earthsystemcog.org/projects/nuopc\");\r\n\t\t\tif (ann != null && ann.getDetails().get(\"mappingNew\") != null) {\r\n\t\t\t\tString mappingNew = ann.getDetails().get(\"mappingNew\");\r\n\t\t\t\t//if (mappingNew != null) {\r\n\t\t\t\tMapping mapping = parseMappingNew(mappingNew);\r\n\t\t\t\tObject fortranContextElem;\r\n\t\t\t\t\r\n\t\t\t\tif (mapping.getContext() != null) {\r\n\t\t\t\t\t//explicit context\r\n\t\t\t\t\tEObject contextElement = EcoreUtils.eGetSFValue(mapping.getContext(), modelElem, true, null);\r\n\t\t\t\t\tfortranContextElem = mappings.get(contextElement);\r\n\t\t\t\t\tif (fortranContextElem == null) {\r\n\t\t\t\t\t\tthrow new RuntimeException(\"No Fortran context for element: \" + contextElement);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tfortranContextElem = fortranElem; //implicit\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tImplicitContextMapping icMapping = mapping.getMapping();\r\n\t\t\t\ticMapping = replacePathExprWithValues(icMapping, modelElem, true);\r\n\t\t\t\t\r\n\t\t\t\tString methodName = icMapping.eClass().getName().toLowerCase();\r\n\t\t\t\t\r\n\t\t\t\t//find method that implements code query\r\n\t\t\t\tMethod method = findREMethod(methodName, fortranContextElem, icMapping);\r\n\t\t\t\tif (method == null) {\r\n\t\t\t\t\tSystem.out.println(\"Method not found: \" + methodName);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tObject result = method.invoke(null, fortranContextElem, icMapping);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tif (method.getReturnType() == String.class ||\r\n\t\t\t\t\t\tmethod.getReturnType().isPrimitive()) {\r\n\t\t\t\t\t\tmodelElem.eSet(sf, result);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Token.class) {\r\n\t\t\t\t\t\tif (result != null) {\r\n\t\t\t\t\t\t\t//String constructor required because of IdentityHashMap\r\n\t\t\t\t\t\t\tString text = new String(((Token)result).getText());\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, text);\r\n\t\t\t\t\t\t\tmappingsToAdd.put(text, result);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t//what should we do here?\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Set.class ||\r\n\t\t\t\t\t\t\t method.getReturnType() == Map.class) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do we have a set of primitives?\r\n\t\t\t\t\t\tif (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEString())) {\r\n\t\t\t\t\t\t\tSet<String> resultSet;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<String>) ((Map) result).keySet();\r\n\t\t\t\t\t\t\t\t//TODO: ignoring PathExprs for now\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<String>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfor (String res : resultSet) {\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(res);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, res);\r\n\t\t\t\t\t\t\t\t\tbreak; //just take first one\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}\r\n\t\t\t\t\t\t//result is a set of objects - either IASTNodes or IFortranASTs\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSet<Object> resultSet = null;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = ((Map) result).keySet();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<Object>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor (Object newFortranElem : resultSet) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//set binding in model\r\n\t\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\t\tMap<PathExpr, String> bindings = ((Map<?, Map<PathExpr, String>>) result).get(newFortranElem);\r\n\t\t\t\t\t\t\t\t\tfor (Entry<PathExpr, String> binding : bindings.entrySet()) {\r\n\t\t\t\t\t\t\t\t\t\tboolean featureSet = EcoreUtils.eSetSFValue(binding.getKey(), newModelElem, binding.getValue());\r\n\t\t\t\t\t\t\t\t\t\tif (!featureSet) {\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Feature not set: \" + binding.getKey());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// set up parent relationship for references (may be removed later)\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//recursive call\r\n\t\t\t\t\t\t\t\tEObject newModelElemRet = reverse(newFortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// if NULL returned, then mapping failed, so remove element from parent\r\n\t\t\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t//TODO: consider replacing with previous value?\r\n\t\t\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (!sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tbreak; // take first one that is not null\r\n\t\t\t\t\t\t\t\t}\t\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\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} // end check for primitives vs. objects in results\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t}\t\t\t\t\t\t\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\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////END OF NEW MAPPING PARSER\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\telse if (keywordMap != null && keywordMap.size() > 0) {\t\r\n\t\t\t\t\r\n\t\t\t\tString methodName = Regex.getMappingTypeFromAnnotation(sf);\r\n\t\t\t\t\r\n\t\t\t\t//populate metavariables\t\t\t\t\t\t\r\n\t\t\t\tfor (Entry<String, Object> entry : keywordMap.entrySet()) {\r\n\t\t\t\t\t//TODO: should we handle different metavariable types here?\r\n\t\t\t\t\t// or just strings?\r\n\t\t\t\t\tif (!entry.getKey().equals(\"_context\") && entry.getValue() instanceof String) {\r\n\t\t\t\t\t\tString val = (String) entry.getValue();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tMatcher match = CodeQuery.P_METAVAR.matcher(val);\r\n\t\t\t\t\t\twhile (match.find()) {\r\n\t\t\t\t\t\t\t//already at parent, so remove one leading ../\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\tString metavar = match.group().substring(1);\r\n\t\t\t\t\t\t\tif (metavar.startsWith(\"../\")) { \r\n\t\t\t\t\t\t\t\tmetavar = metavar.substring(3);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//TODO: decide what to do about NULL_VALUE below\r\n\t\t\t\t\t\t\t\tString replaceVal = EcoreUtils.eGetSFValue(metavar, modelElem, null);\r\n\t\t\t\t\t\t\t\tif (replaceVal != null) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Replacing metavariable: \" + match.group() + \" with val: \" + replaceVal);\r\n\t\t\t\t\t\t\t\t\tentry.setValue(val.replaceAll(match.group(), replaceVal));\r\n\t\t\t\t\t\t\t\t}\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}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tObject fortranContextElem;\r\n\t\t\t\t\r\n\t\t\t\tif (keywordMap.containsKey(\"_context\")) {\r\n\t\t\t\t\t//explicit context provided\r\n\t\t\t\t\tString contextPath = (String) keywordMap.get(\"_context\");\r\n\t\t\t\t\tif (!contextPath.startsWith(\"#..\")) {\r\n\t\t\t\t\t\t//error\r\n\t\t\t\t\t\tSystem.out.println(\"Explicit context path must contain parent node\");\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (contextPath.startsWith(\"#../\")) {\r\n\t\t\t\t\t\tcontextPath = contextPath.substring(4);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (contextPath.startsWith(\"#..\")) {\r\n\t\t\t\t\t\tcontextPath = contextPath.substring(3);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tEObject explicitContextElem;\r\n\t\t\t\t\tif (contextPath.equals(\"\")) {\r\n\t\t\t\t\t\texplicitContextElem = modelElem;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\texplicitContextElem = EcoreUtils.eGetSFValue(contextPath, modelElem, null);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tfortranContextElem = mappings.get(explicitContextElem);\r\n\t\t\t\t\tif (fortranContextElem == null) {\r\n\t\t\t\t\t\tSystem.out.println(\"MAPPED fortran element not found: \" + explicitContextElem);\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t//implicit context\r\n\t\t\t\t\tfortranContextElem = fortranElem;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//find method that implements code query\r\n\t\t\t\tMethod method = null;\r\n\t\t\t\tfor (Method m : CodeQuery.class.getMethods()) {\r\n\t\t\t\t\tif (m.getName().equalsIgnoreCase(methodName)) {\r\n\t\t\t\t\t\tClass contextClass = m.getParameterTypes()[0];\r\n\t\t\t\t\t\tClass paramClass = m.getParameterTypes()[1];\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (contextClass.isInstance(fortranContextElem) &&\r\n\t\t\t\t\t\t\tparamClass.isInstance(keywordMap)) {\r\n\t\t\t\t\t\t\tmethod = m;\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}\r\n\t\t\t\t\r\n\t\t\t\tif (method == null) {\r\n\t\t\t\t\tSystem.out.println(\"Method not found: \" + methodName);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//System.out.println(\"Calling method: \" + methodName + \" with first param: \" + fortranElem.getClass());\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tObject result = method.invoke(null, fortranContextElem, keywordMap);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tif (method.getReturnType() == String.class ||\r\n\t\t\t\t\t\tmethod.getReturnType().isPrimitive()) {\r\n\t\t\t\t\t\tmodelElem.eSet(sf, result);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Token.class) {\r\n\t\t\t\t\t\tif (result != null) {\r\n\t\t\t\t\t\t\t//String constructor required because of IdentityHashMap\r\n\t\t\t\t\t\t\tString text = new String(((Token)result).getText());\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, text);\r\n\t\t\t\t\t\t\tmappingsToAdd.put(text, result);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t//what should we do here?\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Set.class ||\r\n\t\t\t\t\t\t\t method.getReturnType() == Map.class) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do we have a set of primitives?\r\n\t\t\t\t\t\tif (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEString())) {\r\n\t\t\t\t\t\t\tSet<String> resultSet = (Set<String>) result;\r\n\t\t\t\t\t\t\tfor (String res : resultSet) {\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(res);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, res);\r\n\t\t\t\t\t\t\t\t\tbreak; //just take first one\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}\r\n\t\t\t\t\t\t//result is a set of objects - either IASTNodes or IFortranASTs\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSet<Object> resultSet = null;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = ((Map) result).keySet();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<Object>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor (Object newFortranElem : resultSet) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\t\t\tEObject newModelElemRet = null;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//TODO: work on precedence between metavariables and explicit sub-mappings\r\n\t\t\t\t\t\t\t\t//populate attributes based on metavariables\r\n\t\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\t\tMap<String,String> metavariableMap = (Map<String,String>) ((Map) result).get(newFortranElem);\r\n\t\t\t\t\t\t\t\t\tfor (Entry<String,String> mve : metavariableMap.entrySet()) {\r\n\t\t\t\t\t\t\t\t\t\tString attribName = mve.getKey().substring(1);\r\n\t\t\t\t\t\t\t\t\t\tEStructuralFeature attribSF = newModelElem.eClass().getEStructuralFeature(attribName);\r\n\t\t\t\t\t\t\t\t\t\tif (attribSF != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Metavariable - setting feature: \" + attribName + \" to \" + mve.getValue());\r\n\t\t\t\t\t\t\t\t\t\t\tnewModelElem.eSet(attribSF, mve.getValue());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Metavariable - feature not found: \" + attribName);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// set up parent relationship for references (may be removed later)\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//recursive call\r\n\t\t\t\t\t\t\t\tnewModelElemRet = reverse(newFortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// if NULL returned, then remove model element from parent\r\n\t\t\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t//consider replacing with previous value\r\n\t\t\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (!sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tbreak; // take first one that is not null\r\n\t\t\t\t\t\t\t\t}\t\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\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} // end check for primitives vs. objects in results\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} // end if that checks for query string\r\n\t\t\telse {\r\n\t\t\t\t//this means there is no mapping defined - if it is an EReference, then we create \r\n\t\t\t\t//the target and its children determine whether the mapping holds\r\n\t\t\t\t//in other words, this is just an extra layer of abstraction defined by the user\r\n\t\t\t\t\r\n\t\t\t\tif (sf instanceof EReference) {\r\n\t\t\t\t\tif (((EReference) sf).isContainment()) {\r\n\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tEObject newModelElemRet = reverse(fortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t//consider replacing with previous value\r\n\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\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}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//at this point we have set the value of the structural feature\r\n\t\t\t//if is essential, but not present or false, the parent is no good\r\n\t\t\t\r\n\t\t\tif (Regex.getIsEssentialFromAnnotation(sf)) {\t\r\n\t\t\t\tboolean fail = false;\r\n\t\t\t\t\r\n\t\t\t\tif (modelElem.eGet(sf) == null) {\t\t\t\t\t\r\n\t\t\t\t\tfail = true;\r\n\t\t\t\t}\r\n\t\t\t\telse if (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEBoolean()) &&\r\n\t\t\t\t\t\t! (Boolean) modelElem.eGet(sf)) {\r\n\t\t\t\t\tfail = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (fail) {\r\n\t\t\t\t\tmappings.remove(modelElem);\r\n\t\t\t\t\t//an essential feature failed, so no need to process \r\n\t\t\t\t\t//any more structural features\r\n\t\t\t\t\treturn null;\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\t\r\n\t\t} // end for structural features\r\n\t\t\r\n\t\tmappings.putAll(mappingsToAdd);\r\n\r\n\t\treturn modelElem;\r\n\t}", "protected AssociationList reverseAssoc(LexBIGService lbsvc, LexBIGServiceConvenienceMethods lbscm, String scheme,\r\n CodingSchemeVersionOrTag csvt, Association assoc, AssociationList addTo,\r\n Map<String, EntityDescription> codeToEntityDescriptionMap) throws LBException {\r\n\r\n ConceptReference acRef = assoc.getAssociationReference();\r\n AssociatedConcept acFromRef = new AssociatedConcept();\r\n acFromRef.setCodingScheme(acRef.getCodingScheme());\r\n acFromRef.setConceptCode(acRef.getConceptCode());\r\n AssociationList acSources = new AssociationList();\r\n acFromRef.setIsNavigable(Boolean.TRUE);\r\n acFromRef.setSourceOf(acSources);\r\n\r\n // Use cached description if available (should be cached\r\n // for all but original root) ...\r\n if (codeToEntityDescriptionMap.containsKey(acRef.getConceptCode()))\r\n acFromRef.setEntityDescription(codeToEntityDescriptionMap.get(acRef.getConceptCode()));\r\n // Otherwise retrieve on demand ...\r\n else\r\n acFromRef.setEntityDescription(Constructors.createEntityDescription(getCodeDescription(lbsvc, scheme, csvt,\r\n acRef.getConceptCode())));\r\n\r\n AssociatedConceptList acl = assoc.getAssociatedConcepts();\r\n for (AssociatedConcept ac : acl.getAssociatedConcept()) {\r\n // Create reverse association (same non-directional name)\r\n Association rAssoc = new Association();\r\n rAssoc.setAssociationName(assoc.getAssociationName());\r\n\r\n // On reverse, old associated concept is new reference point.\r\n ConceptReference ref = new ConceptReference();\r\n ref.setCodingScheme(ac.getCodingScheme());\r\n ref.setConceptCode(ac.getConceptCode());\r\n rAssoc.setAssociationReference(ref);\r\n\r\n // And old reference is new associated concept.\r\n AssociatedConceptList rAcl = new AssociatedConceptList();\r\n rAcl.addAssociatedConcept(acFromRef);\r\n rAssoc.setAssociatedConcepts(rAcl);\r\n\r\n // Set reverse directional name, if available.\r\n String dirName = assoc.getDirectionalName();\r\n if (dirName != null)\r\n try {\r\n rAssoc.setDirectionalName(lbscm.isForwardName(scheme, csvt, dirName) ? lbscm\r\n .getAssociationReverseName(assoc.getAssociationName(), scheme, csvt) : lbscm\r\n .getAssociationReverseName(assoc.getAssociationName(), scheme, csvt));\r\n } catch (LBException e) {\r\n }\r\n\r\n // Save code desc for future reference when setting up\r\n // concept references in recursive calls ...\r\n codeToEntityDescriptionMap.put(ac.getConceptCode(), ac.getEntityDescription());\r\n\r\n AssociationList sourceOf = ac.getSourceOf();\r\n if (sourceOf != null)\r\n for (Association sourceAssoc : sourceOf.getAssociation()) {\r\n AssociationList pos = reverseAssoc(lbsvc, lbscm, scheme, csvt, sourceAssoc, addTo,\r\n codeToEntityDescriptionMap);\r\n pos.addAssociation(rAssoc);\r\n }\r\n else\r\n addTo.addAssociation(rAssoc);\r\n }\r\n return acSources;\r\n }", "void remap()\n\t\t{\n\t\t\tif(nextMap == null)\n\t\t\t\treturn;\n\t\t\tnextMap = newNodeMap(nextMap);\n\t\t\tfor(Node<T> node : nextMap.values())\n\t\t\t\tnode.remap();\n\t\t}", "@Override\n public boolean isReversible() {\n return true;\n }", "protected ForwardingMap() {}", "@Override\r\n public NavigableMap<K, V> descendingMap() {\n return null;\r\n }", "public void mapping() {\n\t\t\n\t}", "@Override\n\tpublic void preBacktrack() {\n\t\t\n\t}", "@Override\n public void backward() {\n }", "ReferenceContainer<E> remap(UnaryOperator<PropertySymbol> mapper);", "public void filterToBidirectionalLinks() {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) getRTComponent().rc; if (myrc == null) return;\n\n // Get the visible links, extract the direction, create the reverse direction -- if that exists, add those records to keepers\n Iterator<String> it = myrc.graphedgeref_to_link.keySet().iterator(); Set<Bundle> to_keep = new HashSet<Bundle>();\n while (it.hasNext()) {\n String graph_edge_ref = it.next(); String line_ref = myrc.graphedgeref_to_link.get(graph_edge_ref);\n int fm_i = digraph.linkRefFm(graph_edge_ref);\n int to_i = digraph.linkRefTo(graph_edge_ref);\n String other_dir = digraph.getLinkRef(to_i,fm_i);\n if (myrc.graphedgeref_to_link.containsKey(other_dir)) { to_keep.addAll(myrc.link_counter_context.getBundles(line_ref)); }\n }\n\n // Add the no mapping set and push it to the RTParent\n to_keep.addAll(getRTComponent().getNoMappingSet()); getRTParent().push(getRTParent().getRootBundles().subset(to_keep));\n }", "public static ConnectionMap backtrack(final ConnectionMap map, int index) {\r\n\t\t// Returns null if first variable has no possible values\r\n\t\tif (map.domains.get(0).size()==0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// If the possible values for the index are null step back\r\n\t\tif (map.domains.get(index).size()==0) {\r\n\t\t\t//System.out.println(\"BACKTRACK!\");\r\n\t\t\tArrayList<Integer> newRow = new ArrayList<Integer>();\r\n\t\t\tfor (int k = 0; k < map.numColors; k++) {\r\n\t\t\t\tnewRow.add(k);\r\n\t\t\t}\r\n\t\t\tmap.domains.set(index, newRow);\r\n\t\t\tmap.domains.get(index-1).remove(0);\r\n\t\t\tBacktrackSearch.backtrack(map, index-1);\r\n\t\t}\r\n\t\t// Loops through the possible values for the index\r\n\t\tfor (int j=index; j>=0; j--) {\r\n\t\t\tif(map.connections[index][j]==1 && map.domains.get(index).size()>0) {\r\n\t\t\t\tArrayList<Integer> neighbor = map.domains.get(j);\r\n\t\t\t\tif (neighbor.size() != 0) {\r\n\t\t\t\t\tmap.domains.get(index).remove(neighbor.get(0));\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// If the possible values for the index are null step back\r\n\t\t\tif (map.domains.get(index).size()==0) {\r\n\t\t\t\t//System.out.println(\"BACKTRACK!\");\r\n\t\t\t\tArrayList<Integer> newRow = new ArrayList<Integer>();\r\n\t\t\t\tfor (int k = 0; k < map.numColors; k++) {\r\n\t\t\t\t\tnewRow.add(k);\r\n\t\t\t\t}\r\n\t\t\t\tmap.domains.set(index, newRow);\r\n\t\t\t\tmap.domains.get(index-1).remove(0);\r\n\t\t\t\tBacktrackSearch.backtrack(map, index-1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// If the index is not the last index step forward\r\n\t\tif (index < map.domains.size()-1) {\r\n\t\t\tBacktrackSearch.backtrack(map, index+1);\r\n\t\t}\r\n\t\t// Returns null if first variable has no possible values\r\n\t\tif (map.domains.get(0).size()==0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// Removes end of colors\r\n\t\tfor(int i = 0; i < map.domains.size(); i++) {\r\n\t\t\tfor(int j = 1; j < map.domains.get(i).size(); j++) {\r\n\t\t\t\tmap.domains.get(i).remove(j);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Returns map\r\n\t\treturn map;\t\r\n\t}", "public void endPrefixMapping(String prefix) { }", "private void removeTwoStepForwardFromPositionCache(Key currentKey) {\n\n\t\t// Create a two square forward position\n\t\tKey newKey =createTwoStepForwardFromCurrentKey(currentKey);\n\n\t\t// Gets current values stored with key and adds the extra position\n\t\tSet<Key> currentKeyMapping = positionCache.get(currentKey);\n\n\t\t// Remove key if it exists\n\t\tif (currentKeyMapping.contains(newKey)) {\n\t\t\tcurrentKeyMapping.remove(newKey);\n\t\t}\n\n\t\tpositionCache.put(currentKey, currentKeyMapping);\n\t}", "@Test\n\tpublic void testFwdInfReasonerRewrites_Bug717() throws Exception {\n\t\timportProofSerializationProofs();\n\n\t\tfinal IPRRoot prFile = getProofRoot(\"exF\");\n\t\tfinal IPRProof proof = prFile.getProof(\"oldExF\");\n\n\t\t// a IllegalStateException is thrown when the bug is present:\n\t\tfinal IProofTree proofTree = proof.getProofTree(null);\n\n\t\t// ensure that the proof rule is deserialized:\n\t\tfinal IProofTreeNode root = proofTree.getRoot();\n\t\tassertFalse(root.isOpen());\n\t\tfinal IProofRule rule = root.getRule();\n\t\tassertEquals(SequentProver.PLUGIN_ID + \".exF\", rule.generatedBy().getReasonerID());\n\t\tassertEquals(3, rule.getAntecedents()[0].getHypActions().size());\n\t}", "public Reversal() {\n\t\tsuper();\n\t}", "@Override\r\n\tpublic boolean reverseAccrualIt() {\n\t\r\n\t\t\r\n\t\treturn false;\r\n\t}", "void reverseDirection();", "public void resetRelatesToList(MappingType mapping) {\n\t\tmapping.getRelatesTo().clear();\n\t}", "public void resetReversePoison() {\n\n Set<AS> prevAdvedTo = this.adjOutRib.get(this.asn * -1);\n\n if (prevAdvedTo != null) {\n for (AS pAS : prevAdvedTo) {\n pAS.withdrawPath(this, this.asn * -1);\n }\n }\n\n this.adjOutRib.remove(this.asn * -1);\n\n this.botSet = new HashSet<>();\n }", "private void logUnmappedError(String misrouteInfo)\n\t{\n\t\t//\toriginal.logDebug(misrouteInfo);\n\t}", "void flipPath(int lastNode) {\n int myLastNode = lastNode;\n while (myLastNode != EMPTY_LABEL) {\n int parent = this.tLabels[myLastNode];\n\n // Add (parent, lastNode) to matching. We don't need to\n // explicitly remove any edges from the matching because:\n // * We know at this point that there is no i such that\n // sMatches[i] = lastNode.\n // * Although there might be some j such that tMatches[j] =\n // parent, that j must be sLabels[parent], and will change\n // tMatches[j] in the next time through this loop.\n this.sMatches[parent] = lastNode;\n this.tMatches[myLastNode] = parent;\n\n myLastNode = this.sLabels[parent];\n }\n }", "@Override\n\tpublic boolean reverseAccrualIt() {\n\t\treturn false;\n\t}", "public void mo2476b() {\n Collections.reverse(mo2625k());\n }", "public void reverse() {\n/* 298 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "protected ForwardingMapEntry() {}", "@Test\n\tpublic void testAbstractManualRewrites_Bug717() throws Exception {\n\t\timportProofSerializationProofs();\n\n\t\tfinal IPRRoot prFile = getProofRoot(\"partitionRewrite\");\n\t\tfinal IPRProof proof = prFile.getProof(\"oldPartitionRewrite\");\n\n\t\t// a IllegalStateException is thrown when the bug is present:\n\t\tfinal IProofTree proofTree = proof.getProofTree(null);\n\n\t\t// ensure that the proof rule is deserialized:\n\t\tfinal IProofTreeNode root = proofTree.getRoot();\n\t\tassertFalse(root.isOpen());\n\t\tfinal IProofRule rule = root.getRule();\n\t\tassertEquals(SequentProver.PLUGIN_ID + \".partitionRewrites\", rule.generatedBy().getReasonerID());\n\t\tassertEquals(3, rule.getAntecedents()[0].getHypActions().size());\n\t}", "@Override\r\n\tpublic void goForward() {\n\t\t\r\n\t}", "private void findIternary(Map<String, String> dataSet) {\n\t\tMap<String, String> reverseMap = new HashMap<String, String>();\n\t\tfor (Map.Entry<String, String> entry : dataSet.entrySet())\n\t\t\treverseMap.put(entry.getValue(), entry.getKey());\n\t\tString start = null;\n\t\tfor (Map.Entry<String, String> entry : dataSet.entrySet()) {\n\t\t\tif (!reverseMap.containsKey(entry.getKey())) {\n\t\t\t\tstart = entry.getKey();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (start == null) {\n\t\t\tSystem.out.println(\"Invalid Input\");\n\t\t\treturn;\n\t\t}\n\t\tString to = dataSet.get(start);\n\t\twhile (to != null)\n\n\t\t{\n\t\t\tSystem.out.print(start + \"->\" + to + \",\");\n\t\t\tstart = to;\n\t\t\tto = dataSet.get(to);\n\t\t}\n\n\t}", "private void reverseLookupC_Location_ID() throws Exception\r\n\t{\r\n\t\tStringBuilder sql = new StringBuilder();\r\n\t\tString msg = new String();\r\n\t\tint no = 0;\r\n\r\n\t\t//Reverse Loog up C_Location_ID From JP_Location_Label\r\n\t\tmsg = Msg.getMsg(getCtx(), \"Matching\") + \" : \" + Msg.getElement(getCtx(), \"C_Location_ID\")\r\n\t\t+ \" - \" + Msg.getMsg(getCtx(), \"MatchFrom\") + \" : \" + Msg.getElement(getCtx(), \"JP_Location_Label\") ;\r\n\t\tsql = new StringBuilder (\"UPDATE I_LocationJP i \")\r\n\t\t\t\t.append(\"SET C_Location_ID=(SELECT C_Location_ID FROM C_Location p\")\r\n\t\t\t\t.append(\" WHERE i.JP_Location_Label= p.JP_Location_Label AND p.AD_Client_ID=i.AD_Client_ID) \")\r\n\t\t\t\t.append(\" WHERE i.C_Location_ID IS NULL AND JP_Location_Label IS NOT NULL\")\r\n\t\t\t\t.append(\" AND i.I_IsImported='N'\").append(getWhereClause());\r\n\t\ttry {\r\n\t\t\tno = DB.executeUpdateEx(sql.toString(), get_TrxName());\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.fine(msg +\"=\" + no + \":\" + sql);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + sql );\r\n\t\t}\r\n\r\n\t}", "private void removeNoMoreExistingOriginalEdges() {\n for (MirrorEdge mirrorEdge : directEdgeMap.values()) {\n if (!originalGraph.has(mirrorEdge.original)) {\n for (Edge segment : mirrorEdge.segments) {\n mirrorGraph.forcedRemove(segment);\n reverseEdgeMap.remove(segment);\n }\n for (Node bend : mirrorEdge.bends) {\n mirrorGraph.forcedRemove(bend);\n reverseEdgeMap.remove(bend);\n }\n directEdgeMap.remove(mirrorEdge.original);\n }\n }\n }", "private void updateOriginalEdgesInMirror() {\n for (Edge edge : originalGraph.edges()) {\n if (!directEdgeMap.containsKey(edge)) {\n constructMirrorEdge(edge);\n }\n MirrorEdge mirrorEdge = directEdgeMap.get(edge);\n updateMirrorEdgeBends(edge, mirrorEdge);\n updateMirrorEdgeSegments(mirrorEdge);\n originalAttributesToMirror(edge);\n }\n }", "public void resetTransforms() { \r\n transforms2 = new HashMap<BundlesDT.DT,Map<String,Map<String,String>>>(); \r\n transforms2.put(BundlesDT.DT.IPv4, new HashMap<String,Map<String,String>>());\r\n transforms2.put(BundlesDT.DT.IPv4CIDR, new HashMap<String,Map<String,String>>());\r\n if (transforms.containsKey(BundlesDT.DT.IPv4)) {\r\n Iterator<String> it = transforms.get(BundlesDT.DT.IPv4).keySet().iterator();\r\n while (it.hasNext()) transforms2.get(BundlesDT.DT.IPv4).put(it.next(), new HashMap<String,String>());\r\n }\r\n if (transforms.containsKey(BundlesDT.DT.IPv4CIDR)) {\r\n sorted_cidr_trans = new HashMap<String,CIDRRec[]>();\r\n Iterator<String> it = transforms.get(BundlesDT.DT.IPv4CIDR).keySet().iterator();\r\n while (it.hasNext()) {\r\n String trans = it.next();\r\n transforms2.get(BundlesDT.DT.IPv4).put(trans, new HashMap<String,String>());\r\n transforms2.get(BundlesDT.DT.IPv4CIDR).put(trans, new HashMap<String,String>());\r\n\tCIDRRec recs[] = new CIDRRec[transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).keySet().size()];\r\n\tIterator<String> it_cidr = transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).keySet().iterator();\r\n\tfor (int i=0;i<recs.length;i++) {\r\n\t String cidr = it_cidr.next();\r\n\t recs[i] = new CIDRRec(cidr,transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).get(cidr));\r\n }\r\n\tArrays.sort(recs);\r\n\tsorted_cidr_trans.put(trans,recs);\r\n }\r\n }\r\n }", "@Override\n\tpublic State eStateAbsMapping(State state, QNode qNode) {\n\t\treturn null;\n\t}", "@Override\n public void reloadCachedMappings() {\n }", "@Override\n public void reloadCachedMappings() {\n }", "@Override\n public void retrack() {\n }", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "@Override\r\n\tpublic void onReCalculateRouteForYaw() {\n\r\n\t}", "public void testUnfoldingWithNoSuccessfulResolutions() {\n\t\t\n\t\tDatalogProgram queryProgram = fac.getDatalogProgram();\n\t\tFunction a = fac.getFunction(fac.getClassPredicate(\"A\"), fac.getVariable(\"x\"));\n\t\tFunction R = fac.getFunction(fac.getObjectPropertyPredicate(\"R\"), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\tFunction lj = fac.getSPARQLLeftJoin(a, R);\n\t\tFunction head = fac.getFunction(fac.getPredicate(\"q\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\tCQIE query = fac.getCQIE(head, lj);\n\t\tqueryProgram.appendRule(query);\n\n\t\t// Mapping program\n\t\tDatalogProgram p = fac.getDatalogProgram();\n\t\t// A rule 1 A(uri(x)) :- T1(x,y)\n\t\tFunction body = fac.getFunction(fac.getPredicate(\"T1\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\thead = fac.getFunction(fac.getPredicate(\"A\", 1), fac.getFunction(fac.getPredicate(\"uri\", 1), fac.getVariable(\"x\")));\n\t\tCQIE rule1 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule1);\n\n\t\t// A rule 2 R(f(x),y) :- T2(x,y)\n\t\tbody = fac.getFunction(fac.getPredicate(\"T2\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"f\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\tCQIE rule2 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule2);\n\n\t\t// A rule 3 R(g(x),y) :- T3(x,y)\n\t\t\n\t\tbody = fac.getFunction(fac.getPredicate(\"T3\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"g\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\tCQIE rule3 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule3);\n\n\t\tDatalogUnfolder unfolder = new DatalogUnfolder(p.getRules());\n\t\tDatalogProgram result = unfolder.unfold(queryProgram, \"q\");\n\n\t\t// Only one rule should be returned where y is null\n\t\tSystem.out.println(result);\n\t\tassertEquals(1, result.getRules().size());\n\t\tassertTrue(result.getRules().toString().contains(\"null\"));\n\t\tassertTrue(result.getRules().toString().contains(\"T1(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"A(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"R(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\tassertTrue(result.getRules().get(0).getBody().size() == 1);\n\t}", "private Map<Integer, Set<Integer>> computeInverseTransitionRelation(LabelledTransitionSystem ret) {\n\n\t\tMap<Integer, Set<Integer>> reverseTransitionMap = new HashMap<>();\n\t\tLTSTransitionList[] transitions = ret.getStates();\n\n\t\tfor (int stateIndex = 0; stateIndex < transitions.length; stateIndex++) {\n\t\t\treverseTransitionMap.put(stateIndex, new HashSet<>());\n\t\t}\n\n\t\tfor (int stateIndex = 0; stateIndex < transitions.length; stateIndex++) {\n\n\t\t\tLTSTransitionList transition = transitions[stateIndex];\n\t\t\tthis.updateIndexes(stateIndex, transition, reverseTransitionMap);\n\t\t}\n\n\t\treturn reverseTransitionMap;\n\t}", "public interface USLActionBanHistoryMapping extends ObjectMapping<USLActionBanHistory> {\n\t/**\n\t * Fetch all of the maps where it has the given usl action id.\n\t * \n\t * @param uslActionId the id of the USLAction\n\t * @return the mapping to the bans for that action\n\t */\n\tpublic List<USLActionBanHistory> fetchByUSLActionID(int uslActionId);\n\t\n\t/**\n\t * Fetch all of the maps where we have the given ban history.\n\t * \n\t * @param banHistoryId the id of the ban history\n\t * @return the mapping to the actions for that ban history\n\t */\n\tpublic List<USLActionBanHistory> fetchByBanHistoryID(int banHistoryId);\n\t\n\t/**\n\t * Determines if this mapping contains the given relationship\n\t * \n\t * @param uslActionId the action\n\t * @param banHistoryId the ban history\n\t * @return if that relationship is in the database\n\t */\n\tpublic boolean contains(int uslActionId, int banHistoryId);\n\t\n\t/**\n\t * Delete the row with the specified columns\n\t * @param uslActionId the id of the action\n\t * @param banHistoryId the id of the ban history\n\t */\n\tpublic void delete(int uslActionId, int banHistoryId);\n\t\n}", "private static void parseRelations(){\n\t\tString[] number = relationReader.nextLine().trim().split(\"\\\\s++\");\n\t\tint numOfCoarse = Integer.parseInt(number[0]);\n\t\tint numOfAccurate = Integer.parseInt(number[1]);\n\t\t\n\t\tfor(int i=0; i<numOfCoarse; i++){\n\t\t\tString[] pair = relationReader.nextLine().trim().split(\"\\\\s++\");\n\t\t\tmap.put(Integer.parseInt(pair[0]), pair[1]);\n\t\t}\n\t\t\n\t\tfor(int i=0; i<numOfAccurate; i++){\n\t\t\tString[] pair = relationReader.nextLine().trim().split(\"\\\\s++\");\n//\t\t\tSystem.err.println(pair[0]);\n\t\t\tif(pair[1].equalsIgnoreCase(\"ROOT\"))\n\t\t\t\ttransform.put(pair[0], pair[1]);\n\t\t\telse\n\t\t\t\ttransform.put(pair[0], map.get(Integer.parseInt(pair[1])));\n\t\t}\n\t\t\n//\t\tSystem.err.println(map.size());\n//\t\tSystem.err.println(transform.size());\n\t\t\n\t\treturn;\n\t}", "private void flipnav(int[] nav) {\r\n\r\n // first word is always the satellite id in ASCII\r\n // check on which type:\r\n\r\n if (nav[0] == AREAnav.GVAR) {\r\n\r\n McIDASUtil.flip(nav,2,126);\r\n McIDASUtil.flip(nav,129,254);\r\n McIDASUtil.flip(nav,257,382);\r\n McIDASUtil.flip(nav,385,510);\r\n McIDASUtil.flip(nav,513,638);\r\n }\r\n\r\n else if (nav[0] == AREAnav.DMSP) {\r\n McIDASUtil.flip(nav,1,43);\r\n McIDASUtil.flip(nav,45,51);\r\n }\r\n\r\n else if (nav[0] == AREAnav.POES) {\r\n McIDASUtil.flip(nav,1,119);\r\n }\r\n\r\n else {\r\n McIDASUtil.flip(nav,1,nav.length-1);\r\n }\r\n\r\n return;\r\n }", "private void f(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 1;\n r2 = F;\n r7.y = r8;\n r0 = r7.m;\n r0 = r0.entrySet();\n r3 = r0.iterator();\n L_0x000f:\n r0 = r3.hasNext();\n if (r0 == 0) goto L_0x004a;\n L_0x0015:\n r0 = r3.next();\n r0 = (java.util.Map.Entry) r0;\n r1 = r0.getValue();\n r1 = (java.util.List) r1;\n r4 = r1.size();\t Catch:{ RuntimeException -> 0x0077 }\n if (r4 != r6) goto L_0x0043;\n L_0x0027:\n r4 = J;\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 28;\n r4 = r4[r5];\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 0;\n r5 = r1.get(r5);\t Catch:{ RuntimeException -> 0x0079 }\n r4 = r4.equals(r5);\t Catch:{ RuntimeException -> 0x0079 }\n if (r4 == 0) goto L_0x0043;\n L_0x0038:\n r4 = r7.e;\t Catch:{ RuntimeException -> 0x007b }\n r0 = r0.getKey();\t Catch:{ RuntimeException -> 0x007b }\n r4.add(r0);\t Catch:{ RuntimeException -> 0x007b }\n if (r2 == 0) goto L_0x0048;\n L_0x0043:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007b }\n r0.addAll(r1);\t Catch:{ RuntimeException -> 0x007b }\n L_0x0048:\n if (r2 == 0) goto L_0x000f;\n L_0x004a:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007d }\n r1 = J;\t Catch:{ RuntimeException -> 0x007d }\n r2 = 29;\n r1 = r1[r2];\t Catch:{ RuntimeException -> 0x007d }\n r0 = r0.remove(r1);\t Catch:{ RuntimeException -> 0x007d }\n if (r0 == 0) goto L_0x0065;\n L_0x0058:\n r0 = B;\t Catch:{ RuntimeException -> 0x007d }\n r1 = java.util.logging.Level.WARNING;\t Catch:{ RuntimeException -> 0x007d }\n r2 = J;\t Catch:{ RuntimeException -> 0x007d }\n r3 = 30;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x007d }\n r0.log(r1, r2);\t Catch:{ RuntimeException -> 0x007d }\n L_0x0065:\n r1 = r7.G;\n r0 = r7.m;\n r2 = java.lang.Integer.valueOf(r6);\n r0 = r0.get(r2);\n r0 = (java.util.Collection) r0;\n r1.addAll(r0);\n return;\n L_0x0077:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0079 }\n L_0x0079:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x007b }\n L_0x007b:\n r0 = move-exception;\n throw r0;\n L_0x007d:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.f(java.lang.String):void\");\n }", "public void backUp(){\n backSolenoid.set(DoubleSolenoid.Value.kForward);\n }", "@Override\n\tpublic State qStateAbsMapping(State state, QNode qNode) {\n\t\treturn null;\n\t}", "public void testUnfoldingWithOneSuccessfulResolutions() {\n\t\t\t\n\t\t\tDatalogProgram queryProgram = fac.getDatalogProgram();\n\t\t\tFunction a = fac.getFunction(fac.getClassPredicate(\"A\"), fac.getVariable(\"x\"));\n\t\t\tFunction R = fac.getFunction(fac.getObjectPropertyPredicate(\"R\"), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\tFunction lj = fac.getSPARQLLeftJoin(a, R);\n\t\t\tFunction head = fac.getFunction(fac.getPredicate(\"q\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\tCQIE query = fac.getCQIE(head, lj);\n\t\t\tqueryProgram.appendRule(query);\n\n\t\t\t// Mapping program\n\t\t\tDatalogProgram p = fac.getDatalogProgram();\n\t\t\t// A rule 1 A(uri(x)) :- T1(x,y)\n\t\t\tFunction body = fac.getFunction(fac.getPredicate(\"T1\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\thead = fac.getFunction(fac.getPredicate(\"A\", 1), fac.getFunction(fac.getPredicate(\"uri\", 1), fac.getVariable(\"x\")));\n\t\t\tCQIE rule1 = fac.getCQIE(head, body);\n\t\t\tp.appendRule(rule1);\n\n\t\t\t// A rule 2 R(f(x),y) :- T2(x,y)\n\t\t\tbody = fac.getFunction(fac.getPredicate(\"T2\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"f\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\t\tCQIE rule2 = fac.getCQIE(head, body);\n\t\t\tp.appendRule(rule2);\n\n\t\t\t// A rule 3 R(uri(x),y) :- T3(x,y)\n\t\t\t\n\t\t\tbody = fac.getFunction(fac.getPredicate(\"T3\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"uri\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\t\tCQIE rule3 = fac.getCQIE(head, body);\n\t\t\tp.appendRule(rule3);\n\n\t\t\tDatalogUnfolder unfolder = new DatalogUnfolder(p.getRules());\n\t\t\tDatalogProgram result = unfolder.unfold(queryProgram, \"q\");\n\n\t\t\t// Only one rule should be returned where y is null\n\t\t\tSystem.out.println(result);\n\t\t\tassertEquals(1, result.getRules().size());\n\t\t\tassertTrue(result.getRules().toString().contains(\"T1(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"T3(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"uri(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\t\t\n\t\t\tassertFalse(result.getRules().toString().contains(\"A(\"));\n\t\t\tassertFalse(result.getRules().toString().contains(\"R(\"));\n\t\t\tassertFalse(result.getRules().toString().contains(\"T2(\"));\n\t\t\t\n\t\t\tassertFalse(result.getRules().toString().contains(\"null\"));\n\t\t\tassertTrue(result.getRules().get(0).getBody().size() == 1);\n\t\t\n\t}", "public List<String> restoreIpAddressesBacktrack1(String s) {\n List<String> res = new ArrayList<>();\n if (s == null || s.length() < 4 || s.length() > 12) return res;\n List<String> aList = new ArrayList<>();\n StringBuilder current = new StringBuilder();\n backTrack(res, s, aList, current, 0);\n return res;\n }", "public void startReverse() {\n startHelper(f_startDirection.getOppositeDirection(), \"startReverse()\");\n }", "void reverse();", "void reverse();", "public Graphe reverse()\t{\r\n \tfor(Liaison route : this.routes)\r\n \t\tif(route.isSensUnique())\r\n \t\t\troute.reverse();\t//TODO check si reverse marche bien\r\n \treturn this;\r\n }", "@Override\n\tpublic void onReCalculateRouteForYaw() {\n\n\t}", "@Override\n\tpublic void rewind() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(reverse(\"foo\"));\n\t\tSystem.out.println(reverse(\"student\"));\n\t\t\n\t}", "void onRemap(String id);", "@SuppressWarnings(\"unchecked\") // Needed to stop Eclipse whining\n private void resetWithHole() {\n Entry<K, V>[] entries = new Entry[] {a, c};\n super.resetMap(entries);\n navigableMap = (NavigableMap<K, V>) getMap();\n }", "private Iterable<V> reconstructPath(V last, V from, HashMap<V, V> previous){\n LinkedList<V> ret = new LinkedList<>();\n ret.addFirst(last);\n while (!last.equals(from)){\n V prev = previous.get(last);\n ret.addFirst(prev);\n last = prev;\n }\n return ret;\n }", "@Override\n\tpublic boolean reverseCorrectIt() {\n\t\treturn false;\n\t}", "void FlipBook()\r\n\t\t{\r\n\t\t\t Collections.reverse(this);\r\n\t\t}", "protected void sequence_BACKWARD(ISerializationContext context, BACKWARD semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_YIMPL__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_YIMPL__NAME));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_YIMPL__DISTANCE_CST) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_YIMPL__DISTANCE_CST));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_YIMPL__TEMPS_CST) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_YIMPL__TEMPS_CST));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getBACKWARDAccess().getNameBackwardKeyword_0_0(), semanticObject.getName());\n\t\tfeeder.accept(grammarAccess.getBACKWARDAccess().getDistanceCSTINTTerminalRuleCall_4_0(), semanticObject.getDistanceCST());\n\t\tfeeder.accept(grammarAccess.getBACKWARDAccess().getTempsCSTINTTerminalRuleCall_7_0(), semanticObject.getTempsCST());\n\t\tfeeder.finish();\n\t}", "@Override\n public boolean noLastMapVersion() {\n // non implementato\n return false;\n }", "public ONDEXGraph runMapping(AbstractONDEXPluginInit map, ONDEXGraph graphInput) throws Exception {\n ONDEXIterator<ONDEXRelation> rit = graphInput.getRelations();\n if (rit == null) return graphInput;\n long relationsPre = rit.size();\n rit.close();\n MappingArguments ma = (MappingArguments) map.getArguments();\n if (ma == null) ma = new MappingArguments();\n LuceneEnv lenv = null;\n if (map.getPlugin().requiresIndexedGraph()) {\n lenv = getIndex(graphInput, map.getPlugin().getName());\n }\n String name = map.getPlugin().getName();\n AbstractONDEXMapping mapping = (AbstractONDEXMapping) map.getPlugin();\n mapping.addMappingListener(pluginLogger);\n mapping.setArguments(ma);\n long start = System.currentTimeMillis();\n mapping.setONDEXGraph(graphInput);\n mapping.start();\n fireEventOccurred(new GeneralOutputEvent(name + \" took \" + (System.currentTimeMillis() - start) + \" msec.\", getCurrentMethodName()));\n rit = graphInput.getRelations();\n long relationsPost = rit.size() - relationsPre;\n fireEventOccurred(new GeneralOutputEvent(\"New Relations: \" + relationsPost, getCurrentMethodName()));\n rit.close();\n rit = null;\n removeIndex(graphInput, lenv);\n System.runFinalization();\n System.gc();\n if (penv != null) penv.commit();\n return graphInput;\n }", "public void reverseDi() {\n int hi = size - 1;\n int lo = 0;\n\n while (lo < hi) {\n Node left = getNodeAt(lo);\n Node right = getNodeAt(hi);\n\n Object temp = left.data;\n left.data = right.data;\n right.data = temp;\n\n lo++;\n hi--;\n }\n }", "public String reverseLink(String str) {\n int pip = str.indexOf(BundlesDT.DELIM, str.indexOf(BundlesDT.DELIM)+1);\n\treturn str.substring(pip+1,str.length()) + BundlesDT.DELIM + str.substring(0,pip);\n }", "static URITranslator map(URI source, URI target) {\n return original -> Objects.equals(source, original) ? target : original;\n }", "public boolean isReversible() {\n\t\treturn false;\r\n\t}", "private SymbolTable<String, SymbolData> transform(SymbolTable<String, SymbolData> symbolTable) throws Exception {\n for (String name : graph.reverseTopologicalSort()) {\n //log.debug(name);\n SymbolData symbolData = symbolTable.get(name);\n String json = symbolData.getJson();\n //log.debug(json);\n while(true) {\n Optional<Position> position = referenceDetector.detectFirstReference(json);\n //log.debug(json + position.isPresent());\n if(!position.isPresent()) break;\n Position pos = position.get();\n String jsonTobeReplaced = symbolTable.get(pos.getReferenceName().substring(1)).getJson();\n //log.debug(jsonTobeReplaced);\n json = json.substring(0, pos.getFrom())+jsonTobeReplaced+json.substring(pos.getTo());\n }\n log.debug(json);\n symbolData.setJson(json);\n }\n\n return symbolTable;\n }", "public static void reorder(Automaton automaton, int[] mapping) {\n\t\t// now remap all the vertices according to giving binding\n\t\tState[] states = new State[automaton.nStates()];\n\t\tfor (int i = 0; i != states.length; ++i) {\n\t\t\tAutomaton.State state = automaton.get(i);\n\t\t\tstate.remap(mapping);\n\t\t\tstates[mapping[i]] = state;\n\t\t}\n\t\tfor (int i = 0; i != states.length; ++i) {\n\t\t\tautomaton.set(i, states[i]);\n\t\t}\n\n\t\tfor (int i = 0; i != automaton.nRoots(); ++i) {\n\t\t\tint root = automaton.getRoot(i);\n\t\t\tif (root >= 0) {\n\t\t\t\tautomaton.setRoot(i, mapping[root]);\n\t\t\t}\n\t\t}\n\t}", "protected void reversePath() {\n\t\t\n\t\tif(_reverse) {\n\t\t\t\n\t\t\tif(_nextMove + 1 > movingPattern.size() - 1)\n\t\t\t\t_nextMove = 0;\n\t\t\telse\n\t\t\t\t_nextMove++;\n\t\t\t\n\t\t\t_reverse = false;\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\tif(_nextMove - 1 < 0)\n\t\t\t\t_nextMove = movingPattern.size() - 1;\n\t\t\telse\n\t\t\t\t_nextMove--;\n\t\t\t\n\t\t\t_reverse = true;\n\t\t}\n\t}", "public void backward()\n\t{\n\t\tupdateState( MotorPort.BACKWARD);\n\t}", "@Override\n public boolean shouldContinueSwitchedRootFound() {\n return false;\n }", "@Test\n public void shouldPredictByRotatingPreviousMoveInReverseDirection() {\n ReverseRotationStrategy strategy = new ReverseRotationStrategy();\n\n strategy.addHistory(Shape.ROCK, Shape.PAPER);\n assertTrue(Arrays.equals(strategy.getNextMoves(), Shape.ROCK.defeatedBy()));\n\n strategy.addHistory(Shape.ROCK, Shape.ROCK);\n assertTrue(Arrays.equals(strategy.getNextMoves(), Shape.SPOCK.defeatedBy()));\n }", "private Queue<Position> toQueue(Map<Position, Position> preceedes, Position from, Position to) {\n\t\tStack<Position> reversePath = new Stack<Position>();\n\t\tPosition current = from;\n\t\tdo {\n\t\t\treversePath.add(current);\n\t\t\tcurrent = preceedes.get(current);\n\t\t} while (!current.equals(to));\n\t\t\n\t\tQueue<Position> path = new LinkedList<Position>();\n\t\twhile (!reversePath.empty()) {\n\t\t\tpath.add(reversePath.pop());\n\t\t}\n\t\treturn path;\n\t}", "private void makeInverse() {\n if (_map != null) {\n for (Map.Entry<Integer, Integer> e : _map.entrySet()) {\n _inverse.put(e.getValue(), e.getKey());\n }\n }\n }", "public IDnaStrand reverse();", "private String replaceIntermediateObjectWithRel(Context context, String strOldRelId ,String strNewRelId ,String strNewRelIdSide,Map attributeMap) throws Exception {\r\n\r\n\t\tString strNewConnId=\"\";\r\n\t\tboolean isRelToRel = true;\r\n\t\tboolean isFrom = true;\r\n\r\n\t\ttry{\r\n\r\n\t\tDomainRelationship domRel = new DomainRelationship(strOldRelId);\r\n //Get the attributes on Relationship\r\n /*Map attributeMap = new HashMap();\r\n attributeMap = domRel.getAttributeMap(context,true);*/\r\n\r\n\r\n\t\t//Get the \"Type\" of rel\r\n\t\tStringList slRelSelects = new StringList(1);\r\n slRelSelects.addElement(DomainRelationship.SELECT_TYPE);\r\n\r\n if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"from\")){\r\n \t//New Rel replaces FL/GBOM which is on \"from\" side of Old Rel hence we query now \"to\" side of Old Rel\r\n \tslRelSelects.add(\"to.id\");\r\n slRelSelects.add(\"torel.id\");\r\n\r\n }else if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"to\")){\r\n \t//New Rel replaces FL/GBOM which is on \"to\" side of Old Rel hence we query now \"from\" side of Old Rel\r\n \tslRelSelects.add(\"from.id\");\r\n slRelSelects.add(\"fromrel.id\");\r\n }\r\n\r\n Hashtable htRelData = domRel.getRelationshipData(context,slRelSelects);\r\n\r\n String strFromSideOfRel =\"\";\r\n String strToSideOfRel =\"\";\r\n String strRelId =\"\";\r\n String strObjId =\"\";\r\n\r\n StringList slRelTypes = (StringList) htRelData.get(DomainRelationship.SELECT_TYPE);\r\n String strRelType = (String) slRelTypes.get(0);\r\n RelationshipType RelType = new RelationshipType(strRelType);\r\n\r\n\r\n if((StringList) htRelData.get(\"from.id\")!=null || ((StringList)htRelData.get(\"fromrel.id\"))!=null ){\r\n\r\n \tStringList slFromSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"from.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"from.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\t//isFrom = false;\r\n \t\tstrObjId = strFromSideOfRel;\r\n\r\n\r\n \t}else if(!((StringList)htRelData.get(\"fromrel.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"fromrel.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tstrRelId = strFromSideOfRel;\r\n \t\tisFrom = false;\r\n \t}\r\n }\r\n\r\n if((StringList) htRelData.get(\"to.id\")!=null || ((StringList)htRelData.get(\"torel.id\"))!=null ){\r\n\r\n \tStringList slToSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"to.id\")).isEmpty()){\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"to.id\");\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\tstrObjId = strToSideOfRel;\r\n \t\tisFrom = false;\r\n \t}else if(!((StringList)htRelData.get(\"torel.id\")).isEmpty()){\r\n\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"torel.id\");\r\n\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n \t\tstrRelId =strToSideOfRel;\r\n \t\t//isFrom = false;\r\n \t}\r\n }\r\n\r\n\r\n if(isRelToRel){\r\n\r\n strNewConnId = connectRelationship(context, RelType, strRelId,strNewRelId, isFrom);\r\n\r\n }else{\r\n\r\n \tstrNewConnId = connectObject(context, RelType, strObjId,strNewRelId, isFrom);\r\n }\r\n\r\n\t\t\t StringList relDataSelects = new StringList();\r\n\t\t\t relDataSelects.addElement(\"frommid.id\");\r\n\t\t\t relDataSelects.addElement(\"tomid.id\");\r\n\r\n\t\t\t Map gbomRelData = domRel.getRelationshipData(context,relDataSelects);\r\n\t\t\t StringList sLFrommid = new StringList();\r\n\t\t\t StringList sLTomid = new StringList();\r\n\r\n\t\t\t sLFrommid = (StringList) gbomRelData.get(\"frommid.id\");\r\n\t\t\t if(!sLFrommid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLFrommid.size();i++){\r\n\r\n\t\t\t\t\tString strFromMid = (String)sLFrommid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strFromMid,strNewConnId,true);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\r\n\t\t\t sLTomid = (StringList) gbomRelData.get(\"tomid.id\");\r\n\t\t\t if(!sLTomid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLTomid.size();i++){\r\n\r\n\t\t\t\t\tString strToMid = (String)sLTomid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strToMid,strNewConnId,false);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\tDomainRelationship domNewConnId = new DomainRelationship(strNewConnId);\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewConnId +\"\\n\");\r\n\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this rel id :: \"+ attributeMap +\"\\n\\n\");\r\n\t domNewConnId.setAttributeValues(context, attributeMap);\r\n\r\n\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn strNewConnId;\r\n\t}", "public Hashtable getRemappedValues() throws Exception;", "public void unsetDirectForward()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DIRECTFORWARD$14, 0);\n }\n }", "private void reverse(ListNode startNode, ListNode endNode) {\n endNode.next = null;\n ListNode pre = startNode, cur = startNode.next, newEnd = pre;\n while (cur != null) {\n ListNode nextNode = cur.next;\n cur.next = pre;\n pre = cur;\n cur = nextNode;\n }\n }", "void reconstruct(HashMap<Integer, Vertex> h, Vertex next) {\n while (h.containsKey(next.toIdentifier())) {\n next.path = true;\n next = h.get(next.toIdentifier());\n }\n }", "void reconstruct(HashMap<Integer, Vertex> h, Vertex next) {\n while (h.containsKey(next.toIdentifier())) {\n next.path = true;\n next = h.get(next.toIdentifier());\n }\n }", "public void _reverse() {\n\n var prev = first;\n var current = first.next;\n last = first;\n last.next = null;\n while (current != null) {\n var next = current.next;\n current.next = prev;\n prev = current;\n current = next;\n\n }\n first = prev;\n\n }", "public void testSubgraphsDontPolluteDefaultPrefix() \n {\n String imported = \"http://imported#\", local = \"http://local#\";\n g1.getPrefixMapping().setNsPrefix( \"\", imported );\n poly.getPrefixMapping().setNsPrefix( \"\", local );\n assertEquals( null, poly.getPrefixMapping().getNsURIPrefix( imported ) );\n }", "@SuppressWarnings(\"unused\")\n private void transformLateralShift() {\n if (steps.size() < 3) {\n return;\n }\n final int index = steps.size() - 3;\n final MoveStep step1 = getStep(index);\n final MoveStep step2 = getStep(index + 1);\n final MoveStep step3 = getStep(index + 2);\n\n if (step1.oppositeTurn(step3)\n && ((step2.getType() == MovePath.MoveStepType.BACKWARDS) || (step2.getType() == MovePath.MoveStepType.FORWARDS))) {\n final MoveStepType stepType = step1.getType();\n final MoveStepType direction = step2.getType();\n // remove all old steps\n steps.removeElementAt(index);\n steps.removeElementAt(index);\n steps.removeElementAt(index);\n // add new step\n final MoveStep shift = new MoveStep(this, lateralShiftForTurn(stepType, direction));\n addStep(shift);\n }\n }", "abstract protected void revert();", "@Override\r\n\tpublic void onReCalculateRouteForTrafficJam() {\n\r\n\t}", "private void setUrlPrefixMappingToMap(String[] prefixArr)\n\t{\n\t\tif( prefixArr != null )\n\t\t{\n\t\t\tfor(String urlPrefix : prefixArr)\n \t{ \n\t\t\t\tif(urlPrefix.contains(DELIMITER))\n\t\t\t\t{\n\t \t\tString[] keyVal = urlPrefix.split(\"::\");\n\t \t\tString key \t\t= keyVal[0];\n\t \t\tString value \t= keyVal[1].trim();\n\t \t\tlog.info(\"REST SERVICE Key------->>> \"+key);\n\t \t\tlog.info(\"REST SERVICE Value------->>> \"+value);\n\t \t\tappurlMap.put(key , value);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlog.warn(\"NO DELEMETERS PROVIDED FOR REDIRECT SERVICE URL -------->>> \");\n\t\t\t\t}\n \t}\n\t\t}\n\t}", "public final void rewind() {\n branch = 0;\n }", "void restore(V patternVertex, V targetVertex) {\n\t\tpatternState.removeAllPreds(patternVertex);\n\t\tpatternState.removeAllSuccs(patternVertex);\n\t\tpatternState.sol.remove(patternVertex);\n\t\t\n\t\ttargetState.removeAllPreds(targetVertex);\n\t\ttargetState.removeAllSuccs(targetVertex);\n\t\ttargetState.sol.remove(targetVertex);\n\t\t\n\t\tpartialMapping.remove(patternVertex);\n\t}", "public Output<TInt64> remapping() {\n return remapping;\n }", "public void setReRouting() {\r\n\t\tthis.reRouting = true;\r\n\t}", "public void relinkLR()\n {\n this.L.R = this.R.L = this;\n }", "@Override\n\tpublic void onReCalculateRouteForTrafficJam() {\n\n\t}", "@Internal\n\tpublic static <T> Map<String, State<T>> migrateGraph(State<T> oldStartState) {\n\t\tState<T> oldFirst = oldStartState;\n\t\tState<T> oldSecond = oldStartState.getStateTransitions().iterator().next().getTargetState();\n\n\t\tStateTransition<T> oldFirstToSecondTake = Iterators.find(\n\t\t\toldFirst.getStateTransitions().iterator(),\n\t\t\tnew Predicate<StateTransition<T>>() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean apply(@Nullable StateTransition<T> input) {\n\t\t\t\t\treturn input != null && input.getAction() == StateTransitionAction.TAKE;\n\t\t\t\t}\n\n\t\t\t});\n\n\t\tStateTransition<T> oldFirstIgnore = Iterators.find(\n\t\t\toldFirst.getStateTransitions().iterator(),\n\t\t\tnew Predicate<StateTransition<T>>() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean apply(@Nullable StateTransition<T> input) {\n\t\t\t\t\treturn input != null && input.getAction() == StateTransitionAction.IGNORE;\n\t\t\t\t}\n\n\t\t\t}, null);\n\n\t\tStateTransition<T> oldSecondToThirdTake = Iterators.find(\n\t\t\toldSecond.getStateTransitions().iterator(),\n\t\t\tnew Predicate<StateTransition<T>>() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean apply(@Nullable StateTransition<T> input) {\n\t\t\t\t\treturn input != null && input.getAction() == StateTransitionAction.TAKE;\n\t\t\t\t}\n\n\t\t\t}, null);\n\n\t\tfinal Map<String, State<T>> convertedStates = new HashMap<>();\n\t\tState<T> newSecond;\n\t\tState<T> newFirst = new State<>(oldSecond.getName(), State.StateType.Start);\n\t\tconvertedStates.put(newFirst.getName(), newFirst);\n\t\twhile (oldSecondToThirdTake != null) {\n\n\t\t\tnewSecond = new State<T>(oldSecondToThirdTake.getTargetState().getName(), State.StateType.Normal);\n\t\t\tconvertedStates.put(newSecond.getName(), newSecond);\n\t\t\tnewFirst.addTake(newSecond, oldFirstToSecondTake.getCondition());\n\n\t\t\tif (oldFirstIgnore != null) {\n\t\t\t\tnewFirst.addIgnore(oldFirstIgnore.getCondition());\n\t\t\t}\n\n\t\t\toldFirst = oldSecond;\n\n\t\t\toldFirstToSecondTake = Iterators.find(\n\t\t\t\toldFirst.getStateTransitions().iterator(),\n\t\t\t\tnew Predicate<StateTransition<T>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean apply(@Nullable StateTransition<T> input) {\n\t\t\t\t\t\treturn input != null && input.getAction() == StateTransitionAction.TAKE;\n\t\t\t\t\t}\n\n\t\t\t\t});\n\n\t\t\toldFirstIgnore = Iterators.find(\n\t\t\t\toldFirst.getStateTransitions().iterator(),\n\t\t\t\tnew Predicate<StateTransition<T>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean apply(@Nullable StateTransition<T> input) {\n\t\t\t\t\t\treturn input != null && input.getAction() == StateTransitionAction.IGNORE;\n\t\t\t\t\t}\n\n\t\t\t\t}, null);\n\n\t\t\toldSecond = oldSecondToThirdTake.getTargetState();\n\n\t\t\toldSecondToThirdTake = Iterators.find(\n\t\t\t\toldSecond.getStateTransitions().iterator(),\n\t\t\t\tnew Predicate<StateTransition<T>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean apply(@Nullable StateTransition<T> input) {\n\t\t\t\t\t\treturn input != null && input.getAction() == StateTransitionAction.TAKE;\n\t\t\t\t\t}\n\n\t\t\t\t}, null);\n\n\t\t\tnewFirst = newSecond;\n\t\t}\n\n\t\tfinal State<T> endingState = new State<>(ENDING_STATE_NAME, State.StateType.Final);\n\n\t\tnewFirst.addTake(endingState, oldFirstToSecondTake.getCondition());\n\n\t\tif (oldFirstIgnore != null) {\n\t\t\tnewFirst.addIgnore(oldFirstIgnore.getCondition());\n\t\t}\n\n\t\tconvertedStates.put(endingState.getName(), endingState);\n\n\t\treturn convertedStates;\n\t}", "public interface UnknownNameReferenceResolver<R, I extends IndexAddressable.NamedIndexAddressable<N>, N extends NamedSemanticRegion<T>, T extends Enum<T>> {\n\n <X> X resolve(Extraction extraction, UnknownNameReference<T> ref, ResolutionConsumer<R, I, N, T, X> c) throws IOException;\n\n default <X> Map<UnknownNameReference<T>, X> resolveAll(Extraction extraction,\n SemanticRegions<UnknownNameReference<T>> refs,\n ResolutionConsumer<R, I, N, T, X> c) throws IOException {\n Map<UnknownNameReference<T>, X> result = new HashMap<>();\n for (SemanticRegion<UnknownNameReference<T>> unk : refs) {\n X item = resolve(extraction, unk.key(), c);\n if (item != null) {\n result.put(unk.key(), item);\n }\n }\n return result;\n }\n\n Class<T> type();\n}", "@Test\n public void testVirtualLists() throws Exception {\n assertReducesTo(\"2 dup 1 at.\", \"2 dup\");\n }", "private void normalizeBackwards()\n {\n normalize();\n m_bufferOffset_ = m_buffer_.length();\n }", "@Override\r\n\tprotected String doBackward(List<Emotion> b) {\n\t\treturn null;\r\n\t}" ]
[ "0.60000527", "0.5766161", "0.56611115", "0.56536883", "0.5487996", "0.5454289", "0.53605336", "0.53003854", "0.52633256", "0.5255575", "0.52352977", "0.5153387", "0.51335657", "0.5133251", "0.5122126", "0.508113", "0.506863", "0.5023801", "0.500562", "0.49889055", "0.49873537", "0.49608845", "0.49535027", "0.4943656", "0.4943057", "0.4939564", "0.4935361", "0.493064", "0.4911006", "0.48828593", "0.48611942", "0.48451847", "0.48025554", "0.47839206", "0.47815153", "0.47806558", "0.47806558", "0.47801054", "0.4771743", "0.47610563", "0.47588396", "0.47360414", "0.47360307", "0.47335973", "0.47325796", "0.47310007", "0.47305292", "0.47181165", "0.4706497", "0.46936506", "0.46834058", "0.46803674", "0.46803674", "0.46800312", "0.4670382", "0.46668908", "0.46666518", "0.4657959", "0.4653912", "0.46482614", "0.46450564", "0.46442604", "0.46441248", "0.46287242", "0.46212348", "0.46166143", "0.46164015", "0.4611459", "0.46105143", "0.46027133", "0.4596534", "0.45908898", "0.4585243", "0.45843217", "0.4574178", "0.45716274", "0.45639795", "0.4552735", "0.45491797", "0.45480353", "0.45464393", "0.45453542", "0.454466", "0.454466", "0.45446423", "0.4537502", "0.45341444", "0.45313725", "0.45300388", "0.4528215", "0.4527367", "0.45212376", "0.45199457", "0.45103088", "0.45012984", "0.45012408", "0.4493377", "0.44877243", "0.4487476", "0.44869313", "0.44818464" ]
0.0
-1
/ 2 Inconsistent Forward where a name points to a previously assigned UID THIS SHOULD NOT HAPPEN unless there's a major but or someone was messing with the UID table. Forward mapping wtf > 01 is diff than reverse 01 > foo Inconsistent forward mapping wtf > 01 vs wtf > foo / foo > 01 01 > foo foo > 01 02 > bar bar > 02 wtf > 01 ^^^^^^^^^ FIX Since any time series with the "01" UID is now corrupted with data from both foo and wtf, the best solution is to just delete the forward maps for foo and wtf, then create a new name map of "fsck.foo.wtf > 01" so that the old time series are still accessible.
@Test public void fsckMetricsInconsistentForward() throws Exception { storage.addColumn(UID_TABLE, "wtf".getBytes(MockBase.ASCII()), ID_FAMILY, METRICS, new byte[] {0, 0, 1}); storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L)); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(2, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void renameMapNames () {\n if (mappingNum == 0) {\n mapNames = null;\n return;\n }\n this.mapNames = new String[mappingNum];\n for (int i = 0; i < mappingNum; i++) {\n mapNames[i] = GBSHDF5Constants.MAPBASE + this.getThreeFigureString(i);\n }\n }", "public void unsetAutoForwardToName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(AUTOFORWARDTONAME$12, 0);\n }\n }", "public void xsetAutoForwardToName(org.apache.xmlbeans.XmlString autoForwardToName)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(AUTOFORWARDTONAME$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(AUTOFORWARDTONAME$12);\n }\n target.set(autoForwardToName);\n }\n }", "static void getMidWidNames() throws IOException {\n\t\tHashMap<String, String[]> mid2other = new HashMap<String, String[]>();\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_mid2wid);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\tif (mid2other.containsKey(l[0])) {\r\n\t\t\t\t\tString[] s = mid2other.get(l[0]);\r\n\t\t\t\t\ts[1] = s[1] + \"::\" + l[1];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tString[] s = new String[5];\r\n\t\t\t\t\ts[0] = l[0] + \"\";\r\n\t\t\t\t\ts[1] = l[1] + \"\";\r\n\t\t\t\t\ts[2] = \"\";\r\n\t\t\t\t\ts[3] = \"\";\r\n\t\t\t\t\ts[4] = \"\";\r\n\t\t\t\t\tmid2other.put(l[0], s);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdr.close();\r\n\t\t}\r\n\t\t//load notable type\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_mid2notabletype);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\tString mid = l[0];\r\n\t\t\t\tif (mid2other.containsKey(mid)) {\r\n\t\t\t\t\tString[] s = mid2other.get(mid);\r\n\t\t\t\t\tif (s[2].equals(\"\")) {\r\n\t\t\t\t\t\ts[2] = l[1];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ts[2] = s[2] + \"::\" + l[1];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdr.close();\r\n\t\t}\r\n\t\t//load names & alias\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbdump_2_len4);\r\n\t\t\tString[] l;\r\n\t\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t\t// set name\r\n\t\t\t\tif (l[1].equals(\"/type/object/name\") && l[2].equals(\"/lang/en\")) {\r\n\t\t\t\t\tString mid = l[0];\r\n\t\t\t\t\tif (mid2other.containsKey(mid)) {\r\n\t\t\t\t\t\tString[] s = mid2other.get(mid);\r\n\t\t\t\t\t\tif (s[3].equals(\"\")) {\r\n\t\t\t\t\t\t\ts[3] = l[3];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ts[3] = s[3] + \"::\" + l[3];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (s[4].equals(\"\")) {\r\n\t\t\t\t\t\t\ts[4] = l[3];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ts[4] = s[4] + \"::\" + l[3];\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\tif (l[1].equals(\"/common/topic/alias\") && l[2].equals(\"/lang/en\")) {\r\n\t\t\t\t\tString mid = l[0];\r\n\t\t\t\t\tif (mid2other.containsKey(mid)) {\r\n\t\t\t\t\t\tString[] s = mid2other.get(mid);\r\n\t\t\t\t\t\tif (s[4].equals(\"\")) {\r\n\t\t\t\t\t\t\ts[4] = l[3];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\ts[4] = s[4] + \"::\" + l[3];\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//write\r\n\t\t{\r\n\t\t\tDelimitedWriter dw = new DelimitedWriter(Main.file_midWidTypeNameAlias);\r\n\t\t\tfor (Entry<String, String[]> e : mid2other.entrySet()) {\r\n\t\t\t\tdw.write(e.getValue());\r\n\t\t\t}\r\n\t\t\tdw.close();\r\n\t\t}\r\n\t}", "private void finalizeOutOfTypeSystemFS(FSData aFS) {\n // make ID unique by prefixing a letter\n aFS.id = 'a' + aFS.id;\n // remap ref features\n for (Map.Entry<String, Object> entry : aFS.featVals.entrySet()) {\n String attrName = entry.getKey();\n if (attrName.startsWith(\"_ref_\")) {\n int val = Integer.parseInt((String) entry.getValue());\n if (val >= 0) // negative numbers represent null and are left unchanged\n {\n // attempt to locate target in type system\n FSInfo fsValInfo = fsTree.get(val);\n if (fsValInfo != null) {\n // entry.setValue(Integer.toString(fsValInfo.fs._id));\n entry.setValue(fsValInfo.fs);\n } else\n // out of type system - remap by prepending letter\n {\n entry.setValue(\"a\" + val);\n }\n }\n }\n\n }\n }", "private void processNameToObjectMap() {\r\n for (int i = 0; i < this.getObjectGroupCount(); i++) {\r\n ObjectGroup g = this.objectGroups.get(i);\r\n this.objectGroupNameToOffset.put(g.name, i);\r\n HashMap<String, Integer> nameToObjectMap = new HashMap<String, Integer>();\r\n for (int ib = 0; ib < this.getObjectCount(i); ib++) {\r\n nameToObjectMap.put(this.getObjectName(i, ib), ib);\r\n }\r\n g.setObjectNameMapping(nameToObjectMap);\r\n }\r\n }", "public void setAutoForwardToName(java.lang.String autoForwardToName)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(AUTOFORWARDTONAME$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(AUTOFORWARDTONAME$12);\n }\n target.setStringValue(autoForwardToName);\n }\n }", "public void testSubgraphsDontPolluteDefaultPrefix() \n {\n String imported = \"http://imported#\", local = \"http://local#\";\n g1.getPrefixMapping().setNsPrefix( \"\", imported );\n poly.getPrefixMapping().setNsPrefix( \"\", local );\n assertEquals( null, poly.getPrefixMapping().getNsURIPrefix( imported ) );\n }", "private void relabelGraphs2MultisetLabels(List<DirectedMultigraphWithRoot<Vertex<String>, Edge<String>>> graphs, int startLabel, int currentLabel) {\r\n\t\tMap<String, Bucket<Vertex<String>>> bucketsV = new HashMap<String, Bucket<Vertex<String>>>();\r\n\t\tMap<String, Bucket<Edge<String>>> bucketsE = new HashMap<String, Bucket<Edge<String>>>();\r\n\r\n\t\t// Initialize buckets\r\n\t\tfor (int i = startLabel; i < currentLabel; i++) {\r\n\t\t\tbucketsV.put(Integer.toString(i), new Bucket<Vertex<String>>(Integer.toString(i)));\r\n\t\t\tbucketsE.put(Integer.toString(i), new Bucket<Edge<String>>(Integer.toString(i)));\r\n\t\t}\r\n\r\n\t\t// 1. Fill buckets \r\n\r\n\t\t\t\tfor (DirectedMultigraphWithRoot<Vertex<String>, Edge<String>> graph : graphs) {\r\n\t\t\t\t// Add each edge source (i.e.) start vertex to the bucket of the edge label\r\n\t\t\t\tfor (Edge<String> edge : graph.getEdges()) {\r\n\t\t\t\t\tbucketsV.get(edge.getLabel().toString()).getContents().add(graph.getDest(edge));\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Add each incident edge to the bucket of the node label\r\n\t\t\t\tfor (Vertex<String> vertex : graph.getVertices()) {\t\t\t\r\n\t\t\t\t\tCollection<Edge<String>> v2 = graph.getOutEdges(vertex);\t\r\n\t\t\t\t\tbucketsE.get(vertex.getLabel().toString()).getContents().addAll(v2);\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\r\n\t\t// 2. add bucket labels to existing labels\r\n\t\t// Change the original label to a prefix label\r\n\t\tfor (DirectedMultigraphWithRoot<Vertex<String>, Edge<String>> graph : graphs) {\r\n\t\t\tfor (Edge<String> edge : graph.getEdges()) {\r\n\t\t\t\tedge.setLabel(edge.getLabel() + \"_\");\r\n\t\t\t}\r\n\t\t\tfor (Vertex<String> vertex : graph.getVertices()) {\r\n\t\t\t\tvertex.setLabel(vertex.getLabel() + \"_\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// 3. Relabel to the labels in the buckets\r\n\t\tfor (int i = startLabel; i < currentLabel; i++) {\r\n\t\t\t// Process vertices\r\n\t\t\tBucket<Vertex<String>> bucketV = bucketsV.get(Integer.toString(i));\t\t\t\r\n\t\t\tfor (Vertex<String> vertex : bucketV.getContents()) {\r\n\t\t\t\tvertex.setLabel(vertex.getLabel() + bucketV.getLabel() ); // + \"_\"\r\n\t\t\t}\r\n\t\t\t// Process edges\r\n\t\t\tBucket<Edge<String>> bucketE = bucketsE.get(Integer.toString(i));\t\t\t\r\n\t\t\tfor (Edge<String> edge : bucketE.getContents()) {\r\n\t\t\t\tedge.setLabel(edge.getLabel() + bucketE.getLabel() ); // + \"_\"\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n\t}", "@Override\n\tprotected void processFrame(Frame toProcess) {\n\t\tFrameIO.SuspendCache();\n\n\t\tFrame fresh = FrameIO.LoadFrame(toProcess.getName());\n\t\tif (_nameMap.containsKey(fresh.getName().toLowerCase())) {\n\t\t\tfresh\n\t\t\t\t\t.setName(_nameMap.get(fresh.getName()\n\t\t\t\t\t\t\t.toLowerCase()));\n\t\t} else {\n\t\t\tfresh.setFrameset(_nameTo);\n\t\t\tfresh.setFrameNumber(++_lastNumber);\n\n\t\t\t_nameMap.put(toProcess.getName().toLowerCase(), fresh\n\t\t\t\t\t.getName().toLowerCase());\n\t\t}\n\n\t\tboolean added = false;\n\t\tfor (Item i : fresh.getItems())\n\t\t\tif (i.getLink() != null && !i.isAnnotation() && i.isLinkValid()) {\n\t\t\t\tString link = i.getLink().toLowerCase();\n\t\t\t\t//convert to absolute link with the old framesetName\n\t\t\t\tif (FrameIO.isPositiveInteger(link)){\n\t\t\t\t\tlink = _nameFrom + link;\n\t\t\t\t}\n\t\t\t\t//check if we already have this in our map\n\t\t\t\tif (_nameMap.containsKey(link))\n\t\t\t\t\tlink = _nameMap.get(link);\n\t\t\t\t//otherwise add it to our map\n\t\t\t\telse if (link.startsWith(_nameFrom)) {\n\t\t\t\t\t_nameMap.put(link, _nameTo + (++_lastNumber));\n\t\t\t\t\tlink = \"\" + _lastNumber;\n\t\t\t\t}\n\t\t\t\ti.setLink(link);\n\t\t\t} else if (!added && i.getLink() != null && i.isAnnotation()\n\t\t\t\t\t&& i.isLinkValid()) {\n\t\t\t\t// annotation links need to be parsed at the end\n\t\t\t\tif (i.getAbsoluteLink().toLowerCase().startsWith(_nameFrom)) {\n\t\t\t\t\t_toReparse.add(fresh.getName());\n\t\t\t\t\tadded = true;\n\t\t\t\t}\n\n\t\t\t}\n\t\t_frameCount++;\n\t\tfresh.setPath(_framePath);\n\t\tFrameIO.ForceSaveFrame(fresh);\n\t\tFrameIO.ResumeCache();\n\t}", "protected void reinitializeName()\n {\n\t\tname = StsLoader.reinitializeName(name);\n }", "private void populatePrefixMappings(OntModel model) {\n\t\tMap<String, String> pm = model.getNsPrefixMap();\n\t\tneededPrefixesForQueries = new String[pm.keySet().size()];\n\t\tint i=0;\n\t\tfor(String key:pm.keySet())\n\t\t{\n\t\t\tneededPrefixesForQueries[i] = key + \": <\" + pm.get(key) + \">\";\n\t\t\ti++;\n\t\t}\n\t}", "public void updateMapModuleName() {\n\t\tgetMapModule().rename();\n\t\taddToOrChangeInMapModules(getMapModule().toString(), getMapModule());\n\t\tsetMapModule(getMapModule(), getMapModule().getMode());\n\t}", "public static NameID getNewName(String name, Traversable tr) {\n SymbolTable symtab = IRTools.getAncestorOfType(tr, SymbolTable.class);\n String header = (name == null) ? \"temp\" : name;\n NameID ret = new NameID(header);\n int suffix = 0;\n while (findSymbol(symtab, ret) != null) {\n ret = new NameID(header + (suffix++));\n }\n return ret;\n }", "public void getRemappedUID(int seqid, String uid);", "private void renameLogs() {\n File oldest = new File(getFileNameForIndex(mNumSegments - 1));\r\n oldest.delete();\r\n\r\n // Chain rename the rest\r\n for (int i = mNumSegments - 2; i >= 0; i--) {\r\n File chunk = new File(getFileNameForIndex(i));\r\n chunk.renameTo(new File(getFileNameForIndex(i + 1)));\r\n }\r\n }", "static void getFullsetMid2Name() throws IOException {\n\t\tDelimitedWriter dw = new DelimitedWriter(Main.file_mid2namesfullset);\r\n\t\tDelimitedReader dr = new DelimitedReader(Main.file_fbdump_2_len4);\r\n\t\tString[] l;\r\n\t\twhile ((l = dr.read()) != null) {\r\n\t\t\t// set name\r\n\t\t\tif (l[1].equals(\"/type/object/name\") && l[2].equals(\"/lang/en\")) {\r\n\t\t\t\tString mid = l[0];\r\n\t\t\t\tString name = l[3];\r\n\t\t\t\tdw.write(mid, name, \"name\");\r\n\t\t\t}\r\n\t\t\tif (l[1].equals(\"/common/topic/alias\") && l[2].equals(\"/lang/en\")) {\r\n\t\t\t\tString mid = l[0];\r\n\t\t\t\tString name = l[3];\r\n\t\t\t\tdw.write(mid, name, \"alias\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tdw.close();\r\n\t}", "private void correctConflictingNames(final List<DataObject> sourceDataObjects, final ObjectIdentity<?> targetLocationIdentity, final DmsOperation operation) throws ServiceException {\n final Map<ObjectIdentity<?>, String> originalNames = newHashMap();\n Map<String, DataObject> unresolvedDataObjects = newHashMap();\n final Set<String> resolvedNamesLowercased = newHashSet();\n\n for (final DataObject dataObject : sourceDataObjects) {\n final String objectName = getObjectNameProperty(dataObject);\n originalNames.put(dataObject.getIdentity(), objectName);\n unresolvedDataObjects.put(objectName.toLowerCase(), dataObject);\n }\n\n // Loop until all names are resolved (i.e. no more conflicts)\n int attempt = 0;\n while (!unresolvedDataObjects.isEmpty()) {\n ++attempt;\n\n // Get names conflicting with objects in repository\n final Collection<String> conflictingNamesInRepository = getConflictingNamesInRepository(unresolvedDataObjects.keySet(), targetLocationIdentity);\n\n // Move non-conflicting objects to resolved\n final Iterator<Entry<String, DataObject>> unresolvedDataObjectsIterator = unresolvedDataObjects.entrySet().iterator();\n while (unresolvedDataObjectsIterator.hasNext()) {\n final Entry<String, DataObject> unresolvedDataObjectsEntry = unresolvedDataObjectsIterator.next();\n final String nameLowercased = unresolvedDataObjectsEntry.getKey();\n if (!conflictingNamesInRepository.contains(nameLowercased)) {\n resolvedNamesLowercased.add(nameLowercased);\n unresolvedDataObjectsIterator.remove();\n }\n }\n\n // For conflicting objects, apply name correction template and rebuild map of unresolved objects\n final Map<String, DataObject> newUnresolvedDataObjects = newHashMap();\n for (final Entry<String, DataObject> unresolvedDataObjectsEntry : unresolvedDataObjects.entrySet()) {\n final DataObject unresolvedDataObject = unresolvedDataObjectsEntry.getValue();\n final String currentName = getObjectNameProperty(unresolvedDataObject);\n final String originalName = originalNames.get(unresolvedDataObject.getIdentity());\n final String originalBaseName = removeExtension(originalName);\n final String originalExtensionSuffix = originalName.substring(originalBaseName.length()); // extension including dot (if any)\n\n final String correctedBaseName = String.format(\n getConfig().getConflictingNameTemplate(operation, attempt),\n originalBaseName, attempt, attempt + 1\n );\n final String correctedName = correctedBaseName + originalExtensionSuffix;\n\n if (correctedName.equalsIgnoreCase(currentName)) {\n throw new InsightConfigurationException(String.format(\n \"Failed resolving name conflict for '%s'. Please check '%s' configuration setting\",\n originalName, String.format(\"dataObject.%s.conflictingNameTemplate\", operation.name().toLowerCase()) // TODO(): think how to avoid duplicating property name here and in config class\n ));\n }\n\n final String correctedNameLowercased = correctedName.toLowerCase();\n if (!resolvedNamesLowercased.contains(correctedNameLowercased)) {\n // No conflict with previously resolved names ==> apply name correction\n unresolvedDataObject.getProperties().set(\"object_name\", correctedName);\n newUnresolvedDataObjects.put(correctedNameLowercased, unresolvedDataObject);\n } else {\n // Conflict with a previously resolved name ==> do not apply name correction\n newUnresolvedDataObjects.put(unresolvedDataObjectsEntry.getKey(), unresolvedDataObject);\n }\n }\n unresolvedDataObjects = newUnresolvedDataObjects;\n }\n }", "protected ForwardingMap() {}", "private void removeTwoStepForwardFromPositionCache(Key currentKey) {\n\n\t\t// Create a two square forward position\n\t\tKey newKey =createTwoStepForwardFromCurrentKey(currentKey);\n\n\t\t// Gets current values stored with key and adds the extra position\n\t\tSet<Key> currentKeyMapping = positionCache.get(currentKey);\n\n\t\t// Remove key if it exists\n\t\tif (currentKeyMapping.contains(newKey)) {\n\t\t\tcurrentKeyMapping.remove(newKey);\n\t\t}\n\n\t\tpositionCache.put(currentKey, currentKeyMapping);\n\t}", "private void addToMaps(String name, UUID uuid) {\n\n Calendar calendar = Calendar.getInstance();\n calendar.add(Calendar.DAY_OF_MONTH, 3);\n\n // Create the entry and populate the local maps\n CachedUUIDEntry entry = new CachedUUIDEntry(name, uuid, calendar);\n nameToUuidMap.put(name.toLowerCase(), entry);\n uuidToNameMap.put(uuid, entry);\n }", "public void m6607X() {\n try {\n HashMap hashMap = new HashMap();\n hashMap.put(\"is_rename\", \"0\");\n C1390G.m6779b(\"A107|1|3|10\", hashMap);\n HashMap hashMap2 = new HashMap();\n hashMap2.put(\"mark_num\", String.valueOf(this.f5418ga));\n C1390G.m6779b(\"A107|1|3|10\", hashMap2);\n HashMap hashMap3 = new HashMap();\n hashMap3.put(\"rec_time\", String.valueOf(this.f5420ha));\n C1390G.m6779b(\"A107|1|3|10\", hashMap3);\n } catch (Exception e) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"A107|1|3|10Vcode error:\" + e);\n }\n }", "private void addPrevNames(String name){\r\n\t\tif (!prevNames.contains(name)){\r\n\t\t\tprevNames.add(name);\r\n\t\t}\r\n\t}", "public static void loadTargetTerm2IdMapping(File input) throws IOException {\n\t\t\tm_namesMap = new SimpleBidirectionalMap<String, Integer>();\n\t\t\tString encoding = FileUtils.getFileEncoding(input);\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(input), encoding));\n\t\t\tString line = reader.readLine();\n\t\t\tint lineNum = 1;\n\t\t\tboolean testFormat = false;\n\t\t\tif(StringUtils.checkIfNumber(line.split(\"\\t\")[0]))\n\t\t\t\ttestFormat = true;\n\t\t\twhile(line!= null) {\n\t\t\t\tif(line.equals(\"@@@\"))\n\t\t\t\t\tbreak;\n\t\t\t\tif(testFormat) {\n\t\t\t\t\tString num = line.split(\"\\t\")[0];\n\t\t\t\t\tSystem.out.println(\"key: \"+line.trim().substring(num.length()+1) + \" value: \" + Integer.parseInt(num));\n\t\t\t\t\tm_namesMap.put(line.trim().substring(num.length()+1), Integer.parseInt(num));\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"key????\" + lineNum + \"instead of \" + line.split(\"\\t\")[0]);\n\t\t\t\t\tm_namesMap.put(line.trim(), lineNum);\n\t\t\t\t}\n\t\t\t\tline = reader.readLine();\n\t\t\t\tlineNum ++;\n\t\t\t}\n\t\t}", "void checkRename(Object oldId, Object newId) throws UPAException;", "protected EnzymeModel fixPdbXrefs(EnzymeModel summary) {\n if (mm != null){\n // PDB xrefs for every ortholog in the summary:\n for (EnzymeAccession relSp : summary.getRelatedspecies()) {\n Collection<XRef> pdbXrefs = mm.getXrefs(MmDatabase.UniProt,\n relSp.getUniprotaccessions().get(0), MmDatabase.PDB);\n if (pdbXrefs != null){\n relSp.setPdbeaccession(getToIds(pdbXrefs));\n }\n }\n // TODO: fix also the default species?\n try {\n mm.closeMap();\n } catch (IOException e) {\n LOGGER.error(\"Unable to close the mega-map\", e);\n }\n }\n return summary;\n }", "protected String freshLocalName(String hint) {\n if (hint == null || hint.equals(\"\")) {\n hint = \"$local\";\n }\n String fresh;\n if (!takenLocalNames.contains(hint)) {\n fresh = hint;\n } else {\n for (int i = 1; ; i++) {\n fresh = hint + Integer.toString(i);\n if (!takenLocalNames.contains(fresh)) {\n break;\n }\n }\n }\n takenLocalNames.add(fresh);\n return fresh;\n }", "private static void writeMappingsToFile(String releaseNumber, List<List<Object>> stableIdsToOldIdsMappings, Set<String> currentStableIdentifiers) throws IOException {\n\t\tPath oldStableIdsMappingFilePath = Paths.get(releaseNumber, \"reactome_stable_ids.txt\");\n\t\tString header = \"# Reactome stable IDs for release \" + releaseNumber + \"\\n\" + \"Stable_ID\\told_identifier(s)\\n\";\n\t\tFiles.write(oldStableIdsMappingFilePath, header.getBytes(), StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING);\n\t\tfor (List<Object> stableIdsArray : stableIdsToOldIdsMappings)\n\t\t{\n\t\t\tString primaryId = (String) stableIdsArray.get(0);\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<String> secondaryIds = (ArrayList<String>) stableIdsArray.get(1);\n\t\t\tif (currentStableIdentifierWithMapping(currentStableIdentifiers, primaryId, secondaryIds)) {\n\t\t\t\tString line = primaryId + \"\\t\" + String.join(\",\", secondaryIds) + \"\\n\";\n\t\t\t\tFiles.write(oldStableIdsMappingFilePath, line.getBytes(), StandardOpenOption.APPEND);\n\t\t\t}\n\t\t}\n\t}", "public void findTaxonomyCycles(String name){\n \t 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 \t\tTraversalDescription CHILDOF_TRAVERSAL = Traversal.description()\n \t\t .relationships( RelTypes.TAXCHILDOF,Direction.INCOMING );\n \t\tSystem.out.println(firstNode.getProperty(\"name\"));\n \t\tArrayList<Node> conflictingnodes = new ArrayList<Node>();\n \t\tfor(Node friendnode : CHILDOF_TRAVERSAL.traverse(firstNode).nodes()){\n \t\t\tint count = 0;\n \t\t\tboolean conflict = false;\n \t\t\tString endNode = \"\";\n \t\t\tfor(Relationship rel : friendnode.getRelationships(Direction.OUTGOING)){\n \t\t\t\tif (endNode == \"\")\n \t\t\t\t\tendNode = (String) rel.getEndNode().getProperty(\"name\");\n \t\t\t\tif ((String)rel.getEndNode().getProperty(\"name\") != endNode){\n \t\t\t\t\tconflict = true;\n \t\t\t\t}\n \t\t\t\tcount += 1;\n \t\t\t}\n \t\t\tif (count > 1 && conflict){\n \t\t\t\tconflictingnodes.add(friendnode);\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(conflictingnodes.size());\n \t\tfor(int i=0;i<conflictingnodes.size();i++){\n \t\t\tSystem.out.println(conflictingnodes.get(i).getProperty(\"name\"));\n \t\t}\n \t}", "protected ForwardingMapEntry() {}", "void anonymizeEntries( List<Integer> listIdEntries, Timestamp dateCleanTo, Plugin plugin );", "void remap()\n\t\t{\n\t\t\tif(nextMap == null)\n\t\t\t\treturn;\n\t\t\tnextMap = newNodeMap(nextMap);\n\t\t\tfor(Node<T> node : nextMap.values())\n\t\t\t\tnode.remap();\n\t\t}", "void scanunique() {\n\t\tint oldline, newline;\n\t\tnode psymbol;\n\n\t\tfor (newline = 1; newline <= newinfo.maxLine; newline++) {\n\t\t\tpsymbol = newinfo.symbol[newline];\n\t\t\tif (psymbol.symbolIsUnique()) { // 1 use in each file\n\t\t\t\toldline = psymbol.linenum;\n\t\t\t\tnewinfo.other[newline] = oldline; // record 1-1 map\n\t\t\t\toldinfo.other[oldline] = newline;\n\t\t\t}\n\t\t}\n\t\tnewinfo.other[0] = 0;\n\t\toldinfo.other[0] = 0;\n\t\tnewinfo.other[newinfo.maxLine + 1] = oldinfo.maxLine + 1;\n\t\toldinfo.other[oldinfo.maxLine + 1] = newinfo.maxLine + 1;\n\t}", "private int purgeAscending(int lowIndex, int highIndex, RollingFileManager manager) {\n/* 266 */ int suffixLength = 0;\n/* */ \n/* 268 */ List<FileRenameAction> renames = new ArrayList<FileRenameAction>();\n/* 269 */ StringBuilder buf = new StringBuilder();\n/* 270 */ manager.getPatternProcessor().formatFileName(buf, Integer.valueOf(highIndex));\n/* */ \n/* 272 */ String highFilename = this.subst.replace(buf);\n/* */ \n/* 274 */ if (highFilename.endsWith(\".gz\")) {\n/* 275 */ suffixLength = 3;\n/* 276 */ } else if (highFilename.endsWith(\".zip\")) {\n/* 277 */ suffixLength = 4;\n/* */ } \n/* */ \n/* 280 */ int maxIndex = 0;\n/* */ int i;\n/* 282 */ for (i = highIndex; i >= lowIndex; i--) {\n/* 283 */ File toRename = new File(highFilename);\n/* 284 */ if (i == highIndex && toRename.exists()) {\n/* 285 */ maxIndex = highIndex;\n/* 286 */ } else if (maxIndex == 0 && toRename.exists()) {\n/* 287 */ maxIndex = i + 1;\n/* */ \n/* */ break;\n/* */ } \n/* 291 */ boolean isBase = false;\n/* */ \n/* 293 */ if (suffixLength > 0) {\n/* 294 */ File toRenameBase = new File(highFilename.substring(0, highFilename.length() - suffixLength));\n/* */ \n/* */ \n/* 297 */ if (toRename.exists()) {\n/* 298 */ if (toRenameBase.exists()) {\n/* 299 */ toRenameBase.delete();\n/* */ }\n/* */ } else {\n/* 302 */ toRename = toRenameBase;\n/* 303 */ isBase = true;\n/* */ } \n/* */ } \n/* */ \n/* 307 */ if (toRename.exists()) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 312 */ if (i == lowIndex) {\n/* 313 */ if (!toRename.delete()) {\n/* 314 */ return -1;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ break;\n/* */ } \n/* */ \n/* */ \n/* 323 */ buf.setLength(0);\n/* 324 */ manager.getPatternProcessor().formatFileName(buf, Integer.valueOf(i - 1));\n/* */ \n/* 326 */ String lowFilename = this.subst.replace(buf);\n/* 327 */ String renameTo = lowFilename;\n/* */ \n/* 329 */ if (isBase) {\n/* 330 */ renameTo = lowFilename.substring(0, lowFilename.length() - suffixLength);\n/* */ }\n/* */ \n/* 333 */ renames.add(new FileRenameAction(toRename, new File(renameTo), true));\n/* 334 */ highFilename = lowFilename;\n/* */ } else {\n/* 336 */ buf.setLength(0);\n/* 337 */ manager.getPatternProcessor().formatFileName(buf, Integer.valueOf(i - 1));\n/* */ \n/* 339 */ highFilename = this.subst.replace(buf);\n/* */ } \n/* */ } \n/* 342 */ if (maxIndex == 0) {\n/* 343 */ maxIndex = lowIndex;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 349 */ for (i = renames.size() - 1; i >= 0; i--) {\n/* 350 */ Action action = (Action)renames.get(i);\n/* */ \n/* */ try {\n/* 353 */ if (!action.execute()) {\n/* 354 */ return -1;\n/* */ }\n/* 356 */ } catch (Exception ex) {\n/* 357 */ LOGGER.warn(\"Exception during purge in RollingFileAppender\", ex);\n/* 358 */ return -1;\n/* */ } \n/* */ } \n/* 361 */ return maxIndex;\n/* */ }", "private void resetPIDBreach() {\n\t\t\n\t}", "private void removePrevNames(String name){\r\n\t\tif (prevNames.contains(name)){\r\n\t\t\tprevNames.remove(name);\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void rehashUsers() {\n\t\tfor(Integer userId : users) {\n\t\t\tInteger oldShard = this.calculateShard(userId, prevNumServers);\n\t\t\tInteger newShard = this.calculateShard(userId);\n\t\t\t\n\t\t\t// Pull data out of oldShard database\n\t\t\t// Put data in newShard database\n\t\t}\n\t}", "void fillLabelHash() {\n log.debug(\" begin fillLabelHash\");\n for (int v = 0; v < vertices.length; v++) {\n log.debug(\" ---- process vertex \" + v);\n System.err.println(\" ---- process vertex \" + v);\n\n HammingVertex vertex = vertices[v];\n\n // all users of the array MUST use exactly the same algorithm lookup sequence\n int missingBitsVertexMapsIndex = 0;\n\n for (int i = 0; i < (labelSize - 1); i++) {\n for (int j = (i + 1); j < labelSize; j++) {\n\n Map missingBitsVertexMap = missingBitsVertexMaps[missingBitsVertexMapsIndex];\n if (missingBitsVertexMap == null) {\n missingBitsVertexMap = new HashMap<Integer, List<Integer>>();\n missingBitsVertexMaps[missingBitsVertexMapsIndex] = missingBitsVertexMap;\n }\n int compressedLabel = vertex.labelWithoutMissingBitsAsInt(i, j);\n List<Integer> list = (List<Integer>) missingBitsVertexMap.get(compressedLabel);\n if (list == null) {\n list = new LinkedList<Integer>();\n missingBitsVertexMap.put(compressedLabel, list);\n }\n list.add(vertex.vertexNumber);\n\n // next missing bit hashMap in sequence\n missingBitsVertexMapsIndex++;\n }\n }\n }\n }", "private void initIDFMap(List<List<Map<String,List<Double>>>> tfMap){\n\t\tfor (int i = 0; i < tfMap.size(); i++) {\n\t\t\tList<Map<String,List<Double>>> gestureDocument = tfMap.get(i);\n\t\t\tfor (int j = 0; j < gestureDocument.size(); j++) {\n\t\t\t\tMap<String,List<Double>> tempMap = gestureDocument.get(j);\n\t\t\t\tIterator<Entry<String, List<Double>>> it = tempMap.entrySet().iterator();\n\t\t\t\t while (it.hasNext()) {\n\t\t\t\t Map.Entry<String,Integer> pairs = (Map.Entry)it.next(); \n\t\t\t\t if(getTfIDFMapGlobal().containsKey(pairs.getKey()))\n\t\t\t\t \tgetTfIDFMapGlobal().put(pairs.getKey(), getTfIDFMapGlobal().get(pairs.getKey())+1);\n\t\t\t\t else\n\t\t\t\t \tgetTfIDFMapGlobal().put(pairs.getKey(), 1);\n\t\t\t\t }\n\t\t\t}\n\t\t}\n\t}", "protected TypeNode insertForwardedReferenceNode (TypeNode parent, String typeName) \n {\n TypeNode node = null;\n \n\t\tif ( typeName == null || typeName.trim().length() == 0 ) return null;\n\n // Same type may be forwarded ref MULTIPLE TIMES\n node = (TypeNode) _nodesHashtable.get(typeName);\n if (node != null) {\n // BUG !!! This FORWARD reference is already in tree since the caller\n // of this method ALREADY checked that this forward ref IS NOT in tree.\n \n TypeDescription meta = (TypeDescription) ((TypeNode)_nodesHashtable.get(typeName)).getObject();\n if ( meta != null ) {\n // Already defined\n node.setLabel(TypeSystemUtils2.getMyShortName(typeName)); // Use short name\n node.setObject(meta);\n _nodesHashtable.put (((TypeDescription)node.getObject()).getName(), node);\n Trace.err(\"??? BUG -- Already defined for \" + typeName);\n }\n } else {\n // NEW forwarded ref\n node = new TypeNode(parent, UimaToolsUtil.getMyShortName(typeName));\n node.setObjectType(IItemTypeConstants.ITEM_TYPE_TYPE); \n // Not yet defined (Forward reference)\n // Cannot use short name if no TypeDescription object (see TreeBaseNode.compare)\n // Trace.trace(\"Forward reference to \" + typeName);\n // _nodesHashtable.put (node.getLabel(), node);\n _nodesHashtable.put (typeName, node);\n \n // Add to undefined type hashtable\n // _undefinedTypesHashtable.put (node.getLabel(), node);\n _undefinedTypesHashtable.put (typeName, node);\n }\n \t\t\n\t\t// Insert \"node\" as child of \"parent\"\n\t\tTypeNode tempNode;\n\t\tif (parent == null) {\n\t\t if (_rootSuper == null) {\n\t\t _rootSuper = node;\n\t\t } else {\n\t\t\t\tif ( (tempNode = _rootSuper.insertChild(node)) != null ) {\n\t\t\t\t\tif (tempNode != node) {\t\t\t\t \n\t\t\t\t\t\t// Duplicate Label\n // Use full name as label\n\t\t\t\t\t\tTrace.trace(\" 1 Duplicate (short name) Label:\" + node.getLabel());\n//\t\t\t\t\t\tnode.setShowFullName(true);\n\t\t\t\t\t\tif (node.getObject() != null) {\n // Use full name as label\n\t\t\t\t\t\t\tnode.setLabel(((TypeDescription)node.getObject()).getName());\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\t_rootSuper.insertChild(node);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t} else {\n\t\t\t// parent.insertChild (node);\n\t\t\tif ( (tempNode = parent.insertChild(node)) != null && tempNode != node) {\n\t\t\t\t// Duplicate Label. Use full name as label.\n Trace.trace(\" 2 Duplicate (short name) Label:\" + node.getLabel());\n//\t\t\t\tnode.setShowFullName(true);\n\t\t\t\tif (node.getObject() != null) {\n // Use full name as label\n\t\t\t\t\tnode.setLabel(((TypeDescription)node.getObject()).getName());\n\t\t\t\t}\t\t\t\t\n\t\t\t\tparent.insertChild(node);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn node;\n\t}", "public String getNewName(String oldName) {\n\t\t// return result of first matching rule\n\t\tIterator<RemapRule> iter = rules.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tString newName = iter.next().getNewName(oldName);\n\t\t\tif (newName != null) return newName;\n\t\t}\n\t\treturn oldName;\n\t}", "public ImageFileNameMap(FileNameMap map)\r\n {\r\n prevMap = map;\r\n }", "private void updateIndexMap(String file) {\n\t\ttry (Scanner s = new Scanner(new File(file))) {\n\t\t\twhile (s.hasNext()) {\n\t\t\t\tString word = TextParserUtil.cleanWord(s.next());\n\t\t\t\tString partition = word.substring(0, 1);\n\t\t\t\tif (indexedDir.get(partition) == null) {\n\t\t\t\t\tinsertPartitionEntry(file, word, partition);\n\t\t\t\t} else if (indexedDir.get(partition).get(word) == null) {\n\t\t\t\t\tinsertWordEntry(file, word, partition);\n\t\t\t\t} else if (indexedDir.get(partition).get(word) != null) {\n\t\t\t\t\tupdateFileList(file, word, partition);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "synchronized String getFixedName(String originalName) {\r\n return originalNamesToFixedNames.get(originalName);\r\n }", "private void removeObjectFromMaps(Object obj)\r\n {\r\n String name = (String) objectNames.remove(obj);\r\n\r\n // if multiple objects have registered under the same prefix, ensure\r\n // that only this object is removed from that mapping\r\n try\r\n {\r\n // retrieve the object that the weak reference refers to, if any\r\n WeakReference ref = (WeakReference) nameObjects.get(name);\r\n if (System.identityHashCode(obj) == System.identityHashCode(ref.get()))\r\n nameObjects.remove(name);\r\n }\r\n catch(NullPointerException e0)\r\n {\r\n // ignore\r\n }\r\n }", "@Test\n\tpublic void testAxiomRenaming() throws Exception {\n\t\tfinal IContextRoot ctx = createContext(\"c1\");\n\t\tfinal String prefix = PreferenceUtils.getAutoNamePrefix(ctx, IAxiom.ELEMENT_TYPE);\n\t\tfinal IAxiom axm1 = createAxiom(ctx, prefix + \"24\", \"\", false);\n\t\tfinal IAxiom axm2 = createAxiom(ctx, \"foo\", \"\", true);\n\n\t\trenameAxioms(ctx);\n\t\tassertEquals(prefix + \"1\", axm1.getLabel());\n\t\tassertEquals(prefix + \"2\", axm2.getLabel());\n\t}", "private void initMapNameMapping() {\n mMapNameMapping.clear();\n\n // Load the name mapping from the config\n ConfigurationSection mappingSection = getConfig().getConfigurationSection(MappingSectionName);\n if (mappingSection != null) {\n // Load and check the mapping found in the config\n Map<String, Object> configMap = mappingSection.getValues(false);\n for (Map.Entry<String, Object> entry : configMap.entrySet()) {\n mMapNameMapping.put(entry.getKey(), (String) entry.getValue());\n }\n } else {\n getLogger().warning(String.format(\"[%s] found no configured mapping, creating a default one.\", mPdfFile.getName()));\n }\n\n // If there are new worlds in the server add them to the mapping\n List<World> serverWorlds = getServer().getWorlds();\n for (World w : serverWorlds) {\n if (!mMapNameMapping.containsKey(w.getName())) {\n mMapNameMapping.put(w.getName(), w.getName());\n }\n }\n\n // Set the new mapping in the config\n getConfig().createSection(MappingSectionName, mMapNameMapping);\n }", "@Override\n public boolean bumpFouls(String firstName, String lastName) {\n\n if(stats.containsKey(firstName + lastName)) {\n\n stats.get(firstName + lastName).bumpFouls();\n\n return true;\n\n }\n\n else{\n\n return false;\n\n }\n }", "@Override\n\tpublic void changementMap(String dataName) {\n\t\talgo.setDataName(dataName);\n\t}", "private void removeIfNeeded(String prefix) {\r\n // remove the previous mapping to the prefix\r\n if (this.prefixMapping.containsValue(prefix)) {\r\n Object key = null;\r\n for (Enumeration e = this.prefixMapping.keys(); e.hasMoreElements();) {\r\n key = e.nextElement();\r\n if (this.prefixMapping.get(key).equals(prefix)) \r\n break;\r\n }\r\n this.prefixMapping.remove(key); // we know key should have a value\r\n\t if (DEBUG) System.err.println(\"Removed \" + prefix);\r\n \r\n }\r\n }", "private String removeNamePrefix(String sFileName){\n int iDateScoreIndex = 0;\n String sOriginalFileName = \"\";\n\n iDateScoreIndex = sFileName.indexOf(\"_attempt_\");\n sOriginalFileName = sFileName.substring(iDateScoreIndex + 29);\n\n return sOriginalFileName;\n }", "@Test\n public void testPrefixTrimOnNonAddress() throws Exception {\n final int tableSize = PARAMETERS.NUM_ITERATIONS_LOW;\n final String streamName = \"test\";\n\n CorfuRuntime rt = getNewRuntime();\n CorfuRuntime runtime = getNewRuntime();\n\n try {\n PersistentCorfuTable<String, Long> testTable = rt.getObjectsView()\n .build()\n .setTypeToken(new TypeToken<PersistentCorfuTable<String, Long>>() {})\n .setStreamName(streamName)\n .open();\n\n // Checkpoint (should return -1 as no actual data is written yet)\n MultiCheckpointWriter<PersistentCorfuTable<String, Long>> mcw = new MultiCheckpointWriter<>();\n mcw.addMap(testTable);\n Token checkpointAddress = mcw.appendCheckpoints(rt, author);\n\n // Write several entries into the log.\n for (int i = 0; i < tableSize; i++) {\n try {\n testTable.insert(String.valueOf(i), (long) i);\n } catch (TrimmedException te) {\n // shouldn't happen\n te.printStackTrace();\n throw te;\n }\n }\n\n // Prefix Trim on checkpoint snapshot address\n rt.getAddressSpaceView().prefixTrim(checkpointAddress);\n rt.getAddressSpaceView().gc();\n rt.getAddressSpaceView().invalidateServerCaches();\n rt.getAddressSpaceView().invalidateClientCache();\n\n // Rebuild stream from fresh runtime\n try {\n PersistentCorfuTable<String, Long> localTestTable = openTable(runtime, streamName);\n for (int i = 0; i < localTestTable.size(); i++) {\n assertThat(localTestTable.get(String.valueOf(i))).isEqualTo(i);\n }\n assertThat(localTestTable.size()).isEqualTo(tableSize);\n } catch (TrimmedException te) {\n // shouldn't happen\n te.printStackTrace();\n throw te;\n }\n } finally {\n rt.shutdown();\n runtime.shutdown();\n }\n }", "public ImageFileNameMap()\r\n {\r\n prevMap = null;\r\n }", "public void m6608Y() {\n try {\n HashMap hashMap = new HashMap();\n hashMap.put(\"is_rename\", \"1\");\n C1390G.m6779b(\"A107|1|3|10\", hashMap);\n } catch (Exception e) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"A107|1|3|10Vcode error:\" + e);\n }\n }", "public void fixMetaDataDefinition() {\n\t\tmetaDataFixed = true;\n\t}", "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 }", "public HL7Group processNK1s_ToUFD() throws ICANException {\n\n HL7Segment aNK1SegIN = new HL7Segment(\"NK1\");\n HL7Segment aNK1SegOUT = new HL7Segment(\"NK1\");\n HL7Group aNK1GroupIN = new HL7Group();\n HL7Group aNK1GroupOUT = new HL7Group();\n CodeLookUp aRelationship = new CodeLookUp(\"NOK_Relationship.table\", mEnvironment);\n\n aNK1GroupIN = processGroup(HL7_23.Repeat_NK1);\n int i;\n for (i=1; i <= aNK1GroupIN.countSegments(); i++) {\n\n aNK1SegIN = new HL7Segment(aNK1GroupIN.getSegment(i));\n aNK1SegOUT = new HL7Segment(\"NK1\");\n aNK1SegOUT.linkTo(aNK1SegIN);\n aNK1SegOUT.copy(HL7_23.NK1_1_set_ID);\n aNK1SegOUT.copy(HL7_23.NK1_2_next_of_kin_name);\n if (mFacility.equalsIgnoreCase(\"BHH\") ||\n mFacility.equalsIgnoreCase(\"MAR\") ||\n mFacility.equalsIgnoreCase(\"ANG\") ||\n mFacility.equalsIgnoreCase(\"PJC\")) {\n //Perform no translation just copy NOK\n aNK1SegOUT.copy(HL7_23.NK1_3_next_of_kin_relationship);\n } else {\n aNK1SegOUT.set(HL7_23.NK1_3_next_of_kin_relationship,\n aRelationship.getValue(aNK1SegIN.getField(HL7_23.NK1_3_next_of_kin_relationship)));\n }\n aNK1SegOUT.copy(HL7_23.NK1_4_next_of_kin__address, HL7_23.XAD_street_1);\n aNK1SegOUT.copy(HL7_23.NK1_4_next_of_kin__address, HL7_23.XAD_street_2);\n aNK1SegOUT.copy(HL7_23.NK1_4_next_of_kin__address, HL7_23.XAD_city);\n aNK1SegOUT.copy(HL7_23.NK1_4_next_of_kin__address, HL7_23.XAD_state_or_province);\n aNK1SegOUT.copy(HL7_23.NK1_4_next_of_kin__address, HL7_23.XAD_zip);\n// aNK1SegOUT.copy(HL7_23.NK1_4_next_of_kin__address, HL7_23.XAD_type);\n aNK1SegOUT.copy(HL7_23.NK1_5_next_of_kin__phone, HL7_23.XTN_telephone_number);\n aNK1SegOUT.copy(HL7_23.NK1_5_next_of_kin__phone, HL7_23.XTN_telecom_use);\n aNK1SegOUT.copy(HL7_23.NK1_6_business_phone_num, HL7_23.XTN_telephone_number);\n aNK1SegOUT.copy(HL7_23.NK1_6_business_phone_num, HL7_23.XTN_telecom_use);\n aNK1SegOUT.copy(HL7_23.NK1_7_contact_role);\n\n aNK1GroupOUT.append(aNK1SegOUT);\n }\n\n return aNK1GroupOUT;\n }", "private static synchronized String translateGuid(String anonimizedPatientId, String oldGuid) {\r\n \r\n String newGuid = guidHistory.get(new Guid(anonimizedPatientId, oldGuid));\r\n if (newGuid == null) {\r\n try {\r\n newGuid = UMROGUID.getUID();\r\n // This should always be true\r\n if (newGuid.startsWith(UMROGUID.UMRO_ROOT_GUID)) {\r\n newGuid = rootGuid + newGuid.substring(UMROGUID.UMRO_ROOT_GUID.length());\r\n }\r\n \r\n guidHistory.put(new Guid(anonimizedPatientId, oldGuid), newGuid);\r\n } catch (UnknownHostException e) {\r\n Log.get().logrb(Level.SEVERE, Anonymize.class.getCanonicalName(),\r\n \"translateGuid\", null, \"UnknownHostException Unable to generate new GUID\", e);\r\n }\r\n }\r\n return newGuid;\r\n }", "@Test\n\tpublic void testFwdInfReasonerRewrites_Bug717() throws Exception {\n\t\timportProofSerializationProofs();\n\n\t\tfinal IPRRoot prFile = getProofRoot(\"exF\");\n\t\tfinal IPRProof proof = prFile.getProof(\"oldExF\");\n\n\t\t// a IllegalStateException is thrown when the bug is present:\n\t\tfinal IProofTree proofTree = proof.getProofTree(null);\n\n\t\t// ensure that the proof rule is deserialized:\n\t\tfinal IProofTreeNode root = proofTree.getRoot();\n\t\tassertFalse(root.isOpen());\n\t\tfinal IProofRule rule = root.getRule();\n\t\tassertEquals(SequentProver.PLUGIN_ID + \".exF\", rule.generatedBy().getReasonerID());\n\t\tassertEquals(3, rule.getAntecedents()[0].getHypActions().size());\n\t}", "public void endPrefixMapping(String prefix) { }", "private void calcPossibleMappingImpl(\n Collection<Vertex> currentSourceVertices,\n Collection<Vertex> currentTargetVertices,\n List<String> contextId,\n int contextIx,\n List<VertexContextSegment> contexts,\n Set<Vertex> usedSourceVertices,\n Set<Vertex> usedTargetVertices,\n String typeNameForDebug) {\n runningCheck.check();\n\n VertexContextSegment finalCurrentContext = contexts.get(contextIx);\n Map<String, ImmutableList<Vertex>> sourceGroups = FpKit.filterAndGroupingBy(currentSourceVertices,\n v -> finalCurrentContext.filter(v, sourceGraph),\n v -> finalCurrentContext.idForVertex(v, sourceGraph));\n Map<String, ImmutableList<Vertex>> targetGroups = FpKit.filterAndGroupingBy(currentTargetVertices,\n v -> finalCurrentContext.filter(v, targetGraph),\n v -> finalCurrentContext.idForVertex(v, targetGraph));\n\n\n List<String> deletedContexts = new ArrayList<>();\n List<String> insertedContexts = new ArrayList<>();\n List<String> sameContexts = new ArrayList<>();\n Util.diffNamedList(sourceGroups.keySet(), targetGroups.keySet(), deletedContexts, insertedContexts, sameContexts);\n\n // for each unchanged context we descend recursively into\n for (String sameContext : sameContexts) {\n ImmutableList<Vertex> sourceVerticesInContext = sourceGroups.get(sameContext);\n ImmutableList<Vertex> targetVerticesInContext = targetGroups.get(sameContext);\n\n List<String> currentContextId = concat(contextId, sameContext);\n if (contexts.size() > contextIx + 1) {\n calcPossibleMappingImpl(sourceVerticesInContext, targetVerticesInContext, currentContextId, contextIx + 1, contexts, usedSourceVertices, usedTargetVertices, typeNameForDebug);\n }\n /**\n * Either there was no context segment left or not all vertices were relevant for\n * Either way: fill up with isolated vertices and record as possible mapping\n */\n Set<Vertex> notUsedSource = new LinkedHashSet<>(sourceVerticesInContext);\n notUsedSource.removeAll(usedSourceVertices);\n Set<Vertex> notUsedTarget = new LinkedHashSet<>(targetVerticesInContext);\n notUsedTarget.removeAll(usedTargetVertices);\n\n possibleMappings.putPossibleMappings(currentContextId, notUsedSource, notUsedTarget, typeNameForDebug);\n usedSourceVertices.addAll(notUsedSource);\n usedTargetVertices.addAll(notUsedTarget);\n }\n\n /**\n * update the used vertices with the deleted and inserted contexts\n */\n Set<Vertex> possibleSourceVertices = new LinkedHashSet<>();\n for (String deletedContext : deletedContexts) {\n ImmutableList<Vertex> vertices = sourceGroups.get(deletedContext);\n for (Vertex sourceVertex : vertices) {\n if (!usedSourceVertices.contains(sourceVertex)) {\n possibleSourceVertices.add(sourceVertex);\n }\n }\n usedSourceVertices.addAll(vertices);\n }\n\n Set<Vertex> possibleTargetVertices = new LinkedHashSet<>();\n for (String insertedContext : insertedContexts) {\n ImmutableList<Vertex> vertices = targetGroups.get(insertedContext);\n for (Vertex targetVertex : vertices) {\n if (!usedTargetVertices.contains(targetVertex)) {\n possibleTargetVertices.add(targetVertex);\n }\n }\n usedTargetVertices.addAll(vertices);\n }\n if (contextId.size() == 0) {\n contextId = singletonList(typeNameForDebug);\n }\n possibleMappings.putPossibleMappings(contextId, possibleSourceVertices, possibleTargetVertices, typeNameForDebug);\n }", "public static CharsToNameCanonicalizer m24344a() {\n long currentTimeMillis = System.currentTimeMillis();\n return m24345a((((int) currentTimeMillis) + ((int) (currentTimeMillis >>> 32))) | 1);\n }", "public static void createTempMapsetName() {\r\n UUID id;\r\n String tmpPrefix;\r\n String tmpSuffix;\r\n String tmpBase;\r\n String tmpFolder;\r\n\r\n id = UUID.randomUUID();\r\n tmpPrefix = new String(GrassUtils.TEMP_PREFIX);\r\n tmpSuffix = new String(\"_\" + id);\r\n tmpBase = new String(System.getProperty(\"java.io.tmpdir\"));\r\n if (tmpBase.endsWith(File.separator)) {\r\n tmpFolder = new String(tmpBase + tmpPrefix + tmpSuffix.replace('-', '_') + File.separator + \"user\");\r\n }\r\n else {\r\n tmpFolder = new String(tmpBase + File.separator + tmpPrefix + tmpSuffix.replace('-', '_') + File.separator + \"user\");\r\n }\r\n m_sGrassTempMapsetFolder = tmpFolder;\r\n\r\n }", "@Test\n public void testMasterCrashDuringMetaMigration() throws Exception {\n final byte[] FAMILY = Bytes.toBytes(\"family\");\n HTableDescriptor htd = new HTableDescriptor(TableName.valueOf\n (\"testMasterCrashDuringMetaMigration\"));\n HColumnDescriptor hcd = new HColumnDescriptor(FAMILY);\n htd.addFamily(hcd);\n Configuration conf = TEST_UTIL.getConfiguration();\n // Create 10 New regions.\n createMultiRegionsWithPBSerialization(conf, htd.getTableName().getName(), 10);\n // Create 10 Legacy regions.\n createMultiRegionsWithWritableSerialization(conf,\n htd.getTableName().getName(), 10);\n HConnection masterHConnection =\n TEST_UTIL.getMiniHBaseCluster().getMaster().getConnection();\n // Erase the current version of root meta for this test.\n undoVersionInRoot();\n\n MetaTableAccessor.fullScanMetaAndPrint(masterHConnection);\n LOG.info(\"Meta Print completed.testUpdatesOnMetaWithLegacyHRI\");\n\n long numMigratedRows =\n MetaMigrationConvertingToPB.updateMetaIfNecessary(\n TEST_UTIL.getHBaseCluster().getMaster());\n assertEquals(numMigratedRows, 10);\n\n // Assert that the flag in ROOT is updated to reflect the correct status\n boolean metaUpdated = MetaMigrationConvertingToPB.isMetaTableUpdated(masterHConnection);\n assertEquals(true, metaUpdated);\n\n verifyMetaRowsAreUpdated(masterHConnection);\n\n LOG.info(\"END testMasterCrashDuringMetaMigration\");\n }", "private void processTilesetMap() {\r\n for (int t = 0; t < this.getTileSetCount(); t++) {\r\n TileSet tileSet = this.getTileSet(t);\r\n this.tilesetNameToIDMap.put(tileSet.name, t);\r\n }\r\n }", "protected void unmarshal_friendly_mainshock (MarshalReader reader, String name) {\n\t\treader.unmarshalMapBegin (name);\n\t\tString mainshock_utc;\n\n\t\tmainshock_utc = reader.unmarshalString (\"utc\" );\n\t\tmainshock_time = reader.unmarshalLong (\"time\" );\n\t\tmainshock_mag = reader.unmarshalDouble (\"mag\" );\n\t\tmainshock_lat = reader.unmarshalDouble (\"lat\" );\n\t\tmainshock_lon = reader.unmarshalDouble (\"lon\" );\n\t\tmainshock_depth = reader.unmarshalDouble (\"depth\");\n\n\t\treader.unmarshalMapEnd ();\n\t\treturn;\n\t}", "@Test\n public void fsckMetricsInconsistentFwdAndDupeRev() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 1});\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(5, errors);\n }", "public static void renameLabels(ProbabilisticAutomata automaton, String... fromTo) {\n\t\tHashMap<String, String> changes = new HashMap<>();\n\t\tfor (int i=0; i<fromTo.length; i += 2) {\n\t\t\tchanges.put(fromTo[i], fromTo[i + 1]);\n\t\t}\n\t\tHashMap<Integer, String> newMapping = new HashMap<>();\n\t\tfor (Entry<Integer, String> mapping : automaton.getTransitionLabels().map().entrySet()) {\n\t\t\tif (changes.containsKey(mapping.getValue())) {\n\t\t\t\tnewMapping.put(mapping.getKey(), changes.get(mapping.getValue()));\n\t\t\t} else {\n\t\t\t\tnewMapping.put(mapping.getKey(), mapping.getValue());\n\t\t\t}\n\t\t}\n\t\tautomaton.getTransitionLabels().clear();\n\t\tautomaton.getTransitionLabels().map().putAll(newMapping);\n\t\treturn;\n\t}", "private void setProperlyOrderedPrefixNamePairs(String[] prefixMatchArray){\n prefixMatchArray[0] = repositoryWithDualKeyNCategory.isKey2(prefixMatchArray[0]) ? repositoryWithDualKeyNCategory.getKey1FromKey2(prefixMatchArray[0]) : prefixMatchArray[0];\n prefixMatchArray[1] = repositoryWithDualKeyNCategory.isKey2(prefixMatchArray[0]) ? prefixMatchArray[0] : repositoryWithDualKeyNCategory.getKey2FromKey1(prefixMatchArray[0]);\n }", "private void updateNotesDomainNames(List<String> userUnids) {\n final String METHOD = \"updateNotesDomainNames\";\n LOGGER.entering(CLASS_NAME, METHOD);\n\n long timeStart = System.currentTimeMillis();\n\n int count = 0;\n for (String unid : userUnids) {\n if (count++ % NCCONST.GC_INVOCATION_INTERVAL == 0) {\n Util.invokeGC();\n }\n\n NotesDocument doc = getDocumentByUnid(directoryDatabase, unid);\n if (doc == null) {\n LOGGER.log(Level.FINEST, \"Document [{0}] is not found in {1} database\",\n new Object[] {unid, getDatabaseFilePath(directoryDatabase)});\n } else {\n try {\n Vector fullNames = doc.getItemValue(NCCONST.PITM_FULLNAME);\n if (fullNames.size() == 0) {\n continue;\n }\n // Create domains/OUs as groups in H2 if not existed and \n // update domain cache\n List<String> canonicalOUs = notesDomainNames\n .computeExpandedWildcardDomainNames((String) fullNames.get(0));\n verifyMultiDomainsExist(canonicalOUs, true);\n } catch (RepositoryException re) {\n LOGGER.log(Level.WARNING, \n \"Failed to update Notes domain names for person document [\"\n + unid + \"]\", re);\n } finally {\n Util.recycle(doc);\n }\n }\n }\n\n long timeFinish = System.currentTimeMillis();\n LOGGER.log(Level.FINEST, \"Update Notes domain cache [{0}ms]: {1}\",\n new Object[] {(timeFinish - timeStart), notesDomainNames});\n LOGGER.exiting(CLASS_NAME, METHOD);\n }", "protected void renameAliasReference(String from, String to)\n {\n if(castor.getCastorRelationChoice().getOneToMany().getFromAlias().equals(from))\n castor.getCastorRelationChoice().getOneToMany().setFromAlias(to);\n \n if(castor.getCastorRelationChoice().getOneToMany().getToAlias().equals(from))\n castor.getCastorRelationChoice().getOneToMany().setToAlias(to);\n }", "@Test\n public void prefixTrimNotReachingSequencer() throws Exception {\n final int tableSize = PARAMETERS.NUM_ITERATIONS_LOW;\n CorfuRuntime rt = getNewRuntime();\n\n TestRule dropSequencerTrim = new TestRule()\n .requestMatches(msg -> msg.getPayload().getPayloadCase()\n .equals(CorfuMessage.RequestPayloadMsg.PayloadCase.SEQUENCER_TRIM_REQUEST))\n .drop();\n addClientRule(rt, dropSequencerTrim);\n\n try {\n PersistentCorfuTable<String, Long> tableA = openTable(rt, streamNameA);\n PersistentCorfuTable<String, Long> tableB = openTable(rt, streamNameB);\n\n // thread 1: populates the maps with mapSize items\n scheduleConcurrently(1, ignored_task_num -> {\n populateMaps(tableSize, tableA, tableB);\n });\n\n // thread 2: periodic checkpoint of the maps, repeating ITERATIONS_VERY_LOW times,\n // and immediate prefix-trim of the log up to the checkpoint position\n scheduleConcurrently(1, ignored_task_num -> {\n mapCkpointAndTrim(rt, tableA, tableB);\n });\n\n // thread 3: repeated ITERATION_LOW times starting a fresh runtime, and instantiating the maps.\n // they should rebuild from the latest checkpoint (if available).\n // performs some sanity checks on the map state\n\n // In this test checkpoints and trims are happening in a loop for several iterations,\n // so a trim exception can occur if after loading from the latest checkpoint,\n // updates to the stream have been already trimmed (1st trimmedException), the stream\n // is reset, and on the second iteration the same scenario can happen (2nd trimmedException)\n // which is the total number of retries.\n scheduleConcurrently(PARAMETERS.NUM_ITERATIONS_LOW, ignored_task_num -> {\n validateMapRebuild(tableSize, false, true);\n });\n\n executeScheduled(PARAMETERS.CONCURRENCY_SOME, PARAMETERS.TIMEOUT_LONG);\n\n // Verify that last trim cycle completed (async task) before validating map rebuild\n Token currentTrimMark = Token.UNINITIALIZED;\n while(currentTrimMark.getSequence() != lastValidCheckpoint.getSequence() + 1L) {\n currentTrimMark = getNewRuntime().getAddressSpaceView().getTrimMark();\n }\n\n // finally, after all three threads finish, again we start a fresh runtime and instantiate the maps.\n // This time we check that the new map instances contain all values\n validateMapRebuild(tableSize, true, false);\n } finally {\n rt.shutdown();\n }\n }", "private SymbolTable<String, SymbolData> transform(SymbolTable<String, SymbolData> symbolTable) throws Exception {\n for (String name : graph.reverseTopologicalSort()) {\n //log.debug(name);\n SymbolData symbolData = symbolTable.get(name);\n String json = symbolData.getJson();\n //log.debug(json);\n while(true) {\n Optional<Position> position = referenceDetector.detectFirstReference(json);\n //log.debug(json + position.isPresent());\n if(!position.isPresent()) break;\n Position pos = position.get();\n String jsonTobeReplaced = symbolTable.get(pos.getReferenceName().substring(1)).getJson();\n //log.debug(jsonTobeReplaced);\n json = json.substring(0, pos.getFrom())+jsonTobeReplaced+json.substring(pos.getTo());\n }\n log.debug(json);\n symbolData.setJson(json);\n }\n\n return symbolTable;\n }", "public void unsetDirectForward()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DIRECTFORWARD$14, 0);\n }\n }", "protected void COH9787Helper(String sCacheName)\n {\n NamedCache cache = getNamedCache(sCacheName);\n SyntheticDeleteListener sdl = new SyntheticDeleteListener();\n\n cache.put(MapListenerTests.KEY, MapListenerTests.VALUE);\n cache.addMapListener(sdl);\n cache.invoke(MapListenerTests.KEY, new COH9787Processor());\n\n Eventually.assertThat(invoking(sdl).isCorrectEvent(), is(true));\n assertFalse(cache.containsKey(MapListenerTests.KEY));\n }", "private void upsertFingerTable(boolean first) {\n LOGGER.fine(\"Upserting Fingertable\");\n int fingerTableSize = (int) (Math.log(IDSPACE) / Math.log(2));\n for (int i = 0; i < fingerTableSize; i++) {\n int lookupID = (id + (int) (Math.pow(2, i))) % IDSPACE;\n if (first) {\n fingerTable.add(new Finger(lookupID, null));\n } else {\n try {\n performLookup(getSuccessor(), lookupID, address, new JSONProperties(\"linear\", 0, false));\n } catch (NodeOfflineException e) {\n LOGGER.severe(\"upsertFingerTable failed. \" + getSuccessor() + \" is offline\");\n }\n }\n }\n }", "private void checkMapKeyToNode(Affinity testAff, Affinity aff) {\n for (int i = 0; i < 10000; i++) {\n assertEquals(testAff.mapKeyToNode(i).id(), aff.mapKeyToNode(i).id());\n\n checkEqualCollection(testAff.mapKeyToPrimaryAndBackups(i), aff.mapKeyToPrimaryAndBackups(i));\n }\n }", "private String fixName(String name, String prefix)\n {\n if (name.startsWith(prefix))\n return name.substring(prefix.length());\n return FIXME_INVALID_PREFIX + name;\n }", "private void renameRoot(String id, VJoint avatarAnimationRootJoint )\r\n {\r\n //ensure appropriate IDs: the Sid should be Hanim.HumanoidRoot; ID should be unique for this particular virtual human!\r\n \r\n avatarAnimationRootJoint.setId(Hanim.HumanoidRoot+\"_\"+id);\r\n avatarAnimationRootJoint.setSid(Hanim.HumanoidRoot);\r\n avatarAnimationRootJoint.setName(\"The \" + Hanim.HumanoidRoot +\" \"+id);\r\n }", "public static String makeUniqueName( String root )\n {\n if ( null == root || root.trim().length() == 0 )\n root = \"rxname\";\n int count;\n synchronized ( getInstance().getClass())\n {\n count = ms_counter++;\n }\n return root + count;\n }", "void populatePidToHolderMap() {\n\t\tSet<Integer> visited = new HashSet<Integer>();\n\t\tQueue<Integer> visitQueue = new LinkedList<Integer>();\n\t\tvisitQueue.add(pid);\n\t\tvisited.add(pid);\n\t\twhile(!visitQueue.isEmpty()) {\n\t\t\tint nodePid = visitQueue.poll();\n\t\t\tList<Integer> neighborList = neighborMap.get(nodePid);\n\t\t\tfor (int neighborPid : neighborList) {\n\t\t\t\tif (!visited.contains(neighborPid)) {\n\t\t\t\t\tpidToHolderMap.put(neighborPid, nodePid);\n\t\t\t\t\tvisitQueue.add(neighborPid);\n\t\t\t\t\tvisited.add(neighborPid);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private HashMap<Transition, ArrayList<Transition>> fusionSeriesTransitions(\n\t\t\tPetriNet newPN, ArrayList nodes, ArrayList placesToExamine,\n\t\t\tPetriNet oldPN) {\n\t\tHashMap<Transition, ArrayList<Transition>> mappingActivityToOldTransitions = new HashMap<Transition, ArrayList<Transition>>();\n\t\tArrayList<Transition> mergedTransitions = new ArrayList<Transition>();\n\t\tif (nodes.size() == 5) {\n\t\t\t// check whether the in- and outdegree of the places are 1\n\t\t\t// check whether the indegree of the last two transitions is 1\n\t\t\tPlace p1 = (Place) nodes.get(1);\n\t\t\tPlace p2 = (Place) nodes.get(3);\n\t\t\tTransition t2 = (Transition) nodes.get(2);\n\t\t\tTransition t3 = (Transition) nodes.get(4);\n\t\t\tif (p1.inDegree() == 1 && p1.outDegree() == 1 && p2.inDegree() == 1\n\t\t\t\t\t&& p2.outDegree() == 1 && t2.inDegree() == 1\n\t\t\t\t\t&& t3.inDegree() == 1) {\n\t\t\t\tTransition t1 = (Transition) nodes.get(0);\n\t\t\t\t// find the transitions in the old PN that are going to be\n\t\t\t\t// merged\n\t\t\t\tTransition t1Old = oldPN.findTransition(t1);\n\t\t\t\tmergedTransitions.add(t1Old);\n\t\t\t\tTransition t2Old = oldPN.findTransition(t2);\n\t\t\t\tmergedTransitions.add(t2Old);\n\t\t\t\tTransition t3Old = oldPN.findTransition(t3);\n\t\t\t\tmergedTransitions.add(t3Old);\n\n\t\t\t\t// fusion for t1, p1 and t2\n\t\t\t\tnewPN.delPlace(p1);\n\t\t\t\t// merge t1 and t2\n\t\t\t\tHashSet succT2 = t2.getSuccessors();\n\t\t\t\t// create an edge from t1 to each successor of t2\n\t\t\t\tIterator succs = succT2.iterator();\n\t\t\t\twhile (succs.hasNext()) {\n\t\t\t\t\tPlace successor = (Place) succs.next();\n\t\t\t\t\tPNEdge newEdge = new PNEdge(t1, successor);\n\t\t\t\t\tnewPN.addEdge(newEdge);\n\t\t\t\t}\n\t\t\t\t// remove t2\n\t\t\t\tnewPN.delTransition(t2);\n\n\t\t\t\t// fusion for t1, p2, t3\n\t\t\t\tnewPN.delPlace(p2);\n\t\t\t\t// merge t1 and t3\n\t\t\t\tHashSet succT3 = t3.getSuccessors();\n\t\t\t\t// create an edge from t1 to each successor of t3\n\t\t\t\tIterator succs2 = succT3.iterator();\n\t\t\t\twhile (succs2.hasNext()) {\n\t\t\t\t\tPlace successor = (Place) succs2.next();\n\t\t\t\t\tPNEdge newEdge = new PNEdge(t1, successor);\n\t\t\t\t\tnewPN.addEdge(newEdge);\n\t\t\t\t}\n\t\t\t\t// remove t3\n\t\t\t\tnewPN.delTransition(t3);\n\t\t\t\t//\n\t\t\t\tplacesToExamine.remove(p1);\n\t\t\t\tplacesToExamine.remove(p2);\n\t\t\t\t// rename t1 and remove logevent\n\t\t\t\tt1.setIdentifier(getActivityName(t1));\n\t\t\t\t// report which transitions are merged into an activity\n\t\t\t\tmappingActivityToOldTransitions.put(t1, mergedTransitions);\n\t\t\t\t// make a fake log event for the transition that is now an\n\t\t\t\t// activity\n\t\t\t\tLogEvent fake = new LogEvent(getActivityName(t1), \"none\");\n\t\t\t\tt1.setLogEvent(fake);\n\t\t\t}\n\t\t} else if (nodes.size() == 3) {\n\t\t\t// check whether the in- and outdegree of the place is 1\n\t\t\t// and that the indegree of transition t2 is 1.\n\t\t\tPlace p1 = (Place) nodes.get(1);\n\t\t\tTransition t1 = (Transition) nodes.get(0);\n\t\t\tTransition t2 = (Transition) nodes.get(2);\n\t\t\tif ((p1.inDegree() == 1 && p1.outDegree() == 1)\n\t\t\t\t\t&& t2.inDegree() == 1) {\n\n\t\t\t\t// find the transitions in the old PN that are going to be\n\t\t\t\t// merged\n\t\t\t\tTransition t1Old = oldPN.findTransition(t1);\n\t\t\t\tmergedTransitions.add(t1Old);\n\t\t\t\tTransition t2Old = oldPN.findTransition(t2);\n\t\t\t\tmergedTransitions.add(t2Old);\n\n\t\t\t\t// fusion for t1, p1 and t2\n\t\t\t\tnewPN.delPlace(p1);\n\t\t\t\t// merge t1 and t2\n\t\t\t\tHashSet succT2 = t2.getSuccessors();\n\t\t\t\t// create an edge from t1 to each successor of t2\n\t\t\t\tIterator succs = succT2.iterator();\n\t\t\t\twhile (succs.hasNext()) {\n\t\t\t\t\tPlace successor = (Place) succs.next();\n\t\t\t\t\tPNEdge newEdge = new PNEdge(t1, successor);\n\t\t\t\t\tnewPN.addEdge(newEdge);\n\t\t\t\t}\n\t\t\t\t// remove t2\n\t\t\t\tnewPN.delTransition(t2);\n\n\t\t\t\t// rename t1 and remove logevent\n\t\t\t\tt1.setIdentifier(getActivityName(t1));\n\t\t\t\t// report which transitions are merged into an activity\n\t\t\t\tmappingActivityToOldTransitions.put(t1, mergedTransitions);\n\t\t\t\t// make a fake log event for the transition that is now an\n\t\t\t\t// activity\n\t\t\t\tLogEvent fake = new LogEvent(getActivityName(t1), \"none\");\n\t\t\t\tt1.setLogEvent(fake);\n\t\t\t}\n\t\t} else {\n\t\t\t// generate exception\n\t\t}\n\n\t\treturn mappingActivityToOldTransitions;\n\t}", "@Override\n public MultiMap<String, SeriesACLTransition> xapply(MultiMap<String, SeriesACLTransition> mmap,\n String id) throws Exception {\n final TransitionQuery q = TransitionQuery.query().withId(id).withScope(AclScope.Series)\n .withDone(done);\n return mmap.putAll(id, aclService.getTransitions(q).getSeriesTransistions());\n }", "MapType map(List<ReferenceOrderedDatum> rodData, char ref, LocusContext context);", "@Test\n public void testCoh3733()\n {\n doSingleServerTest(\"IdxTestCoh3733\", new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(\"coh3733\");\n\n cache.addIndex(new IndexAwareExtractor()\n {\n public MapIndex createIndex(boolean fOrdered, Comparator comparator, Map mapIndex,\n BackingMapContext ctx)\n {\n MapIndex index = new SimpleMapIndex(this, false, null, ctx)\n {\n protected void removeInverseMapping(Map mapIndex, Object oIxValue, Object oKey)\n {\n Set setKeys = (Set) mapIndex.get(oIxValue);\n\n assertTrue(\"Attempted to remove non-existent index entry\",\n setKeys != null && setKeys.contains(oKey));\n super.removeInverseMapping(mapIndex, oIxValue, oKey);\n }\n };\n mapIndex.put(this, index);\n return index;\n }\n\n public MapIndex destroyIndex(Map mapIndex)\n {\n return (MapIndex) mapIndex.remove(this);\n }\n\n public Object extract(Object oTarget)\n {\n return oTarget;\n }\n }, false, null);\n cache.addMapListener(new MultiplexingMapListener()\n {\n protected void onMapEvent(MapEvent evt)\n {\n fail(\"Observed unexpected event: \" + evt);\n }\n });\n\n cache.remove(\"non-existent-key\");\n\n validateIndex(cache);\n }\n });\n }", "@Test\n public void testReplicaMapAfterDatanodeRestart() throws Exception {\n Configuration conf = new HdfsConfiguration();\n MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf, new File(GenericTestUtils.getRandomizedTempPath())).nnTopology(MiniDFSNNTopology.simpleFederatedTopology(2)).build();\n try {\n cluster.waitActive();\n NameNode nn1 = cluster.getNameNode(0);\n NameNode nn2 = cluster.getNameNode(1);\n Assert.assertNotNull(\"cannot create nn1\", nn1);\n Assert.assertNotNull(\"cannot create nn2\", nn2);\n // check number of volumes in fsdataset\n DataNode dn = cluster.getDataNodes().get(0);\n FsDatasetImpl dataSet = ((FsDatasetImpl) (DataNodeTestUtils.getFSDataset(dn)));\n List<FsVolumeSpi> volumes = null;\n try (FsDatasetSpi.FsVolumeReferences referredVols = dataSet.getFsVolumeReferences()) {\n // number of volumes should be 2 - [data1, data2]\n Assert.assertEquals(\"number of volumes is wrong\", 2, referredVols.size());\n volumes = new ArrayList(referredVols.size());\n for (FsVolumeSpi vol : referredVols) {\n volumes.add(vol);\n }\n }\n ArrayList<String> bpList = new ArrayList(Arrays.asList(cluster.getNamesystem(0).getBlockPoolId(), cluster.getNamesystem(1).getBlockPoolId()));\n Assert.assertTrue(\"Cluster should have 2 block pools\", ((bpList.size()) == 2));\n createReplicas(bpList, volumes, cluster.getFsDatasetTestUtils(dn));\n ReplicaMap oldReplicaMap = new ReplicaMap(new AutoCloseableLock());\n oldReplicaMap.addAll(dataSet.volumeMap);\n cluster.restartDataNode(0);\n cluster.waitActive();\n dn = cluster.getDataNodes().get(0);\n dataSet = ((FsDatasetImpl) (dn.getFSDataset()));\n testEqualityOfReplicaMap(oldReplicaMap, dataSet.volumeMap, bpList);\n } finally {\n cluster.shutdown();\n }\n }", "@Override\n public boolean noLastMapVersion() {\n // non implementato\n return false;\n }", "public void resetTransforms() { \r\n transforms2 = new HashMap<BundlesDT.DT,Map<String,Map<String,String>>>(); \r\n transforms2.put(BundlesDT.DT.IPv4, new HashMap<String,Map<String,String>>());\r\n transforms2.put(BundlesDT.DT.IPv4CIDR, new HashMap<String,Map<String,String>>());\r\n if (transforms.containsKey(BundlesDT.DT.IPv4)) {\r\n Iterator<String> it = transforms.get(BundlesDT.DT.IPv4).keySet().iterator();\r\n while (it.hasNext()) transforms2.get(BundlesDT.DT.IPv4).put(it.next(), new HashMap<String,String>());\r\n }\r\n if (transforms.containsKey(BundlesDT.DT.IPv4CIDR)) {\r\n sorted_cidr_trans = new HashMap<String,CIDRRec[]>();\r\n Iterator<String> it = transforms.get(BundlesDT.DT.IPv4CIDR).keySet().iterator();\r\n while (it.hasNext()) {\r\n String trans = it.next();\r\n transforms2.get(BundlesDT.DT.IPv4).put(trans, new HashMap<String,String>());\r\n transforms2.get(BundlesDT.DT.IPv4CIDR).put(trans, new HashMap<String,String>());\r\n\tCIDRRec recs[] = new CIDRRec[transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).keySet().size()];\r\n\tIterator<String> it_cidr = transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).keySet().iterator();\r\n\tfor (int i=0;i<recs.length;i++) {\r\n\t String cidr = it_cidr.next();\r\n\t recs[i] = new CIDRRec(cidr,transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).get(cidr));\r\n }\r\n\tArrays.sort(recs);\r\n\tsorted_cidr_trans.put(trans,recs);\r\n }\r\n }\r\n }", "private void setName(){\r\n\t\tString tagString = new String();\r\n\t\tfor (String k : tags.keySet()){\r\n\t\t\ttagString += \"@\" + k;\r\n\t\t}\r\n\t\tString newName = originalName + tagString +\".\"+ extension;\r\n\t\tif (!newName.equals(name)){\r\n\t\t\tremovePrevNames(newName); //if the new name is a previous name\r\n\t\t\taddPrevNames(name);\r\n\t\t\tupdateLog(newName);\r\n\t\t\tname = newName;\r\n\t\t\t//notify the tag observer\r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers();\r\n\t\t\tclearChanged();\r\n\t\t}\r\n\t}", "private void finalizeOutOfTypeSystemFeatures() {\n // remap ref features\n for (List<Pair<String, Object>> attrs : outOfTypeSystemData.extraFeatureValues.values()) {\n for (Pair<String, Object> p : attrs) {\n String sv = (p.u instanceof String) ? (String) p.u : \"\";\n if (p.t.startsWith(\"_ref_\")) {\n int val = Integer.parseInt(sv);\n if (val >= 0) // negative numbers represent null and are left unchanged\n {\n // attempt to locate target in type system\n FSInfo fsValInfo = fsTree.get(val);\n if (fsValInfo != null) {\n p.u = fsValInfo.fs;\n } else\n // out of type system - remap by prepending letter\n {\n p.u = \"a\" + val;\n }\n }\n }\n }\n }\n }", "void onRemap(String id);", "@Test\n public void fsckMetricsMissingReverse() throws Exception {\n storage.flushColumn(UID_TABLE, new byte[] {0, 0, 1}, NAME_FAMILY, METRICS);\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(1, errors);\n }", "private String calcIndexName(NamePool pool, \n String fingerName,\n List definitions,\n Configuration config) \n {\n StringBuffer sbuf = new StringBuffer();\n sbuf.append(\"key|\" + fingerName);\n for (int k = 0; k < definitions.size(); k++) \n {\n KeyDefinition def = (KeyDefinition)definitions.get(k);\n \n // Capture the match pattern.\n String matchStr = def.getMatch().toString();\n sbuf.append(\"|\" + Long.toString(Hash64.hash(matchStr), 16));\n \n // Capture the 'use' expression\n if (def.getUse() instanceof Expression) \n {\n // Saxon likes to dump debug stuff to a PrintStream, and we need to\n // capture to a buffer.\n //\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n PrintStream ps = new PrintStream(bytes);\n \n ((Expression)def.getUse()).display(10, ps, config);\n ps.flush();\n String useStr = bytes.toString();\n sbuf.append(\"|\" + Long.toString(Hash64.hash(useStr), 16));\n }\n else\n sbuf.append(\"|non-exp\");\n } // for k\n \n return sbuf.toString();\n }", "private void m91737K() {\n String str = this.f73944a;\n boolean z = true;\n if (this.f73953m != 1) {\n z = false;\n }\n C28141am.m92411a(new C28311ag(str, z), new C28312ah(this.f73949f.hashCode()), this.f73944a);\n }", "@Override\r\n public NavigableMap<K, V> headMap(final K toKey, final boolean inclusive) {\n return null;\r\n }", "public void makePreferredOTTOLRelationshipsNOConflicts() {\n \n // TraversalDescription CHILDOF_TRAVERSAL = Traversal.description()\n // .relationships(RelType.TAXCHILDOF, Direction.INCOMING);\n \n // get the start point\n Node life = getLifeNode();\n System.out.println(life.getProperty(\"name\"));\n \n Transaction tx = beginTx();\n addToPreferredIndexes(life, ALLTAXA);\n HashSet<Long> traveled = new HashSet<Long>();\n int nNewRels = 0;\n try {\n // walk out to the tips from the base of the tree\n for (Node n : TAXCHILDOF_TRAVERSAL.traverse(life).nodes()) {\n if (n.hasRelationship(Direction.INCOMING, RelType.TAXCHILDOF) == false) {\n \n // when we hit a tip, start walking back\n Node curNode = n;\n while (curNode.hasRelationship(Direction.OUTGOING, RelType.TAXCHILDOF)) {\n Node startNode = curNode;\n if (traveled.contains((Long)startNode.getId())){\n \tbreak;\n }else{\n \ttraveled.add((Long)startNode.getId());\n }\n Node endNode = null;\n \n // if the current node already has a preferred relationship, we will just follow it\n if (startNode.hasRelationship(Direction.OUTGOING, RelType.PREFTAXCHILDOF)) {\n Relationship prefRel = startNode.getSingleRelationship(RelType.PREFTAXCHILDOF, Direction.OUTGOING);\n \n // make sure we don't get stuck in an infinite loop (should not happen, could do weird things to the graph)\n if (prefRel.getStartNode().getId() == prefRel.getEndNode().getId()) {\n System.out.println(\"pointing to itself \" + prefRel + \" \" + prefRel.getStartNode().getId() + \" \" + prefRel.getEndNode().getId());\n break;\n }\n \n // prepare to move on\n endNode = prefRel.getEndNode();\n \n } else {\n \n // if there is no preferred rel then they all point to the same end node; just follow the first non-looping relationship\n for (Relationship rel : curNode.getRelationships(RelType.TAXCHILDOF, Direction.OUTGOING)) {\n if (rel.getStartNode().getId() == rel.getEndNode().getId()) {\n System.out.println(\"pointing to itself \" + rel + \" \" + rel.getStartNode().getId() + \" \" + rel.getEndNode().getId());\n break;\n } else {\n endNode = rel.getEndNode();\n break;\n }\n }\n \n // if we found a dead-end, die\n if (endNode == null) {\n System.out.println(curNode.getProperty(\"name\"));\n System.out.println(\"Strange, this relationship seems to be pointing at a nonexistent node. Quitting.\");\n System.exit(0);\n }\n \n // create preferred relationships\n curNode.createRelationshipTo(endNode, RelType.PREFTAXCHILDOF);\n curNode.createRelationshipTo(endNode, RelType.TAXCHILDOF).setProperty(\"source\", \"ottol\");\n nNewRels += 1;\n }\n \n if (startNode == endNode) {\n System.out.println(startNode);\n System.out.println(\"The node seems to be pointing at itself. This is a problem. Quitting.\");\n System.exit(0);\n \n // prepare for next iteration\n } else {\n curNode = endNode;\n addToPreferredIndexes(startNode, ALLTAXA);\n }\n }\n }\n \n if (nNewRels % transaction_iter == 0) {\n System.out.println(nNewRels);\n // tx.success();\n // tx.finish();\n // tx = beginTx();\n }\n }\n tx.success();\n } finally {\n tx.finish();\n }\n }", "public void setIdRoot(String theMapToRoot) {\n\t \r\n }", "private void checkReverseMap() throws ApplicationException {\n if (reverseMap == null) {\n reverseMap = Data.makeReverseMap(networkIds);\n }\n }", "public void addTwoStepForwardToPositionCache(Key currentKey) {\n\n\t\tKey newKey = createTwoStepForwardFromCurrentKey(currentKey);\n\n\t\t// Gets current values stored with key and adds the extra position\n\t\tSet<Key> currentKeyMapping = positionCache.get(currentKey);\n\t\tcurrentKeyMapping.add(newKey);\n\t\tpositionCache.put(currentKey, currentKeyMapping);\n\t}", "@SuppressWarnings(\"unchecked\") // Needed to stop Eclipse whining\n private void resetWithHole() {\n Entry<K, V>[] entries = new Entry[] {a, c};\n super.resetMap(entries);\n navigableMap = (NavigableMap<K, V>) getMap();\n }", "@Test\n public void fsckFIXTagkMissingForward() throws Exception {\n storage.flushColumn(\"host\".getBytes(MockBase.ASCII()), ID_FAMILY, TAGK);\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, true, false);\n assertEquals(0, errors);\n assertNull(storage.getColumn(new byte [] {0, 0, 1}, NAME_FAMILY, TAGK));\n }" ]
[ "0.52703387", "0.5196832", "0.5035398", "0.49576107", "0.4942519", "0.47889587", "0.4768072", "0.47507313", "0.46815053", "0.46387318", "0.46322757", "0.45830774", "0.45737875", "0.45659414", "0.45618215", "0.4544226", "0.45350897", "0.45343238", "0.4521823", "0.45051828", "0.44814432", "0.4456937", "0.44543853", "0.44519857", "0.4445812", "0.44310537", "0.4425921", "0.44149065", "0.44078833", "0.439998", "0.43954483", "0.4385852", "0.43845457", "0.43766496", "0.43724868", "0.43512106", "0.43440238", "0.43426198", "0.43397203", "0.43331105", "0.4320878", "0.43201864", "0.4315734", "0.43113172", "0.43096778", "0.43096063", "0.4306655", "0.42997086", "0.42989704", "0.42967787", "0.42965075", "0.42955196", "0.42840654", "0.42769536", "0.42692977", "0.42608255", "0.425787", "0.42551085", "0.42390916", "0.4238276", "0.42258516", "0.42252022", "0.42161265", "0.42149875", "0.42112005", "0.4205858", "0.42038313", "0.41989285", "0.41920456", "0.41869396", "0.4185721", "0.41824698", "0.41820768", "0.4181873", "0.41771147", "0.4166914", "0.41640267", "0.41624263", "0.41510668", "0.41494814", "0.4147036", "0.4147033", "0.41468155", "0.41460872", "0.41433948", "0.41398254", "0.4134906", "0.41346362", "0.4130612", "0.41269147", "0.4121929", "0.41151342", "0.41148782", "0.41136202", "0.4108994", "0.41068122", "0.4106703", "0.41063753", "0.4102102", "0.41014424", "0.41003445" ]
0.0
-1
/ 3 Duplicate Forward (really inconsistent) where the reverse map dosen't match the name of the forward map. Forward mapping bar > 02 is diff than reverse: 02 > wtf Duplicate forward mapping bar > 02 and null > wtf Reverse mapping missing forward mapping bar > 02 01 > foo foo > 01 02 > wtf bar > 02 ^^^ FIX Restore reverse map 02 > bar. wtf may have been deleted. It will be reassigned the next time it's written.
@Test public void fsckMetricsDuplicateForward() throws Exception { storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, METRICS, "wtf".getBytes(MockBase.ASCII())); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(2, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkReverseMap() throws ApplicationException {\n if (reverseMap == null) {\n reverseMap = Data.makeReverseMap(networkIds);\n }\n }", "private void removeTwoStepForwardFromPositionCache(Key currentKey) {\n\n\t\t// Create a two square forward position\n\t\tKey newKey =createTwoStepForwardFromCurrentKey(currentKey);\n\n\t\t// Gets current values stored with key and adds the extra position\n\t\tSet<Key> currentKeyMapping = positionCache.get(currentKey);\n\n\t\t// Remove key if it exists\n\t\tif (currentKeyMapping.contains(newKey)) {\n\t\t\tcurrentKeyMapping.remove(newKey);\n\t\t}\n\n\t\tpositionCache.put(currentKey, currentKeyMapping);\n\t}", "void remap()\n\t\t{\n\t\t\tif(nextMap == null)\n\t\t\t\treturn;\n\t\t\tnextMap = newNodeMap(nextMap);\n\t\t\tfor(Node<T> node : nextMap.values())\n\t\t\t\tnode.remap();\n\t\t}", "public static ConnectionMap backtrack(final ConnectionMap map, int index) {\r\n\t\t// Returns null if first variable has no possible values\r\n\t\tif (map.domains.get(0).size()==0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// If the possible values for the index are null step back\r\n\t\tif (map.domains.get(index).size()==0) {\r\n\t\t\t//System.out.println(\"BACKTRACK!\");\r\n\t\t\tArrayList<Integer> newRow = new ArrayList<Integer>();\r\n\t\t\tfor (int k = 0; k < map.numColors; k++) {\r\n\t\t\t\tnewRow.add(k);\r\n\t\t\t}\r\n\t\t\tmap.domains.set(index, newRow);\r\n\t\t\tmap.domains.get(index-1).remove(0);\r\n\t\t\tBacktrackSearch.backtrack(map, index-1);\r\n\t\t}\r\n\t\t// Loops through the possible values for the index\r\n\t\tfor (int j=index; j>=0; j--) {\r\n\t\t\tif(map.connections[index][j]==1 && map.domains.get(index).size()>0) {\r\n\t\t\t\tArrayList<Integer> neighbor = map.domains.get(j);\r\n\t\t\t\tif (neighbor.size() != 0) {\r\n\t\t\t\t\tmap.domains.get(index).remove(neighbor.get(0));\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// If the possible values for the index are null step back\r\n\t\t\tif (map.domains.get(index).size()==0) {\r\n\t\t\t\t//System.out.println(\"BACKTRACK!\");\r\n\t\t\t\tArrayList<Integer> newRow = new ArrayList<Integer>();\r\n\t\t\t\tfor (int k = 0; k < map.numColors; k++) {\r\n\t\t\t\t\tnewRow.add(k);\r\n\t\t\t\t}\r\n\t\t\t\tmap.domains.set(index, newRow);\r\n\t\t\t\tmap.domains.get(index-1).remove(0);\r\n\t\t\t\tBacktrackSearch.backtrack(map, index-1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// If the index is not the last index step forward\r\n\t\tif (index < map.domains.size()-1) {\r\n\t\t\tBacktrackSearch.backtrack(map, index+1);\r\n\t\t}\r\n\t\t// Returns null if first variable has no possible values\r\n\t\tif (map.domains.get(0).size()==0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// Removes end of colors\r\n\t\tfor(int i = 0; i < map.domains.size(); i++) {\r\n\t\t\tfor(int j = 1; j < map.domains.get(i).size(); j++) {\r\n\t\t\t\tmap.domains.get(i).remove(j);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Returns map\r\n\t\treturn map;\t\r\n\t}", "protected AssociationList reverseAssoc(LexBIGService lbsvc, LexBIGServiceConvenienceMethods lbscm, String scheme,\r\n CodingSchemeVersionOrTag csvt, Association assoc, AssociationList addTo,\r\n Map<String, EntityDescription> codeToEntityDescriptionMap) throws LBException {\r\n\r\n ConceptReference acRef = assoc.getAssociationReference();\r\n AssociatedConcept acFromRef = new AssociatedConcept();\r\n acFromRef.setCodingScheme(acRef.getCodingScheme());\r\n acFromRef.setConceptCode(acRef.getConceptCode());\r\n AssociationList acSources = new AssociationList();\r\n acFromRef.setIsNavigable(Boolean.TRUE);\r\n acFromRef.setSourceOf(acSources);\r\n\r\n // Use cached description if available (should be cached\r\n // for all but original root) ...\r\n if (codeToEntityDescriptionMap.containsKey(acRef.getConceptCode()))\r\n acFromRef.setEntityDescription(codeToEntityDescriptionMap.get(acRef.getConceptCode()));\r\n // Otherwise retrieve on demand ...\r\n else\r\n acFromRef.setEntityDescription(Constructors.createEntityDescription(getCodeDescription(lbsvc, scheme, csvt,\r\n acRef.getConceptCode())));\r\n\r\n AssociatedConceptList acl = assoc.getAssociatedConcepts();\r\n for (AssociatedConcept ac : acl.getAssociatedConcept()) {\r\n // Create reverse association (same non-directional name)\r\n Association rAssoc = new Association();\r\n rAssoc.setAssociationName(assoc.getAssociationName());\r\n\r\n // On reverse, old associated concept is new reference point.\r\n ConceptReference ref = new ConceptReference();\r\n ref.setCodingScheme(ac.getCodingScheme());\r\n ref.setConceptCode(ac.getConceptCode());\r\n rAssoc.setAssociationReference(ref);\r\n\r\n // And old reference is new associated concept.\r\n AssociatedConceptList rAcl = new AssociatedConceptList();\r\n rAcl.addAssociatedConcept(acFromRef);\r\n rAssoc.setAssociatedConcepts(rAcl);\r\n\r\n // Set reverse directional name, if available.\r\n String dirName = assoc.getDirectionalName();\r\n if (dirName != null)\r\n try {\r\n rAssoc.setDirectionalName(lbscm.isForwardName(scheme, csvt, dirName) ? lbscm\r\n .getAssociationReverseName(assoc.getAssociationName(), scheme, csvt) : lbscm\r\n .getAssociationReverseName(assoc.getAssociationName(), scheme, csvt));\r\n } catch (LBException e) {\r\n }\r\n\r\n // Save code desc for future reference when setting up\r\n // concept references in recursive calls ...\r\n codeToEntityDescriptionMap.put(ac.getConceptCode(), ac.getEntityDescription());\r\n\r\n AssociationList sourceOf = ac.getSourceOf();\r\n if (sourceOf != null)\r\n for (Association sourceAssoc : sourceOf.getAssociation()) {\r\n AssociationList pos = reverseAssoc(lbsvc, lbscm, scheme, csvt, sourceAssoc, addTo,\r\n codeToEntityDescriptionMap);\r\n pos.addAssociation(rAssoc);\r\n }\r\n else\r\n addTo.addAssociation(rAssoc);\r\n }\r\n return acSources;\r\n }", "private void removeNoMoreExistingOriginalEdges() {\n for (MirrorEdge mirrorEdge : directEdgeMap.values()) {\n if (!originalGraph.has(mirrorEdge.original)) {\n for (Edge segment : mirrorEdge.segments) {\n mirrorGraph.forcedRemove(segment);\n reverseEdgeMap.remove(segment);\n }\n for (Node bend : mirrorEdge.bends) {\n mirrorGraph.forcedRemove(bend);\n reverseEdgeMap.remove(bend);\n }\n directEdgeMap.remove(mirrorEdge.original);\n }\n }\n }", "@SuppressWarnings(\"unchecked\") // Needed to stop Eclipse whining\n private void resetWithHole() {\n Entry<K, V>[] entries = new Entry[] {a, c};\n super.resetMap(entries);\n navigableMap = (NavigableMap<K, V>) getMap();\n }", "protected ForwardingMap() {}", "void reconstruct(HashMap<Integer, Vertex> h, Vertex next) {\n while (h.containsKey(next.toIdentifier())) {\n next.path = true;\n next = h.get(next.toIdentifier());\n }\n }", "void reconstruct(HashMap<Integer, Vertex> h, Vertex next) {\n while (h.containsKey(next.toIdentifier())) {\n next.path = true;\n next = h.get(next.toIdentifier());\n }\n }", "@Override\r\n public NavigableMap<K, V> descendingMap() {\n return null;\r\n }", "void restoreBefore() {\r\n\t\t\tsurface.basemap.clear();\r\n\t\t\tsurface.basemap.putAll(basemapBefore);\r\n\t\t\tsurface.buildingmap.clear();\r\n\t\t\tsurface.buildingmap.putAll(buildingmapBefore);\r\n\t\t\tsurface.features.clear();\r\n\t\t\tsurface.features.addAll(surfaceBefore);\r\n\t\t\tsurface.buildings.clear();\r\n\t\t\tsurface.buildings.addAll(buildingsBefore);\r\n\t\t}", "public void backUp(){\n backSolenoid.set(DoubleSolenoid.Value.kForward);\n }", "private void updateOriginalEdgesInMirror() {\n for (Edge edge : originalGraph.edges()) {\n if (!directEdgeMap.containsKey(edge)) {\n constructMirrorEdge(edge);\n }\n MirrorEdge mirrorEdge = directEdgeMap.get(edge);\n updateMirrorEdgeBends(edge, mirrorEdge);\n updateMirrorEdgeSegments(mirrorEdge);\n originalAttributesToMirror(edge);\n }\n }", "private void makeInverse() {\n if (_map != null) {\n for (Map.Entry<Integer, Integer> e : _map.entrySet()) {\n _inverse.put(e.getValue(), e.getKey());\n }\n }\n }", "public void SaveUndo(){\r\n if(!IsFalling() && !IsDisappearing()) {\r\n char[][] x = new char[map.length][map[0].length];\r\n for (int i = 0; i < map.length; i++)\r\n for (int j = 0; j < map[i].length; j++)\r\n x[i][j] = this.map[i][j];\r\n UndoMap.add(x);\r\n }\r\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tprivate static <ModelElem extends EObject> ModelElem reverse(Object fortranElem, ModelElem modelElem, Map<Object,Object> mappings) {\r\n\t\t\r\n\t\tEClass modelElemClass = modelElem.eClass();\r\n\t\t\t\r\n\t\t//this is required so that we can conditionally add mappings\r\n\t\t//that succeeded at the end of the method when no recursive\r\n\t\t//call is required (this only occurs at leaves of metamodel tree)\r\n\t\tMap<Object, Object> mappingsToAdd = new IdentityHashMap<Object, Object>();\r\n\t\t\r\n\t\t//assume a successful mapping (required for looking up\r\n\t\t//mappings during recursive calls)\r\n\t\t//mapping will be removed later if it fails\r\n\t\tmappings.put(modelElem, fortranElem);\t\r\n\t\t\r\n\t\t\t\t\t\t\r\n\t\tfor (EStructuralFeature sf : modelElemClass.getEAllStructuralFeatures()) {\r\n\t\t\t\r\n\t\t\tMap<String, Object> keywordMap = Regex.getMappingFromAnnotation(sf);\r\n\t\t\t\r\n\t\t\t/////NEW MAPPING PARSER HERE\r\n\t\t\t\t\t\t\r\n\t\t\tEAnnotation ann = sf.getEAnnotation(\"http://www.earthsystemcog.org/projects/nuopc\");\r\n\t\t\tif (ann != null && ann.getDetails().get(\"mappingNew\") != null) {\r\n\t\t\t\tString mappingNew = ann.getDetails().get(\"mappingNew\");\r\n\t\t\t\t//if (mappingNew != null) {\r\n\t\t\t\tMapping mapping = parseMappingNew(mappingNew);\r\n\t\t\t\tObject fortranContextElem;\r\n\t\t\t\t\r\n\t\t\t\tif (mapping.getContext() != null) {\r\n\t\t\t\t\t//explicit context\r\n\t\t\t\t\tEObject contextElement = EcoreUtils.eGetSFValue(mapping.getContext(), modelElem, true, null);\r\n\t\t\t\t\tfortranContextElem = mappings.get(contextElement);\r\n\t\t\t\t\tif (fortranContextElem == null) {\r\n\t\t\t\t\t\tthrow new RuntimeException(\"No Fortran context for element: \" + contextElement);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tfortranContextElem = fortranElem; //implicit\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tImplicitContextMapping icMapping = mapping.getMapping();\r\n\t\t\t\ticMapping = replacePathExprWithValues(icMapping, modelElem, true);\r\n\t\t\t\t\r\n\t\t\t\tString methodName = icMapping.eClass().getName().toLowerCase();\r\n\t\t\t\t\r\n\t\t\t\t//find method that implements code query\r\n\t\t\t\tMethod method = findREMethod(methodName, fortranContextElem, icMapping);\r\n\t\t\t\tif (method == null) {\r\n\t\t\t\t\tSystem.out.println(\"Method not found: \" + methodName);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tObject result = method.invoke(null, fortranContextElem, icMapping);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tif (method.getReturnType() == String.class ||\r\n\t\t\t\t\t\tmethod.getReturnType().isPrimitive()) {\r\n\t\t\t\t\t\tmodelElem.eSet(sf, result);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Token.class) {\r\n\t\t\t\t\t\tif (result != null) {\r\n\t\t\t\t\t\t\t//String constructor required because of IdentityHashMap\r\n\t\t\t\t\t\t\tString text = new String(((Token)result).getText());\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, text);\r\n\t\t\t\t\t\t\tmappingsToAdd.put(text, result);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t//what should we do here?\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Set.class ||\r\n\t\t\t\t\t\t\t method.getReturnType() == Map.class) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do we have a set of primitives?\r\n\t\t\t\t\t\tif (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEString())) {\r\n\t\t\t\t\t\t\tSet<String> resultSet;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<String>) ((Map) result).keySet();\r\n\t\t\t\t\t\t\t\t//TODO: ignoring PathExprs for now\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<String>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfor (String res : resultSet) {\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(res);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, res);\r\n\t\t\t\t\t\t\t\t\tbreak; //just take first one\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}\r\n\t\t\t\t\t\t//result is a set of objects - either IASTNodes or IFortranASTs\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSet<Object> resultSet = null;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = ((Map) result).keySet();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<Object>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor (Object newFortranElem : resultSet) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//set binding in model\r\n\t\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\t\tMap<PathExpr, String> bindings = ((Map<?, Map<PathExpr, String>>) result).get(newFortranElem);\r\n\t\t\t\t\t\t\t\t\tfor (Entry<PathExpr, String> binding : bindings.entrySet()) {\r\n\t\t\t\t\t\t\t\t\t\tboolean featureSet = EcoreUtils.eSetSFValue(binding.getKey(), newModelElem, binding.getValue());\r\n\t\t\t\t\t\t\t\t\t\tif (!featureSet) {\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Feature not set: \" + binding.getKey());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// set up parent relationship for references (may be removed later)\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//recursive call\r\n\t\t\t\t\t\t\t\tEObject newModelElemRet = reverse(newFortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// if NULL returned, then mapping failed, so remove element from parent\r\n\t\t\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t//TODO: consider replacing with previous value?\r\n\t\t\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (!sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tbreak; // take first one that is not null\r\n\t\t\t\t\t\t\t\t}\t\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\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} // end check for primitives vs. objects in results\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t}\t\t\t\t\t\t\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\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////END OF NEW MAPPING PARSER\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\telse if (keywordMap != null && keywordMap.size() > 0) {\t\r\n\t\t\t\t\r\n\t\t\t\tString methodName = Regex.getMappingTypeFromAnnotation(sf);\r\n\t\t\t\t\r\n\t\t\t\t//populate metavariables\t\t\t\t\t\t\r\n\t\t\t\tfor (Entry<String, Object> entry : keywordMap.entrySet()) {\r\n\t\t\t\t\t//TODO: should we handle different metavariable types here?\r\n\t\t\t\t\t// or just strings?\r\n\t\t\t\t\tif (!entry.getKey().equals(\"_context\") && entry.getValue() instanceof String) {\r\n\t\t\t\t\t\tString val = (String) entry.getValue();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tMatcher match = CodeQuery.P_METAVAR.matcher(val);\r\n\t\t\t\t\t\twhile (match.find()) {\r\n\t\t\t\t\t\t\t//already at parent, so remove one leading ../\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\tString metavar = match.group().substring(1);\r\n\t\t\t\t\t\t\tif (metavar.startsWith(\"../\")) { \r\n\t\t\t\t\t\t\t\tmetavar = metavar.substring(3);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//TODO: decide what to do about NULL_VALUE below\r\n\t\t\t\t\t\t\t\tString replaceVal = EcoreUtils.eGetSFValue(metavar, modelElem, null);\r\n\t\t\t\t\t\t\t\tif (replaceVal != null) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Replacing metavariable: \" + match.group() + \" with val: \" + replaceVal);\r\n\t\t\t\t\t\t\t\t\tentry.setValue(val.replaceAll(match.group(), replaceVal));\r\n\t\t\t\t\t\t\t\t}\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}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tObject fortranContextElem;\r\n\t\t\t\t\r\n\t\t\t\tif (keywordMap.containsKey(\"_context\")) {\r\n\t\t\t\t\t//explicit context provided\r\n\t\t\t\t\tString contextPath = (String) keywordMap.get(\"_context\");\r\n\t\t\t\t\tif (!contextPath.startsWith(\"#..\")) {\r\n\t\t\t\t\t\t//error\r\n\t\t\t\t\t\tSystem.out.println(\"Explicit context path must contain parent node\");\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (contextPath.startsWith(\"#../\")) {\r\n\t\t\t\t\t\tcontextPath = contextPath.substring(4);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (contextPath.startsWith(\"#..\")) {\r\n\t\t\t\t\t\tcontextPath = contextPath.substring(3);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tEObject explicitContextElem;\r\n\t\t\t\t\tif (contextPath.equals(\"\")) {\r\n\t\t\t\t\t\texplicitContextElem = modelElem;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\texplicitContextElem = EcoreUtils.eGetSFValue(contextPath, modelElem, null);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tfortranContextElem = mappings.get(explicitContextElem);\r\n\t\t\t\t\tif (fortranContextElem == null) {\r\n\t\t\t\t\t\tSystem.out.println(\"MAPPED fortran element not found: \" + explicitContextElem);\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t//implicit context\r\n\t\t\t\t\tfortranContextElem = fortranElem;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//find method that implements code query\r\n\t\t\t\tMethod method = null;\r\n\t\t\t\tfor (Method m : CodeQuery.class.getMethods()) {\r\n\t\t\t\t\tif (m.getName().equalsIgnoreCase(methodName)) {\r\n\t\t\t\t\t\tClass contextClass = m.getParameterTypes()[0];\r\n\t\t\t\t\t\tClass paramClass = m.getParameterTypes()[1];\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (contextClass.isInstance(fortranContextElem) &&\r\n\t\t\t\t\t\t\tparamClass.isInstance(keywordMap)) {\r\n\t\t\t\t\t\t\tmethod = m;\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}\r\n\t\t\t\t\r\n\t\t\t\tif (method == null) {\r\n\t\t\t\t\tSystem.out.println(\"Method not found: \" + methodName);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//System.out.println(\"Calling method: \" + methodName + \" with first param: \" + fortranElem.getClass());\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tObject result = method.invoke(null, fortranContextElem, keywordMap);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tif (method.getReturnType() == String.class ||\r\n\t\t\t\t\t\tmethod.getReturnType().isPrimitive()) {\r\n\t\t\t\t\t\tmodelElem.eSet(sf, result);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Token.class) {\r\n\t\t\t\t\t\tif (result != null) {\r\n\t\t\t\t\t\t\t//String constructor required because of IdentityHashMap\r\n\t\t\t\t\t\t\tString text = new String(((Token)result).getText());\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, text);\r\n\t\t\t\t\t\t\tmappingsToAdd.put(text, result);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t//what should we do here?\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Set.class ||\r\n\t\t\t\t\t\t\t method.getReturnType() == Map.class) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do we have a set of primitives?\r\n\t\t\t\t\t\tif (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEString())) {\r\n\t\t\t\t\t\t\tSet<String> resultSet = (Set<String>) result;\r\n\t\t\t\t\t\t\tfor (String res : resultSet) {\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(res);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, res);\r\n\t\t\t\t\t\t\t\t\tbreak; //just take first one\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}\r\n\t\t\t\t\t\t//result is a set of objects - either IASTNodes or IFortranASTs\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSet<Object> resultSet = null;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = ((Map) result).keySet();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<Object>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor (Object newFortranElem : resultSet) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\t\t\tEObject newModelElemRet = null;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//TODO: work on precedence between metavariables and explicit sub-mappings\r\n\t\t\t\t\t\t\t\t//populate attributes based on metavariables\r\n\t\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\t\tMap<String,String> metavariableMap = (Map<String,String>) ((Map) result).get(newFortranElem);\r\n\t\t\t\t\t\t\t\t\tfor (Entry<String,String> mve : metavariableMap.entrySet()) {\r\n\t\t\t\t\t\t\t\t\t\tString attribName = mve.getKey().substring(1);\r\n\t\t\t\t\t\t\t\t\t\tEStructuralFeature attribSF = newModelElem.eClass().getEStructuralFeature(attribName);\r\n\t\t\t\t\t\t\t\t\t\tif (attribSF != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Metavariable - setting feature: \" + attribName + \" to \" + mve.getValue());\r\n\t\t\t\t\t\t\t\t\t\t\tnewModelElem.eSet(attribSF, mve.getValue());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Metavariable - feature not found: \" + attribName);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// set up parent relationship for references (may be removed later)\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//recursive call\r\n\t\t\t\t\t\t\t\tnewModelElemRet = reverse(newFortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// if NULL returned, then remove model element from parent\r\n\t\t\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t//consider replacing with previous value\r\n\t\t\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (!sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tbreak; // take first one that is not null\r\n\t\t\t\t\t\t\t\t}\t\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\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} // end check for primitives vs. objects in results\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} // end if that checks for query string\r\n\t\t\telse {\r\n\t\t\t\t//this means there is no mapping defined - if it is an EReference, then we create \r\n\t\t\t\t//the target and its children determine whether the mapping holds\r\n\t\t\t\t//in other words, this is just an extra layer of abstraction defined by the user\r\n\t\t\t\t\r\n\t\t\t\tif (sf instanceof EReference) {\r\n\t\t\t\t\tif (((EReference) sf).isContainment()) {\r\n\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tEObject newModelElemRet = reverse(fortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t//consider replacing with previous value\r\n\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\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}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//at this point we have set the value of the structural feature\r\n\t\t\t//if is essential, but not present or false, the parent is no good\r\n\t\t\t\r\n\t\t\tif (Regex.getIsEssentialFromAnnotation(sf)) {\t\r\n\t\t\t\tboolean fail = false;\r\n\t\t\t\t\r\n\t\t\t\tif (modelElem.eGet(sf) == null) {\t\t\t\t\t\r\n\t\t\t\t\tfail = true;\r\n\t\t\t\t}\r\n\t\t\t\telse if (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEBoolean()) &&\r\n\t\t\t\t\t\t! (Boolean) modelElem.eGet(sf)) {\r\n\t\t\t\t\tfail = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (fail) {\r\n\t\t\t\t\tmappings.remove(modelElem);\r\n\t\t\t\t\t//an essential feature failed, so no need to process \r\n\t\t\t\t\t//any more structural features\r\n\t\t\t\t\treturn null;\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\t\r\n\t\t} // end for structural features\r\n\t\t\r\n\t\tmappings.putAll(mappingsToAdd);\r\n\r\n\t\treturn modelElem;\r\n\t}", "void flipPath(int lastNode) {\n int myLastNode = lastNode;\n while (myLastNode != EMPTY_LABEL) {\n int parent = this.tLabels[myLastNode];\n\n // Add (parent, lastNode) to matching. We don't need to\n // explicitly remove any edges from the matching because:\n // * We know at this point that there is no i such that\n // sMatches[i] = lastNode.\n // * Although there might be some j such that tMatches[j] =\n // parent, that j must be sLabels[parent], and will change\n // tMatches[j] in the next time through this loop.\n this.sMatches[parent] = lastNode;\n this.tMatches[myLastNode] = parent;\n\n myLastNode = this.sLabels[parent];\n }\n }", "protected ForwardingMapEntry() {}", "@Override\n public boolean isReversible() {\n return true;\n }", "ReferenceContainer<E> remap(UnaryOperator<PropertySymbol> mapper);", "private void transferLinks(LinkedHashMap_.Entry<K,V> src,\n LinkedHashMap_.Entry<K,V> dst) {\n LinkedHashMap_.Entry<K,V> b = dst.before = src.before;\n LinkedHashMap_.Entry<K,V> a = dst.after = src.after;\n if (b == null)\n head = dst;\n else\n b.after = dst;\n if (a == null)\n tail = dst;\n else\n a.before = dst;\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}", "private void restoreMappingPreviousState(ApplicationInfo readPerst)\n\t\t\tthrows RowsExceededException, WriteException, BiffException,\n\t\t\tIOException {\n\t\tint size = NcaMappingDispGui.createMappingInstance().availableVariablesListmodel\n\t\t\t\t.size();\n\t\tfor (int i = NcaMappingDispGui.createMappingInstance().availableVariablesListmodel\n\t\t\t\t.size() - 1; i >= 0; i--) {\n\t\t\tNcaMappingDispGui.createMappingInstance().availableVariablesListmodel\n\t\t\t\t\t.remove(i);\n\t\t}\n\n\t\t// setting the available columns\n\t\tfor (int i = 0; i < readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t.getProcessingInputs().getMappingDataObj()\n\t\t\t\t.getAvailableColumnsVector().size(); i++) {\n\t\t\tNcaMappingDispGui.createMappingInstance().availableVariablesListmodel\n\t\t\t\t\t.add(i, readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t\t\t\t.getProcessingInputs().getMappingDataObj()\n\t\t\t\t\t\t\t.getAvailableColumnsVector().get(i));\n\n\t\t}\n\n\t\t// since sort variables are not populated while creating a new\n\t\t// ncaMainScreen\n\t\t// we need not remove anything, so\n\t\t// setting the sort variables\n\t\tfor (int i = 0; i < readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t.getProcessingInputs().getMappingDataObj()\n\t\t\t\t.getSortVariablesListVector().size(); i++) {\n\t\t\tNcaMappingDispGui.createMappingInstance().sortVariableListModel\n\t\t\t\t\t.add(i, readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t\t\t\t.getProcessingInputs().getMappingDataObj()\n\t\t\t\t\t\t\t.getSortVariablesListVector().get(i));\n\n\t\t}\n\n\t\t// setting the time column\n\n\t\tNcaMappingDispGui.createMappingInstance().xVariableTextField\n\t\t\t\t.setText(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t\t\t.getProcessingInputs().getMappingDataObj()\n\t\t\t\t\t\t.getxColumnName());\n\n\t\t// setting the concentration column\n\n\t\tNcaMappingDispGui.createMappingInstance().yVariableTextField\n\t\t\t\t.setText(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t\t\t.getProcessingInputs().getMappingDataObj()\n\t\t\t\t\t\t.getYcolumnName());\n\n\t\t// setting the end time column\n\t\t// restore this value only if the previous analysis is of model type\n\t\t// urine\n\t\tif (readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t.getProcessingInputs().getModelInputsObj().getModelType() == 1) {\n\t\t\tNcaMappingDispGui.createMappingInstance().endTimeVariableTextField\n\t\t\t\t\t.setText(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t\t\t\t.getProcessingInputs().getMappingDataObj()\n\t\t\t\t\t\t\t.getEndTimeColumnName());\n\n\t\t\tNcaMappingDispGui.createMappingInstance().volumeVariableTextField\n\t\t\t\t\t.setText(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t\t\t\t.getProcessingInputs().getMappingDataObj()\n\t\t\t\t\t\t\t.getVolumeColumnName());\n\t\t}\n\n\t\t// setting the subject column name\n\t\t// restore this value only when if it was a sparse analysis\n\t\tif (readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t.getProcessingInputs().getModelInputsObj()\n\t\t\t\t.getisSparseSelected() == true) {\n\n\t\t\tNcaMappingDispGui.createMappingInstance().subjectTextField\n\t\t\t\t\t.setText(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t\t\t\t.getProcessingInputs().getMappingDataObj()\n\t\t\t\t\t\t\t.getSubjectColumnName());\n\t\t}\n}", "public void addTwoStepForwardToPositionCache(Key currentKey) {\n\n\t\tKey newKey = createTwoStepForwardFromCurrentKey(currentKey);\n\n\t\t// Gets current values stored with key and adds the extra position\n\t\tSet<Key> currentKeyMapping = positionCache.get(currentKey);\n\t\tcurrentKeyMapping.add(newKey);\n\t\tpositionCache.put(currentKey, currentKeyMapping);\n\t}", "void undo() {\n Move rec = _history.get(_history.size() - 1);\n int to = rec.fromIndex();\n _directions.get(to).remove(_directions.get(to).size() - 1);\n if (rec.isJump()) {\n Move middle = Move.move(rec.col1(), rec.row1(),\n rec.col0(), rec.row0(), null);\n rec = rec.jumpTail();\n while (rec != null) {\n middle = Move.move(rec.col1(), rec.row1(),\n rec.col0(), rec.row0(), middle);\n rec = rec.jumpTail();\n }\n while (middle != null) {\n set(middle.fromIndex(), EMPTY);\n set(middle.toIndex(), _whoseMove.opposite());\n set(middle.jumpedCol(), middle.jumpedRow(), _whoseMove);\n middle = middle.jumpTail();\n }\n\n } else {\n int from = rec.toIndex();\n set(to, _whoseMove.opposite());\n set(from, EMPTY);\n\n _directions.get(from).remove(_directions.get(from).size() - 1);\n }\n\n _whoseMove = _whoseMove.opposite();\n _history.remove(_history.size() - 1);\n setChanged();\n notifyObservers();\n }", "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 }", "@Override\n\tpublic void restoreState() {\n // Rather than copying the stored stuff back, just swap the pointers...\n int[] tmp1 = currentMatricesIndices;\n currentMatricesIndices = storedMatricesIndices;\n storedMatricesIndices = tmp1;\n\n int[] tmp2 = currentPartialsIndices;\n currentPartialsIndices = storedPartialsIndices;\n storedPartialsIndices = tmp2;\n\n\n }", "private void rehash() {\n if (rehashing) {\n int newCapacity = 2 * capacity + 1;\n if (newCapacity > MAXIMUM_CAPACITY) {\n return;\n }\n\n objectCounter += 2;\n MapElement[] newMap = new MapElement[newCapacity]; \n \n MapElement me = null;\n MapElement t = null;\n MapElement next = null;\n int newIndex = 0;\n \n for (int index = 0; index < capacity; index++) {\n me = map[index];\n while (me != null) {\n next = me.getNext();\n newIndex = me.getKey() % newCapacity;\n if (newIndex < 0) {\n newIndex = -newIndex;\n }\n if (newMap[newIndex] == null) {\n // No element yet for this new index\n newMap[newIndex] = me;\n me.setNext(null);\n } else {\n // Hook the element into the beginning of the chain\n t = newMap[newIndex];\n newMap[newIndex] = me;\n me.setNext(t);\n }\n me = next;\n }\n }\n \n map = newMap;\n capacity = newCapacity;\n // Max. number of elements before a rehash occurs\n maxLoad = (int) (loadFactor * capacity + 0.5f);\n\n newMap = null;\n }\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 reverseDi() {\n int hi = size - 1;\n int lo = 0;\n\n while (lo < hi) {\n Node left = getNodeAt(lo);\n Node right = getNodeAt(hi);\n\n Object temp = left.data;\n left.data = right.data;\n right.data = temp;\n\n lo++;\n hi--;\n }\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}", "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 }", "public void reDistributeKeys() {\n predKey = chord.getPredecessorKey();\n if (predKey == 0) {\n return;\n }\n if (map.isEmpty()) {\n return;\n }\n\n Iterator it = map.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<Integer, FileLocation> entry = (Map.Entry) it.next();\n //If I am not a successor of this Entry, put in in toDistribute Stack\n if (!Hasher.isBetween(predKey, entry.getKey(), nodeKey)) {\n toDistribute.push(new Entry(entry));\n }\n }\n\n }", "public Reversal() {\n\t\tsuper();\n\t}", "public void rewind() throws DbException, TransactionAbortedException {\n child1.rewind();\n child2.rewind();\n this.leftMap.clear();\n this.rightMap.clear();\n }", "private Iterable<V> reconstructPath(V last, V from, HashMap<V, V> previous){\n LinkedList<V> ret = new LinkedList<>();\n ret.addFirst(last);\n while (!last.equals(from)){\n V prev = previous.get(last);\n ret.addFirst(prev);\n last = prev;\n }\n return ret;\n }", "public void resetReversePoison() {\n\n Set<AS> prevAdvedTo = this.adjOutRib.get(this.asn * -1);\n\n if (prevAdvedTo != null) {\n for (AS pAS : prevAdvedTo) {\n pAS.withdrawPath(this, this.asn * -1);\n }\n }\n\n this.adjOutRib.remove(this.asn * -1);\n\n this.botSet = new HashSet<>();\n }", "void restore(V patternVertex, V targetVertex) {\n\t\tpatternState.removeAllPreds(patternVertex);\n\t\tpatternState.removeAllSuccs(patternVertex);\n\t\tpatternState.sol.remove(patternVertex);\n\t\t\n\t\ttargetState.removeAllPreds(targetVertex);\n\t\ttargetState.removeAllSuccs(targetVertex);\n\t\ttargetState.sol.remove(targetVertex);\n\t\t\n\t\tpartialMapping.remove(patternVertex);\n\t}", "@Override\n public void backward() {\n }", "@Internal\n\tpublic static <T> Map<String, State<T>> migrateGraph(State<T> oldStartState) {\n\t\tState<T> oldFirst = oldStartState;\n\t\tState<T> oldSecond = oldStartState.getStateTransitions().iterator().next().getTargetState();\n\n\t\tStateTransition<T> oldFirstToSecondTake = Iterators.find(\n\t\t\toldFirst.getStateTransitions().iterator(),\n\t\t\tnew Predicate<StateTransition<T>>() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean apply(@Nullable StateTransition<T> input) {\n\t\t\t\t\treturn input != null && input.getAction() == StateTransitionAction.TAKE;\n\t\t\t\t}\n\n\t\t\t});\n\n\t\tStateTransition<T> oldFirstIgnore = Iterators.find(\n\t\t\toldFirst.getStateTransitions().iterator(),\n\t\t\tnew Predicate<StateTransition<T>>() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean apply(@Nullable StateTransition<T> input) {\n\t\t\t\t\treturn input != null && input.getAction() == StateTransitionAction.IGNORE;\n\t\t\t\t}\n\n\t\t\t}, null);\n\n\t\tStateTransition<T> oldSecondToThirdTake = Iterators.find(\n\t\t\toldSecond.getStateTransitions().iterator(),\n\t\t\tnew Predicate<StateTransition<T>>() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean apply(@Nullable StateTransition<T> input) {\n\t\t\t\t\treturn input != null && input.getAction() == StateTransitionAction.TAKE;\n\t\t\t\t}\n\n\t\t\t}, null);\n\n\t\tfinal Map<String, State<T>> convertedStates = new HashMap<>();\n\t\tState<T> newSecond;\n\t\tState<T> newFirst = new State<>(oldSecond.getName(), State.StateType.Start);\n\t\tconvertedStates.put(newFirst.getName(), newFirst);\n\t\twhile (oldSecondToThirdTake != null) {\n\n\t\t\tnewSecond = new State<T>(oldSecondToThirdTake.getTargetState().getName(), State.StateType.Normal);\n\t\t\tconvertedStates.put(newSecond.getName(), newSecond);\n\t\t\tnewFirst.addTake(newSecond, oldFirstToSecondTake.getCondition());\n\n\t\t\tif (oldFirstIgnore != null) {\n\t\t\t\tnewFirst.addIgnore(oldFirstIgnore.getCondition());\n\t\t\t}\n\n\t\t\toldFirst = oldSecond;\n\n\t\t\toldFirstToSecondTake = Iterators.find(\n\t\t\t\toldFirst.getStateTransitions().iterator(),\n\t\t\t\tnew Predicate<StateTransition<T>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean apply(@Nullable StateTransition<T> input) {\n\t\t\t\t\t\treturn input != null && input.getAction() == StateTransitionAction.TAKE;\n\t\t\t\t\t}\n\n\t\t\t\t});\n\n\t\t\toldFirstIgnore = Iterators.find(\n\t\t\t\toldFirst.getStateTransitions().iterator(),\n\t\t\t\tnew Predicate<StateTransition<T>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean apply(@Nullable StateTransition<T> input) {\n\t\t\t\t\t\treturn input != null && input.getAction() == StateTransitionAction.IGNORE;\n\t\t\t\t\t}\n\n\t\t\t\t}, null);\n\n\t\t\toldSecond = oldSecondToThirdTake.getTargetState();\n\n\t\t\toldSecondToThirdTake = Iterators.find(\n\t\t\t\toldSecond.getStateTransitions().iterator(),\n\t\t\t\tnew Predicate<StateTransition<T>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean apply(@Nullable StateTransition<T> input) {\n\t\t\t\t\t\treturn input != null && input.getAction() == StateTransitionAction.TAKE;\n\t\t\t\t\t}\n\n\t\t\t\t}, null);\n\n\t\t\tnewFirst = newSecond;\n\t\t}\n\n\t\tfinal State<T> endingState = new State<>(ENDING_STATE_NAME, State.StateType.Final);\n\n\t\tnewFirst.addTake(endingState, oldFirstToSecondTake.getCondition());\n\n\t\tif (oldFirstIgnore != null) {\n\t\t\tnewFirst.addIgnore(oldFirstIgnore.getCondition());\n\t\t}\n\n\t\tconvertedStates.put(endingState.getName(), endingState);\n\n\t\treturn convertedStates;\n\t}", "public void unsetDirectForward()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DIRECTFORWARD$14, 0);\n }\n }", "private void updateOriginalNodesInMirror() {\n for (Node node : originalGraph.nodes()) {\n if (!mirrorGraph.has(node)) {\n mirrorGraph.add(node);\n }\n originalAttributesToMirror(node);\n }\n }", "void restoreAfter() {\r\n\t\t\tsurface.basemap.clear();\r\n\t\t\tsurface.basemap.putAll(basemapAfter);\r\n\t\t\tsurface.buildingmap.clear();\r\n\t\t\tsurface.buildingmap.putAll(buildingmapAfter);\r\n\t\t\tsurface.features.clear();\r\n\t\t\tsurface.features.addAll(surfaceAfter);\r\n\t\t\tsurface.buildings.clear();\r\n\t\t\tsurface.buildings.addAll(buildingsAfter);\r\n\t\t}", "private void duplicate(Node nodo) {\n int reference_page = nodo.getReference();\n if(this.debug)\n System.out.println(\"ExtHash::duplicate >> duplicando nodo con referencia \" + reference_page);\n\n ArrayList<Integer> content = this.fm.read(reference_page); this.in_counter++;\n if(this.debug) {\n System.out.println(\"ExtHash::duplicate >> contenido de la pagina:\");\n for(int i=1; i<content.get(0); i++) {\n System.out.println(\" \" + content.get(i));\n }\n }\n\n int shift = nodo.getAltura();\n nodo.activateReference(false);\n\n ArrayList<Integer> left = new ArrayList<>();\n ArrayList<Integer> right = new ArrayList<>();\n\n for(int i=1; i<=content.get(0); i++) {\n int chain = content.get(i);\n if((chain & (1 << shift)) == 0) {\n left.add(chain);\n } else {\n right.add(chain);\n }\n }\n\n left.add(0, left.size());\n right.add(0, right.size());\n\n this.fm.write(left, reference_page); this.out_counter++;\n Node l = new Node(reference_page);\n l.setAltura(shift + 1);\n\n this.fm.write(right, this.last); this.out_counter++;\n Node r = new Node(this.last); this.last++;\n r.setAltura(shift + 1);\n\n total_active_block++;\n\n if(this.debug) {\n System.out.println(\"ExtHash::duplicate >> contentido de paginas duplicadas(left), ref: \" + reference_page);\n for(int i=0; i<left.size(); i++) {\n System.out.println(\" \" + left.get(i));\n }\n }\n\n if(this.debug) {\n System.out.println(\"ExtHash::duplicate >> contentido de paginas duplicadas(right), ref: \" + (this.last - 1));\n for(int i=0; i<right.size(); i++) {\n System.out.println(\" \" + right.get(i));\n }\n }\n\n nodo.addLeftNode(l);\n nodo.addRightNode(r);\n\n ArrayList<Integer> last = new ArrayList<>();\n last.add(0);\n if(left.get(0) == B-2 && shift + 1 < 30) {\n this.duplicate(l);\n } else if(left.get(0) == B-2 && shift + 1 == 30) {\n left.add(this.last);\n this.fm.write(left, l.getReference()); this.out_counter++;\n\n this.fm.write(last, this.last); this.out_counter++;\n this.last++;\n }\n\n if(right.get(0) == B-2 && shift + 1 < 30) {\n this.duplicate(r);\n } else if(right.get(0) == B-2 && shift + 1 == 30) {\n right.add(this.last);\n this.fm.write(right, r.getReference()); this.out_counter++;\n\n this.fm.write(last, this.last); this.out_counter++;\n this.last++;\n }\n }", "public void resetTransforms() { \r\n transforms2 = new HashMap<BundlesDT.DT,Map<String,Map<String,String>>>(); \r\n transforms2.put(BundlesDT.DT.IPv4, new HashMap<String,Map<String,String>>());\r\n transforms2.put(BundlesDT.DT.IPv4CIDR, new HashMap<String,Map<String,String>>());\r\n if (transforms.containsKey(BundlesDT.DT.IPv4)) {\r\n Iterator<String> it = transforms.get(BundlesDT.DT.IPv4).keySet().iterator();\r\n while (it.hasNext()) transforms2.get(BundlesDT.DT.IPv4).put(it.next(), new HashMap<String,String>());\r\n }\r\n if (transforms.containsKey(BundlesDT.DT.IPv4CIDR)) {\r\n sorted_cidr_trans = new HashMap<String,CIDRRec[]>();\r\n Iterator<String> it = transforms.get(BundlesDT.DT.IPv4CIDR).keySet().iterator();\r\n while (it.hasNext()) {\r\n String trans = it.next();\r\n transforms2.get(BundlesDT.DT.IPv4).put(trans, new HashMap<String,String>());\r\n transforms2.get(BundlesDT.DT.IPv4CIDR).put(trans, new HashMap<String,String>());\r\n\tCIDRRec recs[] = new CIDRRec[transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).keySet().size()];\r\n\tIterator<String> it_cidr = transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).keySet().iterator();\r\n\tfor (int i=0;i<recs.length;i++) {\r\n\t String cidr = it_cidr.next();\r\n\t recs[i] = new CIDRRec(cidr,transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).get(cidr));\r\n }\r\n\tArrays.sort(recs);\r\n\tsorted_cidr_trans.put(trans,recs);\r\n }\r\n }\r\n }", "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 }", "@Override\n public void retrack() {\n }", "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 final void restoreOriginalGraph() {\n // Safeguard against multiple restores\n if (startIndex == -1) return;\n \n markEdgesFrom(startIndex, false);\n markEdgesFrom(endIndex, false);\n markHasEdgeToGoal(false);\n nOutgoingEdgess[endIndex] = endOriginalSize;\n nOutgoingEdgess[startIndex] = startOriginalSize;\n nEdges = originalNEdges;\n\n nNodes = originalSize;\n startIndex = -1;\n endIndex = -1;\n }", "@Test\n public void shouldPredictByRotatingPreviousMoveInReverseDirection() {\n ReverseRotationStrategy strategy = new ReverseRotationStrategy();\n\n strategy.addHistory(Shape.ROCK, Shape.PAPER);\n assertTrue(Arrays.equals(strategy.getNextMoves(), Shape.ROCK.defeatedBy()));\n\n strategy.addHistory(Shape.ROCK, Shape.ROCK);\n assertTrue(Arrays.equals(strategy.getNextMoves(), Shape.SPOCK.defeatedBy()));\n }", "private void reverseLookupC_Location_ID() throws Exception\r\n\t{\r\n\t\tStringBuilder sql = new StringBuilder();\r\n\t\tString msg = new String();\r\n\t\tint no = 0;\r\n\r\n\t\t//Reverse Loog up C_Location_ID From JP_Location_Label\r\n\t\tmsg = Msg.getMsg(getCtx(), \"Matching\") + \" : \" + Msg.getElement(getCtx(), \"C_Location_ID\")\r\n\t\t+ \" - \" + Msg.getMsg(getCtx(), \"MatchFrom\") + \" : \" + Msg.getElement(getCtx(), \"JP_Location_Label\") ;\r\n\t\tsql = new StringBuilder (\"UPDATE I_LocationJP i \")\r\n\t\t\t\t.append(\"SET C_Location_ID=(SELECT C_Location_ID FROM C_Location p\")\r\n\t\t\t\t.append(\" WHERE i.JP_Location_Label= p.JP_Location_Label AND p.AD_Client_ID=i.AD_Client_ID) \")\r\n\t\t\t\t.append(\" WHERE i.C_Location_ID IS NULL AND JP_Location_Label IS NOT NULL\")\r\n\t\t\t\t.append(\" AND i.I_IsImported='N'\").append(getWhereClause());\r\n\t\ttry {\r\n\t\t\tno = DB.executeUpdateEx(sql.toString(), get_TrxName());\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.fine(msg +\"=\" + no + \":\" + sql);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + sql );\r\n\t\t}\r\n\r\n\t}", "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}", "public void resetRelatesToList(MappingType mapping) {\n\t\tmapping.getRelatesTo().clear();\n\t}", "@Override\n\tpublic void preBacktrack() {\n\t\t\n\t}", "private void copy(HashMap m, AccessPath that) {\n for (Iterator i = this.succ.iterator(); i.hasNext(); ) {\n IdentityHashCodeWrapper ap = (IdentityHashCodeWrapper)i.next();\n AccessPath p = (AccessPath)m.get(ap);\n if (p == null) {\n AccessPath that2 = (AccessPath)ap.getObject();\n p = new AccessPath(that2._field, that2._n, that2._last);\n m.put(ap, p);\n that2.copy(m, p);\n }\n that.addSuccessor(p);\n }\n }", "public static Node[] reorderReverse(Node[] nodes, int[] map) {\n\t\tNode[] reordered = new Node[map.length];\n\t\tfor (int i = 0; i < map.length; i++)\n\t\t\treordered[map[i]] = nodes[i];\n\t\treturn reordered;\n\t}", "@Override\n\tpublic void copyReferences() {\n\t\tlateCopies = new LinkedHashMap<>();\n\n\t\tsuper.copyReferences();\n\n\t\tputAll(lateCopies);\n\t\tlateCopies = null;\n\t}", "public void resetMap() {\n for (int x = 0; x < cells; x++) {\n for (int y = 0; y < cells; y++) {\n Node current = map[x][y];\n if (current.getType() == 4 || current.getType() == 5)\n map[x][y] = new Node(3, x, y);\n }\n }\n\n if (startx > -1 && starty > -1) { //RESET THE START AND FINISH\n map[startx][starty] = new Node(0, startx, starty);\n map[startx][starty].setJumps(0);\n }\n\n if (finishx > -1 && finishy > -1)\n map[finishx][finishy] = new Node(1, finishx, finishy);\n\n reset(); //RESET SOME VARIABLES\n }", "private static void fixPopulation() {\r\n \t//get a copy of the population hash map\r\n \tHashMap<String, ArrayList<Critter>> copy = new HashMap<String, ArrayList<Critter>>(population);\r\n \tIterator<String> populationIterator = copy.keySet().iterator();\r\n \twhile (populationIterator.hasNext()) { \r\n String pos = populationIterator.next();\r\n ArrayList<Critter> critterList = copy.get(pos);\r\n //clear the key if there is no more critters in that space\r\n if(critterList.size() == 0 || critterList == null) {\r\n \tpopulation.remove(pos);\r\n }\r\n \t}\r\n }", "@Test\n public void mapRemove() {\n check(MAPREM);\n query(MAPSIZE.args(MAPREM.args(MAPENTRY.args(1, 2), 1)), 0);\n }", "@Override\n public void restore() {\n // Rather than copying the stored stuff back, just swap the pointers...\n int[] iTmp1 = m_iCurrentMatrices;\n m_iCurrentMatrices = m_iStoredMatrices;\n m_iStoredMatrices = iTmp1;\n\n int[] iTmp2 = m_iCurrentPartials;\n m_iCurrentPartials = m_iStoredPartials;\n m_iStoredPartials = iTmp2;\n\n// int[] iTmp3 = m_iCurrentStates;\n// m_iCurrentStates= m_iStoredStates;\n// m_iStoredStates = iTmp3;\n }", "private void originalAttributesToMirror(Node node) {\n for (NodeAttributeToPreserve attribute : nodeAttributesToPreserve) {\n NodeAttribute<Object> originalAttribute = originalGraph.nodeAttribute(attribute.id);\n NodeAttribute<Object> mirrorAttribute = mirrorGraph.nodeAttribute(attribute.id);\n copyAttributeValue(originalAttribute, node, mirrorAttribute, node);\n }\n copyPosition(originalPositions, mirrorPositions, node);\n }", "@Override\n public void restoreState(Map<String, Object> state) {\n\n }", "private void moveToNewMap(GameWorldNode node) {\n\t\tresetValues();\n\t\tvisit(node);\n\t\tif (node.getNodeCode() == 29999) {\n\t\t\tcurrentImage.addAction(moveBy(0, 500, 3));\n\t\t\tcurrentImageGhost.addAction(moveBy(0, 500, 3));\n\t\t\tthis.addAction(sequence(delay(2), new Action() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean act(float delta) {\n\t\t\t\t\tsaveService.saveDataValue(SaveEnum.MAP_CODE, 1);\n\t\t\t\t\tsaveService.saveDataValue(SaveEnum.NODE_CODE, 30000);\n\t\t\t\t\tshowScreen(ScreenEnum.LOAD_GAME);\t\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}));\t\n\t\t}\n\t\telse {\n\t\t\tcurrentImage.addAction(moveBy(0, -500, 3));\n\t\t\tcurrentImageGhost.addAction(moveBy(0, -500, 3));\n\t\t\tthis.addAction(sequence(delay(2), new Action() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean act(float delta) {\n\t\t\t\t\tsaveService.saveDataValue(SaveEnum.MAP_CODE, 0);\n\t\t\t\t\tsaveService.saveDataValue(SaveEnum.NODE_CODE, 3000);\n\t\t\t\t\tshowScreen(ScreenEnum.LOAD_GAME);\t\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}));\t\n\t\t}\n\t}", "public void maybeUpdateNavigationHistory() {\n WebContents webContents = mClient.getWebContents();\n if (mClearAllForwardHistoryRequired && webContents != null) {\n webContents.getNavigationController().pruneForwardEntries();\n } else if (mShouldClearRedirectHistoryForTabClobbering && webContents != null) {\n // http://crbug/479056: Even if we clobber the current tab, we want to remove\n // redirect history to be consistent.\n NavigationController navigationController = webContents.getNavigationController();\n int indexBeforeRedirection =\n mClient.getOrCreateRedirectHandler()\n .getLastCommittedEntryIndexBeforeStartingNavigation();\n int lastCommittedEntryIndex = getLastCommittedEntryIndex();\n for (int i = lastCommittedEntryIndex - 1; i > indexBeforeRedirection; --i) {\n boolean ret = navigationController.removeEntryAtIndex(i);\n assert ret;\n }\n }\n mClearAllForwardHistoryRequired = false;\n mShouldClearRedirectHistoryForTabClobbering = false;\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}", "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 f(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 1;\n r2 = F;\n r7.y = r8;\n r0 = r7.m;\n r0 = r0.entrySet();\n r3 = r0.iterator();\n L_0x000f:\n r0 = r3.hasNext();\n if (r0 == 0) goto L_0x004a;\n L_0x0015:\n r0 = r3.next();\n r0 = (java.util.Map.Entry) r0;\n r1 = r0.getValue();\n r1 = (java.util.List) r1;\n r4 = r1.size();\t Catch:{ RuntimeException -> 0x0077 }\n if (r4 != r6) goto L_0x0043;\n L_0x0027:\n r4 = J;\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 28;\n r4 = r4[r5];\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 0;\n r5 = r1.get(r5);\t Catch:{ RuntimeException -> 0x0079 }\n r4 = r4.equals(r5);\t Catch:{ RuntimeException -> 0x0079 }\n if (r4 == 0) goto L_0x0043;\n L_0x0038:\n r4 = r7.e;\t Catch:{ RuntimeException -> 0x007b }\n r0 = r0.getKey();\t Catch:{ RuntimeException -> 0x007b }\n r4.add(r0);\t Catch:{ RuntimeException -> 0x007b }\n if (r2 == 0) goto L_0x0048;\n L_0x0043:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007b }\n r0.addAll(r1);\t Catch:{ RuntimeException -> 0x007b }\n L_0x0048:\n if (r2 == 0) goto L_0x000f;\n L_0x004a:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007d }\n r1 = J;\t Catch:{ RuntimeException -> 0x007d }\n r2 = 29;\n r1 = r1[r2];\t Catch:{ RuntimeException -> 0x007d }\n r0 = r0.remove(r1);\t Catch:{ RuntimeException -> 0x007d }\n if (r0 == 0) goto L_0x0065;\n L_0x0058:\n r0 = B;\t Catch:{ RuntimeException -> 0x007d }\n r1 = java.util.logging.Level.WARNING;\t Catch:{ RuntimeException -> 0x007d }\n r2 = J;\t Catch:{ RuntimeException -> 0x007d }\n r3 = 30;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x007d }\n r0.log(r1, r2);\t Catch:{ RuntimeException -> 0x007d }\n L_0x0065:\n r1 = r7.G;\n r0 = r7.m;\n r2 = java.lang.Integer.valueOf(r6);\n r0 = r0.get(r2);\n r0 = (java.util.Collection) r0;\n r1.addAll(r0);\n return;\n L_0x0077:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0079 }\n L_0x0079:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x007b }\n L_0x007b:\n r0 = move-exception;\n throw r0;\n L_0x007d:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.f(java.lang.String):void\");\n }", "private void removeIfNeeded(String prefix) {\r\n // remove the previous mapping to the prefix\r\n if (this.prefixMapping.containsValue(prefix)) {\r\n Object key = null;\r\n for (Enumeration e = this.prefixMapping.keys(); e.hasMoreElements();) {\r\n key = e.nextElement();\r\n if (this.prefixMapping.get(key).equals(prefix)) \r\n break;\r\n }\r\n this.prefixMapping.remove(key); // we know key should have a value\r\n\t if (DEBUG) System.err.println(\"Removed \" + prefix);\r\n \r\n }\r\n }", "protected TypeNode insertForwardedReferenceNode (TypeNode parent, String typeName) \n {\n TypeNode node = null;\n \n\t\tif ( typeName == null || typeName.trim().length() == 0 ) return null;\n\n // Same type may be forwarded ref MULTIPLE TIMES\n node = (TypeNode) _nodesHashtable.get(typeName);\n if (node != null) {\n // BUG !!! This FORWARD reference is already in tree since the caller\n // of this method ALREADY checked that this forward ref IS NOT in tree.\n \n TypeDescription meta = (TypeDescription) ((TypeNode)_nodesHashtable.get(typeName)).getObject();\n if ( meta != null ) {\n // Already defined\n node.setLabel(TypeSystemUtils2.getMyShortName(typeName)); // Use short name\n node.setObject(meta);\n _nodesHashtable.put (((TypeDescription)node.getObject()).getName(), node);\n Trace.err(\"??? BUG -- Already defined for \" + typeName);\n }\n } else {\n // NEW forwarded ref\n node = new TypeNode(parent, UimaToolsUtil.getMyShortName(typeName));\n node.setObjectType(IItemTypeConstants.ITEM_TYPE_TYPE); \n // Not yet defined (Forward reference)\n // Cannot use short name if no TypeDescription object (see TreeBaseNode.compare)\n // Trace.trace(\"Forward reference to \" + typeName);\n // _nodesHashtable.put (node.getLabel(), node);\n _nodesHashtable.put (typeName, node);\n \n // Add to undefined type hashtable\n // _undefinedTypesHashtable.put (node.getLabel(), node);\n _undefinedTypesHashtable.put (typeName, node);\n }\n \t\t\n\t\t// Insert \"node\" as child of \"parent\"\n\t\tTypeNode tempNode;\n\t\tif (parent == null) {\n\t\t if (_rootSuper == null) {\n\t\t _rootSuper = node;\n\t\t } else {\n\t\t\t\tif ( (tempNode = _rootSuper.insertChild(node)) != null ) {\n\t\t\t\t\tif (tempNode != node) {\t\t\t\t \n\t\t\t\t\t\t// Duplicate Label\n // Use full name as label\n\t\t\t\t\t\tTrace.trace(\" 1 Duplicate (short name) Label:\" + node.getLabel());\n//\t\t\t\t\t\tnode.setShowFullName(true);\n\t\t\t\t\t\tif (node.getObject() != null) {\n // Use full name as label\n\t\t\t\t\t\t\tnode.setLabel(((TypeDescription)node.getObject()).getName());\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\t_rootSuper.insertChild(node);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t} else {\n\t\t\t// parent.insertChild (node);\n\t\t\tif ( (tempNode = parent.insertChild(node)) != null && tempNode != node) {\n\t\t\t\t// Duplicate Label. Use full name as label.\n Trace.trace(\" 2 Duplicate (short name) Label:\" + node.getLabel());\n//\t\t\t\tnode.setShowFullName(true);\n\t\t\t\tif (node.getObject() != null) {\n // Use full name as label\n\t\t\t\t\tnode.setLabel(((TypeDescription)node.getObject()).getName());\n\t\t\t\t}\t\t\t\t\n\t\t\t\tparent.insertChild(node);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn node;\n\t}", "public void _reverse() {\n\n var prev = first;\n var current = first.next;\n last = first;\n last.next = null;\n while (current != null) {\n var next = current.next;\n current.next = prev;\n prev = current;\n current = next;\n\n }\n first = prev;\n\n }", "@Override\n\tpublic void resetToExisting() {\n\t\t\n\t}", "private static void linkedHashMapMap(Map<Integer, String> linkedHashMapMap) {\n System.out.println(\"----------------------------- LinkedHashMap ----------------------------\");\n System.out.println(\"\\\"TreeMap\\\" is ordered by entry\");\n linkedHashMapMap.put(7, \"Cristiano Ronaldo\");\n linkedHashMapMap.put(10, \"Leo Messi\");\n linkedHashMapMap.put(8, \"Avi Nimni\");\n linkedHashMapMap.put(24, \"Kobi Brian\");\n PrintUtils.printMap(linkedHashMapMap);\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 linkedHashMapMap.replace(8, \"Avi Nimni\", \"Moshe\");\n // if you use \"put\" instead of \"replace\" it will work to!\n PrintUtils.printMap(linkedHashMapMap);\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 linkedHashMapMap.remove(10, \"Leo Messi\");\n PrintUtils.printMap(linkedHashMapMap);\n System.out.println();\n }", "private SymbolTable<String, SymbolData> transform(SymbolTable<String, SymbolData> symbolTable) throws Exception {\n for (String name : graph.reverseTopologicalSort()) {\n //log.debug(name);\n SymbolData symbolData = symbolTable.get(name);\n String json = symbolData.getJson();\n //log.debug(json);\n while(true) {\n Optional<Position> position = referenceDetector.detectFirstReference(json);\n //log.debug(json + position.isPresent());\n if(!position.isPresent()) break;\n Position pos = position.get();\n String jsonTobeReplaced = symbolTable.get(pos.getReferenceName().substring(1)).getJson();\n //log.debug(jsonTobeReplaced);\n json = json.substring(0, pos.getFrom())+jsonTobeReplaced+json.substring(pos.getTo());\n }\n log.debug(json);\n symbolData.setJson(json);\n }\n\n return symbolTable;\n }", "private void resetReference(ThingTimeTriple triple)\r\n/* 221: */ {\r\n/* 222:184 */ this.previousTriples.put(triple.t.getType(), triple);\r\n/* 223:185 */ this.previousTriple = triple;\r\n/* 224: */ }", "public static Map<Node, List<Value<Long>>> calculateReverseDiff(Map<Long,List<Node>> before,\n Map<Long,List<Value<Node>>> diff, Node removed) {\n Map<Node,List<Value<Long>>> map = new HashMap<Node,List<Value<Long>>>();\n for (Map.Entry<Long,List<Value<Node>>> e: diff.entrySet()) {\n Long l = e.getKey();\n for (Value<Node> v: e.getValue()) {\n Difference type = v.getDifferenceType();\n switch (type) {\n case REMOVED:\n Node n = v.get();\n // if it matches the removed node, we need to pick a different one to copy from\n // right now I'll just pick \"randomly\" (although this is not random for RF = 2)\n if (n.equals(removed)) {\n List<Node> candidates = before.get(l);\n for (Node c: candidates) {\n if (!c.equals(removed)) {\n n = c;\n break;\n }\n }\n }\n addNodeToDataDiff(n, l, Difference.REMOVED, map);\n break;\n case ADDED:\n addNodeToDataDiff(v.get(), l, Difference.ADDED, map);\n break;\n default:\n break;\n }\n }\n }\n return map;\n }", "private void renameMapNames () {\n if (mappingNum == 0) {\n mapNames = null;\n return;\n }\n this.mapNames = new String[mappingNum];\n for (int i = 0; i < mappingNum; i++) {\n mapNames[i] = GBSHDF5Constants.MAPBASE + this.getThreeFigureString(i);\n }\n }", "public ImageFileNameMap()\r\n {\r\n prevMap = null;\r\n }", "void scanunique() {\n\t\tint oldline, newline;\n\t\tnode psymbol;\n\n\t\tfor (newline = 1; newline <= newinfo.maxLine; newline++) {\n\t\t\tpsymbol = newinfo.symbol[newline];\n\t\t\tif (psymbol.symbolIsUnique()) { // 1 use in each file\n\t\t\t\toldline = psymbol.linenum;\n\t\t\t\tnewinfo.other[newline] = oldline; // record 1-1 map\n\t\t\t\toldinfo.other[oldline] = newline;\n\t\t\t}\n\t\t}\n\t\tnewinfo.other[0] = 0;\n\t\toldinfo.other[0] = 0;\n\t\tnewinfo.other[newinfo.maxLine + 1] = oldinfo.maxLine + 1;\n\t\toldinfo.other[oldinfo.maxLine + 1] = newinfo.maxLine + 1;\n\t}", "void reverseDirection();", "private void copyMappings(Pair<Attribute[], Attribute[]> keyAttributes, boolean left) {\n\t\tAttribute[] copyAttributes = left ? keyAttributes.getFirst() : keyAttributes.getSecond();\n\t\tfor (Attribute attribute : copyAttributes) {\n\t\t\tif (attribute.isNominal()) {\n\t\t\t\tNominalMapping newMapping = (NominalMapping) attribute.getMapping().clone();\n\t\t\t\tattribute.setMapping(newMapping);\n\t\t\t}\n\t\t}\n\n\t}", "private List<GeographicPoint> backTrack(HashMap<GeographicPoint, List<GeographicPoint>> prev, GeographicPoint goal) {\n\t\tList<GeographicPoint> ans = new ArrayList<GeographicPoint>();\n\t\tList<GeographicPoint> temp = prev.get(goal);\n\t\tif (temp.size() != 0) {\n\t\t\tans.add(goal);\n\t\t\twhile (temp.size() != 0) {\n//\t\t\t\tSystem.out.print(\"Neighbours: \");\n\t\t\t\t// lastNeighbour will be the neighbour node we visited right before moving to the current node\n\t\t\t\tGeographicPoint lastNeighbour = temp.get(temp.size() - 1);\n\t\t\t\tans.add(lastNeighbour);\n\t\t\t\ttemp = prev.get(lastNeighbour);\n\t\t\t}\n\t\t\tCollections.reverse(ans);\n\t\t}\n\t\tif (ans.isEmpty())\n\t\t\treturn null;\n\t\treturn ans;\n\t}", "public void filterToBidirectionalLinks() {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) getRTComponent().rc; if (myrc == null) return;\n\n // Get the visible links, extract the direction, create the reverse direction -- if that exists, add those records to keepers\n Iterator<String> it = myrc.graphedgeref_to_link.keySet().iterator(); Set<Bundle> to_keep = new HashSet<Bundle>();\n while (it.hasNext()) {\n String graph_edge_ref = it.next(); String line_ref = myrc.graphedgeref_to_link.get(graph_edge_ref);\n int fm_i = digraph.linkRefFm(graph_edge_ref);\n int to_i = digraph.linkRefTo(graph_edge_ref);\n String other_dir = digraph.getLinkRef(to_i,fm_i);\n if (myrc.graphedgeref_to_link.containsKey(other_dir)) { to_keep.addAll(myrc.link_counter_context.getBundles(line_ref)); }\n }\n\n // Add the no mapping set and push it to the RTParent\n to_keep.addAll(getRTComponent().getNoMappingSet()); getRTParent().push(getRTParent().getRootBundles().subset(to_keep));\n }", "public void makeWeakRepresentative() {\n\t\t\tif (mPrimaryEdge == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t// hash map from store indices we have seen on the primary path to the previous destination/new source of\n\t\t\t// the primary edge (or in other words, to the new candidate for weak-i equivalence class).\n\t\t\tfinal HashMap<CCTerm, ArrayNode> seenStores = new HashMap<CCTerm, ArrayNode>();\n\t\t\t// for each index, the information about secondary edge that we later need to invert.\n\t\t\tfinal HashMap<CCTerm, ArrayNode> todoSecondary = new HashMap<CCTerm, ArrayNode>();\n\t\t\tfinal HashMap<CCTerm, CCAppTerm> todoSecondaryStores = new HashMap<CCTerm, CCAppTerm>();\n\t\t\t// the select information for the new root node.\n\t\t\tfinal HashMap<CCTerm, CCAppTerm> newSelectMap = new HashMap<CCTerm, CCAppTerm>();\n\t\t\tArrayNode node = this;\n\t\t\tArrayNode prev = null;\n\t\t\tCCAppTerm prevStore = null;\n\t\t\twhile (node.mPrimaryEdge != null) {\n\t\t\t\t// invert the last primary edge\n\t\t\t\tfinal ArrayNode next = node.mPrimaryEdge;\n\t\t\t\tfinal CCAppTerm nextStore = node.mPrimaryStore;\n\t\t\t\tnode.mPrimaryEdge = prev;\n\t\t\t\tnode.mPrimaryStore = prevStore;\n\n\t\t\t\tfinal CCTerm index = getIndexFromStore(nextStore).getRepresentative();\n\t\t\t\tfinal ArrayNode old = seenStores.put(index, next);\n\t\t\t\tif (old == node) {\n\t\t\t\t\t// the node is in the middle of two consecutive stores on the same\n\t\t\t\t\t// index. There is no need to move the secondary information\n\t\t\t\t\t// around.\n\t\t\t\t\t//\n\t\t\t\t\t// This branch is intentionally left empty!\n\t\t\t\t} else if (node.mSecondaryEdge != null) { //NOPMD\n\t\t\t\t\tif (old == null) {\n\t\t\t\t\t\t// we have to invert the secondary edge in the end, but\n\t\t\t\t\t\t// we should wait until the inversion of the primary edges\n\t\t\t\t\t\t// is completed.\n\t\t\t\t\t\ttodoSecondary.put(index, node.mSecondaryEdge);\n\t\t\t\t\t\ttodoSecondaryStores.put(index, node.mSecondaryStore);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// insert the secondary edge of node into old node. The reasoning is that\n\t\t\t\t\t\t// the old node is connected using only primary edges on different indices, so it has\n\t\t\t\t\t\t// the same weak-i representative as node.\n\t\t\t\t\t\tassert (getIndexFromStore(old.mPrimaryStore).getRepresentative() == index);\n\t\t\t\t\t\tassert (old.mSecondaryEdge == null);\n\t\t\t\t\t\told.mSecondaryEdge = node.mSecondaryEdge;\n\t\t\t\t\t\told.mSecondaryStore = node.mSecondaryStore;\n\t\t\t\t\t}\n\t\t\t\t\tnode.mSecondaryEdge = null;\n\t\t\t\t\tnode.mSecondaryStore = null;\n\t\t\t\t} else if (!node.mSelects.isEmpty()) {\n\t\t\t\t\tif (old == null) {\n\t\t\t\t\t\t// assertion holds, because index was not in seenStores.\n\t\t\t\t\t\tassert node.mSelects.get(index) != null;\n\t\t\t\t\t\t// we need to move the select information into the new root node.\n\t\t\t\t\t\tnewSelectMap.put(index, node.mSelects.get(index)); \n\t\t\t\t\t} else {\n\t\t\t\t\t\t// old is weak-i equivalent to node and can be used as new weak-i representative.\n\t\t\t\t\t\told.mSelects = node.mSelects;\n\t\t\t\t\t}\n\t\t\t\t\tnode.mSelects = Collections.emptyMap();\n\t\t\t\t}\n\n\t\t\t\tprev = node;\n\t\t\t\tnode = next;\n\t\t\t\tprevStore = nextStore;\n\t\t\t}\n\t\t\tnode.mPrimaryEdge = prev;\n\t\t\tnode.mPrimaryStore = prevStore;\n\t\t\tmConstTerm = node.mConstTerm;\n\t\t\tnode.mConstTerm = null;\n\t\t\tfinal Map<CCTerm, CCAppTerm> rootSelects = node.mSelects;\n\t\t\tnode.mSelects = Collections.emptyMap();\n\t\t\tfor (final Entry<CCTerm, ArrayNode> entry : seenStores.entrySet()) {\n\t\t\t\t// The seen stores get the new representatives of their weak-i equivalence groups\n\t\t\t\tfinal CCTerm index = entry.getKey();\n\t\t\t\tfinal CCAppTerm select = rootSelects.remove(index);\n\t\t\t\tif (select != null) {\n\t\t\t\t\tentry.getValue().mSelects = \n\t\t\t\t\t\tCollections.singletonMap(index, select);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Now invert the secondary edges\n\t\t\tfor (final Entry<CCTerm, ArrayNode> entry : todoSecondary.entrySet()) {\n\t\t\t\tfinal CCTerm index = entry.getKey();\n\t\t\t\tArrayNode dest = entry.getValue();\n\t\t\t\tdest = dest.findSecondaryNode(index);\n\t\t\t\tif (dest.mSecondaryEdge != null) {\n\t\t\t\t\tdest.makeWeakIRepresentative();\n\t\t\t\t}\n\t\t\t\tdest.mSecondaryEdge = this;\n\t\t\t\tdest.mSecondaryStore = todoSecondaryStores.get(index);\n\t\t\t\tnewSelectMap.putAll(dest.mSelects);\n\t\t\t\tdest.mSelects = Collections.emptyMap();\n\t\t\t}\n\t\t\tnewSelectMap.putAll(rootSelects);\n\t\t\tmSelects = newSelectMap;\n\t\t}", "private static <T> Map<Character,Node<T>> newNodeMap(Map<Character,Node<T>> prev)\n\t\t{\n\t\t\treturn new HashMap<Character,Node<T>>(prev);\n\t\t}", "private void removeNoMoreExistingOriginalNodes() {\n for (Node mirrorNode : mirrorGraph.nodes()) {\n if (!isPartOfMirrorEdge(mirrorNode) && !originalGraph.has(mirrorNode)) {\n mirrorGraph.remove(mirrorNode);\n }\n }\n }", "private void skipStaleEntries()\n {\n while (this.index < keys.size() && !HashBijectiveMap.this.containsKey(keys.get(this.index)))\n this.index++;\n }", "private Map<Integer, Set<Integer>> computeInverseTransitionRelation(LabelledTransitionSystem ret) {\n\n\t\tMap<Integer, Set<Integer>> reverseTransitionMap = new HashMap<>();\n\t\tLTSTransitionList[] transitions = ret.getStates();\n\n\t\tfor (int stateIndex = 0; stateIndex < transitions.length; stateIndex++) {\n\t\t\treverseTransitionMap.put(stateIndex, new HashSet<>());\n\t\t}\n\n\t\tfor (int stateIndex = 0; stateIndex < transitions.length; stateIndex++) {\n\n\t\t\tLTSTransitionList transition = transitions[stateIndex];\n\t\t\tthis.updateIndexes(stateIndex, transition, reverseTransitionMap);\n\t\t}\n\n\t\treturn reverseTransitionMap;\n\t}", "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 }", "private void removeObjectFromMaps(Object obj)\r\n {\r\n String name = (String) objectNames.remove(obj);\r\n\r\n // if multiple objects have registered under the same prefix, ensure\r\n // that only this object is removed from that mapping\r\n try\r\n {\r\n // retrieve the object that the weak reference refers to, if any\r\n WeakReference ref = (WeakReference) nameObjects.get(name);\r\n if (System.identityHashCode(obj) == System.identityHashCode(ref.get()))\r\n nameObjects.remove(name);\r\n }\r\n catch(NullPointerException e0)\r\n {\r\n // ignore\r\n }\r\n }", "@Override\n public void reloadCachedMappings() {\n }", "@Override\n public void reloadCachedMappings() {\n }", "public Graphe reverse()\t{\r\n \tfor(Liaison route : this.routes)\r\n \t\tif(route.isSensUnique())\r\n \t\t\troute.reverse();\t//TODO check si reverse marche bien\r\n \treturn this;\r\n }", "public boolean swap() {\r\n\t\tif(origination == null || destination == null)\r\n\t\t\treturn false;\r\n\t\tLocation l = origination;\r\n\t\torigination = destination;\r\n\t\tdestination = l;\r\n\t\treturn true;\r\n\t}", "protected EnzymeModel fixPdbXrefs(EnzymeModel summary) {\n if (mm != null){\n // PDB xrefs for every ortholog in the summary:\n for (EnzymeAccession relSp : summary.getRelatedspecies()) {\n Collection<XRef> pdbXrefs = mm.getXrefs(MmDatabase.UniProt,\n relSp.getUniprotaccessions().get(0), MmDatabase.PDB);\n if (pdbXrefs != null){\n relSp.setPdbeaccession(getToIds(pdbXrefs));\n }\n }\n // TODO: fix also the default species?\n try {\n mm.closeMap();\n } catch (IOException e) {\n LOGGER.error(\"Unable to close the mega-map\", e);\n }\n }\n return summary;\n }", "@Override\n protected void revert() {\n if (leftOld.next != null) leftOld.next.prev = leftOld;\n if (rightOld.prev != null) rightOld.prev.next = rightOld;\n \n // Update the first and last nodes.\n if (rightOld.prev == null) first = rightOld;\n if (leftOld.next == null) last = leftOld;\n \n // Restore the width.\n width = prevWidth;\n }", "public void relinkLR()\n {\n this.L.R = this.R.L = this;\n }", "public static void reorder(Automaton automaton, int[] mapping) {\n\t\t// now remap all the vertices according to giving binding\n\t\tState[] states = new State[automaton.nStates()];\n\t\tfor (int i = 0; i != states.length; ++i) {\n\t\t\tAutomaton.State state = automaton.get(i);\n\t\t\tstate.remap(mapping);\n\t\t\tstates[mapping[i]] = state;\n\t\t}\n\t\tfor (int i = 0; i != states.length; ++i) {\n\t\t\tautomaton.set(i, states[i]);\n\t\t}\n\n\t\tfor (int i = 0; i != automaton.nRoots(); ++i) {\n\t\t\tint root = automaton.getRoot(i);\n\t\t\tif (root >= 0) {\n\t\t\t\tautomaton.setRoot(i, mapping[root]);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public V put(K key, V value) {\n reverseMap.put(value, key);\n return super.put(key, value);\n }", "public void resetMap() {\r\n\t\tfor(Block b: this.blockMap) {\r\n\t\t\tb.resetLives();\r\n\t\t}\r\n\t}" ]
[ "0.617417", "0.57750446", "0.5683127", "0.5608999", "0.54309237", "0.5384536", "0.53546983", "0.5299042", "0.52774376", "0.52774376", "0.52753705", "0.5204286", "0.51808685", "0.5131532", "0.51299447", "0.5117143", "0.51047707", "0.5096972", "0.5082688", "0.50825125", "0.5059518", "0.5044505", "0.5043088", "0.5039126", "0.5032832", "0.50278676", "0.5020572", "0.5016049", "0.49974087", "0.49855098", "0.49588105", "0.49379104", "0.49097914", "0.49046367", "0.4896285", "0.48958617", "0.48954344", "0.48876214", "0.48713976", "0.48598734", "0.4851247", "0.48460552", "0.48455855", "0.48275286", "0.48250958", "0.4817293", "0.48081455", "0.47957334", "0.47787255", "0.47723985", "0.47698972", "0.47680864", "0.47663075", "0.47652143", "0.4761584", "0.47584307", "0.47569844", "0.47412583", "0.47304368", "0.47294614", "0.47285733", "0.47218758", "0.47185478", "0.4704036", "0.46950123", "0.46914515", "0.46877673", "0.46837702", "0.46816748", "0.46781877", "0.4677575", "0.46751404", "0.4670579", "0.46613908", "0.46598363", "0.46579635", "0.46568623", "0.46447733", "0.4644262", "0.46374828", "0.46354428", "0.46321446", "0.46310127", "0.4628668", "0.4627793", "0.46218252", "0.4620135", "0.46193424", "0.46179903", "0.46150386", "0.46146533", "0.46125698", "0.46125698", "0.460312", "0.4601362", "0.4590978", "0.45899296", "0.45894662", "0.4587913", "0.4586692", "0.45854673" ]
0.0
-1
/ 4 Missing Forward Mapping Reverse mapping missing forward mapping bar > 02 01 > foo foo > 01 02 > bar FIX Restore forward map. OK since "bar" does not map to anything
@Test public void fsckMetricsMissingForward() throws Exception { // currently a warning, not an error storage.flushColumn("bar".getBytes(MockBase.ASCII()), ID_FAMILY, METRICS); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(0, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected ForwardingMap() {}", "void remap()\n\t\t{\n\t\t\tif(nextMap == null)\n\t\t\t\treturn;\n\t\t\tnextMap = newNodeMap(nextMap);\n\t\t\tfor(Node<T> node : nextMap.values())\n\t\t\t\tnode.remap();\n\t\t}", "protected ForwardingMapEntry() {}", "private void checkReverseMap() throws ApplicationException {\n if (reverseMap == null) {\n reverseMap = Data.makeReverseMap(networkIds);\n }\n }", "public void mapping() {\n\t\t\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tprivate static <ModelElem extends EObject> ModelElem reverse(Object fortranElem, ModelElem modelElem, Map<Object,Object> mappings) {\r\n\t\t\r\n\t\tEClass modelElemClass = modelElem.eClass();\r\n\t\t\t\r\n\t\t//this is required so that we can conditionally add mappings\r\n\t\t//that succeeded at the end of the method when no recursive\r\n\t\t//call is required (this only occurs at leaves of metamodel tree)\r\n\t\tMap<Object, Object> mappingsToAdd = new IdentityHashMap<Object, Object>();\r\n\t\t\r\n\t\t//assume a successful mapping (required for looking up\r\n\t\t//mappings during recursive calls)\r\n\t\t//mapping will be removed later if it fails\r\n\t\tmappings.put(modelElem, fortranElem);\t\r\n\t\t\r\n\t\t\t\t\t\t\r\n\t\tfor (EStructuralFeature sf : modelElemClass.getEAllStructuralFeatures()) {\r\n\t\t\t\r\n\t\t\tMap<String, Object> keywordMap = Regex.getMappingFromAnnotation(sf);\r\n\t\t\t\r\n\t\t\t/////NEW MAPPING PARSER HERE\r\n\t\t\t\t\t\t\r\n\t\t\tEAnnotation ann = sf.getEAnnotation(\"http://www.earthsystemcog.org/projects/nuopc\");\r\n\t\t\tif (ann != null && ann.getDetails().get(\"mappingNew\") != null) {\r\n\t\t\t\tString mappingNew = ann.getDetails().get(\"mappingNew\");\r\n\t\t\t\t//if (mappingNew != null) {\r\n\t\t\t\tMapping mapping = parseMappingNew(mappingNew);\r\n\t\t\t\tObject fortranContextElem;\r\n\t\t\t\t\r\n\t\t\t\tif (mapping.getContext() != null) {\r\n\t\t\t\t\t//explicit context\r\n\t\t\t\t\tEObject contextElement = EcoreUtils.eGetSFValue(mapping.getContext(), modelElem, true, null);\r\n\t\t\t\t\tfortranContextElem = mappings.get(contextElement);\r\n\t\t\t\t\tif (fortranContextElem == null) {\r\n\t\t\t\t\t\tthrow new RuntimeException(\"No Fortran context for element: \" + contextElement);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tfortranContextElem = fortranElem; //implicit\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tImplicitContextMapping icMapping = mapping.getMapping();\r\n\t\t\t\ticMapping = replacePathExprWithValues(icMapping, modelElem, true);\r\n\t\t\t\t\r\n\t\t\t\tString methodName = icMapping.eClass().getName().toLowerCase();\r\n\t\t\t\t\r\n\t\t\t\t//find method that implements code query\r\n\t\t\t\tMethod method = findREMethod(methodName, fortranContextElem, icMapping);\r\n\t\t\t\tif (method == null) {\r\n\t\t\t\t\tSystem.out.println(\"Method not found: \" + methodName);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tObject result = method.invoke(null, fortranContextElem, icMapping);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tif (method.getReturnType() == String.class ||\r\n\t\t\t\t\t\tmethod.getReturnType().isPrimitive()) {\r\n\t\t\t\t\t\tmodelElem.eSet(sf, result);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Token.class) {\r\n\t\t\t\t\t\tif (result != null) {\r\n\t\t\t\t\t\t\t//String constructor required because of IdentityHashMap\r\n\t\t\t\t\t\t\tString text = new String(((Token)result).getText());\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, text);\r\n\t\t\t\t\t\t\tmappingsToAdd.put(text, result);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t//what should we do here?\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Set.class ||\r\n\t\t\t\t\t\t\t method.getReturnType() == Map.class) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do we have a set of primitives?\r\n\t\t\t\t\t\tif (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEString())) {\r\n\t\t\t\t\t\t\tSet<String> resultSet;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<String>) ((Map) result).keySet();\r\n\t\t\t\t\t\t\t\t//TODO: ignoring PathExprs for now\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<String>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfor (String res : resultSet) {\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(res);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, res);\r\n\t\t\t\t\t\t\t\t\tbreak; //just take first one\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}\r\n\t\t\t\t\t\t//result is a set of objects - either IASTNodes or IFortranASTs\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSet<Object> resultSet = null;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = ((Map) result).keySet();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<Object>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor (Object newFortranElem : resultSet) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//set binding in model\r\n\t\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\t\tMap<PathExpr, String> bindings = ((Map<?, Map<PathExpr, String>>) result).get(newFortranElem);\r\n\t\t\t\t\t\t\t\t\tfor (Entry<PathExpr, String> binding : bindings.entrySet()) {\r\n\t\t\t\t\t\t\t\t\t\tboolean featureSet = EcoreUtils.eSetSFValue(binding.getKey(), newModelElem, binding.getValue());\r\n\t\t\t\t\t\t\t\t\t\tif (!featureSet) {\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Feature not set: \" + binding.getKey());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// set up parent relationship for references (may be removed later)\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//recursive call\r\n\t\t\t\t\t\t\t\tEObject newModelElemRet = reverse(newFortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// if NULL returned, then mapping failed, so remove element from parent\r\n\t\t\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t//TODO: consider replacing with previous value?\r\n\t\t\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (!sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tbreak; // take first one that is not null\r\n\t\t\t\t\t\t\t\t}\t\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\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} // end check for primitives vs. objects in results\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t}\t\t\t\t\t\t\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\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////END OF NEW MAPPING PARSER\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\telse if (keywordMap != null && keywordMap.size() > 0) {\t\r\n\t\t\t\t\r\n\t\t\t\tString methodName = Regex.getMappingTypeFromAnnotation(sf);\r\n\t\t\t\t\r\n\t\t\t\t//populate metavariables\t\t\t\t\t\t\r\n\t\t\t\tfor (Entry<String, Object> entry : keywordMap.entrySet()) {\r\n\t\t\t\t\t//TODO: should we handle different metavariable types here?\r\n\t\t\t\t\t// or just strings?\r\n\t\t\t\t\tif (!entry.getKey().equals(\"_context\") && entry.getValue() instanceof String) {\r\n\t\t\t\t\t\tString val = (String) entry.getValue();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tMatcher match = CodeQuery.P_METAVAR.matcher(val);\r\n\t\t\t\t\t\twhile (match.find()) {\r\n\t\t\t\t\t\t\t//already at parent, so remove one leading ../\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\tString metavar = match.group().substring(1);\r\n\t\t\t\t\t\t\tif (metavar.startsWith(\"../\")) { \r\n\t\t\t\t\t\t\t\tmetavar = metavar.substring(3);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//TODO: decide what to do about NULL_VALUE below\r\n\t\t\t\t\t\t\t\tString replaceVal = EcoreUtils.eGetSFValue(metavar, modelElem, null);\r\n\t\t\t\t\t\t\t\tif (replaceVal != null) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Replacing metavariable: \" + match.group() + \" with val: \" + replaceVal);\r\n\t\t\t\t\t\t\t\t\tentry.setValue(val.replaceAll(match.group(), replaceVal));\r\n\t\t\t\t\t\t\t\t}\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}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tObject fortranContextElem;\r\n\t\t\t\t\r\n\t\t\t\tif (keywordMap.containsKey(\"_context\")) {\r\n\t\t\t\t\t//explicit context provided\r\n\t\t\t\t\tString contextPath = (String) keywordMap.get(\"_context\");\r\n\t\t\t\t\tif (!contextPath.startsWith(\"#..\")) {\r\n\t\t\t\t\t\t//error\r\n\t\t\t\t\t\tSystem.out.println(\"Explicit context path must contain parent node\");\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (contextPath.startsWith(\"#../\")) {\r\n\t\t\t\t\t\tcontextPath = contextPath.substring(4);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (contextPath.startsWith(\"#..\")) {\r\n\t\t\t\t\t\tcontextPath = contextPath.substring(3);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tEObject explicitContextElem;\r\n\t\t\t\t\tif (contextPath.equals(\"\")) {\r\n\t\t\t\t\t\texplicitContextElem = modelElem;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\texplicitContextElem = EcoreUtils.eGetSFValue(contextPath, modelElem, null);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tfortranContextElem = mappings.get(explicitContextElem);\r\n\t\t\t\t\tif (fortranContextElem == null) {\r\n\t\t\t\t\t\tSystem.out.println(\"MAPPED fortran element not found: \" + explicitContextElem);\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t//implicit context\r\n\t\t\t\t\tfortranContextElem = fortranElem;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//find method that implements code query\r\n\t\t\t\tMethod method = null;\r\n\t\t\t\tfor (Method m : CodeQuery.class.getMethods()) {\r\n\t\t\t\t\tif (m.getName().equalsIgnoreCase(methodName)) {\r\n\t\t\t\t\t\tClass contextClass = m.getParameterTypes()[0];\r\n\t\t\t\t\t\tClass paramClass = m.getParameterTypes()[1];\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (contextClass.isInstance(fortranContextElem) &&\r\n\t\t\t\t\t\t\tparamClass.isInstance(keywordMap)) {\r\n\t\t\t\t\t\t\tmethod = m;\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}\r\n\t\t\t\t\r\n\t\t\t\tif (method == null) {\r\n\t\t\t\t\tSystem.out.println(\"Method not found: \" + methodName);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//System.out.println(\"Calling method: \" + methodName + \" with first param: \" + fortranElem.getClass());\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tObject result = method.invoke(null, fortranContextElem, keywordMap);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tif (method.getReturnType() == String.class ||\r\n\t\t\t\t\t\tmethod.getReturnType().isPrimitive()) {\r\n\t\t\t\t\t\tmodelElem.eSet(sf, result);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Token.class) {\r\n\t\t\t\t\t\tif (result != null) {\r\n\t\t\t\t\t\t\t//String constructor required because of IdentityHashMap\r\n\t\t\t\t\t\t\tString text = new String(((Token)result).getText());\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, text);\r\n\t\t\t\t\t\t\tmappingsToAdd.put(text, result);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t//what should we do here?\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Set.class ||\r\n\t\t\t\t\t\t\t method.getReturnType() == Map.class) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do we have a set of primitives?\r\n\t\t\t\t\t\tif (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEString())) {\r\n\t\t\t\t\t\t\tSet<String> resultSet = (Set<String>) result;\r\n\t\t\t\t\t\t\tfor (String res : resultSet) {\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(res);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, res);\r\n\t\t\t\t\t\t\t\t\tbreak; //just take first one\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}\r\n\t\t\t\t\t\t//result is a set of objects - either IASTNodes or IFortranASTs\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSet<Object> resultSet = null;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = ((Map) result).keySet();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<Object>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor (Object newFortranElem : resultSet) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\t\t\tEObject newModelElemRet = null;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//TODO: work on precedence between metavariables and explicit sub-mappings\r\n\t\t\t\t\t\t\t\t//populate attributes based on metavariables\r\n\t\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\t\tMap<String,String> metavariableMap = (Map<String,String>) ((Map) result).get(newFortranElem);\r\n\t\t\t\t\t\t\t\t\tfor (Entry<String,String> mve : metavariableMap.entrySet()) {\r\n\t\t\t\t\t\t\t\t\t\tString attribName = mve.getKey().substring(1);\r\n\t\t\t\t\t\t\t\t\t\tEStructuralFeature attribSF = newModelElem.eClass().getEStructuralFeature(attribName);\r\n\t\t\t\t\t\t\t\t\t\tif (attribSF != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Metavariable - setting feature: \" + attribName + \" to \" + mve.getValue());\r\n\t\t\t\t\t\t\t\t\t\t\tnewModelElem.eSet(attribSF, mve.getValue());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Metavariable - feature not found: \" + attribName);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// set up parent relationship for references (may be removed later)\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//recursive call\r\n\t\t\t\t\t\t\t\tnewModelElemRet = reverse(newFortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// if NULL returned, then remove model element from parent\r\n\t\t\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t//consider replacing with previous value\r\n\t\t\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (!sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tbreak; // take first one that is not null\r\n\t\t\t\t\t\t\t\t}\t\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\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} // end check for primitives vs. objects in results\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} // end if that checks for query string\r\n\t\t\telse {\r\n\t\t\t\t//this means there is no mapping defined - if it is an EReference, then we create \r\n\t\t\t\t//the target and its children determine whether the mapping holds\r\n\t\t\t\t//in other words, this is just an extra layer of abstraction defined by the user\r\n\t\t\t\t\r\n\t\t\t\tif (sf instanceof EReference) {\r\n\t\t\t\t\tif (((EReference) sf).isContainment()) {\r\n\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tEObject newModelElemRet = reverse(fortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t//consider replacing with previous value\r\n\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\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}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//at this point we have set the value of the structural feature\r\n\t\t\t//if is essential, but not present or false, the parent is no good\r\n\t\t\t\r\n\t\t\tif (Regex.getIsEssentialFromAnnotation(sf)) {\t\r\n\t\t\t\tboolean fail = false;\r\n\t\t\t\t\r\n\t\t\t\tif (modelElem.eGet(sf) == null) {\t\t\t\t\t\r\n\t\t\t\t\tfail = true;\r\n\t\t\t\t}\r\n\t\t\t\telse if (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEBoolean()) &&\r\n\t\t\t\t\t\t! (Boolean) modelElem.eGet(sf)) {\r\n\t\t\t\t\tfail = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (fail) {\r\n\t\t\t\t\tmappings.remove(modelElem);\r\n\t\t\t\t\t//an essential feature failed, so no need to process \r\n\t\t\t\t\t//any more structural features\r\n\t\t\t\t\treturn null;\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\t\r\n\t\t} // end for structural features\r\n\t\t\r\n\t\tmappings.putAll(mappingsToAdd);\r\n\r\n\t\treturn modelElem;\r\n\t}", "ReferenceContainer<E> remap(UnaryOperator<PropertySymbol> mapper);", "@Override\n\tpublic void preBacktrack() {\n\t\t\n\t}", "private void removeTwoStepForwardFromPositionCache(Key currentKey) {\n\n\t\t// Create a two square forward position\n\t\tKey newKey =createTwoStepForwardFromCurrentKey(currentKey);\n\n\t\t// Gets current values stored with key and adds the extra position\n\t\tSet<Key> currentKeyMapping = positionCache.get(currentKey);\n\n\t\t// Remove key if it exists\n\t\tif (currentKeyMapping.contains(newKey)) {\n\t\t\tcurrentKeyMapping.remove(newKey);\n\t\t}\n\n\t\tpositionCache.put(currentKey, currentKeyMapping);\n\t}", "public void endPrefixMapping(String prefix) { }", "@Override\n public void backward() {\n }", "@Test\n\tpublic void testFwdInfReasonerRewrites_Bug717() throws Exception {\n\t\timportProofSerializationProofs();\n\n\t\tfinal IPRRoot prFile = getProofRoot(\"exF\");\n\t\tfinal IPRProof proof = prFile.getProof(\"oldExF\");\n\n\t\t// a IllegalStateException is thrown when the bug is present:\n\t\tfinal IProofTree proofTree = proof.getProofTree(null);\n\n\t\t// ensure that the proof rule is deserialized:\n\t\tfinal IProofTreeNode root = proofTree.getRoot();\n\t\tassertFalse(root.isOpen());\n\t\tfinal IProofRule rule = root.getRule();\n\t\tassertEquals(SequentProver.PLUGIN_ID + \".exF\", rule.generatedBy().getReasonerID());\n\t\tassertEquals(3, rule.getAntecedents()[0].getHypActions().size());\n\t}", "@Override\r\n\tpublic void goForward() {\n\t\t\r\n\t}", "private void logUnmappedError(String misrouteInfo)\n\t{\n\t\t//\toriginal.logDebug(misrouteInfo);\n\t}", "@Override\r\n public NavigableMap<K, V> descendingMap() {\n return null;\r\n }", "public static ConnectionMap backtrack(final ConnectionMap map, int index) {\r\n\t\t// Returns null if first variable has no possible values\r\n\t\tif (map.domains.get(0).size()==0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// If the possible values for the index are null step back\r\n\t\tif (map.domains.get(index).size()==0) {\r\n\t\t\t//System.out.println(\"BACKTRACK!\");\r\n\t\t\tArrayList<Integer> newRow = new ArrayList<Integer>();\r\n\t\t\tfor (int k = 0; k < map.numColors; k++) {\r\n\t\t\t\tnewRow.add(k);\r\n\t\t\t}\r\n\t\t\tmap.domains.set(index, newRow);\r\n\t\t\tmap.domains.get(index-1).remove(0);\r\n\t\t\tBacktrackSearch.backtrack(map, index-1);\r\n\t\t}\r\n\t\t// Loops through the possible values for the index\r\n\t\tfor (int j=index; j>=0; j--) {\r\n\t\t\tif(map.connections[index][j]==1 && map.domains.get(index).size()>0) {\r\n\t\t\t\tArrayList<Integer> neighbor = map.domains.get(j);\r\n\t\t\t\tif (neighbor.size() != 0) {\r\n\t\t\t\t\tmap.domains.get(index).remove(neighbor.get(0));\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// If the possible values for the index are null step back\r\n\t\t\tif (map.domains.get(index).size()==0) {\r\n\t\t\t\t//System.out.println(\"BACKTRACK!\");\r\n\t\t\t\tArrayList<Integer> newRow = new ArrayList<Integer>();\r\n\t\t\t\tfor (int k = 0; k < map.numColors; k++) {\r\n\t\t\t\t\tnewRow.add(k);\r\n\t\t\t\t}\r\n\t\t\t\tmap.domains.set(index, newRow);\r\n\t\t\t\tmap.domains.get(index-1).remove(0);\r\n\t\t\t\tBacktrackSearch.backtrack(map, index-1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// If the index is not the last index step forward\r\n\t\tif (index < map.domains.size()-1) {\r\n\t\t\tBacktrackSearch.backtrack(map, index+1);\r\n\t\t}\r\n\t\t// Returns null if first variable has no possible values\r\n\t\tif (map.domains.get(0).size()==0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// Removes end of colors\r\n\t\tfor(int i = 0; i < map.domains.size(); i++) {\r\n\t\t\tfor(int j = 1; j < map.domains.get(i).size(); j++) {\r\n\t\t\t\tmap.domains.get(i).remove(j);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Returns map\r\n\t\treturn map;\t\r\n\t}", "protected AssociationList reverseAssoc(LexBIGService lbsvc, LexBIGServiceConvenienceMethods lbscm, String scheme,\r\n CodingSchemeVersionOrTag csvt, Association assoc, AssociationList addTo,\r\n Map<String, EntityDescription> codeToEntityDescriptionMap) throws LBException {\r\n\r\n ConceptReference acRef = assoc.getAssociationReference();\r\n AssociatedConcept acFromRef = new AssociatedConcept();\r\n acFromRef.setCodingScheme(acRef.getCodingScheme());\r\n acFromRef.setConceptCode(acRef.getConceptCode());\r\n AssociationList acSources = new AssociationList();\r\n acFromRef.setIsNavigable(Boolean.TRUE);\r\n acFromRef.setSourceOf(acSources);\r\n\r\n // Use cached description if available (should be cached\r\n // for all but original root) ...\r\n if (codeToEntityDescriptionMap.containsKey(acRef.getConceptCode()))\r\n acFromRef.setEntityDescription(codeToEntityDescriptionMap.get(acRef.getConceptCode()));\r\n // Otherwise retrieve on demand ...\r\n else\r\n acFromRef.setEntityDescription(Constructors.createEntityDescription(getCodeDescription(lbsvc, scheme, csvt,\r\n acRef.getConceptCode())));\r\n\r\n AssociatedConceptList acl = assoc.getAssociatedConcepts();\r\n for (AssociatedConcept ac : acl.getAssociatedConcept()) {\r\n // Create reverse association (same non-directional name)\r\n Association rAssoc = new Association();\r\n rAssoc.setAssociationName(assoc.getAssociationName());\r\n\r\n // On reverse, old associated concept is new reference point.\r\n ConceptReference ref = new ConceptReference();\r\n ref.setCodingScheme(ac.getCodingScheme());\r\n ref.setConceptCode(ac.getConceptCode());\r\n rAssoc.setAssociationReference(ref);\r\n\r\n // And old reference is new associated concept.\r\n AssociatedConceptList rAcl = new AssociatedConceptList();\r\n rAcl.addAssociatedConcept(acFromRef);\r\n rAssoc.setAssociatedConcepts(rAcl);\r\n\r\n // Set reverse directional name, if available.\r\n String dirName = assoc.getDirectionalName();\r\n if (dirName != null)\r\n try {\r\n rAssoc.setDirectionalName(lbscm.isForwardName(scheme, csvt, dirName) ? lbscm\r\n .getAssociationReverseName(assoc.getAssociationName(), scheme, csvt) : lbscm\r\n .getAssociationReverseName(assoc.getAssociationName(), scheme, csvt));\r\n } catch (LBException e) {\r\n }\r\n\r\n // Save code desc for future reference when setting up\r\n // concept references in recursive calls ...\r\n codeToEntityDescriptionMap.put(ac.getConceptCode(), ac.getEntityDescription());\r\n\r\n AssociationList sourceOf = ac.getSourceOf();\r\n if (sourceOf != null)\r\n for (Association sourceAssoc : sourceOf.getAssociation()) {\r\n AssociationList pos = reverseAssoc(lbsvc, lbscm, scheme, csvt, sourceAssoc, addTo,\r\n codeToEntityDescriptionMap);\r\n pos.addAssociation(rAssoc);\r\n }\r\n else\r\n addTo.addAssociation(rAssoc);\r\n }\r\n return acSources;\r\n }", "@Override\n public void reloadCachedMappings() {\n }", "@Override\n public void reloadCachedMappings() {\n }", "public void testUnfoldingWithNoSuccessfulResolutions() {\n\t\t\n\t\tDatalogProgram queryProgram = fac.getDatalogProgram();\n\t\tFunction a = fac.getFunction(fac.getClassPredicate(\"A\"), fac.getVariable(\"x\"));\n\t\tFunction R = fac.getFunction(fac.getObjectPropertyPredicate(\"R\"), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\tFunction lj = fac.getSPARQLLeftJoin(a, R);\n\t\tFunction head = fac.getFunction(fac.getPredicate(\"q\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\tCQIE query = fac.getCQIE(head, lj);\n\t\tqueryProgram.appendRule(query);\n\n\t\t// Mapping program\n\t\tDatalogProgram p = fac.getDatalogProgram();\n\t\t// A rule 1 A(uri(x)) :- T1(x,y)\n\t\tFunction body = fac.getFunction(fac.getPredicate(\"T1\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\thead = fac.getFunction(fac.getPredicate(\"A\", 1), fac.getFunction(fac.getPredicate(\"uri\", 1), fac.getVariable(\"x\")));\n\t\tCQIE rule1 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule1);\n\n\t\t// A rule 2 R(f(x),y) :- T2(x,y)\n\t\tbody = fac.getFunction(fac.getPredicate(\"T2\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"f\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\tCQIE rule2 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule2);\n\n\t\t// A rule 3 R(g(x),y) :- T3(x,y)\n\t\t\n\t\tbody = fac.getFunction(fac.getPredicate(\"T3\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"g\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\tCQIE rule3 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule3);\n\n\t\tDatalogUnfolder unfolder = new DatalogUnfolder(p.getRules());\n\t\tDatalogProgram result = unfolder.unfold(queryProgram, \"q\");\n\n\t\t// Only one rule should be returned where y is null\n\t\tSystem.out.println(result);\n\t\tassertEquals(1, result.getRules().size());\n\t\tassertTrue(result.getRules().toString().contains(\"null\"));\n\t\tassertTrue(result.getRules().toString().contains(\"T1(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"A(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"R(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\tassertTrue(result.getRules().get(0).getBody().size() == 1);\n\t}", "public void resetRelatesToList(MappingType mapping) {\n\t\tmapping.getRelatesTo().clear();\n\t}", "public void unsetDirectForward()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DIRECTFORWARD$14, 0);\n }\n }", "@SuppressWarnings(\"unchecked\") // Needed to stop Eclipse whining\n private void resetWithHole() {\n Entry<K, V>[] entries = new Entry[] {a, c};\n super.resetMap(entries);\n navigableMap = (NavigableMap<K, V>) getMap();\n }", "@Override\n public boolean isReversible() {\n return true;\n }", "@Override\r\n public PhoenixDriver forward()\r\n {\n return null;\r\n }", "private void removeIfNeeded(String prefix) {\r\n // remove the previous mapping to the prefix\r\n if (this.prefixMapping.containsValue(prefix)) {\r\n Object key = null;\r\n for (Enumeration e = this.prefixMapping.keys(); e.hasMoreElements();) {\r\n key = e.nextElement();\r\n if (this.prefixMapping.get(key).equals(prefix)) \r\n break;\r\n }\r\n this.prefixMapping.remove(key); // we know key should have a value\r\n\t if (DEBUG) System.err.println(\"Removed \" + prefix);\r\n \r\n }\r\n }", "@Override\n public void retrack() {\n }", "@Override\n\tpublic State eStateAbsMapping(State state, QNode qNode) {\n\t\treturn null;\n\t}", "public ActionForward unspecified(ActionMapping mapping, ActionForm form,\n HttpServletRequest request, HttpServletResponse response)\n throws Exception {\n this.setup(mapping,form,request,response);\n \n return mapping.findForward(\"backToGeneExp\");\n }", "@Override\n\tpublic State qStateAbsMapping(State state, QNode qNode) {\n\t\treturn null;\n\t}", "private void f(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 1;\n r2 = F;\n r7.y = r8;\n r0 = r7.m;\n r0 = r0.entrySet();\n r3 = r0.iterator();\n L_0x000f:\n r0 = r3.hasNext();\n if (r0 == 0) goto L_0x004a;\n L_0x0015:\n r0 = r3.next();\n r0 = (java.util.Map.Entry) r0;\n r1 = r0.getValue();\n r1 = (java.util.List) r1;\n r4 = r1.size();\t Catch:{ RuntimeException -> 0x0077 }\n if (r4 != r6) goto L_0x0043;\n L_0x0027:\n r4 = J;\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 28;\n r4 = r4[r5];\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 0;\n r5 = r1.get(r5);\t Catch:{ RuntimeException -> 0x0079 }\n r4 = r4.equals(r5);\t Catch:{ RuntimeException -> 0x0079 }\n if (r4 == 0) goto L_0x0043;\n L_0x0038:\n r4 = r7.e;\t Catch:{ RuntimeException -> 0x007b }\n r0 = r0.getKey();\t Catch:{ RuntimeException -> 0x007b }\n r4.add(r0);\t Catch:{ RuntimeException -> 0x007b }\n if (r2 == 0) goto L_0x0048;\n L_0x0043:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007b }\n r0.addAll(r1);\t Catch:{ RuntimeException -> 0x007b }\n L_0x0048:\n if (r2 == 0) goto L_0x000f;\n L_0x004a:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007d }\n r1 = J;\t Catch:{ RuntimeException -> 0x007d }\n r2 = 29;\n r1 = r1[r2];\t Catch:{ RuntimeException -> 0x007d }\n r0 = r0.remove(r1);\t Catch:{ RuntimeException -> 0x007d }\n if (r0 == 0) goto L_0x0065;\n L_0x0058:\n r0 = B;\t Catch:{ RuntimeException -> 0x007d }\n r1 = java.util.logging.Level.WARNING;\t Catch:{ RuntimeException -> 0x007d }\n r2 = J;\t Catch:{ RuntimeException -> 0x007d }\n r3 = 30;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x007d }\n r0.log(r1, r2);\t Catch:{ RuntimeException -> 0x007d }\n L_0x0065:\n r1 = r7.G;\n r0 = r7.m;\n r2 = java.lang.Integer.valueOf(r6);\n r0 = r0.get(r2);\n r0 = (java.util.Collection) r0;\n r1.addAll(r0);\n return;\n L_0x0077:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0079 }\n L_0x0079:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x007b }\n L_0x007b:\n r0 = move-exception;\n throw r0;\n L_0x007d:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.f(java.lang.String):void\");\n }", "public void testUnfoldingWithOneSuccessfulResolutions() {\n\t\t\t\n\t\t\tDatalogProgram queryProgram = fac.getDatalogProgram();\n\t\t\tFunction a = fac.getFunction(fac.getClassPredicate(\"A\"), fac.getVariable(\"x\"));\n\t\t\tFunction R = fac.getFunction(fac.getObjectPropertyPredicate(\"R\"), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\tFunction lj = fac.getSPARQLLeftJoin(a, R);\n\t\t\tFunction head = fac.getFunction(fac.getPredicate(\"q\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\tCQIE query = fac.getCQIE(head, lj);\n\t\t\tqueryProgram.appendRule(query);\n\n\t\t\t// Mapping program\n\t\t\tDatalogProgram p = fac.getDatalogProgram();\n\t\t\t// A rule 1 A(uri(x)) :- T1(x,y)\n\t\t\tFunction body = fac.getFunction(fac.getPredicate(\"T1\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\thead = fac.getFunction(fac.getPredicate(\"A\", 1), fac.getFunction(fac.getPredicate(\"uri\", 1), fac.getVariable(\"x\")));\n\t\t\tCQIE rule1 = fac.getCQIE(head, body);\n\t\t\tp.appendRule(rule1);\n\n\t\t\t// A rule 2 R(f(x),y) :- T2(x,y)\n\t\t\tbody = fac.getFunction(fac.getPredicate(\"T2\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"f\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\t\tCQIE rule2 = fac.getCQIE(head, body);\n\t\t\tp.appendRule(rule2);\n\n\t\t\t// A rule 3 R(uri(x),y) :- T3(x,y)\n\t\t\t\n\t\t\tbody = fac.getFunction(fac.getPredicate(\"T3\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"uri\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\t\tCQIE rule3 = fac.getCQIE(head, body);\n\t\t\tp.appendRule(rule3);\n\n\t\t\tDatalogUnfolder unfolder = new DatalogUnfolder(p.getRules());\n\t\t\tDatalogProgram result = unfolder.unfold(queryProgram, \"q\");\n\n\t\t\t// Only one rule should be returned where y is null\n\t\t\tSystem.out.println(result);\n\t\t\tassertEquals(1, result.getRules().size());\n\t\t\tassertTrue(result.getRules().toString().contains(\"T1(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"T3(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"uri(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\t\t\n\t\t\tassertFalse(result.getRules().toString().contains(\"A(\"));\n\t\t\tassertFalse(result.getRules().toString().contains(\"R(\"));\n\t\t\tassertFalse(result.getRules().toString().contains(\"T2(\"));\n\t\t\t\n\t\t\tassertFalse(result.getRules().toString().contains(\"null\"));\n\t\t\tassertTrue(result.getRules().get(0).getBody().size() == 1);\n\t\t\n\t}", "@Override\n public boolean noLastMapVersion() {\n // non implementato\n return false;\n }", "@Override\n\tpublic Object forward(Object input) {\n\t\treturn null;\n\t}", "@Test\n\tpublic void testAbstractManualRewrites_Bug717() throws Exception {\n\t\timportProofSerializationProofs();\n\n\t\tfinal IPRRoot prFile = getProofRoot(\"partitionRewrite\");\n\t\tfinal IPRProof proof = prFile.getProof(\"oldPartitionRewrite\");\n\n\t\t// a IllegalStateException is thrown when the bug is present:\n\t\tfinal IProofTree proofTree = proof.getProofTree(null);\n\n\t\t// ensure that the proof rule is deserialized:\n\t\tfinal IProofTreeNode root = proofTree.getRoot();\n\t\tassertFalse(root.isOpen());\n\t\tfinal IProofRule rule = root.getRule();\n\t\tassertEquals(SequentProver.PLUGIN_ID + \".partitionRewrites\", rule.generatedBy().getReasonerID());\n\t\tassertEquals(3, rule.getAntecedents()[0].getHypActions().size());\n\t}", "public ONDEXGraph runMapping(AbstractONDEXPluginInit map, ONDEXGraph graphInput) throws Exception {\n ONDEXIterator<ONDEXRelation> rit = graphInput.getRelations();\n if (rit == null) return graphInput;\n long relationsPre = rit.size();\n rit.close();\n MappingArguments ma = (MappingArguments) map.getArguments();\n if (ma == null) ma = new MappingArguments();\n LuceneEnv lenv = null;\n if (map.getPlugin().requiresIndexedGraph()) {\n lenv = getIndex(graphInput, map.getPlugin().getName());\n }\n String name = map.getPlugin().getName();\n AbstractONDEXMapping mapping = (AbstractONDEXMapping) map.getPlugin();\n mapping.addMappingListener(pluginLogger);\n mapping.setArguments(ma);\n long start = System.currentTimeMillis();\n mapping.setONDEXGraph(graphInput);\n mapping.start();\n fireEventOccurred(new GeneralOutputEvent(name + \" took \" + (System.currentTimeMillis() - start) + \" msec.\", getCurrentMethodName()));\n rit = graphInput.getRelations();\n long relationsPost = rit.size() - relationsPre;\n fireEventOccurred(new GeneralOutputEvent(\"New Relations: \" + relationsPost, getCurrentMethodName()));\n rit.close();\n rit = null;\n removeIndex(graphInput, lenv);\n System.runFinalization();\n System.gc();\n if (penv != null) penv.commit();\n return graphInput;\n }", "@Override\r\n\tpublic void onReCalculateRouteForYaw() {\n\r\n\t}", "void restore(V patternVertex, V targetVertex) {\n\t\tpatternState.removeAllPreds(patternVertex);\n\t\tpatternState.removeAllSuccs(patternVertex);\n\t\tpatternState.sol.remove(patternVertex);\n\t\t\n\t\ttargetState.removeAllPreds(targetVertex);\n\t\ttargetState.removeAllSuccs(targetVertex);\n\t\ttargetState.sol.remove(targetVertex);\n\t\t\n\t\tpartialMapping.remove(patternVertex);\n\t}", "public void filterToBidirectionalLinks() {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) getRTComponent().rc; if (myrc == null) return;\n\n // Get the visible links, extract the direction, create the reverse direction -- if that exists, add those records to keepers\n Iterator<String> it = myrc.graphedgeref_to_link.keySet().iterator(); Set<Bundle> to_keep = new HashSet<Bundle>();\n while (it.hasNext()) {\n String graph_edge_ref = it.next(); String line_ref = myrc.graphedgeref_to_link.get(graph_edge_ref);\n int fm_i = digraph.linkRefFm(graph_edge_ref);\n int to_i = digraph.linkRefTo(graph_edge_ref);\n String other_dir = digraph.getLinkRef(to_i,fm_i);\n if (myrc.graphedgeref_to_link.containsKey(other_dir)) { to_keep.addAll(myrc.link_counter_context.getBundles(line_ref)); }\n }\n\n // Add the no mapping set and push it to the RTParent\n to_keep.addAll(getRTComponent().getNoMappingSet()); getRTParent().push(getRTParent().getRootBundles().subset(to_keep));\n }", "private void updateFastForward(String out) {\n\t\tif (out.equals(properties.get(\"errorMsg\")) || out.equals(properties.get(\"failureMsg\"))) {\n\t\t\tfastForward = true;\n\t\t}\n\t}", "public interface USLActionBanHistoryMapping extends ObjectMapping<USLActionBanHistory> {\n\t/**\n\t * Fetch all of the maps where it has the given usl action id.\n\t * \n\t * @param uslActionId the id of the USLAction\n\t * @return the mapping to the bans for that action\n\t */\n\tpublic List<USLActionBanHistory> fetchByUSLActionID(int uslActionId);\n\t\n\t/**\n\t * Fetch all of the maps where we have the given ban history.\n\t * \n\t * @param banHistoryId the id of the ban history\n\t * @return the mapping to the actions for that ban history\n\t */\n\tpublic List<USLActionBanHistory> fetchByBanHistoryID(int banHistoryId);\n\t\n\t/**\n\t * Determines if this mapping contains the given relationship\n\t * \n\t * @param uslActionId the action\n\t * @param banHistoryId the ban history\n\t * @return if that relationship is in the database\n\t */\n\tpublic boolean contains(int uslActionId, int banHistoryId);\n\t\n\t/**\n\t * Delete the row with the specified columns\n\t * @param uslActionId the id of the action\n\t * @param banHistoryId the id of the ban history\n\t */\n\tpublic void delete(int uslActionId, int banHistoryId);\n\t\n}", "public void readForward() {\n\t\tiStream = new ByteArrayInputStream(marshalledBytes);\t\n\t\tdin = new DataInputStream(new BufferedInputStream(iStream));\n\t\ttry {\n\t\t\tint nRouteStops = din.readInt();\n\t\t\tint routeByteLength = din.readInt();\n\t\t\tbyte[] routeBytes = new byte[routeByteLength];\n\t\t\tdin.readFully(routeBytes);\n\t\t\tlong payload = din.readLong();\n\n\t\t\tArrayList<String> route = new ArrayList<String>();\n\t\t\tByteArrayInputStream bis = new ByteArrayInputStream(routeBytes);\n\t\t\tDataInputStream dis = new DataInputStream(bis);\n\t\t\tint nameLength; byte[] ipNameBytes; String ip;\n\t\t\tfor (int i=0; i< nRouteStops; i++ ) {\n\t\t\t\tnameLength = dis.readInt();\n\t\t\t\tipNameBytes = new byte[nameLength];\n\t\t\t\tdis.readFully(ipNameBytes);\n\t\t\t\tip = new String(ipNameBytes);\n\t\t\t\troute.add(ip);\n\t\t\t}\n\n\t\t\tif(nRouteStops == 0) {\n\t\t\t\tnode.addToReceiveSum(payload);\n\t\t\t\tnode.incrementReceiveTracker();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSocket senderSocket=null; Message message=null;\n\t\t\t\tnode.incrementRelayTracker();\n\t\t\t\tfor(int i =0; i<route.size();i++) {\n\t\t\t\t\tif (node.getConnections().getSocketWithName(route.get(i))!=null) {\n\t\t\t\t\t\tString nextStop = route.remove(i);\n\t\t\t\t\t\t message = new ForwardMessage(route,payload);\n\t\t\t\t\t\tsenderSocket = node.getConnections().getSocketWithName(nextStop);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnew TCPSender(senderSocket, message);\n\t\t\t}\n\t\t} catch (IOException e) { System.out.println(\"Failed to read message. \"); }\n\t}", "void reapplyBreakpoints()\n\t{\n\t\t// give us a bit of time to process the newly loaded swf\n\t\tif (propertyGet(METADATA_ATTEMPTS) > 0)\n\t\t\ttry { waitForMetaData(80); } catch(InProgressException ipe) { }\n\n\t\tint count = breakpointCount();\n\t\tfor(int i=0; i<count; i++)\n\t\t{\n\t\t\tBreakAction a = breakpointAt(i);\n\t\t\ta.clearHits();\n\t\t\ta.setStatus(BreakAction.UNRESOLVED);\n\t\t}\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tresolveBreakpoints(sb);\n\t\tout(sb.toString());\n\t}", "@Override\n\tpublic void onReCalculateRouteForYaw() {\n\n\t}", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "public String setForward(){\n\t\tif(forward.empty())\n\t\t\treturn null;\n\n\t\treturn forward.pop();\n\t}", "@Override\n\tpublic void rewind() {\n\t\t\n\t}", "public void backUp(){\n backSolenoid.set(DoubleSolenoid.Value.kForward);\n }", "public void markNextHopIpv4GwAddr1Replace() throws JNCException {\n markLeafReplace(\"nextHopIpv4GwAddr1\");\n }", "public void reverse() {\n/* 298 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "void onRemap(String id);", "public Hashtable getRemappedValues() throws Exception;", "private void removeNoMoreExistingOriginalEdges() {\n for (MirrorEdge mirrorEdge : directEdgeMap.values()) {\n if (!originalGraph.has(mirrorEdge.original)) {\n for (Edge segment : mirrorEdge.segments) {\n mirrorGraph.forcedRemove(segment);\n reverseEdgeMap.remove(segment);\n }\n for (Node bend : mirrorEdge.bends) {\n mirrorGraph.forcedRemove(bend);\n reverseEdgeMap.remove(bend);\n }\n directEdgeMap.remove(mirrorEdge.original);\n }\n }\n }", "Mapper<T, T2> ignoring(Ignorable ignorable);", "public final void rewind() {\n branch = 0;\n }", "private void restoreMappingPreviousState(ApplicationInfo readPerst)\n\t\t\tthrows RowsExceededException, WriteException, BiffException,\n\t\t\tIOException {\n\t\tint size = NcaMappingDispGui.createMappingInstance().availableVariablesListmodel\n\t\t\t\t.size();\n\t\tfor (int i = NcaMappingDispGui.createMappingInstance().availableVariablesListmodel\n\t\t\t\t.size() - 1; i >= 0; i--) {\n\t\t\tNcaMappingDispGui.createMappingInstance().availableVariablesListmodel\n\t\t\t\t\t.remove(i);\n\t\t}\n\n\t\t// setting the available columns\n\t\tfor (int i = 0; i < readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t.getProcessingInputs().getMappingDataObj()\n\t\t\t\t.getAvailableColumnsVector().size(); i++) {\n\t\t\tNcaMappingDispGui.createMappingInstance().availableVariablesListmodel\n\t\t\t\t\t.add(i, readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t\t\t\t.getProcessingInputs().getMappingDataObj()\n\t\t\t\t\t\t\t.getAvailableColumnsVector().get(i));\n\n\t\t}\n\n\t\t// since sort variables are not populated while creating a new\n\t\t// ncaMainScreen\n\t\t// we need not remove anything, so\n\t\t// setting the sort variables\n\t\tfor (int i = 0; i < readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t.getProcessingInputs().getMappingDataObj()\n\t\t\t\t.getSortVariablesListVector().size(); i++) {\n\t\t\tNcaMappingDispGui.createMappingInstance().sortVariableListModel\n\t\t\t\t\t.add(i, readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t\t\t\t.getProcessingInputs().getMappingDataObj()\n\t\t\t\t\t\t\t.getSortVariablesListVector().get(i));\n\n\t\t}\n\n\t\t// setting the time column\n\n\t\tNcaMappingDispGui.createMappingInstance().xVariableTextField\n\t\t\t\t.setText(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t\t\t.getProcessingInputs().getMappingDataObj()\n\t\t\t\t\t\t.getxColumnName());\n\n\t\t// setting the concentration column\n\n\t\tNcaMappingDispGui.createMappingInstance().yVariableTextField\n\t\t\t\t.setText(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t\t\t.getProcessingInputs().getMappingDataObj()\n\t\t\t\t\t\t.getYcolumnName());\n\n\t\t// setting the end time column\n\t\t// restore this value only if the previous analysis is of model type\n\t\t// urine\n\t\tif (readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t.getProcessingInputs().getModelInputsObj().getModelType() == 1) {\n\t\t\tNcaMappingDispGui.createMappingInstance().endTimeVariableTextField\n\t\t\t\t\t.setText(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t\t\t\t.getProcessingInputs().getMappingDataObj()\n\t\t\t\t\t\t\t.getEndTimeColumnName());\n\n\t\t\tNcaMappingDispGui.createMappingInstance().volumeVariableTextField\n\t\t\t\t\t.setText(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t\t\t\t.getProcessingInputs().getMappingDataObj()\n\t\t\t\t\t\t\t.getVolumeColumnName());\n\t\t}\n\n\t\t// setting the subject column name\n\t\t// restore this value only when if it was a sparse analysis\n\t\tif (readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t.getProcessingInputs().getModelInputsObj()\n\t\t\t\t.getisSparseSelected() == true) {\n\n\t\t\tNcaMappingDispGui.createMappingInstance().subjectTextField\n\t\t\t\t\t.setText(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getWorkSheetObjectsAL().get(\n\t\t\t\t\t\t\treadPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getWorkBooksArrayList().get(readPerst.getProjectInfoAL().get(readPerst.getSelectedProjectIndex()).getSelectedWorkBookIndex()).getSelectedSheetIndex()).getNcaInfo()\n\t\t\t\t\t\t\t.getProcessingInputs().getMappingDataObj()\n\t\t\t\t\t\t\t.getSubjectColumnName());\n\t\t}\n}", "protected void sequence_BACKWARD(ISerializationContext context, BACKWARD semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_YIMPL__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_YIMPL__NAME));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_YIMPL__DISTANCE_CST) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_YIMPL__DISTANCE_CST));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_YIMPL__TEMPS_CST) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_YIMPL__TEMPS_CST));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getBACKWARDAccess().getNameBackwardKeyword_0_0(), semanticObject.getName());\n\t\tfeeder.accept(grammarAccess.getBACKWARDAccess().getDistanceCSTINTTerminalRuleCall_4_0(), semanticObject.getDistanceCST());\n\t\tfeeder.accept(grammarAccess.getBACKWARDAccess().getTempsCSTINTTerminalRuleCall_7_0(), semanticObject.getTempsCST());\n\t\tfeeder.finish();\n\t}", "public void testSubgraphsDontPolluteDefaultPrefix() \n {\n String imported = \"http://imported#\", local = \"http://local#\";\n g1.getPrefixMapping().setNsPrefix( \"\", imported );\n poly.getPrefixMapping().setNsPrefix( \"\", local );\n assertEquals( null, poly.getPrefixMapping().getNsURIPrefix( imported ) );\n }", "void flipPath(int lastNode) {\n int myLastNode = lastNode;\n while (myLastNode != EMPTY_LABEL) {\n int parent = this.tLabels[myLastNode];\n\n // Add (parent, lastNode) to matching. We don't need to\n // explicitly remove any edges from the matching because:\n // * We know at this point that there is no i such that\n // sMatches[i] = lastNode.\n // * Although there might be some j such that tMatches[j] =\n // parent, that j must be sLabels[parent], and will change\n // tMatches[j] in the next time through this loop.\n this.sMatches[parent] = lastNode;\n this.tMatches[myLastNode] = parent;\n\n myLastNode = this.sLabels[parent];\n }\n }", "public interface UnknownNameReferenceResolver<R, I extends IndexAddressable.NamedIndexAddressable<N>, N extends NamedSemanticRegion<T>, T extends Enum<T>> {\n\n <X> X resolve(Extraction extraction, UnknownNameReference<T> ref, ResolutionConsumer<R, I, N, T, X> c) throws IOException;\n\n default <X> Map<UnknownNameReference<T>, X> resolveAll(Extraction extraction,\n SemanticRegions<UnknownNameReference<T>> refs,\n ResolutionConsumer<R, I, N, T, X> c) throws IOException {\n Map<UnknownNameReference<T>, X> result = new HashMap<>();\n for (SemanticRegion<UnknownNameReference<T>> unk : refs) {\n X item = resolve(extraction, unk.key(), c);\n if (item != null) {\n result.put(unk.key(), item);\n }\n }\n return result;\n }\n\n Class<T> type();\n}", "private void updateOriginalEdgesInMirror() {\n for (Edge edge : originalGraph.edges()) {\n if (!directEdgeMap.containsKey(edge)) {\n constructMirrorEdge(edge);\n }\n MirrorEdge mirrorEdge = directEdgeMap.get(edge);\n updateMirrorEdgeBends(edge, mirrorEdge);\n updateMirrorEdgeSegments(mirrorEdge);\n originalAttributesToMirror(edge);\n }\n }", "public void forward() {\n callFunction(\"forward\");\n }", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingNonPersistentFields() {\n }", "public static void forward()\n {\n throw new UnsupportedOperationException();\n }", "public void resetReversePoison() {\n\n Set<AS> prevAdvedTo = this.adjOutRib.get(this.asn * -1);\n\n if (prevAdvedTo != null) {\n for (AS pAS : prevAdvedTo) {\n pAS.withdrawPath(this, this.asn * -1);\n }\n }\n\n this.adjOutRib.remove(this.asn * -1);\n\n this.botSet = new HashSet<>();\n }", "@Override\n public List<String> getNextMappings(NextGroup nextGroup) {\n return Collections.emptyList();\n }", "@Override\n public List<String> getNextMappings(NextGroup nextGroup) {\n return Collections.emptyList();\n }", "@Override\r\n\tpublic boolean needDealMapper() {\n\t\treturn false;\r\n\t}", "public interface Remapper {\n\n\t/**\n\t * Reinitialize the remapper, clearing all accumulated requests.\n\t * @throws Exception if unable to initialize a new request.\n\t */\n\tpublic void clear() throws Exception;\n\n\t/**\n\t * Get the original date corresponding to a remapped value for a patient and element.\n\t * @param seqid an identifier for the remapping request for this value; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param siteid the site ID for the site on which the patient ID was created.\n\t * For trials using globally created patient IDs, all the site IDs can be set to\n\t * the empty string (\"\").\n\t * @param ptid the original patient ID.\n\t * @param tag the DICOM element tag string (gggg,eeee).\n\t * @param date the remapped date.\n\t * @param base the base date used as the starting date for offsetting dates.\n\t */\n\tpublic void getOriginalDate(\n\t\t\t\t\tint seqid, String siteid, String ptid,\n\t\t\t\t\tString tag, String date, String base);\n\n\t/**\n\t * Request a replacement for a date.\n\t * @param seqid an identifier for the remapping request for this value; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param siteid the site ID for the site on which the patient ID was created.\n\t * For trials using globally created patient IDs, all the site IDs can be set to\n\t * the empty string (\"\").\n\t * @param ptid the patient ID.\n\t * @param tag the DICOM element tag string (gggg,eeee).\n\t * @param date the date value of the element.\n\t * @param base the base date to use as the starting date for offsetting dates.\n\t */\n\tpublic void getOffsetDate(int seqid, String siteid, String ptid,\n\t\t\t\t\t\t\t\tString tag, String date, String base);\n\n\t/**\n\t * Request a replacement for a DICOM ID element.\n\t * @param seqid an identifier for the remapping request for this value; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param tag the DICOM element tag string (gggg,eeee).\n\t * @param gid the ID value to be replaced.\n\t */\n\tpublic void getGenericID(int seqid, String tag, String gid);\n\n\t/**\n\t * Request an accession number.\n\t * @param seqid an identifier for the remapping request for this value; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param tag the DICOM element tag string (gggg,eeee).\n\t * @param gid the value to be replaced.\n\t */\n\tpublic void getAccessionNumber(int seqid, String tag, String gid);\n\n\t/**\n\t * Request an integer which has not been returned before.\n\t */\n\tpublic void getInteger(int seqid);\n\n\t/**\n\t * Request a replacement for a UID.\n\t * @param seqid an identifier for the remapping request for this value; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param prefix the UID root to serve as a prefix for the replacement.\n\t * @param uid the UID to be replaced.\n\t */\n\tpublic void getUID(int seqid, String prefix, String uid);\n\n\t/**\n\t * Request a new UID.\n\t * @param seqid an identifier for the remapping request; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param prefix the UID root to serve as a prefix for the replacement.\n\t */\n\tpublic void getUID(int seqid, String prefix);\n\n\t/**\n\t * Get the remapped UID associated with an original UID.\n\t * @param seqid an identifier for the request; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param uid the remapped UID.\n\t */\n\tpublic void getRemappedUID(int seqid, String uid);\n\n\t/**\n\t * Get the original UID associated with a remapped UID.\n\t * @param seqid an identifier for the request; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param uid the original UID.\n\t */\n\tpublic void getOriginalUID(int seqid, String uid);\n\n\t/**\n\t * Request a replacement for a DICOM Patient ID.\n\t * @param seqid an identifier for the remapping request for this value; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param siteid the site ID for the site on which the patient ID was created.\n\t * For trials using globally created patient IDs, all the site IDs can be set to\n\t * the empty string (\"\").\n\t * @param ptid the patient ID.\n\t * @param prefix the prefix of the new Patient ID.\n\t * @param first the starting value of the sequentially increasing integer\n\t * used to generate IDs.\n\t * @param width the minimum width of the integer part of the Patient ID, with\n\t * leading zeroes supplied if the integer does not require the full field width.\n\t * @param suffix the suffix of the new Patient ID.\n\t */\n\tpublic void getPtID(int seqid, String siteid, String ptid,\n\t\t\t\t\t\t\tString prefix, int first, int width, String suffix);\n\n\t/**\n\t * Get the current number of values for which remapping requests have been received.\n\t * @return the number of remapping requests.\n\t */\n\tpublic int getCount();\n\n\t/**\n\t * Get the results of the remapping request.\n\t * @return Hashtable containing the remapped values, indexed by the seqid values\n\t * in the requests, or null if an error occurred in the remapping request.\n\t * @throws Exception if unable to communicate with the remapping database.\n\t */\n\tpublic Hashtable getRemappedValues() throws Exception;\n\n}", "public void markNextHopIpv4GwAddr2Replace() throws JNCException {\n markLeafReplace(\"nextHopIpv4GwAddr2\");\n }", "protected void sequence_FORWARD(ISerializationContext context, FORWARD semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_YIMPL__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_YIMPL__NAME));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_YIMPL__DISTANCE_CST) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_YIMPL__DISTANCE_CST));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_YIMPL__TEMPS_CST) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_YIMPL__TEMPS_CST));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getFORWARDAccess().getNameForwardKeyword_0_0(), semanticObject.getName());\n\t\tfeeder.accept(grammarAccess.getFORWARDAccess().getDistanceCSTINTTerminalRuleCall_4_0(), semanticObject.getDistanceCST());\n\t\tfeeder.accept(grammarAccess.getFORWARDAccess().getTempsCSTINTTerminalRuleCall_7_0(), semanticObject.getTempsCST());\n\t\tfeeder.finish();\n\t}", "private void processClassMemberMapping(String className,\n String line,\n MappingProcessor mappingProcessor)\n {\n // See if we can parse one of\n // ___ ___ -> ___\n // ___:___:___ ___(___) -> ___\n // ___:___:___ ___(___):___ -> ___\n // ___:___:___ ___(___):___:___ -> ___\n // containing the optional line numbers, the return type, the original\n // field/method name, optional arguments, the optional original line\n // numbers, and the new field/method name. The original field/method\n // name may contain an original class name \"___.___\".\n\n int colonIndex1 = line.indexOf(':');\n int colonIndex2 = colonIndex1 < 0 ? -1 : line.indexOf(':', colonIndex1 + 1);\n int spaceIndex = line.indexOf(' ', colonIndex2 + 2);\n int argumentIndex1 = line.indexOf('(', spaceIndex + 1);\n int argumentIndex2 = argumentIndex1 < 0 ? -1 : line.indexOf(')', argumentIndex1 + 1);\n int colonIndex3 = argumentIndex2 < 0 ? -1 : line.indexOf(':', argumentIndex2 + 1);\n int colonIndex4 = colonIndex3 < 0 ? -1 : line.indexOf(':', colonIndex3 + 1);\n int arrowIndex = line.indexOf(\"->\", (colonIndex4 >= 0 ? colonIndex4 :\n colonIndex3 >= 0 ? colonIndex3 :\n argumentIndex2 >= 0 ? argumentIndex2 :\n spaceIndex) + 1);\n\n if (spaceIndex < 0 ||\n arrowIndex < 0)\n {\n return;\n }\n\n // Extract the elements.\n String type = line.substring(colonIndex2 + 1, spaceIndex).trim();\n String name = line.substring(spaceIndex + 1, argumentIndex1 >= 0 ? argumentIndex1 : arrowIndex).trim();\n String newName = line.substring(arrowIndex + 2).trim();\n\n // Does the method name contain an explicit original class name?\n String newClassName = className;\n int dotIndex = name.lastIndexOf('.');\n if (dotIndex >= 0)\n {\n className = name.substring(0, dotIndex);\n name = name.substring(dotIndex + 1);\n }\n\n // Process this class member mapping.\n if (type.length() > 0 &&\n name.length() > 0 &&\n newName.length() > 0)\n {\n // Is it a field or a method?\n if (argumentIndex2 < 0)\n {\n mappingProcessor.processFieldMapping(className,\n type,\n name,\n newClassName,\n newName);\n }\n else\n {\n int firstLineNumber = 0;\n int lastLineNumber = 0;\n int newFirstLineNumber = 0;\n int newLastLineNumber = 0;\n\n if (colonIndex2 >= 0)\n {\n firstLineNumber = newFirstLineNumber = Integer.parseInt(line.substring(0, colonIndex1).trim());\n lastLineNumber = newLastLineNumber = Integer.parseInt(line.substring(colonIndex1 + 1, colonIndex2).trim());\n }\n\n if (colonIndex3 >= 0)\n {\n firstLineNumber = Integer.parseInt(line.substring(colonIndex3 + 1, colonIndex4 > 0 ? colonIndex4 : arrowIndex).trim());\n lastLineNumber = colonIndex4 < 0 ? firstLineNumber :\n Integer.parseInt(line.substring(colonIndex4 + 1, arrowIndex).trim());\n }\n\n String arguments = line.substring(argumentIndex1 + 1, argumentIndex2).trim();\n\n mappingProcessor.processMethodMapping(className,\n firstLineNumber,\n lastLineNumber,\n type,\n name,\n arguments,\n newClassName,\n newFirstLineNumber,\n newLastLineNumber,\n newName);\n }\n }\n }", "public List<String> restoreIpAddressesBacktrack1(String s) {\n List<String> res = new ArrayList<>();\n if (s == null || s.length() < 4 || s.length() > 12) return res;\n List<String> aList = new ArrayList<>();\n StringBuilder current = new StringBuilder();\n backTrack(res, s, aList, current, 0);\n return res;\n }", "void restoreBefore() {\r\n\t\t\tsurface.basemap.clear();\r\n\t\t\tsurface.basemap.putAll(basemapBefore);\r\n\t\t\tsurface.buildingmap.clear();\r\n\t\t\tsurface.buildingmap.putAll(buildingmapBefore);\r\n\t\t\tsurface.features.clear();\r\n\t\t\tsurface.features.addAll(surfaceBefore);\r\n\t\t\tsurface.buildings.clear();\r\n\t\t\tsurface.buildings.addAll(buildingsBefore);\r\n\t\t}", "public Output<TInt64> remapping() {\n return remapping;\n }", "public void navigate_forward() throws CheetahException {\n\t\ttry {\n\t\t\tCheetahEngine.getDriverInstance().navigate().forward();\n\t\t} catch (Exception e) {\n\t\t\tthrow new CheetahException(e);\n\t\t}\n\t}", "public Mapping mapSharedTo(TracePosition trace) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9654:OrglRoot methodsFor: 'accessing'!\n{Mapping} mapSharedTo: trace {TracePosition}\n\t\"return a mapping from my data to corresponding stuff in the given trace\"\n\tself subclassResponsibility!\n*/\n}", "public void resetRecordRoute() {\r\n\t\tthis.recordRoute = false;\r\n\t}", "public void resetTransforms() { \r\n transforms2 = new HashMap<BundlesDT.DT,Map<String,Map<String,String>>>(); \r\n transforms2.put(BundlesDT.DT.IPv4, new HashMap<String,Map<String,String>>());\r\n transforms2.put(BundlesDT.DT.IPv4CIDR, new HashMap<String,Map<String,String>>());\r\n if (transforms.containsKey(BundlesDT.DT.IPv4)) {\r\n Iterator<String> it = transforms.get(BundlesDT.DT.IPv4).keySet().iterator();\r\n while (it.hasNext()) transforms2.get(BundlesDT.DT.IPv4).put(it.next(), new HashMap<String,String>());\r\n }\r\n if (transforms.containsKey(BundlesDT.DT.IPv4CIDR)) {\r\n sorted_cidr_trans = new HashMap<String,CIDRRec[]>();\r\n Iterator<String> it = transforms.get(BundlesDT.DT.IPv4CIDR).keySet().iterator();\r\n while (it.hasNext()) {\r\n String trans = it.next();\r\n transforms2.get(BundlesDT.DT.IPv4).put(trans, new HashMap<String,String>());\r\n transforms2.get(BundlesDT.DT.IPv4CIDR).put(trans, new HashMap<String,String>());\r\n\tCIDRRec recs[] = new CIDRRec[transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).keySet().size()];\r\n\tIterator<String> it_cidr = transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).keySet().iterator();\r\n\tfor (int i=0;i<recs.length;i++) {\r\n\t String cidr = it_cidr.next();\r\n\t recs[i] = new CIDRRec(cidr,transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).get(cidr));\r\n }\r\n\tArrays.sort(recs);\r\n\tsorted_cidr_trans.put(trans,recs);\r\n }\r\n }\r\n }", "@Override\n public void onMapVersionSet() {\n\n }", "private SymbolTable<String, SymbolData> transform(SymbolTable<String, SymbolData> symbolTable) throws Exception {\n for (String name : graph.reverseTopologicalSort()) {\n //log.debug(name);\n SymbolData symbolData = symbolTable.get(name);\n String json = symbolData.getJson();\n //log.debug(json);\n while(true) {\n Optional<Position> position = referenceDetector.detectFirstReference(json);\n //log.debug(json + position.isPresent());\n if(!position.isPresent()) break;\n Position pos = position.get();\n String jsonTobeReplaced = symbolTable.get(pos.getReferenceName().substring(1)).getJson();\n //log.debug(jsonTobeReplaced);\n json = json.substring(0, pos.getFrom())+jsonTobeReplaced+json.substring(pos.getTo());\n }\n log.debug(json);\n symbolData.setJson(json);\n }\n\n return symbolTable;\n }", "public void clearMappings() {\n if (mappings != null) {\n mappings.clear();\n }\n }", "@Test\n\tpublic void testForwardStartLoss() throws InvalidGenomeChange {\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6640669, PositionType.ZERO_BASED),\n\t\t\t\t\"ACG\", \"CGTT\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(1, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.1_3delinsCGTT\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation1.effects);\n\n\t\t// Delete chunk out of first exon, spanning start codon from the left.\n\t\tGenomeChange change2 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6640660, PositionType.ZERO_BASED),\n\t\t\t\t\"CCCTCCAGACC\", \"GTTG\");\n\t\tAnnotation annotation2 = new BlockSubstitutionAnnotationBuilder(infoForward, change2).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation2.transcript.accession);\n\t\tAssert.assertEquals(1, annotation2.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.-9_2delinsGTTG\", annotation2.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation2.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation2.effects);\n\n\t\t// Delete chunk out of first exon, spanning start codon from the right.\n\t\tGenomeChange change3 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6640671, PositionType.ZERO_BASED),\n\t\t\t\t\"GGACGGCTCCT\", \"CTTG\");\n\t\tAnnotation annotation3 = new BlockSubstitutionAnnotationBuilder(infoForward, change3).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation3.transcript.accession);\n\t\tAssert.assertEquals(1, annotation3.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.3_13delinsCTTG\", annotation3.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation3.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation3.effects);\n\n\t\t// Deletion from before transcript, reaching into the start codon.\n\t\tGenomeChange change4 = new GenomeChange(\n\t\t\t\tnew GenomePosition(refDict, '+', 1, 6640399, PositionType.ZERO_BASED),\n\t\t\t\t\"TCTCACCAGGCCCTTCTTCACGACCCTGGCCCCCCATCCAGCATCCCCCCTGGCCAATCCAATATGGCCCCCGGCCCCCGGGAGGCTGTCAGTGTGTTCCAGCCCTCCGCGTGCACCCCTCACCCTGACCCAAGCCCTCGTGCTGATAAATATGATTATTTGAGTAGAGGCCAACTTCCCGTTTCTCTCTCTTGACTCCAGGAGCTTTCTCTTGCATACCCTCGCTTAGGCTGGCCGGGGTGTCACTTCTGCCTCCCTGCCCTCCAGACCA\",\n\t\t\t\t\"ACCT\");\n\t\tAnnotation annotation4 = new BlockSubstitutionAnnotationBuilder(infoForward, change4).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation4.transcript.accession);\n\t\tAssert.assertEquals(AnnotationLocation.INVALID_RANK, annotation4.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.-69-201_1delinsACCT\", annotation4.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation4.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation4.effects);\n\t}", "public final flipsParser.forwardBackwardDirection_return forwardBackwardDirection() throws RecognitionException {\n flipsParser.forwardBackwardDirection_return retval = new flipsParser.forwardBackwardDirection_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal459=null;\n Token string_literal460=null;\n Token string_literal461=null;\n Token char_literal462=null;\n Token string_literal463=null;\n Token string_literal464=null;\n Token string_literal465=null;\n\n CommonTree char_literal459_tree=null;\n CommonTree string_literal460_tree=null;\n CommonTree string_literal461_tree=null;\n CommonTree char_literal462_tree=null;\n CommonTree string_literal463_tree=null;\n CommonTree string_literal464_tree=null;\n CommonTree string_literal465_tree=null;\n RewriteRuleTokenStream stream_199=new RewriteRuleTokenStream(adaptor,\"token 199\");\n RewriteRuleTokenStream stream_306=new RewriteRuleTokenStream(adaptor,\"token 306\");\n RewriteRuleTokenStream stream_308=new RewriteRuleTokenStream(adaptor,\"token 308\");\n RewriteRuleTokenStream stream_307=new RewriteRuleTokenStream(adaptor,\"token 307\");\n RewriteRuleTokenStream stream_310=new RewriteRuleTokenStream(adaptor,\"token 310\");\n RewriteRuleTokenStream stream_311=new RewriteRuleTokenStream(adaptor,\"token 311\");\n RewriteRuleTokenStream stream_309=new RewriteRuleTokenStream(adaptor,\"token 309\");\n\n try {\n // flips.g:676:2: ( ( 'f' | 'fwd' | 'forward' ) -> FORWARD | ( 'b' | 'bwd' | 'backward' | 'back' ) -> BACKWARD )\n int alt180=2;\n int LA180_0 = input.LA(1);\n\n if ( (LA180_0==199||(LA180_0>=306 && LA180_0<=307)) ) {\n alt180=1;\n }\n else if ( ((LA180_0>=308 && LA180_0<=311)) ) {\n alt180=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 180, 0, input);\n\n throw nvae;\n }\n switch (alt180) {\n case 1 :\n // flips.g:676:4: ( 'f' | 'fwd' | 'forward' )\n {\n // flips.g:676:4: ( 'f' | 'fwd' | 'forward' )\n int alt178=3;\n switch ( input.LA(1) ) {\n case 199:\n {\n alt178=1;\n }\n break;\n case 306:\n {\n alt178=2;\n }\n break;\n case 307:\n {\n alt178=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 178, 0, input);\n\n throw nvae;\n }\n\n switch (alt178) {\n case 1 :\n // flips.g:676:5: 'f'\n {\n char_literal459=(Token)match(input,199,FOLLOW_199_in_forwardBackwardDirection3950); \n stream_199.add(char_literal459);\n\n\n }\n break;\n case 2 :\n // flips.g:676:9: 'fwd'\n {\n string_literal460=(Token)match(input,306,FOLLOW_306_in_forwardBackwardDirection3952); \n stream_306.add(string_literal460);\n\n\n }\n break;\n case 3 :\n // flips.g:676:15: 'forward'\n {\n string_literal461=(Token)match(input,307,FOLLOW_307_in_forwardBackwardDirection3954); \n stream_307.add(string_literal461);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 677:2: -> FORWARD\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(FORWARD, \"FORWARD\"));\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:678:4: ( 'b' | 'bwd' | 'backward' | 'back' )\n {\n // flips.g:678:4: ( 'b' | 'bwd' | 'backward' | 'back' )\n int alt179=4;\n switch ( input.LA(1) ) {\n case 308:\n {\n alt179=1;\n }\n break;\n case 309:\n {\n alt179=2;\n }\n break;\n case 310:\n {\n alt179=3;\n }\n break;\n case 311:\n {\n alt179=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 179, 0, input);\n\n throw nvae;\n }\n\n switch (alt179) {\n case 1 :\n // flips.g:678:5: 'b'\n {\n char_literal462=(Token)match(input,308,FOLLOW_308_in_forwardBackwardDirection3966); \n stream_308.add(char_literal462);\n\n\n }\n break;\n case 2 :\n // flips.g:678:9: 'bwd'\n {\n string_literal463=(Token)match(input,309,FOLLOW_309_in_forwardBackwardDirection3968); \n stream_309.add(string_literal463);\n\n\n }\n break;\n case 3 :\n // flips.g:678:15: 'backward'\n {\n string_literal464=(Token)match(input,310,FOLLOW_310_in_forwardBackwardDirection3970); \n stream_310.add(string_literal464);\n\n\n }\n break;\n case 4 :\n // flips.g:678:26: 'back'\n {\n string_literal465=(Token)match(input,311,FOLLOW_311_in_forwardBackwardDirection3972); \n stream_311.add(string_literal465);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 679:2: -> BACKWARD\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(BACKWARD, \"BACKWARD\"));\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "abstract protected void revert();", "public void rewind() throws DbException, TransactionAbortedException {\n child1.rewind();\n child2.rewind();\n this.leftMap.clear();\n this.rightMap.clear();\n }", "@Override\r\n\tpublic void onReCalculateRouteForTrafficJam() {\n\r\n\t}", "protected EnzymeModel fixPdbXrefs(EnzymeModel summary) {\n if (mm != null){\n // PDB xrefs for every ortholog in the summary:\n for (EnzymeAccession relSp : summary.getRelatedspecies()) {\n Collection<XRef> pdbXrefs = mm.getXrefs(MmDatabase.UniProt,\n relSp.getUniprotaccessions().get(0), MmDatabase.PDB);\n if (pdbXrefs != null){\n relSp.setPdbeaccession(getToIds(pdbXrefs));\n }\n }\n // TODO: fix also the default species?\n try {\n mm.closeMap();\n } catch (IOException e) {\n LOGGER.error(\"Unable to close the mega-map\", e);\n }\n }\n return summary;\n }", "public void addTwoStepForwardToPositionCache(Key currentKey) {\n\n\t\tKey newKey = createTwoStepForwardFromCurrentKey(currentKey);\n\n\t\t// Gets current values stored with key and adds the extra position\n\t\tSet<Key> currentKeyMapping = positionCache.get(currentKey);\n\t\tcurrentKeyMapping.add(newKey);\n\t\tpositionCache.put(currentKey, currentKeyMapping);\n\t}", "private String findForward(String projectFormId) {\n\tProjectForm projectForm = ProjectForm.findProjectFormByFormId(projectFormId);\n\tif (projectForm == null) {\n\t return FWD_SUCCESS;\n\t}\n\tswitch (projectForm) {\n\tcase EID:\n\t return FWD_EID_ENTRY;\n\tcase VL:\n\t return FWD_VL_ENTRY;\n\tdefault:\n\t return FWD_SUCCESS;\n\t}\n }", "@Override\n public boolean onLocalMapNotFound() {\n // non implementato\n return false;\n }", "@Override\n\tpublic void resetToExisting() {\n\t\t\n\t}", "@Override\n\tprotected void processFrame(Frame toProcess) {\n\t\tFrameIO.SuspendCache();\n\n\t\tFrame fresh = FrameIO.LoadFrame(toProcess.getName());\n\t\tif (_nameMap.containsKey(fresh.getName().toLowerCase())) {\n\t\t\tfresh\n\t\t\t\t\t.setName(_nameMap.get(fresh.getName()\n\t\t\t\t\t\t\t.toLowerCase()));\n\t\t} else {\n\t\t\tfresh.setFrameset(_nameTo);\n\t\t\tfresh.setFrameNumber(++_lastNumber);\n\n\t\t\t_nameMap.put(toProcess.getName().toLowerCase(), fresh\n\t\t\t\t\t.getName().toLowerCase());\n\t\t}\n\n\t\tboolean added = false;\n\t\tfor (Item i : fresh.getItems())\n\t\t\tif (i.getLink() != null && !i.isAnnotation() && i.isLinkValid()) {\n\t\t\t\tString link = i.getLink().toLowerCase();\n\t\t\t\t//convert to absolute link with the old framesetName\n\t\t\t\tif (FrameIO.isPositiveInteger(link)){\n\t\t\t\t\tlink = _nameFrom + link;\n\t\t\t\t}\n\t\t\t\t//check if we already have this in our map\n\t\t\t\tif (_nameMap.containsKey(link))\n\t\t\t\t\tlink = _nameMap.get(link);\n\t\t\t\t//otherwise add it to our map\n\t\t\t\telse if (link.startsWith(_nameFrom)) {\n\t\t\t\t\t_nameMap.put(link, _nameTo + (++_lastNumber));\n\t\t\t\t\tlink = \"\" + _lastNumber;\n\t\t\t\t}\n\t\t\t\ti.setLink(link);\n\t\t\t} else if (!added && i.getLink() != null && i.isAnnotation()\n\t\t\t\t\t&& i.isLinkValid()) {\n\t\t\t\t// annotation links need to be parsed at the end\n\t\t\t\tif (i.getAbsoluteLink().toLowerCase().startsWith(_nameFrom)) {\n\t\t\t\t\t_toReparse.add(fresh.getName());\n\t\t\t\t\tadded = true;\n\t\t\t\t}\n\n\t\t\t}\n\t\t_frameCount++;\n\t\tfresh.setPath(_framePath);\n\t\tFrameIO.ForceSaveFrame(fresh);\n\t\tFrameIO.ResumeCache();\n\t}", "public void pump(MappingProcessor mappingProcessor) throws IOException\n {\n LineNumberReader reader =\n new LineNumberReader(\n new BufferedReader(\n new InputStreamReader(\n new FileInputStream(mappingFile), \"UTF-8\")));\n try\n {\n String className = null;\n\n // Read the subsequent class mappings and class member mappings.\n while (true)\n {\n String line = reader.readLine();\n\n if (line == null)\n {\n break;\n }\n\n line = line.trim();\n\n // Is it a non-comment line?\n if (!line.startsWith(\"#\"))\n {\n // Is it a class mapping or a class member mapping?\n if (line.endsWith(\":\"))\n {\n // Process the class mapping and remember the class's\n // old name.\n className = processClassMapping(line, mappingProcessor);\n }\n else if (className != null)\n {\n // Process the class member mapping, in the context of\n // the current old class name.\n processClassMemberMapping(className, line, mappingProcessor);\n }\n }\n }\n }\n catch (IOException ex)\n {\n throw new IOException(\"Can't process mapping file (\" + ex.getMessage() + \")\");\n }\n finally\n {\n try\n {\n reader.close();\n }\n catch (IOException ex)\n {\n // This shouldn't happen.\n }\n }\n }", "public void ReverseApply(SB_Entity p,SB_ExecutionFrame contextFrame, SB_ExecutionFrame sourceFrame, SB_Logger logger) \r\n\t\tthrows SB_Exception\r\n\t{\r\n\t}", "@Test\n public void mapRemove() {\n check(MAPREM);\n query(MAPSIZE.args(MAPREM.args(MAPENTRY.args(1, 2), 1)), 0);\n }", "public void unsetAutoForwardToName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(AUTOFORWARDTONAME$12, 0);\n }\n }", "public void clearAllDefinitionMappings()\n {\n _lovItemMappings.clear();\n }", "@Override\n\tpublic void onReCalculateRouteForTrafficJam() {\n\n\t}", "private void reverseLookupC_Location_ID() throws Exception\r\n\t{\r\n\t\tStringBuilder sql = new StringBuilder();\r\n\t\tString msg = new String();\r\n\t\tint no = 0;\r\n\r\n\t\t//Reverse Loog up C_Location_ID From JP_Location_Label\r\n\t\tmsg = Msg.getMsg(getCtx(), \"Matching\") + \" : \" + Msg.getElement(getCtx(), \"C_Location_ID\")\r\n\t\t+ \" - \" + Msg.getMsg(getCtx(), \"MatchFrom\") + \" : \" + Msg.getElement(getCtx(), \"JP_Location_Label\") ;\r\n\t\tsql = new StringBuilder (\"UPDATE I_LocationJP i \")\r\n\t\t\t\t.append(\"SET C_Location_ID=(SELECT C_Location_ID FROM C_Location p\")\r\n\t\t\t\t.append(\" WHERE i.JP_Location_Label= p.JP_Location_Label AND p.AD_Client_ID=i.AD_Client_ID) \")\r\n\t\t\t\t.append(\" WHERE i.C_Location_ID IS NULL AND JP_Location_Label IS NOT NULL\")\r\n\t\t\t\t.append(\" AND i.I_IsImported='N'\").append(getWhereClause());\r\n\t\ttry {\r\n\t\t\tno = DB.executeUpdateEx(sql.toString(), get_TrxName());\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.fine(msg +\"=\" + no + \":\" + sql);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + sql );\r\n\t\t}\r\n\r\n\t}", "@Override\n int convertBackward(int unused) {\n throw new UnsupportedOperationException();\n }" ]
[ "0.6051785", "0.56945837", "0.5479371", "0.5473627", "0.54065704", "0.53373635", "0.52997375", "0.5244642", "0.5241108", "0.522877", "0.5140043", "0.51161027", "0.50586504", "0.5045423", "0.50137454", "0.50102174", "0.49885428", "0.49432984", "0.49432984", "0.49320182", "0.4909371", "0.4900695", "0.48968232", "0.48815027", "0.48425105", "0.48295885", "0.4826833", "0.48079598", "0.4803231", "0.47859126", "0.47817233", "0.4769168", "0.47656426", "0.47579974", "0.47575673", "0.47307554", "0.472531", "0.4720914", "0.47143126", "0.46914008", "0.46617842", "0.466114", "0.46494308", "0.464277", "0.46414602", "0.46403277", "0.46328533", "0.4631786", "0.46312752", "0.4631017", "0.46282223", "0.461348", "0.4612736", "0.46101248", "0.46056405", "0.45896602", "0.45892394", "0.45522493", "0.45425206", "0.45393586", "0.45333856", "0.45260158", "0.4524419", "0.45215145", "0.4520103", "0.4518601", "0.4518601", "0.4503779", "0.4503758", "0.45034024", "0.4495077", "0.44932416", "0.4485128", "0.44795972", "0.44789523", "0.44786602", "0.44778013", "0.4474855", "0.44731554", "0.44635034", "0.44628417", "0.44624096", "0.44620386", "0.44617355", "0.44532183", "0.4450859", "0.44506037", "0.4450555", "0.44479278", "0.44471514", "0.444673", "0.4444773", "0.44437534", "0.44435558", "0.44433382", "0.4429636", "0.44280657", "0.4424377", "0.44235498", "0.44224477", "0.4421346" ]
0.0
-1
currently a warning, not an error
@Test public void fsckFIXMetricsMissingForward() throws Exception { storage.flushColumn("bar".getBytes(MockBase.ASCII()), ID_FAMILY, METRICS); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, true, false); assertEquals(0, errors); assertNull(storage.getColumn(new byte [] {0, 0, 2}, NAME_FAMILY, METRICS)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "protected boolean func_70041_e_() { return false; }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "public void method_4270() {}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void mo1964g() throws cf {\r\n }", "public void mo1944a() throws cf {\r\n }", "public void mo1976s() throws cf {\r\n }", "protected boolean func_70814_o() { return true; }", "@Override\n public void func_104112_b() {\n \n }", "public void mo1962e() throws cf {\r\n }", "public final void mo91715d() {\n }", "public void mo1972o() throws cf {\r\n }", "public void m23075a() {\n }", "public boolean method_2434() {\r\n return false;\r\n }", "public void mo38117a() {\n }", "void m5770d() throws C0841b;", "private stendhal() {\n\t}", "public boolean method_4088() {\n return false;\n }", "public boolean method_2453() {\r\n return false;\r\n }", "public void mo1966i() throws cf {\r\n }", "public boolean method_4132() {\n return false;\n }", "public boolean method_218() {\r\n return false;\r\n }", "void m5771e() throws C0841b;", "void m5769c() throws C0841b;", "public boolean method_216() {\r\n return false;\r\n }", "private void kk12() {\n\n\t}", "public void inquiryError() {\n\t\t\n\t}", "protected Problem() {/* intentionally empty block */}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "public boolean method_108() {\r\n return false;\r\n }", "public boolean method_194() {\r\n return false;\r\n }", "public boolean method_4093() {\n return false;\n }", "public void mo1963f() throws cf {\r\n }", "public boolean method_4102() {\n return false;\n }", "@Override\n public void perish() {\n \n }", "public boolean method_210() {\r\n return false;\r\n }", "void m1864a() {\r\n }", "public boolean method_208() {\r\n return false;\r\n }", "private void level7() {\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 }", "public void mo55254a() {\n }", "public void mo12628c() {\n }", "public void mo12930a() {\n }", "public void mo1960c() throws cf {\r\n }", "public boolean method_3897() {\r\n return false;\r\n }", "public void mo1970m() throws cf {\r\n }", "public boolean method_214() {\r\n return false;\r\n }", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "void m5768b() throws C0841b;", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "public boolean method_196() {\r\n return false;\r\n }", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "public void mo44053a() {\n }", "public void warningPermit();", "public void mo23813b() {\n }", "public void mo21779D() {\n }", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n System.out.println(\"Warning reported: \" + saxpe.getMessage());\n }", "public void mo21792Q() {\n }", "protected void mo6255a() {\n }", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "public void mo1974q() throws cf {\r\n }", "public abstract void mo70713b();", "public void mo55254a() {\n }", "public void mo21787L() {\n }", "public abstract void mo56925d();", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n }", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "public void mo4359a() {\n }", "public void mo115190b() {\n }", "public boolean method_198() {\r\n return false;\r\n }", "@Override\n\tpublic void onStallWarning(StallWarning arg0) {\n\t\t\n\t}", "private void checkNotUnknown() {\n if (isUnknown())\n throw new AnalysisException(\"Unexpected 'unknown' value!\");\n }", "public void mo6081a() {\n }", "void notSupported(String errorcode);", "public int method_113() {\r\n return 0;\r\n }", "void berechneFlaeche() {\n\t}", "@Override\n\t\tpublic void checkPreconditions() {\n\t\t}", "public void mo1531a() {\n }", "private static void runTestCWE8() {\n}", "private static void runTestCWE8() {\n}", "public void swrap() throws NoUnusedObjectExeption;", "private static void runTestCWE6() {\n}", "private static void runTestCWE6() {\n}", "public void mo21785J() {\n }", "private void m50367F() {\n }" ]
[ "0.6607475", "0.65735716", "0.64578193", "0.64516914", "0.63690615", "0.63607115", "0.6313633", "0.6277263", "0.6264403", "0.6251081", "0.6228066", "0.6212326", "0.6193183", "0.6173823", "0.6159397", "0.61412436", "0.6137461", "0.6134118", "0.6131424", "0.6128311", "0.6125895", "0.60996115", "0.609934", "0.6086772", "0.60867035", "0.60620254", "0.6057853", "0.604901", "0.6039225", "0.60285574", "0.6027521", "0.6026639", "0.6022298", "0.6022298", "0.59733164", "0.595578", "0.5955212", "0.5947853", "0.59411937", "0.5937788", "0.5932163", "0.5924105", "0.5910501", "0.5901154", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.5896116", "0.5893134", "0.58923537", "0.58854276", "0.5877016", "0.587468", "0.58742815", "0.58742815", "0.58696586", "0.58481723", "0.58481723", "0.5847125", "0.584581", "0.584581", "0.5842065", "0.5824734", "0.5819828", "0.5815501", "0.5815053", "0.580836", "0.58021235", "0.57941985", "0.5791938", "0.5791938", "0.57880926", "0.578688", "0.5784708", "0.578307", "0.5779751", "0.5779735", "0.5772275", "0.5772275", "0.5769752", "0.57687587", "0.57637197", "0.57539976", "0.57533115", "0.57527834", "0.5751981", "0.5743167", "0.5740184", "0.57315886", "0.5728917", "0.5728491", "0.5728491", "0.5719336", "0.5711022", "0.5711022", "0.57089555", "0.57051265" ]
0.0
-1
currently a warning, not an error
@Test public void fsckTagkMissingForward() throws Exception { storage.flushColumn("host".getBytes(MockBase.ASCII()), ID_FAMILY, TAGK); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(0, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "protected boolean func_70041_e_() { return false; }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "public void method_4270() {}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void mo1964g() throws cf {\r\n }", "public void mo1944a() throws cf {\r\n }", "public void mo1976s() throws cf {\r\n }", "protected boolean func_70814_o() { return true; }", "@Override\n public void func_104112_b() {\n \n }", "public void mo1962e() throws cf {\r\n }", "public final void mo91715d() {\n }", "public void mo1972o() throws cf {\r\n }", "public void m23075a() {\n }", "public boolean method_2434() {\r\n return false;\r\n }", "public void mo38117a() {\n }", "void m5770d() throws C0841b;", "private stendhal() {\n\t}", "public boolean method_4088() {\n return false;\n }", "public boolean method_2453() {\r\n return false;\r\n }", "public void mo1966i() throws cf {\r\n }", "public boolean method_4132() {\n return false;\n }", "public boolean method_218() {\r\n return false;\r\n }", "void m5771e() throws C0841b;", "void m5769c() throws C0841b;", "public boolean method_216() {\r\n return false;\r\n }", "private void kk12() {\n\n\t}", "public void inquiryError() {\n\t\t\n\t}", "protected Problem() {/* intentionally empty block */}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "public boolean method_108() {\r\n return false;\r\n }", "public boolean method_194() {\r\n return false;\r\n }", "public boolean method_4093() {\n return false;\n }", "public void mo1963f() throws cf {\r\n }", "public boolean method_4102() {\n return false;\n }", "@Override\n public void perish() {\n \n }", "public boolean method_210() {\r\n return false;\r\n }", "void m1864a() {\r\n }", "public boolean method_208() {\r\n return false;\r\n }", "private void level7() {\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 }", "public void mo55254a() {\n }", "public void mo12628c() {\n }", "public void mo12930a() {\n }", "public void mo1960c() throws cf {\r\n }", "public boolean method_3897() {\r\n return false;\r\n }", "public void mo1970m() throws cf {\r\n }", "public boolean method_214() {\r\n return false;\r\n }", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "void m5768b() throws C0841b;", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "public boolean method_196() {\r\n return false;\r\n }", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "public void mo44053a() {\n }", "public void warningPermit();", "public void mo23813b() {\n }", "public void mo21779D() {\n }", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n System.out.println(\"Warning reported: \" + saxpe.getMessage());\n }", "public void mo21792Q() {\n }", "protected void mo6255a() {\n }", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "public void mo1974q() throws cf {\r\n }", "public abstract void mo70713b();", "public void mo55254a() {\n }", "public void mo21787L() {\n }", "public abstract void mo56925d();", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n }", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "public void mo4359a() {\n }", "public void mo115190b() {\n }", "public boolean method_198() {\r\n return false;\r\n }", "@Override\n\tpublic void onStallWarning(StallWarning arg0) {\n\t\t\n\t}", "private void checkNotUnknown() {\n if (isUnknown())\n throw new AnalysisException(\"Unexpected 'unknown' value!\");\n }", "public void mo6081a() {\n }", "void notSupported(String errorcode);", "public int method_113() {\r\n return 0;\r\n }", "void berechneFlaeche() {\n\t}", "@Override\n\t\tpublic void checkPreconditions() {\n\t\t}", "public void mo1531a() {\n }", "private static void runTestCWE8() {\n}", "private static void runTestCWE8() {\n}", "public void swrap() throws NoUnusedObjectExeption;", "private static void runTestCWE6() {\n}", "private static void runTestCWE6() {\n}", "public void mo21785J() {\n }", "private void m50367F() {\n }" ]
[ "0.6607475", "0.65735716", "0.64578193", "0.64516914", "0.63690615", "0.63607115", "0.6313633", "0.6277263", "0.6264403", "0.6251081", "0.6228066", "0.6212326", "0.6193183", "0.6173823", "0.6159397", "0.61412436", "0.6137461", "0.6134118", "0.6131424", "0.6128311", "0.6125895", "0.60996115", "0.609934", "0.6086772", "0.60867035", "0.60620254", "0.6057853", "0.604901", "0.6039225", "0.60285574", "0.6027521", "0.6026639", "0.6022298", "0.6022298", "0.59733164", "0.595578", "0.5955212", "0.5947853", "0.59411937", "0.5937788", "0.5932163", "0.5924105", "0.5910501", "0.5901154", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.5896116", "0.5893134", "0.58923537", "0.58854276", "0.5877016", "0.587468", "0.58742815", "0.58742815", "0.58696586", "0.58481723", "0.58481723", "0.5847125", "0.584581", "0.584581", "0.5842065", "0.5824734", "0.5819828", "0.5815501", "0.5815053", "0.580836", "0.58021235", "0.57941985", "0.5791938", "0.5791938", "0.57880926", "0.578688", "0.5784708", "0.578307", "0.5779751", "0.5779735", "0.5772275", "0.5772275", "0.5769752", "0.57687587", "0.57637197", "0.57539976", "0.57533115", "0.57527834", "0.5751981", "0.5743167", "0.5740184", "0.57315886", "0.5728917", "0.5728491", "0.5728491", "0.5719336", "0.5711022", "0.5711022", "0.57089555", "0.57051265" ]
0.0
-1
currently a warning, not an error
@Test public void fsckFIXTagkMissingForward() throws Exception { storage.flushColumn("host".getBytes(MockBase.ASCII()), ID_FAMILY, TAGK); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, true, false); assertEquals(0, errors); assertNull(storage.getColumn(new byte [] {0, 0, 1}, NAME_FAMILY, TAGK)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "protected boolean func_70041_e_() { return false; }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "public void method_4270() {}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void mo1964g() throws cf {\r\n }", "public void mo1944a() throws cf {\r\n }", "public void mo1976s() throws cf {\r\n }", "protected boolean func_70814_o() { return true; }", "@Override\n public void func_104112_b() {\n \n }", "public void mo1962e() throws cf {\r\n }", "public final void mo91715d() {\n }", "public void mo1972o() throws cf {\r\n }", "public void m23075a() {\n }", "public boolean method_2434() {\r\n return false;\r\n }", "public void mo38117a() {\n }", "void m5770d() throws C0841b;", "private stendhal() {\n\t}", "public boolean method_4088() {\n return false;\n }", "public boolean method_2453() {\r\n return false;\r\n }", "public void mo1966i() throws cf {\r\n }", "public boolean method_4132() {\n return false;\n }", "public boolean method_218() {\r\n return false;\r\n }", "void m5771e() throws C0841b;", "void m5769c() throws C0841b;", "public boolean method_216() {\r\n return false;\r\n }", "private void kk12() {\n\n\t}", "public void inquiryError() {\n\t\t\n\t}", "protected Problem() {/* intentionally empty block */}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "public boolean method_108() {\r\n return false;\r\n }", "public boolean method_194() {\r\n return false;\r\n }", "public boolean method_4093() {\n return false;\n }", "public void mo1963f() throws cf {\r\n }", "public boolean method_4102() {\n return false;\n }", "@Override\n public void perish() {\n \n }", "public boolean method_210() {\r\n return false;\r\n }", "void m1864a() {\r\n }", "public boolean method_208() {\r\n return false;\r\n }", "private void level7() {\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 }", "public void mo55254a() {\n }", "public void mo12628c() {\n }", "public void mo12930a() {\n }", "public void mo1960c() throws cf {\r\n }", "public boolean method_3897() {\r\n return false;\r\n }", "public void mo1970m() throws cf {\r\n }", "public boolean method_214() {\r\n return false;\r\n }", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "void m5768b() throws C0841b;", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "public boolean method_196() {\r\n return false;\r\n }", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "public void mo44053a() {\n }", "public void warningPermit();", "public void mo23813b() {\n }", "public void mo21779D() {\n }", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n System.out.println(\"Warning reported: \" + saxpe.getMessage());\n }", "public void mo21792Q() {\n }", "protected void mo6255a() {\n }", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "public void mo1974q() throws cf {\r\n }", "public abstract void mo70713b();", "public void mo55254a() {\n }", "public void mo21787L() {\n }", "public abstract void mo56925d();", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n }", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "public void mo4359a() {\n }", "public void mo115190b() {\n }", "public boolean method_198() {\r\n return false;\r\n }", "@Override\n\tpublic void onStallWarning(StallWarning arg0) {\n\t\t\n\t}", "private void checkNotUnknown() {\n if (isUnknown())\n throw new AnalysisException(\"Unexpected 'unknown' value!\");\n }", "public void mo6081a() {\n }", "void notSupported(String errorcode);", "public int method_113() {\r\n return 0;\r\n }", "void berechneFlaeche() {\n\t}", "@Override\n\t\tpublic void checkPreconditions() {\n\t\t}", "public void mo1531a() {\n }", "private static void runTestCWE8() {\n}", "private static void runTestCWE8() {\n}", "public void swrap() throws NoUnusedObjectExeption;", "private static void runTestCWE6() {\n}", "private static void runTestCWE6() {\n}", "public void mo21785J() {\n }", "private void m50367F() {\n }" ]
[ "0.6607475", "0.65735716", "0.64578193", "0.64516914", "0.63690615", "0.63607115", "0.6313633", "0.6277263", "0.6264403", "0.6251081", "0.6228066", "0.6212326", "0.6193183", "0.6173823", "0.6159397", "0.61412436", "0.6137461", "0.6134118", "0.6131424", "0.6128311", "0.6125895", "0.60996115", "0.609934", "0.6086772", "0.60867035", "0.60620254", "0.6057853", "0.604901", "0.6039225", "0.60285574", "0.6027521", "0.6026639", "0.6022298", "0.6022298", "0.59733164", "0.595578", "0.5955212", "0.5947853", "0.59411937", "0.5937788", "0.5932163", "0.5924105", "0.5910501", "0.5901154", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.5896116", "0.5893134", "0.58923537", "0.58854276", "0.5877016", "0.587468", "0.58742815", "0.58742815", "0.58696586", "0.58481723", "0.58481723", "0.5847125", "0.584581", "0.584581", "0.5842065", "0.5824734", "0.5819828", "0.5815501", "0.5815053", "0.580836", "0.58021235", "0.57941985", "0.5791938", "0.5791938", "0.57880926", "0.578688", "0.5784708", "0.578307", "0.5779751", "0.5779735", "0.5772275", "0.5772275", "0.5769752", "0.57687587", "0.57637197", "0.57539976", "0.57533115", "0.57527834", "0.5751981", "0.5743167", "0.5740184", "0.57315886", "0.5728917", "0.5728491", "0.5728491", "0.5719336", "0.5711022", "0.5711022", "0.57089555", "0.57051265" ]
0.0
-1
currently a warning, not an error
@Test public void fsckTagvMissingForward() throws Exception { storage.flushColumn("web01".getBytes(MockBase.ASCII()), ID_FAMILY, TAGV); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(0, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "protected boolean func_70041_e_() { return false; }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "public void method_4270() {}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void mo1964g() throws cf {\r\n }", "public void mo1944a() throws cf {\r\n }", "public void mo1976s() throws cf {\r\n }", "protected boolean func_70814_o() { return true; }", "@Override\n public void func_104112_b() {\n \n }", "public void mo1962e() throws cf {\r\n }", "public final void mo91715d() {\n }", "public void mo1972o() throws cf {\r\n }", "public void m23075a() {\n }", "public boolean method_2434() {\r\n return false;\r\n }", "public void mo38117a() {\n }", "void m5770d() throws C0841b;", "private stendhal() {\n\t}", "public boolean method_4088() {\n return false;\n }", "public boolean method_2453() {\r\n return false;\r\n }", "public void mo1966i() throws cf {\r\n }", "public boolean method_4132() {\n return false;\n }", "public boolean method_218() {\r\n return false;\r\n }", "void m5771e() throws C0841b;", "void m5769c() throws C0841b;", "public boolean method_216() {\r\n return false;\r\n }", "private void kk12() {\n\n\t}", "public void inquiryError() {\n\t\t\n\t}", "protected Problem() {/* intentionally empty block */}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "public boolean method_108() {\r\n return false;\r\n }", "public boolean method_194() {\r\n return false;\r\n }", "public boolean method_4093() {\n return false;\n }", "public void mo1963f() throws cf {\r\n }", "public boolean method_4102() {\n return false;\n }", "@Override\n public void perish() {\n \n }", "public boolean method_210() {\r\n return false;\r\n }", "void m1864a() {\r\n }", "public boolean method_208() {\r\n return false;\r\n }", "private void level7() {\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 }", "public void mo55254a() {\n }", "public void mo12628c() {\n }", "public void mo12930a() {\n }", "public void mo1960c() throws cf {\r\n }", "public boolean method_3897() {\r\n return false;\r\n }", "public void mo1970m() throws cf {\r\n }", "public boolean method_214() {\r\n return false;\r\n }", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "void m5768b() throws C0841b;", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "public boolean method_196() {\r\n return false;\r\n }", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "public void mo44053a() {\n }", "public void warningPermit();", "public void mo23813b() {\n }", "public void mo21779D() {\n }", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n System.out.println(\"Warning reported: \" + saxpe.getMessage());\n }", "public void mo21792Q() {\n }", "protected void mo6255a() {\n }", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "public void mo1974q() throws cf {\r\n }", "public abstract void mo70713b();", "public void mo55254a() {\n }", "public void mo21787L() {\n }", "public abstract void mo56925d();", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n }", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "public void mo4359a() {\n }", "public void mo115190b() {\n }", "public boolean method_198() {\r\n return false;\r\n }", "@Override\n\tpublic void onStallWarning(StallWarning arg0) {\n\t\t\n\t}", "private void checkNotUnknown() {\n if (isUnknown())\n throw new AnalysisException(\"Unexpected 'unknown' value!\");\n }", "public void mo6081a() {\n }", "void notSupported(String errorcode);", "public int method_113() {\r\n return 0;\r\n }", "void berechneFlaeche() {\n\t}", "@Override\n\t\tpublic void checkPreconditions() {\n\t\t}", "public void mo1531a() {\n }", "private static void runTestCWE8() {\n}", "private static void runTestCWE8() {\n}", "public void swrap() throws NoUnusedObjectExeption;", "private static void runTestCWE6() {\n}", "private static void runTestCWE6() {\n}", "public void mo21785J() {\n }", "private void m50367F() {\n }" ]
[ "0.6607475", "0.65735716", "0.64578193", "0.64516914", "0.63690615", "0.63607115", "0.6313633", "0.6277263", "0.6264403", "0.6251081", "0.6228066", "0.6212326", "0.6193183", "0.6173823", "0.6159397", "0.61412436", "0.6137461", "0.6134118", "0.6131424", "0.6128311", "0.6125895", "0.60996115", "0.609934", "0.6086772", "0.60867035", "0.60620254", "0.6057853", "0.604901", "0.6039225", "0.60285574", "0.6027521", "0.6026639", "0.6022298", "0.6022298", "0.59733164", "0.595578", "0.5955212", "0.5947853", "0.59411937", "0.5937788", "0.5932163", "0.5924105", "0.5910501", "0.5901154", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.5896116", "0.5893134", "0.58923537", "0.58854276", "0.5877016", "0.587468", "0.58742815", "0.58742815", "0.58696586", "0.58481723", "0.58481723", "0.5847125", "0.584581", "0.584581", "0.5842065", "0.5824734", "0.5819828", "0.5815501", "0.5815053", "0.580836", "0.58021235", "0.57941985", "0.5791938", "0.5791938", "0.57880926", "0.578688", "0.5784708", "0.578307", "0.5779751", "0.5779735", "0.5772275", "0.5772275", "0.5769752", "0.57687587", "0.57637197", "0.57539976", "0.57533115", "0.57527834", "0.5751981", "0.5743167", "0.5740184", "0.57315886", "0.5728917", "0.5728491", "0.5728491", "0.5719336", "0.5711022", "0.5711022", "0.57089555", "0.57051265" ]
0.0
-1
currently a warning, not an error
@Test public void fsckFIXTagvMissingForward() throws Exception { storage.flushColumn("web01".getBytes(MockBase.ASCII()), ID_FAMILY, TAGV); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, true, false); assertEquals(0, errors); assertNull(storage.getColumn(new byte [] {0, 0, 1}, NAME_FAMILY, TAGV)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void m9741j() throws cf {\r\n }", "protected boolean func_70041_e_() { return false; }", "private void m50366E() {\n }", "public final void mo51373a() {\n }", "public void method_4270() {}", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void mo1964g() throws cf {\r\n }", "public void mo1944a() throws cf {\r\n }", "public void mo1976s() throws cf {\r\n }", "protected boolean func_70814_o() { return true; }", "@Override\n public void func_104112_b() {\n \n }", "public void mo1962e() throws cf {\r\n }", "public final void mo91715d() {\n }", "public void mo1972o() throws cf {\r\n }", "public void m23075a() {\n }", "public boolean method_2434() {\r\n return false;\r\n }", "public void mo38117a() {\n }", "void m5770d() throws C0841b;", "private stendhal() {\n\t}", "public boolean method_4088() {\n return false;\n }", "public boolean method_2453() {\r\n return false;\r\n }", "public void mo1966i() throws cf {\r\n }", "public boolean method_4132() {\n return false;\n }", "public boolean method_218() {\r\n return false;\r\n }", "void m5771e() throws C0841b;", "void m5769c() throws C0841b;", "public boolean method_216() {\r\n return false;\r\n }", "private void kk12() {\n\n\t}", "public void inquiryError() {\n\t\t\n\t}", "protected Problem() {/* intentionally empty block */}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "public boolean method_108() {\r\n return false;\r\n }", "public boolean method_194() {\r\n return false;\r\n }", "public boolean method_4093() {\n return false;\n }", "public void mo1963f() throws cf {\r\n }", "public boolean method_4102() {\n return false;\n }", "@Override\n public void perish() {\n \n }", "public boolean method_210() {\r\n return false;\r\n }", "void m1864a() {\r\n }", "public boolean method_208() {\r\n return false;\r\n }", "private void level7() {\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 }", "public void mo55254a() {\n }", "public void mo12628c() {\n }", "public void mo12930a() {\n }", "public void mo1960c() throws cf {\r\n }", "public boolean method_3897() {\r\n return false;\r\n }", "public void mo1970m() throws cf {\r\n }", "public boolean method_214() {\r\n return false;\r\n }", "@Override\n\tpublic void check() {\n\t\t\n\t}", "@Override\n\tpublic void check() {\n\t\t\n\t}", "void m5768b() throws C0841b;", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "public boolean method_196() {\r\n return false;\r\n }", "private static void runTestCWE9() {\n}", "private static void runTestCWE9() {\n}", "public void mo44053a() {\n }", "public void warningPermit();", "public void mo23813b() {\n }", "public void mo21779D() {\n }", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n System.out.println(\"Warning reported: \" + saxpe.getMessage());\n }", "public void mo21792Q() {\n }", "protected void mo6255a() {\n }", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "private static void runTestCWE7() {\n}", "private static void runTestCWE7() {\n}", "public void mo1974q() throws cf {\r\n }", "public abstract void mo70713b();", "public void mo55254a() {\n }", "public void mo21787L() {\n }", "public abstract void mo56925d();", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n }", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "public void mo4359a() {\n }", "public void mo115190b() {\n }", "public boolean method_198() {\r\n return false;\r\n }", "@Override\n\tpublic void onStallWarning(StallWarning arg0) {\n\t\t\n\t}", "private void checkNotUnknown() {\n if (isUnknown())\n throw new AnalysisException(\"Unexpected 'unknown' value!\");\n }", "public void mo6081a() {\n }", "void notSupported(String errorcode);", "public int method_113() {\r\n return 0;\r\n }", "void berechneFlaeche() {\n\t}", "@Override\n\t\tpublic void checkPreconditions() {\n\t\t}", "public void mo1531a() {\n }", "private static void runTestCWE8() {\n}", "private static void runTestCWE8() {\n}", "public void swrap() throws NoUnusedObjectExeption;", "private static void runTestCWE6() {\n}", "private static void runTestCWE6() {\n}", "public void mo21785J() {\n }", "private void m50367F() {\n }" ]
[ "0.6607475", "0.65735716", "0.64578193", "0.64516914", "0.63690615", "0.63607115", "0.6313633", "0.6277263", "0.6264403", "0.6251081", "0.6228066", "0.6212326", "0.6193183", "0.6173823", "0.6159397", "0.61412436", "0.6137461", "0.6134118", "0.6131424", "0.6128311", "0.6125895", "0.60996115", "0.609934", "0.6086772", "0.60867035", "0.60620254", "0.6057853", "0.604901", "0.6039225", "0.60285574", "0.6027521", "0.6026639", "0.6022298", "0.6022298", "0.59733164", "0.595578", "0.5955212", "0.5947853", "0.59411937", "0.5937788", "0.5932163", "0.5924105", "0.5910501", "0.5901154", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.58994", "0.5896116", "0.5893134", "0.58923537", "0.58854276", "0.5877016", "0.587468", "0.58742815", "0.58742815", "0.58696586", "0.58481723", "0.58481723", "0.5847125", "0.584581", "0.584581", "0.5842065", "0.5824734", "0.5819828", "0.5815501", "0.5815053", "0.580836", "0.58021235", "0.57941985", "0.5791938", "0.5791938", "0.57880926", "0.578688", "0.5784708", "0.578307", "0.5779751", "0.5779735", "0.5772275", "0.5772275", "0.5769752", "0.57687587", "0.57637197", "0.57539976", "0.57533115", "0.57527834", "0.5751981", "0.5743167", "0.5740184", "0.57315886", "0.5728917", "0.5728491", "0.5728491", "0.5719336", "0.5711022", "0.5711022", "0.57089555", "0.57051265" ]
0.0
-1
/ 5 Inconsistent Reverse Mapping Inconsistent reverse mapping 03 > foo vs 01 > foo / foo > 01 01 > foo foo > 01 02 > bar bar > 02 03 > foo ^^^ FIX Delete 03 reverse map. OK since nothing maps to 02.
@Test public void fsckMetricsInconsistentReverse() throws Exception { storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, METRICS, "foo".getBytes(MockBase.ASCII())); storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L)); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(1, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkReverseMap() throws ApplicationException {\n if (reverseMap == null) {\n reverseMap = Data.makeReverseMap(networkIds);\n }\n }", "@Override\r\n public NavigableMap<K, V> descendingMap() {\n return null;\r\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tprivate static <ModelElem extends EObject> ModelElem reverse(Object fortranElem, ModelElem modelElem, Map<Object,Object> mappings) {\r\n\t\t\r\n\t\tEClass modelElemClass = modelElem.eClass();\r\n\t\t\t\r\n\t\t//this is required so that we can conditionally add mappings\r\n\t\t//that succeeded at the end of the method when no recursive\r\n\t\t//call is required (this only occurs at leaves of metamodel tree)\r\n\t\tMap<Object, Object> mappingsToAdd = new IdentityHashMap<Object, Object>();\r\n\t\t\r\n\t\t//assume a successful mapping (required for looking up\r\n\t\t//mappings during recursive calls)\r\n\t\t//mapping will be removed later if it fails\r\n\t\tmappings.put(modelElem, fortranElem);\t\r\n\t\t\r\n\t\t\t\t\t\t\r\n\t\tfor (EStructuralFeature sf : modelElemClass.getEAllStructuralFeatures()) {\r\n\t\t\t\r\n\t\t\tMap<String, Object> keywordMap = Regex.getMappingFromAnnotation(sf);\r\n\t\t\t\r\n\t\t\t/////NEW MAPPING PARSER HERE\r\n\t\t\t\t\t\t\r\n\t\t\tEAnnotation ann = sf.getEAnnotation(\"http://www.earthsystemcog.org/projects/nuopc\");\r\n\t\t\tif (ann != null && ann.getDetails().get(\"mappingNew\") != null) {\r\n\t\t\t\tString mappingNew = ann.getDetails().get(\"mappingNew\");\r\n\t\t\t\t//if (mappingNew != null) {\r\n\t\t\t\tMapping mapping = parseMappingNew(mappingNew);\r\n\t\t\t\tObject fortranContextElem;\r\n\t\t\t\t\r\n\t\t\t\tif (mapping.getContext() != null) {\r\n\t\t\t\t\t//explicit context\r\n\t\t\t\t\tEObject contextElement = EcoreUtils.eGetSFValue(mapping.getContext(), modelElem, true, null);\r\n\t\t\t\t\tfortranContextElem = mappings.get(contextElement);\r\n\t\t\t\t\tif (fortranContextElem == null) {\r\n\t\t\t\t\t\tthrow new RuntimeException(\"No Fortran context for element: \" + contextElement);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tfortranContextElem = fortranElem; //implicit\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tImplicitContextMapping icMapping = mapping.getMapping();\r\n\t\t\t\ticMapping = replacePathExprWithValues(icMapping, modelElem, true);\r\n\t\t\t\t\r\n\t\t\t\tString methodName = icMapping.eClass().getName().toLowerCase();\r\n\t\t\t\t\r\n\t\t\t\t//find method that implements code query\r\n\t\t\t\tMethod method = findREMethod(methodName, fortranContextElem, icMapping);\r\n\t\t\t\tif (method == null) {\r\n\t\t\t\t\tSystem.out.println(\"Method not found: \" + methodName);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tObject result = method.invoke(null, fortranContextElem, icMapping);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tif (method.getReturnType() == String.class ||\r\n\t\t\t\t\t\tmethod.getReturnType().isPrimitive()) {\r\n\t\t\t\t\t\tmodelElem.eSet(sf, result);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Token.class) {\r\n\t\t\t\t\t\tif (result != null) {\r\n\t\t\t\t\t\t\t//String constructor required because of IdentityHashMap\r\n\t\t\t\t\t\t\tString text = new String(((Token)result).getText());\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, text);\r\n\t\t\t\t\t\t\tmappingsToAdd.put(text, result);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t//what should we do here?\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Set.class ||\r\n\t\t\t\t\t\t\t method.getReturnType() == Map.class) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do we have a set of primitives?\r\n\t\t\t\t\t\tif (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEString())) {\r\n\t\t\t\t\t\t\tSet<String> resultSet;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<String>) ((Map) result).keySet();\r\n\t\t\t\t\t\t\t\t//TODO: ignoring PathExprs for now\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<String>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfor (String res : resultSet) {\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(res);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, res);\r\n\t\t\t\t\t\t\t\t\tbreak; //just take first one\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}\r\n\t\t\t\t\t\t//result is a set of objects - either IASTNodes or IFortranASTs\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSet<Object> resultSet = null;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = ((Map) result).keySet();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<Object>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor (Object newFortranElem : resultSet) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//set binding in model\r\n\t\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\t\tMap<PathExpr, String> bindings = ((Map<?, Map<PathExpr, String>>) result).get(newFortranElem);\r\n\t\t\t\t\t\t\t\t\tfor (Entry<PathExpr, String> binding : bindings.entrySet()) {\r\n\t\t\t\t\t\t\t\t\t\tboolean featureSet = EcoreUtils.eSetSFValue(binding.getKey(), newModelElem, binding.getValue());\r\n\t\t\t\t\t\t\t\t\t\tif (!featureSet) {\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Feature not set: \" + binding.getKey());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// set up parent relationship for references (may be removed later)\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//recursive call\r\n\t\t\t\t\t\t\t\tEObject newModelElemRet = reverse(newFortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// if NULL returned, then mapping failed, so remove element from parent\r\n\t\t\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t//TODO: consider replacing with previous value?\r\n\t\t\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (!sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tbreak; // take first one that is not null\r\n\t\t\t\t\t\t\t\t}\t\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\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} // end check for primitives vs. objects in results\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t}\t\t\t\t\t\t\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\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////END OF NEW MAPPING PARSER\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\telse if (keywordMap != null && keywordMap.size() > 0) {\t\r\n\t\t\t\t\r\n\t\t\t\tString methodName = Regex.getMappingTypeFromAnnotation(sf);\r\n\t\t\t\t\r\n\t\t\t\t//populate metavariables\t\t\t\t\t\t\r\n\t\t\t\tfor (Entry<String, Object> entry : keywordMap.entrySet()) {\r\n\t\t\t\t\t//TODO: should we handle different metavariable types here?\r\n\t\t\t\t\t// or just strings?\r\n\t\t\t\t\tif (!entry.getKey().equals(\"_context\") && entry.getValue() instanceof String) {\r\n\t\t\t\t\t\tString val = (String) entry.getValue();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tMatcher match = CodeQuery.P_METAVAR.matcher(val);\r\n\t\t\t\t\t\twhile (match.find()) {\r\n\t\t\t\t\t\t\t//already at parent, so remove one leading ../\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\tString metavar = match.group().substring(1);\r\n\t\t\t\t\t\t\tif (metavar.startsWith(\"../\")) { \r\n\t\t\t\t\t\t\t\tmetavar = metavar.substring(3);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//TODO: decide what to do about NULL_VALUE below\r\n\t\t\t\t\t\t\t\tString replaceVal = EcoreUtils.eGetSFValue(metavar, modelElem, null);\r\n\t\t\t\t\t\t\t\tif (replaceVal != null) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Replacing metavariable: \" + match.group() + \" with val: \" + replaceVal);\r\n\t\t\t\t\t\t\t\t\tentry.setValue(val.replaceAll(match.group(), replaceVal));\r\n\t\t\t\t\t\t\t\t}\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}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tObject fortranContextElem;\r\n\t\t\t\t\r\n\t\t\t\tif (keywordMap.containsKey(\"_context\")) {\r\n\t\t\t\t\t//explicit context provided\r\n\t\t\t\t\tString contextPath = (String) keywordMap.get(\"_context\");\r\n\t\t\t\t\tif (!contextPath.startsWith(\"#..\")) {\r\n\t\t\t\t\t\t//error\r\n\t\t\t\t\t\tSystem.out.println(\"Explicit context path must contain parent node\");\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (contextPath.startsWith(\"#../\")) {\r\n\t\t\t\t\t\tcontextPath = contextPath.substring(4);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (contextPath.startsWith(\"#..\")) {\r\n\t\t\t\t\t\tcontextPath = contextPath.substring(3);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tEObject explicitContextElem;\r\n\t\t\t\t\tif (contextPath.equals(\"\")) {\r\n\t\t\t\t\t\texplicitContextElem = modelElem;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\texplicitContextElem = EcoreUtils.eGetSFValue(contextPath, modelElem, null);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tfortranContextElem = mappings.get(explicitContextElem);\r\n\t\t\t\t\tif (fortranContextElem == null) {\r\n\t\t\t\t\t\tSystem.out.println(\"MAPPED fortran element not found: \" + explicitContextElem);\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t//implicit context\r\n\t\t\t\t\tfortranContextElem = fortranElem;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//find method that implements code query\r\n\t\t\t\tMethod method = null;\r\n\t\t\t\tfor (Method m : CodeQuery.class.getMethods()) {\r\n\t\t\t\t\tif (m.getName().equalsIgnoreCase(methodName)) {\r\n\t\t\t\t\t\tClass contextClass = m.getParameterTypes()[0];\r\n\t\t\t\t\t\tClass paramClass = m.getParameterTypes()[1];\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (contextClass.isInstance(fortranContextElem) &&\r\n\t\t\t\t\t\t\tparamClass.isInstance(keywordMap)) {\r\n\t\t\t\t\t\t\tmethod = m;\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}\r\n\t\t\t\t\r\n\t\t\t\tif (method == null) {\r\n\t\t\t\t\tSystem.out.println(\"Method not found: \" + methodName);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//System.out.println(\"Calling method: \" + methodName + \" with first param: \" + fortranElem.getClass());\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tObject result = method.invoke(null, fortranContextElem, keywordMap);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tif (method.getReturnType() == String.class ||\r\n\t\t\t\t\t\tmethod.getReturnType().isPrimitive()) {\r\n\t\t\t\t\t\tmodelElem.eSet(sf, result);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Token.class) {\r\n\t\t\t\t\t\tif (result != null) {\r\n\t\t\t\t\t\t\t//String constructor required because of IdentityHashMap\r\n\t\t\t\t\t\t\tString text = new String(((Token)result).getText());\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, text);\r\n\t\t\t\t\t\t\tmappingsToAdd.put(text, result);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t//what should we do here?\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Set.class ||\r\n\t\t\t\t\t\t\t method.getReturnType() == Map.class) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do we have a set of primitives?\r\n\t\t\t\t\t\tif (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEString())) {\r\n\t\t\t\t\t\t\tSet<String> resultSet = (Set<String>) result;\r\n\t\t\t\t\t\t\tfor (String res : resultSet) {\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(res);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, res);\r\n\t\t\t\t\t\t\t\t\tbreak; //just take first one\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}\r\n\t\t\t\t\t\t//result is a set of objects - either IASTNodes or IFortranASTs\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSet<Object> resultSet = null;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = ((Map) result).keySet();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<Object>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor (Object newFortranElem : resultSet) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\t\t\tEObject newModelElemRet = null;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//TODO: work on precedence between metavariables and explicit sub-mappings\r\n\t\t\t\t\t\t\t\t//populate attributes based on metavariables\r\n\t\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\t\tMap<String,String> metavariableMap = (Map<String,String>) ((Map) result).get(newFortranElem);\r\n\t\t\t\t\t\t\t\t\tfor (Entry<String,String> mve : metavariableMap.entrySet()) {\r\n\t\t\t\t\t\t\t\t\t\tString attribName = mve.getKey().substring(1);\r\n\t\t\t\t\t\t\t\t\t\tEStructuralFeature attribSF = newModelElem.eClass().getEStructuralFeature(attribName);\r\n\t\t\t\t\t\t\t\t\t\tif (attribSF != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Metavariable - setting feature: \" + attribName + \" to \" + mve.getValue());\r\n\t\t\t\t\t\t\t\t\t\t\tnewModelElem.eSet(attribSF, mve.getValue());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Metavariable - feature not found: \" + attribName);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// set up parent relationship for references (may be removed later)\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//recursive call\r\n\t\t\t\t\t\t\t\tnewModelElemRet = reverse(newFortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// if NULL returned, then remove model element from parent\r\n\t\t\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t//consider replacing with previous value\r\n\t\t\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (!sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tbreak; // take first one that is not null\r\n\t\t\t\t\t\t\t\t}\t\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\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} // end check for primitives vs. objects in results\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} // end if that checks for query string\r\n\t\t\telse {\r\n\t\t\t\t//this means there is no mapping defined - if it is an EReference, then we create \r\n\t\t\t\t//the target and its children determine whether the mapping holds\r\n\t\t\t\t//in other words, this is just an extra layer of abstraction defined by the user\r\n\t\t\t\t\r\n\t\t\t\tif (sf instanceof EReference) {\r\n\t\t\t\t\tif (((EReference) sf).isContainment()) {\r\n\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tEObject newModelElemRet = reverse(fortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t//consider replacing with previous value\r\n\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\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}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//at this point we have set the value of the structural feature\r\n\t\t\t//if is essential, but not present or false, the parent is no good\r\n\t\t\t\r\n\t\t\tif (Regex.getIsEssentialFromAnnotation(sf)) {\t\r\n\t\t\t\tboolean fail = false;\r\n\t\t\t\t\r\n\t\t\t\tif (modelElem.eGet(sf) == null) {\t\t\t\t\t\r\n\t\t\t\t\tfail = true;\r\n\t\t\t\t}\r\n\t\t\t\telse if (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEBoolean()) &&\r\n\t\t\t\t\t\t! (Boolean) modelElem.eGet(sf)) {\r\n\t\t\t\t\tfail = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (fail) {\r\n\t\t\t\t\tmappings.remove(modelElem);\r\n\t\t\t\t\t//an essential feature failed, so no need to process \r\n\t\t\t\t\t//any more structural features\r\n\t\t\t\t\treturn null;\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\t\r\n\t\t} // end for structural features\r\n\t\t\r\n\t\tmappings.putAll(mappingsToAdd);\r\n\r\n\t\treturn modelElem;\r\n\t}", "protected AssociationList reverseAssoc(LexBIGService lbsvc, LexBIGServiceConvenienceMethods lbscm, String scheme,\r\n CodingSchemeVersionOrTag csvt, Association assoc, AssociationList addTo,\r\n Map<String, EntityDescription> codeToEntityDescriptionMap) throws LBException {\r\n\r\n ConceptReference acRef = assoc.getAssociationReference();\r\n AssociatedConcept acFromRef = new AssociatedConcept();\r\n acFromRef.setCodingScheme(acRef.getCodingScheme());\r\n acFromRef.setConceptCode(acRef.getConceptCode());\r\n AssociationList acSources = new AssociationList();\r\n acFromRef.setIsNavigable(Boolean.TRUE);\r\n acFromRef.setSourceOf(acSources);\r\n\r\n // Use cached description if available (should be cached\r\n // for all but original root) ...\r\n if (codeToEntityDescriptionMap.containsKey(acRef.getConceptCode()))\r\n acFromRef.setEntityDescription(codeToEntityDescriptionMap.get(acRef.getConceptCode()));\r\n // Otherwise retrieve on demand ...\r\n else\r\n acFromRef.setEntityDescription(Constructors.createEntityDescription(getCodeDescription(lbsvc, scheme, csvt,\r\n acRef.getConceptCode())));\r\n\r\n AssociatedConceptList acl = assoc.getAssociatedConcepts();\r\n for (AssociatedConcept ac : acl.getAssociatedConcept()) {\r\n // Create reverse association (same non-directional name)\r\n Association rAssoc = new Association();\r\n rAssoc.setAssociationName(assoc.getAssociationName());\r\n\r\n // On reverse, old associated concept is new reference point.\r\n ConceptReference ref = new ConceptReference();\r\n ref.setCodingScheme(ac.getCodingScheme());\r\n ref.setConceptCode(ac.getConceptCode());\r\n rAssoc.setAssociationReference(ref);\r\n\r\n // And old reference is new associated concept.\r\n AssociatedConceptList rAcl = new AssociatedConceptList();\r\n rAcl.addAssociatedConcept(acFromRef);\r\n rAssoc.setAssociatedConcepts(rAcl);\r\n\r\n // Set reverse directional name, if available.\r\n String dirName = assoc.getDirectionalName();\r\n if (dirName != null)\r\n try {\r\n rAssoc.setDirectionalName(lbscm.isForwardName(scheme, csvt, dirName) ? lbscm\r\n .getAssociationReverseName(assoc.getAssociationName(), scheme, csvt) : lbscm\r\n .getAssociationReverseName(assoc.getAssociationName(), scheme, csvt));\r\n } catch (LBException e) {\r\n }\r\n\r\n // Save code desc for future reference when setting up\r\n // concept references in recursive calls ...\r\n codeToEntityDescriptionMap.put(ac.getConceptCode(), ac.getEntityDescription());\r\n\r\n AssociationList sourceOf = ac.getSourceOf();\r\n if (sourceOf != null)\r\n for (Association sourceAssoc : sourceOf.getAssociation()) {\r\n AssociationList pos = reverseAssoc(lbsvc, lbscm, scheme, csvt, sourceAssoc, addTo,\r\n codeToEntityDescriptionMap);\r\n pos.addAssociation(rAssoc);\r\n }\r\n else\r\n addTo.addAssociation(rAssoc);\r\n }\r\n return acSources;\r\n }", "void remap()\n\t\t{\n\t\t\tif(nextMap == null)\n\t\t\t\treturn;\n\t\t\tnextMap = newNodeMap(nextMap);\n\t\t\tfor(Node<T> node : nextMap.values())\n\t\t\t\tnode.remap();\n\t\t}", "public void mo2476b() {\n Collections.reverse(mo2625k());\n }", "private void findIternary(Map<String, String> dataSet) {\n\t\tMap<String, String> reverseMap = new HashMap<String, String>();\n\t\tfor (Map.Entry<String, String> entry : dataSet.entrySet())\n\t\t\treverseMap.put(entry.getValue(), entry.getKey());\n\t\tString start = null;\n\t\tfor (Map.Entry<String, String> entry : dataSet.entrySet()) {\n\t\t\tif (!reverseMap.containsKey(entry.getKey())) {\n\t\t\t\tstart = entry.getKey();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (start == null) {\n\t\t\tSystem.out.println(\"Invalid Input\");\n\t\t\treturn;\n\t\t}\n\t\tString to = dataSet.get(start);\n\t\twhile (to != null)\n\n\t\t{\n\t\t\tSystem.out.print(start + \"->\" + to + \",\");\n\t\t\tstart = to;\n\t\t\tto = dataSet.get(to);\n\t\t}\n\n\t}", "ReferenceContainer<E> remap(UnaryOperator<PropertySymbol> mapper);", "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 ConnectionMap backtrack(final ConnectionMap map, int index) {\r\n\t\t// Returns null if first variable has no possible values\r\n\t\tif (map.domains.get(0).size()==0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// If the possible values for the index are null step back\r\n\t\tif (map.domains.get(index).size()==0) {\r\n\t\t\t//System.out.println(\"BACKTRACK!\");\r\n\t\t\tArrayList<Integer> newRow = new ArrayList<Integer>();\r\n\t\t\tfor (int k = 0; k < map.numColors; k++) {\r\n\t\t\t\tnewRow.add(k);\r\n\t\t\t}\r\n\t\t\tmap.domains.set(index, newRow);\r\n\t\t\tmap.domains.get(index-1).remove(0);\r\n\t\t\tBacktrackSearch.backtrack(map, index-1);\r\n\t\t}\r\n\t\t// Loops through the possible values for the index\r\n\t\tfor (int j=index; j>=0; j--) {\r\n\t\t\tif(map.connections[index][j]==1 && map.domains.get(index).size()>0) {\r\n\t\t\t\tArrayList<Integer> neighbor = map.domains.get(j);\r\n\t\t\t\tif (neighbor.size() != 0) {\r\n\t\t\t\t\tmap.domains.get(index).remove(neighbor.get(0));\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// If the possible values for the index are null step back\r\n\t\t\tif (map.domains.get(index).size()==0) {\r\n\t\t\t\t//System.out.println(\"BACKTRACK!\");\r\n\t\t\t\tArrayList<Integer> newRow = new ArrayList<Integer>();\r\n\t\t\t\tfor (int k = 0; k < map.numColors; k++) {\r\n\t\t\t\t\tnewRow.add(k);\r\n\t\t\t\t}\r\n\t\t\t\tmap.domains.set(index, newRow);\r\n\t\t\t\tmap.domains.get(index-1).remove(0);\r\n\t\t\t\tBacktrackSearch.backtrack(map, index-1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// If the index is not the last index step forward\r\n\t\tif (index < map.domains.size()-1) {\r\n\t\t\tBacktrackSearch.backtrack(map, index+1);\r\n\t\t}\r\n\t\t// Returns null if first variable has no possible values\r\n\t\tif (map.domains.get(0).size()==0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// Removes end of colors\r\n\t\tfor(int i = 0; i < map.domains.size(); i++) {\r\n\t\t\tfor(int j = 1; j < map.domains.get(i).size(); j++) {\r\n\t\t\t\tmap.domains.get(i).remove(j);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Returns map\r\n\t\treturn map;\t\r\n\t}", "public interface USLActionBanHistoryMapping extends ObjectMapping<USLActionBanHistory> {\n\t/**\n\t * Fetch all of the maps where it has the given usl action id.\n\t * \n\t * @param uslActionId the id of the USLAction\n\t * @return the mapping to the bans for that action\n\t */\n\tpublic List<USLActionBanHistory> fetchByUSLActionID(int uslActionId);\n\t\n\t/**\n\t * Fetch all of the maps where we have the given ban history.\n\t * \n\t * @param banHistoryId the id of the ban history\n\t * @return the mapping to the actions for that ban history\n\t */\n\tpublic List<USLActionBanHistory> fetchByBanHistoryID(int banHistoryId);\n\t\n\t/**\n\t * Determines if this mapping contains the given relationship\n\t * \n\t * @param uslActionId the action\n\t * @param banHistoryId the ban history\n\t * @return if that relationship is in the database\n\t */\n\tpublic boolean contains(int uslActionId, int banHistoryId);\n\t\n\t/**\n\t * Delete the row with the specified columns\n\t * @param uslActionId the id of the action\n\t * @param banHistoryId the id of the ban history\n\t */\n\tpublic void delete(int uslActionId, int banHistoryId);\n\t\n}", "private void makeInverse() {\n if (_map != null) {\n for (Map.Entry<Integer, Integer> e : _map.entrySet()) {\n _inverse.put(e.getValue(), e.getKey());\n }\n }\n }", "public void resetRelatesToList(MappingType mapping) {\n\t\tmapping.getRelatesTo().clear();\n\t}", "public void reverseDi() {\n int hi = size - 1;\n int lo = 0;\n\n while (lo < hi) {\n Node left = getNodeAt(lo);\n Node right = getNodeAt(hi);\n\n Object temp = left.data;\n left.data = right.data;\n right.data = temp;\n\n lo++;\n hi--;\n }\n }", "@Override\n public boolean isReversible() {\n return true;\n }", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "@Test\n public void testVirtualLists() throws Exception {\n assertReducesTo(\"2 dup 1 at.\", \"2 dup\");\n }", "private void removeTwoStepForwardFromPositionCache(Key currentKey) {\n\n\t\t// Create a two square forward position\n\t\tKey newKey =createTwoStepForwardFromCurrentKey(currentKey);\n\n\t\t// Gets current values stored with key and adds the extra position\n\t\tSet<Key> currentKeyMapping = positionCache.get(currentKey);\n\n\t\t// Remove key if it exists\n\t\tif (currentKeyMapping.contains(newKey)) {\n\t\t\tcurrentKeyMapping.remove(newKey);\n\t\t}\n\n\t\tpositionCache.put(currentKey, currentKeyMapping);\n\t}", "public void mapping() {\n\t\t\n\t}", "private void reverseLookupC_Location_ID() throws Exception\r\n\t{\r\n\t\tStringBuilder sql = new StringBuilder();\r\n\t\tString msg = new String();\r\n\t\tint no = 0;\r\n\r\n\t\t//Reverse Loog up C_Location_ID From JP_Location_Label\r\n\t\tmsg = Msg.getMsg(getCtx(), \"Matching\") + \" : \" + Msg.getElement(getCtx(), \"C_Location_ID\")\r\n\t\t+ \" - \" + Msg.getMsg(getCtx(), \"MatchFrom\") + \" : \" + Msg.getElement(getCtx(), \"JP_Location_Label\") ;\r\n\t\tsql = new StringBuilder (\"UPDATE I_LocationJP i \")\r\n\t\t\t\t.append(\"SET C_Location_ID=(SELECT C_Location_ID FROM C_Location p\")\r\n\t\t\t\t.append(\" WHERE i.JP_Location_Label= p.JP_Location_Label AND p.AD_Client_ID=i.AD_Client_ID) \")\r\n\t\t\t\t.append(\" WHERE i.C_Location_ID IS NULL AND JP_Location_Label IS NOT NULL\")\r\n\t\t\t\t.append(\" AND i.I_IsImported='N'\").append(getWhereClause());\r\n\t\ttry {\r\n\t\t\tno = DB.executeUpdateEx(sql.toString(), get_TrxName());\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.fine(msg +\"=\" + no + \":\" + sql);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + sql );\r\n\t\t}\r\n\r\n\t}", "@SuppressWarnings(\"unchecked\") // Needed to stop Eclipse whining\n private void resetWithHole() {\n Entry<K, V>[] entries = new Entry[] {a, c};\n super.resetMap(entries);\n navigableMap = (NavigableMap<K, V>) getMap();\n }", "public static Node[] reorderReverse(Node[] nodes, int[] map) {\n\t\tNode[] reordered = new Node[map.length];\n\t\tfor (int i = 0; i < map.length; i++)\n\t\t\treordered[map[i]] = nodes[i];\n\t\treturn reordered;\n\t}", "public void resetTransforms() { \r\n transforms2 = new HashMap<BundlesDT.DT,Map<String,Map<String,String>>>(); \r\n transforms2.put(BundlesDT.DT.IPv4, new HashMap<String,Map<String,String>>());\r\n transforms2.put(BundlesDT.DT.IPv4CIDR, new HashMap<String,Map<String,String>>());\r\n if (transforms.containsKey(BundlesDT.DT.IPv4)) {\r\n Iterator<String> it = transforms.get(BundlesDT.DT.IPv4).keySet().iterator();\r\n while (it.hasNext()) transforms2.get(BundlesDT.DT.IPv4).put(it.next(), new HashMap<String,String>());\r\n }\r\n if (transforms.containsKey(BundlesDT.DT.IPv4CIDR)) {\r\n sorted_cidr_trans = new HashMap<String,CIDRRec[]>();\r\n Iterator<String> it = transforms.get(BundlesDT.DT.IPv4CIDR).keySet().iterator();\r\n while (it.hasNext()) {\r\n String trans = it.next();\r\n transforms2.get(BundlesDT.DT.IPv4).put(trans, new HashMap<String,String>());\r\n transforms2.get(BundlesDT.DT.IPv4CIDR).put(trans, new HashMap<String,String>());\r\n\tCIDRRec recs[] = new CIDRRec[transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).keySet().size()];\r\n\tIterator<String> it_cidr = transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).keySet().iterator();\r\n\tfor (int i=0;i<recs.length;i++) {\r\n\t String cidr = it_cidr.next();\r\n\t recs[i] = new CIDRRec(cidr,transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).get(cidr));\r\n }\r\n\tArrays.sort(recs);\r\n\tsorted_cidr_trans.put(trans,recs);\r\n }\r\n }\r\n }", "static void testRemove1(BTMap<Integer, Integer> m) {\n var keys = Arrays.asList(3, 8, 1, 0);\n\n System.out.println(keys);\n\n for (int i = 0; i < keys.size(); i++) {\n m.insert(keys.get(i), i);\n }\n\n System.out.println(m);\n\n m.remove(0);\n\n System.out.println(m);\n \n m.remove(1);\n\n System.out.println(m);\n }", "@Test\n\tpublic void testRemoveLinkWithInverse() {\n\t\tAddress adr = new Address();\n\t\tadr.getType().setIdGenerator(new IdGeneratorNumeric());\n\t\tAssert.assertEquals(1, ((IdNumeric) adr.getId()).getNumber());\n\t\tPerson martin = new Person(\"\\\"Martin\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tPerson jojo = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tadr.addInhabitant(martin);\n\t\tadr.addInhabitant(jojo);\n\n\t\tadr.removeInhabitant(jojo);\n\n\t\tAssert.assertEquals(1, adr.getInhabitants().size());\n\t\tIterator<?> iter = adr.getInhabitants().iterator();\n\t\tAssert.assertSame(martin, iter.next());\n\t\tAssert.assertSame(adr, martin.getAddress());\n\t\tAssert.assertNull(jojo.getAddress());\n\n\t\t// removing last link via remove link produces\n\t\t// an empty collection but no null value\n\t\tadr.removeInhabitant(martin);\n\n\t\tAssert.assertEquals(0, adr.getInhabitants().size());\n\t\tAssert.assertNull(jojo.getAddress());\n\t\tAssert.assertNull(martin.getAddress());\n\t}", "@Test\n public void testLowerBoundsIgnoredWhenDeletingCompositeEntitesOwnedByMap() throws Exception {\n AtlasStructDef.AtlasAttributeDef[] mapValueAttributes = new AtlasStructDef.AtlasAttributeDef[]{\n new AtlasStructDef.AtlasAttributeDef(\"refToMapValue\", \"CompositeMapValue\",\n false,\n AtlasStructDef.AtlasAttributeDef.Cardinality.SINGLE, 1, 1,\n false, false,\n Collections.<AtlasStructDef.AtlasConstraintDef>emptyList())\n };\n\n AtlasEntityDef mapValueDef =\n new AtlasEntityDef(\"MapValueReferencer\", \"RequiredMapValue_description\", \"1.0\",\n Arrays.asList(mapValueAttributes), Collections.<String>emptySet());\n\n\n AtlasStructDef.AtlasAttributeDef[] mapContainerAttributes = new AtlasStructDef.AtlasAttributeDef[]{\n new AtlasStructDef.AtlasAttributeDef(\"requiredMap\", \"map<string,MapValueReferencer>\",\n false,\n AtlasStructDef.AtlasAttributeDef.Cardinality.SINGLE, 1, 1,\n false, false,\n new ArrayList<AtlasStructDef.AtlasConstraintDef>() {{\n add(new AtlasStructDef.AtlasConstraintDef(AtlasStructDef.AtlasConstraintDef.CONSTRAINT_TYPE_OWNED_REF));\n }})\n };\n\n AtlasEntityDef mapContainerDef =\n new AtlasEntityDef(\"MapValueReferencerContainer\", \"MapValueReferencerContainer_description\", \"1.0\",\n Arrays.asList(mapContainerAttributes), Collections.<String>emptySet());\n\n\n AtlasTypesDef typesDef = AtlasTypeUtil.getTypesDef(ImmutableList.<AtlasEnumDef>of(),\n ImmutableList.<AtlasStructDef>of(),\n ImmutableList.<AtlasClassificationDef>of(),\n ImmutableList.<AtlasEntityDef>of(mapValueDef, mapContainerDef));\n\n typeDefStore.createTypesDef(typesDef);\n\n // Create instances of CompositeMapOwner and CompositeMapValue.\n // Set MapOwner.map with one entry that references MapValue instance.\n AtlasEntity.AtlasEntityWithExtInfo entityDefinition = createMapOwnerAndValueEntities();\n String mapOwnerGuid = entityDefinition.getEntity().getGuid();\n\n // Verify MapOwner.map attribute has expected value.\n ITypedReferenceableInstance mapOwnerInstance = metadataService.getEntityDefinition(mapOwnerGuid);\n Object object = mapOwnerInstance.get(\"map\");\n Assert.assertNotNull(object);\n Assert.assertTrue(object instanceof Map);\n Map<String, ITypedReferenceableInstance> map = (Map<String, ITypedReferenceableInstance>)object;\n Assert.assertEquals(map.size(), 1);\n ITypedReferenceableInstance mapValueInstance = map.get(\"value1\");\n Assert.assertNotNull(mapValueInstance);\n String mapValueGuid = mapValueInstance.getId()._getId();\n\n // Create instance of MapValueReferencerContainer\n init();\n AtlasEntity mapValueReferencer = new AtlasEntity(mapValueDef.getName());\n mapValueReferencer.setAttribute(\"refToMapValue\", new AtlasObjectId(mapValueInstance.getId()._getId(), mapValueInstance.getTypeName()));\n AtlasEntity.AtlasEntitiesWithExtInfo entities = new AtlasEntity.AtlasEntitiesWithExtInfo();\n entities.addEntity(mapValueReferencer);\n\n List<AtlasEntityHeader> createEntitiesResult = entityStore.createOrUpdate(new AtlasEntityStream(entities), false).getCreatedEntities();\n Assert.assertEquals(createEntitiesResult.size(), 1);\n\n // Create instance of MapValueReferencer, and update mapValueReferencerContainer\n // to reference it.\n AtlasEntity mapValueReferenceContainer = new AtlasEntity(mapContainerDef.getName());\n entities = new AtlasEntity.AtlasEntitiesWithExtInfo();\n entities.addEntity(mapValueReferenceContainer);\n entities.addReferredEntity(mapValueReferencer);\n mapValueReferenceContainer.setAttribute(\"requiredMap\", Collections.singletonMap(\"value1\", AtlasTypeUtil.getAtlasObjectId(mapValueReferencer)));\n\n\n init();\n EntityMutationResponse updateEntitiesResult = entityStore.createOrUpdate(new AtlasEntityStream(entities), false);\n\n String mapValueReferencerContainerGuid = updateEntitiesResult.getCreatedEntitiesByTypeName(\"MapValueReferencerContainer\").get(0).getGuid();\n String mapValueReferencerGuid = updateEntitiesResult.getUpdatedEntitiesByTypeName(\"MapValueReferencer\").get(0).getGuid();\n\n Assert.assertEquals(updateEntitiesResult.getCreatedEntities().size(), 1);\n Assert.assertEquals(updateEntitiesResult.getUpdatedEntities().size(), 1);\n Assert.assertEquals(updateEntitiesResult.getUpdatedEntities().get(0).getGuid(), mapValueReferencerGuid);\n\n\n // Delete map owner and map referencer container. A total of 4 entities should be deleted,\n // including the composite entities. The lower bound constraint on MapValueReferencer.refToMapValue\n // should not be enforced on the composite MapValueReferencer since it is being deleted.\n EntityMutationResponse deleteEntitiesResult = entityStore.deleteByIds(Arrays.asList(mapOwnerGuid, mapValueReferencerContainerGuid));\n Assert.assertEquals(deleteEntitiesResult.getDeletedEntities().size(), 4);\n Assert.assertTrue(extractGuids(deleteEntitiesResult.getDeletedEntities()).containsAll(\n Arrays.asList(mapOwnerGuid, mapValueGuid, mapValueReferencerContainerGuid, mapValueReferencerGuid)));\n }", "@Test\n public void mapRemove() {\n check(MAPREM);\n query(MAPSIZE.args(MAPREM.args(MAPENTRY.args(1, 2), 1)), 0);\n }", "private void removeNoMoreExistingOriginalEdges() {\n for (MirrorEdge mirrorEdge : directEdgeMap.values()) {\n if (!originalGraph.has(mirrorEdge.original)) {\n for (Edge segment : mirrorEdge.segments) {\n mirrorGraph.forcedRemove(segment);\n reverseEdgeMap.remove(segment);\n }\n for (Node bend : mirrorEdge.bends) {\n mirrorGraph.forcedRemove(bend);\n reverseEdgeMap.remove(bend);\n }\n directEdgeMap.remove(mirrorEdge.original);\n }\n }\n }", "private Iterable<V> reconstructPath(V last, V from, HashMap<V, V> previous){\n LinkedList<V> ret = new LinkedList<>();\n ret.addFirst(last);\n while (!last.equals(from)){\n V prev = previous.get(last);\n ret.addFirst(prev);\n last = prev;\n }\n return ret;\n }", "@Test\n public void testDisconnectBidirectionalReferences() throws Exception {\n AtlasEntity.AtlasEntitiesWithExtInfo hrDept = TestUtilsV2.createDeptEg2();\n init();\n final EntityMutationResponse hrDeptCreationResponse = entityStore.createOrUpdate(new AtlasEntityStream(hrDept), false);\n\n final AtlasEntityHeader deptCreated = hrDeptCreationResponse.getFirstCreatedEntityByTypeName(DEPARTMENT_TYPE);\n final AtlasEntityHeader maxEmployee = hrDeptCreationResponse.getCreatedEntityByTypeNameAndAttribute(TestUtilsV2.EMPLOYEE_TYPE, NAME, \"Max\");\n final AtlasEntityHeader johnEmployee = hrDeptCreationResponse.getCreatedEntityByTypeNameAndAttribute(TestUtilsV2.EMPLOYEE_TYPE, NAME, \"John\");\n final AtlasEntityHeader janeEmployee = hrDeptCreationResponse.getCreatedEntityByTypeNameAndAttribute(TestUtilsV2.MANAGER_TYPE, NAME, \"Jane\");\n final AtlasEntityHeader juliusEmployee = hrDeptCreationResponse.getCreatedEntityByTypeNameAndAttribute(TestUtilsV2.MANAGER_TYPE, NAME, \"Julius\");\n\n ITypedReferenceableInstance hrDeptInstance = metadataService.getEntityDefinition(deptCreated.getGuid());\n Map<String, String> nameGuidMap = getEmployeeNameGuidMap(hrDeptInstance);\n\n // Verify that Max is one of Jane's subordinates.\n ITypedReferenceableInstance jane = metadataService.getEntityDefinition(janeEmployee.getGuid());\n Object refValue = jane.get(\"subordinates\");\n Assert.assertTrue(refValue instanceof List);\n List<Object> subordinates = (List<Object>)refValue;\n Assert.assertEquals(subordinates.size(), 2);\n List<String> subordinateIds = new ArrayList<>(2);\n for (Object listValue : subordinates) {\n Assert.assertTrue(listValue instanceof ITypedReferenceableInstance);\n ITypedReferenceableInstance employee = (ITypedReferenceableInstance) listValue;\n subordinateIds.add(employee.getId()._getId());\n }\n Assert.assertTrue(subordinateIds.contains(maxEmployee.getGuid()));\n\n init();\n EntityMutationResponse entityResult = entityStore.deleteById(maxEmployee.getGuid());\n ITypedReferenceableInstance john = metadataService.getEntityDefinitionReference(TestUtilsV2.EMPLOYEE_TYPE, NAME, \"John\");\n\n assertEquals(entityResult.getDeletedEntities().size(), 1);\n assertEquals(entityResult.getDeletedEntities().get(0).getGuid(), maxEmployee.getGuid());\n assertEquals(entityResult.getUpdatedEntities().size(), 3);\n\n assertEquals(extractGuids(entityResult.getUpdatedEntities()), Arrays.asList(janeEmployee.getGuid(), deptCreated.getGuid(), johnEmployee.getGuid()));\n assertEntityDeleted(maxEmployee.getGuid());\n\n assertMaxForTestDisconnectBidirectionalReferences(nameGuidMap);\n\n // Now delete jane - this should disconnect the manager reference from her\n // subordinate.\n init();\n entityResult = entityStore.deleteById(janeEmployee.getGuid());\n assertEquals(entityResult.getDeletedEntities().size(), 1);\n assertEquals(entityResult.getDeletedEntities().get(0).getGuid(), janeEmployee.getGuid());\n assertEquals(entityResult.getUpdatedEntities().size(), 2);\n assertEquals(extractGuids(entityResult.getUpdatedEntities()), Arrays.asList(deptCreated.getGuid(), johnEmployee.getGuid()));\n\n assertEntityDeleted(janeEmployee.getGuid());\n\n final AtlasEntity.AtlasEntityWithExtInfo johnUpdated = entityStore.getById(johnEmployee.getGuid());\n assertJohnForTestDisconnectBidirectionalReferences(johnUpdated, janeEmployee.getGuid());\n }", "private static void parseRelations(){\n\t\tString[] number = relationReader.nextLine().trim().split(\"\\\\s++\");\n\t\tint numOfCoarse = Integer.parseInt(number[0]);\n\t\tint numOfAccurate = Integer.parseInt(number[1]);\n\t\t\n\t\tfor(int i=0; i<numOfCoarse; i++){\n\t\t\tString[] pair = relationReader.nextLine().trim().split(\"\\\\s++\");\n\t\t\tmap.put(Integer.parseInt(pair[0]), pair[1]);\n\t\t}\n\t\t\n\t\tfor(int i=0; i<numOfAccurate; i++){\n\t\t\tString[] pair = relationReader.nextLine().trim().split(\"\\\\s++\");\n//\t\t\tSystem.err.println(pair[0]);\n\t\t\tif(pair[1].equalsIgnoreCase(\"ROOT\"))\n\t\t\t\ttransform.put(pair[0], pair[1]);\n\t\t\telse\n\t\t\t\ttransform.put(pair[0], map.get(Integer.parseInt(pair[1])));\n\t\t}\n\t\t\n//\t\tSystem.err.println(map.size());\n//\t\tSystem.err.println(transform.size());\n\t\t\n\t\treturn;\n\t}", "public void endPrefixMapping(String prefix) { }", "public void filterToBidirectionalLinks() {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) getRTComponent().rc; if (myrc == null) return;\n\n // Get the visible links, extract the direction, create the reverse direction -- if that exists, add those records to keepers\n Iterator<String> it = myrc.graphedgeref_to_link.keySet().iterator(); Set<Bundle> to_keep = new HashSet<Bundle>();\n while (it.hasNext()) {\n String graph_edge_ref = it.next(); String line_ref = myrc.graphedgeref_to_link.get(graph_edge_ref);\n int fm_i = digraph.linkRefFm(graph_edge_ref);\n int to_i = digraph.linkRefTo(graph_edge_ref);\n String other_dir = digraph.getLinkRef(to_i,fm_i);\n if (myrc.graphedgeref_to_link.containsKey(other_dir)) { to_keep.addAll(myrc.link_counter_context.getBundles(line_ref)); }\n }\n\n // Add the no mapping set and push it to the RTParent\n to_keep.addAll(getRTComponent().getNoMappingSet()); getRTParent().push(getRTParent().getRootBundles().subset(to_keep));\n }", "@Override\r\n public NavigableMap<K, V> subMap(final K fromKey, final boolean fromInclusive, final K toKey, final boolean toInclusive) {\n return null;\r\n }", "static void testRemove2(BTMap<Integer, Integer> m) {\n var keys = Arrays.asList(3, 8, 1, 0);\n\n System.out.println(keys);\n\n for (int i = 0; i < keys.size(); i++) {\n m.insert(keys.get(i), i);\n }\n\n System.out.println(m);\n\n m.remove(8);\n\n System.out.println(m);\n\n\n }", "@Override\r\n\tprotected void loadUniqueIndexMap(TestBooking entiy) {\n\t\t\r\n\t}", "static void testRemove3(BTMap<Integer, Integer> m) {\n var keys = Arrays.asList(3, 8, 1, 0, -1, 10, 5);\n\n System.out.println(keys);\n\n for (int i = 0; i < keys.size(); i++) {\n m.insert(keys.get(i), i);\n }\n\n System.out.println(m);\n\n m.remove(0);\n\n System.out.println(m);\n\n m.remove(8);\n\n System.out.println(m);\n\n m.remove(3);\n System.out.println(m);\n }", "@Override\r\n public NavigableMap<K, V> headMap(final K toKey, final boolean inclusive) {\n return null;\r\n }", "public Hashtable getRemappedValues() throws Exception;", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingNonPersistentFields() {\n }", "static public OFPortNo from(org.openflow.protocol.interfaces.OFPortNo c) {\n \treturn __compatMappingReverse.get(c);\n }", "@Override\r\n public NavigableMap<K, V> navigableKeySet() {\n return null;\r\n }", "@Test\n public void testCoh3733()\n {\n doSingleServerTest(\"IdxTestCoh3733\", new Runnable()\n {\n public void run()\n {\n NamedCache cache = getNamedCache(\"coh3733\");\n\n cache.addIndex(new IndexAwareExtractor()\n {\n public MapIndex createIndex(boolean fOrdered, Comparator comparator, Map mapIndex,\n BackingMapContext ctx)\n {\n MapIndex index = new SimpleMapIndex(this, false, null, ctx)\n {\n protected void removeInverseMapping(Map mapIndex, Object oIxValue, Object oKey)\n {\n Set setKeys = (Set) mapIndex.get(oIxValue);\n\n assertTrue(\"Attempted to remove non-existent index entry\",\n setKeys != null && setKeys.contains(oKey));\n super.removeInverseMapping(mapIndex, oIxValue, oKey);\n }\n };\n mapIndex.put(this, index);\n return index;\n }\n\n public MapIndex destroyIndex(Map mapIndex)\n {\n return (MapIndex) mapIndex.remove(this);\n }\n\n public Object extract(Object oTarget)\n {\n return oTarget;\n }\n }, false, null);\n cache.addMapListener(new MultiplexingMapListener()\n {\n protected void onMapEvent(MapEvent evt)\n {\n fail(\"Observed unexpected event: \" + evt);\n }\n });\n\n cache.remove(\"non-existent-key\");\n\n validateIndex(cache);\n }\n });\n }", "@Mapper(componentModel = \"spring\", uses = {ReferenceMapper.class, })\npublic interface ChapterMapper extends EntityMapper <ChapterDTO, Chapter> {\n\n @Mapping(source = \"reference.id\", target = \"referenceId\")\n ChapterDTO toDto(Chapter chapter); \n\n @Mapping(source = \"referenceId\", target = \"reference\")\n Chapter toEntity(ChapterDTO chapterDTO); \n default Chapter fromId(Long id) {\n if (id == null) {\n return null;\n }\n Chapter chapter = new Chapter();\n chapter.setId(id);\n return chapter;\n }\n}", "private void populatePrefixMappings(OntModel model) {\n\t\tMap<String, String> pm = model.getNsPrefixMap();\n\t\tneededPrefixesForQueries = new String[pm.keySet().size()];\n\t\tint i=0;\n\t\tfor(String key:pm.keySet())\n\t\t{\n\t\t\tneededPrefixesForQueries[i] = key + \": <\" + pm.get(key) + \">\";\n\t\t\ti++;\n\t\t}\n\t}", "public static Map<Node, List<Value<Long>>> calculateReverseDiff(Map<Long,List<Node>> before,\n Map<Long,List<Value<Node>>> diff, Node removed) {\n Map<Node,List<Value<Long>>> map = new HashMap<Node,List<Value<Long>>>();\n for (Map.Entry<Long,List<Value<Node>>> e: diff.entrySet()) {\n Long l = e.getKey();\n for (Value<Node> v: e.getValue()) {\n Difference type = v.getDifferenceType();\n switch (type) {\n case REMOVED:\n Node n = v.get();\n // if it matches the removed node, we need to pick a different one to copy from\n // right now I'll just pick \"randomly\" (although this is not random for RF = 2)\n if (n.equals(removed)) {\n List<Node> candidates = before.get(l);\n for (Node c: candidates) {\n if (!c.equals(removed)) {\n n = c;\n break;\n }\n }\n }\n addNodeToDataDiff(n, l, Difference.REMOVED, map);\n break;\n case ADDED:\n addNodeToDataDiff(v.get(), l, Difference.ADDED, map);\n break;\n default:\n break;\n }\n }\n }\n return map;\n }", "public void dec(String key) {\n if (!keyMap.containsKey(key)) return;\n int count = keyMap.get(key);\n DLinkedListNode oldNode = countMap.get(count);\n oldNode.keySet.remove(key);\n count--;\n if (count > 0) {\n keyMap.put(key, count);\n DLinkedListNode newNode = countMap.get(count);\n if (newNode == null) {\n newNode = new DLinkedListNode(count);\n countMap.put(count, newNode);\n dll.insertBefore(oldNode, newNode);\n }\n newNode.keySet.add(key);\n }\n else {\n keyMap.remove(key);\n }\n if (oldNode.keySet.size() == 0) {\n dll.remove(oldNode);\n countMap.remove(oldNode.count);\n }\n }", "public Map<String, Integer> getReversedNodeIndexLabelMap() {\n\t\treturn reversedNodeIndexLabelMap;\n\t}", "private void logUnmappedError(String misrouteInfo)\n\t{\n\t\t//\toriginal.logDebug(misrouteInfo);\n\t}", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingNullReferences() {\n }", "void unDistributeKeys(Stack<Entry> rs) {\n while (!rs.empty()) {\n Integer key = rs.pop().getHash();\n RemoteMapper rm = findMapper(key);\n try {\n rm.removeKey(key);\n } catch (RemoteException ex) {\n ex.printStackTrace();\n }\n }//while\n }", "ArrayMap<Integer,DefinedProperty> relDelete( long relId );", "@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}", "@Test\n public void testDeleteEntitiesWithCompositeMapReference() throws Exception {\n AtlasEntity.AtlasEntityWithExtInfo entityDefinition = createMapOwnerAndValueEntities();\n String mapOwnerGuid = entityDefinition.getEntity().getGuid();\n\n // Verify MapOwner.map attribute has expected value.\n AtlasEntity.AtlasEntityWithExtInfo mapOwnerInstance = entityStore.getById(mapOwnerGuid);\n Object object = mapOwnerInstance.getEntity().getAttribute(\"map\");\n Assert.assertNotNull(object);\n Assert.assertTrue(object instanceof Map);\n Map<String, AtlasObjectId> map = (Map<String, AtlasObjectId>)object;\n Assert.assertEquals(map.size(), 1);\n AtlasObjectId mapValueInstance = map.get(\"value1\");\n Assert.assertNotNull(mapValueInstance);\n String mapValueGuid = mapValueInstance.getGuid();\n String edgeLabel = AtlasGraphUtilsV1.getAttributeEdgeLabel(compositeMapOwnerType, \"map\");\n String mapEntryLabel = edgeLabel + \".\" + \"value1\";\n AtlasEdgeLabel atlasEdgeLabel = new AtlasEdgeLabel(mapEntryLabel);\n AtlasVertex mapOwnerVertex = GraphHelper.getInstance().getVertexForGUID(mapOwnerGuid);\n object = mapOwnerVertex.getProperty(atlasEdgeLabel.getQualifiedMapKey(), Object.class);\n Assert.assertNotNull(object);\n\n init();\n List<AtlasEntityHeader> deletedEntities = entityStore.deleteById(mapOwnerGuid).getDeletedEntities();\n Assert.assertEquals(deletedEntities.size(), 2);\n Assert.assertTrue(extractGuids(deletedEntities).contains(mapOwnerGuid));\n Assert.assertTrue(extractGuids(deletedEntities).contains(mapValueGuid));\n\n assertEntityDeleted(mapOwnerGuid);\n assertEntityDeleted(mapValueGuid);\n }", "private Map<Integer, Set<Integer>> computeInverseTransitionRelation(LabelledTransitionSystem ret) {\n\n\t\tMap<Integer, Set<Integer>> reverseTransitionMap = new HashMap<>();\n\t\tLTSTransitionList[] transitions = ret.getStates();\n\n\t\tfor (int stateIndex = 0; stateIndex < transitions.length; stateIndex++) {\n\t\t\treverseTransitionMap.put(stateIndex, new HashSet<>());\n\t\t}\n\n\t\tfor (int stateIndex = 0; stateIndex < transitions.length; stateIndex++) {\n\n\t\t\tLTSTransitionList transition = transitions[stateIndex];\n\t\t\tthis.updateIndexes(stateIndex, transition, reverseTransitionMap);\n\t\t}\n\n\t\treturn reverseTransitionMap;\n\t}", "public Graphe reverse()\t{\r\n \tfor(Liaison route : this.routes)\r\n \t\tif(route.isSensUnique())\r\n \t\t\troute.reverse();\t//TODO check si reverse marche bien\r\n \treturn this;\r\n }", "@Test\n public void correctnessReverse() {\n final Iterator<Partition<Integer>> it = Partitions.lexicographicEnumeration(Helper.newHashSet(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), new int[]{3, 5}, ImmutablePartition::new);\n final Iterator<Partition<Integer>> itr = Partitions.reverseLexicographicEnumeration(Helper.newHashSet(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), new int[]{3, 5}, ImmutablePartition::new);\n final List<Partition<Integer>> partitions = new ArrayList<>();\n final List<Partition<Integer>> partitionsReverse = new ArrayList<>();\n while (it.hasNext() && itr.hasNext()) {\n final Partition<Integer> p = it.next();\n final Partition<Integer> pr = itr.next();\n partitions.add(p);\n partitionsReverse.add(pr);\n }\n Assert.assertTrue(!it.hasNext() && !itr.hasNext());\n Collections.reverse(partitionsReverse);\n Assert.assertEquals(partitions, partitionsReverse);\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 }", "public void testSubgraphsDontPolluteDefaultPrefix() \n {\n String imported = \"http://imported#\", local = \"http://local#\";\n g1.getPrefixMapping().setNsPrefix( \"\", imported );\n poly.getPrefixMapping().setNsPrefix( \"\", local );\n assertEquals( null, poly.getPrefixMapping().getNsURIPrefix( imported ) );\n }", "private void reLoadIndexesFromFileToIndexMap(File file) throws IOException {\n BufferedReader reader = new BufferedReader(new FileReader(file));\n for (String line = reader.readLine(); line != null; line = reader\n .readLine()) {\n String[] termIndex = line.split(\" \");\n String key = termIndex[0];\n LinkedList<TermPositions> value = new LinkedList<>();\n String postingList = termIndex[1];\n // split the posting lists 1:1,2,4;2:4\n String[] subPostings = postingList.split(\";\");\n for (String posting : subPostings) {\n String[] docPosting = posting.split(\":\");\n int docId = Integer.parseInt(docPosting[0]);\n String[] positions = docPosting[1].split(\",\");\n LinkedList<Integer> positionsList = new LinkedList<>();\n for (String position : positions) {\n positionsList.add(Integer.parseInt(position));\n }\n TermPositions termPositions = new TermPositions(docId, positionsList);\n value.add(termPositions);\n }\n indexMap.put(key, value);\n\n }\n\n }", "private static void testMap(final OurMap<Integer, String> map) {\n System.out.printf(\"%n%s%n\", map.getClass());\n assert map.size() == 0;\n assert !map.containsKey(117);\n assert !map.containsKey(-2);\n assert map.get(117) == null;\n assert map.put(117, \"A\") == null;\n assert map.containsKey(117);\n assert map.get(117).equals(\"A\");\n assert map.put(17, \"B\") == null;\n assert map.size() == 2;\n assert map.containsKey(17);\n assert map.get(117).equals(\"A\");\n assert map.get(17).equals(\"B\");\n assert map.put(117, \"C\").equals(\"A\");\n assert map.containsKey(117);\n assert map.get(117).equals(\"C\");\n assert map.size() == 2;\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v));\n assert map.remove(117).equals(\"C\");\n assert !map.containsKey(117);\n assert map.get(117) == null;\n assert map.size() == 1;\n assert map.putIfAbsent(17, \"D\").equals(\"B\");\n assert map.get(17).equals(\"B\");\n assert map.size() == 1;\n assert map.containsKey(17);\n assert map.putIfAbsent(217, \"E\") == null;\n assert map.get(217).equals(\"E\");\n assert map.size() == 2;\n assert map.containsKey(217);\n assert map.putIfAbsent(34, \"F\") == null;\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v));\n map.reallocateBuckets();\n assert map.size() == 3;\n assert map.get(17).equals(\"B\") && map.containsKey(17);\n assert map.get(217).equals(\"E\") && map.containsKey(217);\n assert map.get(34).equals(\"F\") && map.containsKey(34);\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v)); \n map.reallocateBuckets();\n assert map.size() == 3;\n assert map.get(17).equals(\"B\") && map.containsKey(17);\n assert map.get(217).equals(\"E\") && map.containsKey(217);\n assert map.get(34).equals(\"F\") && map.containsKey(34);\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v)); \n }", "public Output<TInt64> remapping() {\n return remapping;\n }", "void unsetFurtherRelations();", "private final java.lang.String B(java.util.Map<java.lang.String, ? extends java.lang.Object> r11) {\n /*\n r10 = this;\n r11 = r11.entrySet();\n r11 = (java.lang.Iterable) r11;\n r0 = new java.util.ArrayList;\n r0.<init>();\n r0 = (java.util.Collection) r0;\n r11 = r11.iterator();\n L_0x0011:\n r1 = r11.hasNext();\n if (r1 == 0) goto L_0x004e;\n L_0x0017:\n r1 = r11.next();\n r2 = r1;\n r2 = (java.util.Map.Entry) r2;\n r3 = r2.getKey();\n r3 = (java.lang.CharSequence) r3;\n r3 = r3.length();\n r4 = 1;\n r5 = 0;\n if (r3 <= 0) goto L_0x002e;\n L_0x002c:\n r3 = 1;\n goto L_0x002f;\n L_0x002e:\n r3 = 0;\n L_0x002f:\n if (r3 == 0) goto L_0x0047;\n L_0x0031:\n r2 = r2.getValue();\n r2 = r2.toString();\n r2 = (java.lang.CharSequence) r2;\n r2 = r2.length();\n if (r2 <= 0) goto L_0x0043;\n L_0x0041:\n r2 = 1;\n goto L_0x0044;\n L_0x0043:\n r2 = 0;\n L_0x0044:\n if (r2 == 0) goto L_0x0047;\n L_0x0046:\n goto L_0x0048;\n L_0x0047:\n r4 = 0;\n L_0x0048:\n if (r4 == 0) goto L_0x0011;\n L_0x004a:\n r0.add(r1);\n goto L_0x0011;\n L_0x004e:\n r0 = (java.util.List) r0;\n r1 = r0;\n r1 = (java.lang.Iterable) r1;\n r11 = \"&\";\n r2 = r11;\n r2 = (java.lang.CharSequence) r2;\n r3 = 0;\n r4 = 0;\n r5 = 0;\n r6 = 0;\n r11 = com.iqoption.core.connect.http.Http$urlEncode$2.baR;\n r7 = r11;\n r7 = (kotlin.jvm.a.b) r7;\n r8 = 30;\n r9 = 0;\n r11 = kotlin.collections.u.a(r1, r2, r3, r4, r5, r6, r7, r8, r9);\n r11 = r10.ft(r11);\n return r11;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.core.connect.http.c.B(java.util.Map):java.lang.String\");\n }", "@Test\n public void testDisconnectMapReferenceFromClassType() throws Exception {\n // Define type for map value.\n AtlasStructDef.AtlasAttributeDef[] mapValueAttributes = new AtlasStructDef.AtlasAttributeDef[]{\n new AtlasStructDef.AtlasAttributeDef(\"biMapOwner\", \"MapOwner\",\n true,\n AtlasStructDef.AtlasAttributeDef.Cardinality.SINGLE, 0, 1,\n false, false,\n new ArrayList<AtlasStructDef.AtlasConstraintDef>() {{\n add(new AtlasStructDef.AtlasConstraintDef(\n AtlasStructDef.AtlasConstraintDef.CONSTRAINT_TYPE_INVERSE_REF, new HashMap<String, Object>() {{\n put(AtlasStructDef.AtlasConstraintDef.CONSTRAINT_PARAM_ATTRIBUTE, \"biMap\");\n }}));\n }})};\n\n AtlasEntityDef mapValueContainerDef =\n new AtlasEntityDef(\"MapValue\", \"MapValue_desc\", \"1.0\",\n Arrays.asList(mapValueAttributes), Collections.<String>emptySet());\n\n // Define type with unidirectional and bidirectional map references,\n // where the map value is a class reference to MapValue.\n\n AtlasStructDef.AtlasAttributeDef[] mapOwnerAttributes = new AtlasStructDef.AtlasAttributeDef[]{\n new AtlasStructDef.AtlasAttributeDef(\"map\", \"map<string,MapValue>\",\n true,\n AtlasStructDef.AtlasAttributeDef.Cardinality.SINGLE, 0, 1,\n false, false,\n Collections.<AtlasStructDef.AtlasConstraintDef>emptyList()),\n new AtlasStructDef.AtlasAttributeDef(\"biMap\", \"map<string,MapValue>\",\n true,\n AtlasStructDef.AtlasAttributeDef.Cardinality.SINGLE, 0, 1,\n false, false,\n new ArrayList<AtlasStructDef.AtlasConstraintDef>() {{\n add(new AtlasStructDef.AtlasConstraintDef(\n AtlasStructDef.AtlasConstraintDef.CONSTRAINT_TYPE_INVERSE_REF, new HashMap<String, Object>() {{\n put(AtlasStructDef.AtlasConstraintDef.CONSTRAINT_PARAM_ATTRIBUTE, \"biMapOwner\");\n }}));\n }})};\n\n AtlasEntityDef mapOwnerContainerDef =\n new AtlasEntityDef(\"MapOwner\", \"MapOwner_desc\", \"1.0\",\n Arrays.asList(mapOwnerAttributes), Collections.<String>emptySet());\n\n AtlasTypesDef typesDef = AtlasTypeUtil.getTypesDef(ImmutableList.<AtlasEnumDef>of(),\n ImmutableList.<AtlasStructDef>of(),\n ImmutableList.<AtlasClassificationDef>of(),\n ImmutableList.<AtlasEntityDef>of(mapValueContainerDef, mapOwnerContainerDef));\n\n typeDefStore.createTypesDef(typesDef);\n\n // Create instances of MapOwner and MapValue.\n // Set MapOwner.map and MapOwner.biMap with one entry that references MapValue instance.\n AtlasEntity mapOwnerInstance = new AtlasEntity(\"MapOwner\");\n AtlasEntity mapValueInstance = new AtlasEntity(\"MapValue\");\n\n mapOwnerInstance.setAttribute(\"map\", Collections.singletonMap(\"value1\", AtlasTypeUtil.getAtlasObjectId(mapValueInstance)));\n mapOwnerInstance.setAttribute(\"biMap\", Collections.singletonMap(\"value1\", AtlasTypeUtil.getAtlasObjectId(mapValueInstance)));\n // Set biMapOwner reverse reference on MapValue.\n mapValueInstance.setAttribute(\"biMapOwner\", AtlasTypeUtil.getAtlasObjectId(mapOwnerInstance));\n\n AtlasEntity.AtlasEntitiesWithExtInfo entities = new AtlasEntity.AtlasEntitiesWithExtInfo();\n entities.addReferredEntity(mapValueInstance);\n entities.addEntity(mapOwnerInstance);\n\n final EntityMutationResponse response = entityStore.createOrUpdate(new AtlasEntityStream(entities), false);\n Assert.assertEquals(response.getCreatedEntities().size(), 2);\n final List<AtlasEntityHeader> mapOwnerCreated = response.getCreatedEntitiesByTypeName(\"MapOwner\");\n AtlasEntity.AtlasEntityWithExtInfo mapOwnerEntity = entityStore.getById(mapOwnerCreated.get(0).getGuid());\n\n String edgeLabel = AtlasGraphUtilsV1.getAttributeEdgeLabel(typeRegistry.getEntityTypeByName(\"MapOwner\"), \"map\");\n String mapEntryLabel = edgeLabel + \".\" + \"value1\";\n AtlasEdgeLabel atlasEdgeLabel = new AtlasEdgeLabel(mapEntryLabel);\n\n // Verify MapOwner.map attribute has expected value.\n String mapValueGuid = null;\n AtlasVertex mapOwnerVertex = null;\n for (String mapAttrName : Arrays.asList(\"map\", \"biMap\")) {\n Object object = mapOwnerEntity.getEntity().getAttribute(mapAttrName);\n Assert.assertNotNull(object);\n Assert.assertTrue(object instanceof Map);\n Map<String, AtlasObjectId> map = (Map<String, AtlasObjectId>)object;\n Assert.assertEquals(map.size(), 1);\n AtlasObjectId value1Id = map.get(\"value1\");\n Assert.assertNotNull(value1Id);\n mapValueGuid = value1Id.getGuid();\n mapOwnerVertex = GraphHelper.getInstance().getVertexForGUID(mapOwnerEntity.getEntity().getGuid());\n object = mapOwnerVertex.getProperty(atlasEdgeLabel.getQualifiedMapKey(), Object.class);\n Assert.assertNotNull(object);\n }\n\n // Delete the map value instance.\n // This should disconnect the references from the map owner instance.\n entityStore.deleteById(mapValueGuid);\n assertEntityDeleted(mapValueGuid);\n assertTestDisconnectMapReferenceFromClassType(mapOwnerEntity.getEntity().getGuid());\n }", "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}", "@Mapper(componentModel = \"spring\")\npublic interface DataDictItemMapping {\n DataDictItemVo asDataDictItemVo(DataDictItem entity);\n\n DataDictItemOrdinaryVo asOrdinary(DataDictItem entity);\n\n @Mapping(target = \"priority\", ignore = true)\n @Mapping(target = \"lastUpdater\", ignore = true)\n @Mapping(target = \"lastUpdatedAt\", ignore = true)\n @Mapping(target = \"id\", ignore = true)\n @Mapping(target = \"dictId\", ignore = true)\n @Mapping(target = \"creator\", ignore = true)\n @Mapping(target = \"createdAt\", ignore = true)\n DataDictItem asDataDictItem(DataDictItemInsertRo ro);\n\n DataDictItemComplexVo asComplex(DataDictItem entity);\n\n DataDictItem asDataDictItem(DataDictItemUpdateRo ro);\n}", "public void dec(String key) {\n\t\tif(map.containsKey(key)){\n\t\t\tNode n=map.get(key);\n\t\t\tn.val--;\n\t\t\tif(n.val==0){\n\t\t\t\tremove(n);\n\t\t\t\tmap.remove(key);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmoveToTail(n);\n\t\t\t}\n\t\t}\n\t}", "void flipPath(int lastNode) {\n int myLastNode = lastNode;\n while (myLastNode != EMPTY_LABEL) {\n int parent = this.tLabels[myLastNode];\n\n // Add (parent, lastNode) to matching. We don't need to\n // explicitly remove any edges from the matching because:\n // * We know at this point that there is no i such that\n // sMatches[i] = lastNode.\n // * Although there might be some j such that tMatches[j] =\n // parent, that j must be sLabels[parent], and will change\n // tMatches[j] in the next time through this loop.\n this.sMatches[parent] = lastNode;\n this.tMatches[myLastNode] = parent;\n\n myLastNode = this.sLabels[parent];\n }\n }", "private void removeIfNeeded(String prefix) {\r\n // remove the previous mapping to the prefix\r\n if (this.prefixMapping.containsValue(prefix)) {\r\n Object key = null;\r\n for (Enumeration e = this.prefixMapping.keys(); e.hasMoreElements();) {\r\n key = e.nextElement();\r\n if (this.prefixMapping.get(key).equals(prefix)) \r\n break;\r\n }\r\n this.prefixMapping.remove(key); // we know key should have a value\r\n\t if (DEBUG) System.err.println(\"Removed \" + prefix);\r\n \r\n }\r\n }", "private String replaceIntermediateObjectWithRel(Context context, String strOldRelId ,String strNewRelId ,String strNewRelIdSide,Map attributeMap) throws Exception {\r\n\r\n\t\tString strNewConnId=\"\";\r\n\t\tboolean isRelToRel = true;\r\n\t\tboolean isFrom = true;\r\n\r\n\t\ttry{\r\n\r\n\t\tDomainRelationship domRel = new DomainRelationship(strOldRelId);\r\n //Get the attributes on Relationship\r\n /*Map attributeMap = new HashMap();\r\n attributeMap = domRel.getAttributeMap(context,true);*/\r\n\r\n\r\n\t\t//Get the \"Type\" of rel\r\n\t\tStringList slRelSelects = new StringList(1);\r\n slRelSelects.addElement(DomainRelationship.SELECT_TYPE);\r\n\r\n if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"from\")){\r\n \t//New Rel replaces FL/GBOM which is on \"from\" side of Old Rel hence we query now \"to\" side of Old Rel\r\n \tslRelSelects.add(\"to.id\");\r\n slRelSelects.add(\"torel.id\");\r\n\r\n }else if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"to\")){\r\n \t//New Rel replaces FL/GBOM which is on \"to\" side of Old Rel hence we query now \"from\" side of Old Rel\r\n \tslRelSelects.add(\"from.id\");\r\n slRelSelects.add(\"fromrel.id\");\r\n }\r\n\r\n Hashtable htRelData = domRel.getRelationshipData(context,slRelSelects);\r\n\r\n String strFromSideOfRel =\"\";\r\n String strToSideOfRel =\"\";\r\n String strRelId =\"\";\r\n String strObjId =\"\";\r\n\r\n StringList slRelTypes = (StringList) htRelData.get(DomainRelationship.SELECT_TYPE);\r\n String strRelType = (String) slRelTypes.get(0);\r\n RelationshipType RelType = new RelationshipType(strRelType);\r\n\r\n\r\n if((StringList) htRelData.get(\"from.id\")!=null || ((StringList)htRelData.get(\"fromrel.id\"))!=null ){\r\n\r\n \tStringList slFromSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"from.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"from.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\t//isFrom = false;\r\n \t\tstrObjId = strFromSideOfRel;\r\n\r\n\r\n \t}else if(!((StringList)htRelData.get(\"fromrel.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"fromrel.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tstrRelId = strFromSideOfRel;\r\n \t\tisFrom = false;\r\n \t}\r\n }\r\n\r\n if((StringList) htRelData.get(\"to.id\")!=null || ((StringList)htRelData.get(\"torel.id\"))!=null ){\r\n\r\n \tStringList slToSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"to.id\")).isEmpty()){\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"to.id\");\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\tstrObjId = strToSideOfRel;\r\n \t\tisFrom = false;\r\n \t}else if(!((StringList)htRelData.get(\"torel.id\")).isEmpty()){\r\n\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"torel.id\");\r\n\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n \t\tstrRelId =strToSideOfRel;\r\n \t\t//isFrom = false;\r\n \t}\r\n }\r\n\r\n\r\n if(isRelToRel){\r\n\r\n strNewConnId = connectRelationship(context, RelType, strRelId,strNewRelId, isFrom);\r\n\r\n }else{\r\n\r\n \tstrNewConnId = connectObject(context, RelType, strObjId,strNewRelId, isFrom);\r\n }\r\n\r\n\t\t\t StringList relDataSelects = new StringList();\r\n\t\t\t relDataSelects.addElement(\"frommid.id\");\r\n\t\t\t relDataSelects.addElement(\"tomid.id\");\r\n\r\n\t\t\t Map gbomRelData = domRel.getRelationshipData(context,relDataSelects);\r\n\t\t\t StringList sLFrommid = new StringList();\r\n\t\t\t StringList sLTomid = new StringList();\r\n\r\n\t\t\t sLFrommid = (StringList) gbomRelData.get(\"frommid.id\");\r\n\t\t\t if(!sLFrommid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLFrommid.size();i++){\r\n\r\n\t\t\t\t\tString strFromMid = (String)sLFrommid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strFromMid,strNewConnId,true);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\r\n\t\t\t sLTomid = (StringList) gbomRelData.get(\"tomid.id\");\r\n\t\t\t if(!sLTomid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLTomid.size();i++){\r\n\r\n\t\t\t\t\tString strToMid = (String)sLTomid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strToMid,strNewConnId,false);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\tDomainRelationship domNewConnId = new DomainRelationship(strNewConnId);\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewConnId +\"\\n\");\r\n\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this rel id :: \"+ attributeMap +\"\\n\\n\");\r\n\t domNewConnId.setAttributeValues(context, attributeMap);\r\n\r\n\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn strNewConnId;\r\n\t}", "public void _reverse() {\n\n var prev = first;\n var current = first.next;\n last = first;\n last.next = null;\n while (current != null) {\n var next = current.next;\n current.next = prev;\n prev = current;\n current = next;\n\n }\n first = prev;\n\n }", "private void toMap(String cycle) {\n for (int i = 0; i < cycle.length() - 1; i++) {\n Integer input = _alphabet.toInt(cycle.charAt(i));\n Integer output = _alphabet.toInt(cycle.charAt(i + 1));\n _map.put(input, output);\n }\n Integer i = _alphabet.toInt(cycle.charAt(cycle.length() - 1));\n Integer o = _alphabet.toInt(cycle.charAt(0));\n _map.put(i, o);\n }", "@Test\n\tpublic void testRemoveViaSetLinkWithInverse() {\n\t\tAddress adr = new Address();\n\t\tadr.getType().setIdGenerator(new IdGeneratorNumeric());\n\t\tAssert.assertEquals(1, ((IdNumeric) adr.getId()).getNumber());\n\t\tPerson martin = new Person(\"\\\"Martin\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tPerson jojo = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tadr.addInhabitant(martin);\n\t\tadr.addInhabitant(jojo);\n\n\t\tCollection<Person> persons = new ArrayList<Person>();\n\t\tpersons.add(martin);\n\t\tadr.setInhabitants(persons);\n\n\t\tAssert.assertEquals(1, adr.getInhabitants().size());\n\t\tIterator<?> iter = adr.getInhabitants().iterator();\n\t\tAssert.assertSame(martin, iter.next());\n\t\tAssert.assertSame(adr, martin.getAddress());\n\t\tAssert.assertNull(jojo.getAddress());\n\n\t\tadr.setInhabitants(new ArrayList<Person>());\n\n\t\tAssert.assertEquals(0, adr.getInhabitants().size());\n\t\tAssert.assertNull(martin.getAddress());\n\t\tAssert.assertNull(jojo.getAddress());\n\n\t\tadr.setInhabitants(null);\n\n\t\tAssert.assertNull(adr.getInhabitants());\n\t\tAssert.assertNull(martin.getAddress());\n\t\tAssert.assertNull(jojo.getAddress());\n\t}", "private void setUpRouteIDsAndIndexes() {\n\n\n for (int i = 0; i < routeIDsOfBillboards.size(); i++) {\n\n List<Integer> routeIDs = routeIDsOfBillboards.get(i);\n\n for (int j = 0; j < routeIDs.size(); j++) {\n\n int routeID = routeIDs.get(j);\n routeIDSet.add(routeID);\n }\n }\n\n buildHash();\n\n for (int i = 0; i < routeIDsOfBillboards.size(); i++) {\n\n List<Integer> routeIndexes = new ArrayList<>();\n List<Integer> routeIDs = routeIDsOfBillboards.get(i);\n for (int j = 0; j < routeIDs.size(); j++) {\n\n int routeID = routeIDs.get(j);\n int routeIndex = (int) routeIDMap.get(routeID);\n routeIndexes.add(routeIndex);\n }\n routeIndexesOfBillboards.add(routeIndexes);\n }\n }", "public void openAddressingRemoveKeyTest2(){\r\n int collisions = oa.removeKey(12);\r\n String result = collisions == oa.Table.length ? p : f;\r\n System.out.println(\"open addressing remove nonexisting key test: \" + result);\r\n }", "private void mapChildren(SortedSet<Integer> parents) {\n\n\t\tIterator<Integer> iterator = parents.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tint next = iterator.next();\n\t\t\tthis.children.put(next, new ArrayList<Integer>());\n\n\t\t}\n\t\t// save the parent of every id in par and check if they are contained in\n\t\t// parent list\n\n\t\tfor (int i : this.idMap.keySet()) {\n\n\t\t\tint par = Integer.parseInt(this.idMap.get(i).get(1));\n\t\t\tthis.children.get(par).add(i);\n\n\t\t}\n\n\t}", "@Override\n public void reloadCachedMappings() {\n }", "@Override\n public void reloadCachedMappings() {\n }", "void reconstruct(HashMap<Integer, Vertex> h, Vertex next) {\n while (h.containsKey(next.toIdentifier())) {\n next.path = true;\n next = h.get(next.toIdentifier());\n }\n }", "void reconstruct(HashMap<Integer, Vertex> h, Vertex next) {\n while (h.containsKey(next.toIdentifier())) {\n next.path = true;\n next = h.get(next.toIdentifier());\n }\n }", "@Test\n public void testDeleteLastKeyBug() throws Exception {\n\n final Database db = openDb(\"foo\");\n\n final EntryBinding<Integer> binding = new IntegerBinding();\n\n final StoredSortedMap<Integer, Integer> map = new StoredSortedMap<>(\n db, binding, binding, true);\n\n final StoredValueSet<Integer> set =\n (StoredValueSet<Integer>) map.values();\n\n /*\n * Use a block size of 5 and fill one block.\n */\n set.setIteratorBlockSize(5);\n\n for (int i = 1; i <= 5; i += 1) {\n assertNull(map.put(0, i));\n }\n\n /*\n * Move iterator to last (5th) record.\n */\n final Iterator<Integer> iter = set.iterator();\n for (Integer i = 1; i <= 5; i += 1) {\n assertEquals(i, iter.next());\n }\n\n /*\n * Delete the last (5th) record using a different iterator.\n */\n final Iterator<Integer> deleteIter = set.iterator();\n for (Integer i = 1; i <= 5; i += 1) {\n assertEquals(i, deleteIter.next());\n }\n deleteIter.remove();\n\n /*\n * Prior to the bug fix, hasNext below returned true because the\n * DataCursor.repositionRange method positioned to an earlier record.\n */\n assertFalse(iter.hasNext());\n\n db.close();\n }", "private void f(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 1;\n r2 = F;\n r7.y = r8;\n r0 = r7.m;\n r0 = r0.entrySet();\n r3 = r0.iterator();\n L_0x000f:\n r0 = r3.hasNext();\n if (r0 == 0) goto L_0x004a;\n L_0x0015:\n r0 = r3.next();\n r0 = (java.util.Map.Entry) r0;\n r1 = r0.getValue();\n r1 = (java.util.List) r1;\n r4 = r1.size();\t Catch:{ RuntimeException -> 0x0077 }\n if (r4 != r6) goto L_0x0043;\n L_0x0027:\n r4 = J;\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 28;\n r4 = r4[r5];\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 0;\n r5 = r1.get(r5);\t Catch:{ RuntimeException -> 0x0079 }\n r4 = r4.equals(r5);\t Catch:{ RuntimeException -> 0x0079 }\n if (r4 == 0) goto L_0x0043;\n L_0x0038:\n r4 = r7.e;\t Catch:{ RuntimeException -> 0x007b }\n r0 = r0.getKey();\t Catch:{ RuntimeException -> 0x007b }\n r4.add(r0);\t Catch:{ RuntimeException -> 0x007b }\n if (r2 == 0) goto L_0x0048;\n L_0x0043:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007b }\n r0.addAll(r1);\t Catch:{ RuntimeException -> 0x007b }\n L_0x0048:\n if (r2 == 0) goto L_0x000f;\n L_0x004a:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007d }\n r1 = J;\t Catch:{ RuntimeException -> 0x007d }\n r2 = 29;\n r1 = r1[r2];\t Catch:{ RuntimeException -> 0x007d }\n r0 = r0.remove(r1);\t Catch:{ RuntimeException -> 0x007d }\n if (r0 == 0) goto L_0x0065;\n L_0x0058:\n r0 = B;\t Catch:{ RuntimeException -> 0x007d }\n r1 = java.util.logging.Level.WARNING;\t Catch:{ RuntimeException -> 0x007d }\n r2 = J;\t Catch:{ RuntimeException -> 0x007d }\n r3 = 30;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x007d }\n r0.log(r1, r2);\t Catch:{ RuntimeException -> 0x007d }\n L_0x0065:\n r1 = r7.G;\n r0 = r7.m;\n r2 = java.lang.Integer.valueOf(r6);\n r0 = r0.get(r2);\n r0 = (java.util.Collection) r0;\n r1.addAll(r0);\n return;\n L_0x0077:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0079 }\n L_0x0079:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x007b }\n L_0x007b:\n r0 = move-exception;\n throw r0;\n L_0x007d:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.f(java.lang.String):void\");\n }", "@Override\r\n\tpublic boolean reverseAccrualIt() {\n\t\r\n\t\t\r\n\t\treturn false;\r\n\t}", "protected void clearHyperEdgeMap() {\n\n for (String id : this.hyperEdgeMap.keySet()) {\n\n this.ids.remove(id);\n }\n this.hyperEdgeMap.clear();\n }", "private void removeObjectFromMaps(Object obj)\r\n {\r\n String name = (String) objectNames.remove(obj);\r\n\r\n // if multiple objects have registered under the same prefix, ensure\r\n // that only this object is removed from that mapping\r\n try\r\n {\r\n // retrieve the object that the weak reference refers to, if any\r\n WeakReference ref = (WeakReference) nameObjects.get(name);\r\n if (System.identityHashCode(obj) == System.identityHashCode(ref.get()))\r\n nameObjects.remove(name);\r\n }\r\n catch(NullPointerException e0)\r\n {\r\n // ignore\r\n }\r\n }", "public void setIdRoot(String theMapToRoot) {\n\t \r\n }", "@Override\n\tpublic State qStateAbsMapping(State state, QNode qNode) {\n\t\treturn null;\n\t}", "@Override\n\tpublic State eStateAbsMapping(State state, QNode qNode) {\n\t\treturn null;\n\t}", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingObjectsThatAreAlreadyPersistent() {\n }", "@Test\n\tpublic void doEqualsTestDifferentMaps() {\n\t\tassertFalse(bigBidiMap.equals(leftChildMap));\n\n\t}", "@SuppressWarnings(\"unchecked\")\n private Object asReversedIteration(final Map<String, Object> input, final boolean recursive, final List<Object> disc) {\n Stack<Entry<String, Object>> s = new Stack<>();\n disc.add(input);\n outerLoop:\n for (Entry<String, Object> entry : input.entrySet()) {\n s.push(entry);\n\n for (Object e : disc) {\n {\n if (e == entry) {\n continue outerLoop;\n }\n }\n }\n if (recursive) {\n if (entry.getValue() instanceof List<?>) {\n entry.setValue(asReversedIteration((List<Object>) entry.getValue(), true, disc));\n }\n if (entry.getValue() instanceof Map<?, ?>) {\n entry.setValue(asReversedIteration((Map<String, Object>) entry.getValue(), true, disc));\n }\n }\n\n }\n input.clear();\n int size = s.size();\n for (int i = 0; i < size; i++) {\n Entry<String, Object> e = s.pop();\n input.put(e.getKey(), e.getValue());\n }\n return input;\n }", "@Test\n public void testIndexMaintenanceWithHeterogenousObjects() throws Exception {\n DefaultQueryService.TEST_QUERY_HETEROGENEOUS_OBJECTS = true;\n IndexManager.TEST_RANGEINDEX_ONLY = true;\n Cache cache = CacheUtils.getCache();\n qs = cache.getQueryService();\n region = CacheUtils.createRegion(\"portfolio1\", null);\n idSet.clear();\n Portfolio p = new Portfolio(4);\n region.put(\"4\", p);\n idSet.add(\"\" + p.getID());\n p = new Portfolio(5);\n region.put(\"5\", p);\n idSet.add(\"\" + p.getID());\n region.put(\"6\", 6);\n Index i1 =\n qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID()\", SEPARATOR + \"portfolio1 pf\");\n RangeIndex ri = (RangeIndex) i1;\n assertEquals(2, ri.valueToEntriesMap.size());\n Iterator itr = ri.valueToEntriesMap.values().iterator();\n while (itr.hasNext()) {\n RangeIndex.RegionEntryToValuesMap re2ValMap = (RangeIndex.RegionEntryToValuesMap) itr.next();\n assertEquals(1, re2ValMap.map.size());\n Object obj = re2ValMap.map.values().iterator().next();\n assertFalse(obj instanceof Collection);\n assertTrue(obj instanceof Portfolio);\n Portfolio pf = (Portfolio) obj;\n assertTrue(idSet.contains(String.valueOf(pf.getID())));\n }\n assertEquals(1, ri.undefinedMappedEntries.map.size());\n Map.Entry entry = (Map.Entry) ri.undefinedMappedEntries.map.entrySet().iterator().next();\n assertFalse(entry.getValue() instanceof Collection);\n assertTrue(entry.getValue() instanceof Integer);\n assertTrue(entry.getValue().equals(6));\n\n region.put(\"7\", 7);\n idSet.add(7);\n assertEquals(2, ri.undefinedMappedEntries.map.size());\n itr = ri.undefinedMappedEntries.map.entrySet().iterator();\n while (itr.hasNext()) {\n entry = (Map.Entry) itr.next();\n assertFalse(entry.getValue() instanceof Collection);\n assertTrue(entry.getValue() instanceof Integer);\n idSet.contains(entry.getValue());\n }\n\n region.remove(\"7\");\n idSet.remove(7);\n Index i2 =\n qs.createIndex(\"indx2\", IndexType.FUNCTIONAL, \"pf.pkid\", SEPARATOR + \"portfolio1 pf\");\n ri = (RangeIndex) i2;\n assertEquals(2, ri.valueToEntriesMap.size());\n itr = ri.valueToEntriesMap.values().iterator();\n while (itr.hasNext()) {\n RangeIndex.RegionEntryToValuesMap re2ValMap = (RangeIndex.RegionEntryToValuesMap) itr.next();\n assertEquals(1, re2ValMap.map.size());\n Object obj = re2ValMap.map.values().iterator().next();\n assertFalse(obj instanceof Collection);\n assertTrue(obj instanceof Portfolio);\n Portfolio pf = (Portfolio) obj;\n assertTrue(idSet.contains(String.valueOf(pf.getID())));\n }\n assertEquals(1, ri.undefinedMappedEntries.map.size());\n entry = (Map.Entry) ri.undefinedMappedEntries.map.entrySet().iterator().next();\n assertFalse(entry.getValue() instanceof Collection);\n assertTrue(entry.getValue() instanceof Integer);\n assertTrue(entry.getValue().equals(6));\n\n region.put(\"7\", 7);\n idSet.add(7);\n assertEquals(2, ri.undefinedMappedEntries.map.size());\n itr = ri.undefinedMappedEntries.map.entrySet().iterator();\n while (itr.hasNext()) {\n entry = (Map.Entry) itr.next();\n assertFalse(entry.getValue() instanceof Collection);\n assertTrue(entry.getValue() instanceof Integer);\n idSet.contains(entry.getValue());\n }\n }", "private static void linkedHashMapMap(Map<Integer, String> linkedHashMapMap) {\n System.out.println(\"----------------------------- LinkedHashMap ----------------------------\");\n System.out.println(\"\\\"TreeMap\\\" is ordered by entry\");\n linkedHashMapMap.put(7, \"Cristiano Ronaldo\");\n linkedHashMapMap.put(10, \"Leo Messi\");\n linkedHashMapMap.put(8, \"Avi Nimni\");\n linkedHashMapMap.put(24, \"Kobi Brian\");\n PrintUtils.printMap(linkedHashMapMap);\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 linkedHashMapMap.replace(8, \"Avi Nimni\", \"Moshe\");\n // if you use \"put\" instead of \"replace\" it will work to!\n PrintUtils.printMap(linkedHashMapMap);\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 linkedHashMapMap.remove(10, \"Leo Messi\");\n PrintUtils.printMap(linkedHashMapMap);\n System.out.println();\n }", "public static void reorder(Automaton automaton, int[] mapping) {\n\t\t// now remap all the vertices according to giving binding\n\t\tState[] states = new State[automaton.nStates()];\n\t\tfor (int i = 0; i != states.length; ++i) {\n\t\t\tAutomaton.State state = automaton.get(i);\n\t\t\tstate.remap(mapping);\n\t\t\tstates[mapping[i]] = state;\n\t\t}\n\t\tfor (int i = 0; i != states.length; ++i) {\n\t\t\tautomaton.set(i, states[i]);\n\t\t}\n\n\t\tfor (int i = 0; i != automaton.nRoots(); ++i) {\n\t\t\tint root = automaton.getRoot(i);\n\t\t\tif (root >= 0) {\n\t\t\t\tautomaton.setRoot(i, mapping[root]);\n\t\t\t}\n\t\t}\n\t}", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFields() {\n }", "private void setupRoutingKeys(List<EsbEventContainer> esbEventContainers) {\r\n\r\n String regexRoutingKeyReplacementDefinition = GrouperLoaderConfig.retrieveConfig().propertyValueString(\"changeLog.consumer.\"\r\n + consumerName + \".regexRoutingKeyReplacementDefinition\");\r\n logObjectIfNotNull(debugMapOverall, \"regexRoutingKeyReplacementDefinition\", regexRoutingKeyReplacementDefinition);\r\n\r\n if (StringUtils.isBlank(regexRoutingKeyReplacementDefinition)) {\r\n return;\r\n }\r\n \r\n boolean replaceColonsWithPeriods = GrouperLoaderConfig.retrieveConfig().propertyValueBoolean(\"changeLog.consumer.\"\r\n + consumerName + \".replaceRoutingKeyColonsWithPeriods\", true);\r\n\r\n for (EsbEventContainer esbEventContainer : GrouperUtil.nonNull(esbEventContainers)) {\r\n\r\n // for logging\r\n debugMapOverall.put(\"currentSequenceNumber\", esbEventContainer.getSequenceNumber());\r\n\r\n String routingKey = null;\r\n String groupName = esbEventContainer.getEsbEvent().getGroupName();\r\n \r\n if (StringUtils.isNotBlank(groupName)) {\r\n \r\n if (StringUtils.isNotBlank(regexRoutingKeyReplacementDefinition)) {\r\n \r\n Map<String, Object> substituteMap = new HashMap<String, Object>();\r\n substituteMap.put(\"groupName\", groupName);\r\n \r\n routingKey = GrouperUtil.substituteExpressionLanguage(regexRoutingKeyReplacementDefinition, substituteMap, true, false, false);;\r\n \r\n if (replaceColonsWithPeriods) {\r\n routingKey = routingKey.replaceAll(\":\", \".\");\r\n }\r\n\r\n esbEventContainer.setRoutingKey(routingKey);\r\n }\r\n }\r\n }\r\n \r\n // for logging\r\n debugMapOverall.put(\"currentSequenceNumber\", null);\r\n\r\n }", "@Override\r\n public NavigableMap<K, V> subMap(final K fromKey, final boolean inclusive) {\n return null;\r\n }", "private void step4(Node node) {\n\t\tHashMap<String, ArrayList<String>> svn = node.svN;\r\n\t\tHashMap<String, ArrayList<String>> cn = node.cN;\r\n\t\tArrayList<String> keys = node.keysN;\r\n\t\tString c = checksubset(cn);\r\n\r\n\t\tif (c != null) {\r\n\t\t\tfor (int i = 0; i < keys.size(); i++) {\r\n\t\t\t\tif (svn.get(keys.get(i)).contains(c)) {\r\n\t\t\t\t\tsvn.get(keys.get(i)).remove(c);\r\n\t\t\t\t\tif (svn.get(keys.get(i)).size() <= 1) {\r\n\t\t\t\t\t\tsvn.remove(keys.get(i));\r\n\t\t\t\t\t\tkeys.remove(i);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcn.remove(c);\r\n\t\t}\r\n\t}", "@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}", "@Test\n public void doesNotThrowWhenRoutingKeyInvalid2() {\n String key = \"hi.-.live.odds_change.6sr:match.9536715\";\n\n parser.getRoutingKeyInfo(key);\n Assert.assertNotNull(parser);\n }" ]
[ "0.5677237", "0.55809665", "0.5291944", "0.52909505", "0.5278083", "0.5165243", "0.5063036", "0.5041131", "0.5023839", "0.50160956", "0.49969536", "0.49663597", "0.4893948", "0.4893479", "0.4892631", "0.48758167", "0.48734912", "0.48588878", "0.48421645", "0.48246434", "0.48051432", "0.47816014", "0.478056", "0.4740233", "0.47350252", "0.47336683", "0.47326964", "0.4722215", "0.47158036", "0.4712873", "0.4710895", "0.4687676", "0.46869928", "0.4676934", "0.46681783", "0.46676144", "0.46577704", "0.46553552", "0.46480283", "0.46439347", "0.46318674", "0.46312532", "0.46308586", "0.46173677", "0.4616281", "0.46117324", "0.45995647", "0.45934397", "0.45887968", "0.45825076", "0.45696956", "0.45593217", "0.4549227", "0.4543666", "0.45362875", "0.45280087", "0.452238", "0.45142162", "0.45053467", "0.4503592", "0.4503584", "0.45020822", "0.44941518", "0.4477581", "0.44771504", "0.44764602", "0.44701424", "0.44691697", "0.44605523", "0.44585314", "0.4457781", "0.44544894", "0.44534427", "0.44531578", "0.44522423", "0.44501242", "0.44485217", "0.44480735", "0.44480735", "0.44448835", "0.44448835", "0.44441453", "0.44412738", "0.44411844", "0.44357848", "0.44344172", "0.44337437", "0.44300574", "0.44288585", "0.4426917", "0.442398", "0.4423895", "0.44209716", "0.44177228", "0.4413141", "0.44063652", "0.4402162", "0.4401526", "0.4394114", "0.43924105", "0.43823552" ]
0.0
-1
/ 6 Duplicate Reverse Mapping Forward mapping is missing reverse mapping: wtf > 04 Duplicate reverse mapping 03 > wtf and 04 > null 01 > foo foo > 01 02 > bar bar > 02 03 > wtf wtf > 04 ^^^ FIX Delete 03 reverse map. wtf > 04 will be fixed by creating a reverse map for 04 > wtf
@Test public void fsckMetricsDuplicateReverse() throws Exception { storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, METRICS, "wtf".getBytes(MockBase.ASCII())); storage.addColumn(UID_TABLE, "wtf".getBytes(MockBase.ASCII()), ID_FAMILY, METRICS, new byte[] {0, 0, 4}); storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(4L)); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(2, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkReverseMap() throws ApplicationException {\n if (reverseMap == null) {\n reverseMap = Data.makeReverseMap(networkIds);\n }\n }", "protected ForwardingMap() {}", "void remap()\n\t\t{\n\t\t\tif(nextMap == null)\n\t\t\t\treturn;\n\t\t\tnextMap = newNodeMap(nextMap);\n\t\t\tfor(Node<T> node : nextMap.values())\n\t\t\t\tnode.remap();\n\t\t}", "public void mapping() {\n\t\t\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tprivate static <ModelElem extends EObject> ModelElem reverse(Object fortranElem, ModelElem modelElem, Map<Object,Object> mappings) {\r\n\t\t\r\n\t\tEClass modelElemClass = modelElem.eClass();\r\n\t\t\t\r\n\t\t//this is required so that we can conditionally add mappings\r\n\t\t//that succeeded at the end of the method when no recursive\r\n\t\t//call is required (this only occurs at leaves of metamodel tree)\r\n\t\tMap<Object, Object> mappingsToAdd = new IdentityHashMap<Object, Object>();\r\n\t\t\r\n\t\t//assume a successful mapping (required for looking up\r\n\t\t//mappings during recursive calls)\r\n\t\t//mapping will be removed later if it fails\r\n\t\tmappings.put(modelElem, fortranElem);\t\r\n\t\t\r\n\t\t\t\t\t\t\r\n\t\tfor (EStructuralFeature sf : modelElemClass.getEAllStructuralFeatures()) {\r\n\t\t\t\r\n\t\t\tMap<String, Object> keywordMap = Regex.getMappingFromAnnotation(sf);\r\n\t\t\t\r\n\t\t\t/////NEW MAPPING PARSER HERE\r\n\t\t\t\t\t\t\r\n\t\t\tEAnnotation ann = sf.getEAnnotation(\"http://www.earthsystemcog.org/projects/nuopc\");\r\n\t\t\tif (ann != null && ann.getDetails().get(\"mappingNew\") != null) {\r\n\t\t\t\tString mappingNew = ann.getDetails().get(\"mappingNew\");\r\n\t\t\t\t//if (mappingNew != null) {\r\n\t\t\t\tMapping mapping = parseMappingNew(mappingNew);\r\n\t\t\t\tObject fortranContextElem;\r\n\t\t\t\t\r\n\t\t\t\tif (mapping.getContext() != null) {\r\n\t\t\t\t\t//explicit context\r\n\t\t\t\t\tEObject contextElement = EcoreUtils.eGetSFValue(mapping.getContext(), modelElem, true, null);\r\n\t\t\t\t\tfortranContextElem = mappings.get(contextElement);\r\n\t\t\t\t\tif (fortranContextElem == null) {\r\n\t\t\t\t\t\tthrow new RuntimeException(\"No Fortran context for element: \" + contextElement);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tfortranContextElem = fortranElem; //implicit\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tImplicitContextMapping icMapping = mapping.getMapping();\r\n\t\t\t\ticMapping = replacePathExprWithValues(icMapping, modelElem, true);\r\n\t\t\t\t\r\n\t\t\t\tString methodName = icMapping.eClass().getName().toLowerCase();\r\n\t\t\t\t\r\n\t\t\t\t//find method that implements code query\r\n\t\t\t\tMethod method = findREMethod(methodName, fortranContextElem, icMapping);\r\n\t\t\t\tif (method == null) {\r\n\t\t\t\t\tSystem.out.println(\"Method not found: \" + methodName);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tObject result = method.invoke(null, fortranContextElem, icMapping);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tif (method.getReturnType() == String.class ||\r\n\t\t\t\t\t\tmethod.getReturnType().isPrimitive()) {\r\n\t\t\t\t\t\tmodelElem.eSet(sf, result);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Token.class) {\r\n\t\t\t\t\t\tif (result != null) {\r\n\t\t\t\t\t\t\t//String constructor required because of IdentityHashMap\r\n\t\t\t\t\t\t\tString text = new String(((Token)result).getText());\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, text);\r\n\t\t\t\t\t\t\tmappingsToAdd.put(text, result);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t//what should we do here?\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Set.class ||\r\n\t\t\t\t\t\t\t method.getReturnType() == Map.class) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do we have a set of primitives?\r\n\t\t\t\t\t\tif (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEString())) {\r\n\t\t\t\t\t\t\tSet<String> resultSet;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<String>) ((Map) result).keySet();\r\n\t\t\t\t\t\t\t\t//TODO: ignoring PathExprs for now\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<String>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfor (String res : resultSet) {\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(res);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, res);\r\n\t\t\t\t\t\t\t\t\tbreak; //just take first one\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}\r\n\t\t\t\t\t\t//result is a set of objects - either IASTNodes or IFortranASTs\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSet<Object> resultSet = null;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = ((Map) result).keySet();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<Object>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor (Object newFortranElem : resultSet) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//set binding in model\r\n\t\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\t\tMap<PathExpr, String> bindings = ((Map<?, Map<PathExpr, String>>) result).get(newFortranElem);\r\n\t\t\t\t\t\t\t\t\tfor (Entry<PathExpr, String> binding : bindings.entrySet()) {\r\n\t\t\t\t\t\t\t\t\t\tboolean featureSet = EcoreUtils.eSetSFValue(binding.getKey(), newModelElem, binding.getValue());\r\n\t\t\t\t\t\t\t\t\t\tif (!featureSet) {\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Feature not set: \" + binding.getKey());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// set up parent relationship for references (may be removed later)\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//recursive call\r\n\t\t\t\t\t\t\t\tEObject newModelElemRet = reverse(newFortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// if NULL returned, then mapping failed, so remove element from parent\r\n\t\t\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t//TODO: consider replacing with previous value?\r\n\t\t\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (!sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tbreak; // take first one that is not null\r\n\t\t\t\t\t\t\t\t}\t\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\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} // end check for primitives vs. objects in results\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t}\t\t\t\t\t\t\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\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////END OF NEW MAPPING PARSER\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\telse if (keywordMap != null && keywordMap.size() > 0) {\t\r\n\t\t\t\t\r\n\t\t\t\tString methodName = Regex.getMappingTypeFromAnnotation(sf);\r\n\t\t\t\t\r\n\t\t\t\t//populate metavariables\t\t\t\t\t\t\r\n\t\t\t\tfor (Entry<String, Object> entry : keywordMap.entrySet()) {\r\n\t\t\t\t\t//TODO: should we handle different metavariable types here?\r\n\t\t\t\t\t// or just strings?\r\n\t\t\t\t\tif (!entry.getKey().equals(\"_context\") && entry.getValue() instanceof String) {\r\n\t\t\t\t\t\tString val = (String) entry.getValue();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tMatcher match = CodeQuery.P_METAVAR.matcher(val);\r\n\t\t\t\t\t\twhile (match.find()) {\r\n\t\t\t\t\t\t\t//already at parent, so remove one leading ../\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\tString metavar = match.group().substring(1);\r\n\t\t\t\t\t\t\tif (metavar.startsWith(\"../\")) { \r\n\t\t\t\t\t\t\t\tmetavar = metavar.substring(3);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//TODO: decide what to do about NULL_VALUE below\r\n\t\t\t\t\t\t\t\tString replaceVal = EcoreUtils.eGetSFValue(metavar, modelElem, null);\r\n\t\t\t\t\t\t\t\tif (replaceVal != null) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Replacing metavariable: \" + match.group() + \" with val: \" + replaceVal);\r\n\t\t\t\t\t\t\t\t\tentry.setValue(val.replaceAll(match.group(), replaceVal));\r\n\t\t\t\t\t\t\t\t}\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}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tObject fortranContextElem;\r\n\t\t\t\t\r\n\t\t\t\tif (keywordMap.containsKey(\"_context\")) {\r\n\t\t\t\t\t//explicit context provided\r\n\t\t\t\t\tString contextPath = (String) keywordMap.get(\"_context\");\r\n\t\t\t\t\tif (!contextPath.startsWith(\"#..\")) {\r\n\t\t\t\t\t\t//error\r\n\t\t\t\t\t\tSystem.out.println(\"Explicit context path must contain parent node\");\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (contextPath.startsWith(\"#../\")) {\r\n\t\t\t\t\t\tcontextPath = contextPath.substring(4);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (contextPath.startsWith(\"#..\")) {\r\n\t\t\t\t\t\tcontextPath = contextPath.substring(3);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tEObject explicitContextElem;\r\n\t\t\t\t\tif (contextPath.equals(\"\")) {\r\n\t\t\t\t\t\texplicitContextElem = modelElem;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\texplicitContextElem = EcoreUtils.eGetSFValue(contextPath, modelElem, null);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tfortranContextElem = mappings.get(explicitContextElem);\r\n\t\t\t\t\tif (fortranContextElem == null) {\r\n\t\t\t\t\t\tSystem.out.println(\"MAPPED fortran element not found: \" + explicitContextElem);\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t//implicit context\r\n\t\t\t\t\tfortranContextElem = fortranElem;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//find method that implements code query\r\n\t\t\t\tMethod method = null;\r\n\t\t\t\tfor (Method m : CodeQuery.class.getMethods()) {\r\n\t\t\t\t\tif (m.getName().equalsIgnoreCase(methodName)) {\r\n\t\t\t\t\t\tClass contextClass = m.getParameterTypes()[0];\r\n\t\t\t\t\t\tClass paramClass = m.getParameterTypes()[1];\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (contextClass.isInstance(fortranContextElem) &&\r\n\t\t\t\t\t\t\tparamClass.isInstance(keywordMap)) {\r\n\t\t\t\t\t\t\tmethod = m;\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}\r\n\t\t\t\t\r\n\t\t\t\tif (method == null) {\r\n\t\t\t\t\tSystem.out.println(\"Method not found: \" + methodName);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//System.out.println(\"Calling method: \" + methodName + \" with first param: \" + fortranElem.getClass());\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tObject result = method.invoke(null, fortranContextElem, keywordMap);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tif (method.getReturnType() == String.class ||\r\n\t\t\t\t\t\tmethod.getReturnType().isPrimitive()) {\r\n\t\t\t\t\t\tmodelElem.eSet(sf, result);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Token.class) {\r\n\t\t\t\t\t\tif (result != null) {\r\n\t\t\t\t\t\t\t//String constructor required because of IdentityHashMap\r\n\t\t\t\t\t\t\tString text = new String(((Token)result).getText());\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, text);\r\n\t\t\t\t\t\t\tmappingsToAdd.put(text, result);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t//what should we do here?\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Set.class ||\r\n\t\t\t\t\t\t\t method.getReturnType() == Map.class) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do we have a set of primitives?\r\n\t\t\t\t\t\tif (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEString())) {\r\n\t\t\t\t\t\t\tSet<String> resultSet = (Set<String>) result;\r\n\t\t\t\t\t\t\tfor (String res : resultSet) {\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(res);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, res);\r\n\t\t\t\t\t\t\t\t\tbreak; //just take first one\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}\r\n\t\t\t\t\t\t//result is a set of objects - either IASTNodes or IFortranASTs\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSet<Object> resultSet = null;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = ((Map) result).keySet();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<Object>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor (Object newFortranElem : resultSet) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\t\t\tEObject newModelElemRet = null;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//TODO: work on precedence between metavariables and explicit sub-mappings\r\n\t\t\t\t\t\t\t\t//populate attributes based on metavariables\r\n\t\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\t\tMap<String,String> metavariableMap = (Map<String,String>) ((Map) result).get(newFortranElem);\r\n\t\t\t\t\t\t\t\t\tfor (Entry<String,String> mve : metavariableMap.entrySet()) {\r\n\t\t\t\t\t\t\t\t\t\tString attribName = mve.getKey().substring(1);\r\n\t\t\t\t\t\t\t\t\t\tEStructuralFeature attribSF = newModelElem.eClass().getEStructuralFeature(attribName);\r\n\t\t\t\t\t\t\t\t\t\tif (attribSF != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Metavariable - setting feature: \" + attribName + \" to \" + mve.getValue());\r\n\t\t\t\t\t\t\t\t\t\t\tnewModelElem.eSet(attribSF, mve.getValue());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Metavariable - feature not found: \" + attribName);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// set up parent relationship for references (may be removed later)\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//recursive call\r\n\t\t\t\t\t\t\t\tnewModelElemRet = reverse(newFortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// if NULL returned, then remove model element from parent\r\n\t\t\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t//consider replacing with previous value\r\n\t\t\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (!sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tbreak; // take first one that is not null\r\n\t\t\t\t\t\t\t\t}\t\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\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} // end check for primitives vs. objects in results\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} // end if that checks for query string\r\n\t\t\telse {\r\n\t\t\t\t//this means there is no mapping defined - if it is an EReference, then we create \r\n\t\t\t\t//the target and its children determine whether the mapping holds\r\n\t\t\t\t//in other words, this is just an extra layer of abstraction defined by the user\r\n\t\t\t\t\r\n\t\t\t\tif (sf instanceof EReference) {\r\n\t\t\t\t\tif (((EReference) sf).isContainment()) {\r\n\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tEObject newModelElemRet = reverse(fortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t//consider replacing with previous value\r\n\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\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}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//at this point we have set the value of the structural feature\r\n\t\t\t//if is essential, but not present or false, the parent is no good\r\n\t\t\t\r\n\t\t\tif (Regex.getIsEssentialFromAnnotation(sf)) {\t\r\n\t\t\t\tboolean fail = false;\r\n\t\t\t\t\r\n\t\t\t\tif (modelElem.eGet(sf) == null) {\t\t\t\t\t\r\n\t\t\t\t\tfail = true;\r\n\t\t\t\t}\r\n\t\t\t\telse if (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEBoolean()) &&\r\n\t\t\t\t\t\t! (Boolean) modelElem.eGet(sf)) {\r\n\t\t\t\t\tfail = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (fail) {\r\n\t\t\t\t\tmappings.remove(modelElem);\r\n\t\t\t\t\t//an essential feature failed, so no need to process \r\n\t\t\t\t\t//any more structural features\r\n\t\t\t\t\treturn null;\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\t\r\n\t\t} // end for structural features\r\n\t\t\r\n\t\tmappings.putAll(mappingsToAdd);\r\n\r\n\t\treturn modelElem;\r\n\t}", "@Override\r\n public NavigableMap<K, V> descendingMap() {\n return null;\r\n }", "@Override\n public void reloadCachedMappings() {\n }", "@Override\n public void reloadCachedMappings() {\n }", "public interface USLActionBanHistoryMapping extends ObjectMapping<USLActionBanHistory> {\n\t/**\n\t * Fetch all of the maps where it has the given usl action id.\n\t * \n\t * @param uslActionId the id of the USLAction\n\t * @return the mapping to the bans for that action\n\t */\n\tpublic List<USLActionBanHistory> fetchByUSLActionID(int uslActionId);\n\t\n\t/**\n\t * Fetch all of the maps where we have the given ban history.\n\t * \n\t * @param banHistoryId the id of the ban history\n\t * @return the mapping to the actions for that ban history\n\t */\n\tpublic List<USLActionBanHistory> fetchByBanHistoryID(int banHistoryId);\n\t\n\t/**\n\t * Determines if this mapping contains the given relationship\n\t * \n\t * @param uslActionId the action\n\t * @param banHistoryId the ban history\n\t * @return if that relationship is in the database\n\t */\n\tpublic boolean contains(int uslActionId, int banHistoryId);\n\t\n\t/**\n\t * Delete the row with the specified columns\n\t * @param uslActionId the id of the action\n\t * @param banHistoryId the id of the ban history\n\t */\n\tpublic void delete(int uslActionId, int banHistoryId);\n\t\n}", "protected ForwardingMapEntry() {}", "protected AssociationList reverseAssoc(LexBIGService lbsvc, LexBIGServiceConvenienceMethods lbscm, String scheme,\r\n CodingSchemeVersionOrTag csvt, Association assoc, AssociationList addTo,\r\n Map<String, EntityDescription> codeToEntityDescriptionMap) throws LBException {\r\n\r\n ConceptReference acRef = assoc.getAssociationReference();\r\n AssociatedConcept acFromRef = new AssociatedConcept();\r\n acFromRef.setCodingScheme(acRef.getCodingScheme());\r\n acFromRef.setConceptCode(acRef.getConceptCode());\r\n AssociationList acSources = new AssociationList();\r\n acFromRef.setIsNavigable(Boolean.TRUE);\r\n acFromRef.setSourceOf(acSources);\r\n\r\n // Use cached description if available (should be cached\r\n // for all but original root) ...\r\n if (codeToEntityDescriptionMap.containsKey(acRef.getConceptCode()))\r\n acFromRef.setEntityDescription(codeToEntityDescriptionMap.get(acRef.getConceptCode()));\r\n // Otherwise retrieve on demand ...\r\n else\r\n acFromRef.setEntityDescription(Constructors.createEntityDescription(getCodeDescription(lbsvc, scheme, csvt,\r\n acRef.getConceptCode())));\r\n\r\n AssociatedConceptList acl = assoc.getAssociatedConcepts();\r\n for (AssociatedConcept ac : acl.getAssociatedConcept()) {\r\n // Create reverse association (same non-directional name)\r\n Association rAssoc = new Association();\r\n rAssoc.setAssociationName(assoc.getAssociationName());\r\n\r\n // On reverse, old associated concept is new reference point.\r\n ConceptReference ref = new ConceptReference();\r\n ref.setCodingScheme(ac.getCodingScheme());\r\n ref.setConceptCode(ac.getConceptCode());\r\n rAssoc.setAssociationReference(ref);\r\n\r\n // And old reference is new associated concept.\r\n AssociatedConceptList rAcl = new AssociatedConceptList();\r\n rAcl.addAssociatedConcept(acFromRef);\r\n rAssoc.setAssociatedConcepts(rAcl);\r\n\r\n // Set reverse directional name, if available.\r\n String dirName = assoc.getDirectionalName();\r\n if (dirName != null)\r\n try {\r\n rAssoc.setDirectionalName(lbscm.isForwardName(scheme, csvt, dirName) ? lbscm\r\n .getAssociationReverseName(assoc.getAssociationName(), scheme, csvt) : lbscm\r\n .getAssociationReverseName(assoc.getAssociationName(), scheme, csvt));\r\n } catch (LBException e) {\r\n }\r\n\r\n // Save code desc for future reference when setting up\r\n // concept references in recursive calls ...\r\n codeToEntityDescriptionMap.put(ac.getConceptCode(), ac.getEntityDescription());\r\n\r\n AssociationList sourceOf = ac.getSourceOf();\r\n if (sourceOf != null)\r\n for (Association sourceAssoc : sourceOf.getAssociation()) {\r\n AssociationList pos = reverseAssoc(lbsvc, lbscm, scheme, csvt, sourceAssoc, addTo,\r\n codeToEntityDescriptionMap);\r\n pos.addAssociation(rAssoc);\r\n }\r\n else\r\n addTo.addAssociation(rAssoc);\r\n }\r\n return acSources;\r\n }", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "@Override\n public boolean isReversible() {\n return true;\n }", "ReferenceContainer<E> remap(UnaryOperator<PropertySymbol> mapper);", "public void resetRelatesToList(MappingType mapping) {\n\t\tmapping.getRelatesTo().clear();\n\t}", "private void logUnmappedError(String misrouteInfo)\n\t{\n\t\t//\toriginal.logDebug(misrouteInfo);\n\t}", "@SuppressWarnings(\"unchecked\") // Needed to stop Eclipse whining\n private void resetWithHole() {\n Entry<K, V>[] entries = new Entry[] {a, c};\n super.resetMap(entries);\n navigableMap = (NavigableMap<K, V>) getMap();\n }", "private void removeNoMoreExistingOriginalEdges() {\n for (MirrorEdge mirrorEdge : directEdgeMap.values()) {\n if (!originalGraph.has(mirrorEdge.original)) {\n for (Edge segment : mirrorEdge.segments) {\n mirrorGraph.forcedRemove(segment);\n reverseEdgeMap.remove(segment);\n }\n for (Node bend : mirrorEdge.bends) {\n mirrorGraph.forcedRemove(bend);\n reverseEdgeMap.remove(bend);\n }\n directEdgeMap.remove(mirrorEdge.original);\n }\n }\n }", "@Override\n public boolean noLastMapVersion() {\n // non implementato\n return false;\n }", "public void endPrefixMapping(String prefix) { }", "public void clearMappings() {\n if (mappings != null) {\n mappings.clear();\n }\n }", "@Mapper(componentModel = \"spring\")\npublic interface DataDictItemMapping {\n DataDictItemVo asDataDictItemVo(DataDictItem entity);\n\n DataDictItemOrdinaryVo asOrdinary(DataDictItem entity);\n\n @Mapping(target = \"priority\", ignore = true)\n @Mapping(target = \"lastUpdater\", ignore = true)\n @Mapping(target = \"lastUpdatedAt\", ignore = true)\n @Mapping(target = \"id\", ignore = true)\n @Mapping(target = \"dictId\", ignore = true)\n @Mapping(target = \"creator\", ignore = true)\n @Mapping(target = \"createdAt\", ignore = true)\n DataDictItem asDataDictItem(DataDictItemInsertRo ro);\n\n DataDictItemComplexVo asComplex(DataDictItem entity);\n\n DataDictItem asDataDictItem(DataDictItemUpdateRo ro);\n}", "@Mapper(componentModel = \"spring\", uses = {AanvraagberichtMapper.class})\npublic interface FdnAanvragerMapper extends EntityMapper<FdnAanvragerDTO, FdnAanvrager> {\n\n @Mapping(source = \"aanvraagbericht.id\", target = \"aanvraagberichtId\")\n FdnAanvragerDTO toDto(FdnAanvrager fdnAanvrager);\n\n @Mapping(target = \"adres\", ignore = true)\n @Mapping(target = \"legitimatiebewijs\", ignore = true)\n @Mapping(target = \"werksituaties\", ignore = true)\n @Mapping(target = \"gezinssituaties\", ignore = true)\n @Mapping(target = \"financieleSituaties\", ignore = true)\n @Mapping(source = \"aanvraagberichtId\", target = \"aanvraagbericht\")\n FdnAanvrager toEntity(FdnAanvragerDTO fdnAanvragerDTO);\n\n default FdnAanvrager fromId(Long id) {\n if (id == null) {\n return null;\n }\n FdnAanvrager fdnAanvrager = new FdnAanvrager();\n fdnAanvrager.setId(id);\n return fdnAanvrager;\n }\n}", "private void removeTwoStepForwardFromPositionCache(Key currentKey) {\n\n\t\t// Create a two square forward position\n\t\tKey newKey =createTwoStepForwardFromCurrentKey(currentKey);\n\n\t\t// Gets current values stored with key and adds the extra position\n\t\tSet<Key> currentKeyMapping = positionCache.get(currentKey);\n\n\t\t// Remove key if it exists\n\t\tif (currentKeyMapping.contains(newKey)) {\n\t\t\tcurrentKeyMapping.remove(newKey);\n\t\t}\n\n\t\tpositionCache.put(currentKey, currentKeyMapping);\n\t}", "public Mapping mapSharedTo(TracePosition trace) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:9654:OrglRoot methodsFor: 'accessing'!\n{Mapping} mapSharedTo: trace {TracePosition}\n\t\"return a mapping from my data to corresponding stuff in the given trace\"\n\tself subclassResponsibility!\n*/\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TourBubblRoutePointMapper {\n\n @Mapping(source = \"tourBubbl.id\", target = \"tourBubblId\")\n TourBubblRoutePointDTO tourBubblRoutePointToTourBubblRoutePointDTO(TourBubblRoutePoint tourBubblRoutePoint);\n\n List<TourBubblRoutePointDTO> tourBubblRoutePointsToTourBubblRoutePointDTOs(List<TourBubblRoutePoint> tourBubblRoutePoints);\n\n @Mapping(source = \"tourBubblId\", target = \"tourBubbl\")\n TourBubblRoutePoint tourBubblRoutePointDTOToTourBubblRoutePoint(TourBubblRoutePointDTO tourBubblRoutePointDTO);\n\n List<TourBubblRoutePoint> tourBubblRoutePointDTOsToTourBubblRoutePoints(List<TourBubblRoutePointDTO> tourBubblRoutePointDTOs);\n\n default TourBubbl tourBubblFromId(Long id) {\n if (id == null) {\n return null;\n }\n TourBubbl tourBubbl = new TourBubbl();\n tourBubbl.setId(id);\n return tourBubbl;\n }\n}", "@Override\n public void onMapVersionSet() {\n\n }", "public void filterToBidirectionalLinks() {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) getRTComponent().rc; if (myrc == null) return;\n\n // Get the visible links, extract the direction, create the reverse direction -- if that exists, add those records to keepers\n Iterator<String> it = myrc.graphedgeref_to_link.keySet().iterator(); Set<Bundle> to_keep = new HashSet<Bundle>();\n while (it.hasNext()) {\n String graph_edge_ref = it.next(); String line_ref = myrc.graphedgeref_to_link.get(graph_edge_ref);\n int fm_i = digraph.linkRefFm(graph_edge_ref);\n int to_i = digraph.linkRefTo(graph_edge_ref);\n String other_dir = digraph.getLinkRef(to_i,fm_i);\n if (myrc.graphedgeref_to_link.containsKey(other_dir)) { to_keep.addAll(myrc.link_counter_context.getBundles(line_ref)); }\n }\n\n // Add the no mapping set and push it to the RTParent\n to_keep.addAll(getRTComponent().getNoMappingSet()); getRTParent().push(getRTParent().getRootBundles().subset(to_keep));\n }", "public static ConnectionMap backtrack(final ConnectionMap map, int index) {\r\n\t\t// Returns null if first variable has no possible values\r\n\t\tif (map.domains.get(0).size()==0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// If the possible values for the index are null step back\r\n\t\tif (map.domains.get(index).size()==0) {\r\n\t\t\t//System.out.println(\"BACKTRACK!\");\r\n\t\t\tArrayList<Integer> newRow = new ArrayList<Integer>();\r\n\t\t\tfor (int k = 0; k < map.numColors; k++) {\r\n\t\t\t\tnewRow.add(k);\r\n\t\t\t}\r\n\t\t\tmap.domains.set(index, newRow);\r\n\t\t\tmap.domains.get(index-1).remove(0);\r\n\t\t\tBacktrackSearch.backtrack(map, index-1);\r\n\t\t}\r\n\t\t// Loops through the possible values for the index\r\n\t\tfor (int j=index; j>=0; j--) {\r\n\t\t\tif(map.connections[index][j]==1 && map.domains.get(index).size()>0) {\r\n\t\t\t\tArrayList<Integer> neighbor = map.domains.get(j);\r\n\t\t\t\tif (neighbor.size() != 0) {\r\n\t\t\t\t\tmap.domains.get(index).remove(neighbor.get(0));\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// If the possible values for the index are null step back\r\n\t\t\tif (map.domains.get(index).size()==0) {\r\n\t\t\t\t//System.out.println(\"BACKTRACK!\");\r\n\t\t\t\tArrayList<Integer> newRow = new ArrayList<Integer>();\r\n\t\t\t\tfor (int k = 0; k < map.numColors; k++) {\r\n\t\t\t\t\tnewRow.add(k);\r\n\t\t\t\t}\r\n\t\t\t\tmap.domains.set(index, newRow);\r\n\t\t\t\tmap.domains.get(index-1).remove(0);\r\n\t\t\t\tBacktrackSearch.backtrack(map, index-1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// If the index is not the last index step forward\r\n\t\tif (index < map.domains.size()-1) {\r\n\t\t\tBacktrackSearch.backtrack(map, index+1);\r\n\t\t}\r\n\t\t// Returns null if first variable has no possible values\r\n\t\tif (map.domains.get(0).size()==0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// Removes end of colors\r\n\t\tfor(int i = 0; i < map.domains.size(); i++) {\r\n\t\t\tfor(int j = 1; j < map.domains.get(i).size(); j++) {\r\n\t\t\t\tmap.domains.get(i).remove(j);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Returns map\r\n\t\treturn map;\t\r\n\t}", "@Test\n public void testVirtualLists() throws Exception {\n assertReducesTo(\"2 dup 1 at.\", \"2 dup\");\n }", "@Mapper(componentModel = \"spring\", uses = {ReferenceMapper.class, })\npublic interface ChapterMapper extends EntityMapper <ChapterDTO, Chapter> {\n\n @Mapping(source = \"reference.id\", target = \"referenceId\")\n ChapterDTO toDto(Chapter chapter); \n\n @Mapping(source = \"referenceId\", target = \"reference\")\n Chapter toEntity(ChapterDTO chapterDTO); \n default Chapter fromId(Long id) {\n if (id == null) {\n return null;\n }\n Chapter chapter = new Chapter();\n chapter.setId(id);\n return chapter;\n }\n}", "@Test\n\tpublic void testFwdInfReasonerRewrites_Bug717() throws Exception {\n\t\timportProofSerializationProofs();\n\n\t\tfinal IPRRoot prFile = getProofRoot(\"exF\");\n\t\tfinal IPRProof proof = prFile.getProof(\"oldExF\");\n\n\t\t// a IllegalStateException is thrown when the bug is present:\n\t\tfinal IProofTree proofTree = proof.getProofTree(null);\n\n\t\t// ensure that the proof rule is deserialized:\n\t\tfinal IProofTreeNode root = proofTree.getRoot();\n\t\tassertFalse(root.isOpen());\n\t\tfinal IProofRule rule = root.getRule();\n\t\tassertEquals(SequentProver.PLUGIN_ID + \".exF\", rule.generatedBy().getReasonerID());\n\t\tassertEquals(3, rule.getAntecedents()[0].getHypActions().size());\n\t}", "@Override\r\n public NavigableMap<K, V> headMap(final K toKey, final boolean inclusive) {\n return null;\r\n }", "public Output<TInt64> remapping() {\n return remapping;\n }", "public Hashtable getRemappedValues() throws Exception;", "public void resetTransforms() { \r\n transforms2 = new HashMap<BundlesDT.DT,Map<String,Map<String,String>>>(); \r\n transforms2.put(BundlesDT.DT.IPv4, new HashMap<String,Map<String,String>>());\r\n transforms2.put(BundlesDT.DT.IPv4CIDR, new HashMap<String,Map<String,String>>());\r\n if (transforms.containsKey(BundlesDT.DT.IPv4)) {\r\n Iterator<String> it = transforms.get(BundlesDT.DT.IPv4).keySet().iterator();\r\n while (it.hasNext()) transforms2.get(BundlesDT.DT.IPv4).put(it.next(), new HashMap<String,String>());\r\n }\r\n if (transforms.containsKey(BundlesDT.DT.IPv4CIDR)) {\r\n sorted_cidr_trans = new HashMap<String,CIDRRec[]>();\r\n Iterator<String> it = transforms.get(BundlesDT.DT.IPv4CIDR).keySet().iterator();\r\n while (it.hasNext()) {\r\n String trans = it.next();\r\n transforms2.get(BundlesDT.DT.IPv4).put(trans, new HashMap<String,String>());\r\n transforms2.get(BundlesDT.DT.IPv4CIDR).put(trans, new HashMap<String,String>());\r\n\tCIDRRec recs[] = new CIDRRec[transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).keySet().size()];\r\n\tIterator<String> it_cidr = transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).keySet().iterator();\r\n\tfor (int i=0;i<recs.length;i++) {\r\n\t String cidr = it_cidr.next();\r\n\t recs[i] = new CIDRRec(cidr,transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).get(cidr));\r\n }\r\n\tArrays.sort(recs);\r\n\tsorted_cidr_trans.put(trans,recs);\r\n }\r\n }\r\n }", "@Override\n\tpublic State eStateAbsMapping(State state, QNode qNode) {\n\t\treturn null;\n\t}", "public void clearAllDefinitionMappings()\n {\n _lovItemMappings.clear();\n }", "private String replaceIntermediateObjectWithRel(Context context, String strOldRelId ,String strNewRelId ,String strNewRelIdSide,Map attributeMap) throws Exception {\r\n\r\n\t\tString strNewConnId=\"\";\r\n\t\tboolean isRelToRel = true;\r\n\t\tboolean isFrom = true;\r\n\r\n\t\ttry{\r\n\r\n\t\tDomainRelationship domRel = new DomainRelationship(strOldRelId);\r\n //Get the attributes on Relationship\r\n /*Map attributeMap = new HashMap();\r\n attributeMap = domRel.getAttributeMap(context,true);*/\r\n\r\n\r\n\t\t//Get the \"Type\" of rel\r\n\t\tStringList slRelSelects = new StringList(1);\r\n slRelSelects.addElement(DomainRelationship.SELECT_TYPE);\r\n\r\n if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"from\")){\r\n \t//New Rel replaces FL/GBOM which is on \"from\" side of Old Rel hence we query now \"to\" side of Old Rel\r\n \tslRelSelects.add(\"to.id\");\r\n slRelSelects.add(\"torel.id\");\r\n\r\n }else if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"to\")){\r\n \t//New Rel replaces FL/GBOM which is on \"to\" side of Old Rel hence we query now \"from\" side of Old Rel\r\n \tslRelSelects.add(\"from.id\");\r\n slRelSelects.add(\"fromrel.id\");\r\n }\r\n\r\n Hashtable htRelData = domRel.getRelationshipData(context,slRelSelects);\r\n\r\n String strFromSideOfRel =\"\";\r\n String strToSideOfRel =\"\";\r\n String strRelId =\"\";\r\n String strObjId =\"\";\r\n\r\n StringList slRelTypes = (StringList) htRelData.get(DomainRelationship.SELECT_TYPE);\r\n String strRelType = (String) slRelTypes.get(0);\r\n RelationshipType RelType = new RelationshipType(strRelType);\r\n\r\n\r\n if((StringList) htRelData.get(\"from.id\")!=null || ((StringList)htRelData.get(\"fromrel.id\"))!=null ){\r\n\r\n \tStringList slFromSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"from.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"from.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\t//isFrom = false;\r\n \t\tstrObjId = strFromSideOfRel;\r\n\r\n\r\n \t}else if(!((StringList)htRelData.get(\"fromrel.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"fromrel.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tstrRelId = strFromSideOfRel;\r\n \t\tisFrom = false;\r\n \t}\r\n }\r\n\r\n if((StringList) htRelData.get(\"to.id\")!=null || ((StringList)htRelData.get(\"torel.id\"))!=null ){\r\n\r\n \tStringList slToSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"to.id\")).isEmpty()){\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"to.id\");\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\tstrObjId = strToSideOfRel;\r\n \t\tisFrom = false;\r\n \t}else if(!((StringList)htRelData.get(\"torel.id\")).isEmpty()){\r\n\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"torel.id\");\r\n\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n \t\tstrRelId =strToSideOfRel;\r\n \t\t//isFrom = false;\r\n \t}\r\n }\r\n\r\n\r\n if(isRelToRel){\r\n\r\n strNewConnId = connectRelationship(context, RelType, strRelId,strNewRelId, isFrom);\r\n\r\n }else{\r\n\r\n \tstrNewConnId = connectObject(context, RelType, strObjId,strNewRelId, isFrom);\r\n }\r\n\r\n\t\t\t StringList relDataSelects = new StringList();\r\n\t\t\t relDataSelects.addElement(\"frommid.id\");\r\n\t\t\t relDataSelects.addElement(\"tomid.id\");\r\n\r\n\t\t\t Map gbomRelData = domRel.getRelationshipData(context,relDataSelects);\r\n\t\t\t StringList sLFrommid = new StringList();\r\n\t\t\t StringList sLTomid = new StringList();\r\n\r\n\t\t\t sLFrommid = (StringList) gbomRelData.get(\"frommid.id\");\r\n\t\t\t if(!sLFrommid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLFrommid.size();i++){\r\n\r\n\t\t\t\t\tString strFromMid = (String)sLFrommid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strFromMid,strNewConnId,true);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\r\n\t\t\t sLTomid = (StringList) gbomRelData.get(\"tomid.id\");\r\n\t\t\t if(!sLTomid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLTomid.size();i++){\r\n\r\n\t\t\t\t\tString strToMid = (String)sLTomid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strToMid,strNewConnId,false);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\tDomainRelationship domNewConnId = new DomainRelationship(strNewConnId);\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewConnId +\"\\n\");\r\n\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this rel id :: \"+ attributeMap +\"\\n\\n\");\r\n\t domNewConnId.setAttributeValues(context, attributeMap);\r\n\r\n\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn strNewConnId;\r\n\t}", "@Mapper(componentModel = \"spring\", uses = {TipoDocumentoMapper.class, GeneroMapper.class, AseguradoraMapper.class, GrupoEtnicoMapper.class, RegimenMapper.class, MunicipioMapper.class, TipoResidenciaMapper.class})\npublic interface PacienteMapper extends EntityMapper<PacienteDTO, Paciente> {\n\n @Mapping(source = \"tipoDocumento.id\", target = \"tipoDocumentoId\")\n @Mapping(source = \"tipoDocumento.nombre\", target = \"tipoDocumentoNombre\")\n @Mapping(source = \"genero.id\", target = \"generoId\")\n @Mapping(source = \"genero.nombre\", target = \"generoNombre\")\n @Mapping(source = \"aseguradora.id\", target = \"aseguradoraId\")\n @Mapping(source = \"aseguradora.nombre\", target = \"aseguradoraNombre\")\n @Mapping(source = \"grupoEtnico.id\", target = \"grupoEtnicoId\")\n @Mapping(source = \"grupoEtnico.nombre\", target = \"grupoEtnicoNombre\")\n @Mapping(source = \"regimen.id\", target = \"regimenId\")\n @Mapping(source = \"regimen.nombre\", target = \"regimenNombre\")\n @Mapping(source = \"municipio.id\", target = \"municipioId\")\n @Mapping(source = \"municipio.nombre\", target = \"municipioNombre\")\n @Mapping(source = \"tipoResidencia.id\", target = \"tipoResidenciaId\")\n @Mapping(source = \"tipoResidencia.nombre\", target = \"tipoResidenciaNombre\")\n PacienteDTO toDto(Paciente paciente);\n\n @Mapping(target = \"aplicacions\", ignore = true)\n @Mapping(target = \"acudientes\", ignore = true)\n @Mapping(source = \"tipoDocumentoId\", target = \"tipoDocumento\")\n @Mapping(source = \"generoId\", target = \"genero\")\n @Mapping(source = \"aseguradoraId\", target = \"aseguradora\")\n @Mapping(source = \"grupoEtnicoId\", target = \"grupoEtnico\")\n @Mapping(source = \"regimenId\", target = \"regimen\")\n @Mapping(source = \"municipioId\", target = \"municipio\")\n @Mapping(source = \"tipoResidenciaId\", target = \"tipoResidencia\")\n Paciente toEntity(PacienteDTO pacienteDTO);\n\n default Paciente fromId(Long id) {\n if (id == null) {\n return null;\n }\n Paciente paciente = new Paciente();\n paciente.setId(id);\n return paciente;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {ArquivoAnexoMapper.class})\npublic interface ProcessoAnexoMapper{\n\n ProcessoAnexoDTO processoAnexoToProcessoAnexoDTO(ProcessoAnexo processoAnexo);\n\n List<ProcessoAnexoDTO> processoAnexosToProcessoAnexoDTOs(List<ProcessoAnexo> processoAnexos);\n\n @Mapping(target = \"processo\", ignore = true)\n ProcessoAnexo processoAnexoDTOToProcessoAnexo(ProcessoAnexoDTO processoAnexoDTO);\n\n List<ProcessoAnexo> processoAnexoDTOsToProcessoAnexos(List<ProcessoAnexoDTO> processoAnexoDTOs);\n\n\n}", "@Override\n\tpublic void preBacktrack() {\n\t\t\n\t}", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingNullReferences() {\n }", "private void updateOriginalEdgesInMirror() {\n for (Edge edge : originalGraph.edges()) {\n if (!directEdgeMap.containsKey(edge)) {\n constructMirrorEdge(edge);\n }\n MirrorEdge mirrorEdge = directEdgeMap.get(edge);\n updateMirrorEdgeBends(edge, mirrorEdge);\n updateMirrorEdgeSegments(mirrorEdge);\n originalAttributesToMirror(edge);\n }\n }", "@Mapper(componentModel = \"spring\", uses = {HopDongMapper.class})\npublic interface GhiNoMapper extends EntityMapper<GhiNoDTO, GhiNo> {\n\n @Mapping(source = \"hopDong.id\", target = \"hopDongId\")\n GhiNoDTO toDto(GhiNo ghiNo);\n\n @Mapping(source = \"hopDongId\", target = \"hopDong\")\n GhiNo toEntity(GhiNoDTO ghiNoDTO);\n\n default GhiNo fromId(Long id) {\n if (id == null) {\n return null;\n }\n GhiNo ghiNo = new GhiNo();\n ghiNo.setId(id);\n return ghiNo;\n }\n}", "protected EnzymeModel fixPdbXrefs(EnzymeModel summary) {\n if (mm != null){\n // PDB xrefs for every ortholog in the summary:\n for (EnzymeAccession relSp : summary.getRelatedspecies()) {\n Collection<XRef> pdbXrefs = mm.getXrefs(MmDatabase.UniProt,\n relSp.getUniprotaccessions().get(0), MmDatabase.PDB);\n if (pdbXrefs != null){\n relSp.setPdbeaccession(getToIds(pdbXrefs));\n }\n }\n // TODO: fix also the default species?\n try {\n mm.closeMap();\n } catch (IOException e) {\n LOGGER.error(\"Unable to close the mega-map\", e);\n }\n }\n return summary;\n }", "@Override\n public boolean isMapped() {\n return false;\n }", "private void setUrlPrefixMappingToMap(String[] prefixArr)\n\t{\n\t\tif( prefixArr != null )\n\t\t{\n\t\t\tfor(String urlPrefix : prefixArr)\n \t{ \n\t\t\t\tif(urlPrefix.contains(DELIMITER))\n\t\t\t\t{\n\t \t\tString[] keyVal = urlPrefix.split(\"::\");\n\t \t\tString key \t\t= keyVal[0];\n\t \t\tString value \t= keyVal[1].trim();\n\t \t\tlog.info(\"REST SERVICE Key------->>> \"+key);\n\t \t\tlog.info(\"REST SERVICE Value------->>> \"+value);\n\t \t\tappurlMap.put(key , value);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlog.warn(\"NO DELEMETERS PROVIDED FOR REDIRECT SERVICE URL -------->>> \");\n\t\t\t\t}\n \t}\n\t\t}\n\t}", "private OwBootstrapToIdMapping()\r\n {\r\n\r\n }", "@Override\n public String getRefMapperConfig() {\n return null;\n }", "@Override\r\n public NavigableMap<K, V> navigableKeySet() {\n return null;\r\n }", "@Override\n\tpublic State qStateAbsMapping(State state, QNode qNode) {\n\t\treturn null;\n\t}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface AlterationDisplayTypeMapper {\n\n AlterationDisplayTypeDTO alterationDisplayTypeToAlterationDisplayTypeDTO(AlterationDisplayType alterationDisplayType);\n\n List<AlterationDisplayTypeDTO> alterationDisplayTypesToAlterationDisplayTypeDTOs(List<AlterationDisplayType> alterationDisplayTypes);\n\n @Mapping(target = \"alterations\", ignore = true)\n AlterationDisplayType alterationDisplayTypeDTOToAlterationDisplayType(AlterationDisplayTypeDTO alterationDisplayTypeDTO);\n\n List<AlterationDisplayType> alterationDisplayTypeDTOsToAlterationDisplayTypes(List<AlterationDisplayTypeDTO> alterationDisplayTypeDTOs);\n}", "private void makeInverse() {\n if (_map != null) {\n for (Map.Entry<Integer, Integer> e : _map.entrySet()) {\n _inverse.put(e.getValue(), e.getKey());\n }\n }\n }", "@Mapper(componentModel = \"spring\", uses = {ArchiveMapper.class, })\npublic interface IndependentCandidateMapper extends EntityMapper <IndependentCandidateDTO, IndependentCandidate> {\n\n @Mapping(source = \"image.id\", target = \"imageId\")\n IndependentCandidateDTO toDto(IndependentCandidate independentCandidate); \n\n @Mapping(source = \"imageId\", target = \"image\")\n IndependentCandidate toEntity(IndependentCandidateDTO independentCandidateDTO); \n default IndependentCandidate fromId(Long id) {\n if (id == null) {\n return null;\n }\n IndependentCandidate independentCandidate = new IndependentCandidate();\n independentCandidate.setId(id);\n return independentCandidate;\n }\n}", "private RelationMapping createRelationMapping(RoleSchema role, EJB ejb, Table table, Table relatedTable) throws DeploymentException {\n Map columnNameMapping = role.getPkMapping();\n LinkedHashMap ejbFieldMappings = new LinkedHashMap();\n LinkedHashMap columnMappings = new LinkedHashMap();\n for (Iterator iterator = table.getPrimaryKeyFields().iterator(); iterator.hasNext();) {\n Column column = (Column) iterator.next();\n \n // -- column names\n String columnName = column.getPhysicalName();\n String relatedColumnName = (String) columnNameMapping.get(columnName);\n if (null == relatedColumnName) {\n throw new DeploymentException(\"Role \" + role + \" is misconfigured: primary key column [\" +\n columnName + \"] is not mapped to a foreign key.\");\n }\n \n // -- field Names\n String ejbFieldName = column.getName();\n String relatedEjbFieldName = relatedColumnName;\n for (Iterator iter = relatedTable.getAttributes().iterator(); iter.hasNext();) {\n Column relatedTableColumn = (Column) iter.next();\n if (relatedTableColumn.getPhysicalName().equals(relatedColumnName)) {\n relatedEjbFieldName = relatedTableColumn.getName();\n break;\n }\n }\n \n // -- create related ejb field\n FKField relatedEjbField = new FKField(relatedEjbFieldName, relatedColumnName, column.getType());\n ejbFieldMappings.put(ejb.getAttribute(ejbFieldName), relatedEjbField);\n \n \n // -- create related column\n FKColumn relatedcolumn = new FKColumn(relatedEjbFieldName, relatedColumnName, column.getType());\n if (column.isSQLTypeSet()) {\n relatedcolumn.setSQLType(column.getSQLType());\n }\n if (column.isTypeConverterSet()) {\n relatedcolumn.setTypeConverter(column.getTypeConverter());\n }\n columnMappings.put(column, relatedcolumn);\n }\n return new RelationMapping(ejbFieldMappings, columnMappings);\n }", "public interface Remapper {\n\n\t/**\n\t * Reinitialize the remapper, clearing all accumulated requests.\n\t * @throws Exception if unable to initialize a new request.\n\t */\n\tpublic void clear() throws Exception;\n\n\t/**\n\t * Get the original date corresponding to a remapped value for a patient and element.\n\t * @param seqid an identifier for the remapping request for this value; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param siteid the site ID for the site on which the patient ID was created.\n\t * For trials using globally created patient IDs, all the site IDs can be set to\n\t * the empty string (\"\").\n\t * @param ptid the original patient ID.\n\t * @param tag the DICOM element tag string (gggg,eeee).\n\t * @param date the remapped date.\n\t * @param base the base date used as the starting date for offsetting dates.\n\t */\n\tpublic void getOriginalDate(\n\t\t\t\t\tint seqid, String siteid, String ptid,\n\t\t\t\t\tString tag, String date, String base);\n\n\t/**\n\t * Request a replacement for a date.\n\t * @param seqid an identifier for the remapping request for this value; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param siteid the site ID for the site on which the patient ID was created.\n\t * For trials using globally created patient IDs, all the site IDs can be set to\n\t * the empty string (\"\").\n\t * @param ptid the patient ID.\n\t * @param tag the DICOM element tag string (gggg,eeee).\n\t * @param date the date value of the element.\n\t * @param base the base date to use as the starting date for offsetting dates.\n\t */\n\tpublic void getOffsetDate(int seqid, String siteid, String ptid,\n\t\t\t\t\t\t\t\tString tag, String date, String base);\n\n\t/**\n\t * Request a replacement for a DICOM ID element.\n\t * @param seqid an identifier for the remapping request for this value; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param tag the DICOM element tag string (gggg,eeee).\n\t * @param gid the ID value to be replaced.\n\t */\n\tpublic void getGenericID(int seqid, String tag, String gid);\n\n\t/**\n\t * Request an accession number.\n\t * @param seqid an identifier for the remapping request for this value; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param tag the DICOM element tag string (gggg,eeee).\n\t * @param gid the value to be replaced.\n\t */\n\tpublic void getAccessionNumber(int seqid, String tag, String gid);\n\n\t/**\n\t * Request an integer which has not been returned before.\n\t */\n\tpublic void getInteger(int seqid);\n\n\t/**\n\t * Request a replacement for a UID.\n\t * @param seqid an identifier for the remapping request for this value; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param prefix the UID root to serve as a prefix for the replacement.\n\t * @param uid the UID to be replaced.\n\t */\n\tpublic void getUID(int seqid, String prefix, String uid);\n\n\t/**\n\t * Request a new UID.\n\t * @param seqid an identifier for the remapping request; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param prefix the UID root to serve as a prefix for the replacement.\n\t */\n\tpublic void getUID(int seqid, String prefix);\n\n\t/**\n\t * Get the remapped UID associated with an original UID.\n\t * @param seqid an identifier for the request; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param uid the remapped UID.\n\t */\n\tpublic void getRemappedUID(int seqid, String uid);\n\n\t/**\n\t * Get the original UID associated with a remapped UID.\n\t * @param seqid an identifier for the request; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param uid the original UID.\n\t */\n\tpublic void getOriginalUID(int seqid, String uid);\n\n\t/**\n\t * Request a replacement for a DICOM Patient ID.\n\t * @param seqid an identifier for the remapping request for this value; used\n\t * as the key in the results hashtable, so it must be unique.\n\t * @param siteid the site ID for the site on which the patient ID was created.\n\t * For trials using globally created patient IDs, all the site IDs can be set to\n\t * the empty string (\"\").\n\t * @param ptid the patient ID.\n\t * @param prefix the prefix of the new Patient ID.\n\t * @param first the starting value of the sequentially increasing integer\n\t * used to generate IDs.\n\t * @param width the minimum width of the integer part of the Patient ID, with\n\t * leading zeroes supplied if the integer does not require the full field width.\n\t * @param suffix the suffix of the new Patient ID.\n\t */\n\tpublic void getPtID(int seqid, String siteid, String ptid,\n\t\t\t\t\t\t\tString prefix, int first, int width, String suffix);\n\n\t/**\n\t * Get the current number of values for which remapping requests have been received.\n\t * @return the number of remapping requests.\n\t */\n\tpublic int getCount();\n\n\t/**\n\t * Get the results of the remapping request.\n\t * @return Hashtable containing the remapped values, indexed by the seqid values\n\t * in the requests, or null if an error occurred in the remapping request.\n\t * @throws Exception if unable to communicate with the remapping database.\n\t */\n\tpublic Hashtable getRemappedValues() throws Exception;\n\n}", "@Mapper(componentModel = \"spring\", uses = {OperationMapper.class, PecStatusChangeMatrixMapper.class, StatusPecMapper.class,})\npublic interface RaisonPecMapper extends EntityMapper <RaisonPecDTO, RaisonPec> {\n\n @Mapping(source = \"operation.id\", target = \"operationId\")\n @Mapping(source = \"operation.label\", target = \"operationLabel\")\n @Mapping(source = \"statusPec.id\", target = \"statusPecId\")\n @Mapping(source = \"statusPec.label\", target = \"statusPecLabel\")\n\n \n @Mapping(source = \"pecStatusChangeMatrix.id\", target = \"pecStatusChangeMatrixId\")\n @Mapping(source = \"pecStatusChangeMatrix.label\", target = \"pecStatusChangeMatrixLabel\")\n \n RaisonPecDTO toDto(RaisonPec raisonPec); \n\n @Mapping(source = \"operationId\", target = \"operation\")\n\n\n\n @Mapping(source = \"statusPecId\", target = \"statusPec\")\n\n \n @Mapping(source = \"pecStatusChangeMatrixId\", target = \"pecStatusChangeMatrix\")\n\n RaisonPec toEntity(RaisonPecDTO raisonPecDTO); \n default RaisonPec fromId(Long id) {\n if (id == null) {\n return null;\n }\n RaisonPec raisonPec = new RaisonPec();\n raisonPec.setId(id);\n return raisonPec;\n }\n}", "@Override\n public void onRelationshipMapLoaded() {\n }", "@Override\n public List<String> getNextMappings(NextGroup nextGroup) {\n return Collections.emptyList();\n }", "@Override\n public List<String> getNextMappings(NextGroup nextGroup) {\n return Collections.emptyList();\n }", "@Override\r\n\tpublic boolean needDealMapper() {\n\t\treturn false;\r\n\t}", "protected void buildMappings(android.icu.impl.coll.CollationData r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.icu.impl.coll.CollationDataBuilder.buildMappings(android.icu.impl.coll.CollationData):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.buildMappings(android.icu.impl.coll.CollationData):void\");\n }", "private void f(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 1;\n r2 = F;\n r7.y = r8;\n r0 = r7.m;\n r0 = r0.entrySet();\n r3 = r0.iterator();\n L_0x000f:\n r0 = r3.hasNext();\n if (r0 == 0) goto L_0x004a;\n L_0x0015:\n r0 = r3.next();\n r0 = (java.util.Map.Entry) r0;\n r1 = r0.getValue();\n r1 = (java.util.List) r1;\n r4 = r1.size();\t Catch:{ RuntimeException -> 0x0077 }\n if (r4 != r6) goto L_0x0043;\n L_0x0027:\n r4 = J;\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 28;\n r4 = r4[r5];\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 0;\n r5 = r1.get(r5);\t Catch:{ RuntimeException -> 0x0079 }\n r4 = r4.equals(r5);\t Catch:{ RuntimeException -> 0x0079 }\n if (r4 == 0) goto L_0x0043;\n L_0x0038:\n r4 = r7.e;\t Catch:{ RuntimeException -> 0x007b }\n r0 = r0.getKey();\t Catch:{ RuntimeException -> 0x007b }\n r4.add(r0);\t Catch:{ RuntimeException -> 0x007b }\n if (r2 == 0) goto L_0x0048;\n L_0x0043:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007b }\n r0.addAll(r1);\t Catch:{ RuntimeException -> 0x007b }\n L_0x0048:\n if (r2 == 0) goto L_0x000f;\n L_0x004a:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007d }\n r1 = J;\t Catch:{ RuntimeException -> 0x007d }\n r2 = 29;\n r1 = r1[r2];\t Catch:{ RuntimeException -> 0x007d }\n r0 = r0.remove(r1);\t Catch:{ RuntimeException -> 0x007d }\n if (r0 == 0) goto L_0x0065;\n L_0x0058:\n r0 = B;\t Catch:{ RuntimeException -> 0x007d }\n r1 = java.util.logging.Level.WARNING;\t Catch:{ RuntimeException -> 0x007d }\n r2 = J;\t Catch:{ RuntimeException -> 0x007d }\n r3 = 30;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x007d }\n r0.log(r1, r2);\t Catch:{ RuntimeException -> 0x007d }\n L_0x0065:\n r1 = r7.G;\n r0 = r7.m;\n r2 = java.lang.Integer.valueOf(r6);\n r0 = r0.get(r2);\n r0 = (java.util.Collection) r0;\n r1.addAll(r0);\n return;\n L_0x0077:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0079 }\n L_0x0079:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x007b }\n L_0x007b:\n r0 = move-exception;\n throw r0;\n L_0x007d:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.f(java.lang.String):void\");\n }", "private SymbolTable<String, SymbolData> transform(SymbolTable<String, SymbolData> symbolTable) throws Exception {\n for (String name : graph.reverseTopologicalSort()) {\n //log.debug(name);\n SymbolData symbolData = symbolTable.get(name);\n String json = symbolData.getJson();\n //log.debug(json);\n while(true) {\n Optional<Position> position = referenceDetector.detectFirstReference(json);\n //log.debug(json + position.isPresent());\n if(!position.isPresent()) break;\n Position pos = position.get();\n String jsonTobeReplaced = symbolTable.get(pos.getReferenceName().substring(1)).getJson();\n //log.debug(jsonTobeReplaced);\n json = json.substring(0, pos.getFrom())+jsonTobeReplaced+json.substring(pos.getTo());\n }\n log.debug(json);\n symbolData.setJson(json);\n }\n\n return symbolTable;\n }", "@Override\r\n\tprotected void loadUniqueIndexMap(TestBooking entiy) {\n\t\t\r\n\t}", "private void populatePrefixMappings(OntModel model) {\n\t\tMap<String, String> pm = model.getNsPrefixMap();\n\t\tneededPrefixesForQueries = new String[pm.keySet().size()];\n\t\tint i=0;\n\t\tfor(String key:pm.keySet())\n\t\t{\n\t\t\tneededPrefixesForQueries[i] = key + \": <\" + pm.get(key) + \">\";\n\t\t\ti++;\n\t\t}\n\t}", "Mapper<T, T2> relate(Customizable customizable);", "void reconstruct(HashMap<Integer, Vertex> h, Vertex next) {\n while (h.containsKey(next.toIdentifier())) {\n next.path = true;\n next = h.get(next.toIdentifier());\n }\n }", "void reconstruct(HashMap<Integer, Vertex> h, Vertex next) {\n while (h.containsKey(next.toIdentifier())) {\n next.path = true;\n next = h.get(next.toIdentifier());\n }\n }", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingNonPersistentFields() {\n }", "private void reLoadIndexesFromFileToIndexMap(File file) throws IOException {\n BufferedReader reader = new BufferedReader(new FileReader(file));\n for (String line = reader.readLine(); line != null; line = reader\n .readLine()) {\n String[] termIndex = line.split(\" \");\n String key = termIndex[0];\n LinkedList<TermPositions> value = new LinkedList<>();\n String postingList = termIndex[1];\n // split the posting lists 1:1,2,4;2:4\n String[] subPostings = postingList.split(\";\");\n for (String posting : subPostings) {\n String[] docPosting = posting.split(\":\");\n int docId = Integer.parseInt(docPosting[0]);\n String[] positions = docPosting[1].split(\",\");\n LinkedList<Integer> positionsList = new LinkedList<>();\n for (String position : positions) {\n positionsList.add(Integer.parseInt(position));\n }\n TermPositions termPositions = new TermPositions(docId, positionsList);\n value.add(termPositions);\n }\n indexMap.put(key, value);\n\n }\n\n }", "void onRemap(String id);", "MapType map(List<ReferenceOrderedDatum> rodData, char ref, LocusContext context);", "@Mapper(componentModel = \"spring\", uses = {AdGameMapper.class})\npublic interface AdChoiseMapper extends EntityMapper<AdChoiseDTO, AdChoise> {\n\n @Mapping(source = \"adGame.id\", target = \"adGameId\")\n AdChoiseDTO toDto(AdChoise adChoise); \n\n @Mapping(source = \"adGameId\", target = \"adGame\")\n @Mapping(target = \"corrects\", ignore = true)\n @Mapping(target = \"possiblities\", ignore = true)\n AdChoise toEntity(AdChoiseDTO adChoiseDTO);\n\n default AdChoise fromId(Long id) {\n if (id == null) {\n return null;\n }\n AdChoise adChoise = new AdChoise();\n adChoise.setId(id);\n return adChoise;\n }\n}", "private void setupRoutingKeys(List<EsbEventContainer> esbEventContainers) {\r\n\r\n String regexRoutingKeyReplacementDefinition = GrouperLoaderConfig.retrieveConfig().propertyValueString(\"changeLog.consumer.\"\r\n + consumerName + \".regexRoutingKeyReplacementDefinition\");\r\n logObjectIfNotNull(debugMapOverall, \"regexRoutingKeyReplacementDefinition\", regexRoutingKeyReplacementDefinition);\r\n\r\n if (StringUtils.isBlank(regexRoutingKeyReplacementDefinition)) {\r\n return;\r\n }\r\n \r\n boolean replaceColonsWithPeriods = GrouperLoaderConfig.retrieveConfig().propertyValueBoolean(\"changeLog.consumer.\"\r\n + consumerName + \".replaceRoutingKeyColonsWithPeriods\", true);\r\n\r\n for (EsbEventContainer esbEventContainer : GrouperUtil.nonNull(esbEventContainers)) {\r\n\r\n // for logging\r\n debugMapOverall.put(\"currentSequenceNumber\", esbEventContainer.getSequenceNumber());\r\n\r\n String routingKey = null;\r\n String groupName = esbEventContainer.getEsbEvent().getGroupName();\r\n \r\n if (StringUtils.isNotBlank(groupName)) {\r\n \r\n if (StringUtils.isNotBlank(regexRoutingKeyReplacementDefinition)) {\r\n \r\n Map<String, Object> substituteMap = new HashMap<String, Object>();\r\n substituteMap.put(\"groupName\", groupName);\r\n \r\n routingKey = GrouperUtil.substituteExpressionLanguage(regexRoutingKeyReplacementDefinition, substituteMap, true, false, false);;\r\n \r\n if (replaceColonsWithPeriods) {\r\n routingKey = routingKey.replaceAll(\":\", \".\");\r\n }\r\n\r\n esbEventContainer.setRoutingKey(routingKey);\r\n }\r\n }\r\n }\r\n \r\n // for logging\r\n debugMapOverall.put(\"currentSequenceNumber\", null);\r\n\r\n }", "private void createLookup() {\r\n\t\tcreateLooupMap(lookupMap, objectdef, objectdef.getName());\r\n\t\tcreateChildIndex(childIndex, objectdef, objectdef.getName());\r\n\r\n\t}", "@Test\n\tpublic void testAbstractManualRewrites_Bug717() throws Exception {\n\t\timportProofSerializationProofs();\n\n\t\tfinal IPRRoot prFile = getProofRoot(\"partitionRewrite\");\n\t\tfinal IPRProof proof = prFile.getProof(\"oldPartitionRewrite\");\n\n\t\t// a IllegalStateException is thrown when the bug is present:\n\t\tfinal IProofTree proofTree = proof.getProofTree(null);\n\n\t\t// ensure that the proof rule is deserialized:\n\t\tfinal IProofTreeNode root = proofTree.getRoot();\n\t\tassertFalse(root.isOpen());\n\t\tfinal IProofRule rule = root.getRule();\n\t\tassertEquals(SequentProver.PLUGIN_ID + \".partitionRewrites\", rule.generatedBy().getReasonerID());\n\t\tassertEquals(3, rule.getAntecedents()[0].getHypActions().size());\n\t}", "public Reversal() {\n\t\tsuper();\n\t}", "@Override\n public String mapping() {\n return StringUtils.lines(\n \"foo.bar.Baz -> foo.bar.Baz:\", \" java.lang.Object f1 -> a\", \" java.lang.String f2 -> a\");\n }", "@Test\n public void shouldIgnorePartialAutoMappingBehavior_ExternalNestedResultMap() {\n AutomappingTest.sqlSessionFactory.getConfiguration().setAutoMappingBehavior(PARTIAL);\n SqlSession sqlSession = AutomappingTest.sqlSessionFactory.openSession();\n try {\n Mapper mapper = sqlSession.getMapper(Mapper.class);\n User user = mapper.getUserWithPets_External(2);\n Assert.assertEquals(Integer.valueOf(2), user.getId());\n Assert.assertEquals(\"User2\", user.getName());\n Assert.assertNull(\"should not inherit auto-mapping\", user.getPets().get(0).getPetName());\n Assert.assertEquals(\"John\", user.getPets().get(0).getBreeder().getBreederName());\n } finally {\n sqlSession.close();\n }\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface Record25HerfinancieeringMapper extends EntityMapper<Record25HerfinancieeringDTO, Record25Herfinancieering> {\n\n\n\n default Record25Herfinancieering fromId(Long id) {\n if (id == null) {\n return null;\n }\n Record25Herfinancieering record25Herfinancieering = new Record25Herfinancieering();\n record25Herfinancieering.setId(id);\n return record25Herfinancieering;\n }\n}", "@Override\n public void retrack() {\n }", "private void reverseLookupC_Location_ID() throws Exception\r\n\t{\r\n\t\tStringBuilder sql = new StringBuilder();\r\n\t\tString msg = new String();\r\n\t\tint no = 0;\r\n\r\n\t\t//Reverse Loog up C_Location_ID From JP_Location_Label\r\n\t\tmsg = Msg.getMsg(getCtx(), \"Matching\") + \" : \" + Msg.getElement(getCtx(), \"C_Location_ID\")\r\n\t\t+ \" - \" + Msg.getMsg(getCtx(), \"MatchFrom\") + \" : \" + Msg.getElement(getCtx(), \"JP_Location_Label\") ;\r\n\t\tsql = new StringBuilder (\"UPDATE I_LocationJP i \")\r\n\t\t\t\t.append(\"SET C_Location_ID=(SELECT C_Location_ID FROM C_Location p\")\r\n\t\t\t\t.append(\" WHERE i.JP_Location_Label= p.JP_Location_Label AND p.AD_Client_ID=i.AD_Client_ID) \")\r\n\t\t\t\t.append(\" WHERE i.C_Location_ID IS NULL AND JP_Location_Label IS NOT NULL\")\r\n\t\t\t\t.append(\" AND i.I_IsImported='N'\").append(getWhereClause());\r\n\t\ttry {\r\n\t\t\tno = DB.executeUpdateEx(sql.toString(), get_TrxName());\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.fine(msg +\"=\" + no + \":\" + sql);\r\n\t\t}catch(Exception e) {\r\n\t\t\tthrow new Exception(Msg.getMsg(getCtx(), \"Error\") + sql );\r\n\t\t}\r\n\r\n\t}", "private void rehash() {\n if (rehashing) {\n int newCapacity = 2 * capacity + 1;\n if (newCapacity > MAXIMUM_CAPACITY) {\n return;\n }\n\n objectCounter += 2;\n MapElement[] newMap = new MapElement[newCapacity]; \n \n MapElement me = null;\n MapElement t = null;\n MapElement next = null;\n int newIndex = 0;\n \n for (int index = 0; index < capacity; index++) {\n me = map[index];\n while (me != null) {\n next = me.getNext();\n newIndex = me.getKey() % newCapacity;\n if (newIndex < 0) {\n newIndex = -newIndex;\n }\n if (newMap[newIndex] == null) {\n // No element yet for this new index\n newMap[newIndex] = me;\n me.setNext(null);\n } else {\n // Hook the element into the beginning of the chain\n t = newMap[newIndex];\n newMap[newIndex] = me;\n me.setNext(t);\n }\n me = next;\n }\n }\n \n map = newMap;\n capacity = newCapacity;\n // Max. number of elements before a rehash occurs\n maxLoad = (int) (loadFactor * capacity + 0.5f);\n\n newMap = null;\n }\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TipoTelaMapper {\n\n @Mapping(source = \"direccionamientoTela.id\", target = \"direccionamientoTelaId\")\n @Mapping(source = \"direccionamientoTela.nombre\", target = \"direccionamientoTelaNombre\")\n TipoTelaDTO tipoTelaToTipoTelaDTO(TipoTela tipoTela);\n\n @Mapping(source = \"direccionamientoTelaId\", target = \"direccionamientoTela\")\n @Mapping(target = \"telaCrudas\", ignore = true)\n TipoTela tipoTelaDTOToTipoTela(TipoTelaDTO tipoTelaDTO);\n\n default DireccionamientoTela direccionamientoTelaFromId(Long id) {\n if (id == null) {\n return null;\n }\n DireccionamientoTela direccionamientoTela = new DireccionamientoTela();\n direccionamientoTela.setId(id);\n return direccionamientoTela;\n }\n}", "@Mapper(componentModel = \"spring\", uses = {ApplicationProspectMapper.class, NomineeMapper.class})\npublic interface AddressMapper extends EntityMapper<AddressDTO, Address> {\n\n @Mapping(source = \"applicationProspect.id\", target = \"applicationProspectId\")\n @Mapping(source = \"nominee.id\", target = \"nomineeId\")\n AddressDTO toDto(Address address);\n\n @Mapping(source = \"applicationProspectId\", target = \"applicationProspect\")\n @Mapping(source = \"nomineeId\", target = \"nominee\")\n Address toEntity(AddressDTO addressDTO);\n\n default Address fromId(Long id) {\n if (id == null) {\n return null;\n }\n Address address = new Address();\n address.setId(id);\n return address;\n }\n}", "private static void createTypeMap() {\n\n }", "private final java.lang.String B(java.util.Map<java.lang.String, ? extends java.lang.Object> r11) {\n /*\n r10 = this;\n r11 = r11.entrySet();\n r11 = (java.lang.Iterable) r11;\n r0 = new java.util.ArrayList;\n r0.<init>();\n r0 = (java.util.Collection) r0;\n r11 = r11.iterator();\n L_0x0011:\n r1 = r11.hasNext();\n if (r1 == 0) goto L_0x004e;\n L_0x0017:\n r1 = r11.next();\n r2 = r1;\n r2 = (java.util.Map.Entry) r2;\n r3 = r2.getKey();\n r3 = (java.lang.CharSequence) r3;\n r3 = r3.length();\n r4 = 1;\n r5 = 0;\n if (r3 <= 0) goto L_0x002e;\n L_0x002c:\n r3 = 1;\n goto L_0x002f;\n L_0x002e:\n r3 = 0;\n L_0x002f:\n if (r3 == 0) goto L_0x0047;\n L_0x0031:\n r2 = r2.getValue();\n r2 = r2.toString();\n r2 = (java.lang.CharSequence) r2;\n r2 = r2.length();\n if (r2 <= 0) goto L_0x0043;\n L_0x0041:\n r2 = 1;\n goto L_0x0044;\n L_0x0043:\n r2 = 0;\n L_0x0044:\n if (r2 == 0) goto L_0x0047;\n L_0x0046:\n goto L_0x0048;\n L_0x0047:\n r4 = 0;\n L_0x0048:\n if (r4 == 0) goto L_0x0011;\n L_0x004a:\n r0.add(r1);\n goto L_0x0011;\n L_0x004e:\n r0 = (java.util.List) r0;\n r1 = r0;\n r1 = (java.lang.Iterable) r1;\n r11 = \"&\";\n r2 = r11;\n r2 = (java.lang.CharSequence) r2;\n r3 = 0;\n r4 = 0;\n r5 = 0;\n r6 = 0;\n r11 = com.iqoption.core.connect.http.Http$urlEncode$2.baR;\n r7 = r11;\n r7 = (kotlin.jvm.a.b) r7;\n r8 = 30;\n r9 = 0;\n r11 = kotlin.collections.u.a(r1, r2, r3, r4, r5, r6, r7, r8, r9);\n r11 = r10.ft(r11);\n return r11;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.core.connect.http.c.B(java.util.Map):java.lang.String\");\n }", "@Mapper(componentModel = \"spring\", uses = {ProduitMapper.class, AchatLigneProformaMapper.class})\npublic interface AchatArticleLigneProformaMapper extends EntityMapper<AchatArticleLigneProformaDTO, AchatArticleLigneProforma> {\n\n @Mapping(source = \"produit.id\", target = \"produitId\")\n @Mapping(source = \"achatLigneProforma.id\", target = \"achatLigneProformaId\")\n AchatArticleLigneProformaDTO toDto(AchatArticleLigneProforma achatArticleLigneProforma);\n\n @Mapping(source = \"produitId\", target = \"produit\")\n @Mapping(source = \"achatLigneProformaId\", target = \"achatLigneProforma\")\n AchatArticleLigneProforma toEntity(AchatArticleLigneProformaDTO achatArticleLigneProformaDTO);\n\n default AchatArticleLigneProforma fromId(Long id) {\n if (id == null) {\n return null;\n }\n AchatArticleLigneProforma achatArticleLigneProforma = new AchatArticleLigneProforma();\n achatArticleLigneProforma.setId(id);\n return achatArticleLigneProforma;\n }\n}", "private static void parseRelations(){\n\t\tString[] number = relationReader.nextLine().trim().split(\"\\\\s++\");\n\t\tint numOfCoarse = Integer.parseInt(number[0]);\n\t\tint numOfAccurate = Integer.parseInt(number[1]);\n\t\t\n\t\tfor(int i=0; i<numOfCoarse; i++){\n\t\t\tString[] pair = relationReader.nextLine().trim().split(\"\\\\s++\");\n\t\t\tmap.put(Integer.parseInt(pair[0]), pair[1]);\n\t\t}\n\t\t\n\t\tfor(int i=0; i<numOfAccurate; i++){\n\t\t\tString[] pair = relationReader.nextLine().trim().split(\"\\\\s++\");\n//\t\t\tSystem.err.println(pair[0]);\n\t\t\tif(pair[1].equalsIgnoreCase(\"ROOT\"))\n\t\t\t\ttransform.put(pair[0], pair[1]);\n\t\t\telse\n\t\t\t\ttransform.put(pair[0], map.get(Integer.parseInt(pair[1])));\n\t\t}\n\t\t\n//\t\tSystem.err.println(map.size());\n//\t\tSystem.err.println(transform.size());\n\t\t\n\t\treturn;\n\t}", "public void setMappingTable(PathTreeDictionary mappingtable) { \n super.setMappingTable(mappingtable);\n }", "public void testSubgraphsDontPolluteDefaultPrefix() \n {\n String imported = \"http://imported#\", local = \"http://local#\";\n g1.getPrefixMapping().setNsPrefix( \"\", imported );\n poly.getPrefixMapping().setNsPrefix( \"\", local );\n assertEquals( null, poly.getPrefixMapping().getNsURIPrefix( imported ) );\n }", "@Override\n\tprotected String getListMapper() {\n\t\treturn null;\n\t}", "@BeanMapping( ignoreByDefault = false ) // needed to override the one from the BeanMapping mapBase\n @InheritConfiguration( name = \"mapBase\" )\n @Mapping(target = \"description\", source = \"articleDescription\")\n WorkBenchEntity mapBenchWithImplicit(WorkBenchDto source);", "@Mapper(withIoC = IoC.SPRING, withIgnoreMissing = IgnoreMissing.ALL)\npublic interface RemainMapper extends SelmaObjectMapper<RemainTadbir, Remain> {\n}", "@Mapper(componentModel = \"spring\", uses = {UtilisateurMapper.class, DepotMapper.class})\npublic interface UtilisateurDepotPKMapper extends EntityMapper<UtilisateurDepotPKDTO, UtilisateurDepotPK> {\n\n @Mapping(source = \"utilisateur.id\", target = \"utilisateurId\")\n @Mapping(source = \"depot.id\", target = \"depotId\")\n UtilisateurDepotPKDTO toDto(UtilisateurDepotPK utilisateurDepotPK);\n\n @Mapping(source = \"utilisateurId\", target = \"utilisateur\")\n @Mapping(source = \"depotId\", target = \"depot\")\n UtilisateurDepotPK toEntity(UtilisateurDepotPKDTO utilisateurDepotPKDTO);\n\n default UtilisateurDepotPK fromId(Long id) {\n if (id == null) {\n return null;\n }\n UtilisateurDepotPK utilisateurDepotPK = new UtilisateurDepotPK();\n utilisateurDepotPK.setId(id);\n return utilisateurDepotPK;\n }\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}", "public Graphe reverse()\t{\r\n \tfor(Liaison route : this.routes)\r\n \t\tif(route.isSensUnique())\r\n \t\t\troute.reverse();\t//TODO check si reverse marche bien\r\n \treturn this;\r\n }", "protected void clearHyperEdgeMap() {\n\n for (String id : this.hyperEdgeMap.keySet()) {\n\n this.ids.remove(id);\n }\n this.hyperEdgeMap.clear();\n }", "@Override\r\n\tpublic boolean reverseAccrualIt() {\n\t\r\n\t\t\r\n\t\treturn false;\r\n\t}" ]
[ "0.59312767", "0.581587", "0.57639694", "0.5712378", "0.56225127", "0.5542191", "0.53629315", "0.53629315", "0.53574675", "0.53097373", "0.5267307", "0.5172647", "0.5142396", "0.5116811", "0.5101104", "0.50748765", "0.50265765", "0.499645", "0.49957106", "0.49310282", "0.49276707", "0.49270958", "0.4924475", "0.491885", "0.49038443", "0.48817343", "0.48509628", "0.48502958", "0.484864", "0.48477072", "0.4838418", "0.48201945", "0.4808118", "0.4802627", "0.47931275", "0.47851545", "0.47715756", "0.47659704", "0.47626558", "0.47608742", "0.47603944", "0.47512668", "0.4740108", "0.47356033", "0.47294268", "0.47294065", "0.47226933", "0.47177935", "0.47039428", "0.4697859", "0.4693142", "0.46918112", "0.46852937", "0.46814802", "0.46805882", "0.46773884", "0.4676459", "0.46710065", "0.46698046", "0.46687254", "0.46687254", "0.46584302", "0.46489215", "0.4639796", "0.46384445", "0.4628308", "0.46281838", "0.4610748", "0.4609117", "0.4609117", "0.46042737", "0.45946363", "0.45831567", "0.45811632", "0.4580748", "0.4578183", "0.45780048", "0.45771953", "0.45724615", "0.4562499", "0.45561433", "0.45539784", "0.45517763", "0.45482698", "0.45466986", "0.45433706", "0.45422885", "0.45401126", "0.4539439", "0.45259538", "0.4518584", "0.45170856", "0.4514149", "0.45141333", "0.44889045", "0.44867298", "0.44846386", "0.44818586", "0.44771126", "0.4475665", "0.44729614" ]
0.0
-1
/ COMPOUND ERRORS (if the base fixes above work for all UID types, we only need to test one of the types below) 7 Inconsistent Forward And Duplicate Reverse Forward mapping missing reverse mapping: wtf > 03 Forward mapping bar > 02 is diff than reverse mapping: 02 > wtf Inconsistent forward mapping bar > 02 vs bar > wtf / wtf > 03 Duplicate reverse mapping 02 > wtf and 03 > null 01 > foo foo > 01 02 > wtf bar > 02 ^^^ wtf > 01 ^^ FIX 1 covers the 02 > wtf / bar > 02 mismatch. 2 will fix wtf > 01 and foo > 01
@Test public void fsckMetricsInconsistentFwdAndDupeRev() throws Exception { storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, METRICS, "wtf".getBytes(MockBase.ASCII())); storage.addColumn(UID_TABLE, "wtf".getBytes(MockBase.ASCII()), ID_FAMILY, METRICS, new byte[] {0, 0, 1}); storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L)); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(5, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void Test4179686() throws Exception {\n RuleBasedCollator en_us = (RuleBasedCollator) Collator.getInstance(Locale.US);\n // Create a collator with a few expanding character sequences in it....\n RuleBasedCollator coll = new RuleBasedCollator(en_us.getRules()\n + \" & ae ; \\u00e4 & AE ; \\u00c4\"\n + \" & oe ; \\u00f6 & OE ; \\u00d6\"\n + \" & ue ; \\u00fc & UE ; \\u00dc\");\n\n String text = \"T\\u00f6ne\"; // o-umlaut\n\n CollationElementIterator iter = coll.getCollationElementIterator(text);\n List elements = new ArrayList();\n int elem;\n\n // Iterate forward and collect all of the elements into a Vector\n while ((elem = iter.next()) != CollationElementIterator.NULLORDER) {\n elements.add(new Integer(elem));\n }\n\n // Now iterate backward and make sure they're the same\n iter.reset();\n int index = elements.size() - 1;\n while ((elem = iter.previous()) != CollationElementIterator.NULLORDER) {\n int expect = ((Integer)elements.get(index)).intValue();\n\n if (elem != expect) {\n errln(\"Mismatch at index \" + index\n + \": got \" + Integer.toString(elem,16)\n + \", expected \" + Integer.toString(expect,16));\n }\n index--;\n }\n }", "private void fixType(NameInfo name1Info, NameInfo name2Info) {\n\t\tString type1 = name1Info.getType();\n\t\tString type2 = name2Info.getType();\n//\t\tString name1 = name1Info.getName();\n//\t\tString name2 = name2Info.getName();\n\t\t\n\t\tif (!name1Info.isEnforced() && !name2Info.isEnforced()) {\n\t\t\tfixLoc(name1Info);\n\t\t\tfixLoc(name2Info);\n\t\t\tfixOrg(name1Info);\n\t\t\tfixOrg(name2Info);\n\t\t\tfixPeople(name1Info);\n\t\t\tfixPeople(name2Info);\n\t\t\tString longName = \"\";\n\t\t\tString shortName = \"\";\n\t\t\tif ((name1Info.getName()).length() >= (name2Info.getName()).length()) {\n\t\t\t\tlongName = name1Info.getName();\n\t\t\t\tshortName = name2Info.getName();\n\t\t\t} else {\n\t\t\t\tlongName = name2Info.getName();\n\t\t\t\tshortName = name1Info.getName();\n\t\t\t}\n\t\t\tif (acroMan.isAcronymFirstLetters(shortName, longName)) {\n\t\t\t\tname1Info.setType(\"ORG\");\n\t\t\t\tname2Info.setType(\"ORG\");\n\t\t\t}\n\t\t}\n\t\t\n\t\ttype1 = name1Info.getType();\n\t\ttype2 = name2Info.getType();\n\t\t\n\t\tif (!type1.equals(NameInfo.GENERIC_TYPE) && !type2.equals(NameInfo.GENERIC_TYPE) && !type1.equals(type2)){\n\t\t\tscoreShingle = 0.0f;\n\t\t\tscore = 0.0f;\n\t\t\treason = \"Types \" + type1 + \" and \" + type2 + \" cannot be compared\";\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (type1.equals(NameInfo.GENERIC_TYPE) && !type2.equals(NameInfo.GENERIC_TYPE)) {\n\t\t\ttype1 = type2;\n\t\t\tname1Info.setType(type1);\n\t\t} else if (type2.equals(NameInfo.GENERIC_TYPE) && !type1.equals(NameInfo.GENERIC_TYPE)) {\n\t\t\ttype2 = type1;\n\t\t\tname2Info.setType(type2);\n\t\t}\n\t}", "public boolean[] map(LocusContext context, SAMRecord read) {\n boolean[] errorsPerCycle = new boolean[read.getReadLength() + 1];\n \n byte[] bases = read.getReadBases();\n byte[] contig = context.getReferenceContig().getBases();\n byte[] sq = (byte[]) read.getAttribute(\"SQ\");\n \n int totalMismatches = 0;\n \n for (int cycle = 0, offset = (int) context.getPosition(); cycle < bases.length; cycle++, offset++) {\n byte compBase;\n \n switch (contig[offset]) {\n case 'A':\n case 'a': compBase = 'A'; break;\n case 'C':\n case 'c': compBase = 'C'; break;\n case 'G':\n case 'g': compBase = 'G'; break;\n case 'T':\n case 't': compBase = 'T'; break;\n default: compBase = '.'; break;\n }\n \n if (compBase != '.') {\n if (useNextBestBase) {\n int nextBestBaseIndex = QualityUtils.compressedQualityToBaseIndex(sq[cycle]);\n byte nextBestBase;\n switch (nextBestBaseIndex) {\n case 0: nextBestBase = 'A'; break;\n case 1: nextBestBase = 'C'; break;\n case 2: nextBestBase = 'G'; break;\n case 3: nextBestBase = 'T'; break;\n default: nextBestBase = '.'; break;\n }\n \n if (nextBestBase != '.') {\n errorsPerCycle[cycle] = !(bases[cycle] == compBase || nextBestBase == compBase);\n totalMismatches = (!(bases[cycle] == compBase || nextBestBase == compBase)) ? 1 : 0;\n }\n } else {\n errorsPerCycle[cycle] = !(bases[cycle] == compBase);\n totalMismatches += (!(bases[cycle] == compBase)) ? 1 : 0;\n }\n }\n }\n \n /*\n if (totalMismatches > 4) {\n for (int cycle = 0; cycle < bases.length; cycle++) { System.out.print((char) bases[cycle]); } System.out.print(\"\\n\");\n for (int cycle = 0, offset = (int) context.getPosition(); cycle < bases.length; cycle++, offset++) { System.out.print((char) contig[offset]); } System.out.print(\"\\n\");\n System.out.println(totalMismatches + \"\\n\");\n }\n */\n\n // We encode that we saw a read in the last position of the array.\n // That way we know what to normalize by, and we get thread safety!\n errorsPerCycle[errorsPerCycle.length - 1] = true;\n \n return errorsPerCycle;\n }", "protected static void updateMismatchCounts(CountedData counter, final AlignmentContext context, final byte refBase) {\n for( PileupElement p : context.getBasePileup() ) {\n final byte readBase = p.getBase();\n final byte readBaseQual = p.getQual();\n final int readBaseIndex = BaseUtils.simpleBaseToBaseIndex(readBase);\n final int refBaseIndex = BaseUtils.simpleBaseToBaseIndex(refBase);\n try{\n \tif( readBaseIndex != -1 && refBaseIndex != -1 ) {\n //if( readBaseIndex != refBaseIndex && !(BisulfiteSnpUtil.isCytosine(refBase,false) && BisulfiteSnpUtil.isCytosine(readBase,true))) {\n //counter.novelCountsMM++;\n \t\tif( readBaseIndex != refBaseIndex ){\n \t\t\tif((BisulfiteSnpUtil.isCytosine(refBase,false) && BisulfiteSnpUtil.isCytosine(readBase,true))){\n \t\t\t\tif(readBaseQual <= 5){\n \t\t\t\t\tincreaseNovelCountsMM(counter,1);\n \t\t\t\t}\n \t\t\t\telse{\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t}\n \t\t\telse{\n \t\t\t\tincreaseNovelCountsMM(counter,1);\n \t\t\t}\n }\n increaseNovelCountsBases(counter,1);\n \t}\n }\n catch (InstantiationException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n }", "protected boolean validatePrimaryContractLookupKeys(PrimaryContract primContract,\n DiagnosticChain diagnostics, Map<Object, Object> context)\n {\n ValidityPeriod newPeriod = primContract.getValidityPeriod();\n \n boolean result=true;\n EList<PrimaryContractMapEntryValue> contractMapEntryValues = primContract.getMapEntryValues();\n /*\n * multiple key maps to same contract\n * - verify all VPs are bounded by new VP\n */\n // multiple keys map to the same contract at different VP\n // - all VP of entry values should be bounded by new VP\n for(PrimaryContractMapEntryValue mapEntryValue:contractMapEntryValues){\n ValidityPeriod oldVP = mapEntryValue.getValidityPeriod();\n \n if(mapEntryValue.getPrimaryContract()!=primContract){\n result &= false;\n diagnostics.add\n (new BasicDiagnostic(Diagnostic.ERROR,\n SOURCE_PRIMARY_CONTRACT_MAP_ENTRY_VALUE,\n LOOKUP_KEY_ENTRY__VALUE,\n String.format(\"%s [%s] '%s' does not match '%s'\",\n mapEntryValue.getLookupKey().toString(),\n \"Value\", mapEntryValue.getPrimaryContract().getName(),primContract.getName()),\n new Object[]{mapEntryValue}));\n }\n\n if(contractMapEntryValues.size()==1){\n if(!newPeriod.getStart().isEquals(oldVP.getStart())\n ||!newPeriod.getEnd().isEquals(oldVP.getEnd())){\n result &= false;\n diagnostics.add\n (new BasicDiagnostic(Diagnostic.ERROR,\n SOURCE_PRIMARY_CONTRACT_MAP_ENTRY_VALUE,\n LOOKUP_KEY__RANGE,\n String.format(\"%s [%s] '%s' does not match '%s'\",\n mapEntryValue.getLookupKey().toString(),\n \"Range\", getDisplayString(oldVP),getDisplayString(newPeriod)),\n new Object[]{mapEntryValue}));\n }\n }else if(!newPeriod.contains(oldVP)){\n result &= false;\n diagnostics.add\n (new BasicDiagnostic(Diagnostic.ERROR,\n SOURCE_PRIMARY_CONTRACT_MAP_ENTRY_VALUE,\n LOOKUP_KEY__RANGE,\n String.format(\"%s [%s] '%s' is out of range\",\n mapEntryValue.getLookupKey().toString(),\n \"Range\", getDisplayString(oldVP)),\n new Object[]{mapEntryValue}));\n }\n }\n \n return result;\n }", "@Test\n\tpublic void test() {\n\t\tlong firstID = UIDGen.getInstance().getNextId();\n\t\tint n = 100;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tUIDGen.getInstance().getNextId();\n\t\t}\n\t\tlong currentID = UIDGen.getInstance().getNextId();\n\t\tassertEquals(currentID, firstID + n + 1);\n\n\t\t// expect a IDInvalidException exception for using and\n\t\t// external id that has already been used\n\t\tlong exteranlId = currentID;\n\t\tThrowable caught = null;\n\t\ttry {\n\t\t\tUIDGen.getInstance().considerExternalId(exteranlId);\n\t\t} catch (Throwable t) {\n\t\t\tcaught = t;\n\t\t}\n\t\tassertNotNull(caught);\n\t\tassertSame(IDInvalidException.class, caught.getClass());\n\n\t\t// push an external id that is not used and expect no exception\n\t\texteranlId = currentID + 2;\n\t\ttry {\n\t\t\tUIDGen.getInstance().considerExternalId(exteranlId);\n\t\t} catch (Throwable t) {\n\t\t\tfail();\n\t\t}\n\n\t\t// expect an exception as we put the same id again\n\t\texteranlId = currentID;\n\t\tcaught = null;\n\t\ttry {\n\t\t\tUIDGen.getInstance().considerExternalId(exteranlId);\n\t\t} catch (Throwable t) {\n\t\t\tcaught = t;\n\t\t}\n\t\tassertNotNull(caught);\n\t\tassertSame(IDInvalidException.class, caught.getClass());\n\n\t\t// must skip currentID + 2 as it was defined as an external id\n\t\tassertEquals(UIDGen.getInstance().getNextId(), currentID + 1);\n\t\tassertEquals(UIDGen.getInstance().getNextId(), currentID + 3);\n\t}", "@Test(timeout = 4000)\n public void test17() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray0 = new byte[9];\n defaultNucleotideCodec0.toString(byteArray0);\n defaultNucleotideCodec0.decodedLengthOf(byteArray0);\n defaultNucleotideCodec0.decodedLengthOf(byteArray0);\n defaultNucleotideCodec0.getUngappedLength(byteArray0);\n Nucleotide nucleotide0 = Nucleotide.Gap;\n Set<Nucleotide> set0 = nucleotide0.getBasesFor();\n byte[] byteArray1 = defaultNucleotideCodec0.encode((Collection<Nucleotide>) set0);\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec1.decode(byteArray0, 0);\n DefaultNucleotideCodec defaultNucleotideCodec2 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray2 = defaultNucleotideCodec2.encode((Collection<Nucleotide>) set0);\n DefaultNucleotideCodec defaultNucleotideCodec3 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec3.toString(byteArray1);\n DefaultNucleotideCodec defaultNucleotideCodec4 = DefaultNucleotideCodec.INSTANCE;\n DefaultNucleotideCodec defaultNucleotideCodec5 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec5.toString(byteArray0);\n DefaultNucleotideCodec defaultNucleotideCodec6 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec6.getNumberOfGapsUntil(byteArray1, 4);\n DefaultNucleotideCodec.values();\n defaultNucleotideCodec1.isGap(byteArray2, 0);\n defaultNucleotideCodec4.getGappedOffsetFor(byteArray1, (-16908803));\n defaultNucleotideCodec0.getNumberOfGapsUntil(byteArray0, 1497825280);\n // Undeclared exception!\n try { \n DefaultNucleotideCodec.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.residue.nt.DefaultNucleotideCodec.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "public boolean uniSameAs(Type other, TypeFixer fixer) throws LookupException;", "private static long getPrevNorm32(PrevArgs paramPrevArgs, int paramInt1, int paramInt2)\n/* */ {\n/* 534 */ paramPrevArgs.c = paramPrevArgs.src[(--paramPrevArgs.current)];\n/* 535 */ paramPrevArgs.c2 = '\\000';\n/* */ \n/* */ \n/* */ \n/* */ \n/* 540 */ if (paramPrevArgs.c < paramInt1)\n/* 541 */ return 0L;\n/* 542 */ if (!UTF16.isSurrogate(paramPrevArgs.c))\n/* 543 */ return getNorm32(paramPrevArgs.c);\n/* 544 */ if (UTF16.isLeadSurrogate(paramPrevArgs.c))\n/* */ {\n/* 546 */ return 0L; }\n/* 547 */ if ((paramPrevArgs.current != paramPrevArgs.start) && \n/* 548 */ (UTF16.isLeadSurrogate(paramPrevArgs.c2 = paramPrevArgs.src[(paramPrevArgs.current - 1)]))) {\n/* 549 */ paramPrevArgs.current -= 1;\n/* 550 */ long l = getNorm32(paramPrevArgs.c2);\n/* */ \n/* 552 */ if ((l & paramInt2) == 0L)\n/* */ {\n/* */ \n/* */ \n/* 556 */ return 0L;\n/* */ }\n/* */ \n/* 559 */ return getNorm32FromSurrogatePair(l, paramPrevArgs.c);\n/* */ }\n/* */ \n/* */ \n/* 563 */ paramPrevArgs.c2 = '\\000';\n/* 564 */ return 0L;\n/* */ }", "@Test(timeout = 4000)\n public void test11() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.valueOf(\"INSTANCE\");\n byte[] byteArray0 = new byte[7];\n byteArray0[0] = (byte) (-50);\n byteArray0[1] = (byte) (-38);\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec1.decodedLengthOf(byteArray0);\n defaultNucleotideCodec0.decodedLengthOf(byteArray0);\n DefaultNucleotideCodec defaultNucleotideCodec2 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec2.getUngappedLength(byteArray0);\n Nucleotide nucleotide0 = Nucleotide.NotGuanine;\n Set<Nucleotide> set0 = nucleotide0.getBasesFor();\n byte[] byteArray1 = defaultNucleotideCodec0.encode((Collection<Nucleotide>) set0);\n Nucleotide nucleotide1 = defaultNucleotideCodec0.decode(byteArray0, 0L);\n assertEquals(Nucleotide.Gap, nucleotide1);\n \n defaultNucleotideCodec0.getNumberOfGapsUntil(byteArray0, 1717986918);\n long long0 = defaultNucleotideCodec1.getUngappedLength(byteArray0);\n assertEquals((-824573952L), long0);\n \n defaultNucleotideCodec1.getUngappedOffsetFor(byteArray1, (-651));\n defaultNucleotideCodec2.getGappedOffsetFor(byteArray0, (byte) (-38));\n defaultNucleotideCodec0.getGappedOffsetFor(byteArray0, (byte) (-50));\n DefaultNucleotideCodec defaultNucleotideCodec3 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec3.decodedLengthOf(byteArray1);\n defaultNucleotideCodec3.decodedLengthOf(byteArray1);\n DefaultNucleotideCodec defaultNucleotideCodec4 = DefaultNucleotideCodec.INSTANCE;\n int int0 = defaultNucleotideCodec4.getGappedOffsetFor(byteArray1, (byte) (-38));\n assertEquals(3, int0);\n \n DefaultNucleotideCodec defaultNucleotideCodec5 = DefaultNucleotideCodec.INSTANCE;\n int int1 = defaultNucleotideCodec5.getNumberOfGapsUntil(byteArray1, (byte) (-38));\n assertArrayEquals(new byte[] {(byte)0, (byte)0, (byte)0, (byte)3, (byte)29, (byte) (-32)}, byteArray1);\n assertEquals(0, int1);\n }", "@Test\n public void testEPTIDThenTwo() throws Exception {\n UserMultiID umk = createUMK();\n UserMultiID eptidKey = new UserMultiID(umk.getEptid());\n User user = newUser();\n user.setUserMultiKey(eptidKey);\n getUserStore().update(user, true); // otherwise the next step returns a different user id.\n XMLMap map = getDBSClient().getUser(user.getUserMultiKey(),\n user.getIdP(),\n user.getIDPName(),\n user.getFirstName(),\n user.getLastName(),\n user.getEmail(),\n user.getAffiliation(),\n user.getDisplayName(),\n user.getOrganizationalUnit());\n\n checkUserAgainstMap(map, user);\n // now reget with both eppn and eptid\n UserMultiID umk2 = new UserMultiID(umk.getEppn(), umk.getEptid());\n map = getDBSClient().getUser(umk2, user.getIdP());\n // Backend regression check\n User user2 = getUserStore().get(user.getIdentifier());\n assert user2.getePPN().equals(umk.getEppn()) : \"EPPNs do not match after AbstractDBService multi-get\";\n assert user2.getePTID().equals(umk.getEptid()) : \"EPTIDs do not match after AbstractDBService multi-get\";\n user.setUserMultiKey(umk2);\n // now check that the local copy didn't lose anything when it went through the service.\n checkUserAgainstMap(map, user);\n // final bit of this is to check that giving just eppn in the future will return the right user.\n map = getDBSClient().getUser(eptidKey, user.getIdP());\n checkUserAgainstMap(map, user);\n }", "public static void main(String[] args) {\n String[] user0 = {\"/start\", \"/pink\", \"/register\", \"/orange\", \"/red\", \"a\"};\n String[] user1 = {\"/start\", \"/green\", \"/blue\", \"/pink\", \"/register\", \"/orange\", \"/one/two\"};\n String[] user2 = {\"a\", \"/one\", \"/two\"};\n String[] user3 = {\"/red\", \"/orange\", \"/yellow\", \"/green\", \"/blue\", \"/purple\", \"/white\", \"/amber\", \"/HotRodPink\", \"/BritishRacingGreen\"};\n String[] user4 = {\"/red\", \"/orange\", \"/amber\", \"/green\", \"/blue\", \"/purple\", \"/white\", \"/lavender\", \"/HotRodPink\", \"/BritishRacingGreen\"};\n String[] user5 = {\"a\"};\n\n// out.println(rawr(user0, user1));\n// out.println(rawr(user1, user2));\n// out.println(rawr(user2, user0));\n// out.println(rawr(user5, user2));\n out.println(rawr(user3, user4));\n// out.println(rawr(user4, user3));\n\n P1 c=new P1();\n c.findContiguousHistory(user0, user1);\n c.findContiguousHistory(user1, user2);\n c.findContiguousHistory(user2, user0);\n c.findContiguousHistory(user5, user2);\n c.findContiguousHistory(user3, user4);\n\n // below scenaro is tricky because amber match later and user3 string. We have to come back again.\n // String[] user4 = {\"/red\", \"/orange\", \"/amber\", \"/green\", \"/blue\", \"/purple\", \"/white\", \"/lavender\", \"/HotRodPink\", \"/BritishRacingGreen\"};\n // String[] user3 = {\"/red\", \"/orange\", \"/yellow\", \"/green\", \"/blue\", \"/purple\", \"/white\", \"/amber\", \"/HotRodPink\", \"/BritishRacingGreen\"};\n\n c.findContiguousHistory(user4, user3);\n }", "@Test\n public void fsckMetricsInconsistentFwdNoDupes() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 3});\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(3, errors);\n }", "private boolean checkRep()\r\n/* 126: */ {\r\n/* 127: */ Iterator localIterator2;\r\n/* 128:217 */ for (Iterator localIterator1 = this.map.keySet().iterator(); localIterator1.hasNext(); localIterator2.hasNext())\r\n/* 129: */ {\r\n/* 130:217 */ N n = (Object)localIterator1.next();\r\n/* 131:218 */ localIterator2 = ((Map)this.map.get(n)).keySet().iterator(); continue;N suc = (Object)localIterator2.next();\r\n/* 132:219 */ if (!((Map)this.map.get(suc)).containsKey(n)) {\r\n/* 133:220 */ return false;\r\n/* 134: */ }\r\n/* 135:223 */ if (!((Map)this.map.get(n)).get(suc).equals(((Map)this.map.get(suc)).get(n))) {\r\n/* 136:224 */ return false;\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139:230 */ return true;\r\n/* 140: */ }", "private static void checkRecurseUnordered(Vector<XSParticleDecl> dChildren, int min1, int max1, SubstitutionGroupHandler dSGHandler, Vector<XSParticleDecl> bChildren, int min2, int max2, SubstitutionGroupHandler bSGHandler) throws XMLSchemaException {\n/* 1306 */ if (!checkOccurrenceRange(min1, max1, min2, max2)) {\n/* 1307 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.1\", new Object[] {\n/* 1308 */ Integer.toString(min1), (max1 == -1) ? \"unbounded\" : \n/* 1309 */ Integer.toString(max1), \n/* 1310 */ Integer.toString(min2), (max2 == -1) ? \"unbounded\" : \n/* 1311 */ Integer.toString(max2)\n/* */ });\n/* */ }\n/* 1314 */ int count1 = dChildren.size();\n/* 1315 */ int count2 = bChildren.size();\n/* */ \n/* 1317 */ boolean[] foundIt = new boolean[count2];\n/* */ \n/* 1319 */ for (int i = 0; i < count1; i++) {\n/* 1320 */ XSParticleDecl particle1 = dChildren.elementAt(i);\n/* */ \n/* 1322 */ int k = 0; while (true) { if (k < count2) {\n/* 1323 */ XSParticleDecl particle2 = bChildren.elementAt(k);\n/* */ try {\n/* 1325 */ particleValidRestriction(particle1, dSGHandler, particle2, bSGHandler);\n/* 1326 */ if (foundIt[k]) {\n/* 1327 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.2\", null);\n/* */ }\n/* 1329 */ foundIt[k] = true;\n/* */ \n/* */ \n/* */ break;\n/* 1333 */ } catch (XMLSchemaException xMLSchemaException) {}\n/* */ k++;\n/* */ continue;\n/* */ } \n/* 1337 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.2\", null); }\n/* */ \n/* */ } \n/* */ \n/* 1341 */ for (int j = 0; j < count2; j++) {\n/* 1342 */ XSParticleDecl particle2 = bChildren.elementAt(j);\n/* 1343 */ if (!foundIt[j] && !particle2.emptiable()) {\n/* 1344 */ throw new XMLSchemaException(\"rcase-RecurseUnordered.2\", null);\n/* */ }\n/* */ } \n/* */ }", "@Test\n public void fsckMetricsDuplicateReverse() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, \n METRICS, \"wtf\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 4});\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(4L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(2, errors);\n }", "private void checkAndCorrectLabelReferences() {\n\t\t\n\t\tboolean madeChange;\n\t\tCodeItem codeItem = getCodeItem();\n\t\tList<Label> labels = codeItem.getLabels();\n\n\t\t// Parses all the Labels, and all the OffsetInstructions inside the Labels.\n\t\t// We stop the parsing whenever a change of instruction has been made, to restart the parsing\n\t\t// once again till everything is valid.\n\t\tdo {\n\t\t\tmadeChange = false;\n\t\t\tIterator<Label> labelIterator = labels.iterator();\n\t\t\twhile (!madeChange && labelIterator.hasNext()) {\n\t\t\t\tLabel label = labelIterator.next();\n\t\t\t\tArrayList<Instruction> instructions = label.getReferringInstructions();\n\t\n\t\t\t\tint insnIndex = 0;\n\t\t\t\tint nbInsn = instructions.size();\n\t\t\t\twhile (!madeChange && (insnIndex < nbInsn)) {\n\t\t\t\t\tInstruction insn = instructions.get(insnIndex);\n\t\t\t\t\t\n\t\t\t\t\tIOffsetInstruction offsetInsn = (IOffsetInstruction)insn;\n\t\t\t\t\tint instructionOffset = offsetInsn.getInstructionOffset();\n\t\t\t\t\t// The offset have to be divided by two, because the encoded offset is word based.\n\t\t\t\t\t// The relativeOffset is the offset for the Instruction to reach the Label.\n\t\t\t\t\t// It is negative if the Label is before the Instruction.\n\t\t\t\t\tint relativeOffset = (label.getOffset() - instructionOffset) / 2;\n\t\t\t\t\t\n\t\t\t\t\tint opcode = insn.getOpcodeByte();\n\t\t\t\t\tint maximumOffset = 0;\n\t\t\t\t\t// Check if the relative offset is valid for the instruction range. \n\t\t\t\t\tswitch (opcode) {\n\t\t\t\t\tcase 0x28: // Goto 8 bits.\n\t\t\t\t\t\tmaximumOffset = MAXIMUM_SIGNED_VALUE_8_BITS;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 0x29: // Goto 16 bits.\n\t\t\t\t\tcase 0x32: // If-test.\n\t\t\t\t\tcase 0x33:\n\t\t\t\t\tcase 0x34:\n\t\t\t\t\tcase 0x35:\n\t\t\t\t\tcase 0x36:\n\t\t\t\t\tcase 0x37:\n\t\t\t\t\tcase 0x38: // If-testz.\n\t\t\t\t\tcase 0x39:\n\t\t\t\t\tcase 0x3a:\n\t\t\t\t\tcase 0x3b:\n\t\t\t\t\tcase 0x3c:\n\t\t\t\t\tcase 0x3d:\n\t\t\t\t\t\tmaximumOffset = MAXIMUM_SIGNED_VALUE_16_BITS;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 0x2a: // Goto 32 bits.\n\t\t\t\t\tcase 0x2b: // Packed Switch.\n\t\t\t\t\tcase 0x2c: // Sparse Switch.\n\t\t\t\t\t\tmaximumOffset = MAXIMUM_SIGNED_VALUE_32_BITS;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\ttry { throw new Exception(\"Opcode error : 0x\" + Integer.toHexString(opcode)); } catch (Exception e) { e.printStackTrace(); }\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tint minimumOffset = -maximumOffset - 1;\n\t\t\t\t\t\n\t\t\t\t\tif ((relativeOffset < minimumOffset) || (relativeOffset > maximumOffset)) {\n\t\t\t\t\t\t// Must change to an Instruction with a bigger range. This is only possible for\n\t\t\t\t\t\t// the GOTO 8/16 bits.\n\t\t\t\t\t\tif ((opcode == Opcodes.INSN_GOTO) || (opcode == Opcodes.INSN_GOTO_16)) {\n\t\t\t\t\t\t\tInstruction newInsn;\n\t\t\t\t\t\t\t// Change to 16 or 32 bits ?\n\t\t\t\t\t\t\tif ((relativeOffset > MAXIMUM_SIGNED_VALUE_16_BITS) || (relativeOffset < MINIMUM_SIGNED_VALUE_16_BITS)) {\n\t\t\t\t\t\t\t\t// 32 bits.\n\t\t\t\t\t\t\t\tnewInsn = new InstructionFormat30T(Opcodes.INSN_GOTO_32, label, instructionOffset);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// 16 bits.\n\t\t\t\t\t\t\t\tnewInsn = new InstructionFormat20T(Opcodes.INSN_GOTO_16, label, instructionOffset);\n\t\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\t\t// Removes the instruction from the codeItem and replaces it with the new one.\n\t\t\t\t\t\t\tcodeItem.replaceInstructions(insn, newInsn);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Replaces the old instruction with the new one in the Label Instructions list.\n\t\t\t\t\t\t\tinstructions.remove(insnIndex);\n\t\t\t\t\t\t\tinstructions.add(insnIndex, newInsn);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Shifts all the Jump related instructions and the labels AFTER this instruction.\n\t\t\t\t\t\t\tshiftOffsetInstructionsAndLabels(instructionOffset, newInsn.getSize() - insn.getSize());\n\t\t\t\t\t\t\tmadeChange = true;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttry { throw new IllegalArgumentException(\"Instruction Range extension unhandled. Opcode : 0x\" + Integer.toHexString(opcode)); } catch (Exception e) { e.printStackTrace(); }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tinsnIndex++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t} while (madeChange);\n\t}", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray0 = new byte[9];\n defaultNucleotideCodec0.toString(byteArray0);\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n Nucleotide nucleotide0 = Nucleotide.Pyrimidine;\n Set<Nucleotide> set0 = nucleotide0.getBasesFor();\n byte[] byteArray1 = defaultNucleotideCodec1.encode((Collection<Nucleotide>) set0);\n DefaultNucleotideCodec defaultNucleotideCodec2 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec2.toString(byteArray1);\n defaultNucleotideCodec2.toString(byteArray1);\n // Undeclared exception!\n try { \n defaultNucleotideCodec0.getUngappedOffsetFor((byte[]) null, 12);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.nio.ByteBuffer\", e);\n }\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n DefaultNucleotideCodec defaultNucleotideCodec2 = DefaultNucleotideCodec.INSTANCE;\n Nucleotide nucleotide0 = Nucleotide.Pyrimidine;\n Set<Nucleotide> set0 = nucleotide0.getBasesFor();\n byte[] byteArray0 = defaultNucleotideCodec1.encode((Collection<Nucleotide>) set0);\n Nucleotide nucleotide1 = defaultNucleotideCodec0.decode(byteArray0, 0L);\n assertEquals(Nucleotide.Cytosine, nucleotide1);\n \n defaultNucleotideCodec1.getNumberOfGapsUntil(byteArray0, 1717986918);\n DefaultNucleotideCodec defaultNucleotideCodec3 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec3.getUngappedLength(byteArray0);\n DefaultNucleotideCodec defaultNucleotideCodec4 = DefaultNucleotideCodec.INSTANCE;\n int int0 = defaultNucleotideCodec4.getUngappedOffsetFor(byteArray0, (-1209));\n assertEquals((-1209), int0);\n \n int int1 = defaultNucleotideCodec2.getGappedOffsetFor(byteArray0, (-1209));\n assertEquals(2, int1);\n \n defaultNucleotideCodec2.getGappedOffsetFor(byteArray0, 1717986918);\n DefaultNucleotideCodec defaultNucleotideCodec5 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec5.decodedLengthOf(byteArray0);\n defaultNucleotideCodec0.decodedLengthOf(byteArray0);\n DefaultNucleotideCodec defaultNucleotideCodec6 = DefaultNucleotideCodec.INSTANCE;\n DefaultNucleotideCodec defaultNucleotideCodec7 = DefaultNucleotideCodec.INSTANCE;\n int int2 = defaultNucleotideCodec7.getGappedOffsetFor(byteArray0, 0);\n int int3 = defaultNucleotideCodec6.getNumberOfGapsUntil(byteArray0, 5);\n assertTrue(int3 == int2);\n assertArrayEquals(new byte[] {(byte)0, (byte)0, (byte)0, (byte)2, (byte) (-34)}, byteArray0);\n assertEquals(0, int3);\n }", "public void testNoFixFor_ParsingErrorInsertToComplete() throws Exception {\n IPackageFragment pack1 = fSourceFolder.createPackageFragment(\"test1\", false, null);\n StringBuffer buf = new StringBuffer();\n buf.append(\"package test1;\\n\");\n buf.append(\"import java.util.*;\\n\");\n buf.append(\"class E {\\n\");\n buf.append(\" public class MyLayout {\\n\");\n buf.append(\" int indent;\\n\");\n buf.append(\" }\\n\");\n buf.append(\" public void foo() {\\n\");\n buf.append(\" new MyLayout().indent // no real quick fix\\n\");\n buf.append(\" }\\n\");\n buf.append(\" \\n\");\n buf.append(\" private int[] fField;\\n\");\n buf.append(\" public void bar() {\\n\");\n buf.append(\" fField[0] // no quick fix\\n\");\n buf.append(\" }\\n\");\n buf.append(\" public void baz() {\\n\");\n buf.append(\" try { // no quick fix\\n\");\n buf.append(\" }\\n\");\n buf.append(\" }\\n\");\n buf.append(\" void foo(Map<String, String> map) {\\n\");\n buf.append(\" map..keySet(); // no quick fix\\n\");\n buf.append(\" }\\n\");\n buf.append(\" void // no quick fix\\n\");\n buf.append(\"}\\n\");\n ICompilationUnit cu = pack1.createCompilationUnit(\"E.java\", buf.toString(), false, null);\n CompilationUnit astRoot = getASTRoot(cu);\n List<ICompletionProposal> proposals = collectAllCorrections(cu, astRoot, 9);\n assertNumberOfProposals(proposals, 0);\n IProblem[] problems = astRoot.getProblems();\n for (int i = 0; i < problems.length; i++) {\n IProblem problem = problems[i];\n if (i == 5) {\n assertEquals(IProblem.ParsingErrorDeleteToken, problem.getID());\n } else {\n assertEquals(IProblem.ParsingErrorInsertToComplete, problem.getID());\n }\n }\n assertFalse(\"IProblem.ParsingErrorInsertToComplete is very general and should not trigger the quick fix lightbulb everywhere\", JavaCorrectionProcessor.hasCorrections(cu, IProblem.ParsingErrorInsertToComplete, IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER));\n }", "@Test\n public void fsckMetricsInconsistentReverse() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, \n METRICS, \"foo\".getBytes(MockBase.ASCII()));\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(1, errors);\n }", "public java.lang.Object put(java.lang.Object r9, java.lang.Object r10) {\n /*\n r8 = this;\n r0 = 8;\n r1 = 4;\n r3 = 0;\n if (r9 != 0) goto L_0x000e;\n L_0x0006:\n r2 = r8.indexOfNull();\n r4 = com.google.android.gms.internal.zzkq.a;\n if (r4 == 0) goto L_0x0016;\n L_0x000e:\n r3 = r9.hashCode();\n r2 = r8.indexOf(r9, r3);\n L_0x0016:\n if (r2 < 0) goto L_0x0025;\n L_0x0018:\n r0 = r2 << 1;\n r1 = r0 + 1;\n r0 = r8.mArray;\n r0 = r0[r1];\n r2 = r8.mArray;\n r2[r1] = r10;\n L_0x0024:\n return r0;\n L_0x0025:\n r2 = r2 ^ -1;\n r4 = r8.mSize;\t Catch:{ ClassCastException -> 0x0096 }\n r5 = r8.mHashes;\t Catch:{ ClassCastException -> 0x0096 }\n r5 = r5.length;\t Catch:{ ClassCastException -> 0x0096 }\n if (r4 < r5) goto L_0x005a;\n L_0x002e:\n r4 = r8.mSize;\t Catch:{ ClassCastException -> 0x0098 }\n if (r4 < r0) goto L_0x009a;\n L_0x0032:\n r0 = r8.mSize;\t Catch:{ ClassCastException -> 0x0098 }\n r1 = r8.mSize;\t Catch:{ ClassCastException -> 0x0098 }\n r1 = r1 >> 1;\n r0 = r0 + r1;\n L_0x0039:\n r1 = r8.mHashes;\n r4 = r8.mArray;\n r8.zzbJ(r0);\t Catch:{ ClassCastException -> 0x00a2 }\n r0 = r8.mHashes;\t Catch:{ ClassCastException -> 0x00a2 }\n r0 = r0.length;\t Catch:{ ClassCastException -> 0x00a2 }\n if (r0 <= 0) goto L_0x0055;\n L_0x0045:\n r0 = 0;\n r5 = r8.mHashes;\t Catch:{ ClassCastException -> 0x00a2 }\n r6 = 0;\n r7 = r1.length;\t Catch:{ ClassCastException -> 0x00a2 }\n java.lang.System.arraycopy(r1, r0, r5, r6, r7);\t Catch:{ ClassCastException -> 0x00a2 }\n r0 = 0;\n r5 = r8.mArray;\t Catch:{ ClassCastException -> 0x00a2 }\n r6 = 0;\n r7 = r4.length;\t Catch:{ ClassCastException -> 0x00a2 }\n java.lang.System.arraycopy(r4, r0, r5, r6, r7);\t Catch:{ ClassCastException -> 0x00a2 }\n L_0x0055:\n r0 = r8.mSize;\n zza(r1, r4, r0);\n L_0x005a:\n r0 = r8.mSize;\t Catch:{ ClassCastException -> 0x00a4 }\n if (r2 >= r0) goto L_0x007c;\n L_0x005e:\n r0 = r8.mHashes;\t Catch:{ ClassCastException -> 0x00a4 }\n r1 = r8.mHashes;\t Catch:{ ClassCastException -> 0x00a4 }\n r4 = r2 + 1;\n r5 = r8.mSize;\t Catch:{ ClassCastException -> 0x00a4 }\n r5 = r5 - r2;\n java.lang.System.arraycopy(r0, r2, r1, r4, r5);\t Catch:{ ClassCastException -> 0x00a4 }\n r0 = r8.mArray;\t Catch:{ ClassCastException -> 0x00a4 }\n r1 = r2 << 1;\n r4 = r8.mArray;\t Catch:{ ClassCastException -> 0x00a4 }\n r5 = r2 + 1;\n r5 = r5 << 1;\n r6 = r8.mSize;\t Catch:{ ClassCastException -> 0x00a4 }\n r6 = r6 - r2;\n r6 = r6 << 1;\n java.lang.System.arraycopy(r0, r1, r4, r5, r6);\t Catch:{ ClassCastException -> 0x00a4 }\n L_0x007c:\n r0 = r8.mHashes;\n r0[r2] = r3;\n r0 = r8.mArray;\n r1 = r2 << 1;\n r0[r1] = r9;\n r0 = r8.mArray;\n r1 = r2 << 1;\n r1 = r1 + 1;\n r0[r1] = r10;\n r0 = r8.mSize;\n r0 = r0 + 1;\n r8.mSize = r0;\n r0 = 0;\n goto L_0x0024;\n L_0x0096:\n r0 = move-exception;\n throw r0;\t Catch:{ ClassCastException -> 0x0098 }\n L_0x0098:\n r0 = move-exception;\n throw r0;\n L_0x009a:\n r4 = r8.mSize;\t Catch:{ ClassCastException -> 0x00a0 }\n if (r4 >= r1) goto L_0x0039;\n L_0x009e:\n r0 = r1;\n goto L_0x0039;\n L_0x00a0:\n r0 = move-exception;\n throw r0;\n L_0x00a2:\n r0 = move-exception;\n throw r0;\n L_0x00a4:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzlh.put(java.lang.Object, java.lang.Object):java.lang.Object\");\n }", "@Test\n public void test000_collision_scheme() {\n HashTableADT htIntegerKey = new HashTable<Integer, String>();\n int scheme = htIntegerKey.getCollisionResolution();\n if (scheme < 1 || scheme > 9)\n fail(\"collision resolution must be indicated with 1-9\");\n }", "@Test\n public void testUnionOnSchemaIncompatibleTypes() throws Exception {\n String query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : chararray);\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : float);\"\n + \"u = union onschema l1, l2;\";\n\n checkSchemaEx(query, \"Cannot cast from chararray to bytearray\");\n\n //without \"onschema\"\n query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : chararray);\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : float);\"\n + \"u = union l1, l2;\";\n\n checkSchemaEx(query, \"Cannot cast from chararray to bytearray\");\n\n\n \n query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : chararray);\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' as (x : map[ ], y : chararray);\"\n + \"u = union onschema l1, l2;\"\n ; \n checkSchemaEx(query, \"Cannot cast from long to bytearray\");\n \n query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : chararray);\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' as (x : map[ ], y : chararray);\"\n + \"u = union l1, l2;\"\n ;\n checkSchemaEx(query, \"Cannot cast from long to bytearray\");\n\n // bag column with different internal column types\n query =\n \" l1 = load '\" + INP_FILE_2NUMS \n + \"' as (x : long, b : bag { t : tuple (c1 : int, c2 : chararray)} );\"\n \n + \"l2 = load '\" + INP_FILE_2NUMS \n + \"' as (x : long, b : bag { t : tuple (c1 : long, c2 : chararray)} );\"\n + \"u = union onschema l1, l2;\"\n ; \n Schema sch = new Schema();\n sch.add(new FieldSchema(\"x\", DataType.LONG));\n Schema bagInnerSchema = new Schema();\n bagInnerSchema.add(new FieldSchema(null, new Schema(), DataType.TUPLE));\n sch.add(new FieldSchema(\"b\", bagInnerSchema, DataType.BAG));\n checkSchemaEquals(query, sch);\n \n // tuple column with different internal column types\n query =\n \" l1 = load '\" + INP_FILE_2NUMS \n + \"' as (t : tuple (c1 : int, c2 : chararray) );\"\n \n + \"l2 = load '\" + INP_FILE_2NUMS \n + \"' as (t : tuple (c1 : long, c2 : chararray) );\"\n + \"u = union onschema l1, l2;\"\n ; \n sch = new Schema();\n sch.add(new FieldSchema(\"t\", new Schema(), DataType.TUPLE));\n checkSchemaEquals(query, sch);\n }", "@Test(timeout = 4000)\n public void test18() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray0 = new byte[9];\n defaultNucleotideCodec0.toString(byteArray0);\n defaultNucleotideCodec0.decodedLengthOf(byteArray0);\n defaultNucleotideCodec0.decodedLengthOf(byteArray0);\n defaultNucleotideCodec0.getUngappedLength(byteArray0);\n Nucleotide nucleotide0 = Nucleotide.Gap;\n Set<Nucleotide> set0 = nucleotide0.getBasesFor();\n byte[] byteArray1 = defaultNucleotideCodec0.encode((Collection<Nucleotide>) set0);\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec1.decode(byteArray0, 0);\n DefaultNucleotideCodec defaultNucleotideCodec2 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray2 = defaultNucleotideCodec2.encode((Collection<Nucleotide>) set0);\n DefaultNucleotideCodec defaultNucleotideCodec3 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec3.toString(byteArray1);\n DefaultNucleotideCodec defaultNucleotideCodec4 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec4.isGap(byteArray0, 1553);\n defaultNucleotideCodec0.getNumberOfGapsUntil(byteArray2, (-3166));\n DefaultNucleotideCodec defaultNucleotideCodec5 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec5.isGap(byteArray0, 75);\n DefaultNucleotideCodec defaultNucleotideCodec6 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray3 = new byte[0];\n // Undeclared exception!\n try { \n defaultNucleotideCodec6.isGap(byteArray3, (-1));\n fail(\"Expecting exception: BufferUnderflowException\");\n \n } catch(BufferUnderflowException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.nio.Buffer\", e);\n }\n }", "private void finalizeOutOfTypeSystemFeatures() {\n // remap ref features\n for (List<Pair<String, Object>> attrs : outOfTypeSystemData.extraFeatureValues.values()) {\n for (Pair<String, Object> p : attrs) {\n String sv = (p.u instanceof String) ? (String) p.u : \"\";\n if (p.t.startsWith(\"_ref_\")) {\n int val = Integer.parseInt(sv);\n if (val >= 0) // negative numbers represent null and are left unchanged\n {\n // attempt to locate target in type system\n FSInfo fsValInfo = fsTree.get(val);\n if (fsValInfo != null) {\n p.u = fsValInfo.fs;\n } else\n // out of type system - remap by prepending letter\n {\n p.u = \"a\" + val;\n }\n }\n }\n }\n }\n }", "private void cleanMnemonicsConflict() {\n Enumeration enumer = mnemonicConflict.keys();\n \n while(enumer.hasMoreElements()) {\n String key = (String)enumer.nextElement();\n HashSet hs = (HashSet)mnemonicConflict.get(key);\n if(hs.size()==1)\n mnemonicConflict.remove(key);\n }\n \n }", "@Test\n public void checkUniqueNumberSuffixRule0() {\n final String[] originalColumnNames = { \"a\", \"b\", \"c\", \"d\", \"e\" };\n final String[] expectedColumnNames = { \"a\", \"b\", \"c\", \"d\", \"e\" };\n checkUniqueNumberSuffixRuleInternal(originalColumnNames, expectedColumnNames);\n }", "public char[] uid2_TRY(Bounds.Inside ph)\n {\n if(ph.field_bit != 433 && !try_visit_field(ph, 433)) return null;\n return uid2_GET(ph, new char[ph.items], 0);\n }", "@Test\n void complexUnions(TestInfo testInfo) throws Exception {\n String partial = \"[\\\"int\\\", \\\"long\\\", \\\"float\\\", \\\"double\\\", \\\"boolean\\\", \\\"bytes\\\",\"\n + \" \\\"string\\\", {\\\"type\\\":\\\"array\\\", \\\"items\\\": \\\"long\\\"},\" + \" {\\\"type\\\":\\\"map\\\", \\\"values\\\":\\\"long\\\"}\";\n String namedTypes = \", {\\\"type\\\":\\\"record\\\",\\\"name\\\":\\\"Foo\\\",\\\"fields\\\":[]},\"\n + \" {\\\"type\\\":\\\"fixed\\\",\\\"name\\\":\\\"Bar\\\",\\\"size\\\": 1},\"\n + \" {\\\"type\\\":\\\"enum\\\",\\\"name\\\":\\\"Baz\\\",\\\"symbols\\\": [\\\"X\\\"]}\";\n\n String namedTypes2 = \", {\\\"type\\\":\\\"record\\\",\\\"name\\\":\\\"Foo2\\\",\\\"fields\\\":[]},\"\n + \" {\\\"type\\\":\\\"fixed\\\",\\\"name\\\":\\\"Bar2\\\",\\\"size\\\": 1},\"\n + \" {\\\"type\\\":\\\"enum\\\",\\\"name\\\":\\\"Baz2\\\",\\\"symbols\\\": [\\\"X\\\"]}\";\n\n check(new File(DIR, testInfo.getTestMethod().get().getName()), partial + namedTypes + \"]\", false);\n check(new File(DIR, testInfo.getTestMethod().get().getName()), partial + namedTypes + namedTypes2 + \"]\", false);\n checkParseError(partial + namedTypes + namedTypes + \"]\");\n\n // fail with two branches of the same unnamed type\n checkUnionError(new Schema[] { Schema.create(Type.INT), Schema.create(Type.INT) });\n checkUnionError(new Schema[] { Schema.create(Type.LONG), Schema.create(Type.LONG) });\n checkUnionError(new Schema[] { Schema.create(Type.FLOAT), Schema.create(Type.FLOAT) });\n checkUnionError(new Schema[] { Schema.create(Type.DOUBLE), Schema.create(Type.DOUBLE) });\n checkUnionError(new Schema[] { Schema.create(Type.BOOLEAN), Schema.create(Type.BOOLEAN) });\n checkUnionError(new Schema[] { Schema.create(Type.BYTES), Schema.create(Type.BYTES) });\n checkUnionError(new Schema[] { Schema.create(Type.STRING), Schema.create(Type.STRING) });\n checkUnionError(\n new Schema[] { Schema.createArray(Schema.create(Type.INT)), Schema.createArray(Schema.create(Type.INT)) });\n checkUnionError(\n new Schema[] { Schema.createMap(Schema.create(Type.INT)), Schema.createMap(Schema.create(Type.INT)) });\n\n List<String> symbols = new ArrayList<>();\n symbols.add(\"NOTHING\");\n\n // succeed with two branches of the same named type, if different names\n Schema u;\n u = buildUnion(new Schema[] { new Schema.Parser().parse(\"{\\\"type\\\":\\\"record\\\",\\\"name\\\":\\\"x.A\\\",\\\"fields\\\":[]}\"),\n new Schema.Parser().parse(\"{\\\"type\\\":\\\"record\\\",\\\"name\\\":\\\"y.A\\\",\\\"fields\\\":[]}\") });\n check(new File(DIR, testInfo.getTestMethod().get().getName()), u.toString(), false);\n\n u = buildUnion(new Schema[] { new Schema.Parser().parse(\"{\\\"type\\\":\\\"enum\\\",\\\"name\\\":\\\"x.A\\\",\\\"symbols\\\":[\\\"X\\\"]}\"),\n new Schema.Parser().parse(\"{\\\"type\\\":\\\"enum\\\",\\\"name\\\":\\\"y.A\\\",\\\"symbols\\\":[\\\"Y\\\"]}\") });\n check(new File(DIR, testInfo.getTestMethod().get().getName()), u.toString(), false);\n\n u = buildUnion(new Schema[] { new Schema.Parser().parse(\"{\\\"type\\\":\\\"fixed\\\",\\\"name\\\":\\\"x.A\\\",\\\"size\\\":4}\"),\n new Schema.Parser().parse(\"{\\\"type\\\":\\\"fixed\\\",\\\"name\\\":\\\"y.A\\\",\\\"size\\\":8}\") });\n check(new File(DIR, testInfo.getTestMethod().get().getName()), u.toString(), false);\n\n // fail with two branches of the same named type, but same names\n checkUnionError(new Schema[] { Schema.createRecord(\"Foo\", null, \"org.test\", false),\n Schema.createRecord(\"Foo\", null, \"org.test\", false) });\n checkUnionError(new Schema[] { Schema.createEnum(\"Bar\", null, \"org.test\", symbols),\n Schema.createEnum(\"Bar\", null, \"org.test\", symbols) });\n checkUnionError(new Schema[] { Schema.createFixed(\"Baz\", null, \"org.test\", 2),\n Schema.createFixed(\"Baz\", null, \"org.test\", 1) });\n\n Schema union = buildUnion(new Schema[] { Schema.create(Type.INT) });\n // fail if creating a union of a union\n checkUnionError(new Schema[] { union });\n }", "@Test\n public void testLowerBoundsIgnoredWhenDeletingCompositeEntitesOwnedByMap() throws Exception {\n AtlasStructDef.AtlasAttributeDef[] mapValueAttributes = new AtlasStructDef.AtlasAttributeDef[]{\n new AtlasStructDef.AtlasAttributeDef(\"refToMapValue\", \"CompositeMapValue\",\n false,\n AtlasStructDef.AtlasAttributeDef.Cardinality.SINGLE, 1, 1,\n false, false,\n Collections.<AtlasStructDef.AtlasConstraintDef>emptyList())\n };\n\n AtlasEntityDef mapValueDef =\n new AtlasEntityDef(\"MapValueReferencer\", \"RequiredMapValue_description\", \"1.0\",\n Arrays.asList(mapValueAttributes), Collections.<String>emptySet());\n\n\n AtlasStructDef.AtlasAttributeDef[] mapContainerAttributes = new AtlasStructDef.AtlasAttributeDef[]{\n new AtlasStructDef.AtlasAttributeDef(\"requiredMap\", \"map<string,MapValueReferencer>\",\n false,\n AtlasStructDef.AtlasAttributeDef.Cardinality.SINGLE, 1, 1,\n false, false,\n new ArrayList<AtlasStructDef.AtlasConstraintDef>() {{\n add(new AtlasStructDef.AtlasConstraintDef(AtlasStructDef.AtlasConstraintDef.CONSTRAINT_TYPE_OWNED_REF));\n }})\n };\n\n AtlasEntityDef mapContainerDef =\n new AtlasEntityDef(\"MapValueReferencerContainer\", \"MapValueReferencerContainer_description\", \"1.0\",\n Arrays.asList(mapContainerAttributes), Collections.<String>emptySet());\n\n\n AtlasTypesDef typesDef = AtlasTypeUtil.getTypesDef(ImmutableList.<AtlasEnumDef>of(),\n ImmutableList.<AtlasStructDef>of(),\n ImmutableList.<AtlasClassificationDef>of(),\n ImmutableList.<AtlasEntityDef>of(mapValueDef, mapContainerDef));\n\n typeDefStore.createTypesDef(typesDef);\n\n // Create instances of CompositeMapOwner and CompositeMapValue.\n // Set MapOwner.map with one entry that references MapValue instance.\n AtlasEntity.AtlasEntityWithExtInfo entityDefinition = createMapOwnerAndValueEntities();\n String mapOwnerGuid = entityDefinition.getEntity().getGuid();\n\n // Verify MapOwner.map attribute has expected value.\n ITypedReferenceableInstance mapOwnerInstance = metadataService.getEntityDefinition(mapOwnerGuid);\n Object object = mapOwnerInstance.get(\"map\");\n Assert.assertNotNull(object);\n Assert.assertTrue(object instanceof Map);\n Map<String, ITypedReferenceableInstance> map = (Map<String, ITypedReferenceableInstance>)object;\n Assert.assertEquals(map.size(), 1);\n ITypedReferenceableInstance mapValueInstance = map.get(\"value1\");\n Assert.assertNotNull(mapValueInstance);\n String mapValueGuid = mapValueInstance.getId()._getId();\n\n // Create instance of MapValueReferencerContainer\n init();\n AtlasEntity mapValueReferencer = new AtlasEntity(mapValueDef.getName());\n mapValueReferencer.setAttribute(\"refToMapValue\", new AtlasObjectId(mapValueInstance.getId()._getId(), mapValueInstance.getTypeName()));\n AtlasEntity.AtlasEntitiesWithExtInfo entities = new AtlasEntity.AtlasEntitiesWithExtInfo();\n entities.addEntity(mapValueReferencer);\n\n List<AtlasEntityHeader> createEntitiesResult = entityStore.createOrUpdate(new AtlasEntityStream(entities), false).getCreatedEntities();\n Assert.assertEquals(createEntitiesResult.size(), 1);\n\n // Create instance of MapValueReferencer, and update mapValueReferencerContainer\n // to reference it.\n AtlasEntity mapValueReferenceContainer = new AtlasEntity(mapContainerDef.getName());\n entities = new AtlasEntity.AtlasEntitiesWithExtInfo();\n entities.addEntity(mapValueReferenceContainer);\n entities.addReferredEntity(mapValueReferencer);\n mapValueReferenceContainer.setAttribute(\"requiredMap\", Collections.singletonMap(\"value1\", AtlasTypeUtil.getAtlasObjectId(mapValueReferencer)));\n\n\n init();\n EntityMutationResponse updateEntitiesResult = entityStore.createOrUpdate(new AtlasEntityStream(entities), false);\n\n String mapValueReferencerContainerGuid = updateEntitiesResult.getCreatedEntitiesByTypeName(\"MapValueReferencerContainer\").get(0).getGuid();\n String mapValueReferencerGuid = updateEntitiesResult.getUpdatedEntitiesByTypeName(\"MapValueReferencer\").get(0).getGuid();\n\n Assert.assertEquals(updateEntitiesResult.getCreatedEntities().size(), 1);\n Assert.assertEquals(updateEntitiesResult.getUpdatedEntities().size(), 1);\n Assert.assertEquals(updateEntitiesResult.getUpdatedEntities().get(0).getGuid(), mapValueReferencerGuid);\n\n\n // Delete map owner and map referencer container. A total of 4 entities should be deleted,\n // including the composite entities. The lower bound constraint on MapValueReferencer.refToMapValue\n // should not be enforced on the composite MapValueReferencer since it is being deleted.\n EntityMutationResponse deleteEntitiesResult = entityStore.deleteByIds(Arrays.asList(mapOwnerGuid, mapValueReferencerContainerGuid));\n Assert.assertEquals(deleteEntitiesResult.getDeletedEntities().size(), 4);\n Assert.assertTrue(extractGuids(deleteEntitiesResult.getDeletedEntities()).containsAll(\n Arrays.asList(mapOwnerGuid, mapValueGuid, mapValueReferencerContainerGuid, mapValueReferencerGuid)));\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 2147483647L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem1);\n assertEquals(\"[ 2147483648 .. 2147483647 ]/RB\", string0);\n \n range0.toString();\n Range range1 = Range.parseRange(\"[ 2147483647 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n boolean boolean0 = range1.equals(range0);\n range0.complement(range1);\n assertFalse(range0.equals((Object)range1));\n \n boolean boolean1 = range1.equals((Object) null);\n assertTrue(boolean1 == boolean0);\n \n long long0 = range1.getEnd();\n assertTrue(range1.isEmpty());\n assertEquals(2147483645L, long0);\n }", "@Override\n public boolean handleIt(final AttributeConflict conflict) {\n //idMapping.getMapTgtTypeIDs(toID, toAttrName)\n final CyAttributes attrs = conflict.getCyAttributes();\n final String fromID = conflict.getFromID();\n final String fromAttr = conflict.getFromAttr();\n final String toID = conflict.getToID();\n final String toAttr = conflict.getToAttr();\n\n //final Object fromValue = attrs.getAttribute(fromID, fromAttr);\n final Object toValue = attrs.getAttribute(toID, toAttr);\n\n if (!(toValue instanceof String)) { //TODO: deal with other types\n return false;\n }\n\n Map<String,String> mapGOAttr = new HashMap<String,String>();\n mapGOAttr.put(fromID, fromAttr);\n mapGOAttr.put(toID, toAttr);\n Map<String,Set<String>> overlappedMapTypeIDs = IDMappingDataUtils.getOverlappingIDMapping(idMapping, mapGOAttr);\n\n if (overlappedMapTypeIDs==null||overlappedMapTypeIDs.isEmpty()) {\n return false;\n }\n\n //if the src type in, pick it, otherwise pick the first type\n //TODO : realize a type priority\n String srcType = idMapping.getSrcIDType(toID, toAttr);\n Set<String> values = overlappedMapTypeIDs.get(srcType);\n if (values==null) {\n values = overlappedMapTypeIDs.values().iterator().next();\n }\n String value = values.iterator().next();\n attrs.setAttribute(toID, toAttr, value);\n return true;\n }", "public void testResolveByIDInExplicitMap() throws Exception {\n\n String id2 = \"test2-occ_2\";\n super.checkResolveByIDInMap(id2,tm2);\n // assert that the object returned is \n // a occurrence and that it is the one expected\n assertEquals(id2, tag.getOccurrence().getID());\n \n }", "@Test\n public void fsckMetricsMissingReverse() throws Exception {\n storage.flushColumn(UID_TABLE, new byte[] {0, 0, 1}, NAME_FAMILY, METRICS);\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(1, errors);\n }", "private void finalizeOutOfTypeSystemFS(FSData aFS) {\n // make ID unique by prefixing a letter\n aFS.id = 'a' + aFS.id;\n // remap ref features\n for (Map.Entry<String, Object> entry : aFS.featVals.entrySet()) {\n String attrName = entry.getKey();\n if (attrName.startsWith(\"_ref_\")) {\n int val = Integer.parseInt((String) entry.getValue());\n if (val >= 0) // negative numbers represent null and are left unchanged\n {\n // attempt to locate target in type system\n FSInfo fsValInfo = fsTree.get(val);\n if (fsValInfo != null) {\n // entry.setValue(Integer.toString(fsValInfo.fs._id));\n entry.setValue(fsValInfo.fs);\n } else\n // out of type system - remap by prepending letter\n {\n entry.setValue(\"a\" + val);\n }\n }\n }\n\n }\n }", "private static int mergeOrdered(char[] paramArrayOfChar1, int paramInt1, int paramInt2, char[] paramArrayOfChar2, int paramInt3, int paramInt4, boolean paramBoolean)\n/* */ {\n/* 738 */ int k = 0;\n/* */ \n/* */ \n/* 741 */ int m = paramInt2 == paramInt3 ? 1 : 0;\n/* 742 */ NextCCArgs localNextCCArgs = new NextCCArgs(null);\n/* 743 */ localNextCCArgs.source = paramArrayOfChar2;\n/* 744 */ localNextCCArgs.next = paramInt3;\n/* 745 */ localNextCCArgs.limit = paramInt4;\n/* */ \n/* 747 */ if ((paramInt1 != paramInt2) || (!paramBoolean))\n/* */ {\n/* 749 */ while (localNextCCArgs.next < localNextCCArgs.limit) {\n/* 750 */ int j = getNextCC(localNextCCArgs);\n/* 751 */ if (j == 0)\n/* */ {\n/* 753 */ k = 0;\n/* 754 */ if (m != 0) {\n/* 755 */ paramInt2 = localNextCCArgs.next;\n/* */ } else {\n/* 757 */ paramArrayOfChar2[(paramInt2++)] = localNextCCArgs.c;\n/* 758 */ if (localNextCCArgs.c2 != 0) {\n/* 759 */ paramArrayOfChar2[(paramInt2++)] = localNextCCArgs.c2;\n/* */ }\n/* */ }\n/* 762 */ if (paramBoolean) {\n/* */ break;\n/* */ }\n/* 765 */ paramInt1 = paramInt2;\n/* */ }\n/* */ else {\n/* 768 */ int i = paramInt2 + (localNextCCArgs.c2 == 0 ? 1 : 2);\n/* 769 */ k = insertOrdered(paramArrayOfChar1, paramInt1, paramInt2, i, localNextCCArgs.c, localNextCCArgs.c2, j);\n/* */ \n/* 771 */ paramInt2 = i;\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* 776 */ if (localNextCCArgs.next == localNextCCArgs.limit)\n/* */ {\n/* 778 */ return k;\n/* */ }\n/* 780 */ if (m == 0)\n/* */ {\n/* */ do {\n/* 783 */ paramArrayOfChar1[(paramInt2++)] = paramArrayOfChar2[(localNextCCArgs.next++)];\n/* 784 */ } while (localNextCCArgs.next != localNextCCArgs.limit);\n/* 785 */ localNextCCArgs.limit = paramInt2;\n/* */ }\n/* 787 */ PrevArgs localPrevArgs = new PrevArgs(null);\n/* 788 */ localPrevArgs.src = paramArrayOfChar2;\n/* 789 */ localPrevArgs.start = paramInt1;\n/* 790 */ localPrevArgs.current = localNextCCArgs.limit;\n/* 791 */ return getPrevCC(localPrevArgs);\n/* */ }", "@Test\n public void testTwoIDs() throws Exception {\n // Get a set of keys.\n UserMultiID umk = createUMK();\n\n User user = newUser();\n UserMultiID newUmk = new UserMultiID(umk.getEppn(), umk.getEptid());\n user.setUserMultiKey(newUmk);\n getUserStore().save(user);\n Collection<User> users = getUserStore().get(newUmk, user.getIdP());\n assert users.size() == 1 : \"Incorrect number of users found. Expected one and got \" + users.size();\n assert user.equals(users.iterator().next());\n // Now reget with just EPTID. Since that is globally unique, this should always work.\n UserMultiID newUmk2 = new UserMultiID(umk.getEptid());\n users = getUserStore().get(newUmk2, user.getIdP());\n assert users.size() == 1 : \"Incorrect number of users found. Expected one and got \" + users.size();\n assert user.equals(users.iterator().next());\n\n XMLMap userMap = getDBSClient().getUser(user.getIdentifier());\n checkUserAgainstMap(userMap, user);\n }", "boolean hasToUid();", "boolean hasToUid();", "private void checkNamingCollisions(String typeName, JavaType type, JavaType knownType) {\n\n // If there is no existing type, or if both types are the same then there is no collision\n if (knownType == null || knownType.getRawClass().equals(type.getRawClass())) return;\n\n // Ignore date-time, since multiple classes legitimately map to this\n if (\"date-time\".equals(typeName)) return;\n\n // Ignore if either type is primitive, since the collision is probably with the boxed type\n if (type.isPrimitive() || knownType.isPrimitive()) return;\n\n // Ignore if either type is an enum, since it doesn't need to be represented as a model\n if (type.isEnumType() || knownType.isEnumType()) return;\n\n // Ignore if the types are both containers, since they will map to the same thing\n if (type.isContainerType() && knownType.isContainerType()) return;\n\n // To get here there must be two different types colliding on the name\n throw new IllegalStateException(\"Name collision for name [\" + typeName + \"]. Classes [\" + knownType.getRawClass() + \", \" + type.getRawClass() + \"].\");\n }", "@Test\n public void testCheckExternalIdUniquenessForUpdate2() {\n\n try {\n user.setUserId(\"456456\");\n user.getExternalIds().get(0).put(JsonKey.OPERATION, JsonKey.UPDATE);\n Util.checkExternalIdUniqueness(user, JsonKey.UPDATE);\n } catch (Exception ex) {\n System.out.println(\"3\" + ex.getMessage());\n assertTrue(\n ex.getMessage()\n .equalsIgnoreCase(\n \"External ID (id: 123209-453445934-23128u3423-dsafsa32c43-few43-wesc49cjkf, idType: AAADHAR, provider: AP) not found for given user.\"));\n }\n }", "private static void zza(com.google.android.gms.internal.gtm.zzug r2, java.lang.Object r3) {\n /*\n com.google.android.gms.internal.gtm.zzre.checkNotNull(r3)\n int[] r0 = com.google.android.gms.internal.gtm.zzqu.zzaxr\n com.google.android.gms.internal.gtm.zzul r2 = r2.zzrs()\n int r2 = r2.ordinal()\n r2 = r0[r2]\n r0 = 1\n r1 = 0\n switch(r2) {\n case 1: goto L_0x0040;\n case 2: goto L_0x003d;\n case 3: goto L_0x003a;\n case 4: goto L_0x0037;\n case 5: goto L_0x0034;\n case 6: goto L_0x0031;\n case 7: goto L_0x0028;\n case 8: goto L_0x001e;\n case 9: goto L_0x0015;\n default: goto L_0x0014;\n }\n L_0x0014:\n goto L_0x0043\n L_0x0015:\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzsk\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzrn\n if (r2 == 0) goto L_0x0043\n goto L_0x0026\n L_0x001e:\n boolean r2 = r3 instanceof java.lang.Integer\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzrf\n if (r2 == 0) goto L_0x0043\n L_0x0026:\n r1 = 1\n goto L_0x0043\n L_0x0028:\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzps\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof byte[]\n if (r2 == 0) goto L_0x0043\n goto L_0x0026\n L_0x0031:\n boolean r0 = r3 instanceof java.lang.String\n goto L_0x0042\n L_0x0034:\n boolean r0 = r3 instanceof java.lang.Boolean\n goto L_0x0042\n L_0x0037:\n boolean r0 = r3 instanceof java.lang.Double\n goto L_0x0042\n L_0x003a:\n boolean r0 = r3 instanceof java.lang.Float\n goto L_0x0042\n L_0x003d:\n boolean r0 = r3 instanceof java.lang.Long\n goto L_0x0042\n L_0x0040:\n boolean r0 = r3 instanceof java.lang.Integer\n L_0x0042:\n r1 = r0\n L_0x0043:\n if (r1 == 0) goto L_0x0046\n return\n L_0x0046:\n java.lang.IllegalArgumentException r2 = new java.lang.IllegalArgumentException\n java.lang.String r3 = \"Wrong object type used with protocol message reflection.\"\n r2.<init>(r3)\n goto L_0x004f\n L_0x004e:\n throw r2\n L_0x004f:\n goto L_0x004e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.gtm.zzqt.zza(com.google.android.gms.internal.gtm.zzug, java.lang.Object):void\");\n }", "@Test\n public void testEPTID2() throws Exception {\n UserMultiID umk = createUMK();\n RemoteUserName ru = umk.getRemoteUserName();\n User user = newUser(); //saved\n UserMultiID eptid = new UserMultiID(umk.getEptid());\n user.setUserMultiKey(new UserMultiID(ru));\n getUserStore().save(user);\n // This puts a new user with a remote user fireld (legacy case) in the store. Now we try and get the user\n // with *both* the remote user and an eptid\n\n user.setUserMultiKey(new UserMultiID(ru, null, eptid.getEptid(), null, null));\n XMLMap userMap = getDBSClient().getUser(user);\n Collection<User> users = getUserStore().get(eptid, user.getIdP());\n assert users.size() == 1 : \"Incorrect number of users found. Expected one and got \" + users.size();\n User testUser = users.iterator().next();\n user.setSerialIdentifier(testUser.getSerialIdentifier()); // this was reset in the getUser command to the AbstractDBService client.\n assert user.equals(users.iterator().next());\n userMap = getDBSClient().getUser(user.getIdentifier());\n checkUserAgainstMap(userMap, user);\n\n }", "private static boolean m14538a(C44919o c44919o, C8235ad c8235ad, C37046c c37046c) {\n boolean z;\n AppMethodBeat.m2504i(122756);\n if ((!C8230j.m14535c(c8235ad) || c8235ad.eci()) && !C41444ag.m72304ap(c8235ad)) {\n z = false;\n } else {\n z = true;\n }\n if (z) {\n AppMethodBeat.m2505o(122756);\n return true;\n }\n c44919o.initialize();\n ArrayDeque arrayDeque = c44919o.BKG;\n if (arrayDeque == null) {\n C25052j.dWJ();\n }\n Set set = c44919o.BKH;\n if (set == null) {\n C25052j.dWJ();\n }\n arrayDeque.push(c8235ad);\n while (true) {\n if (arrayDeque.isEmpty()) {\n z = false;\n } else {\n z = true;\n }\n if (!z) {\n c44919o.clear();\n AppMethodBeat.m2505o(122756);\n return false;\n } else if (set.size() > 1000) {\n Throwable illegalStateException = new IllegalStateException((\"Too many supertypes for type: \" + c8235ad + \". Supertypes = \" + C25035t.m39322a((Iterable) set, null, null, null, 0, null, null, 63)).toString());\n AppMethodBeat.m2505o(122756);\n throw illegalStateException;\n } else {\n C8235ad c8235ad2 = (C8235ad) arrayDeque.pop();\n C25052j.m39375o(c8235ad2, \"current\");\n if (set.add(c8235ad2)) {\n C37046c c37046c2;\n if (c8235ad2.eci()) {\n c37046c2 = C37049c.BKU;\n } else {\n c37046c2 = c37046c;\n }\n C37046c c37046c3 = (C25052j.m39373j(c37046c2, C37049c.BKU) ^ 1) != 0 ? c37046c2 : null;\n if (c37046c3 != null) {\n for (C46867w c46867w : c8235ad2.ejw().eap()) {\n C25052j.m39375o(c46867w, \"supertype\");\n C8235ad aJ = c37046c3.mo31381aJ(c46867w);\n if ((!C8230j.m14535c(aJ) || aJ.eci()) && !C41444ag.m72304ap(aJ)) {\n z = false;\n } else {\n z = true;\n }\n if (z) {\n c44919o.clear();\n AppMethodBeat.m2505o(122756);\n return true;\n }\n arrayDeque.add(aJ);\n }\n continue;\n } else {\n continue;\n }\n }\n }\n }\n }", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "@Test\n public void fsckMetricsUIDWrongLength() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromInt(3));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(2, errors);\n }", "private static boolean composeHangul(char paramChar1, char paramChar2, long paramLong, char[] paramArrayOfChar1, int[] paramArrayOfInt, int paramInt1, boolean paramBoolean, char[] paramArrayOfChar2, int paramInt2, UnicodeSet paramUnicodeSet)\n/* */ {\n/* 1682 */ int i = paramArrayOfInt[0];\n/* 1683 */ if (isJamoVTNorm32JamoV(paramLong))\n/* */ {\n/* */ \n/* 1686 */ paramChar1 = (char)(paramChar1 - 'ᄀ');\n/* 1687 */ if (paramChar1 < '\\023') {\n/* 1688 */ paramChar2 = (char)(44032 + (paramChar1 * '\\025' + (paramChar2 - 'ᅡ')) * 28);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1693 */ if (i != paramInt1)\n/* */ {\n/* */ \n/* 1696 */ char c1 = paramArrayOfChar1[i];\n/* 1697 */ char c2; if ((c2 = (char)(c1 - 'ᆧ')) < '\\034')\n/* */ {\n/* 1699 */ i++;\n/* 1700 */ paramChar2 = (char)(paramChar2 + c2);\n/* 1701 */ } else if (paramBoolean)\n/* */ {\n/* */ \n/* 1704 */ paramLong = getNorm32(c1);\n/* 1705 */ if ((isNorm32Regular(paramLong)) && ((paramLong & 0x8) != 0L))\n/* */ {\n/* 1707 */ DecomposeArgs localDecomposeArgs = new DecomposeArgs(null);\n/* 1708 */ int j = decompose(paramLong, 8, localDecomposeArgs);\n/* 1709 */ if ((localDecomposeArgs.length == 1) && ((c2 = (char)(extraData[j] - 'ᆧ')) < '\\034'))\n/* */ {\n/* */ \n/* */ \n/* 1713 */ i++;\n/* 1714 */ paramChar2 = (char)(paramChar2 + c2);\n/* */ }\n/* */ }\n/* */ }\n/* */ }\n/* 1719 */ if (nx_contains(paramUnicodeSet, paramChar2)) {\n/* 1720 */ if (!isHangulWithoutJamoT(paramChar2)) {\n/* 1721 */ i--;\n/* */ }\n/* 1723 */ return false;\n/* */ }\n/* 1725 */ paramArrayOfChar2[paramInt2] = paramChar2;\n/* 1726 */ paramArrayOfInt[0] = i;\n/* 1727 */ return true;\n/* */ }\n/* 1729 */ } else if (isHangulWithoutJamoT(paramChar1))\n/* */ {\n/* */ \n/* 1732 */ paramChar2 = (char)(paramChar1 + (paramChar2 - 'ᆧ'));\n/* 1733 */ if (nx_contains(paramUnicodeSet, paramChar2)) {\n/* 1734 */ return false;\n/* */ }\n/* 1736 */ paramArrayOfChar2[paramInt2] = paramChar2;\n/* 1737 */ paramArrayOfInt[0] = i;\n/* 1738 */ return true;\n/* */ }\n/* 1740 */ return false;\n/* */ }", "@Test(timeout = 4000)\n public void test105() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[9];\n DBUniqueConstraint dBUniqueConstraint0 = new DBUniqueConstraint(defaultDBTable0, \"Ron?<[u:{U\", false, stringArray0);\n // Undeclared exception!\n try { \n DBUtil.equivalent(dBUniqueConstraint0, (DBPrimaryKeyConstraint) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.DBUtil\", e);\n }\n }", "private void substituteValidFirstRoundResults(MultigetSliceResult result, Map<ByteBuffer, List<ColumnOrSuperColumn>> firstRoundResults)\n {\n for (Entry<ByteBuffer, List<ColumnOrSuperColumn>> keyAndCoscList : result.value.entrySet()) {\n ByteBuffer key = keyAndCoscList.getKey();\n List<ColumnOrSuperColumn> coscList = keyAndCoscList.getValue();\n\n int coscListIndex = -1;\n for (ColumnOrSuperColumn cosc : coscList) {\n coscListIndex++;\n\n if (cosc.isSetColumn()) {\n if (cosc.column.isSetFirst_round_was_valid() && cosc.column.first_round_was_valid) {\n Column firstRoundColumn = firstRoundResults.get(key).get(coscListIndex).column;\n assert ByteBufferUtil.bytesToHex(cosc.column.name).equals(ByteBufferUtil.bytesToHex(firstRoundColumn.name))\n : \"First and second round column names dont match\" + ByteBufferUtil.bytesToHex(cosc.column.name)\n + \"!=\" + ByteBufferUtil.bytesToHex(firstRoundColumn.name);\n cosc.column = firstRoundColumn;\n }\n } else if (cosc.isSetCounter_column() || cosc.isSetCounter_super_column()) {\n //WL TODO Add this logic\n assert false : \"Not yet handled\";\n } else {\n assert cosc.isSetSuper_column();\n\n int superColumnListIndex = -1;\n for (Column column : cosc.super_column.columns) {\n superColumnListIndex++;\n\n if (column.isSetFirst_round_was_valid() && column.first_round_was_valid) {\n Column firstRoundColumn = firstRoundResults.get(key).get(coscListIndex).super_column.getColumns().get(superColumnListIndex);\n assert column.name == firstRoundColumn.name : \"First and second round column names dont match\" + column.name + \"!=\" + firstRoundColumn.name;\n\n // Update the LVT of the firstRoundColumn to reflect its full validity interval\n firstRoundColumn.latest_valid_time = column.latest_valid_time;\n column = firstRoundColumn;\n }\n }\n }\n }\n }\n }", "private void calcPossibleMappingImpl(\n Collection<Vertex> currentSourceVertices,\n Collection<Vertex> currentTargetVertices,\n List<String> contextId,\n int contextIx,\n List<VertexContextSegment> contexts,\n Set<Vertex> usedSourceVertices,\n Set<Vertex> usedTargetVertices,\n String typeNameForDebug) {\n runningCheck.check();\n\n VertexContextSegment finalCurrentContext = contexts.get(contextIx);\n Map<String, ImmutableList<Vertex>> sourceGroups = FpKit.filterAndGroupingBy(currentSourceVertices,\n v -> finalCurrentContext.filter(v, sourceGraph),\n v -> finalCurrentContext.idForVertex(v, sourceGraph));\n Map<String, ImmutableList<Vertex>> targetGroups = FpKit.filterAndGroupingBy(currentTargetVertices,\n v -> finalCurrentContext.filter(v, targetGraph),\n v -> finalCurrentContext.idForVertex(v, targetGraph));\n\n\n List<String> deletedContexts = new ArrayList<>();\n List<String> insertedContexts = new ArrayList<>();\n List<String> sameContexts = new ArrayList<>();\n Util.diffNamedList(sourceGroups.keySet(), targetGroups.keySet(), deletedContexts, insertedContexts, sameContexts);\n\n // for each unchanged context we descend recursively into\n for (String sameContext : sameContexts) {\n ImmutableList<Vertex> sourceVerticesInContext = sourceGroups.get(sameContext);\n ImmutableList<Vertex> targetVerticesInContext = targetGroups.get(sameContext);\n\n List<String> currentContextId = concat(contextId, sameContext);\n if (contexts.size() > contextIx + 1) {\n calcPossibleMappingImpl(sourceVerticesInContext, targetVerticesInContext, currentContextId, contextIx + 1, contexts, usedSourceVertices, usedTargetVertices, typeNameForDebug);\n }\n /**\n * Either there was no context segment left or not all vertices were relevant for\n * Either way: fill up with isolated vertices and record as possible mapping\n */\n Set<Vertex> notUsedSource = new LinkedHashSet<>(sourceVerticesInContext);\n notUsedSource.removeAll(usedSourceVertices);\n Set<Vertex> notUsedTarget = new LinkedHashSet<>(targetVerticesInContext);\n notUsedTarget.removeAll(usedTargetVertices);\n\n possibleMappings.putPossibleMappings(currentContextId, notUsedSource, notUsedTarget, typeNameForDebug);\n usedSourceVertices.addAll(notUsedSource);\n usedTargetVertices.addAll(notUsedTarget);\n }\n\n /**\n * update the used vertices with the deleted and inserted contexts\n */\n Set<Vertex> possibleSourceVertices = new LinkedHashSet<>();\n for (String deletedContext : deletedContexts) {\n ImmutableList<Vertex> vertices = sourceGroups.get(deletedContext);\n for (Vertex sourceVertex : vertices) {\n if (!usedSourceVertices.contains(sourceVertex)) {\n possibleSourceVertices.add(sourceVertex);\n }\n }\n usedSourceVertices.addAll(vertices);\n }\n\n Set<Vertex> possibleTargetVertices = new LinkedHashSet<>();\n for (String insertedContext : insertedContexts) {\n ImmutableList<Vertex> vertices = targetGroups.get(insertedContext);\n for (Vertex targetVertex : vertices) {\n if (!usedTargetVertices.contains(targetVertex)) {\n possibleTargetVertices.add(targetVertex);\n }\n }\n usedTargetVertices.addAll(vertices);\n }\n if (contextId.size() == 0) {\n contextId = singletonList(typeNameForDebug);\n }\n possibleMappings.putPossibleMappings(contextId, possibleSourceVertices, possibleTargetVertices, typeNameForDebug);\n }", "@Test\n public void testIncorrectId(){\n UserRegisterKYC idTooLong = new UserRegisterKYC(\"hello\",\"S12345678B\",\"26/02/1995\",\"738583\");\n int requestResponse = idTooLong.sendRegisterRequest();\n assertEquals(400, requestResponse);\n\n UserRegisterKYC nonAlphanumId = new UserRegisterKYC(\"hello\",\"S12345!8B\",\"26/02/1995\",\"738583\");\n requestResponse = nonAlphanumId.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC invalidPrefixId = new UserRegisterKYC(\"hello\",\"A\"+validId3.substring(1),\"26/02/1995\",\"738583\");\n requestResponse = invalidPrefixId.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC alphaInMiddleId = new UserRegisterKYC(\"hello\",\"S1234A68B\",\"26/02/1995\",\"738583\");\n requestResponse = alphaInMiddleId.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC idTooShort = new UserRegisterKYC(\"hello\",\"S123678B\",\"26/02/1995\",\"738583\");\n requestResponse = idTooShort.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n UserRegisterKYC invalidChecksum = new UserRegisterKYC(\"hello\",\"S1234578B\",\"26/02/1995\",\"738583\");\n requestResponse = invalidChecksum.sendRegisterRequest();\n assertEquals(400,requestResponse);\n\n }", "void removeBrokenRefs() \r\n {\n\r\n if (LOG.isTraceOn()) LOG.trace(\"BEGIN removeBrokenRefs\"); \r\n\r\n Iterator compItr = new ComponentTreeIterator(\r\n (BComponent) BOrd.make(\"slot:/\").resolve(service, null).get());\r\n\r\n // check every component\r\n while (compItr.hasNext())\r\n {\r\n BComponent comp = (BComponent) compItr.next();\r\n HDict tags = BHDict.findTagAnnotation(comp);\r\n if (tags == null) continue;\r\n\r\n // check if any of the tags are a broken ref\r\n Set brokenRefs = null;\r\n Iterator tagItr = tags.iterator();\r\n while (tagItr.hasNext())\r\n {\r\n Map.Entry e = (Map.Entry) tagItr.next();\r\n String name = (String) e.getKey();\r\n HVal val = (HVal) e.getValue();\r\n\r\n if (val instanceof HRef)\r\n {\r\n // try to resolve the ref\r\n try\r\n {\r\n BComponent lookup = tagMgr.lookupComponent((HRef) val);\r\n if (lookup == null)\r\n throw new IllegalStateException(\"Cannot find component for \" + val);\r\n }\r\n // failed!\r\n catch (Exception e2)\r\n {\r\n LOG.warning(\r\n \"broken ref '\" + name + \"' found in \" + \r\n comp.getSlotPath());\r\n\r\n if (brokenRefs == null)\r\n brokenRefs = new HashSet();\r\n brokenRefs.add(name);\r\n }\r\n }\r\n }\r\n\r\n // at least one broken ref was found\r\n if (brokenRefs != null)\r\n {\r\n HDictBuilder hdb = new HDictBuilder();\r\n tagItr = tags.iterator();\r\n while (tagItr.hasNext())\r\n {\r\n Map.Entry e = (Map.Entry) tagItr.next();\r\n String name = (String) e.getKey();\r\n HVal val = (HVal) e.getValue();\r\n\r\n if (!brokenRefs.contains(name))\r\n hdb.add(name, val);\r\n }\r\n comp.set(\"haystack\", BHDict.make(hdb.toDict()));\r\n }\r\n }\r\n\r\n if (LOG.isTraceOn()) LOG.trace(\"END removeBrokenRefs\"); \r\n }", "private void assignMissingResidueIds() {\n \t\tfor (Atom atom: atomVector) {\n \t\t\tif (atom.residue_id == Integer.MIN_VALUE) {\n \t\t\t\tatom.residue_id = atom.authorResidue_id;\n \t\t\t\tatom.nonpolymer = true;\n \t\t\t}\n \t\t}\n \t}", "private void ssMergeForward(int r16, int[] r17, int r18, int r19, int r20, int r21, int r22) {\n /*\n r15 = this;\n r3 = r15.SA;\n r13 = r20 - r19;\n r13 = r13 + r18;\n r4 = r13 + -1;\n r13 = r20 - r19;\n r0 = r17;\n r1 = r18;\n r2 = r19;\n ssBlockSwap(r0, r1, r3, r2, r13);\n r12 = r3[r19];\n r5 = r19;\n r7 = r18;\n r9 = r20;\n L_0x001b:\n r13 = r17[r7];\n r13 = r13 + r16;\n r14 = r3[r9];\n r14 = r14 + r16;\n r0 = r22;\n r11 = r15.ssCompare(r13, r14, r0);\n if (r11 >= 0) goto L_0x0044;\n L_0x002b:\n r6 = r5 + 1;\n r13 = r17[r7];\n r3[r5] = r13;\n if (r4 > r7) goto L_0x0037;\n L_0x0033:\n r17[r7] = r12;\n r5 = r6;\n L_0x0036:\n return;\n L_0x0037:\n r8 = r7 + 1;\n r13 = r3[r6];\n r17[r7] = r13;\n r13 = r17[r8];\n if (r13 < 0) goto L_0x00d5;\n L_0x0041:\n r7 = r8;\n r5 = r6;\n goto L_0x001b;\n L_0x0044:\n if (r11 <= 0) goto L_0x0079;\n L_0x0046:\n r6 = r5 + 1;\n r13 = r3[r9];\n r3[r5] = r13;\n r10 = r9 + 1;\n r13 = r3[r6];\n r3[r9] = r13;\n r0 = r21;\n if (r0 > r10) goto L_0x0072;\n L_0x0056:\n r8 = r7;\n L_0x0057:\n if (r8 >= r4) goto L_0x0068;\n L_0x0059:\n r5 = r6 + 1;\n r13 = r17[r8];\n r3[r6] = r13;\n r7 = r8 + 1;\n r13 = r3[r5];\n r17[r8] = r13;\n r8 = r7;\n r6 = r5;\n goto L_0x0057;\n L_0x0068:\n r13 = r17[r8];\n r3[r6] = r13;\n r17[r8] = r12;\n r9 = r10;\n r7 = r8;\n r5 = r6;\n goto L_0x0036;\n L_0x0072:\n r13 = r3[r10];\n if (r13 < 0) goto L_0x00d1;\n L_0x0076:\n r9 = r10;\n r5 = r6;\n goto L_0x001b;\n L_0x0079:\n r13 = r3[r9];\n r13 = r13 ^ -1;\n r3[r9] = r13;\n L_0x007f:\n r6 = r5 + 1;\n r13 = r17[r7];\n r3[r5] = r13;\n if (r4 > r7) goto L_0x008b;\n L_0x0087:\n r17[r7] = r12;\n r5 = r6;\n goto L_0x0036;\n L_0x008b:\n r8 = r7 + 1;\n r13 = r3[r6];\n r17[r7] = r13;\n r13 = r17[r8];\n if (r13 < 0) goto L_0x00ce;\n L_0x0095:\n r5 = r6;\n L_0x0096:\n r6 = r5 + 1;\n r13 = r3[r9];\n r3[r5] = r13;\n r10 = r9 + 1;\n r13 = r3[r6];\n r3[r9] = r13;\n r0 = r21;\n if (r0 > r10) goto L_0x00c2;\n L_0x00a6:\n if (r8 >= r4) goto L_0x00b7;\n L_0x00a8:\n r5 = r6 + 1;\n r13 = r17[r8];\n r3[r6] = r13;\n r7 = r8 + 1;\n r13 = r3[r5];\n r17[r8] = r13;\n r8 = r7;\n r6 = r5;\n goto L_0x00a6;\n L_0x00b7:\n r13 = r17[r8];\n r3[r6] = r13;\n r17[r8] = r12;\n r9 = r10;\n r7 = r8;\n r5 = r6;\n goto L_0x0036;\n L_0x00c2:\n r13 = r3[r10];\n if (r13 < 0) goto L_0x00cb;\n L_0x00c6:\n r9 = r10;\n r7 = r8;\n r5 = r6;\n goto L_0x001b;\n L_0x00cb:\n r9 = r10;\n r5 = r6;\n goto L_0x0096;\n L_0x00ce:\n r7 = r8;\n r5 = r6;\n goto L_0x007f;\n L_0x00d1:\n r9 = r10;\n r5 = r6;\n goto L_0x0046;\n L_0x00d5:\n r7 = r8;\n r5 = r6;\n goto L_0x002b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.ssMergeForward(int, int[], int, int, int, int, int):void\");\n }", "@Test\n public void testDisconnectBidirectionalReferences() throws Exception {\n AtlasEntity.AtlasEntitiesWithExtInfo hrDept = TestUtilsV2.createDeptEg2();\n init();\n final EntityMutationResponse hrDeptCreationResponse = entityStore.createOrUpdate(new AtlasEntityStream(hrDept), false);\n\n final AtlasEntityHeader deptCreated = hrDeptCreationResponse.getFirstCreatedEntityByTypeName(DEPARTMENT_TYPE);\n final AtlasEntityHeader maxEmployee = hrDeptCreationResponse.getCreatedEntityByTypeNameAndAttribute(TestUtilsV2.EMPLOYEE_TYPE, NAME, \"Max\");\n final AtlasEntityHeader johnEmployee = hrDeptCreationResponse.getCreatedEntityByTypeNameAndAttribute(TestUtilsV2.EMPLOYEE_TYPE, NAME, \"John\");\n final AtlasEntityHeader janeEmployee = hrDeptCreationResponse.getCreatedEntityByTypeNameAndAttribute(TestUtilsV2.MANAGER_TYPE, NAME, \"Jane\");\n final AtlasEntityHeader juliusEmployee = hrDeptCreationResponse.getCreatedEntityByTypeNameAndAttribute(TestUtilsV2.MANAGER_TYPE, NAME, \"Julius\");\n\n ITypedReferenceableInstance hrDeptInstance = metadataService.getEntityDefinition(deptCreated.getGuid());\n Map<String, String> nameGuidMap = getEmployeeNameGuidMap(hrDeptInstance);\n\n // Verify that Max is one of Jane's subordinates.\n ITypedReferenceableInstance jane = metadataService.getEntityDefinition(janeEmployee.getGuid());\n Object refValue = jane.get(\"subordinates\");\n Assert.assertTrue(refValue instanceof List);\n List<Object> subordinates = (List<Object>)refValue;\n Assert.assertEquals(subordinates.size(), 2);\n List<String> subordinateIds = new ArrayList<>(2);\n for (Object listValue : subordinates) {\n Assert.assertTrue(listValue instanceof ITypedReferenceableInstance);\n ITypedReferenceableInstance employee = (ITypedReferenceableInstance) listValue;\n subordinateIds.add(employee.getId()._getId());\n }\n Assert.assertTrue(subordinateIds.contains(maxEmployee.getGuid()));\n\n init();\n EntityMutationResponse entityResult = entityStore.deleteById(maxEmployee.getGuid());\n ITypedReferenceableInstance john = metadataService.getEntityDefinitionReference(TestUtilsV2.EMPLOYEE_TYPE, NAME, \"John\");\n\n assertEquals(entityResult.getDeletedEntities().size(), 1);\n assertEquals(entityResult.getDeletedEntities().get(0).getGuid(), maxEmployee.getGuid());\n assertEquals(entityResult.getUpdatedEntities().size(), 3);\n\n assertEquals(extractGuids(entityResult.getUpdatedEntities()), Arrays.asList(janeEmployee.getGuid(), deptCreated.getGuid(), johnEmployee.getGuid()));\n assertEntityDeleted(maxEmployee.getGuid());\n\n assertMaxForTestDisconnectBidirectionalReferences(nameGuidMap);\n\n // Now delete jane - this should disconnect the manager reference from her\n // subordinate.\n init();\n entityResult = entityStore.deleteById(janeEmployee.getGuid());\n assertEquals(entityResult.getDeletedEntities().size(), 1);\n assertEquals(entityResult.getDeletedEntities().get(0).getGuid(), janeEmployee.getGuid());\n assertEquals(entityResult.getUpdatedEntities().size(), 2);\n assertEquals(extractGuids(entityResult.getUpdatedEntities()), Arrays.asList(deptCreated.getGuid(), johnEmployee.getGuid()));\n\n assertEntityDeleted(janeEmployee.getGuid());\n\n final AtlasEntity.AtlasEntityWithExtInfo johnUpdated = entityStore.getById(johnEmployee.getGuid());\n assertJohnForTestDisconnectBidirectionalReferences(johnUpdated, janeEmployee.getGuid());\n }", "@Test\n public void testCheckExternalIdUniquenessForUpdate3() {\n\n try {\n\n Map<String, String> externalIdReqMap = new HashMap<>();\n externalIdReqMap.put(JsonKey.ID, \"123209-453445934-23128u3423-dsafsa32c43-few43\");\n externalIdReqMap.put(JsonKey.PROVIDER, \"AP\");\n externalIdReqMap.put(JsonKey.ID_TYPE, \"PAN\");\n externalIdReqMap.put(JsonKey.OPERATION, JsonKey.UPDATE);\n List<Map<String, String>> extIdList = new ArrayList<>();\n extIdList.add(externalIdReqMap);\n\n User user2 = new User();\n user2.setUserId(\"456456\");\n user2.setExternalIds(extIdList);\n\n Util.checkExternalIdUniqueness(user2, JsonKey.UPDATE);\n } catch (Exception ex) {\n System.out.println(\"4\" + ex.getMessage());\n assertTrue(\n ex.getMessage()\n .equalsIgnoreCase(\n \"External ID (id: 123209-453445934-23128u3423-dsafsa32c43-few43, idType: PAN, provider: AP) not found for given user.\"));\n }\n }", "public static boolean overlapUPA(XSElementDecl element1, XSElementDecl element2, SubstitutionGroupHandler sgHandler) {\n/* 1445 */ if (element1.fName == element2.fName && element1.fTargetNamespace == element2.fTargetNamespace)\n/* */ {\n/* 1447 */ return true;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 1452 */ XSElementDecl[] subGroup = sgHandler.getSubstitutionGroup(element1); int i;\n/* 1453 */ for (i = subGroup.length - 1; i >= 0; i--) {\n/* 1454 */ if ((subGroup[i]).fName == element2.fName && (subGroup[i]).fTargetNamespace == element2.fTargetNamespace)\n/* */ {\n/* 1456 */ return true;\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1462 */ subGroup = sgHandler.getSubstitutionGroup(element2);\n/* 1463 */ for (i = subGroup.length - 1; i >= 0; i--) {\n/* 1464 */ if ((subGroup[i]).fName == element1.fName && (subGroup[i]).fTargetNamespace == element1.fTargetNamespace)\n/* */ {\n/* 1466 */ return true;\n/* */ }\n/* */ } \n/* */ \n/* 1470 */ return false;\n/* */ }", "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 }", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32740L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32740 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.startsBefore(range0);\n range1.equals(range0);\n range0.equals(\"[ 32740 .. 2147483646 ]/0B\");\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.org.jcvi.jillion.core.Range$UnsignedByteStartLongLengthRange\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Test\n public void fsckFIXMetricsUIDLow() throws Exception {\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(0L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, true, false);\n assertEquals(1, errors);\n errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(0, errors);\n }", "private static boolean checkSimpleDerivation(XSSimpleType derived, XSSimpleType base, short block) {\n/* 188 */ if (derived == base) {\n/* 189 */ return true;\n/* */ }\n/* */ \n/* */ \n/* 193 */ if ((block & 0x2) != 0 || (derived\n/* 194 */ .getBaseType().getFinal() & 0x2) != 0) {\n/* 195 */ return false;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 200 */ XSSimpleType directBase = (XSSimpleType)derived.getBaseType();\n/* 201 */ if (directBase == base) {\n/* 202 */ return true;\n/* */ }\n/* */ \n/* 205 */ if (directBase != SchemaGrammar.fAnySimpleType && \n/* 206 */ checkSimpleDerivation(directBase, base, block)) {\n/* 207 */ return true;\n/* */ }\n/* */ \n/* */ \n/* 211 */ if ((derived.getVariety() == 2 || derived\n/* 212 */ .getVariety() == 3) && base == SchemaGrammar.fAnySimpleType)\n/* */ {\n/* 214 */ return true;\n/* */ }\n/* */ \n/* */ \n/* 218 */ if (base.getVariety() == 3) {\n/* 219 */ XSObjectList subUnionMemberDV = base.getMemberTypes();\n/* 220 */ int subUnionSize = subUnionMemberDV.getLength();\n/* 221 */ for (int i = 0; i < subUnionSize; i++) {\n/* 222 */ base = (XSSimpleType)subUnionMemberDV.item(i);\n/* 223 */ if (checkSimpleDerivation(derived, base, block)) {\n/* 224 */ return true;\n/* */ }\n/* */ } \n/* */ } \n/* 228 */ return false;\n/* */ }", "@Test\n public void testIDPChange() throws Exception {\n UserMultiID umk = createUMK();\n UserMultiID eppnKey = new UserMultiID(umk.getEppn());\n UserMultiID eptidKey = new UserMultiID(umk.getEptid());\n UserMultiID openIdKey = new UserMultiID(umk.getOpenID());\n UserMultiID openIdConnectKey = new UserMultiID(umk.getOpenIDConnect());\n UserMultiID ruKey = new UserMultiID(umk.getRemoteUserName());\n\n String badIdp = \"fake:idp\";\n // now we save a user with the right id, then try to get it with a different idp.\n checkGetUser(ruKey, badIdp);\n checkGetUser(eppnKey, badIdp);\n checkGetUser(eptidKey, badIdp);\n checkGetUser(openIdKey, badIdp);\n checkGetUser(openIdConnectKey, badIdp);\n }", "private static void fillErrorInfoList() {\n\t\tsErrorInfoArray.clear();\n\n\t\tif (sLevel == CorrectionLevel.ONE_BIT\n\t\t\t\t|| sLevel == CorrectionLevel.TWO_BIT) {\n\t\t\tint[] msg = new int[14];\n\n\t\t\tfor (int i = 0; i < 112; i++) {\n\t\t\t\tint bytepos0 = i / 8;\n\t\t\t\tint mask0 = 1 << i % 8;\n\t\t\t\tmsg[bytepos0] ^= mask0; // create error0\n\t\t\t\tErrorInfo errorInfo0 = new ErrorInfo();\n\t\t\t\terrorInfo0.mSyndrome = getChecksum(msg);\n\t\t\t\terrorInfo0.mBitCount = 1;\n\t\t\t\terrorInfo0.mBitPositions[0] = i;\n\n\t\t\t\tsErrorInfoArray.put(errorInfo0.mSyndrome, errorInfo0);\n\n\t\t\t\tif (sLevel == CorrectionLevel.TWO_BIT) {\n\t\t\t\t\tfor (int j = i + 1; j < 112; j++) {\n\t\t\t\t\t\tint bytepos1 = j / 8;\n\t\t\t\t\t\tint mask1 = 1 << j % 8;\n\t\t\t\t\t\tmsg[bytepos1] ^= mask1; // create error1\n\t\t\t\t\t\tErrorInfo errorInfo1 = new ErrorInfo();\n\t\t\t\t\t\terrorInfo1.mSyndrome = getChecksum(msg);\n\t\t\t\t\t\terrorInfo1.mBitCount = 2;\n\t\t\t\t\t\terrorInfo1.mBitPositions[0] = i;\n\t\t\t\t\t\terrorInfo1.mBitPositions[1] = j;\n\n\t\t\t\t\t\tsErrorInfoArray.put(errorInfo1.mSyndrome, errorInfo1);\n\n\t\t\t\t\t\tmsg[bytepos1] ^= mask1; // revert error1\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tmsg[bytepos0] ^= mask0; // revert error0\n\t\t\t}\n\t\t}\n\t}", "public static boolean overlapUPA(Object decl1, Object decl2, SubstitutionGroupHandler sgHandler) {\n/* 1508 */ if (decl1 instanceof XSElementDecl) {\n/* 1509 */ if (decl2 instanceof XSElementDecl) {\n/* 1510 */ return overlapUPA((XSElementDecl)decl1, (XSElementDecl)decl2, sgHandler);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 1515 */ return overlapUPA((XSElementDecl)decl1, (XSWildcardDecl)decl2, sgHandler);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1521 */ if (decl2 instanceof XSElementDecl) {\n/* 1522 */ return overlapUPA((XSElementDecl)decl2, (XSWildcardDecl)decl1, sgHandler);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 1527 */ return overlapUPA((XSWildcardDecl)decl1, (XSWildcardDecl)decl2);\n/* */ }", "public static boolean checkPermutaionMap(String s1, String s2) {\n if (s1.length() != s2.length()) return false;\n\n int[] charMap = new int[128];\n for (int i = 0; i < s1.length(); ++i) {\n charMap[s1.charAt(i)]++;\n }\n\n for (int i = 0; i < s2.length(); ++i) {\n if (--charMap[s2.charAt(i)] < 0) return false;\n }\n\n return true;\n }", "@Test\n public void testCheckExternalIdUniquenessForUpdate() {\n\n try {\n user.setUserId(\"456456\");\n user.getExternalIds().get(0).put(JsonKey.OPERATION, JsonKey.DELETE);\n Util.checkExternalIdUniqueness(user, JsonKey.UPDATE);\n } catch (Exception ex) {\n System.out.println(\"2\" + ex.getMessage());\n assertTrue(\n ex.getMessage()\n .equalsIgnoreCase(\n \"External ID (id: 123209-453445934-23128u3423-dsafsa32c43-few43-wesc49cjkf, idType: AAADHAR, provider: AP) not found for given user.\"));\n }\n }", "@Test\n\tpublic void testErrorPath() {\n\t\tint[] e1 = new int[] {4133}, // error too not 5 digits ZIPE003\n\t\t\t e2 = {942004299}, // error greater than 5 digits ZIPE003\n\t\t\t e3 = {-94600}, // error zip negative number ZIPE004\n\t\t\t e4 = {50000, 40000}, // lower bound larger than upper bound ZIPE002\n\t\t\t e5 = {30000, 40000, 50000}, // too many zipCodes ZIPE001\n\t\t\t e6 = {}, //Empty ZIPE006\n\t\t e7 = {99999, -99999},//ZIPE005 = Upper range bound needs to be greater than zero.\n\t\t e8 = {99999},//ZIPE000 = Must provide more than one range to compare.\n\t e9 = {00000};//ZIPE007 = Zip Code greater than 0\n\t \t\n\t\tSystem.out.println(\"********************************** Start testErrorPath() **********************************\");\n\t\t\n\t\tSystem.out.print(\"Input ZipCode Ranges:---------------> \");\n\t\tZipCodeUtil.printZipRange(e1, e2, e3, e4, e5,e6, e7,e8, e9);\n\t\t\n\t\ttry{\n\t\t\tmergedZips = ZipCodeUtil.getInstance().mergeUniqueRanges(e1);\n\t\t\n\t\t} catch(InvalidZipCode e){\n\t\t\tAssert.assertEquals(ZipMsg.ZIPE003, e.getErrorCode());\n\t\t}\n\n\t\ttry{\n\t\t\tmergedZips = ZipCodeUtil.getInstance().mergeUniqueRanges(e2);\n\t\t\n\t\t} catch(InvalidZipCode e){\n\t\t\t\n\t\t\tAssert.assertEquals(ZipMsg.ZIPE003, e.getErrorCode());\n\t\t}\n\n\t\ttry{\n\t\t\tmergedZips = ZipCodeUtil.getInstance().mergeUniqueRanges(e3);\n\t\t\n\t\t} catch(InvalidZipCode e){\n\t\t\t\n\t\t\tAssert.assertEquals(ZipMsg.ZIPE004, e.getErrorCode());\n\t\t}\n\t\ttry{\n\t\t\tmergedZips = ZipCodeUtil.getInstance().mergeUniqueRanges(e4);\n\t\t\n\t\t} catch(InvalidZipCode e){\n\t\t\t\n\t\t\tAssert.assertEquals(ZipMsg.ZIPE002, e.getErrorCode());\n\t\t}\n\t\ttry{\n\t\t\tmergedZips = ZipCodeUtil.getInstance().mergeUniqueRanges(e5);\n\t\t\n\t\t} catch(InvalidZipCode e){\n\t\t\t\n\t\t\tAssert.assertEquals(ZipMsg.ZIPE001, e.getErrorCode());\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tmergedZips = ZipCodeUtil.getInstance().mergeUniqueRanges(e6);\n\t\t\n\t\t} catch(InvalidZipCode e){\n\t\t\t\n\t\t\tAssert.assertEquals(ZipMsg.ZIPE006, e.getErrorCode());\n\t\t}\n\t\ttry{\n\t\t\tmergedZips = ZipCodeUtil.getInstance().mergeUniqueRanges(e7);\n\t\t\n\t\t} catch(InvalidZipCode e){\n\t\t\t\n\t\t\tAssert.assertEquals(ZipMsg.ZIPE005, e.getErrorCode());\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tmergedZips = ZipCodeUtil.getInstance().mergeUniqueRanges(e8);\n\t\t\n\t\t} catch(InvalidZipCode e){\n\t\t\t\n\t\t\tAssert.assertEquals(ZipMsg.ZIPE000, e.getErrorCode());\n\t\t}\n\n\t\ttry{\n\t\t\tZipCodeUtil.getInstance().canShipTo(e9[0]);\n\t\t\t\n\t\t} catch(InvalidZipCode e){\n\t\t\t\n\t\t\tAssert.assertEquals(ZipMsg.ZIPE007, e.getErrorCode());\n\t\t}\n\t\tfinally{\n\n\t\t\tSystem.out.println(\"********************************** End testErrorPath() **********************************\");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test38() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n long long0 = new Long(0L);\n Range range1 = Range.of(4294967295L);\n long long1 = range1.getBegin();\n assertEquals(4294967295L, long1);\n \n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n Range range2 = Range.ofLength(2147483647L);\n range1.intersection(range0);\n Range range3 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n range3.getEnd();\n boolean boolean0 = range2.intersects(range0);\n boolean boolean1 = range2.equals(\"numbeg of entries must be <= Integer.MAX_VALUE\");\n assertFalse(boolean1 == boolean0);\n \n Range range4 = Range.of(0L);\n assertFalse(range4.isEmpty());\n \n Range range5 = Range.of(1566L);\n List<Range> list2 = range5.complement(range2);\n assertFalse(list2.equals((Object)list0));\n assertTrue(list2.equals((Object)list1));\n }", "private void verifyUnchangedDerivedRelationships(String relationshipType, Collection<?> relationships,\n Collection<?> oldRelationships) {\n if (relationships.size() != oldRelationships.size()) {\n error = ArtificerConflictException.derivedRelationshipCreation(relationshipType);\n }\n }", "public static boolean isNFDSafe(long paramLong, int paramInt1, int paramInt2)\n/* */ {\n/* 585 */ if ((paramLong & paramInt1) == 0L) {\n/* 586 */ return true;\n/* */ }\n/* */ \n/* */ \n/* 590 */ if ((isNorm32Regular(paramLong)) && ((paramLong & paramInt2) != 0L)) {\n/* 591 */ DecomposeArgs localDecomposeArgs = new DecomposeArgs(null);\n/* */ \n/* 593 */ decompose(paramLong, paramInt2, localDecomposeArgs);\n/* 594 */ return localDecomposeArgs.cc == 0;\n/* */ }\n/* */ \n/* 597 */ return (paramLong & 0xFF00) == 0L;\n/* */ }", "static int modifiedCalcCircularRefElementOffset(long index, long mask) {\n/* 93 */ return (int)(index & mask) >> 1;\n/* */ }", "private static void resolveWeakTypes(byte[] dirs, byte[] levels, boolean ltr) {\n int i = 0;\n int limit = 0;\n while (limit < dirs.length) {\n byte level = levels[limit++];\n while (limit < dirs.length && levels[limit] == level) {\n ++limit;\n }\n \n byte prev = -1;\n byte cur = dirs[i];\n boolean lastStrongWasArabic = cur == AR;\n\n while (i < limit) {\n int ii = i + 1;\n byte next = (ii == limit) ? -1 : dirs[ii];\n if (next == EN && lastStrongWasArabic) {\n next = AN;\n }\n\n byte ncur = cur;\n\n switch (cur) {\n case L:\n case R:\n lastStrongWasArabic = false;\n break;\n\n case AR:\n lastStrongWasArabic = true;\n break;\n\n case ES:\n if (prev == EN && next == EN)\n ncur = EN;\n else\n ncur = ON;\n break;\n\n case CS:\n if (prev == EN && next == EN)\n ncur = EN;\n else if (prev == AN && next == AN)\n ncur = AN;\n else\n ncur = ON;\n break;\n\n case ET:\n if (prev == EN || next == EN) {\n ncur = EN;\n } else if (next == ET && !lastStrongWasArabic) {\n // forward scan to handle ET ET EN\n for (int j = ii + 1; j < limit; ++j) {\n byte dir = dirs[j];\n if (dir == ET) {\n continue;\n }\n\n byte nval = dir == EN ? EN : ON;\n\n while (ii < j) {\n dirs[ii++] = nval;\n }\n ncur = nval;\n next = dir;\n break;\n }\n } else {\n ncur = ON;\n }\n break;\n\n default:\n break;\n }\n\n dirs[i] = ncur;\n i = ii;\n prev = ncur;\n cur = next;\n }\n }\n }", "public interface ProtoStreamTypeIds {\n\n // 1 byte Ids 0..127 -> Reserved for critical messages used a lot\n int WRAPPED_MESSAGE = WrappedMessage.PROTOBUF_TYPE_ID; // Id 0 is reserved for ProtoStream WrappedMessage class\n int WRAPPED_BYTE_ARRAY = 1;\n int MARSHALLABLE_USER_OBJECT = 2;\n int BYTE_STRING = 3;\n int EMBEDDED_METADATA = 4;\n int EMBEDDED_EXPIRABLE_METADATA = 5;\n int EMBEDDED_LIFESPAN_METADATA = 6;\n int EMBEDDED_MAX_IDLE_METADATA = 7;\n int NUMERIC_VERSION = 8;\n int SIMPLE_CLUSTERED_VERSION = 9;\n int JGROUPS_ADDRESS = 10;\n int PROTOBUF_VALUE_WRAPPER = 11;\n int MEDIA_TYPE = 12;\n int PRIVATE_METADATA = 13;\n int SUBJECT = 14;\n\n // Priority counter values\n int COUNTER_VALUE = 125;\n int STRONG_COUNTER_KEY = 126;\n int WEAK_COUNTER_KEY = 127;\n\n // 2 byte Ids 128..16383\n // Commons range 128 -> 999\n int COMMONS_LOWER_BOUND = 128;\n int NULL_VALUE = COMMONS_LOWER_BOUND;\n\n // Core range 1000 -> 3999\n int CORE_LOWER_BOUND = 1000;\n int EVENT_LOG_CATEGORY = CORE_LOWER_BOUND;\n int EVENT_LOG_LEVEL = CORE_LOWER_BOUND + 1;\n int MARSHALLED_VALUE_IMPL = CORE_LOWER_BOUND + 2;\n int META_PARAMS_INTERNAL_METADATA = CORE_LOWER_BOUND + 3;\n int REMOTE_METADATA = CORE_LOWER_BOUND + 4;\n int UUID = CORE_LOWER_BOUND + 5;\n int IRAC_VERSION = CORE_LOWER_BOUND + 6;\n int IRAC_SITE_VERSION = CORE_LOWER_BOUND + 7;\n int IRAC_VERSION_ENTRY = CORE_LOWER_BOUND + 8;\n int IRAC_METADATA = CORE_LOWER_BOUND + 9;\n int ROLE_SET = CORE_LOWER_BOUND + 10;\n int ROLE = CORE_LOWER_BOUND + 11;\n int AUTHORIZATION_PERMISSION = CORE_LOWER_BOUND + 12;\n\n // Counter range 4000 -> 4199\n int COUNTERS_LOWER_BOUND = 4000;\n int COUNTER_STATE = COUNTERS_LOWER_BOUND;\n int COUNTER_CONFIGURATION = COUNTERS_LOWER_BOUND + 1;\n int COUNTER_TYPE = COUNTERS_LOWER_BOUND + 2;\n int COUNTER_STORAGE = COUNTERS_LOWER_BOUND + 3;\n\n // Query range 4200 -> 4399\n int QUERY_LOWER_BOUND = 4200;\n int QUERY_METRICS = QUERY_LOWER_BOUND + 1;\n int LOCAL_QUERY_STATS = QUERY_LOWER_BOUND + 2;\n int LOCAL_INDEX_STATS = QUERY_LOWER_BOUND + 3;\n int INDEX_INFO = QUERY_LOWER_BOUND + 4;\n int INDEX_INFO_ENTRY = QUERY_LOWER_BOUND + 5;\n int SEARCH_STATISTICS = QUERY_LOWER_BOUND + 6;\n int STATS_TASK = QUERY_LOWER_BOUND + 7;\n //int KNOWN_CLASS_KEY = QUERY_LOWER_BOUND;\n\n // Remote Query range 4400 -> 4599\n int REMOTE_QUERY_LOWER_BOUND = 4400;\n int REMOTE_QUERY_REQUEST = REMOTE_QUERY_LOWER_BOUND;\n int REMOTE_QUERY_RESPONSE = REMOTE_QUERY_LOWER_BOUND + 1;\n int ICKLE_FILTER_RESULT = REMOTE_QUERY_LOWER_BOUND + 2;\n int ICKLE_CONTINUOUS_QUERY_RESULT = REMOTE_QUERY_LOWER_BOUND + 3;\n\n // Lucene Directory 4600 -> 4799\n int LUCENE_LOWER_BOUND = 4600;\n int CHUNK_CACHE_KEY = LUCENE_LOWER_BOUND;\n int FILE_CACHE_KEY = LUCENE_LOWER_BOUND + 1;\n int FILE_LIST_CACHE_KEY = LUCENE_LOWER_BOUND + 2;\n int FILE_METADATA = LUCENE_LOWER_BOUND + 3;\n int FILE_READ_LOCK_KEY = LUCENE_LOWER_BOUND + 4;\n int FILE_LIST_CACHE_VALUE = LUCENE_LOWER_BOUND + 5;\n\n // Tasks + Scripting 4800 -> 4999\n int SCRIPTING_LOWER_BOUND = 4800;\n int EXECUTION_MODE = SCRIPTING_LOWER_BOUND;\n int SCRIPT_METADATA = SCRIPTING_LOWER_BOUND + 1;\n int DISTRIBUTED_SERVER_TASK = SCRIPTING_LOWER_BOUND + 2;\n int DISTRIBUTED_SERVER_TASK_PARAMETER = SCRIPTING_LOWER_BOUND + 3;\n int DISTRIBUTED_SERVER_TASK_CONTEXT = SCRIPTING_LOWER_BOUND + 4;\n\n // Memcached 5000 -> 5099\n int MEMCACHED_LOWER_BOUND = 5000;\n int MEMCACHED_METADATA = MEMCACHED_LOWER_BOUND;\n\n // RocksDB 5100 -> 5199\n int ROCKSDB_LOWER_BOUND = 5100;\n int ROCKSDB_EXPIRY_BUCKET = ROCKSDB_LOWER_BOUND;\n int ROCKSDB_PERSISTED_METADATA = ROCKSDB_LOWER_BOUND + 1;\n\n // Event-logger 5200 -> 5299\n int EVENT_LOGGER_LOWER_BOUND = 5200;\n int SERVER_EVENT_IMPL = EVENT_LOGGER_LOWER_BOUND;\n\n // MultiMap 5300 -> 5399\n int MULTIMAP_LOWER_BOUND = 5300;\n int MULTIMAP_BUCKET = MULTIMAP_LOWER_BOUND;\n int MULTIMAP_LIST_BUCKET = MULTIMAP_LOWER_BOUND + 2;\n int MULTIMAP_HASH_MAP_BUCKET = MULTIMAP_LOWER_BOUND + 3;\n int MULTIMAP_HASH_MAP_BUCKET_ENTRY = MULTIMAP_LOWER_BOUND + 4;\n int MULTIMAP_SET_BUCKET = MULTIMAP_LOWER_BOUND + 5;\n int MULTIMAP_OBJECT_WRAPPER = MULTIMAP_LOWER_BOUND + 6;\n int MULTIMAP_SORTED_SET_BUCKET = MULTIMAP_LOWER_BOUND + 7;\n int MULTIMAP_SORTED_SET_SCORED_ENTRY = MULTIMAP_LOWER_BOUND + 8;\n\n // Server Core 5400 -> 5799\n int SERVER_CORE_LOWER_BOUND = 5400;\n int IGNORED_CACHES = SERVER_CORE_LOWER_BOUND;\n int CACHE_BACKUP_ENTRY = SERVER_CORE_LOWER_BOUND + 1;\n int COUNTER_BACKUP_ENTRY = SERVER_CORE_LOWER_BOUND + 2;\n int IP_FILTER_RULES = SERVER_CORE_LOWER_BOUND + 3;\n int IP_FILTER_RULE = SERVER_CORE_LOWER_BOUND + 4;\n\n // JDBC Store 5800 -> 5899\n int JDBC_LOWER_BOUND = 5800;\n int JDBC_PERSISTED_METADATA = JDBC_LOWER_BOUND;\n\n // Spring integration 5900 -> 5999\n int SPRING_LOWER_BOUND = 5900;\n @Deprecated\n int SPRING_NULL_VALUE = SPRING_LOWER_BOUND;\n int SPRING_SESSION = SPRING_LOWER_BOUND + 1;\n int SPRING_SESSION_ATTRIBUTE = SPRING_LOWER_BOUND + 2;\n int SPRING_SESSION_REMAP = SPRING_LOWER_BOUND + 3;\n\n // Data distribution metrics 6000 -> 6099\n int DATA_DISTRIBUTION_LOWER_BOUND = 6000;\n int CACHE_DISTRIBUTION_INFO = DATA_DISTRIBUTION_LOWER_BOUND;\n int CLUSTER_DISTRIBUTION_INFO = DATA_DISTRIBUTION_LOWER_BOUND + 1;\n int KEY_DISTRIBUTION_INFO = DATA_DISTRIBUTION_LOWER_BOUND + 2;\n}", "private int previousSpecialPrefix(RuleBasedCollator collator, int ce)\n {\n backupInternalState(m_utilSpecialBackUp_);\n while (true) {\n // position ourselves at the begining of contraction sequence\n int offset = getContractionOffset(collator, ce);\n int entryoffset = offset;\n if (isBackwardsStart()) {\n ce = collator.m_contractionCE_[offset];\n break;\n }\n char prevch = (char)previousChar();\n while (prevch > collator.m_contractionIndex_[offset]) {\n // since contraction codepoints are ordered, we skip all that\n // are smaller\n offset ++;\n }\n if (prevch == collator.m_contractionIndex_[offset]) {\n ce = collator.m_contractionCE_[offset];\n }\n else {\n // if there is a completely ignorable code point in the middle\n // of a prefix, we need to act as if it's not there assumption:\n // 'real' noncharacters (*fffe, *ffff, fdd0-fdef are set to\n // zero)\n // lone surrogates cannot be set to zero as it would break\n // other processing\n int isZeroCE = collator.m_trie_.getLeadValue(prevch);\n // it's easy for BMP code points\n if (isZeroCE == 0) {\n continue;\n }\n else if (UTF16.isTrailSurrogate(prevch)\n || UTF16.isLeadSurrogate(prevch)) {\n // for supplementary code points, we have to check the next one\n // situations where we are going to ignore\n // 1. beginning of the string: schar is a lone surrogate\n // 2. schar is a lone surrogate\n // 3. schar is a trail surrogate in a valid surrogate\n // sequence that is explicitly set to zero.\n if (!isBackwardsStart()) {\n char lead = (char)previousChar();\n if (UTF16.isLeadSurrogate(lead)) {\n isZeroCE = collator.m_trie_.getLeadValue(lead);\n if (RuleBasedCollator.getTag(isZeroCE)\n == RuleBasedCollator.CE_SURROGATE_TAG_) {\n int finalCE = collator.m_trie_.getTrailValue(\n isZeroCE,\n prevch);\n if (finalCE == 0) {\n // this is a real, assigned completely\n // ignorable code point\n continue;\n }\n }\n }\n else {\n nextChar(); // revert to original offset\n // lone surrogate, completely ignorable\n continue;\n }\n nextChar(); // revert to original offset\n }\n else {\n // lone surrogate at the beggining, completely ignorable\n continue;\n }\n }\n\n // char was not in the table. prefix not found\n ce = collator.m_contractionCE_[entryoffset];\n }\n\n if (!isSpecialPrefixTag(ce)) {\n // char was in the contraction table, and the corresponding ce\n // is not a prefix ce. We found the prefix, break out of loop,\n // this ce will end up being returned.\n break;\n }\n }\n updateInternalState(m_utilSpecialBackUp_);\n return ce;\n }", "private void repairGenome() {\n if (checkGenome(this.code)) {\n return;\n }\n int[] counters = new int[8];\n for (int c : code) { counters[c]++; }\n for (int i = 0; i < 8; ++i) {\n if (counters[i] == 0) {\n while (true) {\n int newPos = r.nextInt(GENOME_SIZE);\n if (counters[this.code[newPos]] > 1) {\n counters[this.code[newPos]]--;\n this.code[newPos] = i;\n break;\n }\n }\n }\n }\n }", "private void m29109d() {\n PersistentConfiguration cVar = this.f22554b;\n if (cVar != null) {\n if (C6804i.m29033a(cVar.getString(\"UTDID2\"))) {\n String string = this.f22554b.getString(\"UTDID\");\n if (!C6804i.m29033a(string)) {\n m29110f(string);\n }\n }\n boolean z = false;\n String str = \"DID\";\n if (!C6804i.m29033a(this.f22554b.getString(str))) {\n this.f22554b.remove(str);\n z = true;\n }\n String str2 = \"EI\";\n if (!C6804i.m29033a(this.f22554b.getString(str2))) {\n this.f22554b.remove(str2);\n z = true;\n }\n String str3 = \"SI\";\n if (!C6804i.m29033a(this.f22554b.getString(str3))) {\n this.f22554b.remove(str3);\n z = true;\n }\n if (z) {\n this.f22554b.commit();\n }\n }\n }", "private void fixFaultyLinkTargets()\r\n \t{\r\n \t\tSimpleLogger.verbose(\" Checking for faulty TOC link targets...\");\r\n \r\n \t\tSimpleLogger.verbose(\" Book title = \" + pageTitle);\r\n \r\n \t\t// Exclude the 3 know exceptions and immediately return if one is found\r\n \t\tif (pageTitle.matches(\".*(ActionScript 1 und 2|Microsoft-Netzwerk|Shell-Programmierung).*\")) {\r\n \t\t\tSimpleLogger.verbose(\" Book title is an exception - no link fixing done\");\r\n \t\t\treturn;\r\n \t\t}\r\n \r\n \t\tint fixedLinksCount = 0;\r\n \t\tNodes links = xPathQuery(XPath.ALL_LINKS.query);\r\n \t\tfor (int i = 0; i < links.size(); i++) {\r\n \t\t\tElement link = (Element) links.get(i);\r\n \t\t\tString href = link.getAttributeValue(\"href\");\r\n \t\t\tString text = link.getValue();\r\n \t\t\tMatcher hrefMatcher = REGEX_HREF.matcher(href);\r\n \t\t\tMatcher textMatcher = REGEX_TEXT.matcher(text);\r\n \t\t\tif (hrefMatcher.matches() && textMatcher.matches()) {\r\n \t\t\t\tint hrefNumber = Integer.parseInt(hrefMatcher.group(2));\r\n \t\t\t\tint textNumber = Integer.parseInt(textMatcher.group(2));\r\n \t\t\t\tif (hrefNumber != textNumber) {\r\n \t\t\t\t\tSimpleLogger.debug(\" Chapter \" + text);\r\n \t\t\t\t\tSimpleLogger.debug(\" Faulty: \" + href);\r\n \t\t\t\t\tString numberFormat = \"%0\" + hrefMatcher.group(2).length() + \"d\";\r\n \t\t\t\t\thref=hrefMatcher.group(1) + String.format(numberFormat, textNumber) + hrefMatcher.group(3);\r\n \t\t\t\t\tSimpleLogger.debug(\" Fixed: \" + href);\r\n \t\t\t\t\tlink.getAttribute(\"href\").setValue(href);\r\n \t\t\t\t\tfixedLinksCount++;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\tSimpleLogger.verbose(\" Number of fixed links = \" + fixedLinksCount);\r\n \t}", "public void makePreferredOTTOLRelationshipsNOConflicts() {\n \n // TraversalDescription CHILDOF_TRAVERSAL = Traversal.description()\n // .relationships(RelType.TAXCHILDOF, Direction.INCOMING);\n \n // get the start point\n Node life = getLifeNode();\n System.out.println(life.getProperty(\"name\"));\n \n Transaction tx = beginTx();\n addToPreferredIndexes(life, ALLTAXA);\n HashSet<Long> traveled = new HashSet<Long>();\n int nNewRels = 0;\n try {\n // walk out to the tips from the base of the tree\n for (Node n : TAXCHILDOF_TRAVERSAL.traverse(life).nodes()) {\n if (n.hasRelationship(Direction.INCOMING, RelType.TAXCHILDOF) == false) {\n \n // when we hit a tip, start walking back\n Node curNode = n;\n while (curNode.hasRelationship(Direction.OUTGOING, RelType.TAXCHILDOF)) {\n Node startNode = curNode;\n if (traveled.contains((Long)startNode.getId())){\n \tbreak;\n }else{\n \ttraveled.add((Long)startNode.getId());\n }\n Node endNode = null;\n \n // if the current node already has a preferred relationship, we will just follow it\n if (startNode.hasRelationship(Direction.OUTGOING, RelType.PREFTAXCHILDOF)) {\n Relationship prefRel = startNode.getSingleRelationship(RelType.PREFTAXCHILDOF, Direction.OUTGOING);\n \n // make sure we don't get stuck in an infinite loop (should not happen, could do weird things to the graph)\n if (prefRel.getStartNode().getId() == prefRel.getEndNode().getId()) {\n System.out.println(\"pointing to itself \" + prefRel + \" \" + prefRel.getStartNode().getId() + \" \" + prefRel.getEndNode().getId());\n break;\n }\n \n // prepare to move on\n endNode = prefRel.getEndNode();\n \n } else {\n \n // if there is no preferred rel then they all point to the same end node; just follow the first non-looping relationship\n for (Relationship rel : curNode.getRelationships(RelType.TAXCHILDOF, Direction.OUTGOING)) {\n if (rel.getStartNode().getId() == rel.getEndNode().getId()) {\n System.out.println(\"pointing to itself \" + rel + \" \" + rel.getStartNode().getId() + \" \" + rel.getEndNode().getId());\n break;\n } else {\n endNode = rel.getEndNode();\n break;\n }\n }\n \n // if we found a dead-end, die\n if (endNode == null) {\n System.out.println(curNode.getProperty(\"name\"));\n System.out.println(\"Strange, this relationship seems to be pointing at a nonexistent node. Quitting.\");\n System.exit(0);\n }\n \n // create preferred relationships\n curNode.createRelationshipTo(endNode, RelType.PREFTAXCHILDOF);\n curNode.createRelationshipTo(endNode, RelType.TAXCHILDOF).setProperty(\"source\", \"ottol\");\n nNewRels += 1;\n }\n \n if (startNode == endNode) {\n System.out.println(startNode);\n System.out.println(\"The node seems to be pointing at itself. This is a problem. Quitting.\");\n System.exit(0);\n \n // prepare for next iteration\n } else {\n curNode = endNode;\n addToPreferredIndexes(startNode, ALLTAXA);\n }\n }\n }\n \n if (nNewRels % transaction_iter == 0) {\n System.out.println(nNewRels);\n // tx.success();\n // tx.finish();\n // tx = beginTx();\n }\n }\n tx.success();\n } finally {\n tx.finish();\n }\n }", "static void resolveSids0(java.lang.String r8, jcifs.smb.NtlmPasswordAuthentication r9, jcifs.smb.SID[] r10) throws java.io.IOException {\n /*\n r1 = 0;\n r2 = 0;\n r6 = sid_cache;\n monitor-enter(r6);\n r5 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0067 }\n r5.<init>();\t Catch:{ all -> 0x0067 }\n r7 = \"ncacn_np:\";\n r5 = r5.append(r7);\t Catch:{ all -> 0x0067 }\n r5 = r5.append(r8);\t Catch:{ all -> 0x0067 }\n r7 = \"[\\\\PIPE\\\\lsarpc]\";\n r5 = r5.append(r7);\t Catch:{ all -> 0x0067 }\n r5 = r5.toString();\t Catch:{ all -> 0x0067 }\n r1 = jcifs.dcerpc.DcerpcHandle.getHandle(r5, r9);\t Catch:{ all -> 0x0067 }\n r4 = r8;\n r5 = 46;\n r0 = r4.indexOf(r5);\t Catch:{ all -> 0x0067 }\n if (r0 <= 0) goto L_0x003d;\n L_0x002d:\n r5 = 0;\n r5 = r4.charAt(r5);\t Catch:{ all -> 0x0067 }\n r5 = java.lang.Character.isDigit(r5);\t Catch:{ all -> 0x0067 }\n if (r5 != 0) goto L_0x003d;\n L_0x0038:\n r5 = 0;\n r4 = r4.substring(r5, r0);\t Catch:{ all -> 0x0067 }\n L_0x003d:\n r3 = new jcifs.dcerpc.msrpc.LsaPolicyHandle;\t Catch:{ all -> 0x0067 }\n r5 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0067 }\n r5.<init>();\t Catch:{ all -> 0x0067 }\n r7 = \"\\\\\\\\\";\n r5 = r5.append(r7);\t Catch:{ all -> 0x0067 }\n r5 = r5.append(r4);\t Catch:{ all -> 0x0067 }\n r5 = r5.toString();\t Catch:{ all -> 0x0067 }\n r7 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r3.<init>(r1, r5, r7);\t Catch:{ all -> 0x0067 }\n resolveSids(r1, r3, r10);\t Catch:{ all -> 0x0079 }\n if (r1 == 0) goto L_0x0065;\n L_0x005d:\n if (r3 == 0) goto L_0x0062;\n L_0x005f:\n r3.close();\t Catch:{ all -> 0x0076 }\n L_0x0062:\n r1.close();\t Catch:{ all -> 0x0076 }\n L_0x0065:\n monitor-exit(r6);\t Catch:{ all -> 0x0076 }\n return;\n L_0x0067:\n r5 = move-exception;\n L_0x0068:\n if (r1 == 0) goto L_0x0072;\n L_0x006a:\n if (r2 == 0) goto L_0x006f;\n L_0x006c:\n r2.close();\t Catch:{ all -> 0x0073 }\n L_0x006f:\n r1.close();\t Catch:{ all -> 0x0073 }\n L_0x0072:\n throw r5;\t Catch:{ all -> 0x0073 }\n L_0x0073:\n r5 = move-exception;\n L_0x0074:\n monitor-exit(r6);\t Catch:{ all -> 0x0073 }\n throw r5;\n L_0x0076:\n r5 = move-exception;\n r2 = r3;\n goto L_0x0074;\n L_0x0079:\n r5 = move-exception;\n r2 = r3;\n goto L_0x0068;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: jcifs.smb.SID.resolveSids0(java.lang.String, jcifs.smb.NtlmPasswordAuthentication, jcifs.smb.SID[]):void\");\n }", "private void Canonicalize()\n\t{\n\t\tSingleRange CurrentRange;\n\t\tint i;\n\t\tint j;\n\t\tchar last;\n\t\tboolean Done;\n\n\t\t_canonical = true;\n\t\t//java.util.Collections.sort(_rangelist, 0, _rangelist.size(), new SingleRangeComparer());\n\t\tjava.util.Collections.sort(_rangelist, new SingleRangeComparer());\n\n\t\t//\n\t\t// Find and eliminate overlapping or abutting ranges\n\t\t//\n\n\t\tif (_rangelist.size() > 1)\n\t\t{\n\t\t\tDone = false;\n\n\t\t\tfor (i = 1, j = 0; ; i++)\n\t\t\t{\n\t\t\t\tfor (last = _rangelist.get(j)._last; ; i++)\n\t\t\t\t{\n\t\t\t\t\tif (i == _rangelist.size() || last == Lastchar)\n\t\t\t\t\t{\n\t\t\t\t\t\tDone = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((CurrentRange = _rangelist.get(i))._first > last + 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (last < CurrentRange._last)\n\t\t\t\t\t{\n\t\t\t\t\t\tlast = CurrentRange._last;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t_rangelist.get(j)._last = last;\n\n\t\t\t\tj++;\n\n\t\t\t\tif (Done)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif (j < i)\n\t\t\t\t{\n\t\t\t\t\t_rangelist.set(j, _rangelist.get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t\t//_rangelist.removeRange(j, _rangelist.size() - j + j);\n\t\t\t//@czc\n\t\t\tArrayExt.removeRange(_rangelist, j, _rangelist.size() - j + j);\n\t\t}\n\t}", "@Test\n public void fsckMetricsInconsistentForward() throws Exception {\n storage.addColumn(UID_TABLE, \"wtf\".getBytes(MockBase.ASCII()), ID_FAMILY, \n METRICS, new byte[] {0, 0, 1});\n storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L));\n int errors = (Integer)fsck.invoke(null, client, \n UID_TABLE, false, false);\n assertEquals(2, errors);\n }", "public static void signatureDiffUnidirectional(ShortResults results, RefSignature refSigPtr, Signature sigPtr) {\n // Not implemented\n }", "static int[] m11868m(Object[] r10, int r11, int r12, int r13) {\n /*\n r0 = 1\n if (r11 != r0) goto L_0x000e\n r11 = r10[r13]\n r12 = r13 ^ 1\n r10 = r10[r12]\n p067c.p068a.p134b.p136b.CollectPreconditions.m11785a(r11, r10)\n r10 = 0\n return r10\n L_0x000e:\n int r1 = r12 + -1\n int[] r12 = new int[r12]\n r2 = -1\n java.util.Arrays.fill(r12, r2)\n r3 = 0\n L_0x0017:\n if (r3 >= r11) goto L_0x0077\n int r4 = r3 * 2\n int r5 = r4 + r13\n r6 = r10[r5]\n r7 = r13 ^ 1\n int r4 = r4 + r7\n r4 = r10[r4]\n p067c.p068a.p134b.p136b.CollectPreconditions.m11785a(r6, r4)\n int r7 = r6.hashCode()\n int r7 = p067c.p068a.p134b.p136b.Hashing.m11897b(r7)\n L_0x002f:\n r7 = r7 & r1\n r8 = r12[r7]\n if (r8 != r2) goto L_0x0039\n r12[r7] = r5\n int r3 = r3 + 1\n goto L_0x0017\n L_0x0039:\n r9 = r10[r8]\n boolean r9 = r9.equals(r6)\n if (r9 != 0) goto L_0x0044\n int r7 = r7 + 1\n goto L_0x002f\n L_0x0044:\n java.lang.IllegalArgumentException r11 = new java.lang.IllegalArgumentException\n java.lang.StringBuilder r12 = new java.lang.StringBuilder\n r12.<init>()\n java.lang.String r13 = \"Multiple entries with same key: \"\n r12.append(r13)\n r12.append(r6)\n java.lang.String r13 = \"=\"\n r12.append(r13)\n r12.append(r4)\n java.lang.String r1 = \" and \"\n r12.append(r1)\n r1 = r10[r8]\n r12.append(r1)\n r12.append(r13)\n r13 = r8 ^ 1\n r10 = r10[r13]\n r12.append(r10)\n java.lang.String r10 = r12.toString()\n r11.<init>(r10)\n throw r11\n L_0x0077:\n return r12\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p067c.p068a.p134b.p136b.RegularImmutableMap.m11868m(java.lang.Object[], int, int, int):int[]\");\n }", "private static Set<C3246b> m11182c(List<Component<?>> list) {\n Set<C3246b> set;\n HashMap hashMap = new HashMap(list.size());\n for (Component next : list) {\n C3246b bVar = new C3246b(next);\n Iterator it = next.getProvidedInterfaces().iterator();\n while (true) {\n if (it.hasNext()) {\n Class cls = (Class) it.next();\n C3247c cVar = new C3247c(cls, !next.isValue());\n if (!hashMap.containsKey(cVar)) {\n hashMap.put(cVar, new HashSet());\n }\n Set set2 = (Set) hashMap.get(cVar);\n if (set2.isEmpty() || cVar.f18935b) {\n set2.add(bVar);\n } else {\n throw new IllegalArgumentException(String.format(\"Multiple components provide %s.\", new Object[]{cls}));\n }\n }\n }\n }\n for (Set<C3246b> it2 : hashMap.values()) {\n for (C3246b bVar2 : it2) {\n for (Dependency next2 : bVar2.mo20819c().getDependencies()) {\n if (next2.isDirectInjection() && (set = (Set) hashMap.get(new C3247c(next2.getInterface(), next2.isSet()))) != null) {\n for (C3246b bVar3 : set) {\n bVar2.mo20817a(bVar3);\n bVar3.mo20818b(bVar2);\n }\n }\n }\n }\n }\n HashSet hashSet = new HashSet();\n for (Set addAll : hashMap.values()) {\n hashSet.addAll(addAll);\n }\n return hashSet;\n }", "public void testNonExistanceID() throws Exception {\n\n // check that resolvement fails\n super.checkResolveNonExistanceID();\n\n // occurrence should be null\n assertNull(tag.getOccurrence());\n\n }", "private void checkMapKeyToNode(Affinity testAff, Affinity aff) {\n for (int i = 0; i < 10000; i++) {\n assertEquals(testAff.mapKeyToNode(i).id(), aff.mapKeyToNode(i).id());\n\n checkEqualCollection(testAff.mapKeyToPrimaryAndBackups(i), aff.mapKeyToPrimaryAndBackups(i));\n }\n }", "public static int m60268b(java.lang.String r3, int r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = java.lang.Long.parseLong(r3);\t Catch:{ NumberFormatException -> 0x0019 }\n r3 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;\n r2 = (r0 > r3 ? 1 : (r0 == r3 ? 0 : -1));\n if (r2 <= 0) goto L_0x000f;\n L_0x000b:\n r3 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;\n return r3;\n L_0x000f:\n r3 = 0;\n r2 = (r0 > r3 ? 1 : (r0 == r3 ? 0 : -1));\n if (r2 >= 0) goto L_0x0017;\n L_0x0015:\n r3 = 0;\n return r3;\n L_0x0017:\n r3 = (int) r0;\n return r3;\n L_0x0019:\n return r4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.http.d.b(java.lang.String, int):int\");\n }", "public void validateRpd8s22()\n {\n // Duplicate of 8s14\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n long long0 = 9223372036854775807L;\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem0, 243L, 466L);\n range2.isSubRangeOf(range1);\n Range range3 = Range.of((-636L), (-636L));\n range3.complement(range2);\n range1.intersects(range3);\n // Undeclared exception!\n try { \n Range.Comparators.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "protected void removeFixup(Node<T> u) {\n\t\twhile (u.colour > black) {\n\t\t\tif (u == r) {\n\t\t\t\tu.colour = black;\n\t\t\t} else if (u.parent.left.colour == red) {\n\t\t\t\tu = removeFixupCase1(u);\n\t\t\t} else if (u == u.parent.left) {\n\t\t\t\tu = removeFixupCase2(u);\n\t\t\t} else {\n\t\t\t\tu = removeFixupCase3(u);\n\t\t\t}\n\t\t}\n\t\tif (u != r) { // restore left-leaning property if needed\n\t\t\tNode<T> w = u.parent;\n\t\t\tif (w.right.colour == red && w.left.colour == black) {\n\t\t\t\tflipLeft(w);\n\t\t\t}\n\t\t}\n\t}", "public void testOnlyBaseMutated()\n {\n poly.getPrefixMapping().setNsPrefix( \"a\", alpha );\n assertEquals( null, g1.getPrefixMapping().getNsPrefixURI( \"a\" ) );\n assertEquals( null, g2.getPrefixMapping().getNsPrefixURI( \"a\" ) );\n assertEquals( alpha, gBase.getPrefixMapping().getNsPrefixURI( \"a\" ) );\n }", "public void getRemappedUID(int seqid, String uid);", "@Test\n public void testKeyUniqueness() throws Exception {\n UserMultiID umk = createUMK();\n UserMultiID eppnKey = new UserMultiID(umk.getEppn());\n UserMultiID eptidKey = new UserMultiID(umk.getEptid());\n UserMultiID openIdKey = new UserMultiID(umk.getOpenID());\n UserMultiID openIdConnectKey = new UserMultiID(umk.getOpenIDConnect());\n UserMultiID ruKey = new UserMultiID(umk.getRemoteUserName());\n\n String otherIDP = \"idp:other:\" + getRandomString();\n checkIDPUniqueness(eppnKey, otherIDP);\n checkIDPUniqueness(openIdConnectKey, otherIDP);\n checkIDPUniqueness(openIdKey, otherIDP);\n checkIDPUniqueness(ruKey, otherIDP);\n\n User eptidUser = newUser();\n eptidUser.setUserMultiKey(eptidKey);\n getUserStore().save(eptidUser);\n try {\n getDBSClient().getUser(eptidKey, otherIDP);\n assert false : \"Error: eptid must match idp exactly.\";\n } catch (Throwable t) {\n assert true;\n }\n\n }", "private void resolveConflicts( Grammar grammar, State state, List<Action> tshifts, List<Action> ntshifts)\n {\n List<State> splits = new ArrayList<State>();\n\n Collections.sort( tshifts);\n Collections.sort( ntshifts);\n \n State currSplit = null;\n State prevSplit = null;\n for( int i=1, k=1; i<tshifts.size(); i++, k++)\n {\n prevSplit = currSplit;\n currSplit = null;\n \n Action prev = tshifts.get( i-1);\n Action curr = tshifts.get( i);\n \n if ( isOverlapping( prev.symbols, curr.symbols))\n {\n boolean conflict =\n (curr.type == Action.Type.tshift && prev.type == Action.Type.reduce) || \n (curr.type == Action.Type.reduce && prev.type == Action.Type.tshift) ||\n (curr.type == Action.Type.reduce && prev.type == Action.Type.reduce) ||\n (curr.type == Action.Type.tshift && prev.type == Action.Type.tshift);\n\n if ( conflict)\n {\n long prevPriority = prev.getPriority();\n long currPriority = curr.getPriority();\n if ( prevPriority < currPriority)\n {\n log.debugf( \"\\nConflict in state %d:\\n %s\\n %s\", state.index, prev, curr);\n log.debug( \"Conflict resolved: second rule(s) have higher priority\");\n deleteStackOp( state, k-1); k--;\n }\n else if ( prevPriority > currPriority)\n {\n log.debugf( \"\\nConflict in state %d:\\n %s\\n %s\", state.index, prev, curr);\n log.debug( \"Conflict resolved: first rule(s) have higher priority\");\n deleteStackOp( state, k); k--;\n }\n else\n {\n log.warnf( \"\\nConflict in state %d:\\n %s\\n %s\", state.index, prev, curr);\n log.warn( \"Conflict resolved by splitting state\");\n splitState( state, k, prevSplit, splits);\n currSplit = splits.get( splits.size() - 1);\n conflicts++;\n }\n }\n }\n }\n \n for( int i=1; i<ntshifts.size(); i++)\n {\n prevSplit = currSplit;\n currSplit = null;\n \n Action prev = ntshifts.get( i-1);\n Action curr = ntshifts.get( i);\n \n if ( curr.symbols[ 0] <= prev.symbols[ 0])\n {\n if ( curr.type == Action.Type.ntshift && prev.type == Action.Type.ntshift && curr.itemSet.equals( prev.itemSet))\n {\n log.warnf( \"\\nConflict in state %d:\\n %s\\n %s\", state.index, prev, curr);\n conflicts++;\n }\n }\n }\n \n if ( splits.size() > 0)\n {\n for( State split: splits) \n {\n log.debugf( \"Created new state %d to resolve conflict.\", split.index);\n removeNulls( split);\n \n for( StackOp shift: split.stackOps)\n {\n if ( shift == nullShift)\n throw new IllegalStateException();\n }\n }\n\n state.splits = splits.toArray( new State[ 0]);\n state.stackOps = null;\n state.gotos = null;\n }\n }", "protected TypeNode insertForwardedReferenceNode (TypeNode parent, String typeName) \n {\n TypeNode node = null;\n \n\t\tif ( typeName == null || typeName.trim().length() == 0 ) return null;\n\n // Same type may be forwarded ref MULTIPLE TIMES\n node = (TypeNode) _nodesHashtable.get(typeName);\n if (node != null) {\n // BUG !!! This FORWARD reference is already in tree since the caller\n // of this method ALREADY checked that this forward ref IS NOT in tree.\n \n TypeDescription meta = (TypeDescription) ((TypeNode)_nodesHashtable.get(typeName)).getObject();\n if ( meta != null ) {\n // Already defined\n node.setLabel(TypeSystemUtils2.getMyShortName(typeName)); // Use short name\n node.setObject(meta);\n _nodesHashtable.put (((TypeDescription)node.getObject()).getName(), node);\n Trace.err(\"??? BUG -- Already defined for \" + typeName);\n }\n } else {\n // NEW forwarded ref\n node = new TypeNode(parent, UimaToolsUtil.getMyShortName(typeName));\n node.setObjectType(IItemTypeConstants.ITEM_TYPE_TYPE); \n // Not yet defined (Forward reference)\n // Cannot use short name if no TypeDescription object (see TreeBaseNode.compare)\n // Trace.trace(\"Forward reference to \" + typeName);\n // _nodesHashtable.put (node.getLabel(), node);\n _nodesHashtable.put (typeName, node);\n \n // Add to undefined type hashtable\n // _undefinedTypesHashtable.put (node.getLabel(), node);\n _undefinedTypesHashtable.put (typeName, node);\n }\n \t\t\n\t\t// Insert \"node\" as child of \"parent\"\n\t\tTypeNode tempNode;\n\t\tif (parent == null) {\n\t\t if (_rootSuper == null) {\n\t\t _rootSuper = node;\n\t\t } else {\n\t\t\t\tif ( (tempNode = _rootSuper.insertChild(node)) != null ) {\n\t\t\t\t\tif (tempNode != node) {\t\t\t\t \n\t\t\t\t\t\t// Duplicate Label\n // Use full name as label\n\t\t\t\t\t\tTrace.trace(\" 1 Duplicate (short name) Label:\" + node.getLabel());\n//\t\t\t\t\t\tnode.setShowFullName(true);\n\t\t\t\t\t\tif (node.getObject() != null) {\n // Use full name as label\n\t\t\t\t\t\t\tnode.setLabel(((TypeDescription)node.getObject()).getName());\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\t_rootSuper.insertChild(node);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t} else {\n\t\t\t// parent.insertChild (node);\n\t\t\tif ( (tempNode = parent.insertChild(node)) != null && tempNode != node) {\n\t\t\t\t// Duplicate Label. Use full name as label.\n Trace.trace(\" 2 Duplicate (short name) Label:\" + node.getLabel());\n//\t\t\t\tnode.setShowFullName(true);\n\t\t\t\tif (node.getObject() != null) {\n // Use full name as label\n\t\t\t\t\tnode.setLabel(((TypeDescription)node.getObject()).getName());\n\t\t\t\t}\t\t\t\t\n\t\t\t\tparent.insertChild(node);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn node;\n\t}", "public interface PFNsAreDifferent extends PFNConstraint\r\n{\r\n\tSet<String> getPfns();\r\n}", "protected Node<T> removeFixupCase1(Node<T> u) {\n\t\tflipRight(u.parent);\n\t\treturn u;\n\t}", "public final int hashCode(T r9) {\n /*\n r8 = this;\n r0 = r8.zzmi;\n r1 = 0;\n r0 = r0.length;\n r2 = r1;\n L_0x0005:\n if (r1 >= r0) goto L_0x012e;\n L_0x0007:\n r3 = r8.zzag(r1);\n r4 = r8.zzmi;\n r4 = r4[r1];\n r5 = 1048575; // 0xfffff float:1.469367E-39 double:5.18065E-318;\n r5 = r5 & r3;\n r5 = (long) r5;\n r7 = 267386880; // 0xff00000 float:2.3665827E-29 double:1.321066716E-315;\n r3 = r3 & r7;\n r3 = r3 >>> 20;\n r7 = 37;\n switch(r3) {\n case 0: goto L_0x011b;\n case 1: goto L_0x0110;\n case 2: goto L_0x0109;\n case 3: goto L_0x0109;\n case 4: goto L_0x0102;\n case 5: goto L_0x0109;\n case 6: goto L_0x0102;\n case 7: goto L_0x00f7;\n case 8: goto L_0x00ea;\n case 9: goto L_0x00dc;\n case 10: goto L_0x00d1;\n case 11: goto L_0x0102;\n case 12: goto L_0x0102;\n case 13: goto L_0x0102;\n case 14: goto L_0x0109;\n case 15: goto L_0x0102;\n case 16: goto L_0x0109;\n case 17: goto L_0x00ca;\n case 18: goto L_0x00d1;\n case 19: goto L_0x00d1;\n case 20: goto L_0x00d1;\n case 21: goto L_0x00d1;\n case 22: goto L_0x00d1;\n case 23: goto L_0x00d1;\n case 24: goto L_0x00d1;\n case 25: goto L_0x00d1;\n case 26: goto L_0x00d1;\n case 27: goto L_0x00d1;\n case 28: goto L_0x00d1;\n case 29: goto L_0x00d1;\n case 30: goto L_0x00d1;\n case 31: goto L_0x00d1;\n case 32: goto L_0x00d1;\n case 33: goto L_0x00d1;\n case 34: goto L_0x00d1;\n case 35: goto L_0x00d1;\n case 36: goto L_0x00d1;\n case 37: goto L_0x00d1;\n case 38: goto L_0x00d1;\n case 39: goto L_0x00d1;\n case 40: goto L_0x00d1;\n case 41: goto L_0x00d1;\n case 42: goto L_0x00d1;\n case 43: goto L_0x00d1;\n case 44: goto L_0x00d1;\n case 45: goto L_0x00d1;\n case 46: goto L_0x00d1;\n case 47: goto L_0x00d1;\n case 48: goto L_0x00d1;\n case 49: goto L_0x00d1;\n case 50: goto L_0x00d1;\n case 51: goto L_0x00bd;\n case 52: goto L_0x00b0;\n case 53: goto L_0x00a2;\n case 54: goto L_0x009b;\n case 55: goto L_0x008d;\n case 56: goto L_0x0086;\n case 57: goto L_0x007f;\n case 58: goto L_0x0071;\n case 59: goto L_0x0069;\n case 60: goto L_0x005b;\n case 61: goto L_0x0053;\n case 62: goto L_0x004c;\n case 63: goto L_0x0045;\n case 64: goto L_0x003e;\n case 65: goto L_0x0036;\n case 66: goto L_0x002f;\n case 67: goto L_0x0027;\n case 68: goto L_0x0020;\n default: goto L_0x001e;\n };\n L_0x001e:\n goto L_0x012a;\n L_0x0020:\n r3 = r8.zza(r9, r4, r1);\n if (r3 == 0) goto L_0x012a;\n L_0x0026:\n goto L_0x0061;\n L_0x0027:\n r3 = r8.zza(r9, r4, r1);\n if (r3 == 0) goto L_0x012a;\n L_0x002d:\n goto L_0x00a8;\n L_0x002f:\n r3 = r8.zza(r9, r4, r1);\n if (r3 == 0) goto L_0x012a;\n L_0x0035:\n goto L_0x004b;\n L_0x0036:\n r3 = r8.zza(r9, r4, r1);\n if (r3 == 0) goto L_0x012a;\n L_0x003c:\n goto L_0x00a8;\n L_0x003e:\n r3 = r8.zza(r9, r4, r1);\n if (r3 == 0) goto L_0x012a;\n L_0x0044:\n goto L_0x004b;\n L_0x0045:\n r3 = r8.zza(r9, r4, r1);\n if (r3 == 0) goto L_0x012a;\n L_0x004b:\n goto L_0x0093;\n L_0x004c:\n r3 = r8.zza(r9, r4, r1);\n if (r3 == 0) goto L_0x012a;\n L_0x0052:\n goto L_0x0093;\n L_0x0053:\n r3 = r8.zza(r9, r4, r1);\n if (r3 == 0) goto L_0x012a;\n L_0x0059:\n goto L_0x00d1;\n L_0x005b:\n r3 = r8.zza(r9, r4, r1);\n if (r3 == 0) goto L_0x012a;\n L_0x0061:\n r3 = com.google.android.gms.internal.clearcut.zzfd.zzo(r9, r5);\n r2 = r2 * 53;\n goto L_0x00d7;\n L_0x0069:\n r3 = r8.zza(r9, r4, r1);\n if (r3 == 0) goto L_0x012a;\n L_0x006f:\n goto L_0x00ea;\n L_0x0071:\n r3 = r8.zza(r9, r4, r1);\n if (r3 == 0) goto L_0x012a;\n L_0x0077:\n r2 = r2 * 53;\n r3 = zzi(r9, r5);\n goto L_0x00fd;\n L_0x007f:\n r3 = r8.zza(r9, r4, r1);\n if (r3 == 0) goto L_0x012a;\n L_0x0085:\n goto L_0x0093;\n L_0x0086:\n r3 = r8.zza(r9, r4, r1);\n if (r3 == 0) goto L_0x012a;\n L_0x008c:\n goto L_0x00a8;\n L_0x008d:\n r3 = r8.zza(r9, r4, r1);\n if (r3 == 0) goto L_0x012a;\n L_0x0093:\n r2 = r2 * 53;\n r3 = zzg(r9, r5);\n goto L_0x0129;\n L_0x009b:\n r3 = r8.zza(r9, r4, r1);\n if (r3 == 0) goto L_0x012a;\n L_0x00a1:\n goto L_0x00a8;\n L_0x00a2:\n r3 = r8.zza(r9, r4, r1);\n if (r3 == 0) goto L_0x012a;\n L_0x00a8:\n r2 = r2 * 53;\n r3 = zzh(r9, r5);\n goto L_0x0125;\n L_0x00b0:\n r3 = r8.zza(r9, r4, r1);\n if (r3 == 0) goto L_0x012a;\n L_0x00b6:\n r2 = r2 * 53;\n r3 = zzf(r9, r5);\n goto L_0x0116;\n L_0x00bd:\n r3 = r8.zza(r9, r4, r1);\n if (r3 == 0) goto L_0x012a;\n L_0x00c3:\n r2 = r2 * 53;\n r3 = zze(r9, r5);\n goto L_0x0121;\n L_0x00ca:\n r3 = com.google.android.gms.internal.clearcut.zzfd.zzo(r9, r5);\n if (r3 == 0) goto L_0x00e6;\n L_0x00d0:\n goto L_0x00e2;\n L_0x00d1:\n r2 = r2 * 53;\n r3 = com.google.android.gms.internal.clearcut.zzfd.zzo(r9, r5);\n L_0x00d7:\n r3 = r3.hashCode();\n goto L_0x0129;\n L_0x00dc:\n r3 = com.google.android.gms.internal.clearcut.zzfd.zzo(r9, r5);\n if (r3 == 0) goto L_0x00e6;\n L_0x00e2:\n r7 = r3.hashCode();\n L_0x00e6:\n r2 = r2 * 53;\n r2 = r2 + r7;\n goto L_0x012a;\n L_0x00ea:\n r2 = r2 * 53;\n r3 = com.google.android.gms.internal.clearcut.zzfd.zzo(r9, r5);\n r3 = (java.lang.String) r3;\n r3 = r3.hashCode();\n goto L_0x0129;\n L_0x00f7:\n r2 = r2 * 53;\n r3 = com.google.android.gms.internal.clearcut.zzfd.zzl(r9, r5);\n L_0x00fd:\n r3 = com.google.android.gms.internal.clearcut.zzci.zzc(r3);\n goto L_0x0129;\n L_0x0102:\n r2 = r2 * 53;\n r3 = com.google.android.gms.internal.clearcut.zzfd.zzj(r9, r5);\n goto L_0x0129;\n L_0x0109:\n r2 = r2 * 53;\n r3 = com.google.android.gms.internal.clearcut.zzfd.zzk(r9, r5);\n goto L_0x0125;\n L_0x0110:\n r2 = r2 * 53;\n r3 = com.google.android.gms.internal.clearcut.zzfd.zzm(r9, r5);\n L_0x0116:\n r3 = java.lang.Float.floatToIntBits(r3);\n goto L_0x0129;\n L_0x011b:\n r2 = r2 * 53;\n r3 = com.google.android.gms.internal.clearcut.zzfd.zzn(r9, r5);\n L_0x0121:\n r3 = java.lang.Double.doubleToLongBits(r3);\n L_0x0125:\n r3 = com.google.android.gms.internal.clearcut.zzci.zzl(r3);\n L_0x0129:\n r2 = r2 + r3;\n L_0x012a:\n r1 = r1 + 4;\n goto L_0x0005;\n L_0x012e:\n r2 = r2 * 53;\n r0 = r8.zzmx;\n r0 = r0.zzq(r9);\n r0 = r0.hashCode();\n r2 = r2 + r0;\n r0 = r8.zzmo;\n if (r0 == 0) goto L_0x014c;\n L_0x013f:\n r2 = r2 * 53;\n r0 = r8.zzmy;\n r9 = r0.zza(r9);\n r9 = r9.hashCode();\n r2 = r2 + r9;\n L_0x014c:\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.clearcut.zzds.hashCode(java.lang.Object):int\");\n }", "protected int copyFromBaseCE32(int r1, int r2, boolean r3) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.copyFromBaseCE32(int, int, boolean):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.copyFromBaseCE32(int, int, boolean):int\");\n }" ]
[ "0.5066744", "0.5018103", "0.48854858", "0.4858689", "0.48364586", "0.48304945", "0.48273948", "0.47889137", "0.4768156", "0.4741688", "0.4732455", "0.47304997", "0.4730249", "0.4709006", "0.47036684", "0.4697685", "0.46928084", "0.46916747", "0.46881524", "0.4687125", "0.46728408", "0.46682546", "0.4667863", "0.4661926", "0.4653508", "0.46509454", "0.4650381", "0.46452948", "0.4621721", "0.46209753", "0.46209055", "0.46203727", "0.46053624", "0.4602083", "0.4589318", "0.45827308", "0.45784843", "0.45613295", "0.45495987", "0.45495987", "0.45484707", "0.45361626", "0.45179635", "0.4515009", "0.45115694", "0.45078665", "0.45062065", "0.4496632", "0.449645", "0.44901982", "0.4488238", "0.44864973", "0.44717807", "0.4468779", "0.4468687", "0.44601572", "0.4459971", "0.4452023", "0.44474187", "0.4444402", "0.44438928", "0.44427305", "0.4438716", "0.44341105", "0.44280097", "0.4427991", "0.4427006", "0.44252938", "0.4416669", "0.44144264", "0.44104248", "0.44050547", "0.44045883", "0.44040585", "0.4404024", "0.4401164", "0.44006112", "0.4396332", "0.43886232", "0.438862", "0.43868384", "0.43840694", "0.43784118", "0.4377949", "0.4373885", "0.43703708", "0.43665043", "0.43650994", "0.4364903", "0.43642864", "0.43633926", "0.436298", "0.43611178", "0.43609044", "0.43537268", "0.4339009", "0.43382007", "0.43378595", "0.43331963", "0.43296954" ]
0.47873834
8
/ 8 Inconsistent Forward And Inconsistent Reverse Forward mapping wtf > 01 is diff than reverse mapping: 01 > foo Inconsistent forward mapping wtf > 01 vs wtf > foo / foo > 01 Forward mapping bar > 02 is diff than reverse mapping: 02 > wtf Inconsistent forward mapping bar > 02 vs bar > wtf / wtf > 01 Inconsistent reverse mapping 02 > wtf vs 01 > wtf / foo > 01 Inconsistent reverse mapping 03 > foo vs 01 > foo / foo > 01 01 > foo foo > 01 02 > wtf bar > 02 ^^^ 03 > foo wtf > 01 ^^^ ^^ FIX Same as 2 && 3
@Test public void fsckMetricsInconsistentFwdAndInconsistentRev() throws Exception { storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, METRICS, "wtf".getBytes(MockBase.ASCII())); storage.addColumn(UID_TABLE, "wtf".getBytes(MockBase.ASCII()), ID_FAMILY, METRICS, new byte[] {0, 0, 1}); storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, METRICS, "foo".getBytes(MockBase.ASCII())); storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L)); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(6, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testFwdInfReasonerRewrites_Bug717() throws Exception {\n\t\timportProofSerializationProofs();\n\n\t\tfinal IPRRoot prFile = getProofRoot(\"exF\");\n\t\tfinal IPRProof proof = prFile.getProof(\"oldExF\");\n\n\t\t// a IllegalStateException is thrown when the bug is present:\n\t\tfinal IProofTree proofTree = proof.getProofTree(null);\n\n\t\t// ensure that the proof rule is deserialized:\n\t\tfinal IProofTreeNode root = proofTree.getRoot();\n\t\tassertFalse(root.isOpen());\n\t\tfinal IProofRule rule = root.getRule();\n\t\tassertEquals(SequentProver.PLUGIN_ID + \".exF\", rule.generatedBy().getReasonerID());\n\t\tassertEquals(3, rule.getAntecedents()[0].getHypActions().size());\n\t}", "private void f(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 1;\n r2 = F;\n r7.y = r8;\n r0 = r7.m;\n r0 = r0.entrySet();\n r3 = r0.iterator();\n L_0x000f:\n r0 = r3.hasNext();\n if (r0 == 0) goto L_0x004a;\n L_0x0015:\n r0 = r3.next();\n r0 = (java.util.Map.Entry) r0;\n r1 = r0.getValue();\n r1 = (java.util.List) r1;\n r4 = r1.size();\t Catch:{ RuntimeException -> 0x0077 }\n if (r4 != r6) goto L_0x0043;\n L_0x0027:\n r4 = J;\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 28;\n r4 = r4[r5];\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 0;\n r5 = r1.get(r5);\t Catch:{ RuntimeException -> 0x0079 }\n r4 = r4.equals(r5);\t Catch:{ RuntimeException -> 0x0079 }\n if (r4 == 0) goto L_0x0043;\n L_0x0038:\n r4 = r7.e;\t Catch:{ RuntimeException -> 0x007b }\n r0 = r0.getKey();\t Catch:{ RuntimeException -> 0x007b }\n r4.add(r0);\t Catch:{ RuntimeException -> 0x007b }\n if (r2 == 0) goto L_0x0048;\n L_0x0043:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007b }\n r0.addAll(r1);\t Catch:{ RuntimeException -> 0x007b }\n L_0x0048:\n if (r2 == 0) goto L_0x000f;\n L_0x004a:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007d }\n r1 = J;\t Catch:{ RuntimeException -> 0x007d }\n r2 = 29;\n r1 = r1[r2];\t Catch:{ RuntimeException -> 0x007d }\n r0 = r0.remove(r1);\t Catch:{ RuntimeException -> 0x007d }\n if (r0 == 0) goto L_0x0065;\n L_0x0058:\n r0 = B;\t Catch:{ RuntimeException -> 0x007d }\n r1 = java.util.logging.Level.WARNING;\t Catch:{ RuntimeException -> 0x007d }\n r2 = J;\t Catch:{ RuntimeException -> 0x007d }\n r3 = 30;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x007d }\n r0.log(r1, r2);\t Catch:{ RuntimeException -> 0x007d }\n L_0x0065:\n r1 = r7.G;\n r0 = r7.m;\n r2 = java.lang.Integer.valueOf(r6);\n r0 = r0.get(r2);\n r0 = (java.util.Collection) r0;\n r1.addAll(r0);\n return;\n L_0x0077:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0079 }\n L_0x0079:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x007b }\n L_0x007b:\n r0 = move-exception;\n throw r0;\n L_0x007d:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.f(java.lang.String):void\");\n }", "private void checkReverseMap() throws ApplicationException {\n if (reverseMap == null) {\n reverseMap = Data.makeReverseMap(networkIds);\n }\n }", "public static void main(String[] args) {\n String[] user0 = {\"/start\", \"/pink\", \"/register\", \"/orange\", \"/red\", \"a\"};\n String[] user1 = {\"/start\", \"/green\", \"/blue\", \"/pink\", \"/register\", \"/orange\", \"/one/two\"};\n String[] user2 = {\"a\", \"/one\", \"/two\"};\n String[] user3 = {\"/red\", \"/orange\", \"/yellow\", \"/green\", \"/blue\", \"/purple\", \"/white\", \"/amber\", \"/HotRodPink\", \"/BritishRacingGreen\"};\n String[] user4 = {\"/red\", \"/orange\", \"/amber\", \"/green\", \"/blue\", \"/purple\", \"/white\", \"/lavender\", \"/HotRodPink\", \"/BritishRacingGreen\"};\n String[] user5 = {\"a\"};\n\n// out.println(rawr(user0, user1));\n// out.println(rawr(user1, user2));\n// out.println(rawr(user2, user0));\n// out.println(rawr(user5, user2));\n out.println(rawr(user3, user4));\n// out.println(rawr(user4, user3));\n\n P1 c=new P1();\n c.findContiguousHistory(user0, user1);\n c.findContiguousHistory(user1, user2);\n c.findContiguousHistory(user2, user0);\n c.findContiguousHistory(user5, user2);\n c.findContiguousHistory(user3, user4);\n\n // below scenaro is tricky because amber match later and user3 string. We have to come back again.\n // String[] user4 = {\"/red\", \"/orange\", \"/amber\", \"/green\", \"/blue\", \"/purple\", \"/white\", \"/lavender\", \"/HotRodPink\", \"/BritishRacingGreen\"};\n // String[] user3 = {\"/red\", \"/orange\", \"/yellow\", \"/green\", \"/blue\", \"/purple\", \"/white\", \"/amber\", \"/HotRodPink\", \"/BritishRacingGreen\"};\n\n c.findContiguousHistory(user4, user3);\n }", "@Test\n\tpublic void testForwardStartLoss() throws InvalidGenomeChange {\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6640669, PositionType.ZERO_BASED),\n\t\t\t\t\"ACG\", \"CGTT\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(1, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.1_3delinsCGTT\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation1.effects);\n\n\t\t// Delete chunk out of first exon, spanning start codon from the left.\n\t\tGenomeChange change2 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6640660, PositionType.ZERO_BASED),\n\t\t\t\t\"CCCTCCAGACC\", \"GTTG\");\n\t\tAnnotation annotation2 = new BlockSubstitutionAnnotationBuilder(infoForward, change2).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation2.transcript.accession);\n\t\tAssert.assertEquals(1, annotation2.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.-9_2delinsGTTG\", annotation2.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation2.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation2.effects);\n\n\t\t// Delete chunk out of first exon, spanning start codon from the right.\n\t\tGenomeChange change3 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6640671, PositionType.ZERO_BASED),\n\t\t\t\t\"GGACGGCTCCT\", \"CTTG\");\n\t\tAnnotation annotation3 = new BlockSubstitutionAnnotationBuilder(infoForward, change3).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation3.transcript.accession);\n\t\tAssert.assertEquals(1, annotation3.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.3_13delinsCTTG\", annotation3.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation3.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation3.effects);\n\n\t\t// Deletion from before transcript, reaching into the start codon.\n\t\tGenomeChange change4 = new GenomeChange(\n\t\t\t\tnew GenomePosition(refDict, '+', 1, 6640399, PositionType.ZERO_BASED),\n\t\t\t\t\"TCTCACCAGGCCCTTCTTCACGACCCTGGCCCCCCATCCAGCATCCCCCCTGGCCAATCCAATATGGCCCCCGGCCCCCGGGAGGCTGTCAGTGTGTTCCAGCCCTCCGCGTGCACCCCTCACCCTGACCCAAGCCCTCGTGCTGATAAATATGATTATTTGAGTAGAGGCCAACTTCCCGTTTCTCTCTCTTGACTCCAGGAGCTTTCTCTTGCATACCCTCGCTTAGGCTGGCCGGGGTGTCACTTCTGCCTCCCTGCCCTCCAGACCA\",\n\t\t\t\t\"ACCT\");\n\t\tAnnotation annotation4 = new BlockSubstitutionAnnotationBuilder(infoForward, change4).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation4.transcript.accession);\n\t\tAssert.assertEquals(AnnotationLocation.INVALID_RANK, annotation4.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.-69-201_1delinsACCT\", annotation4.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation4.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation4.effects);\n\t}", "@Override\n\tpublic void preBacktrack() {\n\t\t\n\t}", "@Test\n public void Test4663220() {\n RuleBasedCollator collator = (RuleBasedCollator)Collator.getInstance(Locale.US);\n java.text.StringCharacterIterator stringIter = new java.text.StringCharacterIterator(\"fox\");\n CollationElementIterator iter = collator.getCollationElementIterator(stringIter);\n \n int[] elements_next = new int[3];\n logln(\"calling next:\");\n for (int i = 0; i < 3; ++i) {\n logln(\"[\" + i + \"] \" + (elements_next[i] = iter.next()));\n }\n \n int[] elements_fwd = new int[3];\n logln(\"calling set/next:\");\n for (int i = 0; i < 3; ++i) {\n iter.setOffset(i);\n logln(\"[\" + i + \"] \" + (elements_fwd[i] = iter.next()));\n }\n \n for (int i = 0; i < 3; ++i) {\n if (elements_next[i] != elements_fwd[i]) {\n errln(\"mismatch at position \" + i + \n \": \" + elements_next[i] + \n \" != \" + elements_fwd[i]);\n }\n }\n }", "private void ssMergeForward(int r16, int[] r17, int r18, int r19, int r20, int r21, int r22) {\n /*\n r15 = this;\n r3 = r15.SA;\n r13 = r20 - r19;\n r13 = r13 + r18;\n r4 = r13 + -1;\n r13 = r20 - r19;\n r0 = r17;\n r1 = r18;\n r2 = r19;\n ssBlockSwap(r0, r1, r3, r2, r13);\n r12 = r3[r19];\n r5 = r19;\n r7 = r18;\n r9 = r20;\n L_0x001b:\n r13 = r17[r7];\n r13 = r13 + r16;\n r14 = r3[r9];\n r14 = r14 + r16;\n r0 = r22;\n r11 = r15.ssCompare(r13, r14, r0);\n if (r11 >= 0) goto L_0x0044;\n L_0x002b:\n r6 = r5 + 1;\n r13 = r17[r7];\n r3[r5] = r13;\n if (r4 > r7) goto L_0x0037;\n L_0x0033:\n r17[r7] = r12;\n r5 = r6;\n L_0x0036:\n return;\n L_0x0037:\n r8 = r7 + 1;\n r13 = r3[r6];\n r17[r7] = r13;\n r13 = r17[r8];\n if (r13 < 0) goto L_0x00d5;\n L_0x0041:\n r7 = r8;\n r5 = r6;\n goto L_0x001b;\n L_0x0044:\n if (r11 <= 0) goto L_0x0079;\n L_0x0046:\n r6 = r5 + 1;\n r13 = r3[r9];\n r3[r5] = r13;\n r10 = r9 + 1;\n r13 = r3[r6];\n r3[r9] = r13;\n r0 = r21;\n if (r0 > r10) goto L_0x0072;\n L_0x0056:\n r8 = r7;\n L_0x0057:\n if (r8 >= r4) goto L_0x0068;\n L_0x0059:\n r5 = r6 + 1;\n r13 = r17[r8];\n r3[r6] = r13;\n r7 = r8 + 1;\n r13 = r3[r5];\n r17[r8] = r13;\n r8 = r7;\n r6 = r5;\n goto L_0x0057;\n L_0x0068:\n r13 = r17[r8];\n r3[r6] = r13;\n r17[r8] = r12;\n r9 = r10;\n r7 = r8;\n r5 = r6;\n goto L_0x0036;\n L_0x0072:\n r13 = r3[r10];\n if (r13 < 0) goto L_0x00d1;\n L_0x0076:\n r9 = r10;\n r5 = r6;\n goto L_0x001b;\n L_0x0079:\n r13 = r3[r9];\n r13 = r13 ^ -1;\n r3[r9] = r13;\n L_0x007f:\n r6 = r5 + 1;\n r13 = r17[r7];\n r3[r5] = r13;\n if (r4 > r7) goto L_0x008b;\n L_0x0087:\n r17[r7] = r12;\n r5 = r6;\n goto L_0x0036;\n L_0x008b:\n r8 = r7 + 1;\n r13 = r3[r6];\n r17[r7] = r13;\n r13 = r17[r8];\n if (r13 < 0) goto L_0x00ce;\n L_0x0095:\n r5 = r6;\n L_0x0096:\n r6 = r5 + 1;\n r13 = r3[r9];\n r3[r5] = r13;\n r10 = r9 + 1;\n r13 = r3[r6];\n r3[r9] = r13;\n r0 = r21;\n if (r0 > r10) goto L_0x00c2;\n L_0x00a6:\n if (r8 >= r4) goto L_0x00b7;\n L_0x00a8:\n r5 = r6 + 1;\n r13 = r17[r8];\n r3[r6] = r13;\n r7 = r8 + 1;\n r13 = r3[r5];\n r17[r8] = r13;\n r8 = r7;\n r6 = r5;\n goto L_0x00a6;\n L_0x00b7:\n r13 = r17[r8];\n r3[r6] = r13;\n r17[r8] = r12;\n r9 = r10;\n r7 = r8;\n r5 = r6;\n goto L_0x0036;\n L_0x00c2:\n r13 = r3[r10];\n if (r13 < 0) goto L_0x00cb;\n L_0x00c6:\n r9 = r10;\n r7 = r8;\n r5 = r6;\n goto L_0x001b;\n L_0x00cb:\n r9 = r10;\n r5 = r6;\n goto L_0x0096;\n L_0x00ce:\n r7 = r8;\n r5 = r6;\n goto L_0x007f;\n L_0x00d1:\n r9 = r10;\n r5 = r6;\n goto L_0x0046;\n L_0x00d5:\n r7 = r8;\n r5 = r6;\n goto L_0x002b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.ssMergeForward(int, int[], int, int, int, int, int):void\");\n }", "public void makePreferredOTTOLRelationshipsNOConflicts() {\n \n // TraversalDescription CHILDOF_TRAVERSAL = Traversal.description()\n // .relationships(RelType.TAXCHILDOF, Direction.INCOMING);\n \n // get the start point\n Node life = getLifeNode();\n System.out.println(life.getProperty(\"name\"));\n \n Transaction tx = beginTx();\n addToPreferredIndexes(life, ALLTAXA);\n HashSet<Long> traveled = new HashSet<Long>();\n int nNewRels = 0;\n try {\n // walk out to the tips from the base of the tree\n for (Node n : TAXCHILDOF_TRAVERSAL.traverse(life).nodes()) {\n if (n.hasRelationship(Direction.INCOMING, RelType.TAXCHILDOF) == false) {\n \n // when we hit a tip, start walking back\n Node curNode = n;\n while (curNode.hasRelationship(Direction.OUTGOING, RelType.TAXCHILDOF)) {\n Node startNode = curNode;\n if (traveled.contains((Long)startNode.getId())){\n \tbreak;\n }else{\n \ttraveled.add((Long)startNode.getId());\n }\n Node endNode = null;\n \n // if the current node already has a preferred relationship, we will just follow it\n if (startNode.hasRelationship(Direction.OUTGOING, RelType.PREFTAXCHILDOF)) {\n Relationship prefRel = startNode.getSingleRelationship(RelType.PREFTAXCHILDOF, Direction.OUTGOING);\n \n // make sure we don't get stuck in an infinite loop (should not happen, could do weird things to the graph)\n if (prefRel.getStartNode().getId() == prefRel.getEndNode().getId()) {\n System.out.println(\"pointing to itself \" + prefRel + \" \" + prefRel.getStartNode().getId() + \" \" + prefRel.getEndNode().getId());\n break;\n }\n \n // prepare to move on\n endNode = prefRel.getEndNode();\n \n } else {\n \n // if there is no preferred rel then they all point to the same end node; just follow the first non-looping relationship\n for (Relationship rel : curNode.getRelationships(RelType.TAXCHILDOF, Direction.OUTGOING)) {\n if (rel.getStartNode().getId() == rel.getEndNode().getId()) {\n System.out.println(\"pointing to itself \" + rel + \" \" + rel.getStartNode().getId() + \" \" + rel.getEndNode().getId());\n break;\n } else {\n endNode = rel.getEndNode();\n break;\n }\n }\n \n // if we found a dead-end, die\n if (endNode == null) {\n System.out.println(curNode.getProperty(\"name\"));\n System.out.println(\"Strange, this relationship seems to be pointing at a nonexistent node. Quitting.\");\n System.exit(0);\n }\n \n // create preferred relationships\n curNode.createRelationshipTo(endNode, RelType.PREFTAXCHILDOF);\n curNode.createRelationshipTo(endNode, RelType.TAXCHILDOF).setProperty(\"source\", \"ottol\");\n nNewRels += 1;\n }\n \n if (startNode == endNode) {\n System.out.println(startNode);\n System.out.println(\"The node seems to be pointing at itself. This is a problem. Quitting.\");\n System.exit(0);\n \n // prepare for next iteration\n } else {\n curNode = endNode;\n addToPreferredIndexes(startNode, ALLTAXA);\n }\n }\n }\n \n if (nNewRels % transaction_iter == 0) {\n System.out.println(nNewRels);\n // tx.success();\n // tx.finish();\n // tx = beginTx();\n }\n }\n tx.success();\n } finally {\n tx.finish();\n }\n }", "@Override\n public boolean isReversible() {\n return true;\n }", "@Test\n public void shouldDetectCycleWhenUpstreamLeavesAreAtDifferentLevels() {\n\n String g1 = \"g1\";\n String g2 = \"g2\";\n String p1 = \"p1\";\n String p2 = \"p2\";\n String p3 = \"p3\";\n String p4 = \"p4\";\n String p5 = \"p5\";\n String p6 = \"p6\";\n String current = \"current\";\n\n ValueStreamMap valueStreamMap = new ValueStreamMap(current, null);\n\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(p4, p4), null, current);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(p3, p3), null, p4);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(p2, p2), null, p3);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(p1, p1), null, p2);\n valueStreamMap.addUpstreamMaterialNode(new SCMDependencyNode(g1, g1, \"git\"), null, p1, new MaterialRevision(null));\n\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(p5, p5), new PipelineRevision(p5,2,\"2\"), current);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(p6, p6), new PipelineRevision(p6,1,\"1\"), p5);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(p5, p5), new PipelineRevision(p5,1,\"1\"), p6);\n valueStreamMap.addUpstreamMaterialNode(new SCMDependencyNode(g2,g2,\"git\"), null, p5, new MaterialRevision(null));\n\n assertThat(valueStreamMap.hasCycle(), is(true));\n }", "private static long getPrevNorm32(PrevArgs paramPrevArgs, int paramInt1, int paramInt2)\n/* */ {\n/* 534 */ paramPrevArgs.c = paramPrevArgs.src[(--paramPrevArgs.current)];\n/* 535 */ paramPrevArgs.c2 = '\\000';\n/* */ \n/* */ \n/* */ \n/* */ \n/* 540 */ if (paramPrevArgs.c < paramInt1)\n/* 541 */ return 0L;\n/* 542 */ if (!UTF16.isSurrogate(paramPrevArgs.c))\n/* 543 */ return getNorm32(paramPrevArgs.c);\n/* 544 */ if (UTF16.isLeadSurrogate(paramPrevArgs.c))\n/* */ {\n/* 546 */ return 0L; }\n/* 547 */ if ((paramPrevArgs.current != paramPrevArgs.start) && \n/* 548 */ (UTF16.isLeadSurrogate(paramPrevArgs.c2 = paramPrevArgs.src[(paramPrevArgs.current - 1)]))) {\n/* 549 */ paramPrevArgs.current -= 1;\n/* 550 */ long l = getNorm32(paramPrevArgs.c2);\n/* */ \n/* 552 */ if ((l & paramInt2) == 0L)\n/* */ {\n/* */ \n/* */ \n/* 556 */ return 0L;\n/* */ }\n/* */ \n/* 559 */ return getNorm32FromSurrogatePair(l, paramPrevArgs.c);\n/* */ }\n/* */ \n/* */ \n/* 563 */ paramPrevArgs.c2 = '\\000';\n/* 564 */ return 0L;\n/* */ }", "private static boolean moveForwardish() {\n if (moveForwardStrict()) return true;\n Direction f = forward;\n forward = f.rotateLeft();\n if (moveForwardStrict()) return true;\n forward = f.rotateRight();\n if (moveForwardStrict()) return true;\n forward = f;\n return false;\n }", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "@Test(timeout = 4000)\n public void test022() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-1L));\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals((-81L), long0);\n \n List<Range> list0 = range1.complement(range0);\n assertFalse(range1.isEmpty());\n assertTrue(list0.contains(range1));\n }", "protected ForwardingMap() {}", "public boolean canSeekBackwards() {\n/* 131 */ return true;\n/* */ }", "@java.lang.Override\n public boolean hasForwardingRule() {\n return stepInfoCase_ == 9;\n }", "private void removeTwoStepForwardFromPositionCache(Key currentKey) {\n\n\t\t// Create a two square forward position\n\t\tKey newKey =createTwoStepForwardFromCurrentKey(currentKey);\n\n\t\t// Gets current values stored with key and adds the extra position\n\t\tSet<Key> currentKeyMapping = positionCache.get(currentKey);\n\n\t\t// Remove key if it exists\n\t\tif (currentKeyMapping.contains(newKey)) {\n\t\t\tcurrentKeyMapping.remove(newKey);\n\t\t}\n\n\t\tpositionCache.put(currentKey, currentKeyMapping);\n\t}", "@Test\n\tpublic void testForwardStopLoss() throws InvalidGenomeChange {\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6649271, PositionType.ZERO_BASED),\n\t\t\t\t\"ACG\", \"CGTT\");\n\t\t// Note that the transcript here differs to the one Mutalyzer uses after the CDS.\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(10, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.2067_*2delinsCGTT\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.*689Tyrext*25\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.NON_FS_SUBSTITUTION, VariantType.STOPLOSS),\n\t\t\t\tannotation1.effects);\n\n\t\t// Replace stop codon by 6 nucleotides, non-frameshift case.\n\t\tGenomeChange change2 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6649270, PositionType.ZERO_BASED),\n\t\t\t\t\"ACT\", \"CGGTCG\");\n\t\tAnnotation annotation2 = new BlockSubstitutionAnnotationBuilder(infoForward, change2).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation2.transcript.accession);\n\t\tAssert.assertEquals(10, annotation2.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.2066_*1delinsCGGTCG\", annotation2.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.*689Serext*17\", annotation2.aaHGVSDescription);\n\t\t// Note that the transcript here differs to the one Mutalyzer uses after the CDS.\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.FS_SUBSTITUTION, VariantType.STOPLOSS),\n\t\t\t\tannotation2.effects);\n\n\t\t// Delete first base of stop codon, leads to complete loss.\n\t\tGenomeChange change3 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6649269, PositionType.ZERO_BASED),\n\t\t\t\t\"ACG\", \"CGGT\");\n\t\tAnnotation annotation3 = new BlockSubstitutionAnnotationBuilder(infoForward, change3).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation3.transcript.accession);\n\t\tAssert.assertEquals(10, annotation3.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.2065_2067delinsCGGT\", annotation3.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.*689Argext*16\", annotation3.aaHGVSDescription);\n\t\t// Note that the transcript here differs to the one Mutalyzer uses after the CDS.\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.FS_SUBSTITUTION, VariantType.STOPLOSS),\n\t\t\t\tannotation3.effects);\n\t}", "public void testUnfoldingWithOneSuccessfulResolutions() {\n\t\t\t\n\t\t\tDatalogProgram queryProgram = fac.getDatalogProgram();\n\t\t\tFunction a = fac.getFunction(fac.getClassPredicate(\"A\"), fac.getVariable(\"x\"));\n\t\t\tFunction R = fac.getFunction(fac.getObjectPropertyPredicate(\"R\"), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\tFunction lj = fac.getSPARQLLeftJoin(a, R);\n\t\t\tFunction head = fac.getFunction(fac.getPredicate(\"q\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\tCQIE query = fac.getCQIE(head, lj);\n\t\t\tqueryProgram.appendRule(query);\n\n\t\t\t// Mapping program\n\t\t\tDatalogProgram p = fac.getDatalogProgram();\n\t\t\t// A rule 1 A(uri(x)) :- T1(x,y)\n\t\t\tFunction body = fac.getFunction(fac.getPredicate(\"T1\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\thead = fac.getFunction(fac.getPredicate(\"A\", 1), fac.getFunction(fac.getPredicate(\"uri\", 1), fac.getVariable(\"x\")));\n\t\t\tCQIE rule1 = fac.getCQIE(head, body);\n\t\t\tp.appendRule(rule1);\n\n\t\t\t// A rule 2 R(f(x),y) :- T2(x,y)\n\t\t\tbody = fac.getFunction(fac.getPredicate(\"T2\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"f\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\t\tCQIE rule2 = fac.getCQIE(head, body);\n\t\t\tp.appendRule(rule2);\n\n\t\t\t// A rule 3 R(uri(x),y) :- T3(x,y)\n\t\t\t\n\t\t\tbody = fac.getFunction(fac.getPredicate(\"T3\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"uri\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\t\tCQIE rule3 = fac.getCQIE(head, body);\n\t\t\tp.appendRule(rule3);\n\n\t\t\tDatalogUnfolder unfolder = new DatalogUnfolder(p.getRules());\n\t\t\tDatalogProgram result = unfolder.unfold(queryProgram, \"q\");\n\n\t\t\t// Only one rule should be returned where y is null\n\t\t\tSystem.out.println(result);\n\t\t\tassertEquals(1, result.getRules().size());\n\t\t\tassertTrue(result.getRules().toString().contains(\"T1(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"T3(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"uri(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\t\t\n\t\t\tassertFalse(result.getRules().toString().contains(\"A(\"));\n\t\t\tassertFalse(result.getRules().toString().contains(\"R(\"));\n\t\t\tassertFalse(result.getRules().toString().contains(\"T2(\"));\n\t\t\t\n\t\t\tassertFalse(result.getRules().toString().contains(\"null\"));\n\t\t\tassertTrue(result.getRules().get(0).getBody().size() == 1);\n\t\t\n\t}", "private void ssMergeBackward(int r19, int[] r20, int r21, int r22, int r23, int r24, int r25) {\n /*\n r18 = this;\n r0 = r18;\n r4 = r0.SA;\n r17 = r24 - r23;\n r5 = r21 + r17;\n r17 = r24 - r23;\n r0 = r20;\n r1 = r21;\n r2 = r23;\n r3 = r17;\n ssBlockSwap(r0, r1, r4, r2, r3);\n r16 = 0;\n r17 = r5 + -1;\n r17 = r20[r17];\n if (r17 >= 0) goto L_0x0071;\n L_0x001d:\n r16 = r16 | 1;\n r17 = r5 + -1;\n r17 = r20[r17];\n r17 = r17 ^ -1;\n r12 = r19 + r17;\n L_0x0027:\n r17 = r23 + -1;\n r17 = r4[r17];\n if (r17 >= 0) goto L_0x0078;\n L_0x002d:\n r16 = r16 | 2;\n r17 = r23 + -1;\n r17 = r4[r17];\n r17 = r17 ^ -1;\n r13 = r19 + r17;\n L_0x0037:\n r17 = r24 + -1;\n r15 = r4[r17];\n r6 = r24 + -1;\n r8 = r5 + -1;\n r10 = r23 + -1;\n L_0x0041:\n r0 = r18;\n r1 = r25;\n r14 = r0.ssCompare(r12, r13, r1);\n if (r14 <= 0) goto L_0x009b;\n L_0x004b:\n r17 = r16 & 1;\n if (r17 == 0) goto L_0x0063;\n L_0x004f:\n r7 = r6 + -1;\n r17 = r20[r8];\n r4[r6] = r17;\n r9 = r8 + -1;\n r17 = r4[r7];\n r20[r8] = r17;\n r17 = r20[r9];\n if (r17 < 0) goto L_0x01a9;\n L_0x005f:\n r16 = r16 ^ 1;\n r8 = r9;\n r6 = r7;\n L_0x0063:\n r7 = r6 + -1;\n r17 = r20[r8];\n r4[r6] = r17;\n r0 = r21;\n if (r8 > r0) goto L_0x007f;\n L_0x006d:\n r20[r8] = r15;\n r6 = r7;\n L_0x0070:\n return;\n L_0x0071:\n r17 = r5 + -1;\n r17 = r20[r17];\n r12 = r19 + r17;\n goto L_0x0027;\n L_0x0078:\n r17 = r23 + -1;\n r17 = r4[r17];\n r13 = r19 + r17;\n goto L_0x0037;\n L_0x007f:\n r9 = r8 + -1;\n r17 = r4[r7];\n r20[r8] = r17;\n r17 = r20[r9];\n if (r17 >= 0) goto L_0x0094;\n L_0x0089:\n r16 = r16 | 1;\n r17 = r20[r9];\n r17 = r17 ^ -1;\n r12 = r19 + r17;\n r8 = r9;\n r6 = r7;\n goto L_0x0041;\n L_0x0094:\n r17 = r20[r9];\n r12 = r19 + r17;\n r8 = r9;\n r6 = r7;\n goto L_0x0041;\n L_0x009b:\n if (r14 >= 0) goto L_0x00fb;\n L_0x009d:\n r17 = r16 & 2;\n if (r17 == 0) goto L_0x00b5;\n L_0x00a1:\n r7 = r6 + -1;\n r17 = r4[r10];\n r4[r6] = r17;\n r11 = r10 + -1;\n r17 = r4[r7];\n r4[r10] = r17;\n r17 = r4[r11];\n if (r17 < 0) goto L_0x01a5;\n L_0x00b1:\n r16 = r16 ^ 2;\n r10 = r11;\n r6 = r7;\n L_0x00b5:\n r7 = r6 + -1;\n r17 = r4[r10];\n r4[r6] = r17;\n r11 = r10 + -1;\n r17 = r4[r7];\n r4[r10] = r17;\n r0 = r22;\n if (r11 >= r0) goto L_0x00e3;\n L_0x00c5:\n r9 = r8;\n L_0x00c6:\n r0 = r21;\n if (r0 >= r9) goto L_0x00d9;\n L_0x00ca:\n r6 = r7 + -1;\n r17 = r20[r9];\n r4[r7] = r17;\n r8 = r9 + -1;\n r17 = r4[r6];\n r20[r9] = r17;\n r9 = r8;\n r7 = r6;\n goto L_0x00c6;\n L_0x00d9:\n r17 = r20[r9];\n r4[r7] = r17;\n r20[r9] = r15;\n r10 = r11;\n r8 = r9;\n r6 = r7;\n goto L_0x0070;\n L_0x00e3:\n r17 = r4[r11];\n if (r17 >= 0) goto L_0x00f3;\n L_0x00e7:\n r16 = r16 | 2;\n r17 = r4[r11];\n r17 = r17 ^ -1;\n r13 = r19 + r17;\n r10 = r11;\n r6 = r7;\n goto L_0x0041;\n L_0x00f3:\n r17 = r4[r11];\n r13 = r19 + r17;\n r10 = r11;\n r6 = r7;\n goto L_0x0041;\n L_0x00fb:\n r17 = r16 & 1;\n if (r17 == 0) goto L_0x0113;\n L_0x00ff:\n r7 = r6 + -1;\n r17 = r20[r8];\n r4[r6] = r17;\n r9 = r8 + -1;\n r17 = r4[r7];\n r20[r8] = r17;\n r17 = r20[r9];\n if (r17 < 0) goto L_0x01a1;\n L_0x010f:\n r16 = r16 ^ 1;\n r8 = r9;\n r6 = r7;\n L_0x0113:\n r7 = r6 + -1;\n r17 = r20[r8];\n r17 = r17 ^ -1;\n r4[r6] = r17;\n r0 = r21;\n if (r8 > r0) goto L_0x0124;\n L_0x011f:\n r20[r8] = r15;\n r6 = r7;\n goto L_0x0070;\n L_0x0124:\n r9 = r8 + -1;\n r17 = r4[r7];\n r20[r8] = r17;\n r17 = r16 & 2;\n if (r17 == 0) goto L_0x019f;\n L_0x012e:\n r6 = r7;\n L_0x012f:\n r7 = r6 + -1;\n r17 = r4[r10];\n r4[r6] = r17;\n r11 = r10 + -1;\n r17 = r4[r7];\n r4[r10] = r17;\n r17 = r4[r11];\n if (r17 < 0) goto L_0x019c;\n L_0x013f:\n r16 = r16 ^ 2;\n r10 = r11;\n r6 = r7;\n L_0x0143:\n r7 = r6 + -1;\n r17 = r4[r10];\n r4[r6] = r17;\n r11 = r10 + -1;\n r17 = r4[r7];\n r4[r10] = r17;\n r0 = r22;\n if (r11 >= r0) goto L_0x0171;\n L_0x0153:\n r0 = r21;\n if (r0 >= r9) goto L_0x0166;\n L_0x0157:\n r6 = r7 + -1;\n r17 = r20[r9];\n r4[r7] = r17;\n r8 = r9 + -1;\n r17 = r4[r6];\n r20[r9] = r17;\n r9 = r8;\n r7 = r6;\n goto L_0x0153;\n L_0x0166:\n r17 = r20[r9];\n r4[r7] = r17;\n r20[r9] = r15;\n r10 = r11;\n r8 = r9;\n r6 = r7;\n goto L_0x0070;\n L_0x0171:\n r17 = r20[r9];\n if (r17 >= 0) goto L_0x018e;\n L_0x0175:\n r16 = r16 | 1;\n r17 = r20[r9];\n r17 = r17 ^ -1;\n r12 = r19 + r17;\n L_0x017d:\n r17 = r4[r11];\n if (r17 >= 0) goto L_0x0193;\n L_0x0181:\n r16 = r16 | 2;\n r17 = r4[r11];\n r17 = r17 ^ -1;\n r13 = r19 + r17;\n r10 = r11;\n r8 = r9;\n r6 = r7;\n goto L_0x0041;\n L_0x018e:\n r17 = r20[r9];\n r12 = r19 + r17;\n goto L_0x017d;\n L_0x0193:\n r17 = r4[r11];\n r13 = r19 + r17;\n r10 = r11;\n r8 = r9;\n r6 = r7;\n goto L_0x0041;\n L_0x019c:\n r10 = r11;\n r6 = r7;\n goto L_0x012f;\n L_0x019f:\n r6 = r7;\n goto L_0x0143;\n L_0x01a1:\n r8 = r9;\n r6 = r7;\n goto L_0x00ff;\n L_0x01a5:\n r10 = r11;\n r6 = r7;\n goto L_0x00a1;\n L_0x01a9:\n r8 = r9;\n r6 = r7;\n goto L_0x004f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.ssMergeBackward(int, int[], int, int, int, int, int):void\");\n }", "@Test\n public void shouldNotConsiderTriangleDependencyAsCyclic(){\n\n String a = \"A\";\n String b = \"B\";\n String c = \"C\";\n String d = \"D\";\n ValueStreamMap valueStreamMap = new ValueStreamMap(c, null);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(a, a), null, c);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(b, b), null, c);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(d, d), null, b);\n valueStreamMap.addUpstreamNode(new PipelineDependencyNode(a, a), null, d);\n valueStreamMap.addUpstreamMaterialNode(new SCMDependencyNode(\"g\", \"g\", \"git\"), null, a, new MaterialRevision(null));\n\n assertThat(valueStreamMap.hasCycle(), is(false));\n }", "@java.lang.Override\n public boolean hasForwardingRule() {\n return stepInfoCase_ == 9;\n }", "private void goForwardOne() \n {\n if (m_bufferOffset_ < 0) {\n // we're working on the source and not normalizing. fast path.\n // note Thai pre-vowel reordering uses buffer too\n m_source_.setIndex(m_source_.getIndex() + 1);\n }\n else {\n // we are in the buffer, buffer offset will never be 0 here\n m_bufferOffset_ ++;\n }\n }", "public void testUnfoldingWithNoSuccessfulResolutions() {\n\t\t\n\t\tDatalogProgram queryProgram = fac.getDatalogProgram();\n\t\tFunction a = fac.getFunction(fac.getClassPredicate(\"A\"), fac.getVariable(\"x\"));\n\t\tFunction R = fac.getFunction(fac.getObjectPropertyPredicate(\"R\"), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\tFunction lj = fac.getSPARQLLeftJoin(a, R);\n\t\tFunction head = fac.getFunction(fac.getPredicate(\"q\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\tCQIE query = fac.getCQIE(head, lj);\n\t\tqueryProgram.appendRule(query);\n\n\t\t// Mapping program\n\t\tDatalogProgram p = fac.getDatalogProgram();\n\t\t// A rule 1 A(uri(x)) :- T1(x,y)\n\t\tFunction body = fac.getFunction(fac.getPredicate(\"T1\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\thead = fac.getFunction(fac.getPredicate(\"A\", 1), fac.getFunction(fac.getPredicate(\"uri\", 1), fac.getVariable(\"x\")));\n\t\tCQIE rule1 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule1);\n\n\t\t// A rule 2 R(f(x),y) :- T2(x,y)\n\t\tbody = fac.getFunction(fac.getPredicate(\"T2\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"f\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\tCQIE rule2 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule2);\n\n\t\t// A rule 3 R(g(x),y) :- T3(x,y)\n\t\t\n\t\tbody = fac.getFunction(fac.getPredicate(\"T3\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"g\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\tCQIE rule3 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule3);\n\n\t\tDatalogUnfolder unfolder = new DatalogUnfolder(p.getRules());\n\t\tDatalogProgram result = unfolder.unfold(queryProgram, \"q\");\n\n\t\t// Only one rule should be returned where y is null\n\t\tSystem.out.println(result);\n\t\tassertEquals(1, result.getRules().size());\n\t\tassertTrue(result.getRules().toString().contains(\"null\"));\n\t\tassertTrue(result.getRules().toString().contains(\"T1(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"A(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"R(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\tassertTrue(result.getRules().get(0).getBody().size() == 1);\n\t}", "@Override\r\n\tpublic void goForward() {\n\t\t\r\n\t}", "static int[] m11868m(Object[] r10, int r11, int r12, int r13) {\n /*\n r0 = 1\n if (r11 != r0) goto L_0x000e\n r11 = r10[r13]\n r12 = r13 ^ 1\n r10 = r10[r12]\n p067c.p068a.p134b.p136b.CollectPreconditions.m11785a(r11, r10)\n r10 = 0\n return r10\n L_0x000e:\n int r1 = r12 + -1\n int[] r12 = new int[r12]\n r2 = -1\n java.util.Arrays.fill(r12, r2)\n r3 = 0\n L_0x0017:\n if (r3 >= r11) goto L_0x0077\n int r4 = r3 * 2\n int r5 = r4 + r13\n r6 = r10[r5]\n r7 = r13 ^ 1\n int r4 = r4 + r7\n r4 = r10[r4]\n p067c.p068a.p134b.p136b.CollectPreconditions.m11785a(r6, r4)\n int r7 = r6.hashCode()\n int r7 = p067c.p068a.p134b.p136b.Hashing.m11897b(r7)\n L_0x002f:\n r7 = r7 & r1\n r8 = r12[r7]\n if (r8 != r2) goto L_0x0039\n r12[r7] = r5\n int r3 = r3 + 1\n goto L_0x0017\n L_0x0039:\n r9 = r10[r8]\n boolean r9 = r9.equals(r6)\n if (r9 != 0) goto L_0x0044\n int r7 = r7 + 1\n goto L_0x002f\n L_0x0044:\n java.lang.IllegalArgumentException r11 = new java.lang.IllegalArgumentException\n java.lang.StringBuilder r12 = new java.lang.StringBuilder\n r12.<init>()\n java.lang.String r13 = \"Multiple entries with same key: \"\n r12.append(r13)\n r12.append(r6)\n java.lang.String r13 = \"=\"\n r12.append(r13)\n r12.append(r4)\n java.lang.String r1 = \" and \"\n r12.append(r1)\n r1 = r10[r8]\n r12.append(r1)\n r12.append(r13)\n r13 = r8 ^ 1\n r10 = r10[r13]\n r12.append(r10)\n java.lang.String r10 = r12.toString()\n r11.<init>(r10)\n throw r11\n L_0x0077:\n return r12\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p067c.p068a.p134b.p136b.RegularImmutableMap.m11868m(java.lang.Object[], int, int, int):int[]\");\n }", "@Test\n public void testVirtualLists() throws Exception {\n assertReducesTo(\"2 dup 1 at.\", \"2 dup\");\n }", "@java.lang.Override\n public boolean hasForward() {\n return stepInfoCase_ == 13;\n }", "private void checkAndCorrectLabelReferences() {\n\t\t\n\t\tboolean madeChange;\n\t\tCodeItem codeItem = getCodeItem();\n\t\tList<Label> labels = codeItem.getLabels();\n\n\t\t// Parses all the Labels, and all the OffsetInstructions inside the Labels.\n\t\t// We stop the parsing whenever a change of instruction has been made, to restart the parsing\n\t\t// once again till everything is valid.\n\t\tdo {\n\t\t\tmadeChange = false;\n\t\t\tIterator<Label> labelIterator = labels.iterator();\n\t\t\twhile (!madeChange && labelIterator.hasNext()) {\n\t\t\t\tLabel label = labelIterator.next();\n\t\t\t\tArrayList<Instruction> instructions = label.getReferringInstructions();\n\t\n\t\t\t\tint insnIndex = 0;\n\t\t\t\tint nbInsn = instructions.size();\n\t\t\t\twhile (!madeChange && (insnIndex < nbInsn)) {\n\t\t\t\t\tInstruction insn = instructions.get(insnIndex);\n\t\t\t\t\t\n\t\t\t\t\tIOffsetInstruction offsetInsn = (IOffsetInstruction)insn;\n\t\t\t\t\tint instructionOffset = offsetInsn.getInstructionOffset();\n\t\t\t\t\t// The offset have to be divided by two, because the encoded offset is word based.\n\t\t\t\t\t// The relativeOffset is the offset for the Instruction to reach the Label.\n\t\t\t\t\t// It is negative if the Label is before the Instruction.\n\t\t\t\t\tint relativeOffset = (label.getOffset() - instructionOffset) / 2;\n\t\t\t\t\t\n\t\t\t\t\tint opcode = insn.getOpcodeByte();\n\t\t\t\t\tint maximumOffset = 0;\n\t\t\t\t\t// Check if the relative offset is valid for the instruction range. \n\t\t\t\t\tswitch (opcode) {\n\t\t\t\t\tcase 0x28: // Goto 8 bits.\n\t\t\t\t\t\tmaximumOffset = MAXIMUM_SIGNED_VALUE_8_BITS;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 0x29: // Goto 16 bits.\n\t\t\t\t\tcase 0x32: // If-test.\n\t\t\t\t\tcase 0x33:\n\t\t\t\t\tcase 0x34:\n\t\t\t\t\tcase 0x35:\n\t\t\t\t\tcase 0x36:\n\t\t\t\t\tcase 0x37:\n\t\t\t\t\tcase 0x38: // If-testz.\n\t\t\t\t\tcase 0x39:\n\t\t\t\t\tcase 0x3a:\n\t\t\t\t\tcase 0x3b:\n\t\t\t\t\tcase 0x3c:\n\t\t\t\t\tcase 0x3d:\n\t\t\t\t\t\tmaximumOffset = MAXIMUM_SIGNED_VALUE_16_BITS;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 0x2a: // Goto 32 bits.\n\t\t\t\t\tcase 0x2b: // Packed Switch.\n\t\t\t\t\tcase 0x2c: // Sparse Switch.\n\t\t\t\t\t\tmaximumOffset = MAXIMUM_SIGNED_VALUE_32_BITS;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\ttry { throw new Exception(\"Opcode error : 0x\" + Integer.toHexString(opcode)); } catch (Exception e) { e.printStackTrace(); }\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tint minimumOffset = -maximumOffset - 1;\n\t\t\t\t\t\n\t\t\t\t\tif ((relativeOffset < minimumOffset) || (relativeOffset > maximumOffset)) {\n\t\t\t\t\t\t// Must change to an Instruction with a bigger range. This is only possible for\n\t\t\t\t\t\t// the GOTO 8/16 bits.\n\t\t\t\t\t\tif ((opcode == Opcodes.INSN_GOTO) || (opcode == Opcodes.INSN_GOTO_16)) {\n\t\t\t\t\t\t\tInstruction newInsn;\n\t\t\t\t\t\t\t// Change to 16 or 32 bits ?\n\t\t\t\t\t\t\tif ((relativeOffset > MAXIMUM_SIGNED_VALUE_16_BITS) || (relativeOffset < MINIMUM_SIGNED_VALUE_16_BITS)) {\n\t\t\t\t\t\t\t\t// 32 bits.\n\t\t\t\t\t\t\t\tnewInsn = new InstructionFormat30T(Opcodes.INSN_GOTO_32, label, instructionOffset);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// 16 bits.\n\t\t\t\t\t\t\t\tnewInsn = new InstructionFormat20T(Opcodes.INSN_GOTO_16, label, instructionOffset);\n\t\t\t\t\t\t\t}\n\t\n\t\t\t\t\t\t\t// Removes the instruction from the codeItem and replaces it with the new one.\n\t\t\t\t\t\t\tcodeItem.replaceInstructions(insn, newInsn);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Replaces the old instruction with the new one in the Label Instructions list.\n\t\t\t\t\t\t\tinstructions.remove(insnIndex);\n\t\t\t\t\t\t\tinstructions.add(insnIndex, newInsn);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Shifts all the Jump related instructions and the labels AFTER this instruction.\n\t\t\t\t\t\t\tshiftOffsetInstructionsAndLabels(instructionOffset, newInsn.getSize() - insn.getSize());\n\t\t\t\t\t\t\tmadeChange = true;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttry { throw new IllegalArgumentException(\"Instruction Range extension unhandled. Opcode : 0x\" + Integer.toHexString(opcode)); } catch (Exception e) { e.printStackTrace(); }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tinsnIndex++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t} while (madeChange);\n\t}", "@java.lang.Override\n public boolean hasForward() {\n return stepInfoCase_ == 13;\n }", "@Test\n public void restoreIpAddressesBacktrack2Test() {\n String s1 = \"25525511135\";\n Set<String> expected1 = new HashSet<>();\n expected1.add(\"255.255.11.135\");\n expected1.add(\"255.255.111.35\");\n Set<String> actual1 = new HashSet<>(restoreIpAddressesBacktrack2(s1));\n assertEquals(expected1.size(), actual1.size());\n for (String s : expected1) {\n assertTrue(actual1.contains(s));\n }\n /**\n * Example 2:\n * Input: \"010010\"\n * Output: [\"0.10.0.10\",\"0.100.1.0\"]\n */\n String s2 = \"010010\";\n Set<String> expected2 = new HashSet<>();\n expected2.add(\"0.10.0.10\");\n expected2.add(\"0.100.1.0\");\n Set<String> actual2 = new HashSet<>(restoreIpAddressesBacktrack2(s2));\n assertEquals(expected2.size(), actual2.size());\n for (String s : expected2) {\n assertTrue(actual2.contains(s));\n }\n }", "private void updateFastForward(String out) {\n\t\tif (out.equals(properties.get(\"errorMsg\")) || out.equals(properties.get(\"failureMsg\"))) {\n\t\t\tfastForward = true;\n\t\t}\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tprivate static <ModelElem extends EObject> ModelElem reverse(Object fortranElem, ModelElem modelElem, Map<Object,Object> mappings) {\r\n\t\t\r\n\t\tEClass modelElemClass = modelElem.eClass();\r\n\t\t\t\r\n\t\t//this is required so that we can conditionally add mappings\r\n\t\t//that succeeded at the end of the method when no recursive\r\n\t\t//call is required (this only occurs at leaves of metamodel tree)\r\n\t\tMap<Object, Object> mappingsToAdd = new IdentityHashMap<Object, Object>();\r\n\t\t\r\n\t\t//assume a successful mapping (required for looking up\r\n\t\t//mappings during recursive calls)\r\n\t\t//mapping will be removed later if it fails\r\n\t\tmappings.put(modelElem, fortranElem);\t\r\n\t\t\r\n\t\t\t\t\t\t\r\n\t\tfor (EStructuralFeature sf : modelElemClass.getEAllStructuralFeatures()) {\r\n\t\t\t\r\n\t\t\tMap<String, Object> keywordMap = Regex.getMappingFromAnnotation(sf);\r\n\t\t\t\r\n\t\t\t/////NEW MAPPING PARSER HERE\r\n\t\t\t\t\t\t\r\n\t\t\tEAnnotation ann = sf.getEAnnotation(\"http://www.earthsystemcog.org/projects/nuopc\");\r\n\t\t\tif (ann != null && ann.getDetails().get(\"mappingNew\") != null) {\r\n\t\t\t\tString mappingNew = ann.getDetails().get(\"mappingNew\");\r\n\t\t\t\t//if (mappingNew != null) {\r\n\t\t\t\tMapping mapping = parseMappingNew(mappingNew);\r\n\t\t\t\tObject fortranContextElem;\r\n\t\t\t\t\r\n\t\t\t\tif (mapping.getContext() != null) {\r\n\t\t\t\t\t//explicit context\r\n\t\t\t\t\tEObject contextElement = EcoreUtils.eGetSFValue(mapping.getContext(), modelElem, true, null);\r\n\t\t\t\t\tfortranContextElem = mappings.get(contextElement);\r\n\t\t\t\t\tif (fortranContextElem == null) {\r\n\t\t\t\t\t\tthrow new RuntimeException(\"No Fortran context for element: \" + contextElement);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tfortranContextElem = fortranElem; //implicit\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tImplicitContextMapping icMapping = mapping.getMapping();\r\n\t\t\t\ticMapping = replacePathExprWithValues(icMapping, modelElem, true);\r\n\t\t\t\t\r\n\t\t\t\tString methodName = icMapping.eClass().getName().toLowerCase();\r\n\t\t\t\t\r\n\t\t\t\t//find method that implements code query\r\n\t\t\t\tMethod method = findREMethod(methodName, fortranContextElem, icMapping);\r\n\t\t\t\tif (method == null) {\r\n\t\t\t\t\tSystem.out.println(\"Method not found: \" + methodName);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tObject result = method.invoke(null, fortranContextElem, icMapping);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tif (method.getReturnType() == String.class ||\r\n\t\t\t\t\t\tmethod.getReturnType().isPrimitive()) {\r\n\t\t\t\t\t\tmodelElem.eSet(sf, result);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Token.class) {\r\n\t\t\t\t\t\tif (result != null) {\r\n\t\t\t\t\t\t\t//String constructor required because of IdentityHashMap\r\n\t\t\t\t\t\t\tString text = new String(((Token)result).getText());\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, text);\r\n\t\t\t\t\t\t\tmappingsToAdd.put(text, result);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t//what should we do here?\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Set.class ||\r\n\t\t\t\t\t\t\t method.getReturnType() == Map.class) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do we have a set of primitives?\r\n\t\t\t\t\t\tif (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEString())) {\r\n\t\t\t\t\t\t\tSet<String> resultSet;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<String>) ((Map) result).keySet();\r\n\t\t\t\t\t\t\t\t//TODO: ignoring PathExprs for now\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<String>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfor (String res : resultSet) {\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(res);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, res);\r\n\t\t\t\t\t\t\t\t\tbreak; //just take first one\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}\r\n\t\t\t\t\t\t//result is a set of objects - either IASTNodes or IFortranASTs\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSet<Object> resultSet = null;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = ((Map) result).keySet();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<Object>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor (Object newFortranElem : resultSet) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//set binding in model\r\n\t\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\t\tMap<PathExpr, String> bindings = ((Map<?, Map<PathExpr, String>>) result).get(newFortranElem);\r\n\t\t\t\t\t\t\t\t\tfor (Entry<PathExpr, String> binding : bindings.entrySet()) {\r\n\t\t\t\t\t\t\t\t\t\tboolean featureSet = EcoreUtils.eSetSFValue(binding.getKey(), newModelElem, binding.getValue());\r\n\t\t\t\t\t\t\t\t\t\tif (!featureSet) {\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Feature not set: \" + binding.getKey());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// set up parent relationship for references (may be removed later)\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//recursive call\r\n\t\t\t\t\t\t\t\tEObject newModelElemRet = reverse(newFortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// if NULL returned, then mapping failed, so remove element from parent\r\n\t\t\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t//TODO: consider replacing with previous value?\r\n\t\t\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (!sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tbreak; // take first one that is not null\r\n\t\t\t\t\t\t\t\t}\t\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\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} // end check for primitives vs. objects in results\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t}\t\t\t\t\t\t\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\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////END OF NEW MAPPING PARSER\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\telse if (keywordMap != null && keywordMap.size() > 0) {\t\r\n\t\t\t\t\r\n\t\t\t\tString methodName = Regex.getMappingTypeFromAnnotation(sf);\r\n\t\t\t\t\r\n\t\t\t\t//populate metavariables\t\t\t\t\t\t\r\n\t\t\t\tfor (Entry<String, Object> entry : keywordMap.entrySet()) {\r\n\t\t\t\t\t//TODO: should we handle different metavariable types here?\r\n\t\t\t\t\t// or just strings?\r\n\t\t\t\t\tif (!entry.getKey().equals(\"_context\") && entry.getValue() instanceof String) {\r\n\t\t\t\t\t\tString val = (String) entry.getValue();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tMatcher match = CodeQuery.P_METAVAR.matcher(val);\r\n\t\t\t\t\t\twhile (match.find()) {\r\n\t\t\t\t\t\t\t//already at parent, so remove one leading ../\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\tString metavar = match.group().substring(1);\r\n\t\t\t\t\t\t\tif (metavar.startsWith(\"../\")) { \r\n\t\t\t\t\t\t\t\tmetavar = metavar.substring(3);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//TODO: decide what to do about NULL_VALUE below\r\n\t\t\t\t\t\t\t\tString replaceVal = EcoreUtils.eGetSFValue(metavar, modelElem, null);\r\n\t\t\t\t\t\t\t\tif (replaceVal != null) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Replacing metavariable: \" + match.group() + \" with val: \" + replaceVal);\r\n\t\t\t\t\t\t\t\t\tentry.setValue(val.replaceAll(match.group(), replaceVal));\r\n\t\t\t\t\t\t\t\t}\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}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tObject fortranContextElem;\r\n\t\t\t\t\r\n\t\t\t\tif (keywordMap.containsKey(\"_context\")) {\r\n\t\t\t\t\t//explicit context provided\r\n\t\t\t\t\tString contextPath = (String) keywordMap.get(\"_context\");\r\n\t\t\t\t\tif (!contextPath.startsWith(\"#..\")) {\r\n\t\t\t\t\t\t//error\r\n\t\t\t\t\t\tSystem.out.println(\"Explicit context path must contain parent node\");\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (contextPath.startsWith(\"#../\")) {\r\n\t\t\t\t\t\tcontextPath = contextPath.substring(4);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (contextPath.startsWith(\"#..\")) {\r\n\t\t\t\t\t\tcontextPath = contextPath.substring(3);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tEObject explicitContextElem;\r\n\t\t\t\t\tif (contextPath.equals(\"\")) {\r\n\t\t\t\t\t\texplicitContextElem = modelElem;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\texplicitContextElem = EcoreUtils.eGetSFValue(contextPath, modelElem, null);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tfortranContextElem = mappings.get(explicitContextElem);\r\n\t\t\t\t\tif (fortranContextElem == null) {\r\n\t\t\t\t\t\tSystem.out.println(\"MAPPED fortran element not found: \" + explicitContextElem);\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t//implicit context\r\n\t\t\t\t\tfortranContextElem = fortranElem;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//find method that implements code query\r\n\t\t\t\tMethod method = null;\r\n\t\t\t\tfor (Method m : CodeQuery.class.getMethods()) {\r\n\t\t\t\t\tif (m.getName().equalsIgnoreCase(methodName)) {\r\n\t\t\t\t\t\tClass contextClass = m.getParameterTypes()[0];\r\n\t\t\t\t\t\tClass paramClass = m.getParameterTypes()[1];\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (contextClass.isInstance(fortranContextElem) &&\r\n\t\t\t\t\t\t\tparamClass.isInstance(keywordMap)) {\r\n\t\t\t\t\t\t\tmethod = m;\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}\r\n\t\t\t\t\r\n\t\t\t\tif (method == null) {\r\n\t\t\t\t\tSystem.out.println(\"Method not found: \" + methodName);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//System.out.println(\"Calling method: \" + methodName + \" with first param: \" + fortranElem.getClass());\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tObject result = method.invoke(null, fortranContextElem, keywordMap);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tif (method.getReturnType() == String.class ||\r\n\t\t\t\t\t\tmethod.getReturnType().isPrimitive()) {\r\n\t\t\t\t\t\tmodelElem.eSet(sf, result);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Token.class) {\r\n\t\t\t\t\t\tif (result != null) {\r\n\t\t\t\t\t\t\t//String constructor required because of IdentityHashMap\r\n\t\t\t\t\t\t\tString text = new String(((Token)result).getText());\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, text);\r\n\t\t\t\t\t\t\tmappingsToAdd.put(text, result);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t//what should we do here?\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Set.class ||\r\n\t\t\t\t\t\t\t method.getReturnType() == Map.class) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do we have a set of primitives?\r\n\t\t\t\t\t\tif (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEString())) {\r\n\t\t\t\t\t\t\tSet<String> resultSet = (Set<String>) result;\r\n\t\t\t\t\t\t\tfor (String res : resultSet) {\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(res);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, res);\r\n\t\t\t\t\t\t\t\t\tbreak; //just take first one\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}\r\n\t\t\t\t\t\t//result is a set of objects - either IASTNodes or IFortranASTs\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSet<Object> resultSet = null;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = ((Map) result).keySet();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<Object>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor (Object newFortranElem : resultSet) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\t\t\tEObject newModelElemRet = null;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//TODO: work on precedence between metavariables and explicit sub-mappings\r\n\t\t\t\t\t\t\t\t//populate attributes based on metavariables\r\n\t\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\t\tMap<String,String> metavariableMap = (Map<String,String>) ((Map) result).get(newFortranElem);\r\n\t\t\t\t\t\t\t\t\tfor (Entry<String,String> mve : metavariableMap.entrySet()) {\r\n\t\t\t\t\t\t\t\t\t\tString attribName = mve.getKey().substring(1);\r\n\t\t\t\t\t\t\t\t\t\tEStructuralFeature attribSF = newModelElem.eClass().getEStructuralFeature(attribName);\r\n\t\t\t\t\t\t\t\t\t\tif (attribSF != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Metavariable - setting feature: \" + attribName + \" to \" + mve.getValue());\r\n\t\t\t\t\t\t\t\t\t\t\tnewModelElem.eSet(attribSF, mve.getValue());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Metavariable - feature not found: \" + attribName);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// set up parent relationship for references (may be removed later)\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//recursive call\r\n\t\t\t\t\t\t\t\tnewModelElemRet = reverse(newFortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// if NULL returned, then remove model element from parent\r\n\t\t\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t//consider replacing with previous value\r\n\t\t\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (!sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tbreak; // take first one that is not null\r\n\t\t\t\t\t\t\t\t}\t\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\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} // end check for primitives vs. objects in results\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} // end if that checks for query string\r\n\t\t\telse {\r\n\t\t\t\t//this means there is no mapping defined - if it is an EReference, then we create \r\n\t\t\t\t//the target and its children determine whether the mapping holds\r\n\t\t\t\t//in other words, this is just an extra layer of abstraction defined by the user\r\n\t\t\t\t\r\n\t\t\t\tif (sf instanceof EReference) {\r\n\t\t\t\t\tif (((EReference) sf).isContainment()) {\r\n\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tEObject newModelElemRet = reverse(fortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t//consider replacing with previous value\r\n\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\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}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//at this point we have set the value of the structural feature\r\n\t\t\t//if is essential, but not present or false, the parent is no good\r\n\t\t\t\r\n\t\t\tif (Regex.getIsEssentialFromAnnotation(sf)) {\t\r\n\t\t\t\tboolean fail = false;\r\n\t\t\t\t\r\n\t\t\t\tif (modelElem.eGet(sf) == null) {\t\t\t\t\t\r\n\t\t\t\t\tfail = true;\r\n\t\t\t\t}\r\n\t\t\t\telse if (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEBoolean()) &&\r\n\t\t\t\t\t\t! (Boolean) modelElem.eGet(sf)) {\r\n\t\t\t\t\tfail = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (fail) {\r\n\t\t\t\t\tmappings.remove(modelElem);\r\n\t\t\t\t\t//an essential feature failed, so no need to process \r\n\t\t\t\t\t//any more structural features\r\n\t\t\t\t\treturn null;\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\t\r\n\t\t} // end for structural features\r\n\t\t\r\n\t\tmappings.putAll(mappingsToAdd);\r\n\r\n\t\treturn modelElem;\r\n\t}", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n Range.Builder range_Builder2 = range_Builder0.expandBegin((-636L));\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.getBegin(range_CoordinateSystem1);\n range0.equals(linkedList0);\n Range.of(2139L, 2139L);\n Range range2 = Range.of(1124L);\n List<Range> list0 = range1.complement(range2);\n Range range3 = Range.of(range_CoordinateSystem0, (-636L), 1734L);\n range3.complementFrom(list0);\n Range.of(9223372036854775807L);\n Range range4 = Range.of((-23L), 0L);\n range4.equals(range3);\n range2.complement(range4);\n // Undeclared exception!\n try { \n range_Builder2.build();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }", "@Test\n public void restoreIpAddressesBacktrack1Test() {\n String s1 = \"25525511135\";\n Set<String> expected1 = new HashSet<>();\n expected1.add(\"255.255.11.135\");\n expected1.add(\"255.255.111.35\");\n Set<String> actual1 = new HashSet<>(restoreIpAddressesBacktrack1(s1));\n assertEquals(expected1.size(), actual1.size());\n for (String s : expected1) {\n assertTrue(actual1.contains(s));\n }\n /**\n * Example 2:\n * Input: \"010010\"\n * Output: [\"0.10.0.10\",\"0.100.1.0\"]\n */\n String s2 = \"010010\";\n Set<String> expected2 = new HashSet<>();\n expected2.add(\"0.10.0.10\");\n expected2.add(\"0.100.1.0\");\n Set<String> actual2 = new HashSet<>(restoreIpAddressesBacktrack1(s2));\n assertEquals(expected2.size(), actual2.size());\n for (String s : expected2) {\n assertTrue(actual2.contains(s));\n }\n }", "@Test(timeout = 4000)\n public void test38() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n long long0 = new Long(0L);\n Range range1 = Range.of(4294967295L);\n long long1 = range1.getBegin();\n assertEquals(4294967295L, long1);\n \n Consumer<Long> consumer0 = (Consumer<Long>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n List<Range> list0 = range0.complement(range1);\n List<Range> list1 = range0.complementFrom(list0);\n Range range2 = Range.ofLength(2147483647L);\n range1.intersection(range0);\n Range range3 = Range.of(range_CoordinateSystem0, 0L, 4294967295L);\n range3.getEnd();\n boolean boolean0 = range2.intersects(range0);\n boolean boolean1 = range2.equals(\"numbeg of entries must be <= Integer.MAX_VALUE\");\n assertFalse(boolean1 == boolean0);\n \n Range range4 = Range.of(0L);\n assertFalse(range4.isEmpty());\n \n Range range5 = Range.of(1566L);\n List<Range> list2 = range5.complement(range2);\n assertFalse(list2.equals((Object)list0));\n assertTrue(list2.equals((Object)list1));\n }", "@Test\n\tpublic void testForwardNonFrameBlockSubstitution() throws InvalidGenomeChange {\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6642114, PositionType.ZERO_BASED),\n\t\t\t\t\"TAAACA\", \"GTT\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(AnnotationLocation.INVALID_RANK, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.691-3_693delinsGTT\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Trp231Val\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.NON_FS_SUBSTITUTION, VariantType.SPLICE_ACCEPTOR),\n\t\t\t\tannotation1.effects);\n\n\t\t// deletion of three codons, insertion of one\n\t\tGenomeChange change2 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6642126, PositionType.ZERO_BASED),\n\t\t\t\t\"GTGGTTCAA\", \"ACC\");\n\t\tAnnotation annotation2 = new BlockSubstitutionAnnotationBuilder(infoForward, change2).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation2.transcript.accession);\n\t\tAssert.assertEquals(2, annotation2.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.700_708delinsACC\", annotation2.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Val234_Gln236delinsThr\", annotation2.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.NON_FS_SUBSTITUTION), annotation2.effects);\n\n\t\t// deletion of three codons, insertion of one, includes truncation of replacement ref from the right\n\t\tGenomeChange change3 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6642134, PositionType.ZERO_BASED),\n\t\t\t\t\"AGTGGAGGAT\", \"CTT\");\n\t\tAnnotation annotation3 = new BlockSubstitutionAnnotationBuilder(infoForward, change3).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation3.transcript.accession);\n\t\tAssert.assertEquals(2, annotation3.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.708_716delinsCT\", annotation3.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Gln236Hisfs*16\", annotation3.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.FS_SUBSTITUTION), annotation3.effects);\n\t}", "@android.annotation.TargetApi(17)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void resolveLayoutDirection(int r6) {\n /*\n r5 = this;\n int r0 = r5.leftMargin\n int r1 = r5.rightMargin\n super.resolveLayoutDirection(r6)\n r6 = -1\n r5.ad = r6\n r5.ae = r6\n r5.ab = r6\n r5.ac = r6\n r5.af = r6\n r5.ag = r6\n int r2 = r5.t\n r5.af = r2\n int r2 = r5.v\n r5.ag = r2\n float r2 = r5.z\n r5.ah = r2\n int r2 = r5.a\n r5.ai = r2\n int r2 = r5.b\n r5.aj = r2\n float r2 = r5.c\n r5.ak = r2\n int r2 = r5.getLayoutDirection()\n r3 = 0\n r4 = 1\n if (r4 != r2) goto L_0x0036\n r2 = 1\n goto L_0x0037\n L_0x0036:\n r2 = 0\n L_0x0037:\n if (r2 == 0) goto L_0x00ac\n int r2 = r5.p\n if (r2 == r6) goto L_0x0043\n int r2 = r5.p\n r5.ad = r2\n L_0x0041:\n r3 = 1\n goto L_0x004c\n L_0x0043:\n int r2 = r5.q\n if (r2 == r6) goto L_0x004c\n int r2 = r5.q\n r5.ae = r2\n goto L_0x0041\n L_0x004c:\n int r2 = r5.r\n if (r2 == r6) goto L_0x0055\n int r2 = r5.r\n r5.ac = r2\n r3 = 1\n L_0x0055:\n int r2 = r5.s\n if (r2 == r6) goto L_0x005e\n int r2 = r5.s\n r5.ab = r2\n r3 = 1\n L_0x005e:\n int r2 = r5.x\n if (r2 == r6) goto L_0x0066\n int r2 = r5.x\n r5.ag = r2\n L_0x0066:\n int r2 = r5.y\n if (r2 == r6) goto L_0x006e\n int r2 = r5.y\n r5.af = r2\n L_0x006e:\n r2 = 1065353216(0x3f800000, float:1.0)\n if (r3 == 0) goto L_0x0078\n float r3 = r5.z\n float r3 = r2 - r3\n r5.ah = r3\n L_0x0078:\n boolean r3 = r5.Y\n if (r3 == 0) goto L_0x00dc\n int r3 = r5.S\n if (r3 != r4) goto L_0x00dc\n float r3 = r5.c\n r4 = -1082130432(0xffffffffbf800000, float:-1.0)\n int r3 = (r3 > r4 ? 1 : (r3 == r4 ? 0 : -1))\n if (r3 == 0) goto L_0x0092\n float r3 = r5.c\n float r2 = r2 - r3\n r5.ak = r2\n r5.ai = r6\n r5.aj = r6\n goto L_0x00dc\n L_0x0092:\n int r2 = r5.a\n if (r2 == r6) goto L_0x009f\n int r2 = r5.a\n r5.aj = r2\n r5.ai = r6\n r5.ak = r4\n goto L_0x00dc\n L_0x009f:\n int r2 = r5.b\n if (r2 == r6) goto L_0x00dc\n int r2 = r5.b\n r5.ai = r2\n r5.aj = r6\n r5.ak = r4\n goto L_0x00dc\n L_0x00ac:\n int r2 = r5.p\n if (r2 == r6) goto L_0x00b4\n int r2 = r5.p\n r5.ac = r2\n L_0x00b4:\n int r2 = r5.q\n if (r2 == r6) goto L_0x00bc\n int r2 = r5.q\n r5.ab = r2\n L_0x00bc:\n int r2 = r5.r\n if (r2 == r6) goto L_0x00c4\n int r2 = r5.r\n r5.ad = r2\n L_0x00c4:\n int r2 = r5.s\n if (r2 == r6) goto L_0x00cc\n int r2 = r5.s\n r5.ae = r2\n L_0x00cc:\n int r2 = r5.x\n if (r2 == r6) goto L_0x00d4\n int r2 = r5.x\n r5.af = r2\n L_0x00d4:\n int r2 = r5.y\n if (r2 == r6) goto L_0x00dc\n int r2 = r5.y\n r5.ag = r2\n L_0x00dc:\n int r2 = r5.r\n if (r2 != r6) goto L_0x012e\n int r2 = r5.s\n if (r2 != r6) goto L_0x012e\n int r2 = r5.q\n if (r2 != r6) goto L_0x012e\n int r2 = r5.p\n if (r2 != r6) goto L_0x012e\n int r2 = r5.f\n if (r2 == r6) goto L_0x00fd\n int r2 = r5.f\n r5.ad = r2\n int r2 = r5.rightMargin\n if (r2 > 0) goto L_0x010d\n if (r1 <= 0) goto L_0x010d\n r5.rightMargin = r1\n goto L_0x010d\n L_0x00fd:\n int r2 = r5.g\n if (r2 == r6) goto L_0x010d\n int r2 = r5.g\n r5.ae = r2\n int r2 = r5.rightMargin\n if (r2 > 0) goto L_0x010d\n if (r1 <= 0) goto L_0x010d\n r5.rightMargin = r1\n L_0x010d:\n int r1 = r5.d\n if (r1 == r6) goto L_0x011e\n int r6 = r5.d\n r5.ab = r6\n int r6 = r5.leftMargin\n if (r6 > 0) goto L_0x012e\n if (r0 <= 0) goto L_0x012e\n r5.leftMargin = r0\n return\n L_0x011e:\n int r1 = r5.e\n if (r1 == r6) goto L_0x012e\n int r6 = r5.e\n r5.ac = r6\n int r6 = r5.leftMargin\n if (r6 > 0) goto L_0x012e\n if (r0 <= 0) goto L_0x012e\n r5.leftMargin = r0\n L_0x012e:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.ConstraintLayout.LayoutParams.resolveLayoutDirection(int):void\");\n }", "protected void sequence_FORWARD(ISerializationContext context, FORWARD semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_YIMPL__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_YIMPL__NAME));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_YIMPL__DISTANCE_CST) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_YIMPL__DISTANCE_CST));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_YIMPL__TEMPS_CST) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_YIMPL__TEMPS_CST));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getFORWARDAccess().getNameForwardKeyword_0_0(), semanticObject.getName());\n\t\tfeeder.accept(grammarAccess.getFORWARDAccess().getDistanceCSTINTTerminalRuleCall_4_0(), semanticObject.getDistanceCST());\n\t\tfeeder.accept(grammarAccess.getFORWARDAccess().getTempsCSTINTTerminalRuleCall_7_0(), semanticObject.getTempsCST());\n\t\tfeeder.finish();\n\t}", "@Test\n\tpublic void testContrapInHyp2_Bug3370087() throws Exception {\n\t\timportProofSerializationProofs();\n\n\t\t// input for doubleImplGoalRewrites is missing\n\t\tfinal IPRRoot prFile = getProofRoot(\"contrapInHyp2\");\n\t\tfinal IPRProof proof = prFile.getProof(\"cplx\");\n\n\t\tfinal IProverSequent sequent = TestLib.genSeq(factory,\n\t\t\t\t\"s≠(∅ ⦂ ℙ(S))⇒(∀x⦂ℙ(S)·s⊆x⇒(x⊆t⇒t=s)) ;; \" + \"s∈ℙ(S)∧s⊆t ;; \" + \"s≠(∅ ⦂ ℙ(S))\" + \" |- t=s\");\n\n\t\tcheckReplay(sequent, proof);\n\t}", "@Override\n\tpublic boolean reverseCorrectIt() {\n\t\treturn false;\n\t}", "@Override\n public void backward() {\n }", "@Test\n\tpublic void testAbstractManualRewrites_Bug717() throws Exception {\n\t\timportProofSerializationProofs();\n\n\t\tfinal IPRRoot prFile = getProofRoot(\"partitionRewrite\");\n\t\tfinal IPRProof proof = prFile.getProof(\"oldPartitionRewrite\");\n\n\t\t// a IllegalStateException is thrown when the bug is present:\n\t\tfinal IProofTree proofTree = proof.getProofTree(null);\n\n\t\t// ensure that the proof rule is deserialized:\n\t\tfinal IProofTreeNode root = proofTree.getRoot();\n\t\tassertFalse(root.isOpen());\n\t\tfinal IProofRule rule = root.getRule();\n\t\tassertEquals(SequentProver.PLUGIN_ID + \".partitionRewrites\", rule.generatedBy().getReasonerID());\n\t\tassertEquals(3, rule.getAntecedents()[0].getHypActions().size());\n\t}", "public void filterToBidirectionalLinks() {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) getRTComponent().rc; if (myrc == null) return;\n\n // Get the visible links, extract the direction, create the reverse direction -- if that exists, add those records to keepers\n Iterator<String> it = myrc.graphedgeref_to_link.keySet().iterator(); Set<Bundle> to_keep = new HashSet<Bundle>();\n while (it.hasNext()) {\n String graph_edge_ref = it.next(); String line_ref = myrc.graphedgeref_to_link.get(graph_edge_ref);\n int fm_i = digraph.linkRefFm(graph_edge_ref);\n int to_i = digraph.linkRefTo(graph_edge_ref);\n String other_dir = digraph.getLinkRef(to_i,fm_i);\n if (myrc.graphedgeref_to_link.containsKey(other_dir)) { to_keep.addAll(myrc.link_counter_context.getBundles(line_ref)); }\n }\n\n // Add the no mapping set and push it to the RTParent\n to_keep.addAll(getRTComponent().getNoMappingSet()); getRTParent().push(getRTParent().getRootBundles().subset(to_keep));\n }", "public void mo130020b() {\n if (getAndIncrement() == 0) {\n AbstractC32175x<? super R> xVar = this.f109109a;\n ErrorMode iVar = this.f109114f;\n SimplePlainQueue<T> iVar2 = this.f109113e;\n AtomicThrowable cVar = this.f109111c;\n int i = 1;\n while (true) {\n if (this.f109117i) {\n iVar2.clear();\n this.f109118j = null;\n } else {\n int i2 = this.f109119k;\n if (cVar.get() == null || !(iVar == ErrorMode.IMMEDIATE || (iVar == ErrorMode.BOUNDARY && i2 == 0))) {\n boolean z = false;\n if (i2 == 0) {\n boolean z2 = this.f109116h;\n T poll = iVar2.poll();\n if (poll == null) {\n z = true;\n }\n if (z2 && z) {\n Throwable a = cVar.mo130469a();\n if (a == null) {\n xVar.onComplete();\n return;\n } else {\n xVar.onError(a);\n return;\n }\n } else if (!z) {\n try {\n MaybeSource oVar = (MaybeSource) ObjectHelper.m147684a(this.f109110b.apply(poll), \"The mapper returned a null MaybeSource\");\n this.f109119k = 1;\n oVar.mo130568a(this.f109112d);\n } catch (Throwable th) {\n C31732b.m147608b(th);\n this.f109115g.dispose();\n iVar2.clear();\n cVar.mo130470a(th);\n xVar.onError(cVar.mo130469a());\n return;\n }\n }\n } else if (i2 == 2) {\n R r = this.f109118j;\n this.f109118j = null;\n xVar.onNext(r);\n this.f109119k = 0;\n }\n }\n }\n i = addAndGet(-i);\n if (i == 0) {\n return;\n }\n }\n iVar2.clear();\n this.f109118j = null;\n xVar.onError(cVar.mo130469a());\n }\n }", "private void normalizeBackwards()\n {\n normalize();\n m_bufferOffset_ = m_buffer_.length();\n }", "public com.p035e.p036a.C2298v followUpRequest() throws java.io.IOException {\n /*\n r4 = this;\n r1 = 0;\n r0 = r4.f5694n;\n if (r0 != 0) goto L_0x000b;\n L_0x0005:\n r0 = new java.lang.IllegalStateException;\n r0.<init>();\n throw r0;\n L_0x000b:\n r0 = r4.getRoute();\n if (r0 == 0) goto L_0x0024;\n L_0x0011:\n r0 = r4.getRoute();\n r0 = r0.getProxy();\n L_0x0019:\n r2 = r4.f5694n;\n r2 = r2.code();\n switch(r2) {\n case 300: goto L_0x0066;\n case 301: goto L_0x0066;\n case 302: goto L_0x0066;\n case 303: goto L_0x0066;\n case 307: goto L_0x0048;\n case 308: goto L_0x0048;\n case 401: goto L_0x003b;\n case 407: goto L_0x002b;\n default: goto L_0x0022;\n };\n L_0x0022:\n r0 = r1;\n L_0x0023:\n return r0;\n L_0x0024:\n r0 = r4.f5682a;\n r0 = r0.getProxy();\n goto L_0x0019;\n L_0x002b:\n r1 = r0.type();\n r2 = java.net.Proxy.Type.HTTP;\n if (r1 == r2) goto L_0x003b;\n L_0x0033:\n r0 = new java.net.ProtocolException;\n r1 = \"Received HTTP_PROXY_AUTH (407) code while not using proxy\";\n r0.<init>(r1);\n throw r0;\n L_0x003b:\n r1 = r4.f5682a;\n r1 = r1.getAuthenticator();\n r2 = r4.f5694n;\n r0 = com.p035e.p036a.p054a.p055a.C2182j.processAuthHeader(r1, r2, r0);\n goto L_0x0023;\n L_0x0048:\n r0 = r4.f5691k;\n r0 = r0.method();\n r2 = \"GET\";\n r0 = r0.equals(r2);\n if (r0 != 0) goto L_0x0066;\n L_0x0056:\n r0 = r4.f5691k;\n r0 = r0.method();\n r2 = \"HEAD\";\n r0 = r0.equals(r2);\n if (r0 != 0) goto L_0x0066;\n L_0x0064:\n r0 = r1;\n goto L_0x0023;\n L_0x0066:\n r0 = r4.f5682a;\n r0 = r0.getFollowRedirects();\n if (r0 != 0) goto L_0x0070;\n L_0x006e:\n r0 = r1;\n goto L_0x0023;\n L_0x0070:\n r0 = r4.f5694n;\n r2 = \"Location\";\n r0 = r0.header(r2);\n if (r0 != 0) goto L_0x007c;\n L_0x007a:\n r0 = r1;\n goto L_0x0023;\n L_0x007c:\n r2 = new java.net.URL;\n r3 = r4.f5691k;\n r3 = r3.url();\n r2.<init>(r3, r0);\n r0 = r2.getProtocol();\n r3 = \"https\";\n r0 = r0.equals(r3);\n if (r0 != 0) goto L_0x00a1;\n L_0x0093:\n r0 = r2.getProtocol();\n r3 = \"http\";\n r0 = r0.equals(r3);\n if (r0 != 0) goto L_0x00a1;\n L_0x009f:\n r0 = r1;\n goto L_0x0023;\n L_0x00a1:\n r0 = r2.getProtocol();\n r3 = r4.f5691k;\n r3 = r3.url();\n r3 = r3.getProtocol();\n r0 = r0.equals(r3);\n if (r0 != 0) goto L_0x00c0;\n L_0x00b5:\n r0 = r4.f5682a;\n r0 = r0.getFollowSslRedirects();\n if (r0 != 0) goto L_0x00c0;\n L_0x00bd:\n r0 = r1;\n goto L_0x0023;\n L_0x00c0:\n r0 = r4.f5691k;\n r0 = r0.newBuilder();\n r3 = r4.f5691k;\n r3 = r3.method();\n r3 = com.p035e.p036a.p054a.p055a.C2178h.permitsRequestBody(r3);\n if (r3 == 0) goto L_0x00e6;\n L_0x00d2:\n r3 = \"GET\";\n r0.method(r3, r1);\n r1 = \"Transfer-Encoding\";\n r0.removeHeader(r1);\n r1 = \"Content-Length\";\n r0.removeHeader(r1);\n r1 = \"Content-Type\";\n r0.removeHeader(r1);\n L_0x00e6:\n r1 = r4.sameConnection(r2);\n if (r1 != 0) goto L_0x00f1;\n L_0x00ec:\n r1 = \"Authorization\";\n r0.removeHeader(r1);\n L_0x00f1:\n r0 = r0.url(r2);\n r0 = r0.build();\n goto L_0x0023;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.e.a.a.a.g.followUpRequest():com.e.a.v\");\n }", "private void fixFaultyLinkTargets()\r\n \t{\r\n \t\tSimpleLogger.verbose(\" Checking for faulty TOC link targets...\");\r\n \r\n \t\tSimpleLogger.verbose(\" Book title = \" + pageTitle);\r\n \r\n \t\t// Exclude the 3 know exceptions and immediately return if one is found\r\n \t\tif (pageTitle.matches(\".*(ActionScript 1 und 2|Microsoft-Netzwerk|Shell-Programmierung).*\")) {\r\n \t\t\tSimpleLogger.verbose(\" Book title is an exception - no link fixing done\");\r\n \t\t\treturn;\r\n \t\t}\r\n \r\n \t\tint fixedLinksCount = 0;\r\n \t\tNodes links = xPathQuery(XPath.ALL_LINKS.query);\r\n \t\tfor (int i = 0; i < links.size(); i++) {\r\n \t\t\tElement link = (Element) links.get(i);\r\n \t\t\tString href = link.getAttributeValue(\"href\");\r\n \t\t\tString text = link.getValue();\r\n \t\t\tMatcher hrefMatcher = REGEX_HREF.matcher(href);\r\n \t\t\tMatcher textMatcher = REGEX_TEXT.matcher(text);\r\n \t\t\tif (hrefMatcher.matches() && textMatcher.matches()) {\r\n \t\t\t\tint hrefNumber = Integer.parseInt(hrefMatcher.group(2));\r\n \t\t\t\tint textNumber = Integer.parseInt(textMatcher.group(2));\r\n \t\t\t\tif (hrefNumber != textNumber) {\r\n \t\t\t\t\tSimpleLogger.debug(\" Chapter \" + text);\r\n \t\t\t\t\tSimpleLogger.debug(\" Faulty: \" + href);\r\n \t\t\t\t\tString numberFormat = \"%0\" + hrefMatcher.group(2).length() + \"d\";\r\n \t\t\t\t\thref=hrefMatcher.group(1) + String.format(numberFormat, textNumber) + hrefMatcher.group(3);\r\n \t\t\t\t\tSimpleLogger.debug(\" Fixed: \" + href);\r\n \t\t\t\t\tlink.getAttribute(\"href\").setValue(href);\r\n \t\t\t\t\tfixedLinksCount++;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\tSimpleLogger.verbose(\" Number of fixed links = \" + fixedLinksCount);\r\n \t}", "protected void handleTransliterate(Replaceable text, Transliterator.Position pos, boolean isIncremental)\n/* */ {\n/* 140 */ int start = pos.start;\n/* 141 */ int limit = pos.limit;\n/* */ \n/* */ \n/* */ \n/* 145 */ while (start < limit)\n/* */ {\n/* */ \n/* */ \n/* 149 */ for (int ipat = 0; this.spec[ipat] != 65535;)\n/* */ {\n/* */ \n/* 152 */ int prefixLen = this.spec[(ipat++)];\n/* 153 */ int suffixLen = this.spec[(ipat++)];\n/* 154 */ int radix = this.spec[(ipat++)];\n/* 155 */ int minDigits = this.spec[(ipat++)];\n/* 156 */ int maxDigits = this.spec[(ipat++)];\n/* */ \n/* */ \n/* */ \n/* 160 */ int s = start;\n/* 161 */ boolean match = true;\n/* */ \n/* 163 */ for (int i = 0; i < prefixLen; i++) {\n/* 164 */ if ((s >= limit) && \n/* 165 */ (i > 0))\n/* */ {\n/* */ \n/* */ \n/* */ \n/* 170 */ if (isIncremental) {\n/* */ break label452;\n/* */ }\n/* 173 */ match = false;\n/* 174 */ break;\n/* */ }\n/* */ \n/* 177 */ char c = text.charAt(s++);\n/* 178 */ if (c != this.spec[(ipat + i)]) {\n/* 179 */ match = false;\n/* 180 */ break;\n/* */ }\n/* */ }\n/* */ \n/* 184 */ if (match) {\n/* 185 */ int u = 0;\n/* 186 */ int digitCount = 0;\n/* */ for (;;) {\n/* 188 */ if (s >= limit)\n/* */ {\n/* 190 */ if ((s > start) && (isIncremental)) {\n/* */ break label452;\n/* */ }\n/* */ }\n/* */ else {\n/* 195 */ int ch = text.char32At(s);\n/* 196 */ int digit = UCharacter.digit(ch, radix);\n/* 197 */ if (digit >= 0)\n/* */ {\n/* */ \n/* 200 */ s += UTF16.getCharCount(ch);\n/* 201 */ u = u * radix + digit;\n/* 202 */ digitCount++; if (digitCount == maxDigits)\n/* */ break;\n/* */ }\n/* */ }\n/* */ }\n/* 207 */ match = digitCount >= minDigits;\n/* */ \n/* 209 */ if (match) {\n/* 210 */ for (i = 0; i < suffixLen; i++) {\n/* 211 */ if (s >= limit)\n/* */ {\n/* 213 */ if ((s > start) && (isIncremental)) {\n/* */ break label452;\n/* */ }\n/* 216 */ match = false;\n/* 217 */ break;\n/* */ }\n/* 219 */ char c = text.charAt(s++);\n/* 220 */ if (c != this.spec[(ipat + prefixLen + i)]) {\n/* 221 */ match = false;\n/* 222 */ break;\n/* */ }\n/* */ }\n/* */ \n/* 226 */ if (match)\n/* */ {\n/* 228 */ String str = UTF16.valueOf(u);\n/* 229 */ text.replace(start, s, str);\n/* 230 */ limit -= s - start - str.length();\n/* */ \n/* */ \n/* */ \n/* */ \n/* 235 */ break;\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* 240 */ ipat += prefixLen + suffixLen;\n/* */ }\n/* */ \n/* 243 */ if (start < limit) {\n/* 244 */ start += UTF16.getCharCount(text.char32At(start));\n/* */ }\n/* */ }\n/* */ label452:\n/* 248 */ pos.contextLimit += limit - pos.limit;\n/* 249 */ pos.limit = limit;\n/* 250 */ pos.start = start;\n/* */ }", "private int handleStateTransition(int r18, int r19, java.lang.String r20, java.lang.String r21) {\n /*\n r17 = this;\n r1 = r17\n r0 = r18\n r2 = r19\n r3 = r20\n r4 = r21\n com.thoughtworks.xstream.core.util.FastStack r5 = r1.stack\n int r5 = r5.size()\n com.thoughtworks.xstream.core.util.FastStack r6 = r1.stack\n java.lang.Object r6 = r6.peek()\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$StackElement r6 = (com.thoughtworks.xstream.io.json.AbstractJsonWriter.StackElement) r6\n java.lang.Class r6 = r6.type\n r7 = 0\n r8 = 1\n if (r5 <= r8) goto L_0x0026\n boolean r9 = r1.isArray(r6)\n if (r9 == 0) goto L_0x0026\n r9 = 1\n goto L_0x0027\n L_0x0026:\n r9 = 0\n L_0x0027:\n if (r5 <= r8) goto L_0x003c\n com.thoughtworks.xstream.core.util.FastStack r10 = r1.stack\n int r11 = r5 + -2\n java.lang.Object r10 = r10.get(r11)\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$StackElement r10 = (com.thoughtworks.xstream.io.json.AbstractJsonWriter.StackElement) r10\n java.lang.Class r10 = r10.type\n boolean r10 = r1.isArray(r10)\n if (r10 == 0) goto L_0x003c\n r7 = 1\n L_0x003c:\n r10 = 64\n r11 = 4\n if (r0 == r8) goto L_0x0353\n r13 = 128(0x80, float:1.794E-43)\n r14 = 2\n if (r0 == r14) goto L_0x0326\n r15 = 8\n r14 = 32\n r12 = 16\n r8 = 512(0x200, float:7.175E-43)\n if (r0 == r11) goto L_0x02c9\n java.lang.String r16 = \"@\"\n java.lang.String r11 = \"\"\n if (r0 == r15) goto L_0x01e9\n if (r0 == r12) goto L_0x01eb\n r12 = 256(0x100, float:3.59E-43)\n if (r0 == r14) goto L_0x01ca\n if (r0 == r10) goto L_0x0111\n if (r0 == r13) goto L_0x00b5\n if (r0 == r12) goto L_0x009c\n if (r0 != r8) goto L_0x0096\n r4 = 1\n if (r2 == r4) goto L_0x0087\n if (r2 == r13) goto L_0x007d\n if (r2 != r12) goto L_0x0077\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 != 0) goto L_0x0076\n if (r9 == 0) goto L_0x0076\n r17.endArray()\n L_0x0076:\n return r2\n L_0x0077:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x007d:\n r3 = 0\n int r0 = r1.handleStateTransition(r0, r12, r3, r3)\n r4 = 2\n r1.handleStateTransition(r0, r4, r3, r3)\n return r2\n L_0x0087:\n r3 = 0\n r4 = 2\n int r0 = r1.handleStateTransition(r0, r12, r3, r3)\n int r0 = r1.handleStateTransition(r0, r4, r3, r3)\n r4 = 1\n r1.handleStateTransition(r0, r4, r3, r3)\n return r2\n L_0x0096:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x009c:\n r4 = 2\n if (r2 != r4) goto L_0x00af\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 == 0) goto L_0x00ae\n r17.endArray()\n r17.endArray()\n r17.endObject()\n L_0x00ae:\n return r2\n L_0x00af:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x00b5:\n r10 = 1\n if (r2 == r10) goto L_0x0106\n r10 = 2\n if (r2 == r10) goto L_0x00d3\n r10 = 4\n if (r2 == r10) goto L_0x00d5\n if (r2 == r13) goto L_0x00d3\n if (r2 != r12) goto L_0x00cd\n int r0 = r1.mode\n r0 = r0 & r10\n if (r0 != 0) goto L_0x00cc\n if (r9 == 0) goto L_0x00cc\n r17.endArray()\n L_0x00cc:\n return r2\n L_0x00cd:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x00d3:\n r3 = 0\n goto L_0x00f2\n L_0x00d5:\n r17.nextElement()\n if (r7 != 0) goto L_0x0111\n int r10 = r1.mode\n r14 = 4\n r10 = r10 & r14\n if (r10 != 0) goto L_0x0111\n java.lang.String r0 = r1.encodeNode(r3)\n r1.addLabel(r0)\n int r0 = r1.mode\n r0 = r0 & r14\n if (r0 != 0) goto L_0x00f1\n if (r9 == 0) goto L_0x00f1\n r17.startArray()\n L_0x00f1:\n return r2\n L_0x00f2:\n int r0 = r1.handleStateTransition(r0, r12, r3, r3)\n r10 = 2\n r1.handleStateTransition(r0, r10, r3, r3)\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 != 0) goto L_0x0105\n if (r9 != 0) goto L_0x0105\n r17.endObject()\n L_0x0105:\n return r2\n L_0x0106:\n r3 = 0\n r10 = 2\n int r0 = r1.handleStateTransition(r0, r10, r3, r3)\n r4 = 1\n r1.handleStateTransition(r0, r4, r3, r3)\n return r2\n L_0x0111:\n r10 = 2\n r14 = 4\n if (r2 == r14) goto L_0x0192\n if (r2 == r13) goto L_0x0182\n if (r2 == r12) goto L_0x0182\n if (r2 != r8) goto L_0x017c\n int r0 = r1.mode\n r0 = r0 & r10\n if (r0 == 0) goto L_0x012b\n if (r5 == r10) goto L_0x0123\n goto L_0x012b\n L_0x0123:\n com.thoughtworks.xstream.converters.ConversionException r0 = new com.thoughtworks.xstream.converters.ConversionException\n java.lang.String r2 = \"Single value cannot be root element\"\n r0.<init>((java.lang.String) r2)\n throw r0\n L_0x012b:\n if (r4 != 0) goto L_0x0148\n java.lang.Class<com.thoughtworks.xstream.mapper.Mapper$Null> r0 = com.thoughtworks.xstream.mapper.Mapper.Null.class\n if (r6 != r0) goto L_0x0139\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$Type r0 = com.thoughtworks.xstream.io.json.AbstractJsonWriter.Type.NULL\n java.lang.String r3 = \"null\"\n r1.addValue(r3, r0)\n goto L_0x017b\n L_0x0139:\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 != 0) goto L_0x017b\n if (r9 != 0) goto L_0x017b\n r17.startObject()\n r17.endObject()\n goto L_0x017b\n L_0x0148:\n int r0 = r1.mode\n r0 = r0 & r15\n if (r0 == 0) goto L_0x0174\n java.lang.Class r0 = java.lang.Long.TYPE\n if (r6 == r0) goto L_0x0155\n java.lang.Class<java.lang.Long> r0 = java.lang.Long.class\n if (r6 != r0) goto L_0x0174\n L_0x0155:\n long r7 = java.lang.Long.parseLong(r21)\n r9 = 9007199254740992(0x20000000000000, double:4.450147717014403E-308)\n int r0 = (r7 > r9 ? 1 : (r7 == r9 ? 0 : -1))\n if (r0 > 0) goto L_0x016e\n r9 = -9007199254740992(0xffe0000000000000, double:-8.98846567431158E307)\n int r0 = (r7 > r9 ? 1 : (r7 == r9 ? 0 : -1))\n if (r0 >= 0) goto L_0x0166\n goto L_0x016e\n L_0x0166:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$Type r0 = r1.getType(r6)\n r1.addValue(r4, r0)\n goto L_0x017b\n L_0x016e:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$Type r0 = com.thoughtworks.xstream.io.json.AbstractJsonWriter.Type.STRING\n r1.addValue(r4, r0)\n goto L_0x017b\n L_0x0174:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$Type r0 = r1.getType(r6)\n r1.addValue(r4, r0)\n L_0x017b:\n return r2\n L_0x017c:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x0182:\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 != 0) goto L_0x0191\n if (r9 == 0) goto L_0x018e\n r17.endArray()\n goto L_0x0191\n L_0x018e:\n r17.endObject()\n L_0x0191:\n return r2\n L_0x0192:\n int r0 = r1.mode\n r6 = 1\n r0 = r0 & r6\n if (r0 == 0) goto L_0x019e\n r0 = 2\n if (r5 <= r0) goto L_0x019c\n goto L_0x019e\n L_0x019c:\n r3 = 4\n goto L_0x01bf\n L_0x019e:\n if (r7 == 0) goto L_0x01a6\n int r0 = r1.mode\n r5 = 4\n r0 = r0 & r5\n if (r0 == 0) goto L_0x01b6\n L_0x01a6:\n boolean r0 = r11.equals(r4)\n if (r0 != 0) goto L_0x01af\n r17.startObject()\n L_0x01af:\n java.lang.String r0 = r1.encodeNode(r3)\n r1.addLabel(r0)\n L_0x01b6:\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 == 0) goto L_0x01bf\n r17.startArray()\n L_0x01bf:\n int r0 = r1.mode\n r0 = r0 & r3\n if (r0 != 0) goto L_0x01c9\n if (r9 == 0) goto L_0x01c9\n r17.startArray()\n L_0x01c9:\n return r2\n L_0x01ca:\n r4 = 2\n if (r2 == r4) goto L_0x01df\n if (r2 != r10) goto L_0x01d9\n int r0 = r1.mode\n r3 = 4\n r0 = r0 & r3\n if (r0 != 0) goto L_0x01e8\n r17.nextElement()\n goto L_0x01e8\n L_0x01d9:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x01df:\n r0 = 0\n int r3 = r1.handleStateTransition(r10, r12, r0, r0)\n r4 = 2\n r1.handleStateTransition(r3, r4, r0, r0)\n L_0x01e8:\n return r2\n L_0x01e9:\n if (r2 == r12) goto L_0x02a0\n L_0x01eb:\n r5 = 1\n if (r2 == r5) goto L_0x0291\n r5 = 4\n if (r2 == r5) goto L_0x01f9\n if (r2 == r12) goto L_0x0220\n if (r2 == r14) goto L_0x020b\n if (r2 == r13) goto L_0x0201\n if (r2 != r8) goto L_0x01fb\n L_0x01f9:\n r5 = 0\n goto L_0x0250\n L_0x01fb:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x0201:\n r3 = 0\n int r0 = r1.handleStateTransition(r0, r14, r3, r3)\n r4 = 2\n r1.handleStateTransition(r0, r4, r3, r3)\n return r2\n L_0x020b:\n int r3 = r1.mode\n r4 = 4\n r3 = r3 & r4\n if (r3 == 0) goto L_0x021f\n if (r0 != r12) goto L_0x0216\n r17.endObject()\n L_0x0216:\n r17.endArray()\n r17.nextElement()\n r17.startArray()\n L_0x021f:\n return r2\n L_0x0220:\n if (r9 == 0) goto L_0x0229\n int r0 = r1.mode\n r5 = 4\n r0 = r0 & r5\n if (r0 == 0) goto L_0x024f\n goto L_0x022a\n L_0x0229:\n r5 = 4\n L_0x022a:\n r17.nextElement()\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n r0.<init>()\n int r6 = r1.mode\n r5 = r5 & r6\n if (r5 != 0) goto L_0x0239\n r11 = r16\n L_0x0239:\n r0.append(r11)\n r0.append(r3)\n java.lang.String r0 = r0.toString()\n java.lang.String r0 = r1.encodeAttribute(r0)\n r1.addLabel(r0)\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$Type r0 = com.thoughtworks.xstream.io.json.AbstractJsonWriter.Type.STRING\n r1.addValue(r4, r0)\n L_0x024f:\n return r2\n L_0x0250:\n int r0 = r1.handleStateTransition(r0, r14, r5, r5)\n int r0 = r1.handleStateTransition(r0, r10, r5, r5)\n r5 = 2\n if (r2 == r5) goto L_0x0287\n r5 = 4\n if (r2 == r5) goto L_0x027c\n if (r2 == r8) goto L_0x0261\n goto L_0x0290\n L_0x0261:\n int r3 = r1.mode\n r3 = r3 & r5\n if (r3 != 0) goto L_0x026f\n java.lang.String r3 = \"$\"\n java.lang.String r3 = r1.encodeNode(r3)\n r1.addLabel(r3)\n L_0x026f:\n r3 = 0\n r1.handleStateTransition(r0, r8, r3, r4)\n int r0 = r1.mode\n r0 = r0 & r5\n if (r0 != 0) goto L_0x0290\n r17.endObject()\n goto L_0x0290\n L_0x027c:\n int r4 = r1.mode\n r4 = r4 & r5\n if (r4 != 0) goto L_0x0282\n goto L_0x0283\n L_0x0282:\n r11 = 0\n L_0x0283:\n r1.handleStateTransition(r0, r5, r3, r11)\n goto L_0x0290\n L_0x0287:\n r3 = 0\n int r0 = r1.handleStateTransition(r0, r8, r3, r3)\n r4 = 2\n r1.handleStateTransition(r0, r4, r3, r3)\n L_0x0290:\n return r2\n L_0x0291:\n r3 = 0\n r4 = 2\n int r0 = r1.handleStateTransition(r0, r14, r3, r3)\n int r0 = r1.handleStateTransition(r0, r4, r3, r3)\n r4 = 1\n r1.handleStateTransition(r0, r4, r3, r3)\n return r2\n L_0x02a0:\n if (r3 == 0) goto L_0x02c8\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n r0.<init>()\n int r5 = r1.mode\n r6 = 4\n r5 = r5 & r6\n if (r5 != 0) goto L_0x02af\n r11 = r16\n L_0x02af:\n r0.append(r11)\n r0.append(r3)\n java.lang.String r0 = r0.toString()\n r17.startObject()\n java.lang.String r0 = r1.encodeAttribute(r0)\n r1.addLabel(r0)\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$Type r0 = com.thoughtworks.xstream.io.json.AbstractJsonWriter.Type.STRING\n r1.addValue(r4, r0)\n L_0x02c8:\n return r2\n L_0x02c9:\n r5 = 1\n if (r2 == r5) goto L_0x02f9\n r6 = 4\n if (r2 == r6) goto L_0x02fa\n if (r2 == r15) goto L_0x02f0\n if (r2 == r12) goto L_0x02de\n if (r2 == r13) goto L_0x02fa\n if (r2 != r8) goto L_0x02d8\n goto L_0x02fa\n L_0x02d8:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x02de:\n int r5 = r1.mode\n r5 = r5 & r6\n if (r5 != 0) goto L_0x02e7\n if (r9 != 0) goto L_0x02e6\n goto L_0x02e7\n L_0x02e6:\n return r6\n L_0x02e7:\n r5 = 0\n int r0 = r1.handleStateTransition(r0, r15, r5, r5)\n r1.handleStateTransition(r0, r12, r3, r4)\n return r2\n L_0x02f0:\n int r0 = r1.mode\n r0 = r0 & r6\n if (r0 == 0) goto L_0x02f8\n r17.startArray()\n L_0x02f8:\n return r2\n L_0x02f9:\n r6 = 4\n L_0x02fa:\n if (r7 == 0) goto L_0x0304\n int r5 = r1.mode\n r5 = r5 & r6\n if (r5 == 0) goto L_0x0302\n goto L_0x0304\n L_0x0302:\n r5 = 0\n goto L_0x030c\n L_0x0304:\n r5 = 0\n int r0 = r1.handleStateTransition(r0, r15, r5, r5)\n r1.handleStateTransition(r0, r14, r5, r5)\n L_0x030c:\n r0 = 1\n if (r2 == r0) goto L_0x031e\n if (r2 == r6) goto L_0x031a\n if (r2 == r13) goto L_0x031e\n if (r2 == r8) goto L_0x0316\n goto L_0x0325\n L_0x0316:\n r1.handleStateTransition(r10, r8, r5, r4)\n goto L_0x0325\n L_0x031a:\n r1.handleStateTransition(r10, r6, r3, r5)\n goto L_0x0325\n L_0x031e:\n int r0 = r1.handleStateTransition(r10, r8, r5, r5)\n r1.handleStateTransition(r0, r2, r5, r5)\n L_0x0325:\n return r2\n L_0x0326:\n r6 = 4\n r4 = 1\n if (r2 == r4) goto L_0x0341\n if (r2 == r6) goto L_0x0338\n if (r2 != r13) goto L_0x0332\n r17.nextElement()\n return r2\n L_0x0332:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x0338:\n r4 = 0\n int r0 = r1.handleStateTransition(r0, r13, r4, r4)\n r1.handleStateTransition(r0, r6, r3, r4)\n return r2\n L_0x0341:\n int r0 = r1.mode\n r3 = 1\n r0 = r0 & r3\n if (r0 == 0) goto L_0x034a\n r0 = 2\n if (r5 <= r0) goto L_0x0352\n L_0x034a:\n int r0 = r1.mode\n r0 = r0 & r6\n if (r0 != 0) goto L_0x0352\n r17.endObject()\n L_0x0352:\n return r2\n L_0x0353:\n r6 = 4\n if (r2 != r6) goto L_0x035b\n r0 = 0\n r1.handleStateTransition(r10, r6, r3, r0) // Catch:{ Throwable -> 0x0361 }\n return r2\n L_0x035b:\n com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException r4 = new com.thoughtworks.xstream.io.json.AbstractJsonWriter$IllegalWriterStateException\n r4.<init>(r0, r2, r3)\n throw r4\n L_0x0361:\n r0 = move-exception\n r2 = r0\n throw r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.thoughtworks.xstream.io.json.AbstractJsonWriter.handleStateTransition(int, int, java.lang.String, java.lang.String):int\");\n }", "@Override\r\n\tpublic boolean reverseAccrualIt() {\n\t\r\n\t\t\r\n\t\treturn false;\r\n\t}", "@Test\n public void TestBeforeWithTooStrongAfter() {\n try {\n new RuleBasedCollator(\"&[before 2]x<<q<p\");\n errln(\"should forbid before-2-reset followed by primary relation\");\n } catch(Exception expected) {\n }\n try {\n new RuleBasedCollator(\"&[before 3]x<<<q<<s<p\");\n errln(\"should forbid before-3-reset followed by primary or secondary relation\");\n } catch(Exception expected) {\n }\n }", "private int forwardPosition() {\n\t\treturn (position + 1) % (maxPosition + 1);\n\t}", "protected void forwardNumCodePoints(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.DataBuilderCollationIterator.forwardNumCodePoints(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.DataBuilderCollationIterator.forwardNumCodePoints(int):void\");\n }", "@Test\n public void navigateForward() throws Exception {\n }", "@Test(timeout = 4000)\n public void test082() throws Throwable {\n Range range0 = Range.ofLength(127L);\n boolean boolean0 = range0.equals(range0);\n assertTrue(boolean0);\n assertFalse(range0.isEmpty());\n }", "void remap()\n\t\t{\n\t\t\tif(nextMap == null)\n\t\t\t\treturn;\n\t\t\tnextMap = newNodeMap(nextMap);\n\t\t\tfor(Node<T> node : nextMap.values())\n\t\t\t\tnode.remap();\n\t\t}", "@SuppressWarnings(\"unused\")\n private boolean checkIds(CFANode node) {\n\n if (!visited.add(node)) {\n // already handled, do nothing\n return true;\n }\n\n for (CFANode successor : CFAUtils.successorsOf(node)) {\n checkIds(successor);\n }\n\n //node.setReversePostorderId(reversePostorderId2++);\n assert node.getReversePostorderId() == reversePostorderId2++ : \"Node \" + node + \" got \" + node.getReversePostorderId() + \", but should get \" + (reversePostorderId2-1);\n return true;\n }", "boolean isForwardPredicted()\n {\n return ((mbType & FORWARD) != 0);\n }", "public interface PFNsAreDifferent extends PFNConstraint\r\n{\r\n\tSet<String> getPfns();\r\n}", "@Test(timeout = 4000)\n public void test42() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-2147483648L), 1146L);\n long long0 = range0.getBegin();\n assertEquals((-2147483648L), long0);\n \n Range range1 = Range.of(1146L);\n boolean boolean0 = range1.endsBefore(range0);\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range1.forEach(consumer0);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n List<Range> list0 = range1.complementFrom(linkedList0);\n range0.complementFrom(list0);\n Range range2 = Range.ofLength(1146L);\n Range range3 = range2.intersection(range1);\n long long1 = range1.getEnd();\n assertEquals(1146L, long1);\n \n boolean boolean1 = range0.intersects(range2);\n boolean boolean2 = range1.equals(range2);\n assertFalse(boolean2 == boolean1);\n \n range0.getEnd();\n Range.of(2641L);\n List<Range> list1 = range0.complement(range2);\n assertEquals(1, list1.size());\n \n boolean boolean3 = range3.startsBefore(range1);\n assertTrue(boolean3 == boolean0);\n assertTrue(range3.isEmpty());\n assertFalse(boolean3);\n }", "@Internal\n\tpublic static <T> Map<String, State<T>> migrateGraph(State<T> oldStartState) {\n\t\tState<T> oldFirst = oldStartState;\n\t\tState<T> oldSecond = oldStartState.getStateTransitions().iterator().next().getTargetState();\n\n\t\tStateTransition<T> oldFirstToSecondTake = Iterators.find(\n\t\t\toldFirst.getStateTransitions().iterator(),\n\t\t\tnew Predicate<StateTransition<T>>() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean apply(@Nullable StateTransition<T> input) {\n\t\t\t\t\treturn input != null && input.getAction() == StateTransitionAction.TAKE;\n\t\t\t\t}\n\n\t\t\t});\n\n\t\tStateTransition<T> oldFirstIgnore = Iterators.find(\n\t\t\toldFirst.getStateTransitions().iterator(),\n\t\t\tnew Predicate<StateTransition<T>>() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean apply(@Nullable StateTransition<T> input) {\n\t\t\t\t\treturn input != null && input.getAction() == StateTransitionAction.IGNORE;\n\t\t\t\t}\n\n\t\t\t}, null);\n\n\t\tStateTransition<T> oldSecondToThirdTake = Iterators.find(\n\t\t\toldSecond.getStateTransitions().iterator(),\n\t\t\tnew Predicate<StateTransition<T>>() {\n\t\t\t\t@Override\n\t\t\t\tpublic boolean apply(@Nullable StateTransition<T> input) {\n\t\t\t\t\treturn input != null && input.getAction() == StateTransitionAction.TAKE;\n\t\t\t\t}\n\n\t\t\t}, null);\n\n\t\tfinal Map<String, State<T>> convertedStates = new HashMap<>();\n\t\tState<T> newSecond;\n\t\tState<T> newFirst = new State<>(oldSecond.getName(), State.StateType.Start);\n\t\tconvertedStates.put(newFirst.getName(), newFirst);\n\t\twhile (oldSecondToThirdTake != null) {\n\n\t\t\tnewSecond = new State<T>(oldSecondToThirdTake.getTargetState().getName(), State.StateType.Normal);\n\t\t\tconvertedStates.put(newSecond.getName(), newSecond);\n\t\t\tnewFirst.addTake(newSecond, oldFirstToSecondTake.getCondition());\n\n\t\t\tif (oldFirstIgnore != null) {\n\t\t\t\tnewFirst.addIgnore(oldFirstIgnore.getCondition());\n\t\t\t}\n\n\t\t\toldFirst = oldSecond;\n\n\t\t\toldFirstToSecondTake = Iterators.find(\n\t\t\t\toldFirst.getStateTransitions().iterator(),\n\t\t\t\tnew Predicate<StateTransition<T>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean apply(@Nullable StateTransition<T> input) {\n\t\t\t\t\t\treturn input != null && input.getAction() == StateTransitionAction.TAKE;\n\t\t\t\t\t}\n\n\t\t\t\t});\n\n\t\t\toldFirstIgnore = Iterators.find(\n\t\t\t\toldFirst.getStateTransitions().iterator(),\n\t\t\t\tnew Predicate<StateTransition<T>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean apply(@Nullable StateTransition<T> input) {\n\t\t\t\t\t\treturn input != null && input.getAction() == StateTransitionAction.IGNORE;\n\t\t\t\t\t}\n\n\t\t\t\t}, null);\n\n\t\t\toldSecond = oldSecondToThirdTake.getTargetState();\n\n\t\t\toldSecondToThirdTake = Iterators.find(\n\t\t\t\toldSecond.getStateTransitions().iterator(),\n\t\t\t\tnew Predicate<StateTransition<T>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic boolean apply(@Nullable StateTransition<T> input) {\n\t\t\t\t\t\treturn input != null && input.getAction() == StateTransitionAction.TAKE;\n\t\t\t\t\t}\n\n\t\t\t\t}, null);\n\n\t\t\tnewFirst = newSecond;\n\t\t}\n\n\t\tfinal State<T> endingState = new State<>(ENDING_STATE_NAME, State.StateType.Final);\n\n\t\tnewFirst.addTake(endingState, oldFirstToSecondTake.getCondition());\n\n\t\tif (oldFirstIgnore != null) {\n\t\t\tnewFirst.addIgnore(oldFirstIgnore.getCondition());\n\t\t}\n\n\t\tconvertedStates.put(endingState.getName(), endingState);\n\n\t\treturn convertedStates;\n\t}", "@Override\n\tpublic boolean reverseAccrualIt() {\n\t\treturn false;\n\t}", "@Test\n public void doubleSortWithExchangeUnbalancedNodes() {\n ExternalSort es1 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), ARBTRIARY_LEAF, Collections.emptyList(), false);\n SingleSender ss = new SingleSender(OpProps.prototype(1, Long.MAX_VALUE).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), Mockito.mock(BatchSchema.class), es1, 0,\n MinorFragmentIndexEndpoint.newBuilder().setMinorFragmentId(0).build());\n Fragment f1 = new Fragment();\n f1.addOperator(ss);\n Wrapper w1 = new Wrapper(f1, 0);\n w1.overrideEndpoints(Arrays.asList(N1, N2));\n\n UnorderedReceiver or = new UnorderedReceiver(OpProps.prototype(1, Long.MAX_VALUE), Mockito.mock(BatchSchema.class), 0, Collections.emptyList(), false);\n ExternalSort es2 = new ExternalSort(OpProps.prototype(0, Long.MAX_VALUE).cloneWithMemoryExpensive(true).cloneWithMemoryFactor(options.getOption(SORT_FACTOR)).cloneWithBound(options.getOption(SORT_BOUNDED)), or, Collections.emptyList(), false);\n Fragment f2 = new Fragment();\n f2.addOperator(es2);\n Wrapper w2 = new Wrapper(f2, 0);\n w2.overrideEndpoints(Collections.singletonList(N1));\n\n\n MemoryAllocationUtilities.setMemory(options, ImmutableMap.of(f1, w1, f2, w2), 10 + adjustReserve);\n assertEquals(3L, es1.getProps().getMemLimit());\n assertEquals(3L, es2.getProps().getMemLimit());\n }", "protected ForwardingMapEntry() {}", "@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFieldsSkippingNonPersistentFields() {\n }", "private void calcPossibleMappingImpl(\n Collection<Vertex> currentSourceVertices,\n Collection<Vertex> currentTargetVertices,\n List<String> contextId,\n int contextIx,\n List<VertexContextSegment> contexts,\n Set<Vertex> usedSourceVertices,\n Set<Vertex> usedTargetVertices,\n String typeNameForDebug) {\n runningCheck.check();\n\n VertexContextSegment finalCurrentContext = contexts.get(contextIx);\n Map<String, ImmutableList<Vertex>> sourceGroups = FpKit.filterAndGroupingBy(currentSourceVertices,\n v -> finalCurrentContext.filter(v, sourceGraph),\n v -> finalCurrentContext.idForVertex(v, sourceGraph));\n Map<String, ImmutableList<Vertex>> targetGroups = FpKit.filterAndGroupingBy(currentTargetVertices,\n v -> finalCurrentContext.filter(v, targetGraph),\n v -> finalCurrentContext.idForVertex(v, targetGraph));\n\n\n List<String> deletedContexts = new ArrayList<>();\n List<String> insertedContexts = new ArrayList<>();\n List<String> sameContexts = new ArrayList<>();\n Util.diffNamedList(sourceGroups.keySet(), targetGroups.keySet(), deletedContexts, insertedContexts, sameContexts);\n\n // for each unchanged context we descend recursively into\n for (String sameContext : sameContexts) {\n ImmutableList<Vertex> sourceVerticesInContext = sourceGroups.get(sameContext);\n ImmutableList<Vertex> targetVerticesInContext = targetGroups.get(sameContext);\n\n List<String> currentContextId = concat(contextId, sameContext);\n if (contexts.size() > contextIx + 1) {\n calcPossibleMappingImpl(sourceVerticesInContext, targetVerticesInContext, currentContextId, contextIx + 1, contexts, usedSourceVertices, usedTargetVertices, typeNameForDebug);\n }\n /**\n * Either there was no context segment left or not all vertices were relevant for\n * Either way: fill up with isolated vertices and record as possible mapping\n */\n Set<Vertex> notUsedSource = new LinkedHashSet<>(sourceVerticesInContext);\n notUsedSource.removeAll(usedSourceVertices);\n Set<Vertex> notUsedTarget = new LinkedHashSet<>(targetVerticesInContext);\n notUsedTarget.removeAll(usedTargetVertices);\n\n possibleMappings.putPossibleMappings(currentContextId, notUsedSource, notUsedTarget, typeNameForDebug);\n usedSourceVertices.addAll(notUsedSource);\n usedTargetVertices.addAll(notUsedTarget);\n }\n\n /**\n * update the used vertices with the deleted and inserted contexts\n */\n Set<Vertex> possibleSourceVertices = new LinkedHashSet<>();\n for (String deletedContext : deletedContexts) {\n ImmutableList<Vertex> vertices = sourceGroups.get(deletedContext);\n for (Vertex sourceVertex : vertices) {\n if (!usedSourceVertices.contains(sourceVertex)) {\n possibleSourceVertices.add(sourceVertex);\n }\n }\n usedSourceVertices.addAll(vertices);\n }\n\n Set<Vertex> possibleTargetVertices = new LinkedHashSet<>();\n for (String insertedContext : insertedContexts) {\n ImmutableList<Vertex> vertices = targetGroups.get(insertedContext);\n for (Vertex targetVertex : vertices) {\n if (!usedTargetVertices.contains(targetVertex)) {\n possibleTargetVertices.add(targetVertex);\n }\n }\n usedTargetVertices.addAll(vertices);\n }\n if (contextId.size() == 0) {\n contextId = singletonList(typeNameForDebug);\n }\n possibleMappings.putPossibleMappings(contextId, possibleSourceVertices, possibleTargetVertices, typeNameForDebug);\n }", "public void addTwoStepForwardToPositionCache(Key currentKey) {\n\n\t\tKey newKey = createTwoStepForwardFromCurrentKey(currentKey);\n\n\t\t// Gets current values stored with key and adds the extra position\n\t\tSet<Key> currentKeyMapping = positionCache.get(currentKey);\n\t\tcurrentKeyMapping.add(newKey);\n\t\tpositionCache.put(currentKey, currentKeyMapping);\n\t}", "@Test(timeout = 4000)\n public void test32() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(32767);\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"%%N)&#pn7Z\", \"%%N)&#pn7Z\", \"Label offset position has not been resolved yet\", (String[]) null, false, true);\n Label label0 = new Label();\n methodWriter0.visitIincInsn(1, 32767);\n Label label1 = label0.successor;\n label0.successor = null;\n Object object0 = new Object();\n methodWriter0.visitLocalVariable(\"Label offset position has not been resolved yet\", \"Label offset position has not been resolved yet\", \"StackMapTable\", label0, label0, 1);\n MethodWriter methodWriter1 = methodWriter0.next;\n methodWriter0.visitLabel(label0);\n }", "@Test\n void _correctThenCaseTest() {\n\n actionApply();\n\n for (ReceiverPair receiverPair : dependedReceiverPairs) {\n for (AssingablePair assingablePair : incompatibleAssignablePairs) {\n verify(model).arithm(receiverPair.getVariableDependentReceiver(), \"!=\", assingablePair.getIndexdependentAssignable());\n }\n }\n }", "protected AssociationList reverseAssoc(LexBIGService lbsvc, LexBIGServiceConvenienceMethods lbscm, String scheme,\r\n CodingSchemeVersionOrTag csvt, Association assoc, AssociationList addTo,\r\n Map<String, EntityDescription> codeToEntityDescriptionMap) throws LBException {\r\n\r\n ConceptReference acRef = assoc.getAssociationReference();\r\n AssociatedConcept acFromRef = new AssociatedConcept();\r\n acFromRef.setCodingScheme(acRef.getCodingScheme());\r\n acFromRef.setConceptCode(acRef.getConceptCode());\r\n AssociationList acSources = new AssociationList();\r\n acFromRef.setIsNavigable(Boolean.TRUE);\r\n acFromRef.setSourceOf(acSources);\r\n\r\n // Use cached description if available (should be cached\r\n // for all but original root) ...\r\n if (codeToEntityDescriptionMap.containsKey(acRef.getConceptCode()))\r\n acFromRef.setEntityDescription(codeToEntityDescriptionMap.get(acRef.getConceptCode()));\r\n // Otherwise retrieve on demand ...\r\n else\r\n acFromRef.setEntityDescription(Constructors.createEntityDescription(getCodeDescription(lbsvc, scheme, csvt,\r\n acRef.getConceptCode())));\r\n\r\n AssociatedConceptList acl = assoc.getAssociatedConcepts();\r\n for (AssociatedConcept ac : acl.getAssociatedConcept()) {\r\n // Create reverse association (same non-directional name)\r\n Association rAssoc = new Association();\r\n rAssoc.setAssociationName(assoc.getAssociationName());\r\n\r\n // On reverse, old associated concept is new reference point.\r\n ConceptReference ref = new ConceptReference();\r\n ref.setCodingScheme(ac.getCodingScheme());\r\n ref.setConceptCode(ac.getConceptCode());\r\n rAssoc.setAssociationReference(ref);\r\n\r\n // And old reference is new associated concept.\r\n AssociatedConceptList rAcl = new AssociatedConceptList();\r\n rAcl.addAssociatedConcept(acFromRef);\r\n rAssoc.setAssociatedConcepts(rAcl);\r\n\r\n // Set reverse directional name, if available.\r\n String dirName = assoc.getDirectionalName();\r\n if (dirName != null)\r\n try {\r\n rAssoc.setDirectionalName(lbscm.isForwardName(scheme, csvt, dirName) ? lbscm\r\n .getAssociationReverseName(assoc.getAssociationName(), scheme, csvt) : lbscm\r\n .getAssociationReverseName(assoc.getAssociationName(), scheme, csvt));\r\n } catch (LBException e) {\r\n }\r\n\r\n // Save code desc for future reference when setting up\r\n // concept references in recursive calls ...\r\n codeToEntityDescriptionMap.put(ac.getConceptCode(), ac.getEntityDescription());\r\n\r\n AssociationList sourceOf = ac.getSourceOf();\r\n if (sourceOf != null)\r\n for (Association sourceAssoc : sourceOf.getAssociation()) {\r\n AssociationList pos = reverseAssoc(lbsvc, lbscm, scheme, csvt, sourceAssoc, addTo,\r\n codeToEntityDescriptionMap);\r\n pos.addAssociation(rAssoc);\r\n }\r\n else\r\n addTo.addAssociation(rAssoc);\r\n }\r\n return acSources;\r\n }", "@Test\n public void prefixTrimNotReachingSequencer() throws Exception {\n final int tableSize = PARAMETERS.NUM_ITERATIONS_LOW;\n CorfuRuntime rt = getNewRuntime();\n\n TestRule dropSequencerTrim = new TestRule()\n .requestMatches(msg -> msg.getPayload().getPayloadCase()\n .equals(CorfuMessage.RequestPayloadMsg.PayloadCase.SEQUENCER_TRIM_REQUEST))\n .drop();\n addClientRule(rt, dropSequencerTrim);\n\n try {\n PersistentCorfuTable<String, Long> tableA = openTable(rt, streamNameA);\n PersistentCorfuTable<String, Long> tableB = openTable(rt, streamNameB);\n\n // thread 1: populates the maps with mapSize items\n scheduleConcurrently(1, ignored_task_num -> {\n populateMaps(tableSize, tableA, tableB);\n });\n\n // thread 2: periodic checkpoint of the maps, repeating ITERATIONS_VERY_LOW times,\n // and immediate prefix-trim of the log up to the checkpoint position\n scheduleConcurrently(1, ignored_task_num -> {\n mapCkpointAndTrim(rt, tableA, tableB);\n });\n\n // thread 3: repeated ITERATION_LOW times starting a fresh runtime, and instantiating the maps.\n // they should rebuild from the latest checkpoint (if available).\n // performs some sanity checks on the map state\n\n // In this test checkpoints and trims are happening in a loop for several iterations,\n // so a trim exception can occur if after loading from the latest checkpoint,\n // updates to the stream have been already trimmed (1st trimmedException), the stream\n // is reset, and on the second iteration the same scenario can happen (2nd trimmedException)\n // which is the total number of retries.\n scheduleConcurrently(PARAMETERS.NUM_ITERATIONS_LOW, ignored_task_num -> {\n validateMapRebuild(tableSize, false, true);\n });\n\n executeScheduled(PARAMETERS.CONCURRENCY_SOME, PARAMETERS.TIMEOUT_LONG);\n\n // Verify that last trim cycle completed (async task) before validating map rebuild\n Token currentTrimMark = Token.UNINITIALIZED;\n while(currentTrimMark.getSequence() != lastValidCheckpoint.getSequence() + 1L) {\n currentTrimMark = getNewRuntime().getAddressSpaceView().getTrimMark();\n }\n\n // finally, after all three threads finish, again we start a fresh runtime and instantiate the maps.\n // This time we check that the new map instances contain all values\n validateMapRebuild(tableSize, true, false);\n } finally {\n rt.shutdown();\n }\n }", "private boolean purelySequentialDependent(\r\n\t\t\tfinal Rule r1, \r\n\t\t\tint indx_r1,\r\n\t\t\tfinal Rule r2,\r\n\t\t\tint indx_r2,\r\n\t\t\tGraph g) {\n\t\t\r\n\t\tfinal Match embedding = BaseFactory.theFactory().createMatch(r2, r1.getRight());\t\t\r\n\t\tembedding.setCompletionStrategy(this.strategy, true);\r\n\t\tboolean result = false;\r\n\t\twhile (embedding.nextCompletionWithConstantsChecking() && !result) {\r\n\t\t\tEnumeration<GraphObject> codom = embedding.getCodomain();\t\t\t\t\t\t\r\n\t\t\t// exist l21 : L2 -> R1\r\n\t\t\twhile (codom.hasMoreElements()) {\r\n\t\t\t\tGraphObject obj = codom.nextElement();\r\n\t\t\t\t// rule r1 produce at least one object which is used in LHS of r2\r\n\t\t\t\tif (!r1.getInverseImage(obj).hasMoreElements()) {\r\n\t\t\t\t\tresult = true;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (this.ruleSequence.isObjFlowActive()) {\r\n\t\t\t\t\t\tfinal ObjectFlow objFlow = this.ruleSequence.getObjFlowForRules(r1, indx_r1, r2, indx_r2);\r\n\t\t\t\t\t\tif (objFlow != null && !objFlow.isEmpty()) \r\n\t\t\t\t\t\t\tresult = pureEnablingAlongObjectFlow(embedding, objFlow);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// add match to matchSequence\r\n\t\t\t\t\tif (result)\r\n\t\t\t\t\t\tthis.ruleSequence.getMatchSequence().addTotalPureEnablingSourceMatch(r2, r1, embedding, indx_r2, indx_r1);\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak; \r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif (result) {\r\n\t\t\t\tboolean attrCondUsesIP = attrConditionUsesInputParameterRight(r2, r1, embedding);\r\n\t\t\t\t\t\r\n\t\t\t\tif (attrCondUsesIP) {\r\n\t\t\t\t\tsetRuleResult(indx_r2, r2.getName(), false, ApplicabilityConstants.PURE_ENABLING_PREDECESSOR, r1.getName());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetRuleResult(indx_r2, r2.getName(), true, ApplicabilityConstants.PURE_ENABLING_PREDECESSOR, r1.getName());\t\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// TODO: apply r1, then r2 along the comatch of r2 to check NACs of r2\r\n//\t\t\tresult = isPurelyEnabledRuleApplicable(r1, r2, embedding, g);\r\n//\t\t\tif (result) {\r\n//\t\t\t\t// to test : add match to matchSequence\r\n//\t\t\t\tthis.ruleSequence.getMatchSequence().addTotalPureEnablingSourceOfMatch(r2, r1, embedding, indx_r2, indx_r1);\r\n//\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tembedding.dispose();\r\n\t\tBaseFactory.theFactory().unsetAllTransientAttrValuesOfRule(r1);\r\n//\t\tr1.getRight().setNotificationRequired(true);\r\n\t\t\r\n\t\treturn result;\r\n\t}", "private static void parseRelations(){\n\t\tString[] number = relationReader.nextLine().trim().split(\"\\\\s++\");\n\t\tint numOfCoarse = Integer.parseInt(number[0]);\n\t\tint numOfAccurate = Integer.parseInt(number[1]);\n\t\t\n\t\tfor(int i=0; i<numOfCoarse; i++){\n\t\t\tString[] pair = relationReader.nextLine().trim().split(\"\\\\s++\");\n\t\t\tmap.put(Integer.parseInt(pair[0]), pair[1]);\n\t\t}\n\t\t\n\t\tfor(int i=0; i<numOfAccurate; i++){\n\t\t\tString[] pair = relationReader.nextLine().trim().split(\"\\\\s++\");\n//\t\t\tSystem.err.println(pair[0]);\n\t\t\tif(pair[1].equalsIgnoreCase(\"ROOT\"))\n\t\t\t\ttransform.put(pair[0], pair[1]);\n\t\t\telse\n\t\t\t\ttransform.put(pair[0], map.get(Integer.parseInt(pair[1])));\n\t\t}\n\t\t\n//\t\tSystem.err.println(map.size());\n//\t\tSystem.err.println(transform.size());\n\t\t\n\t\treturn;\n\t}", "private void correctJumpPaths(Field origin, Field lastField, Field currentField) {\n Field [] neighbours = currentField.getNeighbours();\n Random random = new Random();\n for(int i = 0; i < neighbours.length; ++i) { // jump move validation\n if((neighbours[i] != null) && (neighbours[i].getPlayer() != null)) {\n Field nextField = neighbours[i].getNeighbours()[i];\n if(nextField != null && !nextField.equals(lastField) && nextField.getPlayer() == null) {\n if(valueOfMove(origin, nextField) >= valueOfMove(bestMove[0], bestMove[1])) {\n bestMove[0] = origin;\n bestMove[1] = nextField;\n } else if(valueOfMove(origin, nextField) == valueOfMove(bestMove[0], bestMove[1])) {\n if(random.nextBoolean()) {\n bestMove[0] = origin;\n bestMove[1] = nextField;\n }\n }\n //correctJumpPaths(origin, currentField, nextField);\n }\n }\n }\n }", "private static boolean redirection_2(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"redirection_2\")) return false;\n redirection_2_0(b, l + 1);\n return true;\n }", "private void resolveConflicts( Grammar grammar, State state, List<Action> tshifts, List<Action> ntshifts)\n {\n List<State> splits = new ArrayList<State>();\n\n Collections.sort( tshifts);\n Collections.sort( ntshifts);\n \n State currSplit = null;\n State prevSplit = null;\n for( int i=1, k=1; i<tshifts.size(); i++, k++)\n {\n prevSplit = currSplit;\n currSplit = null;\n \n Action prev = tshifts.get( i-1);\n Action curr = tshifts.get( i);\n \n if ( isOverlapping( prev.symbols, curr.symbols))\n {\n boolean conflict =\n (curr.type == Action.Type.tshift && prev.type == Action.Type.reduce) || \n (curr.type == Action.Type.reduce && prev.type == Action.Type.tshift) ||\n (curr.type == Action.Type.reduce && prev.type == Action.Type.reduce) ||\n (curr.type == Action.Type.tshift && prev.type == Action.Type.tshift);\n\n if ( conflict)\n {\n long prevPriority = prev.getPriority();\n long currPriority = curr.getPriority();\n if ( prevPriority < currPriority)\n {\n log.debugf( \"\\nConflict in state %d:\\n %s\\n %s\", state.index, prev, curr);\n log.debug( \"Conflict resolved: second rule(s) have higher priority\");\n deleteStackOp( state, k-1); k--;\n }\n else if ( prevPriority > currPriority)\n {\n log.debugf( \"\\nConflict in state %d:\\n %s\\n %s\", state.index, prev, curr);\n log.debug( \"Conflict resolved: first rule(s) have higher priority\");\n deleteStackOp( state, k); k--;\n }\n else\n {\n log.warnf( \"\\nConflict in state %d:\\n %s\\n %s\", state.index, prev, curr);\n log.warn( \"Conflict resolved by splitting state\");\n splitState( state, k, prevSplit, splits);\n currSplit = splits.get( splits.size() - 1);\n conflicts++;\n }\n }\n }\n }\n \n for( int i=1; i<ntshifts.size(); i++)\n {\n prevSplit = currSplit;\n currSplit = null;\n \n Action prev = ntshifts.get( i-1);\n Action curr = ntshifts.get( i);\n \n if ( curr.symbols[ 0] <= prev.symbols[ 0])\n {\n if ( curr.type == Action.Type.ntshift && prev.type == Action.Type.ntshift && curr.itemSet.equals( prev.itemSet))\n {\n log.warnf( \"\\nConflict in state %d:\\n %s\\n %s\", state.index, prev, curr);\n conflicts++;\n }\n }\n }\n \n if ( splits.size() > 0)\n {\n for( State split: splits) \n {\n log.debugf( \"Created new state %d to resolve conflict.\", split.index);\n removeNulls( split);\n \n for( StackOp shift: split.stackOps)\n {\n if ( shift == nullShift)\n throw new IllegalStateException();\n }\n }\n\n state.splits = splits.toArray( new State[ 0]);\n state.stackOps = null;\n state.gotos = null;\n }\n }", "@Test(timeout = 4000)\n public void test034() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 2127L, 2127L);\n List<Range> list0 = range0.split(1L);\n List<Range> list1 = range0.complementFrom(list0);\n assertFalse(list1.isEmpty());\n \n range0.getBegin(range_CoordinateSystem0);\n range0.equals(range_CoordinateSystem0);\n long long0 = range0.getBegin(range_CoordinateSystem0);\n assertTrue(range0.isEmpty());\n assertEquals(2127L, long0);\n }", "boolean hasExplicitLac();", "@Test\n\tpublic void testRealWorldCase_uc011ayb_2() throws InvalidGenomeChange {\n\t\tthis.builderForward = TranscriptModelFactory\n\t\t\t\t.parseKnownGenesLine(\n\t\t\t\t\t\trefDict,\n\t\t\t\t\t\t\"uc011ayb.2\tchr3\t+\t37034840\t37092337\t37055968\t37092144\t18\t37034840,37042445,37045891,37048481,37050304,37053310,37053501,37055922,37058996,37061800,37067127,37070274,37081676,37083758,37089009,37090007,37090394,37091976,\t37035154,37042544,37045965,37048554,37050396,37053353,37053590,37056035,37059090,37061954,37067498,37070423,37081785,37083822,37089174,37090100,37090508,37092337,\tNP_001245203\tuc011ayb.2\");\n\t\tthis.builderForward\n\t\t.setSequence(\"gaagagacccagcaacccacagagttgagaaatttgactggcattcaagctgtccaatcaatagctgccgctgaagggtggggctggatggcgtaagctacagctgaaggaagaacgtgagcacgaggcactgaggtgattggctgaaggcacttccgttgagcatctagacgtttccttggctcttctggcgccaaaatgtcgttcgtggcaggggttattcggcggctggacgagacagtggtgaaccgcatcgcggcgggggaagttatccagcggccagctaatgctatcaaagagatgattgagaactgaaagaagatctggatattgtatgtgaaaggttcactactagtaaactgcagtcctttgaggatttagccagtatttctacctatggctttcgaggtgaggctttggccagcataagccatgtggctcatgttactattacaacgaaaacagctgatggaaagtgtgcatacagagcaagttactcagatggaaaactgaaagcccctcctaaaccatgtgctggcaatcaagggacccagatcacggtggaggaccttttttacaacatagccacgaggagaaaagctttaaaaaatccaagtgaagaatatgggaaaattttggaagttgttggcaggtattcagtacacaatgcaggcattagtttctcagttaaaaaacaaggagagacagtagctgatgttaggacactacccaatgcctcaaccgtggacaatattcgctccatctttggaaatgctgttagtcgagaactgatagaaattggatgtgaggataaaaccctagccttcaaaatgaatggttacatatccaatgcaaactactcagtgaagaagtgcatcttcttactcttcatcaaccatcgtctggtagaatcaacttccttgagaaaagccatagaaacagtgtatgcagcctatttgcccaaaaacacacacccattcctgtacctcagtttagaaatcagtccccagaatgtggatgttaatgtgcaccccacaaagcatgaagttcacttcctgcacgaggagagcatcctggagcgggtgcagcagcacatcgagagcaagctcctgggctccaattcctccaggatgtacttcacccagactttgctaccaggacttgctggcccctctggggagatggttaaatccacaacaagtctgacctcgtcttctacttctggaagtagtgataaggtctatgcccaccagatggttcgtacagattcccgggaacagaagcttgatgcatttctgcagcctctgagcaaacccctgtccagtcagccccaggccattgtcacagaggataagacagatatttctagtggcagggctaggcagcaagatgaggagatgcttgaactcccagcccctgctgaagtggctgccaaaaatcagagcttggagggggatacaacaaaggggacttcagaaatgtcagagaagagaggacctacttccagcaaccccagaaagagacatcgggaagattctgatgtggaaatggtggaagatgattcccgaaaggaaatgactgcagcttgtaccccccggagaaggatcattaacctcactagtgttttgagtctccaggaagaaattaatgagcagggacatgaggttctccgggagatgttgcataaccactccttcgtgggctgtgtgaatcctcagtgggccttggcacagcatcaaaccaagttataccttctcaacaccaccaagcttagtgaagaactgttctaccagatactcatttatgattttgccaattttggtgttctcaggttatcggagccagcaccgctctttgaccttgccatgcttgccttagatagtccagagagtggctggacagaggaagatggtcccaaagaaggacttgctgaatacattgttgagtttctgaagaagaaggctgagatgcttgcagactatttctctttggaaattgatgaggaagggaacctgattggattaccccttctgattgacaactatgtgccccctttggagggactgcctatcttcattcttcgactagccactgaggtgaattgggacgaagaaaaggaatgttttgaaagcctcagtaaagaatgcgctatgttctattccatccggaagcagtacatatctgaggagtcgaccctctcaggccagcagagtgaagtgcctggctccattccaaactcctggaagtggactgtggaacacattgtctataaagccttgcgctcacacattctgcctcctaaacatttcacagaagatggaaatatcctgcagcttgctaacctgcctgatctatacaaagtctttgagaggtgttaaatatggttatttatgcactgtgggatgtgttcttctttctctgtattccgatacaaagtgttgtatcaaagtgtgatatacaaagtgtaccaacataagtgttggtagcacttaagacttatacttgccttctgatagtattcctttatacacagtggattgattataaataaatagatgtgtcttaacataaaaaaaaaaaaaaaaaa\"\n\t\t\t\t.toUpperCase());\n\t\tthis.builderForward.setGeneSymbol(\"NP_001245203\");\n\t\tthis.infoForward = builderForward.build();\n\t\t// RefSeq NM_001258273\n\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 3, 37090097, PositionType.ONE_BASED),\n\t\t\t\t\"TGAGG\", \"C\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(AnnotationLocation.INVALID_RANK, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.1263_1266+1delinsC\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.Glu422del\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.NON_FS_SUBSTITUTION, VariantType.SPLICE_DONOR),\n\t\t\t\tannotation1.effects);\n\t}", "public boolean isForward() {\n return true;\n }", "public final flipsParser.forwardBackwardDirection_return forwardBackwardDirection() throws RecognitionException {\n flipsParser.forwardBackwardDirection_return retval = new flipsParser.forwardBackwardDirection_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal459=null;\n Token string_literal460=null;\n Token string_literal461=null;\n Token char_literal462=null;\n Token string_literal463=null;\n Token string_literal464=null;\n Token string_literal465=null;\n\n CommonTree char_literal459_tree=null;\n CommonTree string_literal460_tree=null;\n CommonTree string_literal461_tree=null;\n CommonTree char_literal462_tree=null;\n CommonTree string_literal463_tree=null;\n CommonTree string_literal464_tree=null;\n CommonTree string_literal465_tree=null;\n RewriteRuleTokenStream stream_199=new RewriteRuleTokenStream(adaptor,\"token 199\");\n RewriteRuleTokenStream stream_306=new RewriteRuleTokenStream(adaptor,\"token 306\");\n RewriteRuleTokenStream stream_308=new RewriteRuleTokenStream(adaptor,\"token 308\");\n RewriteRuleTokenStream stream_307=new RewriteRuleTokenStream(adaptor,\"token 307\");\n RewriteRuleTokenStream stream_310=new RewriteRuleTokenStream(adaptor,\"token 310\");\n RewriteRuleTokenStream stream_311=new RewriteRuleTokenStream(adaptor,\"token 311\");\n RewriteRuleTokenStream stream_309=new RewriteRuleTokenStream(adaptor,\"token 309\");\n\n try {\n // flips.g:676:2: ( ( 'f' | 'fwd' | 'forward' ) -> FORWARD | ( 'b' | 'bwd' | 'backward' | 'back' ) -> BACKWARD )\n int alt180=2;\n int LA180_0 = input.LA(1);\n\n if ( (LA180_0==199||(LA180_0>=306 && LA180_0<=307)) ) {\n alt180=1;\n }\n else if ( ((LA180_0>=308 && LA180_0<=311)) ) {\n alt180=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 180, 0, input);\n\n throw nvae;\n }\n switch (alt180) {\n case 1 :\n // flips.g:676:4: ( 'f' | 'fwd' | 'forward' )\n {\n // flips.g:676:4: ( 'f' | 'fwd' | 'forward' )\n int alt178=3;\n switch ( input.LA(1) ) {\n case 199:\n {\n alt178=1;\n }\n break;\n case 306:\n {\n alt178=2;\n }\n break;\n case 307:\n {\n alt178=3;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 178, 0, input);\n\n throw nvae;\n }\n\n switch (alt178) {\n case 1 :\n // flips.g:676:5: 'f'\n {\n char_literal459=(Token)match(input,199,FOLLOW_199_in_forwardBackwardDirection3950); \n stream_199.add(char_literal459);\n\n\n }\n break;\n case 2 :\n // flips.g:676:9: 'fwd'\n {\n string_literal460=(Token)match(input,306,FOLLOW_306_in_forwardBackwardDirection3952); \n stream_306.add(string_literal460);\n\n\n }\n break;\n case 3 :\n // flips.g:676:15: 'forward'\n {\n string_literal461=(Token)match(input,307,FOLLOW_307_in_forwardBackwardDirection3954); \n stream_307.add(string_literal461);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 677:2: -> FORWARD\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(FORWARD, \"FORWARD\"));\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:678:4: ( 'b' | 'bwd' | 'backward' | 'back' )\n {\n // flips.g:678:4: ( 'b' | 'bwd' | 'backward' | 'back' )\n int alt179=4;\n switch ( input.LA(1) ) {\n case 308:\n {\n alt179=1;\n }\n break;\n case 309:\n {\n alt179=2;\n }\n break;\n case 310:\n {\n alt179=3;\n }\n break;\n case 311:\n {\n alt179=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 179, 0, input);\n\n throw nvae;\n }\n\n switch (alt179) {\n case 1 :\n // flips.g:678:5: 'b'\n {\n char_literal462=(Token)match(input,308,FOLLOW_308_in_forwardBackwardDirection3966); \n stream_308.add(char_literal462);\n\n\n }\n break;\n case 2 :\n // flips.g:678:9: 'bwd'\n {\n string_literal463=(Token)match(input,309,FOLLOW_309_in_forwardBackwardDirection3968); \n stream_309.add(string_literal463);\n\n\n }\n break;\n case 3 :\n // flips.g:678:15: 'backward'\n {\n string_literal464=(Token)match(input,310,FOLLOW_310_in_forwardBackwardDirection3970); \n stream_310.add(string_literal464);\n\n\n }\n break;\n case 4 :\n // flips.g:678:26: 'back'\n {\n string_literal465=(Token)match(input,311,FOLLOW_311_in_forwardBackwardDirection3972); \n stream_311.add(string_literal465);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 679:2: -> BACKWARD\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(BACKWARD, \"BACKWARD\"));\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "protected void sequence_BACKWARD(ISerializationContext context, BACKWARD semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_YIMPL__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_YIMPL__NAME));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_YIMPL__DISTANCE_CST) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_YIMPL__DISTANCE_CST));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_YIMPL__TEMPS_CST) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_YIMPL__TEMPS_CST));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getBACKWARDAccess().getNameBackwardKeyword_0_0(), semanticObject.getName());\n\t\tfeeder.accept(grammarAccess.getBACKWARDAccess().getDistanceCSTINTTerminalRuleCall_4_0(), semanticObject.getDistanceCST());\n\t\tfeeder.accept(grammarAccess.getBACKWARDAccess().getTempsCSTINTTerminalRuleCall_7_0(), semanticObject.getTempsCST());\n\t\tfeeder.finish();\n\t}", "private HashMap<Transition, ArrayList<Transition>> fusionSeriesTransitions(\n\t\t\tPetriNet newPN, ArrayList nodes, ArrayList placesToExamine,\n\t\t\tPetriNet oldPN) {\n\t\tHashMap<Transition, ArrayList<Transition>> mappingActivityToOldTransitions = new HashMap<Transition, ArrayList<Transition>>();\n\t\tArrayList<Transition> mergedTransitions = new ArrayList<Transition>();\n\t\tif (nodes.size() == 5) {\n\t\t\t// check whether the in- and outdegree of the places are 1\n\t\t\t// check whether the indegree of the last two transitions is 1\n\t\t\tPlace p1 = (Place) nodes.get(1);\n\t\t\tPlace p2 = (Place) nodes.get(3);\n\t\t\tTransition t2 = (Transition) nodes.get(2);\n\t\t\tTransition t3 = (Transition) nodes.get(4);\n\t\t\tif (p1.inDegree() == 1 && p1.outDegree() == 1 && p2.inDegree() == 1\n\t\t\t\t\t&& p2.outDegree() == 1 && t2.inDegree() == 1\n\t\t\t\t\t&& t3.inDegree() == 1) {\n\t\t\t\tTransition t1 = (Transition) nodes.get(0);\n\t\t\t\t// find the transitions in the old PN that are going to be\n\t\t\t\t// merged\n\t\t\t\tTransition t1Old = oldPN.findTransition(t1);\n\t\t\t\tmergedTransitions.add(t1Old);\n\t\t\t\tTransition t2Old = oldPN.findTransition(t2);\n\t\t\t\tmergedTransitions.add(t2Old);\n\t\t\t\tTransition t3Old = oldPN.findTransition(t3);\n\t\t\t\tmergedTransitions.add(t3Old);\n\n\t\t\t\t// fusion for t1, p1 and t2\n\t\t\t\tnewPN.delPlace(p1);\n\t\t\t\t// merge t1 and t2\n\t\t\t\tHashSet succT2 = t2.getSuccessors();\n\t\t\t\t// create an edge from t1 to each successor of t2\n\t\t\t\tIterator succs = succT2.iterator();\n\t\t\t\twhile (succs.hasNext()) {\n\t\t\t\t\tPlace successor = (Place) succs.next();\n\t\t\t\t\tPNEdge newEdge = new PNEdge(t1, successor);\n\t\t\t\t\tnewPN.addEdge(newEdge);\n\t\t\t\t}\n\t\t\t\t// remove t2\n\t\t\t\tnewPN.delTransition(t2);\n\n\t\t\t\t// fusion for t1, p2, t3\n\t\t\t\tnewPN.delPlace(p2);\n\t\t\t\t// merge t1 and t3\n\t\t\t\tHashSet succT3 = t3.getSuccessors();\n\t\t\t\t// create an edge from t1 to each successor of t3\n\t\t\t\tIterator succs2 = succT3.iterator();\n\t\t\t\twhile (succs2.hasNext()) {\n\t\t\t\t\tPlace successor = (Place) succs2.next();\n\t\t\t\t\tPNEdge newEdge = new PNEdge(t1, successor);\n\t\t\t\t\tnewPN.addEdge(newEdge);\n\t\t\t\t}\n\t\t\t\t// remove t3\n\t\t\t\tnewPN.delTransition(t3);\n\t\t\t\t//\n\t\t\t\tplacesToExamine.remove(p1);\n\t\t\t\tplacesToExamine.remove(p2);\n\t\t\t\t// rename t1 and remove logevent\n\t\t\t\tt1.setIdentifier(getActivityName(t1));\n\t\t\t\t// report which transitions are merged into an activity\n\t\t\t\tmappingActivityToOldTransitions.put(t1, mergedTransitions);\n\t\t\t\t// make a fake log event for the transition that is now an\n\t\t\t\t// activity\n\t\t\t\tLogEvent fake = new LogEvent(getActivityName(t1), \"none\");\n\t\t\t\tt1.setLogEvent(fake);\n\t\t\t}\n\t\t} else if (nodes.size() == 3) {\n\t\t\t// check whether the in- and outdegree of the place is 1\n\t\t\t// and that the indegree of transition t2 is 1.\n\t\t\tPlace p1 = (Place) nodes.get(1);\n\t\t\tTransition t1 = (Transition) nodes.get(0);\n\t\t\tTransition t2 = (Transition) nodes.get(2);\n\t\t\tif ((p1.inDegree() == 1 && p1.outDegree() == 1)\n\t\t\t\t\t&& t2.inDegree() == 1) {\n\n\t\t\t\t// find the transitions in the old PN that are going to be\n\t\t\t\t// merged\n\t\t\t\tTransition t1Old = oldPN.findTransition(t1);\n\t\t\t\tmergedTransitions.add(t1Old);\n\t\t\t\tTransition t2Old = oldPN.findTransition(t2);\n\t\t\t\tmergedTransitions.add(t2Old);\n\n\t\t\t\t// fusion for t1, p1 and t2\n\t\t\t\tnewPN.delPlace(p1);\n\t\t\t\t// merge t1 and t2\n\t\t\t\tHashSet succT2 = t2.getSuccessors();\n\t\t\t\t// create an edge from t1 to each successor of t2\n\t\t\t\tIterator succs = succT2.iterator();\n\t\t\t\twhile (succs.hasNext()) {\n\t\t\t\t\tPlace successor = (Place) succs.next();\n\t\t\t\t\tPNEdge newEdge = new PNEdge(t1, successor);\n\t\t\t\t\tnewPN.addEdge(newEdge);\n\t\t\t\t}\n\t\t\t\t// remove t2\n\t\t\t\tnewPN.delTransition(t2);\n\n\t\t\t\t// rename t1 and remove logevent\n\t\t\t\tt1.setIdentifier(getActivityName(t1));\n\t\t\t\t// report which transitions are merged into an activity\n\t\t\t\tmappingActivityToOldTransitions.put(t1, mergedTransitions);\n\t\t\t\t// make a fake log event for the transition that is now an\n\t\t\t\t// activity\n\t\t\t\tLogEvent fake = new LogEvent(getActivityName(t1), \"none\");\n\t\t\t\tt1.setLogEvent(fake);\n\t\t\t}\n\t\t} else {\n\t\t\t// generate exception\n\t\t}\n\n\t\treturn mappingActivityToOldTransitions;\n\t}", "public void reverse() {\n/* 298 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private boolean buildConcurrentRulesForward(\r\n \t\t\tfinal Rule ri_1, final int i_1,\r\n \t\t\tfinal Rule ri, final int i,\t\t\t\r\n \t\t\tfinal Graph g) {\r\n \t\tSystem.out.println(\"=== >>> ApplicabilityChecker.buildConcurrentRulesForwards:: \"+ri_1.getName()+\" & \"+ri.getName());\r\n\r\n \t\tboolean result = false;\r\n \t\t\r\n \t\tfinal List<List<ConcurrentRule>> \r\n\t\tcrListsOfRuleI = this.getListsOfConcurrentRulesOfRule(ri, i);\r\n \t\t\r\n \t\tfinal List<List<ConcurrentRule>> \r\n\t\tcrListsOfRuleI_1 = this.getListsOfConcurrentRulesOfRule(ri_1, i_1);\r\n \t\tif (crListsOfRuleI_1 != null && !crListsOfRuleI_1.isEmpty()) {\r\n \t\t\tfor (int l=0; l<crListsOfRuleI_1.size() && !result; l++) { \r\n \t\t\t\tList<ConcurrentRule> listAll = new Vector<ConcurrentRule>();\r\n \t\t\t\tcrListsOfRuleI.add(listAll);\r\n \t\t\t\tList<ConcurrentRule> crList = crListsOfRuleI_1.get(l);\r\n \t\t\t\tfor (int c=0; c<crList.size() && !result; c++) {\r\n \t\t\t\t\tConcurrentRule cr = crList.get(c);\r\n \t\t\t\t\tList<ConcurrentRule> list = this.makeConcurrentRulesDuetoDependency(cr, ri, null);\r\n \t\t\t\t\tlistAll.addAll(list);\r\n \t\t\t\t\tif (!list.isEmpty()) {\r\n \t\t \t\t\t\tint d = crListsOfRuleI.size();\r\n \t\t \t\t\t\tfor (int j = 0; j<list.size(); j++) {\r\n \t\t \t\t\t\t\tConcurrentRule crj = list.get(j);\t\t\t\t\r\n \t\t \t\t\t\t\tif (isConcurrentRuleApplicable(i, ri, \r\n \t\t \t\t\t\t\t\t\tthis.ruleSequence.getRules(), g, \r\n \t\t \t\t\t\t\t\t\tcrj, d, ApplicabilityConstants.DIRECT_ENABLING_PREDECESSOR)) {\r\n \t\t \t\t\t\t\t\tresult = true;\r\n \t\t \t\t\t\t\t}\r\n \t\t \t\t\t\t\telse {\r\n \t\t \t\t\t\t\t\tlist.remove(j);\r\n \t\t \t\t\t\t\t\tj--;\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}\r\n \t\t\t}\r\n \t\t} \r\n \t\tif (!result) {\r\n\t \t\tfor (int k=0; k<i; k++) {\t\r\n\t \t\t\tRule r = this.ruleSequence.getRule(k);\r\n\t \t\t\tint k1 = k+1;\r\n\t \t\t\tRule r1 = this.ruleSequence.getRule(k1);\r\n\t \t\t\tList<ConcurrentRule> list = null;\r\n\t \t\t\tif (k==0) {\r\n\t \t\t\t\tlist = this.makeConcurrentRulesDuetoDependency(r, k, r1, k1, null);\t\r\n\t \t\t\t\tcrListsOfRuleI.add(list); \t\t\t\t\r\n\t \t\t\t} \r\n\t \t\t\telse //if (this.depth == -1 || k < this.depth) \r\n\t \t\t\t{\t\t\t\t\t\t\t\t\r\n\t \t\t\t\tList<ConcurrentRule> listOfPreRule = this.getConcurrentRulesOfRule(r, k, k-1);\r\n\t \t\t\t\tif (listOfPreRule == null || listOfPreRule.isEmpty()) {\r\n\t \t\t\t\t\tfinal List<List<ConcurrentRule>> \r\n\t \t\t\t\t\tcrListsOfPreRule = this.getListsOfConcurrentRulesOfRule(r, k); \r\n\t \t\t\t\t\t\r\n\t \t\t\t\t\tthis.completeConcurrentRules(r, k, crListsOfPreRule, k-1, null);\r\n\t \t\t\t\t\t\r\n\t \t\t\t\t\tlistOfPreRule = this.getConcurrentRulesOfRule(r, k, k-1);\r\n\t \t\t\t\t\tif (listOfPreRule == null || listOfPreRule.isEmpty()) {\r\n\t \t\t\t\t\t\tresult = false;\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\t\r\n\t \t\t\t\tlist = new Vector<ConcurrentRule>();\r\n\t\t\t\t\tfor (int c=0; c<listOfPreRule.size(); c++) {\r\n\t\t\t\t\t\tfinal ConcurrentRule cr = listOfPreRule.get(c);\r\n\t\t\t\t\t\tlist.addAll(this.makeConcurrentRulesDuetoDependency(cr, r1, null));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcrListsOfRuleI.add(list);\r\n\t \t\t\t} \r\n\t\r\n\t \t\t\tif (!list.isEmpty()) {\r\n\t \t\t\t\tint d = crListsOfRuleI.size();\r\n\t \t\t\t\tfor (int c = 0; c<list.size(); c++) {\r\n\t \t\t\t\t\tConcurrentRule cr = list.get(c);\t\t\t\t\r\n\t \t\t\t\t\tif (isConcurrentRuleApplicable(i, ri, \r\n\t \t\t\t\t\t\t\tthis.ruleSequence.getRules(), g, \r\n\t \t\t\t\t\t\t\tcr, d, ApplicabilityConstants.DIRECT_ENABLING_PREDECESSOR)) {\r\n\t \t\t\t\t\t\tresult = true;\r\n\t \t\t\t\t\t}\r\n//\t \t\t\t\t\telse {\r\n//\t \t\t\t\t\t\tlist.remove(c);\r\n//\t \t\t\t\t\t\tc--;\r\n//\t \t\t\t\t\t}\r\n\t \t\t\t\t}\r\n\t \t\t\t\tif (result)\r\n\t \t\t\t\t\tbreak;\r\n\t \t\t\t}\r\n\t \t \t}\r\n \t\t}\r\n// \t\tSystem.out.println(\"---> ApplicabilityChecker.buildConcurrentRulesForward:: result: \"+result);\r\n \t\treturn result;\r\n \t}", "public static ConnectionMap backtrack(final ConnectionMap map, int index) {\r\n\t\t// Returns null if first variable has no possible values\r\n\t\tif (map.domains.get(0).size()==0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// If the possible values for the index are null step back\r\n\t\tif (map.domains.get(index).size()==0) {\r\n\t\t\t//System.out.println(\"BACKTRACK!\");\r\n\t\t\tArrayList<Integer> newRow = new ArrayList<Integer>();\r\n\t\t\tfor (int k = 0; k < map.numColors; k++) {\r\n\t\t\t\tnewRow.add(k);\r\n\t\t\t}\r\n\t\t\tmap.domains.set(index, newRow);\r\n\t\t\tmap.domains.get(index-1).remove(0);\r\n\t\t\tBacktrackSearch.backtrack(map, index-1);\r\n\t\t}\r\n\t\t// Loops through the possible values for the index\r\n\t\tfor (int j=index; j>=0; j--) {\r\n\t\t\tif(map.connections[index][j]==1 && map.domains.get(index).size()>0) {\r\n\t\t\t\tArrayList<Integer> neighbor = map.domains.get(j);\r\n\t\t\t\tif (neighbor.size() != 0) {\r\n\t\t\t\t\tmap.domains.get(index).remove(neighbor.get(0));\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// If the possible values for the index are null step back\r\n\t\t\tif (map.domains.get(index).size()==0) {\r\n\t\t\t\t//System.out.println(\"BACKTRACK!\");\r\n\t\t\t\tArrayList<Integer> newRow = new ArrayList<Integer>();\r\n\t\t\t\tfor (int k = 0; k < map.numColors; k++) {\r\n\t\t\t\t\tnewRow.add(k);\r\n\t\t\t\t}\r\n\t\t\t\tmap.domains.set(index, newRow);\r\n\t\t\t\tmap.domains.get(index-1).remove(0);\r\n\t\t\t\tBacktrackSearch.backtrack(map, index-1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// If the index is not the last index step forward\r\n\t\tif (index < map.domains.size()-1) {\r\n\t\t\tBacktrackSearch.backtrack(map, index+1);\r\n\t\t}\r\n\t\t// Returns null if first variable has no possible values\r\n\t\tif (map.domains.get(0).size()==0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// Removes end of colors\r\n\t\tfor(int i = 0; i < map.domains.size(); i++) {\r\n\t\t\tfor(int j = 1; j < map.domains.get(i).size(); j++) {\r\n\t\t\t\tmap.domains.get(i).remove(j);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Returns map\r\n\t\treturn map;\t\r\n\t}", "@Override\r\n\tpublic boolean canSeekForward() {\n\t\treturn true;\r\n\t}", "@Test\n\tpublic void forwardCopy_test2() {\n\t\tSystem.out.println(\"copy前:\" + Arrays.toString(intArr));\t\n\t\tint index = 1;\n//\t\tArrayUtil.forwardCopy(intArr, index, 2);\n//\t\t//[2, 8, 3, 6, 0, 0, 0, 0]\n//\t\tSystem.out.println(\"copy后(前移):\" + Arrays.toString(intArr));\n//\t\tint len = intArr.length;\n//\t\tfor(int i = index; i< intArr.length - 1; i++){\n//\t\t\tintArr[i] = intArr[i+1];\n//\t\t}\n//\t\t//[2, 4, 3, 6, 0, 0, 0, 0]\n\t\tSystem.out.println(\"copy后(前移):\" + Arrays.toString(intArr));\t\n\t}", "public void mo2476b() {\n Collections.reverse(mo2625k());\n }", "private void trIntroSort(int r34, int r35, int r36, int r37, int r38, io.netty.handler.codec.compression.Bzip2DivSufSort.TRBudget r39, int r40) {\n /*\n r33 = this;\n r0 = r33;\n r0 = r0.SA;\n r16 = r0;\n r4 = 64;\n r0 = new io.netty.handler.codec.compression.Bzip2DivSufSort.StackEntry[r4];\n r29 = r0;\n r32 = 0;\n r27 = 0;\n r4 = r38 - r37;\n r22 = trLog(r4);\n r28 = r27;\n r23 = r22;\n L_0x001a:\n if (r23 >= 0) goto L_0x02b6;\n L_0x001c:\n r4 = -1;\n r0 = r23;\n if (r0 != r4) goto L_0x01a4;\n L_0x0021:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x0050;\n L_0x002d:\n r22 = r23;\n L_0x002f:\n r26 = 0;\n L_0x0031:\n r0 = r26;\n r1 = r28;\n if (r0 >= r1) goto L_0x072a;\n L_0x0037:\n r4 = r29[r26];\n r4 = r4.d;\n r5 = -3;\n if (r4 != r5) goto L_0x004d;\n L_0x003e:\n r4 = r29[r26];\n r4 = r4.b;\n r5 = r29[r26];\n r5 = r5.c;\n r0 = r33;\n r1 = r34;\n r0.lsUpdateGroup(r1, r4, r5);\n L_0x004d:\n r26 = r26 + 1;\n goto L_0x0031;\n L_0x0050:\n r6 = r35 + -1;\n r10 = r38 + -1;\n r4 = r33;\n r5 = r34;\n r7 = r36;\n r8 = r37;\n r9 = r38;\n r25 = r4.trPartition(r5, r6, r7, r8, r9, r10);\n r0 = r25;\n r8 = r0.first;\n r0 = r25;\n r9 = r0.last;\n r0 = r37;\n if (r0 < r8) goto L_0x0072;\n L_0x006e:\n r0 = r38;\n if (r9 >= r0) goto L_0x016d;\n L_0x0072:\n r0 = r38;\n if (r8 >= r0) goto L_0x0087;\n L_0x0076:\n r17 = r37;\n r31 = r8 + -1;\n L_0x007a:\n r0 = r17;\n if (r0 >= r8) goto L_0x0087;\n L_0x007e:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x007a;\n L_0x0087:\n r0 = r38;\n if (r9 >= r0) goto L_0x009c;\n L_0x008b:\n r17 = r8;\n r31 = r9 + -1;\n L_0x008f:\n r0 = r17;\n if (r0 >= r9) goto L_0x009c;\n L_0x0093:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x008f;\n L_0x009c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = 0;\n r6 = 0;\n r4.<init>(r5, r8, r9, r6);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + -1;\n r6 = -2;\n r0 = r37;\n r1 = r38;\n r4.<init>(r5, r0, r1, r6);\n r29[r27] = r4;\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x0117;\n L_0x00bd:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x00e3;\n L_0x00c2:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r38 - r9;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r9, r1, r5);\n r29[r28] = r4;\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n L_0x00dd:\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x00e3:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x00f3;\n L_0x00e8:\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x00f3:\n if (r28 != 0) goto L_0x00fa;\n L_0x00f5:\n r27 = r28;\n r22 = r23;\n L_0x00f9:\n return;\n L_0x00fa:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x0117:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0138;\n L_0x011c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r8 - r37;\n r5 = trLog(r5);\n r0 = r35;\n r1 = r37;\n r4.<init>(r0, r1, r8, r5);\n r29[r28] = r4;\n r37 = r9;\n r4 = r38 - r9;\n r22 = trLog(r4);\n goto L_0x00dd;\n L_0x0138:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0148;\n L_0x013d:\n r38 = r8;\n r4 = r8 - r37;\n r22 = trLog(r4);\n r27 = r28;\n goto L_0x00dd;\n L_0x0148:\n if (r28 != 0) goto L_0x014f;\n L_0x014a:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x014f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x016d:\n r17 = r37;\n L_0x016f:\n r0 = r17;\n r1 = r38;\n if (r0 >= r1) goto L_0x017e;\n L_0x0175:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r17;\n r17 = r17 + 1;\n goto L_0x016f;\n L_0x017e:\n if (r28 != 0) goto L_0x0186;\n L_0x0180:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0186:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n goto L_0x00dd;\n L_0x01a4:\n r4 = -2;\n r0 = r23;\n if (r0 != r4) goto L_0x01ea;\n L_0x01a9:\n r27 = r28 + -1;\n r4 = r29[r27];\n r8 = r4.b;\n r4 = r29[r27];\n r9 = r4.c;\n r11 = r35 - r34;\n r4 = r33;\n r5 = r34;\n r6 = r36;\n r7 = r37;\n r10 = r38;\n r4.trCopy(r5, r6, r7, r8, r9, r10, r11);\n if (r27 != 0) goto L_0x01c8;\n L_0x01c4:\n r22 = r23;\n goto L_0x00f9;\n L_0x01c8:\n r27 = r27 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x01ea:\n r4 = r16[r37];\n if (r4 < 0) goto L_0x0202;\n L_0x01ee:\n r8 = r37;\n L_0x01f0:\n r4 = r16[r8];\n r4 = r4 + r34;\n r16[r4] = r8;\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0200;\n L_0x01fc:\n r4 = r16[r8];\n if (r4 >= 0) goto L_0x01f0;\n L_0x0200:\n r37 = r8;\n L_0x0202:\n r0 = r37;\n r1 = r38;\n if (r0 >= r1) goto L_0x028c;\n L_0x0208:\n r8 = r37;\n L_0x020a:\n r4 = r16[r8];\n r4 = r4 ^ -1;\n r16[r8] = r4;\n r8 = r8 + 1;\n r4 = r16[r8];\n if (r4 < 0) goto L_0x020a;\n L_0x0216:\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r5 = r16[r8];\n r5 = r5 + r35;\n r5 = r16[r5];\n if (r4 == r5) goto L_0x0241;\n L_0x0224:\n r4 = r8 - r37;\n r4 = r4 + 1;\n r24 = trLog(r4);\n L_0x022c:\n r8 = r8 + 1;\n r0 = r38;\n if (r8 >= r0) goto L_0x0244;\n L_0x0232:\n r9 = r37;\n r31 = r8 + -1;\n L_0x0236:\n if (r9 >= r8) goto L_0x0244;\n L_0x0238:\n r4 = r16[r9];\n r4 = r4 + r34;\n r16[r4] = r31;\n r9 = r9 + 1;\n goto L_0x0236;\n L_0x0241:\n r24 = -1;\n goto L_0x022c;\n L_0x0244:\n r4 = r8 - r37;\n r5 = r38 - r8;\n if (r4 > r5) goto L_0x0264;\n L_0x024a:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = -3;\n r0 = r35;\n r1 = r38;\n r4.<init>(r0, r8, r1, r5);\n r29[r28] = r4;\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0264:\n r4 = 1;\n r5 = r38 - r8;\n if (r4 >= r5) goto L_0x0282;\n L_0x0269:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r37;\n r1 = r24;\n r4.<init>(r5, r0, r8, r1);\n r29[r28] = r4;\n r37 = r8;\n r22 = -3;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0282:\n r35 = r35 + 1;\n r38 = r8;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x028c:\n if (r28 != 0) goto L_0x0294;\n L_0x028e:\n r27 = r28;\n r22 = r23;\n goto L_0x00f9;\n L_0x0294:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x02b6:\n r4 = r38 - r37;\n r5 = 8;\n if (r4 > r5) goto L_0x02d5;\n L_0x02bc:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 != 0) goto L_0x02cc;\n L_0x02c8:\n r22 = r23;\n goto L_0x002f;\n L_0x02cc:\n r33.trInsertionSort(r34, r35, r36, r37, r38);\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x02d5:\n r22 = r23 + -1;\n if (r23 != 0) goto L_0x0331;\n L_0x02d9:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x02e5:\n r15 = r38 - r37;\n r10 = r33;\n r11 = r34;\n r12 = r35;\n r13 = r36;\n r14 = r37;\n r10.trHeapSort(r11, r12, r13, r14, r15);\n r8 = r38 + -1;\n L_0x02f6:\n r0 = r37;\n if (r0 >= r8) goto L_0x032b;\n L_0x02fa:\n r4 = r16[r8];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r9 = r8 + -1;\n L_0x030a:\n r0 = r37;\n if (r0 > r9) goto L_0x0329;\n L_0x030e:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r4 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n if (r4 != r0) goto L_0x0329;\n L_0x0320:\n r4 = r16[r9];\n r4 = r4 ^ -1;\n r16[r9] = r4;\n r9 = r9 + -1;\n goto L_0x030a;\n L_0x0329:\n r8 = r9;\n goto L_0x02f6;\n L_0x032b:\n r22 = -3;\n r23 = r22;\n goto L_0x001a;\n L_0x0331:\n r8 = r33.trPivot(r34, r35, r36, r37, r38);\n r0 = r16;\n r1 = r37;\n r2 = r16;\n swapElements(r0, r1, r2, r8);\n r4 = r16[r37];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r31 = r0.trGetC(r1, r2, r3, r4);\n r9 = r37 + 1;\n L_0x034e:\n r0 = r38;\n if (r9 >= r0) goto L_0x0369;\n L_0x0352:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0369;\n L_0x0366:\n r9 = r9 + 1;\n goto L_0x034e;\n L_0x0369:\n r8 = r9;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x036e:\n r0 = r32;\n r1 = r31;\n if (r0 >= r1) goto L_0x039e;\n L_0x0374:\n r9 = r9 + 1;\n r0 = r38;\n if (r9 >= r0) goto L_0x039e;\n L_0x037a:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x039e;\n L_0x038e:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0374;\n L_0x0394:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0374;\n L_0x039e:\n r17 = r38 + -1;\n L_0x03a0:\n r0 = r17;\n if (r9 >= r0) goto L_0x03bb;\n L_0x03a4:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03bb;\n L_0x03b8:\n r17 = r17 + -1;\n goto L_0x03a0;\n L_0x03bb:\n r18 = r17;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03c1:\n r0 = r32;\n r1 = r31;\n if (r0 <= r1) goto L_0x03f5;\n L_0x03c7:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x03cd:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x03e1:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x03c7;\n L_0x03e7:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x03c7;\n L_0x03f5:\n r0 = r17;\n if (r9 >= r0) goto L_0x045a;\n L_0x03f9:\n r0 = r16;\n r1 = r16;\n r2 = r17;\n swapElements(r0, r9, r1, r2);\n L_0x0402:\n r9 = r9 + 1;\n r0 = r17;\n if (r9 >= r0) goto L_0x042c;\n L_0x0408:\n r4 = r16[r9];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 > r1) goto L_0x042c;\n L_0x041c:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x0402;\n L_0x0422:\n r0 = r16;\n r1 = r16;\n swapElements(r0, r9, r1, r8);\n r8 = r8 + 1;\n goto L_0x0402;\n L_0x042c:\n r17 = r17 + -1;\n r0 = r17;\n if (r9 >= r0) goto L_0x03f5;\n L_0x0432:\n r4 = r16[r17];\n r0 = r33;\n r1 = r34;\n r2 = r35;\n r3 = r36;\n r32 = r0.trGetC(r1, r2, r3, r4);\n r0 = r32;\n r1 = r31;\n if (r0 < r1) goto L_0x03f5;\n L_0x0446:\n r0 = r32;\n r1 = r31;\n if (r0 != r1) goto L_0x042c;\n L_0x044c:\n r0 = r16;\n r1 = r17;\n r2 = r16;\n r3 = r18;\n swapElements(r0, r1, r2, r3);\n r18 = r18 + -1;\n goto L_0x042c;\n L_0x045a:\n r0 = r18;\n if (r8 > r0) goto L_0x0716;\n L_0x045e:\n r17 = r9 + -1;\n r26 = r8 - r37;\n r30 = r9 - r8;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x046c;\n L_0x046a:\n r26 = r30;\n L_0x046c:\n r19 = r37;\n r21 = r9 - r26;\n L_0x0470:\n if (r26 <= 0) goto L_0x0484;\n L_0x0472:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0470;\n L_0x0484:\n r26 = r18 - r17;\n r4 = r38 - r18;\n r30 = r4 + -1;\n r0 = r26;\n r1 = r30;\n if (r0 <= r1) goto L_0x0492;\n L_0x0490:\n r26 = r30;\n L_0x0492:\n r19 = r9;\n r21 = r38 - r26;\n L_0x0496:\n if (r26 <= 0) goto L_0x04aa;\n L_0x0498:\n r0 = r16;\n r1 = r19;\n r2 = r16;\n r3 = r21;\n swapElements(r0, r1, r2, r3);\n r26 = r26 + -1;\n r19 = r19 + 1;\n r21 = r21 + 1;\n goto L_0x0496;\n L_0x04aa:\n r4 = r9 - r8;\n r8 = r37 + r4;\n r4 = r18 - r17;\n r9 = r38 - r4;\n r4 = r16[r8];\n r4 = r4 + r34;\n r4 = r16[r4];\n r0 = r31;\n if (r4 == r0) goto L_0x04d3;\n L_0x04bc:\n r4 = r9 - r8;\n r24 = trLog(r4);\n L_0x04c2:\n r17 = r37;\n r31 = r8 + -1;\n L_0x04c6:\n r0 = r17;\n if (r0 >= r8) goto L_0x04d6;\n L_0x04ca:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04c6;\n L_0x04d3:\n r24 = -1;\n goto L_0x04c2;\n L_0x04d6:\n r0 = r38;\n if (r9 >= r0) goto L_0x04eb;\n L_0x04da:\n r17 = r8;\n r31 = r9 + -1;\n L_0x04de:\n r0 = r17;\n if (r0 >= r9) goto L_0x04eb;\n L_0x04e2:\n r4 = r16[r17];\n r4 = r4 + r34;\n r16[r4] = r31;\n r17 = r17 + 1;\n goto L_0x04de;\n L_0x04eb:\n r4 = r8 - r37;\n r5 = r38 - r9;\n if (r4 > r5) goto L_0x060c;\n L_0x04f1:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x0571;\n L_0x04f7:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x051e;\n L_0x04fc:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x051e:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0538;\n L_0x0523:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0538:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0549;\n L_0x053d:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0549:\n if (r28 != 0) goto L_0x054f;\n L_0x054b:\n r27 = r28;\n goto L_0x00f9;\n L_0x054f:\n r27 = r28 + -1;\n r20 = r29[r27];\n r0 = r20;\n r0 = r0.a_isRightVersion;\n r35 = r0;\n r0 = r20;\n r0 = r0.b;\n r37 = r0;\n r0 = r20;\n r0 = r0.c;\n r38 = r0;\n r0 = r20;\n r0 = r0.d;\n r22 = r0;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0571:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x05c6;\n L_0x0577:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x059e;\n L_0x057c:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x059e:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05c0;\n L_0x05a3:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x05c0:\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x05c6:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x05f5;\n L_0x05cb:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x05f5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x060c:\n r4 = r8 - r37;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x067b;\n L_0x0612:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x0639;\n L_0x0617:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x0639:\n r4 = 1;\n r5 = r8 - r37;\n if (r4 >= r5) goto L_0x0653;\n L_0x063e:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r28] = r4;\n r38 = r8;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0653:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x0664;\n L_0x0658:\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x0664:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r38;\n r3 = r22;\n r4.<init>(r0, r1, r2, r3);\n r29[r28] = r4;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x067b:\n r4 = r38 - r9;\n r5 = r9 - r8;\n if (r4 > r5) goto L_0x06d0;\n L_0x0681:\n r4 = 1;\n r5 = r38 - r9;\n if (r4 >= r5) goto L_0x06a8;\n L_0x0686:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r5 = r35 + 1;\n r0 = r24;\n r4.<init>(r5, r8, r9, r0);\n r29[r27] = r4;\n r37 = r9;\n r23 = r22;\n goto L_0x001a;\n L_0x06a8:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ca;\n L_0x06ad:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x06ca:\n r38 = r8;\n r23 = r22;\n goto L_0x001a;\n L_0x06d0:\n r4 = 1;\n r5 = r9 - r8;\n if (r4 >= r5) goto L_0x06ff;\n L_0x06d5:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r28 = r27 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r38;\n r2 = r22;\n r4.<init>(r0, r9, r1, r2);\n r29[r27] = r4;\n r35 = r35 + 1;\n r37 = r8;\n r38 = r9;\n r22 = r24;\n r23 = r22;\n goto L_0x001a;\n L_0x06ff:\n r27 = r28 + 1;\n r4 = new io.netty.handler.codec.compression.Bzip2DivSufSort$StackEntry;\n r0 = r35;\n r1 = r37;\n r2 = r22;\n r4.<init>(r0, r1, r8, r2);\n r29[r28] = r4;\n r37 = r9;\n r28 = r27;\n r23 = r22;\n goto L_0x001a;\n L_0x0716:\n r4 = r38 - r37;\n r0 = r39;\n r1 = r40;\n r4 = r0.update(r1, r4);\n if (r4 == 0) goto L_0x002f;\n L_0x0722:\n r22 = r22 + 1;\n r35 = r35 + 1;\n r23 = r22;\n goto L_0x001a;\n L_0x072a:\n r27 = r28;\n goto L_0x00f9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.trIntroSort(int, int, int, int, int, io.netty.handler.codec.compression.Bzip2DivSufSort$TRBudget, int):void\");\n }", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n Range range0 = Range.ofLength(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 0 .. -1 ]/0B\", string0);\n \n Range range1 = Range.of(0L, 0L);\n long long0 = range0.getLength();\n assertEquals(0L, long0);\n \n range1.complement(range0);\n assertFalse(range1.isEmpty());\n \n Range.Comparators.values();\n Range.Builder range_Builder0 = new Range.Builder(range0);\n range_Builder0.expandBegin(0L);\n range_Builder0.contractBegin(0L);\n assertTrue(range0.isEmpty());\n }", "public void testConjunctionResolvesWhenSecondPathRevisitsFirst() throws Exception\n {\n resolveAndAssertSolutions(\"[[g, (h :- g), (f :- g, h)], (?- f), [[]]]\");\n }", "@Test\n\tpublic void testRealWorldCase_uc010nov_3() throws InvalidGenomeChange {\n\t\tthis.builderForward = TranscriptModelFactory\n\t\t\t\t.parseKnownGenesLine(\n\t\t\t\t\t\trefDict,\n\t\t\t\t\t\t\"uc010nov.3\tchrX\t+\t103031438\t103047547\t103031923\t103045526\t8\t103031438,103031780,103040510,103041393,103042726,103043365,103044261,103045454,\t103031575,103031927,103040697,103041655,103042895,103043439,103044327,103047547,\tP60201\tuc010nov.3\");\n\t\tthis.builderForward\n\t\t.setSequence(\"atggcttctcacgcttgtgctgcatatcccacaccaattagacccaaggatcagttggaagtttccaggacatcttcattttatttccaccctcaatccacatttccagatgtctctgcagcaaagcgaaattccaggagaagaggacaaagatactcagagagaaaaagtaaaagaccgaagaaggaggctggagagaccaggatccttccagctgaacaaagtcagccacaaagcagactagccagccggctacaattggagtcagagtcccaaagacatgggcttgttagagtgctgtgcaagatgtctggtaggggccccctttgcttccctggtggccactggattgtgtttctttggggtggcactgttctgtggctgtggacatgaagccctcactggcacagaaaagctaattgagacctatttctccaaaaactaccaagactatgagtatctcatcaatgtgatccatgccttccagtatgtcatctatggaactgcctctttcttcttcctttatggggccctcctgctggctgagggcttctacaccaccggcgcagtcaggcagatctttggcgactacaagaccaccatctgcggcaagggcctgagcgcaacggtaacagggggccagaaggggaggggttccagaggccaacatcaagctcattctttggagcgggtgtgtcattgtttgggaaaatggctaggacatcccgacaagtttgtgggcatcacctatgccctgaccgttgtgtggctcctggtgtttgcctgctctgctgtgcctgtgtacatttacttcaacacctggaccacctgccagtctattgccttccccagcaagacctctgccagtataggcagtctctgtgctgatgccagaatgtatggtgttctcccatggaatgctttccctggcaaggtttgtggctccaaccttctgtccatctgcaaaacagctgagttccaaatgaccttccacctgtttattgctgcatttgtgggggctgcagctacactggtttccctgctcaccttcatgattgctgccacttacaactttgccgtccttaaactcatgggccgaggcaccaagttctgatcccccgtagaaatccccctttctctaatagcgaggctctaaccacacagcctacaatgctgcgtctcccatcttaactctttgcctttgccaccaactggccctcttcttacttgatgagtgtaacaagaaaggagagtcttgcagtgattaaggtctctctttggactctcccctcttatgtacctcttttagtcattttgcttcatagctggttcctgctagaaatgggaaatgcctaagaagatgacttcccaactgcaagtcacaaaggaatggaggctctaattgaattttcaagcatctcctgaggatcagaaagtaatttcttctcaaagggtacttccactgatggaaacaaagtggaaggaaagatgctcaggtacagagaaggaatgtctttggtcctcttgccatctataggggccaaatatattctctttggtgtacaaaatggaattcattctggtctctctattaccactgaagatagaagaaaaaagaatgtcagaaaaacaataagagcgtttgcccaaatctgcctattgcagctgggagaagggggtcaaagcaaggatctttcacccacagaaagagagcactgaccccgatggcgatggactactgaagccctaactcagccaaccttacttacagcataagggagcgtagaatctgtgtagacgaagggggcatctggccttacacctcgttagggaagagaaacagggtgttgtcagcatcttctcactcccttctccttgataacagctaccatgacaaccctgtggtttccaaggagctgagaatagaaggaaactagcttacatgagaacagactggcctgaggagcagcagttgctggtggctaatggtgtaacctgagatggccctctggtagacacaggatagataactctttggatagcatgtctttttttctgttaattagttgtgtactctggcctctgtcatatcttcacaatggtgctcatttcatgggggtattatccattcagtcatcgtaggtgatttgaaggtcttgatttgttttagaatgatgcacatttcatgtattccagtttgtttattacttatttggggttgcatcagaaatgtctggagaataattctttgattatgactgttttttaaactaggaaaattggacattaagcatcacaaatgatattaaaaattggctagttgaatctattgggattttctacaagtattctgcctttgcagaaacagatttggtgaatttgaatctcaatttgagtaatctgatcgttctttctagctaatggaaaatgattttacttagcaatgttatcttggtgtgttaagagttaggtttaacataaaggttattttctcctgatatagatcacataacagaatgcaccagtcatcagctattcagttggtaagcttccaggaaaaaggacaggcagaaagagtttgagacctgaatagctcccagatttcagtcttttcctgtttttgttaactttgggttaaaaaaaaaaaaagtctgattggttttaattgaaggaaagatttgtactacagttcttttgttgtaaagagttgtgttgttcttttcccccaaagtggtttcagcaatatttaaggagatgtaagagctttacaaaaagacacttgatacttgttttcaaaccagtatacaagataagcttccaggctgcatagaaggaggagagggaaaatgttttgtaagaaaccaatcaagataaaggacagtgaagtaatccgtaccttgtgttttgttttgatttaataacataacaaataaccaacccttccctgaaaacctcacatgcatacatacacatatatacacacacaaagagagttaatcaactgaaagtgtttccttcatttctgatatagaattgcaattttaacacacataaaggataaacttttagaaacttatcttacaaagtgtattttataaaattaaagaaaataaaattaagaatgttctcaatcaaaaaaaaaaaaaaa\"\n\t\t\t\t.toUpperCase());\n\t\tthis.builderForward.setGeneSymbol(\"PLP1\");\n\t\tthis.infoForward = builderForward.build();\n\t\t// RefSeq NM_001128834.1\n\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', refDict.contigID.get(\"X\"), 103041655,\n\t\t\t\tPositionType.ONE_BASED), \"GGTGATC\", \"A\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(AnnotationLocation.INVALID_RANK, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.453_453+6delinsA\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.=\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.NON_FS_SUBSTITUTION, VariantType.SPLICE_DONOR),\n\t\t\t\tannotation1.effects);\n\t}", "@Test(timeout = 4000)\n public void test027() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-1L));\n boolean boolean0 = range0.intersects(range1);\n assertFalse(boolean0);\n assertFalse(range1.isEmpty());\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals((-81L), long0);\n }", "@Test\n public void redirectInfinite303And307() throws Exception {\n final Map<String, Class<? extends Servlet>> servlets = new HashMap<String, Class<? extends Servlet>>();\n servlets.put(RedirectServlet307.URL, RedirectServlet307.class);\n servlets.put(RedirectServlet303.URL, RedirectServlet303.class);\n startWebServer(\"./\", new String[0], servlets);\n\n final WebClient client = getWebClient();\n\n try {\n client.getPage(\"http://localhost:\" + PORT + RedirectServlet307.URL);\n }\n catch (final Exception e) {\n assertTrue(e.getMessage(), e.getMessage().contains(\"Too much redirect\"));\n }\n }", "@Test\n\t\tpublic void applyRecusivelyHyp() {\n\t\t\tassertSuccess(\" ;H; ;S; s⊆ℤ ;; r∈s ↔ s |- ⊥\",\n\t\t\t\t\trm(\"\", ri(\"\", ri(\"\", rm(\"2.1\", empty)))));\n\t\t}", "boolean scavengeSome()\r\n/* 472: */ {\r\n/* 473:505 */ Recycler.WeakOrderQueue cursor = this.cursor;\r\n/* 474: */ Recycler.WeakOrderQueue prev;\r\n/* 475:506 */ if (cursor == null)\r\n/* 476: */ {\r\n/* 477:507 */ Recycler.WeakOrderQueue prev = null;\r\n/* 478:508 */ cursor = this.head;\r\n/* 479:509 */ if (cursor == null) {\r\n/* 480:510 */ return false;\r\n/* 481: */ }\r\n/* 482: */ }\r\n/* 483: */ else\r\n/* 484: */ {\r\n/* 485:513 */ prev = this.prev;\r\n/* 486: */ }\r\n/* 487:516 */ boolean success = false;\r\n/* 488: */ do\r\n/* 489: */ {\r\n/* 490:518 */ if (cursor.transfer(this))\r\n/* 491: */ {\r\n/* 492:519 */ success = true;\r\n/* 493:520 */ break;\r\n/* 494: */ }\r\n/* 495:522 */ Recycler.WeakOrderQueue next = Recycler.WeakOrderQueue.access$1800(cursor);\r\n/* 496:523 */ if (Recycler.WeakOrderQueue.access$1900(cursor).get() == null)\r\n/* 497: */ {\r\n/* 498:527 */ if (cursor.hasFinalData()) {\r\n/* 499:529 */ while (cursor.transfer(this)) {\r\n/* 500:530 */ success = true;\r\n/* 501: */ }\r\n/* 502: */ }\r\n/* 503:537 */ if (prev != null) {\r\n/* 504:538 */ Recycler.WeakOrderQueue.access$1700(prev, next);\r\n/* 505: */ }\r\n/* 506: */ }\r\n/* 507: */ else\r\n/* 508: */ {\r\n/* 509:541 */ prev = cursor;\r\n/* 510: */ }\r\n/* 511:544 */ cursor = next;\r\n/* 512:546 */ } while ((cursor != null) && (!success));\r\n/* 513:548 */ this.prev = prev;\r\n/* 514:549 */ this.cursor = cursor;\r\n/* 515:550 */ return success;\r\n/* 516: */ }", "private Proof faxm3Convert(Proof p) {\n Expression s = ((Quote) ((Equals) p.lastExpr()).firstArgument).incremented;\n Expression t = ((Quote) ((Equals) p.lastExpr()).secondArgument).incremented;\n return mpBack(faxm3Gen(s, t), p);\n }" ]
[ "0.5289027", "0.51296014", "0.51273024", "0.512576", "0.5099973", "0.5089592", "0.5069821", "0.5039787", "0.50277925", "0.5027225", "0.49976864", "0.49857867", "0.4942953", "0.49343488", "0.4896733", "0.4886282", "0.48817378", "0.48776528", "0.48744515", "0.48698547", "0.48667905", "0.4833922", "0.48305628", "0.48238605", "0.48203254", "0.48118103", "0.47936377", "0.47932795", "0.47920117", "0.47881767", "0.47671822", "0.47617477", "0.47485346", "0.47457963", "0.4723535", "0.4712532", "0.46950087", "0.46898746", "0.46771282", "0.46603528", "0.4631542", "0.46300372", "0.46285912", "0.46271083", "0.46143076", "0.46139514", "0.4612589", "0.4604734", "0.45955104", "0.45919806", "0.45896232", "0.45876595", "0.45800754", "0.4576886", "0.45768023", "0.4568516", "0.45677853", "0.45616966", "0.4558232", "0.4551899", "0.45437154", "0.45320216", "0.45286664", "0.4513921", "0.45113596", "0.45080787", "0.45077336", "0.44977227", "0.44948342", "0.4494", "0.44877437", "0.44842726", "0.44789487", "0.44761258", "0.44753632", "0.4464352", "0.44634995", "0.44558206", "0.44514424", "0.4445517", "0.44411668", "0.44334388", "0.4431828", "0.44310367", "0.44302487", "0.44301507", "0.44271675", "0.4422546", "0.44198394", "0.4418879", "0.44182593", "0.4414467", "0.44121712", "0.44085556", "0.4406743", "0.44034228", "0.44021773", "0.44012105", "0.4399008", "0.43977892", "0.43973383" ]
0.0
-1
/ 9 Inconsistent Forward, No Dupes Forward mapping bar > 02 is different than reverse mapping: 02 > wtf Inconsistent forward mapping bar > 02 vs bar > wtf / wtf > 03 Inconsistent reverse mapping 02 > wtf vs 03 > wtf / wtf > 03 01 > foo foo > 01 02 > wtf bar > 02 03 > wtf wtf > 03 FIX Remove reverse 02 > wtf. Run again and restore 02 > bar
@Test public void fsckMetricsInconsistentFwdNoDupes() throws Exception { storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, METRICS, "wtf".getBytes(MockBase.ASCII())); storage.addColumn(UID_TABLE, "wtf".getBytes(MockBase.ASCII()), ID_FAMILY, METRICS, new byte[] {0, 0, 3}); storage.addColumn(UID_TABLE, new byte[] {0, 0, 3}, NAME_FAMILY, METRICS, "wtf".getBytes(MockBase.ASCII())); storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(3L)); int errors = (Integer)fsck.invoke(null, client, UID_TABLE, false, false); assertEquals(3, errors); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeTwoStepForwardFromPositionCache(Key currentKey) {\n\n\t\t// Create a two square forward position\n\t\tKey newKey =createTwoStepForwardFromCurrentKey(currentKey);\n\n\t\t// Gets current values stored with key and adds the extra position\n\t\tSet<Key> currentKeyMapping = positionCache.get(currentKey);\n\n\t\t// Remove key if it exists\n\t\tif (currentKeyMapping.contains(newKey)) {\n\t\t\tcurrentKeyMapping.remove(newKey);\n\t\t}\n\n\t\tpositionCache.put(currentKey, currentKeyMapping);\n\t}", "@Override\n public boolean isReversible() {\n return true;\n }", "private void checkReverseMap() throws ApplicationException {\n if (reverseMap == null) {\n reverseMap = Data.makeReverseMap(networkIds);\n }\n }", "@Override\n public void backward() {\n }", "@Override\n\tpublic void preBacktrack() {\n\t\t\n\t}", "@Override\r\n\tpublic boolean reverseAccrualIt() {\n\t\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public void mo2476b() {\n Collections.reverse(mo2625k());\n }", "public void resetReversePoison() {\n\n Set<AS> prevAdvedTo = this.adjOutRib.get(this.asn * -1);\n\n if (prevAdvedTo != null) {\n for (AS pAS : prevAdvedTo) {\n pAS.withdrawPath(this, this.asn * -1);\n }\n }\n\n this.adjOutRib.remove(this.asn * -1);\n\n this.botSet = new HashSet<>();\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tprivate static <ModelElem extends EObject> ModelElem reverse(Object fortranElem, ModelElem modelElem, Map<Object,Object> mappings) {\r\n\t\t\r\n\t\tEClass modelElemClass = modelElem.eClass();\r\n\t\t\t\r\n\t\t//this is required so that we can conditionally add mappings\r\n\t\t//that succeeded at the end of the method when no recursive\r\n\t\t//call is required (this only occurs at leaves of metamodel tree)\r\n\t\tMap<Object, Object> mappingsToAdd = new IdentityHashMap<Object, Object>();\r\n\t\t\r\n\t\t//assume a successful mapping (required for looking up\r\n\t\t//mappings during recursive calls)\r\n\t\t//mapping will be removed later if it fails\r\n\t\tmappings.put(modelElem, fortranElem);\t\r\n\t\t\r\n\t\t\t\t\t\t\r\n\t\tfor (EStructuralFeature sf : modelElemClass.getEAllStructuralFeatures()) {\r\n\t\t\t\r\n\t\t\tMap<String, Object> keywordMap = Regex.getMappingFromAnnotation(sf);\r\n\t\t\t\r\n\t\t\t/////NEW MAPPING PARSER HERE\r\n\t\t\t\t\t\t\r\n\t\t\tEAnnotation ann = sf.getEAnnotation(\"http://www.earthsystemcog.org/projects/nuopc\");\r\n\t\t\tif (ann != null && ann.getDetails().get(\"mappingNew\") != null) {\r\n\t\t\t\tString mappingNew = ann.getDetails().get(\"mappingNew\");\r\n\t\t\t\t//if (mappingNew != null) {\r\n\t\t\t\tMapping mapping = parseMappingNew(mappingNew);\r\n\t\t\t\tObject fortranContextElem;\r\n\t\t\t\t\r\n\t\t\t\tif (mapping.getContext() != null) {\r\n\t\t\t\t\t//explicit context\r\n\t\t\t\t\tEObject contextElement = EcoreUtils.eGetSFValue(mapping.getContext(), modelElem, true, null);\r\n\t\t\t\t\tfortranContextElem = mappings.get(contextElement);\r\n\t\t\t\t\tif (fortranContextElem == null) {\r\n\t\t\t\t\t\tthrow new RuntimeException(\"No Fortran context for element: \" + contextElement);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tfortranContextElem = fortranElem; //implicit\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tImplicitContextMapping icMapping = mapping.getMapping();\r\n\t\t\t\ticMapping = replacePathExprWithValues(icMapping, modelElem, true);\r\n\t\t\t\t\r\n\t\t\t\tString methodName = icMapping.eClass().getName().toLowerCase();\r\n\t\t\t\t\r\n\t\t\t\t//find method that implements code query\r\n\t\t\t\tMethod method = findREMethod(methodName, fortranContextElem, icMapping);\r\n\t\t\t\tif (method == null) {\r\n\t\t\t\t\tSystem.out.println(\"Method not found: \" + methodName);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\tObject result = method.invoke(null, fortranContextElem, icMapping);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tif (method.getReturnType() == String.class ||\r\n\t\t\t\t\t\tmethod.getReturnType().isPrimitive()) {\r\n\t\t\t\t\t\tmodelElem.eSet(sf, result);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Token.class) {\r\n\t\t\t\t\t\tif (result != null) {\r\n\t\t\t\t\t\t\t//String constructor required because of IdentityHashMap\r\n\t\t\t\t\t\t\tString text = new String(((Token)result).getText());\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, text);\r\n\t\t\t\t\t\t\tmappingsToAdd.put(text, result);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t//what should we do here?\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Set.class ||\r\n\t\t\t\t\t\t\t method.getReturnType() == Map.class) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do we have a set of primitives?\r\n\t\t\t\t\t\tif (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEString())) {\r\n\t\t\t\t\t\t\tSet<String> resultSet;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<String>) ((Map) result).keySet();\r\n\t\t\t\t\t\t\t\t//TODO: ignoring PathExprs for now\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<String>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfor (String res : resultSet) {\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(res);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, res);\r\n\t\t\t\t\t\t\t\t\tbreak; //just take first one\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}\r\n\t\t\t\t\t\t//result is a set of objects - either IASTNodes or IFortranASTs\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSet<Object> resultSet = null;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = ((Map) result).keySet();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<Object>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor (Object newFortranElem : resultSet) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//set binding in model\r\n\t\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\t\tMap<PathExpr, String> bindings = ((Map<?, Map<PathExpr, String>>) result).get(newFortranElem);\r\n\t\t\t\t\t\t\t\t\tfor (Entry<PathExpr, String> binding : bindings.entrySet()) {\r\n\t\t\t\t\t\t\t\t\t\tboolean featureSet = EcoreUtils.eSetSFValue(binding.getKey(), newModelElem, binding.getValue());\r\n\t\t\t\t\t\t\t\t\t\tif (!featureSet) {\r\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Feature not set: \" + binding.getKey());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// set up parent relationship for references (may be removed later)\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//recursive call\r\n\t\t\t\t\t\t\t\tEObject newModelElemRet = reverse(newFortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// if NULL returned, then mapping failed, so remove element from parent\r\n\t\t\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t//TODO: consider replacing with previous value?\r\n\t\t\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (!sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tbreak; // take first one that is not null\r\n\t\t\t\t\t\t\t\t}\t\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\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} // end check for primitives vs. objects in results\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\t}\t\t\t\t\t\t\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\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////END OF NEW MAPPING PARSER\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\telse if (keywordMap != null && keywordMap.size() > 0) {\t\r\n\t\t\t\t\r\n\t\t\t\tString methodName = Regex.getMappingTypeFromAnnotation(sf);\r\n\t\t\t\t\r\n\t\t\t\t//populate metavariables\t\t\t\t\t\t\r\n\t\t\t\tfor (Entry<String, Object> entry : keywordMap.entrySet()) {\r\n\t\t\t\t\t//TODO: should we handle different metavariable types here?\r\n\t\t\t\t\t// or just strings?\r\n\t\t\t\t\tif (!entry.getKey().equals(\"_context\") && entry.getValue() instanceof String) {\r\n\t\t\t\t\t\tString val = (String) entry.getValue();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tMatcher match = CodeQuery.P_METAVAR.matcher(val);\r\n\t\t\t\t\t\twhile (match.find()) {\r\n\t\t\t\t\t\t\t//already at parent, so remove one leading ../\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\tString metavar = match.group().substring(1);\r\n\t\t\t\t\t\t\tif (metavar.startsWith(\"../\")) { \r\n\t\t\t\t\t\t\t\tmetavar = metavar.substring(3);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//TODO: decide what to do about NULL_VALUE below\r\n\t\t\t\t\t\t\t\tString replaceVal = EcoreUtils.eGetSFValue(metavar, modelElem, null);\r\n\t\t\t\t\t\t\t\tif (replaceVal != null) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Replacing metavariable: \" + match.group() + \" with val: \" + replaceVal);\r\n\t\t\t\t\t\t\t\t\tentry.setValue(val.replaceAll(match.group(), replaceVal));\r\n\t\t\t\t\t\t\t\t}\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}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tObject fortranContextElem;\r\n\t\t\t\t\r\n\t\t\t\tif (keywordMap.containsKey(\"_context\")) {\r\n\t\t\t\t\t//explicit context provided\r\n\t\t\t\t\tString contextPath = (String) keywordMap.get(\"_context\");\r\n\t\t\t\t\tif (!contextPath.startsWith(\"#..\")) {\r\n\t\t\t\t\t\t//error\r\n\t\t\t\t\t\tSystem.out.println(\"Explicit context path must contain parent node\");\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (contextPath.startsWith(\"#../\")) {\r\n\t\t\t\t\t\tcontextPath = contextPath.substring(4);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (contextPath.startsWith(\"#..\")) {\r\n\t\t\t\t\t\tcontextPath = contextPath.substring(3);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tEObject explicitContextElem;\r\n\t\t\t\t\tif (contextPath.equals(\"\")) {\r\n\t\t\t\t\t\texplicitContextElem = modelElem;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\texplicitContextElem = EcoreUtils.eGetSFValue(contextPath, modelElem, null);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tfortranContextElem = mappings.get(explicitContextElem);\r\n\t\t\t\t\tif (fortranContextElem == null) {\r\n\t\t\t\t\t\tSystem.out.println(\"MAPPED fortran element not found: \" + explicitContextElem);\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t//implicit context\r\n\t\t\t\t\tfortranContextElem = fortranElem;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//find method that implements code query\r\n\t\t\t\tMethod method = null;\r\n\t\t\t\tfor (Method m : CodeQuery.class.getMethods()) {\r\n\t\t\t\t\tif (m.getName().equalsIgnoreCase(methodName)) {\r\n\t\t\t\t\t\tClass contextClass = m.getParameterTypes()[0];\r\n\t\t\t\t\t\tClass paramClass = m.getParameterTypes()[1];\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (contextClass.isInstance(fortranContextElem) &&\r\n\t\t\t\t\t\t\tparamClass.isInstance(keywordMap)) {\r\n\t\t\t\t\t\t\tmethod = m;\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}\r\n\t\t\t\t\r\n\t\t\t\tif (method == null) {\r\n\t\t\t\t\tSystem.out.println(\"Method not found: \" + methodName);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t//System.out.println(\"Calling method: \" + methodName + \" with first param: \" + fortranElem.getClass());\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tObject result = method.invoke(null, fortranContextElem, keywordMap);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tif (method.getReturnType() == String.class ||\r\n\t\t\t\t\t\tmethod.getReturnType().isPrimitive()) {\r\n\t\t\t\t\t\tmodelElem.eSet(sf, result);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Token.class) {\r\n\t\t\t\t\t\tif (result != null) {\r\n\t\t\t\t\t\t\t//String constructor required because of IdentityHashMap\r\n\t\t\t\t\t\t\tString text = new String(((Token)result).getText());\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, text);\r\n\t\t\t\t\t\t\tmappingsToAdd.put(text, result);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t//what should we do here?\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (method.getReturnType() == Set.class ||\r\n\t\t\t\t\t\t\t method.getReturnType() == Map.class) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t//do we have a set of primitives?\r\n\t\t\t\t\t\tif (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEString())) {\r\n\t\t\t\t\t\t\tSet<String> resultSet = (Set<String>) result;\r\n\t\t\t\t\t\t\tfor (String res : resultSet) {\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(res);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, res);\r\n\t\t\t\t\t\t\t\t\tbreak; //just take first one\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}\r\n\t\t\t\t\t\t//result is a set of objects - either IASTNodes or IFortranASTs\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSet<Object> resultSet = null;\r\n\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\tresultSet = ((Map) result).keySet();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tresultSet = (Set<Object>) result;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tfor (Object newFortranElem : resultSet) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\t\t\tEObject newModelElemRet = null;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//TODO: work on precedence between metavariables and explicit sub-mappings\r\n\t\t\t\t\t\t\t\t//populate attributes based on metavariables\r\n\t\t\t\t\t\t\t\tif (result instanceof Map) {\r\n\t\t\t\t\t\t\t\t\tMap<String,String> metavariableMap = (Map<String,String>) ((Map) result).get(newFortranElem);\r\n\t\t\t\t\t\t\t\t\tfor (Entry<String,String> mve : metavariableMap.entrySet()) {\r\n\t\t\t\t\t\t\t\t\t\tString attribName = mve.getKey().substring(1);\r\n\t\t\t\t\t\t\t\t\t\tEStructuralFeature attribSF = newModelElem.eClass().getEStructuralFeature(attribName);\r\n\t\t\t\t\t\t\t\t\t\tif (attribSF != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Metavariable - setting feature: \" + attribName + \" to \" + mve.getValue());\r\n\t\t\t\t\t\t\t\t\t\t\tnewModelElem.eSet(attribSF, mve.getValue());\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t\t//System.out.println(\"Metavariable - feature not found: \" + attribName);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// set up parent relationship for references (may be removed later)\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//recursive call\r\n\t\t\t\t\t\t\t\tnewModelElemRet = reverse(newFortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// if NULL returned, then remove model element from parent\r\n\t\t\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\t//consider replacing with previous value\r\n\t\t\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse if (!sf.isMany()) {\r\n\t\t\t\t\t\t\t\t\tbreak; // take first one that is not null\r\n\t\t\t\t\t\t\t\t}\t\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\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} // end check for primitives vs. objects in results\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t} catch (InvocationTargetException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t} // end if that checks for query string\r\n\t\t\telse {\r\n\t\t\t\t//this means there is no mapping defined - if it is an EReference, then we create \r\n\t\t\t\t//the target and its children determine whether the mapping holds\r\n\t\t\t\t//in other words, this is just an extra layer of abstraction defined by the user\r\n\t\t\t\t\r\n\t\t\t\tif (sf instanceof EReference) {\r\n\t\t\t\t\tif (((EReference) sf).isContainment()) {\r\n\t\t\t\t\t\tEObject newModelElem = NUOPCFactory.eINSTANCE.create((EClass) sf.getEType());\r\n\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\tel.add(newModelElem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tmodelElem.eSet(sf, newModelElem);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tEObject newModelElemRet = reverse(fortranElem, newModelElem, mappings);\r\n\t\t\t\t\t\tif (newModelElemRet == null) {\r\n\t\t\t\t\t\t\tif (sf.isMany()) {\r\n\t\t\t\t\t\t\t\tEList el = (EList) modelElem.eGet(sf);\r\n\t\t\t\t\t\t\t\tel.remove(newModelElem);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t//consider replacing with previous value\r\n\t\t\t\t\t\t\t\tmodelElem.eUnset(sf);\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}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//at this point we have set the value of the structural feature\r\n\t\t\t//if is essential, but not present or false, the parent is no good\r\n\t\t\t\r\n\t\t\tif (Regex.getIsEssentialFromAnnotation(sf)) {\t\r\n\t\t\t\tboolean fail = false;\r\n\t\t\t\t\r\n\t\t\t\tif (modelElem.eGet(sf) == null) {\t\t\t\t\t\r\n\t\t\t\t\tfail = true;\r\n\t\t\t\t}\r\n\t\t\t\telse if (sf.getEType().equals(EcoreFactory.eINSTANCE.getEcorePackage().getEBoolean()) &&\r\n\t\t\t\t\t\t! (Boolean) modelElem.eGet(sf)) {\r\n\t\t\t\t\tfail = true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (fail) {\r\n\t\t\t\t\tmappings.remove(modelElem);\r\n\t\t\t\t\t//an essential feature failed, so no need to process \r\n\t\t\t\t\t//any more structural features\r\n\t\t\t\t\treturn null;\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\t\r\n\t\t} // end for structural features\r\n\t\t\r\n\t\tmappings.putAll(mappingsToAdd);\r\n\r\n\t\treturn modelElem;\r\n\t}", "@Override\n\tpublic boolean reverseAccrualIt() {\n\t\treturn false;\n\t}", "protected AssociationList reverseAssoc(LexBIGService lbsvc, LexBIGServiceConvenienceMethods lbscm, String scheme,\r\n CodingSchemeVersionOrTag csvt, Association assoc, AssociationList addTo,\r\n Map<String, EntityDescription> codeToEntityDescriptionMap) throws LBException {\r\n\r\n ConceptReference acRef = assoc.getAssociationReference();\r\n AssociatedConcept acFromRef = new AssociatedConcept();\r\n acFromRef.setCodingScheme(acRef.getCodingScheme());\r\n acFromRef.setConceptCode(acRef.getConceptCode());\r\n AssociationList acSources = new AssociationList();\r\n acFromRef.setIsNavigable(Boolean.TRUE);\r\n acFromRef.setSourceOf(acSources);\r\n\r\n // Use cached description if available (should be cached\r\n // for all but original root) ...\r\n if (codeToEntityDescriptionMap.containsKey(acRef.getConceptCode()))\r\n acFromRef.setEntityDescription(codeToEntityDescriptionMap.get(acRef.getConceptCode()));\r\n // Otherwise retrieve on demand ...\r\n else\r\n acFromRef.setEntityDescription(Constructors.createEntityDescription(getCodeDescription(lbsvc, scheme, csvt,\r\n acRef.getConceptCode())));\r\n\r\n AssociatedConceptList acl = assoc.getAssociatedConcepts();\r\n for (AssociatedConcept ac : acl.getAssociatedConcept()) {\r\n // Create reverse association (same non-directional name)\r\n Association rAssoc = new Association();\r\n rAssoc.setAssociationName(assoc.getAssociationName());\r\n\r\n // On reverse, old associated concept is new reference point.\r\n ConceptReference ref = new ConceptReference();\r\n ref.setCodingScheme(ac.getCodingScheme());\r\n ref.setConceptCode(ac.getConceptCode());\r\n rAssoc.setAssociationReference(ref);\r\n\r\n // And old reference is new associated concept.\r\n AssociatedConceptList rAcl = new AssociatedConceptList();\r\n rAcl.addAssociatedConcept(acFromRef);\r\n rAssoc.setAssociatedConcepts(rAcl);\r\n\r\n // Set reverse directional name, if available.\r\n String dirName = assoc.getDirectionalName();\r\n if (dirName != null)\r\n try {\r\n rAssoc.setDirectionalName(lbscm.isForwardName(scheme, csvt, dirName) ? lbscm\r\n .getAssociationReverseName(assoc.getAssociationName(), scheme, csvt) : lbscm\r\n .getAssociationReverseName(assoc.getAssociationName(), scheme, csvt));\r\n } catch (LBException e) {\r\n }\r\n\r\n // Save code desc for future reference when setting up\r\n // concept references in recursive calls ...\r\n codeToEntityDescriptionMap.put(ac.getConceptCode(), ac.getEntityDescription());\r\n\r\n AssociationList sourceOf = ac.getSourceOf();\r\n if (sourceOf != null)\r\n for (Association sourceAssoc : sourceOf.getAssociation()) {\r\n AssociationList pos = reverseAssoc(lbsvc, lbscm, scheme, csvt, sourceAssoc, addTo,\r\n codeToEntityDescriptionMap);\r\n pos.addAssociation(rAssoc);\r\n }\r\n else\r\n addTo.addAssociation(rAssoc);\r\n }\r\n return acSources;\r\n }", "@Override\n\tpublic boolean reverseCorrectIt() {\n\t\treturn false;\n\t}", "void reverseDirection();", "@Test\n\tpublic void testFwdInfReasonerRewrites_Bug717() throws Exception {\n\t\timportProofSerializationProofs();\n\n\t\tfinal IPRRoot prFile = getProofRoot(\"exF\");\n\t\tfinal IPRProof proof = prFile.getProof(\"oldExF\");\n\n\t\t// a IllegalStateException is thrown when the bug is present:\n\t\tfinal IProofTree proofTree = proof.getProofTree(null);\n\n\t\t// ensure that the proof rule is deserialized:\n\t\tfinal IProofTreeNode root = proofTree.getRoot();\n\t\tassertFalse(root.isOpen());\n\t\tfinal IProofRule rule = root.getRule();\n\t\tassertEquals(SequentProver.PLUGIN_ID + \".exF\", rule.generatedBy().getReasonerID());\n\t\tassertEquals(3, rule.getAntecedents()[0].getHypActions().size());\n\t}", "@Test\n public void restoreIpAddressesBacktrack2Test() {\n String s1 = \"25525511135\";\n Set<String> expected1 = new HashSet<>();\n expected1.add(\"255.255.11.135\");\n expected1.add(\"255.255.111.35\");\n Set<String> actual1 = new HashSet<>(restoreIpAddressesBacktrack2(s1));\n assertEquals(expected1.size(), actual1.size());\n for (String s : expected1) {\n assertTrue(actual1.contains(s));\n }\n /**\n * Example 2:\n * Input: \"010010\"\n * Output: [\"0.10.0.10\",\"0.100.1.0\"]\n */\n String s2 = \"010010\";\n Set<String> expected2 = new HashSet<>();\n expected2.add(\"0.10.0.10\");\n expected2.add(\"0.100.1.0\");\n Set<String> actual2 = new HashSet<>(restoreIpAddressesBacktrack2(s2));\n assertEquals(expected2.size(), actual2.size());\n for (String s : expected2) {\n assertTrue(actual2.contains(s));\n }\n }", "@Override\n public void retrack() {\n }", "@Test\n public void restoreIpAddressesBacktrack1Test() {\n String s1 = \"25525511135\";\n Set<String> expected1 = new HashSet<>();\n expected1.add(\"255.255.11.135\");\n expected1.add(\"255.255.111.35\");\n Set<String> actual1 = new HashSet<>(restoreIpAddressesBacktrack1(s1));\n assertEquals(expected1.size(), actual1.size());\n for (String s : expected1) {\n assertTrue(actual1.contains(s));\n }\n /**\n * Example 2:\n * Input: \"010010\"\n * Output: [\"0.10.0.10\",\"0.100.1.0\"]\n */\n String s2 = \"010010\";\n Set<String> expected2 = new HashSet<>();\n expected2.add(\"0.10.0.10\");\n expected2.add(\"0.100.1.0\");\n Set<String> actual2 = new HashSet<>(restoreIpAddressesBacktrack1(s2));\n assertEquals(expected2.size(), actual2.size());\n for (String s : expected2) {\n assertTrue(actual2.contains(s));\n }\n }", "public void reverse() {\n/* 298 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public Reversal() {\n\t\tsuper();\n\t}", "void undo() {\n Move rec = _history.get(_history.size() - 1);\n int to = rec.fromIndex();\n _directions.get(to).remove(_directions.get(to).size() - 1);\n if (rec.isJump()) {\n Move middle = Move.move(rec.col1(), rec.row1(),\n rec.col0(), rec.row0(), null);\n rec = rec.jumpTail();\n while (rec != null) {\n middle = Move.move(rec.col1(), rec.row1(),\n rec.col0(), rec.row0(), middle);\n rec = rec.jumpTail();\n }\n while (middle != null) {\n set(middle.fromIndex(), EMPTY);\n set(middle.toIndex(), _whoseMove.opposite());\n set(middle.jumpedCol(), middle.jumpedRow(), _whoseMove);\n middle = middle.jumpTail();\n }\n\n } else {\n int from = rec.toIndex();\n set(to, _whoseMove.opposite());\n set(from, EMPTY);\n\n _directions.get(from).remove(_directions.get(from).size() - 1);\n }\n\n _whoseMove = _whoseMove.opposite();\n _history.remove(_history.size() - 1);\n setChanged();\n notifyObservers();\n }", "private void f(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 1;\n r2 = F;\n r7.y = r8;\n r0 = r7.m;\n r0 = r0.entrySet();\n r3 = r0.iterator();\n L_0x000f:\n r0 = r3.hasNext();\n if (r0 == 0) goto L_0x004a;\n L_0x0015:\n r0 = r3.next();\n r0 = (java.util.Map.Entry) r0;\n r1 = r0.getValue();\n r1 = (java.util.List) r1;\n r4 = r1.size();\t Catch:{ RuntimeException -> 0x0077 }\n if (r4 != r6) goto L_0x0043;\n L_0x0027:\n r4 = J;\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 28;\n r4 = r4[r5];\t Catch:{ RuntimeException -> 0x0079 }\n r5 = 0;\n r5 = r1.get(r5);\t Catch:{ RuntimeException -> 0x0079 }\n r4 = r4.equals(r5);\t Catch:{ RuntimeException -> 0x0079 }\n if (r4 == 0) goto L_0x0043;\n L_0x0038:\n r4 = r7.e;\t Catch:{ RuntimeException -> 0x007b }\n r0 = r0.getKey();\t Catch:{ RuntimeException -> 0x007b }\n r4.add(r0);\t Catch:{ RuntimeException -> 0x007b }\n if (r2 == 0) goto L_0x0048;\n L_0x0043:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007b }\n r0.addAll(r1);\t Catch:{ RuntimeException -> 0x007b }\n L_0x0048:\n if (r2 == 0) goto L_0x000f;\n L_0x004a:\n r0 = r7.x;\t Catch:{ RuntimeException -> 0x007d }\n r1 = J;\t Catch:{ RuntimeException -> 0x007d }\n r2 = 29;\n r1 = r1[r2];\t Catch:{ RuntimeException -> 0x007d }\n r0 = r0.remove(r1);\t Catch:{ RuntimeException -> 0x007d }\n if (r0 == 0) goto L_0x0065;\n L_0x0058:\n r0 = B;\t Catch:{ RuntimeException -> 0x007d }\n r1 = java.util.logging.Level.WARNING;\t Catch:{ RuntimeException -> 0x007d }\n r2 = J;\t Catch:{ RuntimeException -> 0x007d }\n r3 = 30;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x007d }\n r0.log(r1, r2);\t Catch:{ RuntimeException -> 0x007d }\n L_0x0065:\n r1 = r7.G;\n r0 = r7.m;\n r2 = java.lang.Integer.valueOf(r6);\n r0 = r0.get(r2);\n r0 = (java.util.Collection) r0;\n r1.addAll(r0);\n return;\n L_0x0077:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x0079 }\n L_0x0079:\n r0 = move-exception;\n throw r0;\t Catch:{ RuntimeException -> 0x007b }\n L_0x007b:\n r0 = move-exception;\n throw r0;\n L_0x007d:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.f(java.lang.String):void\");\n }", "void FlipBook()\r\n\t\t{\r\n\t\t\t Collections.reverse(this);\r\n\t\t}", "void remap()\n\t\t{\n\t\t\tif(nextMap == null)\n\t\t\t\treturn;\n\t\t\tnextMap = newNodeMap(nextMap);\n\t\t\tfor(Node<T> node : nextMap.values())\n\t\t\t\tnode.remap();\n\t\t}", "private void removeNoMoreExistingOriginalEdges() {\n for (MirrorEdge mirrorEdge : directEdgeMap.values()) {\n if (!originalGraph.has(mirrorEdge.original)) {\n for (Edge segment : mirrorEdge.segments) {\n mirrorGraph.forcedRemove(segment);\n reverseEdgeMap.remove(segment);\n }\n for (Node bend : mirrorEdge.bends) {\n mirrorGraph.forcedRemove(bend);\n reverseEdgeMap.remove(bend);\n }\n directEdgeMap.remove(mirrorEdge.original);\n }\n }\n }", "public static ConnectionMap backtrack(final ConnectionMap map, int index) {\r\n\t\t// Returns null if first variable has no possible values\r\n\t\tif (map.domains.get(0).size()==0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// If the possible values for the index are null step back\r\n\t\tif (map.domains.get(index).size()==0) {\r\n\t\t\t//System.out.println(\"BACKTRACK!\");\r\n\t\t\tArrayList<Integer> newRow = new ArrayList<Integer>();\r\n\t\t\tfor (int k = 0; k < map.numColors; k++) {\r\n\t\t\t\tnewRow.add(k);\r\n\t\t\t}\r\n\t\t\tmap.domains.set(index, newRow);\r\n\t\t\tmap.domains.get(index-1).remove(0);\r\n\t\t\tBacktrackSearch.backtrack(map, index-1);\r\n\t\t}\r\n\t\t// Loops through the possible values for the index\r\n\t\tfor (int j=index; j>=0; j--) {\r\n\t\t\tif(map.connections[index][j]==1 && map.domains.get(index).size()>0) {\r\n\t\t\t\tArrayList<Integer> neighbor = map.domains.get(j);\r\n\t\t\t\tif (neighbor.size() != 0) {\r\n\t\t\t\t\tmap.domains.get(index).remove(neighbor.get(0));\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// If the possible values for the index are null step back\r\n\t\t\tif (map.domains.get(index).size()==0) {\r\n\t\t\t\t//System.out.println(\"BACKTRACK!\");\r\n\t\t\t\tArrayList<Integer> newRow = new ArrayList<Integer>();\r\n\t\t\t\tfor (int k = 0; k < map.numColors; k++) {\r\n\t\t\t\t\tnewRow.add(k);\r\n\t\t\t\t}\r\n\t\t\t\tmap.domains.set(index, newRow);\r\n\t\t\t\tmap.domains.get(index-1).remove(0);\r\n\t\t\t\tBacktrackSearch.backtrack(map, index-1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// If the index is not the last index step forward\r\n\t\tif (index < map.domains.size()-1) {\r\n\t\t\tBacktrackSearch.backtrack(map, index+1);\r\n\t\t}\r\n\t\t// Returns null if first variable has no possible values\r\n\t\tif (map.domains.get(0).size()==0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// Removes end of colors\r\n\t\tfor(int i = 0; i < map.domains.size(); i++) {\r\n\t\t\tfor(int j = 1; j < map.domains.get(i).size(); j++) {\r\n\t\t\t\tmap.domains.get(i).remove(j);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Returns map\r\n\t\treturn map;\t\r\n\t}", "public void backUp(){\n backSolenoid.set(DoubleSolenoid.Value.kForward);\n }", "public void filterToBidirectionalLinks() {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) getRTComponent().rc; if (myrc == null) return;\n\n // Get the visible links, extract the direction, create the reverse direction -- if that exists, add those records to keepers\n Iterator<String> it = myrc.graphedgeref_to_link.keySet().iterator(); Set<Bundle> to_keep = new HashSet<Bundle>();\n while (it.hasNext()) {\n String graph_edge_ref = it.next(); String line_ref = myrc.graphedgeref_to_link.get(graph_edge_ref);\n int fm_i = digraph.linkRefFm(graph_edge_ref);\n int to_i = digraph.linkRefTo(graph_edge_ref);\n String other_dir = digraph.getLinkRef(to_i,fm_i);\n if (myrc.graphedgeref_to_link.containsKey(other_dir)) { to_keep.addAll(myrc.link_counter_context.getBundles(line_ref)); }\n }\n\n // Add the no mapping set and push it to the RTParent\n to_keep.addAll(getRTComponent().getNoMappingSet()); getRTParent().push(getRTParent().getRootBundles().subset(to_keep));\n }", "void flipPath(int lastNode) {\n int myLastNode = lastNode;\n while (myLastNode != EMPTY_LABEL) {\n int parent = this.tLabels[myLastNode];\n\n // Add (parent, lastNode) to matching. We don't need to\n // explicitly remove any edges from the matching because:\n // * We know at this point that there is no i such that\n // sMatches[i] = lastNode.\n // * Although there might be some j such that tMatches[j] =\n // parent, that j must be sLabels[parent], and will change\n // tMatches[j] in the next time through this loop.\n this.sMatches[parent] = lastNode;\n this.tMatches[myLastNode] = parent;\n\n myLastNode = this.sLabels[parent];\n }\n }", "@Test\n public void shouldPredictByRotatingPreviousMoveInReverseDirection() {\n ReverseRotationStrategy strategy = new ReverseRotationStrategy();\n\n strategy.addHistory(Shape.ROCK, Shape.PAPER);\n assertTrue(Arrays.equals(strategy.getNextMoves(), Shape.ROCK.defeatedBy()));\n\n strategy.addHistory(Shape.ROCK, Shape.ROCK);\n assertTrue(Arrays.equals(strategy.getNextMoves(), Shape.SPOCK.defeatedBy()));\n }", "@Test\n\tpublic void testAbstractManualRewrites_Bug717() throws Exception {\n\t\timportProofSerializationProofs();\n\n\t\tfinal IPRRoot prFile = getProofRoot(\"partitionRewrite\");\n\t\tfinal IPRProof proof = prFile.getProof(\"oldPartitionRewrite\");\n\n\t\t// a IllegalStateException is thrown when the bug is present:\n\t\tfinal IProofTree proofTree = proof.getProofTree(null);\n\n\t\t// ensure that the proof rule is deserialized:\n\t\tfinal IProofTreeNode root = proofTree.getRoot();\n\t\tassertFalse(root.isOpen());\n\t\tfinal IProofRule rule = root.getRule();\n\t\tassertEquals(SequentProver.PLUGIN_ID + \".partitionRewrites\", rule.generatedBy().getReasonerID());\n\t\tassertEquals(3, rule.getAntecedents()[0].getHypActions().size());\n\t}", "private static boolean moveForwardish() {\n if (moveForwardStrict()) return true;\n Direction f = forward;\n forward = f.rotateLeft();\n if (moveForwardStrict()) return true;\n forward = f.rotateRight();\n if (moveForwardStrict()) return true;\n forward = f;\n return false;\n }", "void reverse();", "void reverse();", "@Override\n\tpublic void restoreState() {\n // Rather than copying the stored stuff back, just swap the pointers...\n int[] tmp1 = currentMatricesIndices;\n currentMatricesIndices = storedMatricesIndices;\n storedMatricesIndices = tmp1;\n\n int[] tmp2 = currentPartialsIndices;\n currentPartialsIndices = storedPartialsIndices;\n storedPartialsIndices = tmp2;\n\n\n }", "public void flipIndexes() {\n int temp = index1;\n index1 = index2;\n index2 = temp;\n }", "void reverseTurnOrder() {\n turnOrder *= -1;\n }", "@Override\r\n\tpublic void goForward() {\n\t\t\r\n\t}", "private void normalizeBackwards()\n {\n normalize();\n m_bufferOffset_ = m_buffer_.length();\n }", "public void computeTransitionsToFixDelta()\n {\n _entriesToProcess = new ArrayDeque<String>();\n \n _systemModelDelta.getKeys(_entriesToProcess);\n \n while(!_entriesToProcess.isEmpty())\n {\n processEntryDelta(_systemModelDelta.findAnyEntryDelta(_entriesToProcess.poll()));\n }\n }", "public static void main(String[] args) {\n String[] user0 = {\"/start\", \"/pink\", \"/register\", \"/orange\", \"/red\", \"a\"};\n String[] user1 = {\"/start\", \"/green\", \"/blue\", \"/pink\", \"/register\", \"/orange\", \"/one/two\"};\n String[] user2 = {\"a\", \"/one\", \"/two\"};\n String[] user3 = {\"/red\", \"/orange\", \"/yellow\", \"/green\", \"/blue\", \"/purple\", \"/white\", \"/amber\", \"/HotRodPink\", \"/BritishRacingGreen\"};\n String[] user4 = {\"/red\", \"/orange\", \"/amber\", \"/green\", \"/blue\", \"/purple\", \"/white\", \"/lavender\", \"/HotRodPink\", \"/BritishRacingGreen\"};\n String[] user5 = {\"a\"};\n\n// out.println(rawr(user0, user1));\n// out.println(rawr(user1, user2));\n// out.println(rawr(user2, user0));\n// out.println(rawr(user5, user2));\n out.println(rawr(user3, user4));\n// out.println(rawr(user4, user3));\n\n P1 c=new P1();\n c.findContiguousHistory(user0, user1);\n c.findContiguousHistory(user1, user2);\n c.findContiguousHistory(user2, user0);\n c.findContiguousHistory(user5, user2);\n c.findContiguousHistory(user3, user4);\n\n // below scenaro is tricky because amber match later and user3 string. We have to come back again.\n // String[] user4 = {\"/red\", \"/orange\", \"/amber\", \"/green\", \"/blue\", \"/purple\", \"/white\", \"/lavender\", \"/HotRodPink\", \"/BritishRacingGreen\"};\n // String[] user3 = {\"/red\", \"/orange\", \"/yellow\", \"/green\", \"/blue\", \"/purple\", \"/white\", \"/amber\", \"/HotRodPink\", \"/BritishRacingGreen\"};\n\n c.findContiguousHistory(user4, user3);\n }", "public void maybeUpdateNavigationHistory() {\n WebContents webContents = mClient.getWebContents();\n if (mClearAllForwardHistoryRequired && webContents != null) {\n webContents.getNavigationController().pruneForwardEntries();\n } else if (mShouldClearRedirectHistoryForTabClobbering && webContents != null) {\n // http://crbug/479056: Even if we clobber the current tab, we want to remove\n // redirect history to be consistent.\n NavigationController navigationController = webContents.getNavigationController();\n int indexBeforeRedirection =\n mClient.getOrCreateRedirectHandler()\n .getLastCommittedEntryIndexBeforeStartingNavigation();\n int lastCommittedEntryIndex = getLastCommittedEntryIndex();\n for (int i = lastCommittedEntryIndex - 1; i > indexBeforeRedirection; --i) {\n boolean ret = navigationController.removeEntryAtIndex(i);\n assert ret;\n }\n }\n mClearAllForwardHistoryRequired = false;\n mShouldClearRedirectHistoryForTabClobbering = false;\n }", "private void ssMergeBackward(int r19, int[] r20, int r21, int r22, int r23, int r24, int r25) {\n /*\n r18 = this;\n r0 = r18;\n r4 = r0.SA;\n r17 = r24 - r23;\n r5 = r21 + r17;\n r17 = r24 - r23;\n r0 = r20;\n r1 = r21;\n r2 = r23;\n r3 = r17;\n ssBlockSwap(r0, r1, r4, r2, r3);\n r16 = 0;\n r17 = r5 + -1;\n r17 = r20[r17];\n if (r17 >= 0) goto L_0x0071;\n L_0x001d:\n r16 = r16 | 1;\n r17 = r5 + -1;\n r17 = r20[r17];\n r17 = r17 ^ -1;\n r12 = r19 + r17;\n L_0x0027:\n r17 = r23 + -1;\n r17 = r4[r17];\n if (r17 >= 0) goto L_0x0078;\n L_0x002d:\n r16 = r16 | 2;\n r17 = r23 + -1;\n r17 = r4[r17];\n r17 = r17 ^ -1;\n r13 = r19 + r17;\n L_0x0037:\n r17 = r24 + -1;\n r15 = r4[r17];\n r6 = r24 + -1;\n r8 = r5 + -1;\n r10 = r23 + -1;\n L_0x0041:\n r0 = r18;\n r1 = r25;\n r14 = r0.ssCompare(r12, r13, r1);\n if (r14 <= 0) goto L_0x009b;\n L_0x004b:\n r17 = r16 & 1;\n if (r17 == 0) goto L_0x0063;\n L_0x004f:\n r7 = r6 + -1;\n r17 = r20[r8];\n r4[r6] = r17;\n r9 = r8 + -1;\n r17 = r4[r7];\n r20[r8] = r17;\n r17 = r20[r9];\n if (r17 < 0) goto L_0x01a9;\n L_0x005f:\n r16 = r16 ^ 1;\n r8 = r9;\n r6 = r7;\n L_0x0063:\n r7 = r6 + -1;\n r17 = r20[r8];\n r4[r6] = r17;\n r0 = r21;\n if (r8 > r0) goto L_0x007f;\n L_0x006d:\n r20[r8] = r15;\n r6 = r7;\n L_0x0070:\n return;\n L_0x0071:\n r17 = r5 + -1;\n r17 = r20[r17];\n r12 = r19 + r17;\n goto L_0x0027;\n L_0x0078:\n r17 = r23 + -1;\n r17 = r4[r17];\n r13 = r19 + r17;\n goto L_0x0037;\n L_0x007f:\n r9 = r8 + -1;\n r17 = r4[r7];\n r20[r8] = r17;\n r17 = r20[r9];\n if (r17 >= 0) goto L_0x0094;\n L_0x0089:\n r16 = r16 | 1;\n r17 = r20[r9];\n r17 = r17 ^ -1;\n r12 = r19 + r17;\n r8 = r9;\n r6 = r7;\n goto L_0x0041;\n L_0x0094:\n r17 = r20[r9];\n r12 = r19 + r17;\n r8 = r9;\n r6 = r7;\n goto L_0x0041;\n L_0x009b:\n if (r14 >= 0) goto L_0x00fb;\n L_0x009d:\n r17 = r16 & 2;\n if (r17 == 0) goto L_0x00b5;\n L_0x00a1:\n r7 = r6 + -1;\n r17 = r4[r10];\n r4[r6] = r17;\n r11 = r10 + -1;\n r17 = r4[r7];\n r4[r10] = r17;\n r17 = r4[r11];\n if (r17 < 0) goto L_0x01a5;\n L_0x00b1:\n r16 = r16 ^ 2;\n r10 = r11;\n r6 = r7;\n L_0x00b5:\n r7 = r6 + -1;\n r17 = r4[r10];\n r4[r6] = r17;\n r11 = r10 + -1;\n r17 = r4[r7];\n r4[r10] = r17;\n r0 = r22;\n if (r11 >= r0) goto L_0x00e3;\n L_0x00c5:\n r9 = r8;\n L_0x00c6:\n r0 = r21;\n if (r0 >= r9) goto L_0x00d9;\n L_0x00ca:\n r6 = r7 + -1;\n r17 = r20[r9];\n r4[r7] = r17;\n r8 = r9 + -1;\n r17 = r4[r6];\n r20[r9] = r17;\n r9 = r8;\n r7 = r6;\n goto L_0x00c6;\n L_0x00d9:\n r17 = r20[r9];\n r4[r7] = r17;\n r20[r9] = r15;\n r10 = r11;\n r8 = r9;\n r6 = r7;\n goto L_0x0070;\n L_0x00e3:\n r17 = r4[r11];\n if (r17 >= 0) goto L_0x00f3;\n L_0x00e7:\n r16 = r16 | 2;\n r17 = r4[r11];\n r17 = r17 ^ -1;\n r13 = r19 + r17;\n r10 = r11;\n r6 = r7;\n goto L_0x0041;\n L_0x00f3:\n r17 = r4[r11];\n r13 = r19 + r17;\n r10 = r11;\n r6 = r7;\n goto L_0x0041;\n L_0x00fb:\n r17 = r16 & 1;\n if (r17 == 0) goto L_0x0113;\n L_0x00ff:\n r7 = r6 + -1;\n r17 = r20[r8];\n r4[r6] = r17;\n r9 = r8 + -1;\n r17 = r4[r7];\n r20[r8] = r17;\n r17 = r20[r9];\n if (r17 < 0) goto L_0x01a1;\n L_0x010f:\n r16 = r16 ^ 1;\n r8 = r9;\n r6 = r7;\n L_0x0113:\n r7 = r6 + -1;\n r17 = r20[r8];\n r17 = r17 ^ -1;\n r4[r6] = r17;\n r0 = r21;\n if (r8 > r0) goto L_0x0124;\n L_0x011f:\n r20[r8] = r15;\n r6 = r7;\n goto L_0x0070;\n L_0x0124:\n r9 = r8 + -1;\n r17 = r4[r7];\n r20[r8] = r17;\n r17 = r16 & 2;\n if (r17 == 0) goto L_0x019f;\n L_0x012e:\n r6 = r7;\n L_0x012f:\n r7 = r6 + -1;\n r17 = r4[r10];\n r4[r6] = r17;\n r11 = r10 + -1;\n r17 = r4[r7];\n r4[r10] = r17;\n r17 = r4[r11];\n if (r17 < 0) goto L_0x019c;\n L_0x013f:\n r16 = r16 ^ 2;\n r10 = r11;\n r6 = r7;\n L_0x0143:\n r7 = r6 + -1;\n r17 = r4[r10];\n r4[r6] = r17;\n r11 = r10 + -1;\n r17 = r4[r7];\n r4[r10] = r17;\n r0 = r22;\n if (r11 >= r0) goto L_0x0171;\n L_0x0153:\n r0 = r21;\n if (r0 >= r9) goto L_0x0166;\n L_0x0157:\n r6 = r7 + -1;\n r17 = r20[r9];\n r4[r7] = r17;\n r8 = r9 + -1;\n r17 = r4[r6];\n r20[r9] = r17;\n r9 = r8;\n r7 = r6;\n goto L_0x0153;\n L_0x0166:\n r17 = r20[r9];\n r4[r7] = r17;\n r20[r9] = r15;\n r10 = r11;\n r8 = r9;\n r6 = r7;\n goto L_0x0070;\n L_0x0171:\n r17 = r20[r9];\n if (r17 >= 0) goto L_0x018e;\n L_0x0175:\n r16 = r16 | 1;\n r17 = r20[r9];\n r17 = r17 ^ -1;\n r12 = r19 + r17;\n L_0x017d:\n r17 = r4[r11];\n if (r17 >= 0) goto L_0x0193;\n L_0x0181:\n r16 = r16 | 2;\n r17 = r4[r11];\n r17 = r17 ^ -1;\n r13 = r19 + r17;\n r10 = r11;\n r8 = r9;\n r6 = r7;\n goto L_0x0041;\n L_0x018e:\n r17 = r20[r9];\n r12 = r19 + r17;\n goto L_0x017d;\n L_0x0193:\n r17 = r4[r11];\n r13 = r19 + r17;\n r10 = r11;\n r8 = r9;\n r6 = r7;\n goto L_0x0041;\n L_0x019c:\n r10 = r11;\n r6 = r7;\n goto L_0x012f;\n L_0x019f:\n r6 = r7;\n goto L_0x0143;\n L_0x01a1:\n r8 = r9;\n r6 = r7;\n goto L_0x00ff;\n L_0x01a5:\n r10 = r11;\n r6 = r7;\n goto L_0x00a1;\n L_0x01a9:\n r8 = r9;\n r6 = r7;\n goto L_0x004f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.ssMergeBackward(int, int[], int, int, int, int, int):void\");\n }", "public List<String> restoreIpAddressesBacktrack1(String s) {\n List<String> res = new ArrayList<>();\n if (s == null || s.length() < 4 || s.length() > 12) return res;\n List<String> aList = new ArrayList<>();\n StringBuilder current = new StringBuilder();\n backTrack(res, s, aList, current, 0);\n return res;\n }", "@Test\n public void correctnessReverse() {\n final Iterator<Partition<Integer>> it = Partitions.lexicographicEnumeration(Helper.newHashSet(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), new int[]{3, 5}, ImmutablePartition::new);\n final Iterator<Partition<Integer>> itr = Partitions.reverseLexicographicEnumeration(Helper.newHashSet(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), new int[]{3, 5}, ImmutablePartition::new);\n final List<Partition<Integer>> partitions = new ArrayList<>();\n final List<Partition<Integer>> partitionsReverse = new ArrayList<>();\n while (it.hasNext() && itr.hasNext()) {\n final Partition<Integer> p = it.next();\n final Partition<Integer> pr = itr.next();\n partitions.add(p);\n partitionsReverse.add(pr);\n }\n Assert.assertTrue(!it.hasNext() && !itr.hasNext());\n Collections.reverse(partitionsReverse);\n Assert.assertEquals(partitions, partitionsReverse);\n }", "public boolean canSeekBackwards() {\n/* 131 */ return true;\n/* */ }", "public boolean isReversible() {\n\t\treturn false;\r\n\t}", "@Test\n public void testVirtualLists() throws Exception {\n assertReducesTo(\"2 dup 1 at.\", \"2 dup\");\n }", "private void swapTransforms() {\n Transform tmp = workTransform;\n workTransform = userTransform;\n userTransform = tmp;\n }", "public void startReverse() {\n startHelper(f_startDirection.getOppositeDirection(), \"startReverse()\");\n }", "private void backtracking(int index, int len, List<Integer> chain, Map<Integer, List<Integer>> edges) {\n if (!edges.containsKey(index)) {\n return;\n }\n for (int next : edges.get(index)) {\n chain.add(sorted[next]);\n if (len + 1 > max) {\n max = len + 1;\n longest = new ArrayList<Integer>(chain);\n } \n backtracking(next, len + 1, chain, edges);\n chain.remove(chain.size() - 1);\n }\n }", "private void flipnav(int[] nav) {\r\n\r\n // first word is always the satellite id in ASCII\r\n // check on which type:\r\n\r\n if (nav[0] == AREAnav.GVAR) {\r\n\r\n McIDASUtil.flip(nav,2,126);\r\n McIDASUtil.flip(nav,129,254);\r\n McIDASUtil.flip(nav,257,382);\r\n McIDASUtil.flip(nav,385,510);\r\n McIDASUtil.flip(nav,513,638);\r\n }\r\n\r\n else if (nav[0] == AREAnav.DMSP) {\r\n McIDASUtil.flip(nav,1,43);\r\n McIDASUtil.flip(nav,45,51);\r\n }\r\n\r\n else if (nav[0] == AREAnav.POES) {\r\n McIDASUtil.flip(nav,1,119);\r\n }\r\n\r\n else {\r\n McIDASUtil.flip(nav,1,nav.length-1);\r\n }\r\n\r\n return;\r\n }", "public void addTwoStepForwardToPositionCache(Key currentKey) {\n\n\t\tKey newKey = createTwoStepForwardFromCurrentKey(currentKey);\n\n\t\t// Gets current values stored with key and adds the extra position\n\t\tSet<Key> currentKeyMapping = positionCache.get(currentKey);\n\t\tcurrentKeyMapping.add(newKey);\n\t\tpositionCache.put(currentKey, currentKeyMapping);\n\t}", "private void ssMergeForward(int r16, int[] r17, int r18, int r19, int r20, int r21, int r22) {\n /*\n r15 = this;\n r3 = r15.SA;\n r13 = r20 - r19;\n r13 = r13 + r18;\n r4 = r13 + -1;\n r13 = r20 - r19;\n r0 = r17;\n r1 = r18;\n r2 = r19;\n ssBlockSwap(r0, r1, r3, r2, r13);\n r12 = r3[r19];\n r5 = r19;\n r7 = r18;\n r9 = r20;\n L_0x001b:\n r13 = r17[r7];\n r13 = r13 + r16;\n r14 = r3[r9];\n r14 = r14 + r16;\n r0 = r22;\n r11 = r15.ssCompare(r13, r14, r0);\n if (r11 >= 0) goto L_0x0044;\n L_0x002b:\n r6 = r5 + 1;\n r13 = r17[r7];\n r3[r5] = r13;\n if (r4 > r7) goto L_0x0037;\n L_0x0033:\n r17[r7] = r12;\n r5 = r6;\n L_0x0036:\n return;\n L_0x0037:\n r8 = r7 + 1;\n r13 = r3[r6];\n r17[r7] = r13;\n r13 = r17[r8];\n if (r13 < 0) goto L_0x00d5;\n L_0x0041:\n r7 = r8;\n r5 = r6;\n goto L_0x001b;\n L_0x0044:\n if (r11 <= 0) goto L_0x0079;\n L_0x0046:\n r6 = r5 + 1;\n r13 = r3[r9];\n r3[r5] = r13;\n r10 = r9 + 1;\n r13 = r3[r6];\n r3[r9] = r13;\n r0 = r21;\n if (r0 > r10) goto L_0x0072;\n L_0x0056:\n r8 = r7;\n L_0x0057:\n if (r8 >= r4) goto L_0x0068;\n L_0x0059:\n r5 = r6 + 1;\n r13 = r17[r8];\n r3[r6] = r13;\n r7 = r8 + 1;\n r13 = r3[r5];\n r17[r8] = r13;\n r8 = r7;\n r6 = r5;\n goto L_0x0057;\n L_0x0068:\n r13 = r17[r8];\n r3[r6] = r13;\n r17[r8] = r12;\n r9 = r10;\n r7 = r8;\n r5 = r6;\n goto L_0x0036;\n L_0x0072:\n r13 = r3[r10];\n if (r13 < 0) goto L_0x00d1;\n L_0x0076:\n r9 = r10;\n r5 = r6;\n goto L_0x001b;\n L_0x0079:\n r13 = r3[r9];\n r13 = r13 ^ -1;\n r3[r9] = r13;\n L_0x007f:\n r6 = r5 + 1;\n r13 = r17[r7];\n r3[r5] = r13;\n if (r4 > r7) goto L_0x008b;\n L_0x0087:\n r17[r7] = r12;\n r5 = r6;\n goto L_0x0036;\n L_0x008b:\n r8 = r7 + 1;\n r13 = r3[r6];\n r17[r7] = r13;\n r13 = r17[r8];\n if (r13 < 0) goto L_0x00ce;\n L_0x0095:\n r5 = r6;\n L_0x0096:\n r6 = r5 + 1;\n r13 = r3[r9];\n r3[r5] = r13;\n r10 = r9 + 1;\n r13 = r3[r6];\n r3[r9] = r13;\n r0 = r21;\n if (r0 > r10) goto L_0x00c2;\n L_0x00a6:\n if (r8 >= r4) goto L_0x00b7;\n L_0x00a8:\n r5 = r6 + 1;\n r13 = r17[r8];\n r3[r6] = r13;\n r7 = r8 + 1;\n r13 = r3[r5];\n r17[r8] = r13;\n r8 = r7;\n r6 = r5;\n goto L_0x00a6;\n L_0x00b7:\n r13 = r17[r8];\n r3[r6] = r13;\n r17[r8] = r12;\n r9 = r10;\n r7 = r8;\n r5 = r6;\n goto L_0x0036;\n L_0x00c2:\n r13 = r3[r10];\n if (r13 < 0) goto L_0x00cb;\n L_0x00c6:\n r9 = r10;\n r7 = r8;\n r5 = r6;\n goto L_0x001b;\n L_0x00cb:\n r9 = r10;\n r5 = r6;\n goto L_0x0096;\n L_0x00ce:\n r7 = r8;\n r5 = r6;\n goto L_0x007f;\n L_0x00d1:\n r9 = r10;\n r5 = r6;\n goto L_0x0046;\n L_0x00d5:\n r7 = r8;\n r5 = r6;\n goto L_0x002b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.netty.handler.codec.compression.Bzip2DivSufSort.ssMergeForward(int, int[], int, int, int, int, int):void\");\n }", "static void changeDirectionBackwards() {\n\n if(--direction == -1)\n direction = 3;\n }", "@Test\n public void Test4663220() {\n RuleBasedCollator collator = (RuleBasedCollator)Collator.getInstance(Locale.US);\n java.text.StringCharacterIterator stringIter = new java.text.StringCharacterIterator(\"fox\");\n CollationElementIterator iter = collator.getCollationElementIterator(stringIter);\n \n int[] elements_next = new int[3];\n logln(\"calling next:\");\n for (int i = 0; i < 3; ++i) {\n logln(\"[\" + i + \"] \" + (elements_next[i] = iter.next()));\n }\n \n int[] elements_fwd = new int[3];\n logln(\"calling set/next:\");\n for (int i = 0; i < 3; ++i) {\n iter.setOffset(i);\n logln(\"[\" + i + \"] \" + (elements_fwd[i] = iter.next()));\n }\n \n for (int i = 0; i < 3; ++i) {\n if (elements_next[i] != elements_fwd[i]) {\n errln(\"mismatch at position \" + i + \n \": \" + elements_next[i] + \n \" != \" + elements_fwd[i]);\n }\n }\n }", "private void updateFastForward(String out) {\n\t\tif (out.equals(properties.get(\"errorMsg\")) || out.equals(properties.get(\"failureMsg\"))) {\n\t\t\tfastForward = true;\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\") // Needed to stop Eclipse whining\n private void resetWithHole() {\n Entry<K, V>[] entries = new Entry[] {a, c};\n super.resetMap(entries);\n navigableMap = (NavigableMap<K, V>) getMap();\n }", "public final void rewind() {\n branch = 0;\n }", "@SuppressWarnings(\"unused\")\n private void transformLateralShift() {\n if (steps.size() < 3) {\n return;\n }\n final int index = steps.size() - 3;\n final MoveStep step1 = getStep(index);\n final MoveStep step2 = getStep(index + 1);\n final MoveStep step3 = getStep(index + 2);\n\n if (step1.oppositeTurn(step3)\n && ((step2.getType() == MovePath.MoveStepType.BACKWARDS) || (step2.getType() == MovePath.MoveStepType.FORWARDS))) {\n final MoveStepType stepType = step1.getType();\n final MoveStepType direction = step2.getType();\n // remove all old steps\n steps.removeElementAt(index);\n steps.removeElementAt(index);\n steps.removeElementAt(index);\n // add new step\n final MoveStep shift = new MoveStep(this, lateralShiftForTurn(stepType, direction));\n addStep(shift);\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(reverse(\"foo\"));\n\t\tSystem.out.println(reverse(\"student\"));\n\t\t\n\t}", "public void reverseDi() {\n int hi = size - 1;\n int lo = 0;\n\n while (lo < hi) {\n Node left = getNodeAt(lo);\n Node right = getNodeAt(hi);\n\n Object temp = left.data;\n left.data = right.data;\n right.data = temp;\n\n lo++;\n hi--;\n }\n }", "public void revComp() {\n ArrayList<Character> newSeq = new ArrayList<Character>();\n for (int i = 0; i < seq.size(); i++) {\n char c = seq.get(seq.size() - 1 - i);\n newSeq.add(complement(c));\n }\n seq = newSeq;\n }", "@Test\n public void prefixTrimNotReachingSequencer() throws Exception {\n final int tableSize = PARAMETERS.NUM_ITERATIONS_LOW;\n CorfuRuntime rt = getNewRuntime();\n\n TestRule dropSequencerTrim = new TestRule()\n .requestMatches(msg -> msg.getPayload().getPayloadCase()\n .equals(CorfuMessage.RequestPayloadMsg.PayloadCase.SEQUENCER_TRIM_REQUEST))\n .drop();\n addClientRule(rt, dropSequencerTrim);\n\n try {\n PersistentCorfuTable<String, Long> tableA = openTable(rt, streamNameA);\n PersistentCorfuTable<String, Long> tableB = openTable(rt, streamNameB);\n\n // thread 1: populates the maps with mapSize items\n scheduleConcurrently(1, ignored_task_num -> {\n populateMaps(tableSize, tableA, tableB);\n });\n\n // thread 2: periodic checkpoint of the maps, repeating ITERATIONS_VERY_LOW times,\n // and immediate prefix-trim of the log up to the checkpoint position\n scheduleConcurrently(1, ignored_task_num -> {\n mapCkpointAndTrim(rt, tableA, tableB);\n });\n\n // thread 3: repeated ITERATION_LOW times starting a fresh runtime, and instantiating the maps.\n // they should rebuild from the latest checkpoint (if available).\n // performs some sanity checks on the map state\n\n // In this test checkpoints and trims are happening in a loop for several iterations,\n // so a trim exception can occur if after loading from the latest checkpoint,\n // updates to the stream have been already trimmed (1st trimmedException), the stream\n // is reset, and on the second iteration the same scenario can happen (2nd trimmedException)\n // which is the total number of retries.\n scheduleConcurrently(PARAMETERS.NUM_ITERATIONS_LOW, ignored_task_num -> {\n validateMapRebuild(tableSize, false, true);\n });\n\n executeScheduled(PARAMETERS.CONCURRENCY_SOME, PARAMETERS.TIMEOUT_LONG);\n\n // Verify that last trim cycle completed (async task) before validating map rebuild\n Token currentTrimMark = Token.UNINITIALIZED;\n while(currentTrimMark.getSequence() != lastValidCheckpoint.getSequence() + 1L) {\n currentTrimMark = getNewRuntime().getAddressSpaceView().getTrimMark();\n }\n\n // finally, after all three threads finish, again we start a fresh runtime and instantiate the maps.\n // This time we check that the new map instances contain all values\n validateMapRebuild(tableSize, true, false);\n } finally {\n rt.shutdown();\n }\n }", "public void _reverse() {\n\n var prev = first;\n var current = first.next;\n last = first;\n last.next = null;\n while (current != null) {\n var next = current.next;\n current.next = prev;\n prev = current;\n current = next;\n\n }\n first = prev;\n\n }", "public void testUnfoldingWithNoSuccessfulResolutions() {\n\t\t\n\t\tDatalogProgram queryProgram = fac.getDatalogProgram();\n\t\tFunction a = fac.getFunction(fac.getClassPredicate(\"A\"), fac.getVariable(\"x\"));\n\t\tFunction R = fac.getFunction(fac.getObjectPropertyPredicate(\"R\"), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\tFunction lj = fac.getSPARQLLeftJoin(a, R);\n\t\tFunction head = fac.getFunction(fac.getPredicate(\"q\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\tCQIE query = fac.getCQIE(head, lj);\n\t\tqueryProgram.appendRule(query);\n\n\t\t// Mapping program\n\t\tDatalogProgram p = fac.getDatalogProgram();\n\t\t// A rule 1 A(uri(x)) :- T1(x,y)\n\t\tFunction body = fac.getFunction(fac.getPredicate(\"T1\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\thead = fac.getFunction(fac.getPredicate(\"A\", 1), fac.getFunction(fac.getPredicate(\"uri\", 1), fac.getVariable(\"x\")));\n\t\tCQIE rule1 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule1);\n\n\t\t// A rule 2 R(f(x),y) :- T2(x,y)\n\t\tbody = fac.getFunction(fac.getPredicate(\"T2\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"f\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\tCQIE rule2 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule2);\n\n\t\t// A rule 3 R(g(x),y) :- T3(x,y)\n\t\t\n\t\tbody = fac.getFunction(fac.getPredicate(\"T3\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"g\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\tCQIE rule3 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule3);\n\n\t\tDatalogUnfolder unfolder = new DatalogUnfolder(p.getRules());\n\t\tDatalogProgram result = unfolder.unfold(queryProgram, \"q\");\n\n\t\t// Only one rule should be returned where y is null\n\t\tSystem.out.println(result);\n\t\tassertEquals(1, result.getRules().size());\n\t\tassertTrue(result.getRules().toString().contains(\"null\"));\n\t\tassertTrue(result.getRules().toString().contains(\"T1(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"A(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"R(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\tassertTrue(result.getRules().get(0).getBody().size() == 1);\n\t}", "private Map<Integer, Set<Integer>> computeInverseTransitionRelation(LabelledTransitionSystem ret) {\n\n\t\tMap<Integer, Set<Integer>> reverseTransitionMap = new HashMap<>();\n\t\tLTSTransitionList[] transitions = ret.getStates();\n\n\t\tfor (int stateIndex = 0; stateIndex < transitions.length; stateIndex++) {\n\t\t\treverseTransitionMap.put(stateIndex, new HashSet<>());\n\t\t}\n\n\t\tfor (int stateIndex = 0; stateIndex < transitions.length; stateIndex++) {\n\n\t\t\tLTSTransitionList transition = transitions[stateIndex];\n\t\t\tthis.updateIndexes(stateIndex, transition, reverseTransitionMap);\n\t\t}\n\n\t\treturn reverseTransitionMap;\n\t}", "private void goForwardOne() \n {\n if (m_bufferOffset_ < 0) {\n // we're working on the source and not normalizing. fast path.\n // note Thai pre-vowel reordering uses buffer too\n m_source_.setIndex(m_source_.getIndex() + 1);\n }\n else {\n // we are in the buffer, buffer offset will never be 0 here\n m_bufferOffset_ ++;\n }\n }", "public void resetTransforms() { \r\n transforms2 = new HashMap<BundlesDT.DT,Map<String,Map<String,String>>>(); \r\n transforms2.put(BundlesDT.DT.IPv4, new HashMap<String,Map<String,String>>());\r\n transforms2.put(BundlesDT.DT.IPv4CIDR, new HashMap<String,Map<String,String>>());\r\n if (transforms.containsKey(BundlesDT.DT.IPv4)) {\r\n Iterator<String> it = transforms.get(BundlesDT.DT.IPv4).keySet().iterator();\r\n while (it.hasNext()) transforms2.get(BundlesDT.DT.IPv4).put(it.next(), new HashMap<String,String>());\r\n }\r\n if (transforms.containsKey(BundlesDT.DT.IPv4CIDR)) {\r\n sorted_cidr_trans = new HashMap<String,CIDRRec[]>();\r\n Iterator<String> it = transforms.get(BundlesDT.DT.IPv4CIDR).keySet().iterator();\r\n while (it.hasNext()) {\r\n String trans = it.next();\r\n transforms2.get(BundlesDT.DT.IPv4).put(trans, new HashMap<String,String>());\r\n transforms2.get(BundlesDT.DT.IPv4CIDR).put(trans, new HashMap<String,String>());\r\n\tCIDRRec recs[] = new CIDRRec[transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).keySet().size()];\r\n\tIterator<String> it_cidr = transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).keySet().iterator();\r\n\tfor (int i=0;i<recs.length;i++) {\r\n\t String cidr = it_cidr.next();\r\n\t recs[i] = new CIDRRec(cidr,transforms.get(BundlesDT.DT.IPv4CIDR).get(trans).get(cidr));\r\n }\r\n\tArrays.sort(recs);\r\n\tsorted_cidr_trans.put(trans,recs);\r\n }\r\n }\r\n }", "public void testUnfoldingWithOneSuccessfulResolutions() {\n\t\t\t\n\t\t\tDatalogProgram queryProgram = fac.getDatalogProgram();\n\t\t\tFunction a = fac.getFunction(fac.getClassPredicate(\"A\"), fac.getVariable(\"x\"));\n\t\t\tFunction R = fac.getFunction(fac.getObjectPropertyPredicate(\"R\"), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\tFunction lj = fac.getSPARQLLeftJoin(a, R);\n\t\t\tFunction head = fac.getFunction(fac.getPredicate(\"q\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\tCQIE query = fac.getCQIE(head, lj);\n\t\t\tqueryProgram.appendRule(query);\n\n\t\t\t// Mapping program\n\t\t\tDatalogProgram p = fac.getDatalogProgram();\n\t\t\t// A rule 1 A(uri(x)) :- T1(x,y)\n\t\t\tFunction body = fac.getFunction(fac.getPredicate(\"T1\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\thead = fac.getFunction(fac.getPredicate(\"A\", 1), fac.getFunction(fac.getPredicate(\"uri\", 1), fac.getVariable(\"x\")));\n\t\t\tCQIE rule1 = fac.getCQIE(head, body);\n\t\t\tp.appendRule(rule1);\n\n\t\t\t// A rule 2 R(f(x),y) :- T2(x,y)\n\t\t\tbody = fac.getFunction(fac.getPredicate(\"T2\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"f\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\t\tCQIE rule2 = fac.getCQIE(head, body);\n\t\t\tp.appendRule(rule2);\n\n\t\t\t// A rule 3 R(uri(x),y) :- T3(x,y)\n\t\t\t\n\t\t\tbody = fac.getFunction(fac.getPredicate(\"T3\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"uri\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\t\tCQIE rule3 = fac.getCQIE(head, body);\n\t\t\tp.appendRule(rule3);\n\n\t\t\tDatalogUnfolder unfolder = new DatalogUnfolder(p.getRules());\n\t\t\tDatalogProgram result = unfolder.unfold(queryProgram, \"q\");\n\n\t\t\t// Only one rule should be returned where y is null\n\t\t\tSystem.out.println(result);\n\t\t\tassertEquals(1, result.getRules().size());\n\t\t\tassertTrue(result.getRules().toString().contains(\"T1(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"T3(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"uri(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\t\t\n\t\t\tassertFalse(result.getRules().toString().contains(\"A(\"));\n\t\t\tassertFalse(result.getRules().toString().contains(\"R(\"));\n\t\t\tassertFalse(result.getRules().toString().contains(\"T2(\"));\n\t\t\t\n\t\t\tassertFalse(result.getRules().toString().contains(\"null\"));\n\t\t\tassertTrue(result.getRules().get(0).getBody().size() == 1);\n\t\t\n\t}", "private void findIternary(Map<String, String> dataSet) {\n\t\tMap<String, String> reverseMap = new HashMap<String, String>();\n\t\tfor (Map.Entry<String, String> entry : dataSet.entrySet())\n\t\t\treverseMap.put(entry.getValue(), entry.getKey());\n\t\tString start = null;\n\t\tfor (Map.Entry<String, String> entry : dataSet.entrySet()) {\n\t\t\tif (!reverseMap.containsKey(entry.getKey())) {\n\t\t\t\tstart = entry.getKey();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (start == null) {\n\t\t\tSystem.out.println(\"Invalid Input\");\n\t\t\treturn;\n\t\t}\n\t\tString to = dataSet.get(start);\n\t\twhile (to != null)\n\n\t\t{\n\t\t\tSystem.out.print(start + \"->\" + to + \",\");\n\t\t\tstart = to;\n\t\t\tto = dataSet.get(to);\n\t\t}\n\n\t}", "private static String fixSorts(String strIn){\r\n\t // get a matcher object\r\n\t matches = ptrnNumbers.matcher(strIn);\r\n\t while (matches.find()){\r\n\t \tstrIn = strIn.substring(0,matches.start())+\" \"+strPrepend+strIn.substring(matches.start()+1);\r\n\t }\r\n\t //System.out.println(\">>>\"+strIn);\r\n\t\treturn strIn;\r\n\t}", "protected void backwardNumCodePoints(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.DataBuilderCollationIterator.backwardNumCodePoints(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.DataBuilderCollationIterator.backwardNumCodePoints(int):void\");\n }", "protected ForwardingMap() {}", "protected void reversePath() {\n\t\t\n\t\tif(_reverse) {\n\t\t\t\n\t\t\tif(_nextMove + 1 > movingPattern.size() - 1)\n\t\t\t\t_nextMove = 0;\n\t\t\telse\n\t\t\t\t_nextMove++;\n\t\t\t\n\t\t\t_reverse = false;\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\tif(_nextMove - 1 < 0)\n\t\t\t\t_nextMove = movingPattern.size() - 1;\n\t\t\telse\n\t\t\t\t_nextMove--;\n\t\t\t\n\t\t\t_reverse = true;\n\t\t}\n\t}", "private void updateOriginalEdgesInMirror() {\n for (Edge edge : originalGraph.edges()) {\n if (!directEdgeMap.containsKey(edge)) {\n constructMirrorEdge(edge);\n }\n MirrorEdge mirrorEdge = directEdgeMap.get(edge);\n updateMirrorEdgeBends(edge, mirrorEdge);\n updateMirrorEdgeSegments(mirrorEdge);\n originalAttributesToMirror(edge);\n }\n }", "protected void removeFixup(Node<T> u) {\n\t\twhile (u.colour > black) {\n\t\t\tif (u == r) {\n\t\t\t\tu.colour = black;\n\t\t\t} else if (u.parent.left.colour == red) {\n\t\t\t\tu = removeFixupCase1(u);\n\t\t\t} else if (u == u.parent.left) {\n\t\t\t\tu = removeFixupCase2(u);\n\t\t\t} else {\n\t\t\t\tu = removeFixupCase3(u);\n\t\t\t}\n\t\t}\n\t\tif (u != r) { // restore left-leaning property if needed\n\t\t\tNode<T> w = u.parent;\n\t\t\tif (w.right.colour == red && w.left.colour == black) {\n\t\t\t\tflipLeft(w);\n\t\t\t}\n\t\t}\n\t}", "abstract protected void revert();", "public void flipOverY(){\n int len = tileChars.length;\r\n \r\n // swap columns\r\n for (int i = 0; i < len; i++)\r\n {\r\n for (int j = 0; j < len / 2; j++)\r\n {\r\n char temp = tileChars[i][j];\r\n tileChars[i][j] = tileChars[i][len - j - 1];\r\n tileChars[i][len - j - 1] = temp;\r\n }\r\n }\r\n \r\n boolean temp = this.matchFound[1];\r\n this.matchFound[1] = this.matchFound[3];\r\n this.matchFound[3] = temp;\r\n \r\n this.recalculateEdges(); //fix edges\r\n }", "@Test\n\tpublic void testForwardStartLoss() throws InvalidGenomeChange {\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6640669, PositionType.ZERO_BASED),\n\t\t\t\t\"ACG\", \"CGTT\");\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(1, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.1_3delinsCGTT\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation1.effects);\n\n\t\t// Delete chunk out of first exon, spanning start codon from the left.\n\t\tGenomeChange change2 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6640660, PositionType.ZERO_BASED),\n\t\t\t\t\"CCCTCCAGACC\", \"GTTG\");\n\t\tAnnotation annotation2 = new BlockSubstitutionAnnotationBuilder(infoForward, change2).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation2.transcript.accession);\n\t\tAssert.assertEquals(1, annotation2.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.-9_2delinsGTTG\", annotation2.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation2.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation2.effects);\n\n\t\t// Delete chunk out of first exon, spanning start codon from the right.\n\t\tGenomeChange change3 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6640671, PositionType.ZERO_BASED),\n\t\t\t\t\"GGACGGCTCCT\", \"CTTG\");\n\t\tAnnotation annotation3 = new BlockSubstitutionAnnotationBuilder(infoForward, change3).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation3.transcript.accession);\n\t\tAssert.assertEquals(1, annotation3.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.3_13delinsCTTG\", annotation3.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation3.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation3.effects);\n\n\t\t// Deletion from before transcript, reaching into the start codon.\n\t\tGenomeChange change4 = new GenomeChange(\n\t\t\t\tnew GenomePosition(refDict, '+', 1, 6640399, PositionType.ZERO_BASED),\n\t\t\t\t\"TCTCACCAGGCCCTTCTTCACGACCCTGGCCCCCCATCCAGCATCCCCCCTGGCCAATCCAATATGGCCCCCGGCCCCCGGGAGGCTGTCAGTGTGTTCCAGCCCTCCGCGTGCACCCCTCACCCTGACCCAAGCCCTCGTGCTGATAAATATGATTATTTGAGTAGAGGCCAACTTCCCGTTTCTCTCTCTTGACTCCAGGAGCTTTCTCTTGCATACCCTCGCTTAGGCTGGCCGGGGTGTCACTTCTGCCTCCCTGCCCTCCAGACCA\",\n\t\t\t\t\"ACCT\");\n\t\tAnnotation annotation4 = new BlockSubstitutionAnnotationBuilder(infoForward, change4).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation4.transcript.accession);\n\t\tAssert.assertEquals(AnnotationLocation.INVALID_RANK, annotation4.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.-69-201_1delinsACCT\", annotation4.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.0?\", annotation4.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.START_LOSS), annotation4.effects);\n\t}", "public void flip() {\r\n\t\tObject[] bak = path.toArray(new Direction[path.size()]);\r\n\t\tpath.clear();\r\n\t\tfor (int i = bak.length-1; i >= 0; i--) {\r\n\t\t\tpath.push((Direction) bak[i]);\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testForwardStopLoss() throws InvalidGenomeChange {\n\t\tGenomeChange change1 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6649271, PositionType.ZERO_BASED),\n\t\t\t\t\"ACG\", \"CGTT\");\n\t\t// Note that the transcript here differs to the one Mutalyzer uses after the CDS.\n\t\tAnnotation annotation1 = new BlockSubstitutionAnnotationBuilder(infoForward, change1).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation1.transcript.accession);\n\t\tAssert.assertEquals(10, annotation1.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.2067_*2delinsCGTT\", annotation1.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.*689Tyrext*25\", annotation1.aaHGVSDescription);\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.NON_FS_SUBSTITUTION, VariantType.STOPLOSS),\n\t\t\t\tannotation1.effects);\n\n\t\t// Replace stop codon by 6 nucleotides, non-frameshift case.\n\t\tGenomeChange change2 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6649270, PositionType.ZERO_BASED),\n\t\t\t\t\"ACT\", \"CGGTCG\");\n\t\tAnnotation annotation2 = new BlockSubstitutionAnnotationBuilder(infoForward, change2).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation2.transcript.accession);\n\t\tAssert.assertEquals(10, annotation2.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.2066_*1delinsCGGTCG\", annotation2.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.*689Serext*17\", annotation2.aaHGVSDescription);\n\t\t// Note that the transcript here differs to the one Mutalyzer uses after the CDS.\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.FS_SUBSTITUTION, VariantType.STOPLOSS),\n\t\t\t\tannotation2.effects);\n\n\t\t// Delete first base of stop codon, leads to complete loss.\n\t\tGenomeChange change3 = new GenomeChange(new GenomePosition(refDict, '+', 1, 6649269, PositionType.ZERO_BASED),\n\t\t\t\t\"ACG\", \"CGGT\");\n\t\tAnnotation annotation3 = new BlockSubstitutionAnnotationBuilder(infoForward, change3).build();\n\t\tAssert.assertEquals(infoForward.accession, annotation3.transcript.accession);\n\t\tAssert.assertEquals(10, annotation3.annoLoc.rank);\n\t\tAssert.assertEquals(\"c.2065_2067delinsCGGT\", annotation3.ntHGVSDescription);\n\t\tAssert.assertEquals(\"p.*689Argext*16\", annotation3.aaHGVSDescription);\n\t\t// Note that the transcript here differs to the one Mutalyzer uses after the CDS.\n\t\tAssert.assertEquals(ImmutableSortedSet.of(VariantType.FS_SUBSTITUTION, VariantType.STOPLOSS),\n\t\t\t\tannotation3.effects);\n\t}", "public static void reorder(Automaton automaton, int[] mapping) {\n\t\t// now remap all the vertices according to giving binding\n\t\tState[] states = new State[automaton.nStates()];\n\t\tfor (int i = 0; i != states.length; ++i) {\n\t\t\tAutomaton.State state = automaton.get(i);\n\t\t\tstate.remap(mapping);\n\t\t\tstates[mapping[i]] = state;\n\t\t}\n\t\tfor (int i = 0; i != states.length; ++i) {\n\t\t\tautomaton.set(i, states[i]);\n\t\t}\n\n\t\tfor (int i = 0; i != automaton.nRoots(); ++i) {\n\t\t\tint root = automaton.getRoot(i);\n\t\t\tif (root >= 0) {\n\t\t\t\tautomaton.setRoot(i, mapping[root]);\n\t\t\t}\n\t\t}\n\t}", "private void backTrack(boolean[] a, int k, int[] input){\n\t\t\n\t\tif (isASolution(a, k, input)){\n\t\t\tprocessSolution(a, k, input);\n\t\t} else {\n\t\t\tboolean[] c = constructCandidates(a, k, input);\n\t\t\tfor(int i = 0; i < c.length; i++){\n\t\t\t\ta[k] = c[i];\n\t\t\t\tbackTrack(a, k + 1, input);\n\t\t\t}\n\t\t}\n\t}", "public void unsetDirectForward()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DIRECTFORWARD$14, 0);\n }\n }", "@Override\n\tpublic void rewind() {\n\t\t\n\t}", "private Iterable<V> reconstructPath(V last, V from, HashMap<V, V> previous){\n LinkedList<V> ret = new LinkedList<>();\n ret.addFirst(last);\n while (!last.equals(from)){\n V prev = previous.get(last);\n ret.addFirst(prev);\n last = prev;\n }\n return ret;\n }", "static void test_reverse() {\n\n System.out.println( \"\\nTESTS for reverse() : \" );\n\n System.out.print( \"String 'Racecar' returns : \" );\n try { System.out.println(StringStuff.reverse( \"Racecar\" ) ); }\n catch ( Exception e ) { System.out.println ( false ); }\n\n System.out.print( \"String 'sbmal EVOL I' returns : \" );\n try { System.out.println(StringStuff.reverse( \"sbmal EVOL I\" ) ); }\n catch ( Exception e ) { System.out.println ( false ); }\n\n }", "boolean transfer(Recycler.Stack<?> dst)\r\n/* 302: */ {\r\n/* 303:328 */ Link head = this.head;\r\n/* 304:329 */ if (head == null) {\r\n/* 305:330 */ return false;\r\n/* 306: */ }\r\n/* 307:333 */ if (head.readIndex == Recycler.LINK_CAPACITY)\r\n/* 308: */ {\r\n/* 309:334 */ if (head.next == null) {\r\n/* 310:335 */ return false;\r\n/* 311: */ }\r\n/* 312:337 */ this.head = (head = head.next);\r\n/* 313: */ }\r\n/* 314:340 */ int srcStart = head.readIndex;\r\n/* 315:341 */ int srcEnd = head.get();\r\n/* 316:342 */ int srcSize = srcEnd - srcStart;\r\n/* 317:343 */ if (srcSize == 0) {\r\n/* 318:344 */ return false;\r\n/* 319: */ }\r\n/* 320:347 */ int dstSize = dst.size;\r\n/* 321:348 */ int expectedCapacity = dstSize + srcSize;\r\n/* 322:350 */ if (expectedCapacity > dst.elements.length)\r\n/* 323: */ {\r\n/* 324:351 */ int actualCapacity = dst.increaseCapacity(expectedCapacity);\r\n/* 325:352 */ srcEnd = Math.min(srcStart + actualCapacity - dstSize, srcEnd);\r\n/* 326: */ }\r\n/* 327:355 */ if (srcStart != srcEnd)\r\n/* 328: */ {\r\n/* 329:356 */ Recycler.DefaultHandle[] srcElems = head.elements;\r\n/* 330:357 */ Recycler.DefaultHandle[] dstElems = dst.elements;\r\n/* 331:358 */ int newDstSize = dstSize;\r\n/* 332:359 */ for (int i = srcStart; i < srcEnd; i++)\r\n/* 333: */ {\r\n/* 334:360 */ Recycler.DefaultHandle element = srcElems[i];\r\n/* 335:361 */ if (Recycler.DefaultHandle.access$1500(element) == 0) {\r\n/* 336:362 */ Recycler.DefaultHandle.access$1502(element, Recycler.DefaultHandle.access$1100(element));\r\n/* 337:363 */ } else if (Recycler.DefaultHandle.access$1500(element) != Recycler.DefaultHandle.access$1100(element)) {\r\n/* 338:364 */ throw new IllegalStateException(\"recycled already\");\r\n/* 339: */ }\r\n/* 340:366 */ srcElems[i] = null;\r\n/* 341:368 */ if (!dst.dropHandle(element))\r\n/* 342: */ {\r\n/* 343:372 */ Recycler.DefaultHandle.access$502(element, dst);\r\n/* 344:373 */ dstElems[(newDstSize++)] = element;\r\n/* 345: */ }\r\n/* 346: */ }\r\n/* 347:376 */ if ((srcEnd == Recycler.LINK_CAPACITY) && (head.next != null))\r\n/* 348: */ {\r\n/* 349:378 */ reclaimSpace(Recycler.LINK_CAPACITY);\r\n/* 350: */ \r\n/* 351:380 */ this.head = head.next;\r\n/* 352: */ }\r\n/* 353:383 */ head.readIndex = srcEnd;\r\n/* 354:384 */ if (dst.size == newDstSize) {\r\n/* 355:385 */ return false;\r\n/* 356: */ }\r\n/* 357:387 */ dst.size = newDstSize;\r\n/* 358:388 */ return true;\r\n/* 359: */ }\r\n/* 360:391 */ return false;\r\n/* 361: */ }", "boolean scavenge()\r\n/* 462: */ {\r\n/* 463:493 */ if (scavengeSome()) {\r\n/* 464:494 */ return true;\r\n/* 465: */ }\r\n/* 466:498 */ this.prev = null;\r\n/* 467:499 */ this.cursor = this.head;\r\n/* 468:500 */ return false;\r\n/* 469: */ }", "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 void flipOverX(){\n int len = tileChars.length;\r\n \r\n // swap rows\r\n for (int i = 0; i < len / 2; i++)\r\n {\r\n for (int j = 0; j < len; j++)\r\n {\r\n // swap `tileChars[i][j]` with `tileChars[len-i-1][j]`\r\n char temp = tileChars[i][j];\r\n tileChars[i][j] = tileChars[len-i-1][j];\r\n tileChars[len-i-1][j] = temp;\r\n }\r\n }\r\n \r\n boolean temp = this.matchFound[0];\r\n this.matchFound[0] = this.matchFound[2];\r\n this.matchFound[2] = temp;\r\n \r\n this.recalculateEdges(); //fix edges\r\n }", "public void backDown(){\n backSolenoid.set(DoubleSolenoid.Value.kReverse);\n }", "public void solveGame4() {\n\t\tlosingStates = new HashSet<S>();\n\t\t\n\t\tQueue<S> losing = new LinkedList<S>();\n\t\tList<Set<S>> uncontrollableSuccessors = new ArrayList<Set<S>>();\n\t\tboolean[] isUncontrollable = new boolean[game.getStates().size()+1];\n\t\tHashMap<S, Integer> stateToIndex = new HashMap<S, Integer>();\n\t\t\n\t\tSet<S> currentUncontrollableSuccesors;\n\t\tSet<S> currentSet; \n\t\tint i;\n\t\tint indexCount = 0;\n\t\tfor(S state:game.getStates()){\n\t\t\tstateToIndex.put(state, indexCount);\n\t\t\t //if(i == -1)\n\t\t\t\t//continue;\n\t\t\tcurrentUncontrollableSuccesors = ((Set<S>)this.game.getUncontrollableSuccessors(state));\n\t\t\tcurrentSet = new HashSet<S>();\n\t\t\tfor(S s: currentUncontrollableSuccesors){\n\t\t\t\tif((!relaxOnAssumptions || (!assumptionsStates.contains(s) || assumptionsStates.contains(state))\n\t\t\t\t\t\t&& (!relaxSelfLoops || (!s.equals(state)))))\n\t\t\t\t\tcurrentSet.add(s);\n\t\t\t}\n\t\t\t uncontrollableSuccessors.add(currentSet);\n\t\t\t isUncontrollable[indexCount] = currentSet.size() > 0;\n\t\t\t indexCount+=1;\n\t\t}\n\t\t\n\t\tfor (Set<S> actualGoalSet : this.goalStates) {\n\t\t\tlosing.addAll(actualGoalSet);\n\t\t}\n\n\t\t// Handle the pending states\n\t\twhile (!losing.isEmpty()) {\n\t\t\tS state = losing.poll();\n\n\t\t\t\n\t\t\tlosingStates.add(state);\n\n\t\t\tSet<S> predecessors = this.game.getPredecessors(state);\n\t\t\tfor (S pred : predecessors) {\n\t\t\t\tif(losing.contains(pred) || losingStates.contains(pred))\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\ti = stateToIndex.get(pred);\n\t\t\t\t//if(i == -1)\n\t\t\t\t\t//continue;\n\t\t\t\tif (!isUncontrollable[i]) {\n\t\t\t\t\tlosing.add(pred);\n\t\t\t\t}else{\n\t\t\t\t\tuncontrollableSuccessors.get(i).remove(state);\n\t\t\t\t\tif(uncontrollableSuccessors.get(i).isEmpty())\n\t\t\t\t\t\tlosing.add(pred);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"LOSING STATES SIZe : \" + losingStates.size());\n\t\t\n\t\tthis.gameSolved = true;\n\t}", "public void makePreferredOTTOLRelationshipsNOConflicts() {\n \n // TraversalDescription CHILDOF_TRAVERSAL = Traversal.description()\n // .relationships(RelType.TAXCHILDOF, Direction.INCOMING);\n \n // get the start point\n Node life = getLifeNode();\n System.out.println(life.getProperty(\"name\"));\n \n Transaction tx = beginTx();\n addToPreferredIndexes(life, ALLTAXA);\n HashSet<Long> traveled = new HashSet<Long>();\n int nNewRels = 0;\n try {\n // walk out to the tips from the base of the tree\n for (Node n : TAXCHILDOF_TRAVERSAL.traverse(life).nodes()) {\n if (n.hasRelationship(Direction.INCOMING, RelType.TAXCHILDOF) == false) {\n \n // when we hit a tip, start walking back\n Node curNode = n;\n while (curNode.hasRelationship(Direction.OUTGOING, RelType.TAXCHILDOF)) {\n Node startNode = curNode;\n if (traveled.contains((Long)startNode.getId())){\n \tbreak;\n }else{\n \ttraveled.add((Long)startNode.getId());\n }\n Node endNode = null;\n \n // if the current node already has a preferred relationship, we will just follow it\n if (startNode.hasRelationship(Direction.OUTGOING, RelType.PREFTAXCHILDOF)) {\n Relationship prefRel = startNode.getSingleRelationship(RelType.PREFTAXCHILDOF, Direction.OUTGOING);\n \n // make sure we don't get stuck in an infinite loop (should not happen, could do weird things to the graph)\n if (prefRel.getStartNode().getId() == prefRel.getEndNode().getId()) {\n System.out.println(\"pointing to itself \" + prefRel + \" \" + prefRel.getStartNode().getId() + \" \" + prefRel.getEndNode().getId());\n break;\n }\n \n // prepare to move on\n endNode = prefRel.getEndNode();\n \n } else {\n \n // if there is no preferred rel then they all point to the same end node; just follow the first non-looping relationship\n for (Relationship rel : curNode.getRelationships(RelType.TAXCHILDOF, Direction.OUTGOING)) {\n if (rel.getStartNode().getId() == rel.getEndNode().getId()) {\n System.out.println(\"pointing to itself \" + rel + \" \" + rel.getStartNode().getId() + \" \" + rel.getEndNode().getId());\n break;\n } else {\n endNode = rel.getEndNode();\n break;\n }\n }\n \n // if we found a dead-end, die\n if (endNode == null) {\n System.out.println(curNode.getProperty(\"name\"));\n System.out.println(\"Strange, this relationship seems to be pointing at a nonexistent node. Quitting.\");\n System.exit(0);\n }\n \n // create preferred relationships\n curNode.createRelationshipTo(endNode, RelType.PREFTAXCHILDOF);\n curNode.createRelationshipTo(endNode, RelType.TAXCHILDOF).setProperty(\"source\", \"ottol\");\n nNewRels += 1;\n }\n \n if (startNode == endNode) {\n System.out.println(startNode);\n System.out.println(\"The node seems to be pointing at itself. This is a problem. Quitting.\");\n System.exit(0);\n \n // prepare for next iteration\n } else {\n curNode = endNode;\n addToPreferredIndexes(startNode, ALLTAXA);\n }\n }\n }\n \n if (nNewRels % transaction_iter == 0) {\n System.out.println(nNewRels);\n // tx.success();\n // tx.finish();\n // tx = beginTx();\n }\n }\n tx.success();\n } finally {\n tx.finish();\n }\n }", "public static com.google.android.gms.internal.zzpc zza(android.support.p000v4.app.FragmentActivity r3) {\n /*\n r0 = zzaoq;\n r0 = r0.get(r3);\n r0 = (java.lang.ref.WeakReference) r0;\n if (r0 == 0) goto L_0x0013;\n L_0x000a:\n r0 = r0.get();\n r0 = (com.google.android.gms.internal.zzpc) r0;\n if (r0 == 0) goto L_0x0013;\n L_0x0012:\n return r0;\n L_0x0013:\n r0 = r3.getSupportFragmentManager();\t Catch:{ ClassCastException -> 0x0048 }\n r1 = \"SupportLifecycleFragmentImpl\";\n r0 = r0.findFragmentByTag(r1);\t Catch:{ ClassCastException -> 0x0048 }\n r0 = (com.google.android.gms.internal.zzpc) r0;\t Catch:{ ClassCastException -> 0x0048 }\n if (r0 == 0) goto L_0x0027;\n L_0x0021:\n r1 = r0.isRemoving();\n if (r1 == 0) goto L_0x003d;\n L_0x0027:\n r0 = new com.google.android.gms.internal.zzpc;\n r0.<init>();\n r1 = r3.getSupportFragmentManager();\n r1 = r1.beginTransaction();\n r2 = \"SupportLifecycleFragmentImpl\";\n r1 = r1.add(r0, r2);\n r1.commitAllowingStateLoss();\n L_0x003d:\n r1 = zzaoq;\n r2 = new java.lang.ref.WeakReference;\n r2.<init>(r0);\n r1.put(r3, r2);\n goto L_0x0012;\n L_0x0048:\n r0 = move-exception;\n r1 = new java.lang.IllegalStateException;\n r2 = \"Fragment with tag SupportLifecycleFragmentImpl is not a SupportLifecycleFragmentImpl\";\n r1.<init>(r2, r0);\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzpc.zza(android.support.v4.app.FragmentActivity):com.google.android.gms.internal.zzpc\");\n }", "protected void sequence_BACKWARD(ISerializationContext context, BACKWARD semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_YIMPL__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_YIMPL__NAME));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_YIMPL__DISTANCE_CST) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_YIMPL__DISTANCE_CST));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_YIMPL__TEMPS_CST) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_YIMPL__TEMPS_CST));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getBACKWARDAccess().getNameBackwardKeyword_0_0(), semanticObject.getName());\n\t\tfeeder.accept(grammarAccess.getBACKWARDAccess().getDistanceCSTINTTerminalRuleCall_4_0(), semanticObject.getDistanceCST());\n\t\tfeeder.accept(grammarAccess.getBACKWARDAccess().getTempsCSTINTTerminalRuleCall_7_0(), semanticObject.getTempsCST());\n\t\tfeeder.finish();\n\t}", "public void rescanBGPTable() {\n if (this.isWardenAS() && this.poisonMode != AS.ReversePoisonMode.NONE) {\n if (!this.locRib.containsKey(this.asn * -1)) {\n this.advPath(new BGPPath(this.getASN() * -1));\n } else {\n this.dirtyDest.add(this.getASN() * -1);\n }\n }\n\n for (int tDest : this.locRib.keys()) {\n this.recalcBestPath(tDest);\n }\n\n /*\n * If we're a warden and we're in a mode where we're playing around with\n * MPLS games clear out the MPLS table for this round\n */\n if (this.isWardenAS() && this.avoidMode == AS.AvoidMode.LEGACY) {\n this.mplsRoutes.clear();\n }\n }", "public void backward()\n\t{\n\t\tupdateState( MotorPort.BACKWARD);\n\t}", "void reverseH(char arr[],int start) {\nif(arr == null)\n return;\n if(start==(arr.length/2))\n return;\n \n int i=start;\n if(arr[i] != arr[arr.length-1-i])\n {\n arr[i]^=arr[arr.length-1-i];\n arr[arr.length-1-i]^=arr[i];\n arr[i]^=arr[arr.length-1-i];\n }\n reverseH(arr,start+1);\n}", "protected void handleTransliterate(Replaceable text, Transliterator.Position pos, boolean isIncremental)\n/* */ {\n/* 140 */ int start = pos.start;\n/* 141 */ int limit = pos.limit;\n/* */ \n/* */ \n/* */ \n/* 145 */ while (start < limit)\n/* */ {\n/* */ \n/* */ \n/* 149 */ for (int ipat = 0; this.spec[ipat] != 65535;)\n/* */ {\n/* */ \n/* 152 */ int prefixLen = this.spec[(ipat++)];\n/* 153 */ int suffixLen = this.spec[(ipat++)];\n/* 154 */ int radix = this.spec[(ipat++)];\n/* 155 */ int minDigits = this.spec[(ipat++)];\n/* 156 */ int maxDigits = this.spec[(ipat++)];\n/* */ \n/* */ \n/* */ \n/* 160 */ int s = start;\n/* 161 */ boolean match = true;\n/* */ \n/* 163 */ for (int i = 0; i < prefixLen; i++) {\n/* 164 */ if ((s >= limit) && \n/* 165 */ (i > 0))\n/* */ {\n/* */ \n/* */ \n/* */ \n/* 170 */ if (isIncremental) {\n/* */ break label452;\n/* */ }\n/* 173 */ match = false;\n/* 174 */ break;\n/* */ }\n/* */ \n/* 177 */ char c = text.charAt(s++);\n/* 178 */ if (c != this.spec[(ipat + i)]) {\n/* 179 */ match = false;\n/* 180 */ break;\n/* */ }\n/* */ }\n/* */ \n/* 184 */ if (match) {\n/* 185 */ int u = 0;\n/* 186 */ int digitCount = 0;\n/* */ for (;;) {\n/* 188 */ if (s >= limit)\n/* */ {\n/* 190 */ if ((s > start) && (isIncremental)) {\n/* */ break label452;\n/* */ }\n/* */ }\n/* */ else {\n/* 195 */ int ch = text.char32At(s);\n/* 196 */ int digit = UCharacter.digit(ch, radix);\n/* 197 */ if (digit >= 0)\n/* */ {\n/* */ \n/* 200 */ s += UTF16.getCharCount(ch);\n/* 201 */ u = u * radix + digit;\n/* 202 */ digitCount++; if (digitCount == maxDigits)\n/* */ break;\n/* */ }\n/* */ }\n/* */ }\n/* 207 */ match = digitCount >= minDigits;\n/* */ \n/* 209 */ if (match) {\n/* 210 */ for (i = 0; i < suffixLen; i++) {\n/* 211 */ if (s >= limit)\n/* */ {\n/* 213 */ if ((s > start) && (isIncremental)) {\n/* */ break label452;\n/* */ }\n/* 216 */ match = false;\n/* 217 */ break;\n/* */ }\n/* 219 */ char c = text.charAt(s++);\n/* 220 */ if (c != this.spec[(ipat + prefixLen + i)]) {\n/* 221 */ match = false;\n/* 222 */ break;\n/* */ }\n/* */ }\n/* */ \n/* 226 */ if (match)\n/* */ {\n/* 228 */ String str = UTF16.valueOf(u);\n/* 229 */ text.replace(start, s, str);\n/* 230 */ limit -= s - start - str.length();\n/* */ \n/* */ \n/* */ \n/* */ \n/* 235 */ break;\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* 240 */ ipat += prefixLen + suffixLen;\n/* */ }\n/* */ \n/* 243 */ if (start < limit) {\n/* 244 */ start += UTF16.getCharCount(text.char32At(start));\n/* */ }\n/* */ }\n/* */ label452:\n/* 248 */ pos.contextLimit += limit - pos.limit;\n/* 249 */ pos.limit = limit;\n/* 250 */ pos.start = start;\n/* */ }", "@Test\n public void undoCkpointTest() throws Exception {\n final int tableSize = PARAMETERS.NUM_ITERATIONS_LOW;\n final int trimPosition = tableSize / 2;\n final int snapshotPosition = trimPosition + 2;\n\n CountDownLatch latch = new CountDownLatch(1);\n\n t(1, () -> {\n\n CorfuRuntime rt = getNewRuntime();\n try {\n PersistentCorfuTable<String, Long> tableA = openTable(rt, streamNameA);\n\n // first, populate the map\n for (int i = 0; i < tableSize; i++) {\n tableA.insert(String.valueOf(i), (long) i);\n }\n\n // now, take a checkpoint and perform a prefix-trim\n MultiCheckpointWriter<PersistentCorfuTable<String, Long>> mcw1 = new MultiCheckpointWriter<>();\n mcw1.addMap(tableA);\n mcw1.appendCheckpoints(rt, author);\n\n // Trim the log\n Token token = new Token(rt.getLayoutView().getLayout().getEpoch(), trimPosition);\n rt.getAddressSpaceView().prefixTrim(token);\n rt.getAddressSpaceView().gc();\n rt.getAddressSpaceView().invalidateServerCaches();\n rt.getAddressSpaceView().invalidateClientCache();\n\n latch.countDown();\n } finally {\n rt.shutdown();\n }\n });\n\n AtomicBoolean trimExceptionFlag = new AtomicBoolean(false);\n\n // start a new runtime\n t(2, () -> {\n latch.await();\n CorfuRuntime rt = getNewRuntime();\n\n PersistentCorfuTable<String, Long> localm2A = openTable(rt, streamNameA);\n\n // start a snapshot TX at position snapshotPosition\n Token timestamp = new Token(0L, snapshotPosition - 1);\n rt.getObjectsView().TXBuild()\n .type(TransactionType.SNAPSHOT)\n .snapshot(timestamp)\n .build()\n .begin();\n\n // finally, instantiate the map for the snapshot and assert is has the right state\n try {\n localm2A.get(String.valueOf(0));\n } catch (TransactionAbortedException te) {\n assertThat(te.getAbortCause()).isEqualTo(AbortCause.TRIM);\n // this is an expected behavior!\n trimExceptionFlag.set(true);\n }\n\n try {\n if (!trimExceptionFlag.get()) {\n assertThat(localm2A.size())\n .isEqualTo(snapshotPosition);\n\n // check map positions 0..(snapshot-1)\n for (int i = 0; i < snapshotPosition; i++) {\n assertThat(localm2A.get(String.valueOf(i)))\n .isEqualTo(i);\n }\n\n // check map positions snapshot..(mapSize-1)\n for (int i = snapshotPosition; i < tableSize; i++) {\n assertThat(localm2A.get(String.valueOf(i))).isNull();\n }\n }\n } finally {\n rt.shutdown();\n }\n });\n }" ]
[ "0.58007646", "0.5768078", "0.5660628", "0.54945165", "0.5448871", "0.5415577", "0.53952044", "0.53653187", "0.5328834", "0.53114504", "0.5283601", "0.5279092", "0.5269012", "0.5254854", "0.52253675", "0.52123916", "0.52075607", "0.5165904", "0.5163675", "0.51573646", "0.5156558", "0.51081645", "0.509812", "0.5096361", "0.50955796", "0.5090263", "0.507972", "0.5076996", "0.50716066", "0.5064755", "0.50593096", "0.5056032", "0.5056032", "0.5047551", "0.5024936", "0.5015781", "0.49982706", "0.49974692", "0.49889207", "0.49868098", "0.49802414", "0.4972992", "0.49722904", "0.49639097", "0.4959345", "0.49532843", "0.49498352", "0.4922339", "0.49087697", "0.488201", "0.48793024", "0.4878079", "0.48778194", "0.4873144", "0.48671183", "0.48584646", "0.4857776", "0.48502925", "0.48458773", "0.4838372", "0.4834735", "0.48326397", "0.48310813", "0.48248672", "0.48230192", "0.48174763", "0.48088604", "0.4802951", "0.4802228", "0.478655", "0.47858018", "0.47769368", "0.4776773", "0.4773297", "0.47711802", "0.47690713", "0.47682026", "0.4740508", "0.4729927", "0.47288892", "0.47257623", "0.4721193", "0.47170973", "0.47163293", "0.4715795", "0.47153792", "0.47105116", "0.47095123", "0.47027797", "0.47003308", "0.46910584", "0.46906856", "0.46865973", "0.46784276", "0.4675536", "0.4671404", "0.46631867", "0.46620032", "0.4658605", "0.46580824", "0.46554577" ]
0.0
-1
Write clean data to MockBase that can be overridden by individual unit tests
private void setupMockBase() { storage = new MockBase(tsdb, client, true, true, true, true); storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, METRICS, Bytes.fromLong(2L)); storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGK, Bytes.fromLong(2L)); storage.addColumn(UID_TABLE, new byte[] { 0 }, ID_FAMILY, TAGV, Bytes.fromLong(2L)); // forward mappings storage.addColumn(UID_TABLE, "foo".getBytes(MockBase.ASCII()), ID_FAMILY, METRICS, new byte[] {0, 0, 1}); storage.addColumn(UID_TABLE, "host".getBytes(MockBase.ASCII()), ID_FAMILY, TAGK, new byte[] {0, 0, 1}); storage.addColumn(UID_TABLE, "web01".getBytes(MockBase.ASCII()), ID_FAMILY, TAGV, new byte[] {0, 0, 1}); storage.addColumn(UID_TABLE, "bar".getBytes(MockBase.ASCII()), ID_FAMILY, METRICS, new byte[] {0, 0, 2}); storage.addColumn(UID_TABLE, "dc".getBytes(MockBase.ASCII()), ID_FAMILY, TAGK, new byte[] {0, 0, 2}); storage.addColumn(UID_TABLE, "web02".getBytes(MockBase.ASCII()), ID_FAMILY, TAGV, new byte[] {0, 0, 2}); // reverse mappings storage.addColumn(UID_TABLE, new byte[] {0, 0, 1}, NAME_FAMILY, METRICS, "foo".getBytes(MockBase.ASCII())); storage.addColumn(UID_TABLE, new byte[] {0, 0, 1}, NAME_FAMILY, TAGK, "host".getBytes(MockBase.ASCII())); storage.addColumn(UID_TABLE, new byte[] {0, 0, 1}, NAME_FAMILY, TAGV, "web01".getBytes(MockBase.ASCII())); storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, METRICS, "bar".getBytes(MockBase.ASCII())); storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, TAGK, "dc".getBytes(MockBase.ASCII())); storage.addColumn(UID_TABLE, new byte[] {0, 0, 2}, NAME_FAMILY, TAGV, "web02".getBytes(MockBase.ASCII())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testSetBasedata() {\n }", "@Override\n public void setUp() {\n super.setUp();\n buffer.setLength(0);\n }", "@Before\n public void setUp() {\n InternalDataSerializer.reinitialize();\n }", "public void resetMocking() {\n mockGraphReadMethods = mock(GraphReadMethods.class);\n mockGraphWriteMethods = mock(GraphWriteMethods.class);\n mockJsonNode = mock(JsonNode.class);\n mockJsonGenerator = mock(JsonGenerator.class);\n mockCache = mock(ImmutableObjectCache.class);\n }", "protected void forceMockUpMode(){\n teardown();\n }", "@BeforeEach\n void setUp(){\n DatabaseTwo database = DatabaseTwo.getInstance();\n database.runSQL(\"cleanAll.sql\");\n\n genericDao = new GenericDao(CompositionInstrument.class);\n }", "@Before\n public void setUp() {\n //clearDbData();//having some trouble\n }", "@BeforeEach\n public void setUp() throws IOException {\n String testFile = \"testinventory.txt\";\n // Use the FileWriter to quickly blank the file\n new FileWriter(testFile);\n testDao = new VendingMachineDaoFileImpl(testFile);\n }", "@TestOnly\n void clear() throws IOException;", "@Override\n\tpublic void saveTestingData() {\n\t\t\n\t}", "@AfterClass\n\tpublic static void teardown() {\n\t\tdataMunger = null;\n\n\t}", "public void mock(){\n\n }", "@BeforeEach\n void clean() throws IOException {\n client.deleteMXRec(fqdn);\n client.deleteMXRec(newFqdn);\n }", "@Before\n public void setUp() {\n this.file = null;\n }", "void resetTesting() {\r\n\t\tcompanyCars.clear();\r\n\t\trentDetails.clear();\r\n\t}", "@Before\n public void setup() {\n Helpers.fillData();\n }", "@BeforeClass\n public static void clean() {\n DatabaseTest.clean();\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 }", "private Mocks() { }", "@Override\n protected void setUp() throws Exception {\n baseDirectory = new File(TEST_DIR_NAME);\n assertTrue(ConnectorTestUtils.deleteAllFiles(baseDirectory));\n // Then recreate it empty\n assertTrue(baseDirectory.mkdirs());\n }", "@Override\n @Before\n public void setUp() throws IOException {\n }", "public abstract void clean();", "public abstract void clean();", "public abstract void clean();", "@Before\n public void setUp() throws Exception {\n fs = new MockFileSystem();\n mv = new Mv(fs);\n io = new IO();\n }", "public void setUp() throws Exception {\n super.setUp();\n TestHelper.clearTemp();\n }", "@Before\n\tpublic void setUp()\n\t{\n\t\tm_mockery = new Mockery();\n\t\tm_values = m_mockery.mock(KeyedValues.class);\n\t}", "@BeforeEach\n void setUp() {\n\n Database database = Database.getInstance();\n database.runSQL(\"cleanDb.sql\");\n\n\n genericDao = new GenericDao(UserRoles.class);\n }", "void unsetCompanyBaseData();", "@AfterClass\n public void cleanUp() {\n }", "@BeforeEach\n\tpublic void cleanDataBase()\n\t{\n\t\taddRepo.deleteAll()\n\t\t.as(StepVerifier::create) \n\t\t.verifyComplete();\n\t\t\n\t\tdomRepo.deleteAll()\n\t\t.as(StepVerifier::create) \n\t\t.verifyComplete();\n\t}", "protected void tearDown() {\r\n instance = null;\r\n columnNames = null;\r\n }", "private DataClayMockObject() {\n\n\t}", "public void clean() {\n\t\tdata = new ServerData();\n\t\tdataSaver.clean();\n\t}", "@BeforeMethod(alwaysRun = true)\n protected void setUp()\n {\n for (final MetricName metricName : Metrics.defaultRegistry().allMetrics().keySet()) {\n Metrics.defaultRegistry().removeMetric(metricName);\n }\n\n httpHeaders = Mockito.mock(HttpHeaders.class);\n request = Mockito.mock(HttpServletRequest.class);\n filterRequestHandler = Mockito.mock(EventFilterRequestHandler.class);\n deserializerFactory = Mockito.mock(EventDeserializerFactory.class);\n eventDeserializer = new MockEventDeserializer();\n\n Mockito.verifyZeroInteractions(httpHeaders, request, filterRequestHandler, deserializerFactory);\n }", "@Before\n public void setUp() {\n baseConfig.setString(\"cache\", \"changes\", \"memoryLimit\", \"0\");\n baseConfig.setString(\"cache\", \"projects\", \"memoryLimit\", \"0\");\n }", "public void cleanupData() {\n\t}", "@Before\n public void setup(){\n output = new TestingOutputInterface();\n mLogic = new Logic(output);\n \n System.err.flush();\n System.out.flush();\n myOut = new ByteArrayOutputStream();\n myErr = new ByteArrayOutputStream();\n System.setOut(new PrintStream(myOut));\n System.setErr(new PrintStream(myErr));\n }", "@Disabled\n\t@Test\n\tpublic void testUnexpectedCallToMock(){\n\t\twarehouseMock.remove(\"cola\",2);\n\t\treplay(warehouseMock);\n\t\tOrder order = new Order(SPRITE,11);\n\t\torder.fill(warehouseMock);\n\t\tverify(warehouseMock);\n\n\t}", "public abstract void cleanUp();", "public static void tearDown() {\n reset();\n clear();\n APIConfig.getInstance().setAppId(null, null);\n APIConfig.getInstance().setDeviceId(null);\n APIConfig.getInstance().setToken(null);\n APIConfig.getInstance().setUserId(null);\n Leanplum.setApplicationContext(null);\n }", "@Override\n public void tearDown() {\n getLocalLogService().clear(); \n }", "@BeforeClass\n\tpublic static void setup() {\n\t\tdataMunger = new DataMunger();\n\n\t}", "@Before\n public void setUp() throws Exception{\n sDataManager.getmNotes().clear();//before the test runs it should have an empty note\n sDataManager.initializeExampleNote();\n }", "public Builder clearMockUpdates() {\n copyOnWrite();\n instance.clearMockUpdates();\n return this;\n }", "protected void clearData() {\n any.type(any.type());\n }", "private void setUpMockObjects() {\n this.request = new CustomMockHttpServletRequest();\n byte[] content = { 4, 6, 7 };\n ServletInputStream inputStream = new DelegatingServletInputStream(\n new ByteArrayInputStream(content));\n this.request.inputStream = inputStream;\n\n this.response = new MockHttpServletResponse();\n\n this.setUpXmlRpcElementFactory();\n this.setUpXmlRpcRequestParser();\n this.setUpXmlRpcResponseWriter();\n this.setUpXmlRpcServiceExporterMap();\n }", "protected void tearDown() {\n // empty\n }", "@Override\n public void teardown() {\n }", "@Override\r\n protected void tearDown()\r\n {\r\n seed = null;\r\n island = null;\r\n position = null;\r\n }", "@BeforeEach\n void setUp() {\n\n\n // repopulate the table I'm testing\n com.lukebusch.test.util.Database database = com.lukebusch.test.util.Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n\n genericDao = new GenericDao( User.class );\n\n }", "@Override\n public void afterPropertiesSet() throws Exception {\n mockSolrServer = new MockSolrServer(\"statistics\");\n solr = mockSolrServer.getSolrServer();\n\n // Mock GeoIP's DatabaseReader\n DatabaseReader reader = mock(DatabaseReader.class);\n // Ensure that any tests requesting a city() get a mock/fake CityResponse\n Mockito.lenient().when(reader.city(any(InetAddress.class))).thenReturn(mockCityResponse());\n // Save this mock DatabaseReader to be used by SolrLoggerService\n locationService = reader;\n }", "@Override\n public void cleanUp() {\n }", "@After\n public void tearDown() {\n GWTMockUtilities.restore();\n }", "protected void setUp() {\r\n auditDetail = new AuditDetail();\r\n }", "@After\r\n public void cleanTestObject()\r\n {\r\n testLongTermStorage.resetInventory();\r\n }", "public void tearDown() throws Exception {\n TestHelper.clearTemp();\n super.tearDown();\n }", "@Override\n protected void tearDown() {\n }", "@Before\n public void setUp() throws Exception {\n solution2.count = 0;\n solution4.map.clear();\n }", "@Before\n\tpublic void setup(){\n\t\ttarget = new MakeDaoImpl();\n\t\tmockEm = mock(EntityManager.class);\n\t\ttarget.setEm(mockEm);\n\t}", "@After\n @Override\n public void tearDown() throws Exception {\n execute(\"alter table t1 set (\\\"blocks.read_only\\\" = false)\");\n execute(\"alter table t1 set (\\\"blocks.metadata\\\" = false)\");\n super.tearDown();\n }", "@Before\n public void setUp() {\n boiler1 = Boiler1.getUniqueInstance();\n boiler1.boiled = false;\n boiler1.empty = true;\n }", "public void testGetBasedata() {\n }", "protected void setUp() {\n //Clear all namespace in the ConfigManager\n TestHelper.resetConfig();\n }", "@Override\n public void clean() {\n\n }", "@After\n public void cleanUp(){\n mockUserRepo = null;\n mockSession = null;\n sut = null;\n }", "public abstract void tearDown();", "@Test\n public void shouldDeleteAllDataInDatabase(){\n }", "@Override\r\n public void tearDown() throws Exception {\r\n super.tearDown();\r\n clearSqlLogHandler();\r\n }", "@BeforeEach\n\tpublic void setUpPerTest() {\n\t\tmockList = new ArrayList<>();\n\t\tPerson index0 = new Person(\"John\", \"Boyd\", \"1509 Culver St\", \"Culver\", \"97451\", \"841-874-6512\",\n\t\t\t\t\"[email protected]\");\n\t\tPerson index1 = new Person(\"Lily\", \"Cooper\", \"489 Manchester St\", \"Culver\", \"97451\", \"841-874-9845\",\n\t\t\t\t\"[email protected]\");\n\t\tPerson index2 = new Person(\"Tenley\", \"Boyd\", \"1509 Culver St\", \"Culver\", \"97451\", \"841-874-6512\",\n\t\t\t\t\"[email protected]\");\n\t\tPerson index3 = new Person(\"Jonanathan\", \"Marrack\", \"29 15th St\", \"Culver\", \"97451\", \"841-874-6513\",\n\t\t\t\t\"[email protected]\");\n\t\tmockList.add(index0);\n\t\tmockList.add(index1);\n\t\tmockList.add(index2);\n\t\tmockList.add(index3);\n\n\t\tmockListMedicalRecord = new ArrayList<>();\n\t\tMedicalRecord indexMedicalRecord0 = new MedicalRecord(\"John\", \"Boyd\", \"03/06/1984\",\n\t\t\t\tnew ArrayList<>(Arrays.asList(\"aznol:350mg\", \"hydrapermazol:100mg\")),\n\t\t\t\tnew ArrayList<>(Arrays.asList(\"nillacilan\")));\n\t\tMedicalRecord indexMedicalRecord1 = new MedicalRecord(\"Lily\", \"Cooper\", \"03/06/1994\", new ArrayList<>(),\n\t\t\t\tnew ArrayList<>());\n\t\tMedicalRecord indexMedicalRecord2 = new MedicalRecord(\"Tenley\", \"Boyd\", \"02/08/2012\",\n\t\t\t\tnew ArrayList<>(Arrays.asList()), new ArrayList<>(Arrays.asList(\"peanut\")));\n\t\tMedicalRecord indexMedicalRecord3 = new MedicalRecord(\"Jonanathan\", \"Marrack\", \"01/03/1989\",\n\t\t\t\tnew ArrayList<>(Arrays.asList()), new ArrayList<>(Arrays.asList()));\n\t\tmockListMedicalRecord.add(indexMedicalRecord0);\n\t\tmockListMedicalRecord.add(indexMedicalRecord1);\n\t\tmockListMedicalRecord.add(indexMedicalRecord2);\n\t\tmockListMedicalRecord.add(indexMedicalRecord3);\n\n\t\tpersonServiceTest = PersonService.builder().personDAO(personDAOMock).build();\n\t}", "@Before\n public void setUp() throws IOException, IllegalCharacterException {\n readOnlys.add(\"readonlyUser1\");\n readOnlys.add(\"readonlyUser2\");\n readOnlys.add(\"readonlyUser3\");\n readAndWrites.add(\"adminUser1\");\n readAndWrites.add(\"adminUser2\");\n \n testRepo1 = new Repository(\"test-repo-name1\",\n \"repository-owner\", readAndWrites, readOnlys, \"p1\", null);\n testRepo1a = new Repository(\"test-repo-name1\",\n \"other-owner\", emptyList, readOnlys, \"p1\", null);\n testRepo2 = new Repository(\"test-repo-name2\",\n \"other-owner\", readAndWrites, emptyList, \"p2\", null);\n\n ConfigDatabase.instance().deleteAll();\n }", "@Test\n public void testWriteOrderData() throws Exception {\n dao.loadEnvironmentVariable();\n Order writeOrder = new Order();\n\n writeOrder.setOrderNumber(1);\n writeOrder.setOrderDate(LocalDate.parse(\"1901-01-01\"));\n writeOrder.setCustomer(\"Write Test\");\n writeOrder.setTax(new Tax(\"OH\", new BigDecimal(\"6.25\")));\n writeOrder.setProduct(new Product(\"Wood\", new BigDecimal(\"5.15\"), new BigDecimal(\"4.75\")));\n writeOrder.setArea(new BigDecimal(\"100.00\"));\n writeOrder.setMaterialCost(new BigDecimal(\"515.00\"));\n writeOrder.setLaborCost(new BigDecimal(\"475.00\"));\n writeOrder.setTaxCost(new BigDecimal(\"61.88\"));\n writeOrder.setTotal(new BigDecimal(\"1051.88\"));\n\n dao.addOrder(writeOrder);\n dao.writeOrderData();\n\n File orderFile = new File(System.getProperty(\"user.dir\") + \"/Orders_01011901.txt\");\n\n assertTrue(orderFile.exists());\n\n Files.deleteIfExists(Paths.get(System.getProperty(\"user.dir\") + \"/Orders_01011901.txt\"));\n\n }", "public void testMock(){\n\t}", "void cleanUp() throws IOException;", "@Override\n public void clearData() {\n }", "@Test\n\tpublic void testSetIgnoreFlush() {\n\t}", "@Override\n protected void populateDomain() {\n // Need to invoke super to create a test user that is responsible for data population \n super.populateDomain();\n \n // Here is how the Test Case universal constants can be set.\n // In this case the notion of now is overridden, which makes it possible to have an invariant system-time.\n // However, the now value should be after AbstractDaoTestCase.prePopulateNow in order not to introduce any date-related conflicts.\n final UniversalConstantsForTesting constants = (UniversalConstantsForTesting) getInstance(IUniversalConstants.class);\n constants.setNow(dateTime(\"2019-10-01 11:30:00\"));\n \n // If the use of saved data population script is indicated then there is no need to proceed with any further data population logic.\n if (useSavedDataPopulationScript()) {\n return;\n }\n \n save(new_(AssetClass.class).setName(\"AC1\").setDesc(\"The first asset class.\"));\n save(new_(AssetClass.class).setName(\"AC2\").setDesc(\"The second asset class.\"));\n }", "@AfterEach\n public void teardown() {\n mockDAO = null;\n addFlight = null;\n flight = null;\n }", "@Before\n public void setUp() throws IkatsDaoException {\n Facade.removeAllMacroOp();\n }", "@After\n public void tearDown() {\n try {\n this.c19.clear();\n }\n catch(NullPointerException e){\n log.info(\"NullPointerException caught\");\n }\n }", "private void clearData() {}", "protected void cleaningUp() {\n\t}", "abstract void tearDown() throws Exception;", "@Override\n public void tearDown() {\n setName(caseLabel + '-' + getName());\n\n if (env != null) {\n try {\n closeAll();\n } catch (Throwable e) {\n System.out.println(\"During tearDown: \" + e);\n }\n }\n envHome = null;\n env = null;\n store = null;\n caseCls = null;\n caseObj = null;\n caseLabel = null;\n\n /* Do not delete log files so they can be used by 2nd phase of test. */\n }", "@After\n public void cleanDatabaseTablesAfterTest() {\n databaseCleaner.clean();\n }", "@Override public void setUp() throws Exception {\n\t\tsuper.setUp();\n\t\toauth = new OAuthSource(getInstrumentation().getContext());\n\t\toauth.storage = spy(oauth.storage);\n\t\toauth.storage.invalidate();\n\t}", "@BeforeClass\n\tpublic static void setUp() throws Exception {\n\t\tModel.loadFiles();\n\t\tFileOutputStream writer = new FileOutputStream(Model.file,true);\n\t\tFileOutputStream userWriter = new FileOutputStream(Model.userFile, true);\n\t\tModel.hash.remove(item);\n\t\tModel.prop.remove(item);\n\t\tModel.prop.putAll(Model.hash);\n\t\tModel.prop.store(writer,null); //writes to file\n\t\twriter.close();\n\t\t\n\t\tModel.users.remove(username);\n\t\tModel.userProp.remove(username);\n\t\tModel.userProp.putAll(Model.users);\n\t\tModel.userProp.store(userWriter,null); //writes to file\n\t\twriter.close();\n\t}", "@Override\n public void setUp() {\n deleteTheDatabase();\n }", "@BeforeEach\n void setUp() {\n dao = new GenericDao(User.class);\n Database database = Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n }", "public void setUp() {\n deleteAllRecords();\n }", "public void setUp() {\n super.setUp();\n dbSessionClearCache();\n if(!compare()) {\n clear();\n populate();\n }\n dbSessionClearCache();\n }", "@BeforeEach\n void setUp() {\n\n Database database = Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n\n genericDao = new GenericDao(Event.class);\n }", "protected void tearDown() throws Exception {\n\n InvoiceDAOFactory.clear();\n TestHelper.clearNamespaces();\n super.tearDown();\n }", "protected void tearDown() throws Exception {\r\n super.tearDown();\r\n clearFiles();\r\n StressTestHelper.clearConfig();\r\n }", "protected void clearData()\r\n {\r\n System.getProperties().put(\"https.proxyHost\", \"\");\r\n System.getProperties().put(\"https.proxyPort\", \"\");\r\n System.getProperties().put(\"http.proxyHost\", \"\");\r\n System.getProperties().put(\"http.proxyPort\", \"\");\r\n proxyScheme = null;\r\n proxyName = null;\r\n proxyPswd = null;\r\n proxyRealm = null;\r\n proxyPort = null;\r\n proxyHost = null;\r\n been_here = false;\r\n success = false;\r\n message = null;\r\n }", "protected void setUp() {\n // set up for test\n instance = new GeneralizationImpl();\n GeneralizableElement mockChild = EasyMock.createMock(GeneralizableElement.class);\n GeneralizableElement mockParent = EasyMock.createMock(GeneralizableElement.class);\n Classifier mockPowertype = EasyMock.createMock(Classifier.class);\n instance.setChild(mockChild);\n instance.setDiscriminator(TEST_DISCRIMINATORS[0]);\n instance.setParent(mockParent);\n instance.setPowertype(mockPowertype);\n\n }", "@After\n public void tearDown()\n {\n mockDependencies.verifyMocks();\n mockDependencies = null;\n assertNull(\"'mockDependencies' should be null at the end of teardown\", mockDependencies);\n\n parser = null;\n assertNull(\"'parser' should be null at the end of teardown\", parser);\n }", "@BeforeEach\n void setUp() {\n Database database = Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n\n noteDao = new GenericDao(Note.class);\n }", "@After\n\tpublic void tearDown() {}", "@Before\n public void setUp() {\n Log.getFindings().clear();\n Log.enableFailQuick(false);\n }" ]
[ "0.61424744", "0.6128162", "0.5969096", "0.5964375", "0.5844477", "0.5807547", "0.58057296", "0.56179035", "0.5611144", "0.56021595", "0.5600329", "0.5565159", "0.5552217", "0.55408216", "0.5533517", "0.5507149", "0.54808944", "0.54764694", "0.547547", "0.5461207", "0.5457291", "0.54442227", "0.54442227", "0.54442227", "0.5443434", "0.5428839", "0.5411585", "0.5384269", "0.536656", "0.53530747", "0.5346775", "0.53411746", "0.53378904", "0.53254664", "0.53169364", "0.53088456", "0.53019065", "0.52989614", "0.5285297", "0.5282579", "0.5280468", "0.5279725", "0.5276643", "0.52759016", "0.52707195", "0.5270044", "0.52683794", "0.5258855", "0.5255884", "0.5245271", "0.5244081", "0.52328014", "0.52325904", "0.523154", "0.52307", "0.5224754", "0.5220363", "0.52185446", "0.52173424", "0.5213954", "0.5211325", "0.52111685", "0.5209889", "0.5200659", "0.5198939", "0.51964974", "0.51931506", "0.5188006", "0.5187706", "0.5184013", "0.5150213", "0.51478213", "0.5144209", "0.5140758", "0.5136227", "0.513483", "0.5127848", "0.51233834", "0.5123344", "0.5115283", "0.51146126", "0.51145655", "0.5109481", "0.5107447", "0.51038355", "0.5102746", "0.51001185", "0.5092304", "0.5085374", "0.5080446", "0.5079572", "0.5078065", "0.50777274", "0.5072733", "0.50709915", "0.50636935", "0.5060349", "0.50458384", "0.50457436", "0.50428355" ]
0.55357057
14
TODO Autogenerated method stub
@Override public UserActionDTO updateSource(UserActionEntity entity, UserActionDTO dto) { return null; }
{ "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 apple on 2017/7/17.
public interface IEmailCodeService { EmailCode selectActiveCode(String username); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "private static void cajas() {\n\t\t\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\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo38117a() {\n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tprotected void interr() {\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 }", "public void mo4359a() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n void init() {\n }", "@Override\n public void init() {\n }", "private void strin() {\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\tpublic void nadar() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "private void init() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\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}", "private Rekenhulp()\n\t{\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}", "public void mo21877s() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n protected void getExras() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private final zzgy zzgb() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override public int describeContents() { return 0; }", "public void mo55254a() {\n }", "@Override\n protected void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void initialize() { \n }", "protected MetadataUGWD() {/* intentionally empty block */}", "public void method_4270() {}", "private void getStatus() {\n\t\t\n\t}", "@Override\n public int getSize() {\n return 1;\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "protected void mo6255a() {\n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\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 init() {\n\n\n\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "Consumable() {\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}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}" ]
[ "0.58616", "0.5768858", "0.55616903", "0.55497026", "0.5499253", "0.54966736", "0.547294", "0.547294", "0.5470073", "0.5468112", "0.5448479", "0.5432531", "0.54235774", "0.53448766", "0.5327282", "0.53167737", "0.53113955", "0.5302022", "0.5300604", "0.52729017", "0.52541184", "0.52529925", "0.52529925", "0.52529925", "0.52529925", "0.52529925", "0.52529925", "0.52439445", "0.52366513", "0.5235866", "0.5233319", "0.5231304", "0.52224314", "0.52055913", "0.520307", "0.52028865", "0.52028865", "0.52028865", "0.52028865", "0.52028865", "0.52028865", "0.52028865", "0.5200518", "0.520031", "0.51954293", "0.5175411", "0.5175077", "0.5171645", "0.51631105", "0.51630783", "0.51582664", "0.51389736", "0.51389736", "0.51389736", "0.51389736", "0.51389736", "0.5137781", "0.51343066", "0.51343066", "0.5128659", "0.5127578", "0.5127578", "0.5119246", "0.5119128", "0.51090884", "0.5106968", "0.5103485", "0.5100342", "0.50990444", "0.5095902", "0.5090807", "0.5081788", "0.50813574", "0.50789315", "0.50789315", "0.50787574", "0.5076738", "0.5073683", "0.5060993", "0.50596714", "0.50507206", "0.5047917", "0.5044476", "0.50429803", "0.504174", "0.5040882", "0.50399923", "0.5036384", "0.5035096", "0.5030237", "0.5030237", "0.5030237", "0.50272036", "0.50265855", "0.50245386", "0.50206864", "0.50206864", "0.50206864", "0.5019734", "0.50137544", "0.50137544" ]
0.0
-1
this will fail if they are fed thru the string overload
@Test public void overloadingWorks() { assertThat(eval("10>5"), equalTo(c(true))); assertThat(eval("10L>5L"), equalTo(c(true))); assertThat(eval("TRUE>FALSE"), equalTo(c(true))); assertThat(eval("'one' > 'zed'"), equalTo(c(false))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\t public void teststringAPI_fail() {\n\t\tString testData = \"Caps is not considered the same\";\n\t\tchar charData='c';\n\t\tString expected = \"aps is not onsidered the same\";\n\t\tString actualStr=stringObj.stringAPI(testData, charData);\n\t\tassertNotSame(\"Got Expected Result\", expected, actualStr);\n\t }", "@Override\n\t\tprotected boolean handleIrregulars(String s) {\n\t\t\treturn false;\n\t\t}", "public boolean canProvideString();", "public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }", "public void testCheckString() {\n Util.checkString(\"test\", \"test\");\n }", "public void testFromString()\n {\n // An empty board\n assertEquals(b1.toString(), \"EEEEEEEEE\");\n b1.fromString(\"EEEEEEEEE\");\n assertEquals(b1.toString(), \"EEEEEEEEE\");\n\n // An arbitrary complex but valid case\n b1.fromString(\"RRRBEEBBE\");\n assertEquals(b1.toString(), \"RRRBEEBBE\");\n\n // Wrong string length\n try { b1.fromString(\"E\"); }\n catch (Exception e)\n {\n assertEquals(e.getClass(),\n (new IllegalArgumentException()).getClass());\n assertEquals(e.getMessage(), \"Your state identifying \" +\n \"string is the wrong length. It must be nine characters\" +\n \" long with no spaces.\");\n }\n\n // Invalid cell characters\n try { b1.fromString(\"XXXXXXXXX\"); }\n catch (Exception e)\n {\n assertEquals(e.getClass(),\n (new IllegalArgumentException()).getClass());\n assertEquals(e.getMessage(), \"Your string has a \" +\n \"value in it that doesn't match one of our cell \" +\n \"types.\");\n }\n\n }", "@Override\n\t\tprotected String[] handleIrregulars(String s) {\n\t\t\treturn null;\n\t\t}", "private void error(String string) {\n\t\r\n}", "public void testCtorStr_Failure2() throws Exception {\n try {\n new RenameConverter(\" \");\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException e) {\n //success\n }\n }", "@Test\n\tpublic void prototype() {\n\t\tassertEquals(parseString().parse(\"abc\").toString(), \"abc\");\n\t\tassertEquals(parseString().parse(\"asDSD2_ff\").toString(), \"asDSD2_ff\");\n\n\t}", "@Override\n public void handleString(String s) {\n\n }", "@Test\n\tvoid testImplementStrStr() {\n\t\tassertEquals(2, new ImplementStrStr().strStr(\"hello\", \"ll\"));\n\t\tassertEquals(-1, new ImplementStrStr().strStr(\"aaaaa\", \"bba\"));\n\t\tassertEquals(4, new ImplementStrStr().strStr(\"mississippi\", \"issip\"));\n\t\tassertEquals(-1, new ImplementStrStr().strStr(\"mississippi\", \"issipi\"));\n\t\tassertEquals(0, new ImplementStrStr().strStr(\"a\", \"a\"));\n\t\tassertEquals(0, new ImplementStrStr().strStr(\"aaaaa\", \"\"));\n\t\tassertEquals(-1, new ImplementStrStr().strStr(\"a\", \"aaaaa\"));\n\t}", "public void testValueOfString()\n {\n // test a null string case\n try\n {\n /*EthernetAddress ethernet_address =*/\n EthernetAddress.valueOf((String)null);\n fail(\"Expected exception not caught\");\n }\n catch (NullPointerException ex)\n {\n // this is the success case so do nothing\n }\n catch (Exception ex)\n {\n fail(\"Caught unexpected exception: \" + ex);\n } \n \n // test some failure cases for the string constructor\n badStringValueOfHelper(IMPROPER_NUM_COLONS_ETHERNET_ADDRESS_STRING_1);\n badStringValueOfHelper(IMPROPER_NUM_COLONS_ETHERNET_ADDRESS_STRING_2);\n badStringValueOfHelper(IMPROPER_NUM_COLONS_ETHERNET_ADDRESS_STRING_3);\n badStringValueOfHelper(IMPROPER_NUM_COLONS_ETHERNET_ADDRESS_STRING_4);\n badStringValueOfHelper(IMPROPER_NUM_COLONS_ETHERNET_ADDRESS_STRING_5);\n badStringValueOfHelper(IMPROPER_NUM_COLONS_ETHERNET_ADDRESS_STRING_6);\n badStringValueOfHelper(NON_HEX_ETHERNET_ADDRESS_STRING);\n badStringValueOfHelper(RANDOM_PROPER_LENGTH_STRING);\n \n // some valid strings for the various dropped digit cases\n goodStringValueOfHelper(FIRST_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n FIRST_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(FIRST_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n FIRST_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(FIRST_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n FIRST_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(SECOND_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n SECOND_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(SECOND_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n SECOND_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(SECOND_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n SECOND_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(THIRD_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n THIRD_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(THIRD_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n THIRD_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(THIRD_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n THIRD_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(FOURTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n FOURTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(FOURTH_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n FOURTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(FOURTH_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n FOURTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(FIFTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n FIFTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(FIFTH_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n FIFTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(FIFTH_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n FIFTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(SIXTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n SIXTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(SIXTH_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n SIXTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(SIXTH_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n SIXTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(MIXED_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n MIXED_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(MIXED_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n MIXED_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(MIXED_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n MIXED_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n \n // test the other good cases\n goodStringValueOfHelper(NULL_ETHERNET_ADDRESS_STRING,\n NULL_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(UPPER_CASE_VALID_ETHERNET_ADDRESS_STRING,\n UPPER_CASE_VALID_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(LOWER_CASE_VALID_ETHERNET_ADDRESS_STRING,\n LOWER_CASE_VALID_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(MIXED_CASE_VALID_ETHERNET_ADDRESS_STRING,\n MIXED_CASE_VALID_ETHERNET_ADDRESS_STRING);\n }", "abstract String mo1747a(String str);", "@Test\n\t public void teststringAPI_success() {\n\t\tString testData = \"My data is right\";\n\t\tchar charData='a';\n\t\tString expected = \"My dt is right\";\n\t\tString actualStr=stringObj.stringAPI(testData, charData);\n\t\tSystem.out.println(actualStr);\n\t\tassertEquals(\"Got Expected Result\", expected, actualStr);\n\t }", "public void fixmetestPositiveStringArray() {\n\n fail(\"Array conversions not implemented yet.\");\n\n Object value;\n final String[] stringArray = {};\n final String[] stringArray1 = { \"abc\" };\n final String[] stringArray2 = { \"abc\", \"de,f\" };\n\n value = LocaleConvertUtils.convert(\"\", stringArray.getClass());\n checkStringArray(value, stringArray);\n value = LocaleConvertUtils.convert(\" \", stringArray.getClass());\n checkStringArray(value, stringArray);\n value = LocaleConvertUtils.convert(\"{}\", stringArray.getClass());\n checkStringArray(value, stringArray);\n value = LocaleConvertUtils.convert(\"{ }\", stringArray.getClass());\n checkStringArray(value, stringArray);\n\n value = LocaleConvertUtils.convert(\"abc\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"{abc}\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"\\\"abc\\\"\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"{\\\"abc\\\"}\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"'abc'\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"{'abc'}\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n\n value = LocaleConvertUtils.convert(\"abc 'de,f'\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"{abc, 'de,f'}\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"\\\"abc\\\",\\\"de,f\\\"\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"{\\\"abc\\\" 'de,f'}\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"'abc' 'de,f'\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"{'abc', \\\"de,f\\\"}\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n\n }", "void mo1886a(String str, String str2);", "@Test public void readStringDescriptionsNotJustSingleWord() {\n fail( \"Not yet implemented\" );\n }", "@Test\n\tvoid testCheckString4() {\n\t\tassertFalse(DataChecker.checkString((String)null));\n\t}", "public abstract void mo70715b(String str, String str2);", "void mo37759a(String str);", "protected testString(String text)\r\n\t{\r\n\t\tthis.text = text;\r\n\t}", "@Override\r\n\tpublic String testString(String string) {\n\t\treturn \"test -- hhh\";\r\n\t}", "void mo1331e(String str, String str2);", "@Test\n\tpublic void testToString() {\n\t\tassertEquals(\"Proper string format\", basic.toString(), \"5, 5\");\n\t}", "@Test\n\tpublic void test_TCC___String_String() {\n\t\tfinal Attribute attribute = new Attribute(\"test\", \"value\");\n assertTrue(attribute.isSpecified());\n\t\tassertTrue(\"incorrect attribute name\", attribute.getName().equals(\"test\"));\n assertTrue(\"incoorect attribute value\", attribute.getValue().equals(\"value\"));\n assertEquals(\"incorrect attribute type\", attribute.getAttributeType(), Attribute.UNDECLARED_TYPE);\n\n //should have been put in the NO_NAMESPACE namespace\n\t\tassertTrue(\"incorrect namespace\", attribute.getNamespace().equals(Namespace.NO_NAMESPACE));\n\n\n\t\ttry {\n\t\t\tnew Attribute(null, \"value\");\n\t\t\tfail(\"didn't catch null attribute name\");\n\t\t} catch (final NullPointerException e) {\n\t\t\t// Do nothing\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Unexpected exception \" + e.getClass());\n\t\t}\n\n\t\ttry {\n new Attribute(\"test\", null);\n\t\t\tfail(\"didn't catch null attribute value\");\n\t\t} catch (final NullPointerException e) {\n\t\t\t// Do nothing\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Unexpected exception \" + e.getClass());\n\t\t}\n\n\t\ttry {\n new Attribute(\"test\" + (char)0x01, \"value\");\n\t\t\tfail(\"didn't catch invalid attribute name\");\n\t\t} catch (final IllegalArgumentException e) {\n\t\t\t// Do nothing\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Unexpected exception \" + e.getClass());\n\t\t}\n\n\t\ttry {\n new Attribute(\"test\", \"test\" + (char)0x01);\n\t\t\tfail(\"didn't catch invalid attribute value\");\n\t\t} catch (final IllegalArgumentException e) {\n\t\t\t// Do nothing\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Unexpected exception \" + e.getClass());\n\t\t}\n\n\t}", "public abstract void mo70711a(String str, String str2);", "public boolean isString();", "void mo1342w(String str, String str2);", "void mo21068a(String str) throws IOException;", "void mo13161c(String str, String str2);", "void mo12635a(String str);", "void mo41089d(String str);", "static String validate(String username_or_password) {\r\n if (username_or_password.indexOf('\\'') != -1) {\r\n throw new IllegalArgumentException(\"invalid input: \" + username_or_password);\r\n }\r\n return username_or_password;\r\n }", "protected String getString(String text, Object... args){\n return text;\n }", "@Test\n public void testEmail_String()\n {\n try\n {\n String value = UtilEmailTest.EMAIL;\n Email instance = new Email(value);\n assertEquals(\"Bad email address\", value, instance.getAddress());\n\n value = \" \" + value.toUpperCase() + \" \";\n instance = new Email(value);\n assertEquals(\"Bad email address\", UtilEmailTest.EMAIL, instance.getAddress());\n }\n catch(UserException ex)\n {\n ex.printStackTrace();\n fail(\"Instanciation should not fail: \" + ex.getMessage());\n }\n try\n {\n new Email(UtilEmailTest.EMAIL + \"|\");\n fail(\"Instanciation with forbidden character should fail\");\n }\n catch(UserException ex)\n {\n System.out.println(ex.getMessage());\n }\n try\n {\n new Email(null);\n fail(\"Instanciation with null value should fail\");\n }\n catch(UserException ex)\n {\n System.out.println(ex.getMessage());\n }\n }", "String escStr(String pSource) throws Exception;", "public abstract String read_string();", "@Test\n\tvoid testCheckString3() {\n\t\tassertFalse(DataChecker.checkString(null));\n\t}", "public abstract void mo70704a(String str);", "void mo131986a(String str, String str2);", "public void checkSafeString(IRubyObject object) {\n if (getSafeLevel() > 0 && object.isTaint()) {\n ThreadContext tc = getCurrentContext();\n if (tc.getFrameName() != null) {\n throw newSecurityError(\"Insecure operation - \" + tc.getFrameName());\n }\n throw newSecurityError(\"Insecure operation: -r\");\n }\n secure(4);\n if (!(object instanceof RubyString)) {\n throw newTypeError(\n \"wrong argument type \" + object.getMetaClass().getName() + \" (expected String)\");\n }\n }", "@Override\n protected boolean isValueIsValid(String value) {\n return false;\n }", "public void error(String string) {\n\t\t\n\t}", "void mo1340v(String str, String str2);", "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}", "public abstract void mo20160a(String str);", "public void testCtorStr_Failure1() throws Exception {\n try {\n new RenameConverter(null);\n fail(\"IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException e) {\n //success\n }\n }", "void mo1791a(String str);", "@Test\n public void testRequireAtomString_GenericType_String_1() {\n LOGGER.info(\"requireAtomString with message\");\n Atom actual = null;\n final Atom expected = null;\n boolean caught = false;\n try {\n actual = requireAtomString(null, \"Message\");\n } catch (final ClassCastException ex) {\n caught = true;\n assertEquals(\"Message\", ex.getMessage());\n }\n assertTrue(caught);\n assertEquals(expected, actual);\n }", "public abstract boolean accepts(String string);", "private boolean isStringValid(String s){\n int[] result = getLeftRightCount(s);\n return result[0] == 0 && result[1] == 0;\n }", "public abstract String getString();", "public abstract String getString();", "public void InvalidFormat();", "void mo88522a(String str);", "void mo1332e(String str, String str2, Throwable th);", "private static boolean isValidTypeString(String string)\r\n {\r\n return VALID_TYPE_STRINGS.contains(string);\r\n }", "void mo1932a(String str);", "@Test\n public void testStringFractionImplInvalidStrings() {\n assertThrows(NumberFormatException.class, () -> {\n new FractionImpl(\"9 9 0/2\");\n });\n //Input value which is not a number\n assertThrows(NumberFormatException.class, () -> {\n new FractionImpl(\"One\");\n });\n }", "void mo5871a(String str);", "public boolean isString() {\n return false;\n }", "private static void checkStringExprNode(@Nullable Node node) {\n if (node == null) {\n throw new IllegalArgumentException(\"Expected a string; found: null\");\n }\n switch (node.getToken()) {\n case STRING:\n case TEMPLATELIT:\n break;\n case ADD:\n Node c = node.getFirstChild();\n checkStringExprNode(c);\n checkStringExprNode(c.getNext());\n break;\n default:\n throw new IllegalArgumentException(\"Expected a string; found: \" + node.getToken());\n }\n }", "public abstract String mo24851a(String str);", "void mo85415a(String str);", "@Test\n public void testRequireAtomString_GenericType_String_2() {\n LOGGER.info(\"requireAtomString\");\n final AtomString actual = new AtomString();\n final AtomString expected = requireAtomString(actual, \"Message\");\n assertEquals(expected, actual);\n }", "private Strings()\n\t{\n\t}", "private Strings()\n\t{\n\t}", "public abstract void mo4373a(String str);", "private void compareString(String rs, String ts, String meaning) {\n\t\tassertNotNull(\"NULL \"+meaning, ts);\n\t\tassertEquals(\"Wrong \"+meaning, rs, ts);\t\t\n\t}", "default T handleString(String val) {\n throw new UnsupportedOperationException();\n }", "@Test\n public void testIsInvalidChannelName() {\n System.out.println(\"isInvalidChannelName test ---\");\n String validName = \"Valid Name\";\n String invalidName1 = \"Invalid_Name\";\n String invalidName2 = \"\";\n String invalidName3 = \" \";\n String invalidName4 = \"troll<script>document.cookie='lol'</script>\";\n assertFalse(instance.isInvalidChannelName(validName));\n assertTrue(instance.isInvalidChannelName(invalidName1));\n assertTrue(instance.isInvalidChannelName(invalidName2));\n assertTrue(instance.isInvalidChannelName(invalidName3));\n assertTrue(instance.isInvalidChannelName(invalidName4));\n }", "void mo3768a(String str);", "void mo1341v(String str, String str2, Throwable th);", "@Test\r\n public void testGetStringRepresentation() {\r\n }", "@Test\n\tpublic void caseNameWithCorrectInput() {\n\t\tString caseName = \"led case\";\n\t\tboolean isNameValid;\n\t\ttry {\n\t\t\tisNameValid = StringNumberUtil.stringUtil(caseName);\n\t\t\tassertTrue(isNameValid);\n\t\t} catch (StringException e) {\n\t\t\tfail();\n\t\t}\n\t\t\n\t}", "public void testStringEthernetAddressConstructor()\n {\n // test a null string case\n try\n {\n /*EthernetAddress ethernet_address =*/\n new EthernetAddress((String)null);\n fail(\"Expected exception not caught\");\n }\n catch (NullPointerException ex)\n {\n // this is the success case so do nothing\n }\n catch (Exception ex)\n {\n fail(\"Caught unexpected exception: \" + ex);\n }\n \n // test some failure cases for the string constructor\n badStringEthernetAddressConstructorHelper(\n IMPROPER_NUM_COLONS_ETHERNET_ADDRESS_STRING_1);\n badStringEthernetAddressConstructorHelper(\n IMPROPER_NUM_COLONS_ETHERNET_ADDRESS_STRING_2);\n badStringEthernetAddressConstructorHelper(\n IMPROPER_NUM_COLONS_ETHERNET_ADDRESS_STRING_3);\n badStringEthernetAddressConstructorHelper(\n IMPROPER_NUM_COLONS_ETHERNET_ADDRESS_STRING_4);\n badStringEthernetAddressConstructorHelper(\n IMPROPER_NUM_COLONS_ETHERNET_ADDRESS_STRING_5);\n badStringEthernetAddressConstructorHelper(\n IMPROPER_NUM_COLONS_ETHERNET_ADDRESS_STRING_6);\n badStringEthernetAddressConstructorHelper(\n NON_HEX_ETHERNET_ADDRESS_STRING);\n badStringEthernetAddressConstructorHelper(\n RANDOM_PROPER_LENGTH_STRING);\n \n // some valid strings for the various dropped digit cases\n goodStringEthernetAddressConstructorHelper(\n FIRST_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n FIRST_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n FIRST_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n FIRST_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n FIRST_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n FIRST_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n SECOND_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n SECOND_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n SECOND_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n SECOND_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n SECOND_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n SECOND_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n THIRD_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n THIRD_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n THIRD_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n THIRD_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n THIRD_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n THIRD_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n FOURTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n FOURTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n FOURTH_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n FOURTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n FOURTH_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n FOURTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n FIFTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n FIFTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n FIFTH_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n FIFTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n FIFTH_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n FIFTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n SIXTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n SIXTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n SIXTH_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n SIXTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n SIXTH_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n SIXTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n MIXED_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n MIXED_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n MIXED_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n MIXED_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n MIXED_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n MIXED_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n \n // test the other good cases\n goodStringEthernetAddressConstructorHelper(\n NULL_ETHERNET_ADDRESS_STRING,\n NULL_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n UPPER_CASE_VALID_ETHERNET_ADDRESS_STRING,\n UPPER_CASE_VALID_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n LOWER_CASE_VALID_ETHERNET_ADDRESS_STRING,\n LOWER_CASE_VALID_ETHERNET_ADDRESS_STRING);\n goodStringEthernetAddressConstructorHelper(\n MIXED_CASE_VALID_ETHERNET_ADDRESS_STRING,\n MIXED_CASE_VALID_ETHERNET_ADDRESS_STRING);\n }", "public void m23078a(String str, Exception exception) {\n }", "@Test(expected = SuperCsvCellProcessorException.class)\n\tpublic void testWithNonString() {\n\t\tprocessor.execute(1234, ANONYMOUS_CSVCONTEXT);\n\t}", "void mo1343w(String str, String str2, Throwable th);", "@Override\n public boolean isMaybeAnyStr() {\n checkNotPolymorphicOrUnknown();\n return (flags & (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER)) == (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER); // note: ignoring excluded_strings and included_strings, see javadoc\n }", "void mo8715r(String str, String str2, String str3);", "boolean isSetString();", "void mo1329d(String str, String str2);", "public static void validateString(String... params)\n\t\t\tthrows IllegalArgumentException {\n\t\tfor (String param : params)\n\t\t\tif (param == null || param.isEmpty())\n\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\t\"Please check a provided paramenter [ \" + param + \" ]\");\n\t}", "public void testCheckString_NullArg() {\n try {\n Util.checkString(null, \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCheckString_NullArg() {\n try {\n Util.checkString(null, \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "String checkString(String str) {\n\t\tString output = \"\";\n\t\tfor (int index = str.length() - 1; index >= 0; index--) {\n\t\t\toutput = output + str.charAt(index);\n\t\t}\n\t\treturn output;\n\t}", "private static void m9058c(String str) {\n StackTraceElement stackTraceElement = Thread.currentThread().getStackTrace()[3];\n String className = stackTraceElement.getClassName();\n String methodName = stackTraceElement.getMethodName();\n throw ((IllegalArgumentException) m9050a(new IllegalArgumentException(\"Parameter specified as non-null is null: method \" + className + \".\" + methodName + \", parameter \" + str)));\n }", "void mo1935c(String str);", "public void testInvalidInput(){\n\t\tString input = \"bye\";\n\t\tString actual = operation.processOperation(input);\n\t\tString expected = \"bye bye could not be performed\";\n\t\tassertEquals(expected,actual);\n\t}", "C3579d mo19708e(String str) throws IOException;", "void mo9697a(String str);", "@Test\n\tvoid testCheckString2() {\n\t\tassertFalse(DataChecker.checkString(\"\"));\n\t}", "protected void readExpected(java.lang.String s) throws java.io.IOException {\n char c = readCharWord();\n for (int i = 0; i < s.length(); i++) {\n if (c != s.charAt(i)) {\n System.out.println(\"Was expecting '\"+s+\"', saw '\"+c+\n \"' instead of '\"+s.charAt(i)+\"'\");\n throw error();\n }\n c = next();\n }\n }", "@Test(timeout = 4000)\n public void test004() throws Throwable {\n JSONObject jSONObject0 = new JSONObject((Map) null);\n String string0 = \"6.dhcv\\\\2^|v(Vs\";\n jSONObject0.opt(\"6.dhcv\\u0002^|v(Vs\");\n StringWriter stringWriter0 = new StringWriter();\n int int0 = 92;\n // Undeclared exception!\n try { \n stringWriter0.append((CharSequence) \"6.dhcv\\u0002^|v(Vs\", 92, 92);\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@org.junit.Test\n public void constrCompelemString1() {\n final XQuery query = new XQuery(\n \"fn:string(element elem {'a', element a {}, 'b'})\",\n ctx);\n try {\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 assertStringValue(false, \"ab\")\n );\n }", "public abstract void fazerCoisa( String string );", "String getErrorsString();", "public RamString(String string) throws IllegalArgumentException{\r\n if (string == null) {\r\n throw new IllegalArgumentException(\"Input cannot be null.\");\r\n }\r\n this.string = string; }", "private static String testString(String str, int minLen, int maxLen) throws Exception {\n if (str.length() > maxLen || str.length() < minLen) {\n throw new Exception(str + \" has a length not in [\" + minLen + \", \" + maxLen + \"]\");\n }\n return str;\n }" ]
[ "0.6699225", "0.62188005", "0.6208409", "0.61057353", "0.61057353", "0.6083244", "0.6057796", "0.60506076", "0.60160875", "0.60153013", "0.6013484", "0.5998389", "0.5945115", "0.5931356", "0.5917321", "0.59145385", "0.5871575", "0.5861328", "0.58525103", "0.58369094", "0.5832228", "0.5829191", "0.5818709", "0.58121675", "0.57937485", "0.5788616", "0.57851326", "0.57847357", "0.5779321", "0.57612085", "0.57448125", "0.57307094", "0.57178617", "0.5711143", "0.5706898", "0.5706718", "0.5695368", "0.56927437", "0.56868285", "0.56867564", "0.5683764", "0.5674883", "0.5672158", "0.56596726", "0.5659198", "0.5658971", "0.5658155", "0.56576437", "0.56540513", "0.5653841", "0.56523556", "0.5650787", "0.56500286", "0.56500286", "0.56478554", "0.56454396", "0.5641592", "0.5625277", "0.5623663", "0.56227815", "0.5622628", "0.5613755", "0.5603779", "0.5598302", "0.5592595", "0.5590951", "0.5586976", "0.5586976", "0.5582964", "0.55827534", "0.55804324", "0.55799776", "0.5579938", "0.55759096", "0.5575442", "0.5573481", "0.557095", "0.556804", "0.5560837", "0.5559879", "0.5556701", "0.55382913", "0.55378705", "0.5537784", "0.55346113", "0.5530659", "0.5530659", "0.55272883", "0.55211633", "0.5513649", "0.5511237", "0.5509933", "0.5508999", "0.5500744", "0.5497309", "0.549657", "0.5495131", "0.5492194", "0.5490613", "0.5490595", "0.54892933" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { String[] names= new String[5]; names[0]= "Leo"; names[1]= "KAsey"; names[3]= "Jimm"; names[4]= "Mat"; //names[5]= ; for(int i=0;i<names.length;i++){ System.out.println(names[i]); } /*for(int i=0;i<names.length;i++){ if(names[i]!=null){ System.out.println(names[i].length()); } }*/ for(int i=0;i<names.length;i++){ try{ System.out.println(names[i].length()); }catch(NullPointerException ex){ System.out.println("Null Pointer"); } } }
{ "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
Creates a new demo.
public MinMaxCategoryPlotDemo1(String title) { super(title); JPanel chartPanel = createDemoPanel(); chartPanel.setPreferredSize(new java.awt.Dimension(500, 270)); setContentPane(chartPanel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long createDemo() {\n mDemoId = insertDemo(\"unnamed\");\n return mDemoId;\n }", "public void newDemo() {\r\n \t\t\r\n \t\tString date = new SimpleDateFormat(\"yyyy-MM-dd_HH-mm-ss\").format(new Date());\r\n \t\tthis.fileName = this.demoFolder + this.map.replace(\".xml\", \"\") + \"_\" + date + \".r2d\";\r\n \t\ttry {\r\n \t\t\tthis.fos = (FileOutputStream)this.fileIO.writeFile(this.fileName);\r\n \t\t} catch (IOException e) {\r\n \t\t}\r\n \t\t\r\n \t\ttry {\r\n \t\t\tthis.demoParts.put(this.map + \"/\");\r\n \t\t} catch (InterruptedException e) {\r\n \t\t}\r\n \t}", "public Demo() {\n\t\t\n\t}", "ExternalExample createExternalExample();", "Lab create();", "public Demo3() {}", "public void setDemo(java.lang.String demo) {\n this.demo = demo;\n }", "public DemoPanel() {\n }", "public DemonstrationApp()\n {\n // Create Customers of all 3 types\n s = new Senior(\"alice\", \"123 road\", 65, \"555-5555\", 1);\n a = new Adult(\"stacy\", \"123 lane\", 65, \"555-1111\", 2);\n u = new Student(\"bob\", \"123 street\", 65, \"555-3333\", 3);\n \n //Create an account for each customer \n ca = new CheckingAccount(s,1,0);\n sa = new SavingsAccount(a,2,100);\n sav = new SavingsAccount(u,3,1000);\n \n //Create a bank\n b = new Bank();\n \n //Create a date object\n date = new Date(2019, 02, 12);\n }", "public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }", "public static void demo() {\n\t\tlab_2_2_5();\n\n\t}", "void createNewInstance(String filename)\n {\n iIncomingLobsFactory = new incomingLobsFactory();\n iIncomingLobsFactory.setPackageName(\"com.loadSample\");\n \n // include schemaLocation hint for validation\n iIncomingLobsFactory.setXSDFileName(\"LoadSample.xsd\");\n \n // encoding for output document\n iIncomingLobsFactory.setEncoding(\"UTF8\");\n \n // encoding tag for xml declaration\n iIncomingLobsFactory.setEncodingTag(\"UTF-8\");\n \n // Create the root element in the document using the specified root element name\n iIncomingLobs = (incomingLobs) iIncomingLobsFactory.createRoot(\"incomingLobs\");\n createincomingLobs();\n \n iIncomingLobsFactory.save(filename);\n }", "public void create() {\n\t\t\n\t}", "public void create() {\n\t\trandomUtil = new RandomUtil();\n\t\t// create the camera using the passed in viewport values\n\t\tcamera = new OrthographicCamera(viewPortWidth, viewPortHeight);\n\t\tbatch.setProjectionMatrix(camera.combined);\n\t\tdebugRender = new Box2DDebugRenderer(true, false, false, false, false, true);\n\t\ttestWorld = new TestWorld(assetManager.blockManager(), new Vector2(0, 0f));\n\t\ttestWorld.genWorld(debugUtil);\n\t\ttestWorld.setCamera(getCamera());\n\t\tplayer.createBody(testWorld.getWorld(), BodyType.DynamicBody);\n\t\ttestWorld.getPlayers().add(player);\n\t\tworldParser = new WorldParser(testWorld, \"Test World\");\n\t\tworldParser = new WorldParser(testWorld, \"Test Write\");\n\t\tworldParser.parseWorld();\n\t\twriter = new WorldWriter(\"Test Write\", testWorld);\n\t}", "public void startDemo() {\n // Welcoming display\n this.view.displayMenu();\n\n // State of the inventory and the users\n this.view.displaySystem(this.system);\n\n this.view.displayExampleMessage();\n\n // Example with a student\n Student s = this.system.getStudents().get(0);\n\n Calendar startDate = Calendar.getInstance();\n Calendar endDate = Calendar.getInstance();\n endDate.setTimeInMillis(endDate.getTimeInMillis() + 6*24*60*60*1000);\n\n Loan l = s.book(Model.IPAD3, new Period(startDate, endDate));\n this.system.checkLoan(l);\n\n this.view.displayBorrow(s, l);\n this.system.putAway(l);\n this.view.displayReturn(s, l);\n\n // Example with a teacher\n\n Teacher t = this.system.getTeachers().get(0);\n\n Loan l2 = s.book(Model.XPERIAZ, new Period(startDate, endDate));\n this.system.checkLoan(l2);\n\n this.view.displayBorrow(t, l2);\n this.system.putAway(l2);\n this.view.displayReturn(t, l2);\n\n }", "public void create(){}", "Demo1Factory getDemo1Factory();", "@Test\n public void testDemotivatorCreateSuccess() throws IOException{\n \tFixtures.deleteAllModels();\n \tFixtures.loadModels(\"data/user.yml\");\n \t\n \tauthenticate();\n \t\n \tMap<String, String> createDemoParams = new HashMap<String, String>();\n \tcreateDemoParams.put(\"title\", THIRTY_CHARS_TITLE);\n \tcreateDemoParams.put(\"text\", EIGHTY_CHARS_TEXT);\n \tcreateDemoParams.put(\"mode\", \"create\");\n \tMap<String, File> fileParams = new HashMap<String, File>();\n \tFile file = new File(\"test/data/image.jpg\");\n \tfileParams.put(\"image\", file);\n\n \tResponse response = POST(\"/create\", createDemoParams, fileParams);\n\n \tassertStatus(200, response);\n \tassertContentType(\"application/json; charset=utf-8\", response);\n \t\n \tList<Demotivator> demos = Demotivator.findAll();\n \tassertEquals(1, demos.size());\n \tassertEquals(THIRTY_CHARS_TITLE, demos.get(0).getTitle());\n \tassertEquals(EIGHTY_CHARS_TEXT, demos.get(0).getText());\n \tassertEquals(\"localhost\", demos.get(0).getDomain().getName());\n \tlong id = demos.get(0).getId().longValue();\n \t\n \tassertContentEquals(\"{\\\"fileName\\\":\\\"/image/thumb.test.file.name\\\",\\\"id\\\":\\\"\" + id + \"\\\",\\\"status\\\":\\\"success\\\"}\", response);\n }", "Simple createSimple();", "AliciaLab createAliciaLab();", "public DemoPluginFactory() {}", "public static JPanel createDemoPanel() {\r\n JFreeChart chart = createChart(createDataset());\r\n ChartPanel panel = new ChartPanel(chart);\r\n panel.setMouseWheelEnabled(true);\r\n return panel;\r\n }", "public static void main(String[] args) {\n Demo3 d1 = new Demo3();\n\n\n }", "public static void main(String[] args) {\n ArrayList<String> tab = new ArrayList<>();\n tab.add(\"First\");\n tab.add(\"Hello\");\n tab.add(\"Last\");\n //Creation du modele\n LeModele leModele = new LeModele(tab);\n\n //Creation du controleur\n LeControleur leControleur = new LeControleur(leModele);\n\n //Creation de la vue\n LaVue laVue = new LaVue(leControleur);\n\n\n //Test\n\n\n }", "public abstract IExperiment createExperiment(String description);", "public Scene createScene() {\n\t\tmyRoot = new AnchorPane();\n\t\tmyTabs = new TabPane();\n\t\tButton newTab = new Button(CREATE_NEW_TAB);\n\t\tnewTab.setOnAction(event -> createNewTab());\n\t\t\n\t\tTabMainScreen mainScreen = new TabMainScreen(myResources.getString(WORKSPACE) + (myTabs.getTabs().size()));\n\t\tTabHelp help1 = new TabHelp(myResources.getString(BASIC_COMMANDS), HELP_TAB_TEXT1);\n\t\tTabHelp help2 = new TabHelp(myResources.getString(EXTENDED_COMMANDS), HELP_TAB_TEXT2);\n\t\t\n\t\tmyTabs.getTabs().addAll(mainScreen.getTab(myStage), help1.getTab(), help2.getTab());\n\t\t\n\t\tAnchorPane.setTopAnchor(myTabs, TABS_OFFSET);\n\t\tAnchorPane.setTopAnchor(newTab, NEWTAB_OFFSET);\n\t\t\n\t\tmyRoot.getChildren().addAll(myTabs, newTab);\n\t\n\t\tmyScene = new Scene(myRoot, windowHeight, windowWidth, Color.WHITE);\n\t\treturn myScene;\n\t}", "Lab create(Context context);", "public static void main(String[] args) {\n\t\tnew OpenDemo();\r\n\t}", "public Idea create() {\n \t\t\tIdea idea = new Idea();\n \n \t\t\treturn idea;\n \t\t}", "private Demo doReadDemo(final ClassLoader demoResourceLoader) throws IOException {\n final Demo demo = new Demo();\n\n final URL demoConfiguration = demoResourceLoader.getResource(CONFIGURATION_NAME);\n\n if (null == demoConfiguration) {\n logger.logWarning(\"No {0} found in demo root. Please configure the demo properly.\",\n CONFIGURATION_NAME);\n } else {\n // load demo configuration\n final Properties configuration = new Properties();\n final InputStream demoConfigurationStream = demoConfiguration.openStream();\n try {\n configuration.load(demoConfiguration.openStream());\n } finally {\n demoConfigurationStream.close();\n }\n demo.setConfiguration(configuration);\n \n final String environment = demo.getProperty(\"environment\");\n if(null == environment) {\n logger.logWarning(\"Demo environment has not been configured.\");\n } else {\n final String scenarios = demo.getProperty(\"scenarios\");\n if (null == scenarios) {\n logger.logWarning(\"Demo scenarios have not been configured.\");\n }\n final StringTokenizer tokenizer = new StringTokenizer(scenarios, \",\");\n while (tokenizer.hasMoreTokens()) {\n configureScenario(demo, tokenizer.nextToken(), demoResourceLoader);\n }\n }\n }\n return demo;\n }", "public boolean isDemo() {\n return demo;\n }", "@Override\r\n\tpublic Viewer create(String name) {\n\t\tif(this.isAllDataPresent())\r\n\t\t{\r\n\t\t\treturn new StressViewer(name);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "private Demo doReadDemo() throws IOException {\n // create a resource loader\n final URL defaultRoot = ResourceUtil.getURL(\"demo/\");\n final URLClassLoader resourceLoader = new URLClassLoader(\n new URL[] { defaultRoot }, null);\n return doReadDemo(resourceLoader);\n }", "public static void create() {\r\n render();\r\n }", "Hero createHero();", "Drone createDrone();", "public void create() {\n PDDocument document = new PDDocument();\n PDPage page = new PDPage();\n document.addPage(page);\n\n // Create a new font object selecting one of the PDF base fonts\n PDFont font = PDType1Font.HELVETICA_BOLD;\n try (document) {\n // Start a new content stream which will \"hold\" the to be created content\n writeDataToDocument(document, page, font);\n // Save the results and ensure that the document is properly closed:\n document.save(\"Hello World.pdf\");\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n }", "public CreateHero() {\r\n\t\tinitComponents();\r\n\t}", "public static void main(String[] args) {\n\n Create createList = new Create();\n createList.create();\n\n }", "@Test\n public void testCreate() {\n //System.out.println(\"create\");\n URI context = URI.create(\"file:test\");\n LemonSerializerImpl instance = new LemonSerializerImpl(null);\n instance.create(context);\n }", "public static void main(String[] args) {\n\t\tDemoStatic.show();\n\t\tDemoStatic d = new DemoStatic();\n\t\tDemoStatic d1 = new DemoStatic();\n\t\tDemoStatic d2 = new DemoStatic();\n\t\td2.show();\n\t\tDemoStatic d3 = new DemoStatic();\n\t\td3.show();\n\t}", "InlineDataExample createInlineDataExample();", "public void generateDemoQuiz() {\n Quiz demoQuiz = new Quiz(); //Instantiate a Quiz\n Category testCategory = makeCategory(); //Make some bs categories to attach the quiz\n Question question1 = new Question(); //Make some bs questions (just one for now)\n question1.setQuestion(\"Which of the following famous scientist cured Cat Cancer?\"); //Set the question ... of the question? IDK how to word this better\n\n //Make some funny cat names\n Answer a1 = new Answer(\"H. John Whiskers\");\n Answer a2 = new Answer(\"Bartolemeu Meowser\");\n Answer a3 = new Answer(\"Catalie Portman\");\n Answer a4 = new Answer(\"Anderson Pooper\");\n\n //Build an arraylist full of said cat names\n ArrayList<Answer> answerList = new ArrayList<Answer>();\n answerList.add(a1);\n answerList.add(a2);\n answerList.add(a3);\n answerList.add(a4);\n\n //Put those answers inside that question!\n question1.setAnswerChoices(answerList);\n question1.setCorrectAnswer(a1); //Everybody knows H John Whiskers cured kitty cancer\n\n //Build an arraylist full of the question(s) you just made, in our demo case there is only one question\n ArrayList<Question> questionList = new ArrayList<Question>();\n questionList.add(question1); //Put the questions inside your list\n\n\n //Put all the data you just made into a Quiz\n demoQuiz.setQuizName(\"Famous Cat Scientists\");\n demoQuiz.setQuizCategory(testCategory);\n demoQuiz.setQuizQuestions(questionList);\n\n }", "@Override\n\tpublic void create() {\n\t\tGdx.app.setLogLevel(Application.LOG_DEBUG);\n\t\t\n\t\t//Load assets\n\t\tAssets.instance.init(new AssetManager());\n\t\t\n\t\t//initialize controller and renderer\n\t\tworldController = new WorldController();\n\t\tworldRenderer= new WorldRenderer(worldController);\n\t\t\n\t\t//The world is not paused on start\n\t\tpaused = false;\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}", "Sample start();", "public Demo()\n {\n machine = new Machine();\n }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public LiveConnectDemo() {\n }", "public static void main(String[] args) {\n\t\tLinkedListedDemo demo=new LinkedListedDemo();\r\n\t\tdemo.addObjects();\r\n\t\tdemo.showElements();\r\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\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\n\tpublic void create () {\n\n\t}", "TrainingTest createTrainingTest();", "public TestGeneratorGui(boolean create, JFrame frame, JTabbedPane tabbedPane) {\n\t\tthis.create = create;\n\t\ttutorControlFrame = frame;\n\t\ttutorControl = tabbedPane;\n\t}", "public static void main(String[] args) {\n com.abc.Demo d=new demo();\n Demo d1= new Demo1();\n \n\t}", "public LarvaSkeleton() {\n\n }", "@Override\r\n\tpublic Viewer create(String name) {\n\t\tif(this.isAllDataPresent())\r\n\t\t{\r\n\t\t\treturn new ShapeViewer(name);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\t\r\n\t}", "public void show(){\n System.out.println(\"Welcome to Edureka's Tutorial\");\n }", "private void addDemoButtons(int p_73972_1_, int p_73972_2_)\r\n\t{\r\n\t\tthis.buttonList.add(new GuiButton(11, this.width / 2 - 100, p_73972_1_, I18n.format(\"menu.playdemo\")));\r\n\t\tthis.buttonResetDemo = this.addButton(new GuiButton(12, this.width / 2 - 100, p_73972_1_ + p_73972_2_ * 1, I18n.format(\"menu.resetdemo\")));\r\n\t\tISaveFormat isaveformat = this.mc.getSaveLoader();\r\n\t\tWorldInfo worldinfo = isaveformat.getWorldInfo(\"Demo_World\");\r\n\r\n\t\tif (worldinfo == null)\r\n\t\t{\r\n\t\t\tthis.buttonResetDemo.enabled = false;\r\n\t\t}\r\n\t}", "public static void createNewLeague()\n\t{\n\t\t//put code to get input from end-user here.\n\t\t//generateFixtures(leagueName, teamAmount, homeAndAway, winPoints, drawPoints, lossPoints, teamNames);\n\t}", "@Override\n\tpublic void create() {\n\n\t}", "public void createPlayer() {\n mainHandler = new Handler();\n videoTrackSelectionFactory = new AdaptiveTrackSelection.Factory(bandwidthMeter);\n trackSelector = new DefaultTrackSelector(videoTrackSelectionFactory);\n player = ExoPlayerFactory.newSimpleInstance(this, trackSelector);\n }", "public static Studio createStudio()\n\t{\n\t\tStudio studio = new Studio();\n\n\t\t// the scene\n\t\tSceneObjectContainer scene = new SceneObjectContainer(\"the scene\", null, studio);\n\n\t\t// start by defining the camera so that we can calculate, from the shutter model, what is in focus and then place something there\n\t\t\n\t\t// define the camera\n\t\t//\n\t\t// Note that the view direction and basis Vector3Ds of the detector are chosen such that\n\t\t// the x, y, z axes form a LEFT-handed coordinate system.\n\t\t// The reason is that, in the photo, the positive x direction is then to the right,\n\t\t// the positive y direction is upwards, and the camera looks in the positive z direction.\n\t\tint\n\t\tpixelsX = 640,\n\t\tpixelsY = 480;\n\t\t\n\t\t\n\t\t// the camera-frame scene\n\t\tEditableSceneObjectCollection cameraFrameScene = new EditableSceneObjectCollection(\"camera-frame scene\", false, scene, studio);\n//\t\tif(LORENTZ_WINDOW)\n//\t\t{\n//\t\t\tcameraFrameScene.addSceneObject(new EditableParametrisedPlane(\n//\t\t\t\t\"Lorentz window\",\t// description\n//\t\t\t\tshutterPlanePoint,\t// pointOnPlane\n//\t\t\t\tbeta,\t// normal\n//\t\t\t\tnew LorentzTransformInterface(\n//\t\t\t\t\t\tbeta,\n//\t\t\t\t\t\tCoordinateSystemType.GLOBAL_BASIS,\n//\t\t\t\t\t\t0.96,\t// transmission coefficient\n//\t\t\t\t\t\tfalse\t// shadow-throwing?\n//\t\t\t\t\t),\t// SurfaceProperty\n//\t\t\t\tcameraFrameScene,\t// parent,\n//\t\t\t\tnull\t// studio\n//\t\t\t\t));\n//\t\t}\n\t\t\n\t\tEditableRelativisticAnyFocusSurfaceCamera camera = new EditableRelativisticAnyFocusSurfaceCamera(\n\t\t\t\t\"Camera\",\n\t\t\t\tnew Vector3D(0, 0, 0),\t// centre of aperture\n\t\t\t\tnew Vector3D(0, 0, 1),\t// viewDirection\n\t\t\t\tnew Vector3D(0, 1, 0),\t// top direction vector\n\t\t\t\t20,\t// horiontalViewAngle in degrees; 2*MyMath.rad2deg(Math.atan(2./10.)) gives same view angle as in previous version\n\t\t\t\tSpaceTimeTransformationType.LORENTZ_TRANSFORMATION,\n\t\t\t\t(BETA_0?new Vector3D(0, 0, 0):beta),\t// beta\n\t\t\t\tpixelsX, pixelsY,\t// logical number of pixels\n\t\t\t\tExposureCompensationType.EC0,\t// exposure compensation +0\n\t\t\t\t1000,\t// maxTraceLevel\n\t\t\t\tnew EditableParametrisedPlane(\n\t\t\t\t\t\t\"focussing plane\",\n\t\t\t\t\t\tnew Vector3D(0, 0, FOCUSSING_DISTANCE),\t// point on plane\n\t\t\t\t\t\tnew Vector3D(0, 0, 1),\t// normal to plane\n\t\t\t\t\t\tSurfaceColour.BLACK_SHINY,\n\t\t\t\t\t\tscene,\n\t\t\t\t\t\tstudio\n\t\t\t\t),\t// focusScene,\n\t\t\t\tcameraFrameScene,\t//cameraFrameScene,\n\t\t\t\tAPERTURE_SIZE,\t// aperture size\n\t\t\t\tTEST?QualityType.BAD:QualityType.GREAT,\t// blur quality\n\t\t\t\tTEST?QualityType.NORMAL:QualityType.GOOD\t// QualityType.GREAT\t// anti-aliasing quality\n\t\t);\n\n\t\t// the reference shutter model\n\t\tFixedPointSurfaceShutterModel shutterModel = new FixedPointSurfaceShutterModel(beta);\t\t\n\t\tcamera.setShutterModel(shutterModel);\n\t\t\n\t\t// the standard scene objects\n\t\tscene.addSceneObject(SceneObjectClass.getChequerboardFloor(scene, studio));\t// the checkerboard floor\n\t\tscene.addSceneObject(SceneObjectClass.getSkySphere(scene, studio));\t// the sky\n\n\t\t// the cylinder lattice from TIMInteractiveBits's populateSceneRelativisticEdition method\n\t\tdouble cylinderRadius = 0.02;\n\n\t\t// a cylinder lattice...\n\t\tscene.addSceneObject(new EditableCylinderLattice(\n\t\t\t\t\"cylinder lattice\",\n\t\t\t\t-1.5, 1.5, 4,\t// x_min, x_max, no of cylinders => cylinders at x=-1.5, -0.5, +0.5, +1.5\n\t\t\t\t-1.5, 1.5, 4,\t// y_min, y_max, no of cylinders => cylinders at y=-1.5, -0.5, +0.5, +1.5\n\t\t\t\t-1, 10, 12, // z_min, z_max, no of cylinders => cylinders at z=-1, 0, 1, 2, ..., 10\n\t\t\t\tcylinderRadius,\n\t\t\t\tscene,\n\t\t\t\tstudio\n\t\t\t\t));\t\t\n\n\t\t// Tim's head\n\t\t// scene.addSceneObject(new EditableTimHead(\"Tim's head\", new Vector3D(0, 0, 10), scene, studio));\n\n\t\t// the Ninky Nonk Silhouette\n\t\tscene.addSceneObject(new EditableNinkyNonkSilhouette(scene, studio));\n\n\n\t\tstudio.setScene(scene);\n\t\tstudio.setLights(LightSource.getStandardLightsFromBehind());\n\t\tstudio.setCamera(camera);\n\n\t\treturn studio;\n\t}", "public static void main(String[] args) {\n demoClass();\n }", "public static void main(String[] args) {\n demoClass();\n }", "@Override\n public void create() {\n // enable logging\n Gdx.app.setLogLevel(Application.LOG_DEBUG);\n log.debug(\"create()\");\n }", "private static void createAndShowGUI() {\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"ButtonDemo\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n ButtonDemo newContentPane = new ButtonDemo();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "SpaceInvaderTest_test_VaisseauAvance_DeplacerVaisseauVersLaDroite createSpaceInvaderTest_test_VaisseauAvance_DeplacerVaisseauVersLaDroite();", "public static void main(Demo args[])\n\t{\n\t\tEmployee1 employee=new Manager();\n\t\temployee.display();\n\t}", "public Application()\n {\n newsFeed = new NewsFeed();\n test = new Test();\n \n makeDummies();\n display();\n displayShortSummary();\n runTest();\n }", "public TutorialStep1() {\n\n }", "public JudokaCreator() {\n\t\tsuper();\n\t\ttechniques = new Technique[]{\n\t\t\t\tTechnique.UCHI_MATA,\n\t\t\t\tTechnique.UCHI_MATA,\n\t\t\t\tTechnique.UCHI_MATA,\n\t\t\t\tTechnique.UCHI_MATA,\n\t\t\t\tTechnique.UCHI_MATA,\n\t\t\t\tTechnique.UCHI_MATA,\n\t\t\t\tTechnique.UCHI_MATA,\n\t\t\t\tTechnique.UCHI_MATA\n\t\t};\n\t}", "@Override public void createSample(Sample sample)\n {\n try\n {\n clientDoctor.createSample(sample);\n }\n catch (RemoteException e)\n {\n throw new RuntimeException(\"Error while creating sample. Please try again.\");\n }\n }", "@Before\n\tpublic void criaShow() {\n\t\tshow = new Show(\"Lana Del Rey planeta Terra\", 100, 120, \"LIVRE\", \"Lana Del Rey\", 10);\n\t}", "public static void main(String[] args) throws Exception {\n\t\tcreateSimple();\n\t}", "Documentation createDocumentation();", "Documentation createDocumentation();", "public CreateDemonstrationUI(ExhibitionCenter exhibitionCenter, Organizer organizer) {\n super(WINDOW_TITLE);\n\n this.exhibitionCenter = exhibitionCenter;\n this.organizer = organizer;\n this.controller = new CreateDemonstrationController(exhibitionCenter, organizer);\n\n final String chooseExhibitionText = \"Which exhibition do you wish to insert a new demostration?\";\n DialogSelectable dialogSelectable = new DialogSelectable(this,\n controller.getExhibitionsList(organizer), chooseExhibitionText);\n Exhibition selectedExhibition = (Exhibition) dialogSelectable.getSelectedItem();\n\n if (selectedExhibition != null) {\n\n this.controller.setSelectedExhibition(selectedExhibition);\n\n // Create a new demonstration\n this.controller.newDemonstration();\n\n CustomMenuBar customMenuBar = new CustomMenuBar(exhibitionCenter, this);\n setJMenuBar(customMenuBar);\n addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n customMenuBar.exit();\n }\n });\n setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\n setLayout(new BorderLayout());\n createComponents();\n\n pack();\n setSize(WINDOW_DIMEMNSION);\n setMinimumSize(new Dimension(getWidth(), getHeight()));\n setLocationRelativeTo(null);\n setVisible(true);\n } else {\n dispose();\n new DashboardUI(exhibitionCenter, organizer);\n }\n }", "@GetMapping(\"/create\")\n public String create(@RequestParam(\"fileExt\")\n final String fileExt, // create a sample file of the specified extension\n @RequestParam(value = \"sample\", required = false) final Optional<Boolean> isSample,\n @CookieValue(value = \"uid\", required = false) final String uid,\n final Model model) {\n Boolean sampleData = (isSample.isPresent() && !isSample.isEmpty()) && isSample.get();\n if (fileExt != null) {\n try {\n Optional<User> user = userService.findUserById(Integer.parseInt(uid)); // find a user by their ID\n if (!user.isPresent()) {\n // if the user with the specified ID doesn't exist, an error occurs\n throw new RuntimeException(\"Could not fine any user with id = \" + uid);\n }\n String fileName = documentManager.createDemo(fileExt,\n sampleData,\n uid,\n user.get().getName()); // create a demo document with the sample data\n if (fileName.isBlank() || fileName == null) {\n throw new RuntimeException(\"You must have forgotten to add asset files\");\n }\n return \"redirect:editor?fileName=\" + URLEncoder\n .encode(fileName, StandardCharsets.UTF_8); // redirect the request\n } catch (Exception ex) {\n model.addAttribute(\"error\", ex.getMessage());\n return \"error.html\";\n }\n }\n return \"redirect:/\";\n }", "public static void main(String[] argv) {\r\n\t\tDemo15 demo = new Demo15();\r\n\t\tdemo.start();\r\n\t}", "Help createHelp();", "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 void createScene();", "public TestPrelab2()\n {\n }", "public DemoScreenControllerMasterApp(String[] args) {\r\n\t\t// transfer args to start the selected demo \r\n\t\t// via listener callback method \"tfStackReConnected()\" \r\n\t\t// => see end of this class\r\n\t\tthis.args = args;\r\n\t\t\r\n\r\n\t\t// Define Tinkerforge Stack (Listener)\r\n\t\tdemoTfStack = new DemoTfStackImpl(this);\r\n\r\n\t\t\r\n\t\t//Create connection and add listener\r\n\t\tnew TfConnectService(\"localhost\",4223, null, demoTfStack);\r\n\t\t\r\n\t\t// Define Clone LCD Connection\r\n\t\t// Connect will be processed after this stack is connected\r\n\t\tcloneHost = \"Tf-AU-EG-WZ\";\r\n\t\tclonePort = 4223;\r\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "public static void example1() {\n // moved to edu.jas.application.Examples\n }", "public static void createDisplay() {\n ContextAttribs attribs = new ContextAttribs(3, 2).withForwardCompatible(true)\n .withProfileCore(true);\n\n try {\n if (!goFullscreen) {\n Display.setDisplayMode(new DisplayMode(WIDTH, HEIGHT));\n } else {\n Display.setFullscreen(true);\n }\n Display.create(new PixelFormat(), attribs);\n Display.setVSyncEnabled(true);\n Display.setTitle(\"Our First Display!\");\n GL11.glEnable(GL13.GL_MULTISAMPLE);\n } catch (LWJGLException e) {\n e.printStackTrace();\n }\n\n GL11.glViewport(0, 0, Display.getWidth(), Display.getHeight());\n lastFrameTime = getCurrentTime();\n }", "public DemoComponentManager() {\n this(PROJECT_ROOT_PATH, DEFAULT_EFFECTS_PATHS, DEFAULT_CALCULATORS_PATHS);\n }", "private void _createPageDef()\n {\n _pageDef = new DemoPageDef();\n _pageDef.setupAttributes();\n \n List<DemoPageDef.SavedSearchDef> searchDefList = _pageDef.setupSavedSearchDefList();\n \n // Mark the first sabved Search definition as the current\n _currentDescriptor = new DemoQueryDescriptor(searchDefList.get(0));\n for (DemoPageDef.SavedSearchDef searchDef: searchDefList)\n {\n DemoQueryDescriptor qd = new DemoQueryDescriptor(searchDef);\n _QDMap.put(searchDef.getName(), qd); \n if (_currentDescriptor == null)\n _currentDescriptor = qd;\n }\n\n _queryModel = new DemoQueryModel(_QDMap);\n \n }", "UADev createNewUADev(String id,String name,String title,String desc)\r\n\t{\r\n\t\tUADev ret = new UADev() ;\r\n\t\tret.id = id ;\r\n\t\treturn updateUADev(ret,name,title,desc);\r\n\t}", "public static LabNotes newInstance() {\n LabNotes fragment = new LabNotes();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public static void main(String[] args) {\n\r\n Starter starter = new Starter();\r\n starter.start();\r\n\r\n\r\n }", "DD createDD();", "public static Tester create() {\n\t\treturn new Tester();\n\t}", "public Lecture() {\n\t\tthis.name = \"default lecture name\";\n\t\tthis.credits = 1.0;\n\t\tSystem.out.println(\"lecture created\");\n\t}", "public static void main(String[] args) {\n new WebcamQRDemo();\r\n }", "public static void main(String[] args) {\n\t\tdemointer d=new Exm1();\r\n\t\t//demointer d1=new Exm2();\r\n\t\t//Exm1 a=new Exm1();\r\n\t\tExample1 ex=new Example1();\r\n\t\tex.demo(d);\r\n\t\t\r\n\t}", "@Override\r\n public void run() {\r\n Example ex = new Example();//Creates a new object of this example type\r\n ex.setVisible(true);//Sets the visibility of the created ex object to true\r\n }", "public abstract void create();" ]
[ "0.6796898", "0.65088093", "0.62820476", "0.61293125", "0.6119581", "0.5985991", "0.59582156", "0.5909665", "0.59094363", "0.5890611", "0.5865384", "0.5832164", "0.58079743", "0.578195", "0.57740957", "0.5746723", "0.57279426", "0.57050353", "0.5666109", "0.5625596", "0.5624796", "0.56084216", "0.5598323", "0.5590653", "0.55840933", "0.55650336", "0.5554688", "0.5547692", "0.554697", "0.5546968", "0.55338776", "0.55259806", "0.55133235", "0.55100965", "0.5505427", "0.54767436", "0.5475976", "0.54727143", "0.54684323", "0.5449666", "0.5435782", "0.54242134", "0.54112774", "0.5386281", "0.5373652", "0.5361358", "0.5356408", "0.5355462", "0.5337553", "0.53360325", "0.5320537", "0.53108233", "0.53050554", "0.52942723", "0.5293379", "0.52875537", "0.5285527", "0.5283042", "0.52736604", "0.5271815", "0.52696675", "0.52663094", "0.52644485", "0.52588785", "0.52544796", "0.52544796", "0.52421963", "0.5239984", "0.52394676", "0.52359354", "0.52261615", "0.52192855", "0.5215849", "0.5212561", "0.5205316", "0.5203425", "0.5192895", "0.5192895", "0.51845086", "0.5182357", "0.51776934", "0.5167302", "0.51617104", "0.5161439", "0.5161079", "0.51605874", "0.5159409", "0.51570815", "0.5153871", "0.51473415", "0.51391286", "0.5137389", "0.5135693", "0.51304615", "0.5129806", "0.51289105", "0.5120232", "0.5120109", "0.5117306", "0.51148367", "0.5112643" ]
0.0
-1
Creates a sample dataset for the demo.
public static CategoryDataset createDataset() { DefaultCategoryDataset dataset = new DefaultCategoryDataset(); dataset.addValue(1.0, "First", "C1"); dataset.addValue(4.0, "First", "C2"); dataset.addValue(3.0, "First", "C3"); dataset.addValue(5.0, "First", "C4"); dataset.addValue(5.0, "First", "C5"); dataset.addValue(7.0, "First", "C6"); dataset.addValue(7.0, "First", "C7"); dataset.addValue(8.0, "First", "C8"); dataset.addValue(5.0, "Second", "C1"); dataset.addValue(7.0, "Second", "C2"); dataset.addValue(6.0, "Second", "C3"); dataset.addValue(8.0, "Second", "C4"); dataset.addValue(4.0, "Second", "C5"); dataset.addValue(4.0, "Second", "C6"); dataset.addValue(2.0, "Second", "C7"); dataset.addValue(1.0, "Second", "C8"); dataset.addValue(4.0, "Third", "C1"); dataset.addValue(3.0, "Third", "C2"); dataset.addValue(2.0, "Third", "C3"); dataset.addValue(3.0, "Third", "C4"); dataset.addValue(6.0, "Third", "C5"); dataset.addValue(3.0, "Third", "C6"); dataset.addValue(4.0, "Third", "C7"); dataset.addValue(3.0, "Third", "C8"); return dataset; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static CategoryDataset createSampleDataset() {\n \t\n \t// row keys...\n final String series1 = \"Expected\";\n final String series2 = \"Have\";\n final String series3 = \"Goal\";\n\n // column keys...\n final String type1 = \"Type 1\";\n final String type2 = \"Type 2\";\n final String type3 = \"Type 3\";\n final String type4 = \"Type 4\";\n final String type5 = \"Type 5\";\n final String type6 = \"Type 6\";\n final String type7 = \"Type 7\";\n final String type8 = \"Type 8\";\n\n // create the dataset...\n final DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\n dataset.addValue(1.0, series1, type1);\n dataset.addValue(4.0, series1, type2);\n dataset.addValue(3.0, series1, type3);\n dataset.addValue(5.0, series1, type4);\n dataset.addValue(5.0, series1, type5);\n dataset.addValue(7.0, series1, type6);\n dataset.addValue(7.0, series1, type7);\n dataset.addValue(8.0, series1, type8);\n\n dataset.addValue(5.0, series2, type1);\n dataset.addValue(7.0, series2, type2);\n dataset.addValue(6.0, series2, type3);\n dataset.addValue(8.0, series2, type4);\n dataset.addValue(4.0, series2, type5);\n dataset.addValue(4.0, series2, type6);\n dataset.addValue(2.0, series2, type7);\n dataset.addValue(1.0, series2, type8);\n\n dataset.addValue(4.0, series3, type1);\n dataset.addValue(3.0, series3, type2);\n dataset.addValue(2.0, series3, type3);\n dataset.addValue(3.0, series3, type4);\n dataset.addValue(6.0, series3, type5);\n dataset.addValue(3.0, series3, type6);\n dataset.addValue(4.0, series3, type7);\n dataset.addValue(3.0, series3, type8);\n\n return dataset;\n \n }", "private XYDataset createDataset() {\n\t\tfinal XYSeriesCollection dataset = new XYSeriesCollection( ); \n\t\tdataset.addSeries(trainErrors); \n\t\tdataset.addSeries(testErrors);\n\t\treturn dataset;\n\t}", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"[email protected]\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "private void addSampleData() {\r\n }", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\t\tresult.setValue(\"Linux\", 29);\n\t\tresult.setValue(\"Mac\", 20);\n\t\tresult.setValue(\"Windows\", 51);\n\t\treturn result;\n\n\t}", "private void initDataset(){\n dataSet.add(\"Karin\");\n dataSet.add(\"Ingrid\");\n dataSet.add(\"Helga\");\n dataSet.add(\"Renate\");\n dataSet.add(\"Elke\");\n dataSet.add(\"Ursula\");\n dataSet.add(\"Erika\");\n dataSet.add(\"Christa\");\n dataSet.add(\"Gisela\");\n dataSet.add(\"Monika\");\n\n addDataSet.add(\"Anna\");\n addDataSet.add(\"Sofia\");\n addDataSet.add(\"Emilia\");\n addDataSet.add(\"Emma\");\n addDataSet.add(\"Neele\");\n addDataSet.add(\"Franziska\");\n addDataSet.add(\"Heike\");\n addDataSet.add(\"Katrin\");\n addDataSet.add(\"Katharina\");\n addDataSet.add(\"Liselotte\");\n }", "@Override\n public CreateDatasetResult createDataset(CreateDatasetRequest request) {\n request = beforeClientExecution(request);\n return executeCreateDataset(request);\n }", "public void setupDryadCloudDataSets(){\n\t\ttry{\n\t\t\t\n\t\t\t// A Dryad \n\t\t\tDryadDataSet ds = new DryadDataSet(_DRYAD_D1_TREEBASE);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D1_TREEBASE_F1);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D3_POPULAR);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D3_POPULAR_F1);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D4_CSV);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D4_CSV_F1);\n\t\t\tds.harvestDataToRDF(_DRYAD_D4_CSV_F2);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D6_CSV);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D6_CSV_F1);\n\t\t\tds.harvestDataToRDF(_DRYAD_D6_CSV_F2);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D2_GENBANK);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D2_GENBANK_F1);\t\n\t\t\tds.harvestDataToRDF(_DRYAD_D2_GENBANK_F2);\n\t\t\tds.harvestDataToRDF(_DRYAD_D2_GENBANK_F3);\n\t\t\tds.harvestDataToRDF(_DRYAD_D2_GENBANK_F4);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D5_CSV);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D5_CSV_F1);\n\t\t\tds.harvestDataToRDF(_DRYAD_D5_CSV_F2);\n\t\t\t_datasets.add(ds);\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\tSystem.out.println(\"ERROR: Exception \"+ex.getMessage());\n\t\t}\n\t}", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "private void createTestDataSet() throws Exception {\n LOG.info(\"creating test data set...\"); \n Database db = null;\n try {\n db = this._category.getDatabase();\n db.begin();\n\n LazyEmployee person = new LazyEmployee();\n person.setFirstName(\"First\");\n person.setLastName(\"Person\");\n person.setBirthday(JDO_ORIGINAL_DATE);\n person.setStartDate(JDO_ORIGINAL_DATE);\n\n LazyAddress address1 = new LazyAddress();\n address1.setId(1);\n address1.setStreet(Integer.toString(1) + JDO_ORIGINAL_STRING);\n address1.setCity(\"First City\");\n address1.setState(\"AB\");\n address1.setZip(\"10000\");\n address1.setPerson(person);\n\n LazyAddress address2 = new LazyAddress();\n address2.setId(2);\n address2.setStreet(Integer.toString(2) + JDO_ORIGINAL_STRING);\n address2.setCity(\"Second City\");\n address2.setState(\"BC\");\n address2.setZip(\"22222\");\n address2.setPerson(person);\n\n LazyAddress address3 = new LazyAddress();\n address3.setId(3);\n address3.setStreet(Integer.toString(3) + JDO_ORIGINAL_STRING);\n address3.setCity(\"Third Ave\");\n address3.setState(\"AB\");\n address3.setZip(\"30003\");\n address3.setPerson(person);\n\n ArrayList addresslist = new ArrayList();\n addresslist.add(address1);\n addresslist.add(address2);\n addresslist.add(address3);\n\n person.setAddress(addresslist);\n\n LazyPayRoll pr1 = new LazyPayRoll();\n pr1.setId(1);\n pr1.setHoliday(15);\n pr1.setHourlyRate(25);\n pr1.setEmployee(person);\n person.setPayRoll(pr1);\n\n LazyContractCategory cc = new LazyContractCategory();\n cc.setId(101);\n cc.setName(\"Full-time slave\");\n db.create(cc);\n\n LazyContractCategory cc2 = new LazyContractCategory();\n cc2.setId(102);\n cc2.setName(\"Full-time employee\");\n db.create(cc2);\n \n ArrayList category = new ArrayList();\n category.add(cc);\n category.add(cc2);\n\n LazyContract con = new LazyContract();\n con.setPolicyNo(1001);\n con.setComment(\"80 hours a week, no pay hoilday, \"\n + \"no sick leave, arrive office at 7:30am everyday\");\n con.setContractNo(78);\n con.setEmployee(person);\n con.setCategory(category);\n person.setContract(con);\n \n db.create(person);\n \n db.commit();\n db.close();\n } catch (Exception e) {\n LOG.error(\"createTestDataSet: exception caught\", e);\n throw e;\n }\n }", "private MolecularSample createTestSample() {\n testMolecularSample = new MolecularSample();\n testMolecularSample.setName(TEST_MOLECULAR_SAMPLE_NAME_CREATE);\n testMolecularSample.setMaterialSample(TEST_MATERIAL_SAMPLE_UUID);\n testMolecularSample.setSampleType(TEST_MOLECULAR_SAMPLE_SAMPLE_TYPE);\n \n persist(testMolecularSample);\n \n return testMolecularSample;\n }", "public AzureDataLakeStoreDataset() {\n }", "InlineDataExample createInlineDataExample();", "private XYDataset createSampleDataset(GradientDescent gd) {\n XYSeries predictedY = new XYSeries(\"Predicted Y\");\n XYSeries actualY = new XYSeries(\"Actual Y\");\n List<BigDecimal> xValues = gd.getInitialXValues();\n List<BigDecimal> yPred = gd.getPredictedY(xValues);\n List<BigDecimal> yActual = gd.getInitialYValues();\n for (int cont = 0; cont < xValues.size(); cont++){\n \tpredictedY.add(xValues.get(cont), yPred.get(cont));\n \tSystem.out.println(\"pred: \" + xValues.get(cont) + \", \" + yPred.get(cont));\n \tactualY.add(xValues.get(cont), yActual.get(cont));\n \tSystem.out.println(\"actual: \" + xValues.get(cont) + \", \" + yActual.get(cont));\n\t\t}\n XYSeriesCollection dataset = new XYSeriesCollection();\n dataset.addSeries(predictedY);\n dataset.addSeries(actualY);\n return dataset;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private Dataset createDataset1() {\n final RDF factory1 = createFactory();\n\n final IRI name = factory1.createIRI(\"http://xmlns.com/foaf/0.1/name\");\n final Dataset g1 = factory1.createDataset();\n final BlankNode b1 = createOwnBlankNode(\"b1\", \"0240eaaa-d33e-4fc0-a4f1-169d6ced3680\");\n g1.add(b1, b1, name, factory1.createLiteral(\"Alice\"));\n\n final BlankNode b2 = createOwnBlankNode(\"b2\", \"9de7db45-0ce7-4b0f-a1ce-c9680ffcfd9f\");\n g1.add(b2, b2, name, factory1.createLiteral(\"Bob\"));\n\n final IRI hasChild = factory1.createIRI(\"http://example.com/hasChild\");\n g1.add(null, b1, hasChild, b2);\n\n return g1;\n }", "@Test\n public void testRun() {\n System.out.println(\"run\");\n FluorescenceImporter importer = null;\n try {\n FluorescenceFixture tf = new FluorescenceFixture();\n importer = new FluorescenceImporter(tf.testData());\n ProgressHandle ph = ProgressHandleFactory.createHandle(\"Importing dataset\");\n importer.setProgressHandle(ph);\n \n importer.run();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n \n //FluorescenceDataset dataset = importer.getDataset();\n Dataset<? extends Instance> plate = importer.getDataset();\n System.out.println(\"inst A1 \"+ plate.instance(0).toString());\n System.out.println(\"plate \"+plate.toString());\n Dataset<Instance> output = new SampleDataset<Instance>();\n output.setParent((Dataset<Instance>) plate);\n ProgressHandle ph = ProgressHandleFactory.createHandle(\"Analyzing dataset\");\n // AnalyzeRunner instance = new AnalyzeRunner((Timeseries<ContinuousInstance>) plate, output, ph);\n // instance.run();\n \n }", "private DataSet normalDataSet(){\n //create normal distribution with mean .05 and sd .05/3 so that 99.7% of events are < .1\n NormalDistribution normalDistribution = new NormalDistribution(TARGET_MEAN, TARGET_MEAN/3D);\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate costs from sampling from normal distribution\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n Long cost = (long) Math.max(1, normalDistribution.sample()); //make sure no 0 cost events\n tasks[i] = new Task(cost, uuid);\n }\n //generate task multiplities from sampling from uniform distribution\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private static MarketDataSet createTestMarketData() {\n final MarketDataSet dataSet = MarketDataSet.empty();\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"AUDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.8);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"NZDUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 2.2);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBPUSD\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)), 1.5);\n dataSet.put(MarketDataKey.of(ExternalId.of(TEST_SCHEME, \"GBP1Y\").toBundle(), DataField.of(MarketDataRequirementNames.MARKET_VALUE)),\n ImmutableLocalDateDoubleTimeSeries.builder()\n .putAll(new LocalDate[] {LocalDate.of(2016, 1, 1), LocalDate.of(2016, 1, 2)}, new double[] {0.01, 0.02}).build());\n return dataSet;\n }", "private Dataset createDataSet(RecordingObject recordingObject, Group parentObject, String name) throws Exception\n\t{\n\t\t// dimension of dataset, length of array and 1 column\n\t\tlong[] dims2D = { recordingObject.getYValuesLength(), recordingObject.getXValuesLength() };\n\n\t\t// H5Datatype type = new H5Dataype(CLASS_FLOAT, 8, NATIVE, -1);\n\t\tDatatype dataType = recordingsH5File.createDatatype(recordingObject.getDataType(), recordingObject.getDataBytes(), Datatype.NATIVE, -1);\n\t\t// create 1D 32-bit float dataset\n\t\tDataset dataset = recordingsH5File.createScalarDS(name, parentObject, dataType, dims2D, null, null, 0, recordingObject.getValues());\n\n\t\t// add attributes for unit and metatype\n\t\tcreateAttributes(recordingObject.getMetaType().toString(), recordingObject.getUnit(), dataset);\n\n\t\treturn dataset;\n\t}", "public void PrepareTestDataset(String dataset, boolean islabeled)\n\t{\n\t\tdbiterator = DBInstanceIterator.getInstance();\n\t\tSystem.out.println(\"Preparing Test Datasets ...\");\n\t\ttry {\n\t\t\tPrepareAll(dataset,islabeled);\n\t\t\tSystem.out.println(\"Test Dataset is saved & ready for Training ..\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private CategoryDataset createDataset( )\n\t {\n\t final DefaultCategoryDataset dataset = \n\t new DefaultCategoryDataset( ); \n\t \n\t dataset.addValue(23756.0, \"余杭\", \"闲林\");\n\t dataset.addValue(29513.5, \"余杭\", \"良渚\");\n\t dataset.addValue(25722.2, \"余杭\", \"瓶窑\");\n\t dataset.addValue(19650.9, \"余杭\", \"星桥\");\n\t dataset.addValue(19661.6, \"余杭\", \"崇贤\");\n\t dataset.addValue(13353.9, \"余杭\", \"塘栖\");\n\t dataset.addValue(25768.9, \"余杭\", \"勾庄\");\n\t dataset.addValue(12682.8, \"余杭\", \"仁和\");\n\t dataset.addValue(22963.1, \"余杭\", \"乔司\");\n\t dataset.addValue(19695.6, \"余杭\", \"临平\");\n\t \n\t return dataset; \n\t }", "public void generateData()\n {\n }", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "private PieDataset createDataset() {\n JOptionPane.showMessageDialog(null, \"teste\"+dados.getEntrada());\r\n \r\n DefaultPieDataset result = new DefaultPieDataset();\r\n result.setValue(\"Entrada\", dados.getEntrada());\r\n result.setValue(\"Saida\", dados.getSaida());\r\n result.setValue(\"Saldo do Periodo\", dados.getSaldo());\r\n return result;\r\n\r\n }", "private XYDataset createDataset(String WellID, String lang) {\n final TimeSeries eur = createEURTimeSeries(WellID, lang);\n final TimeSeriesCollection dataset = new TimeSeriesCollection();\n dataset.addSeries(eur);\n return dataset;\n }", "public DataSet() {\r\n \r\n }", "private DataSet caucyDataSet(){\n CauchyDistribution cauchyDistribution = new CauchyDistribution(TARGET_MEAN, TARGET_MEAN/10);\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate costs from sampling from normal distribution\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n Long cost = (long) Math.max(1, cauchyDistribution.sample()); //make sure no 0 cost events\n tasks[i] = new Task(cost, uuid);\n }\n //generate task multiplities from sampling from uniform distribution\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private void createTestData() {\n for (int i = startKey; i < startKey + numKeys; i++) {\n keys.add(i);\n }\n }", "private RandomData() {\n initFields();\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "@Before\n\tpublic void setUpData() {\n\n\t\t// Make sure there is a type in the database\n\t\tType defaultType = new Type();\n\t\tdefaultType.setName(\"type\");\n\t\ttypeService.save(defaultType);\n\n\t\t// Make sure there is a seed packet in the database\n\t\tSeedPacket seedPacket = new SeedPacketBuilder()\n\t\t\t\t.withName(\"seed\")\n\t\t\t\t.withType(\"type\")\n\t\t\t\t.withPackSize(500).build();\n\n\t\tseedPacketService.save(seedPacket);\n\t}", "public DataSet() {\n labels = new HashMap<>();\n locations = new HashMap<>();\n counter= new AtomicInteger(0);\n }", "@Override public void createSample(Sample sample)\n {\n try\n {\n clientDoctor.createSample(sample);\n }\n catch (RemoteException e)\n {\n throw new RuntimeException(\"Error while creating sample. Please try again.\");\n }\n }", "private static XYDataset createDataset(Double[] x, Double[] y) {\n\t\tlogger.info(\"Creating Dataset\");\n\t\tXYSeries s1 = new XYSeries(Double.valueOf(1));\n\t\tif (x.length != y.length) {\n\t\t\tlogger.error(\"Error in createDataset of ScatterDialog. \" +\n\t\t\t\t\t\"Could not create a dataset for the scatter plot -- missing data\");\n\t\t\treturn null;\n\t\t}\n\t\tfor (int i = 0; i < x.length; i++) {\n\t\t\tif (y[i] != null) {\n\t\t\t\ts1.add(x[i], y[i]);\n\t\t\t}\n\t\t}\n\t\tXYSeriesCollection dataset = new XYSeriesCollection();\n\t\tdataset.addSeries(s1);\n\t\treturn dataset;\n\t}", "@Test\r\n public void testDataBuilder_Init(){\r\n \tdataBuild.initAllData();\r\n \tassertTrue(dataBuild.getCPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of CPUs: \" + dataBuild.getCPUList().size());\r\n \tassertTrue(dataBuild.getGPUList().size() > 0);\r\n \tSystem.out.println(\"Total # of GPUs: \" + dataBuild.getGPUList().size());\r\n \tassertTrue(dataBuild.getMBList().size() > 0);\r\n \tSystem.out.println(\"Total # of Motherboards: \" + dataBuild.getMBList().size());\r\n \tassertTrue(dataBuild.getMEMList().size() > 0);\r\n \tSystem.out.println(\"Total # of Memory Units: \" + dataBuild.getMEMList().size());\r\n \tassertTrue(dataBuild.getPSUList().size() > 0);\r\n \tSystem.out.println(\"Total # of PSUs: \" + dataBuild.getPSUList().size());\r\n \tassertTrue(dataBuild.getDISKList().size() > 0);\r\n \tSystem.out.println(\"Total # of Disks: \" + dataBuild.getDISKList().size());\r\n }", "public static String generateDatasetName() {\n return DATASET_NAME_PREFIX + UUID.randomUUID().toString().replace('-', '_');\n }", "public void TrainDataset(){\n\t\ttry{\n\t\t\t//Testing delegate method\n\t\t\tMessageController.logToConsole(\"Hey, I'm from train button\");\n\t\t\t\n\t\t\t//Pass in the real training dataset\n\t\t\tfindSuitableK(new String[]{\"Hello\", \"World\"});\n\t\t\t\n\t\t\t//Pass in the 'k' and 'query string'\n\t\t\tfindKNN(2, \"anything\");\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\tthrow ex;\n\t\t}\n\t\tfinally{\n\t\t\t\n\t\t}\n\t}", "DataPackage createDataPackage();", "@DataProvider\r\n public Object[][] testData() {\r\n\r\n return new Object[][]{\r\n {\"Hidden\", \"Archived\"},\r\n {\"Required\", \"Draft\"},\r\n {\"Hidden\", \"Public\"}\r\n };\r\n }", "public static void main(String[] args) throws Exception {\n DataSet houseVotes = DataParser.parseData(HouseVotes.filename, HouseVotes.columnNames, HouseVotes.dataTypes, HouseVotes.ignoreColumns, HouseVotes.classColumn, HouseVotes.discretizeColumns);\n DataSet breastCancer = DataParser.parseData(BreastCancer.filename, BreastCancer.columnNames, BreastCancer.dataTypes, BreastCancer.ignoreColumns, BreastCancer.classColumn, HouseVotes.discretizeColumns);\n DataSet glass = DataParser.parseData(Glass.filename, Glass.columnNames, Glass.dataTypes, Glass.ignoreColumns, Glass.classColumn, Glass.discretizeColumns);\n DataSet iris = DataParser.parseData(Iris.filename, Iris.columnNames, Iris.dataTypes, Iris.ignoreColumns, Iris.classColumn, Iris.discretizeColumns);\n DataSet soybean = DataParser.parseData(Soybean.filename, Soybean.columnNames, Soybean.dataTypes, Soybean.ignoreColumns, Soybean.classColumn, Soybean.discretizeColumns);\n \n /*\n * The contents of the DataSet are not always random.\n * You can shuffle them using Collections.shuffle()\n */\n \n Collections.shuffle(houseVotes);\n Collections.shuffle(breastCancer);\n Collections.shuffle(glass);\n Collections.shuffle(iris);\n Collections.shuffle(soybean);\n /*\n * Lastly, you want to split the data into a regular dataset and a testing set.\n * DataSet has a function for this, since it gets a little weird.\n * This grabs 10% of the data in the dataset and sets pulls it out to make the testing set.\n * This also means that the remaining 90% in DataSet can serve as our training set.\n */\n\n DataSet houseVotesTestingSet = houseVotes.getTestingSet(.1);\n DataSet breastCancerTestingSet = breastCancer.getTestingSet(.1);\n DataSet glassTestingSet = glass.getTestingSet(.1);\n DataSet irisTestingSet = iris.getTestingSet(.1);\n DataSet soybeanTestingSet = soybean.getTestingSet(.1);\n \n //KNN\n //House Votes\n System.out.println(HouseVotes.class.getSimpleName());\n KNN knn = new KNN(houseVotes, houseVotesTestingSet, HouseVotes.classColumn, 3);\n String[] knnHouseVotes = new String[houseVotesTestingSet.size()];\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n knnHouseVotes[i] = knn.classify(houseVotesTestingSet.get(i));\n }\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n if(knnHouseVotes[i].equals(houseVotesTestingSet.get(i)[HouseVotes.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnHouseVotes[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnHouseVotes[i] + \", actually \" + houseVotesTestingSet.get(i)[HouseVotes.classColumn].value() + \")\");\n }\n }\n \n //Breast Cancer\n System.out.println(BreastCancer.class.getSimpleName());\n knn = new KNN(breastCancer, breastCancerTestingSet, BreastCancer.classColumn, 3);\n String[] knnBreastCancer = new String[breastCancerTestingSet.size()];\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n knnBreastCancer[i] = knn.classify(breastCancerTestingSet.get(i));\n }\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n if(knnBreastCancer[i].equals(breastCancerTestingSet.get(i)[BreastCancer.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnBreastCancer[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnBreastCancer[i] + \", actually \" + breastCancerTestingSet.get(i)[BreastCancer.classColumn].value() + \")\");\n }\n }\n \n //Glass\n System.out.println(Glass.class.getSimpleName());\n knn = new KNN(glass, glassTestingSet, Glass.classColumn, 3);\n String[] knnGlass = new String[glassTestingSet.size()];\n for(int i = 0; i < glassTestingSet.size(); i++) {\n knnGlass[i] = knn.classify(glassTestingSet.get(i));\n }\n for(int i = 0; i < glassTestingSet.size(); i++) {\n if(knnGlass[i].equals(glassTestingSet.get(i)[Glass.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnGlass[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnGlass[i] + \", actually \" + glassTestingSet.get(i)[Glass.classColumn].value() + \")\");\n }\n }\n \n //Iris\n System.out.println(Iris.class.getSimpleName());\n knn = new KNN(iris, irisTestingSet, Iris.classColumn, 3);\n String[] knnIris = new String[irisTestingSet.size()];\n for(int i = 0; i < irisTestingSet.size(); i++) {\n knnIris[i] = knn.classify(irisTestingSet.get(i));\n }\n for(int i = 0; i < irisTestingSet.size(); i++) {\n if(knnIris[i].equals(irisTestingSet.get(i)[Iris.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnIris[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnIris[i] + \", actually \" + irisTestingSet.get(i)[Iris.classColumn].value() + \")\");\n }\n }\n \n //Soybean\n System.out.println(Soybean.class.getSimpleName());\n knn = new KNN(soybean, soybeanTestingSet, Soybean.classColumn, 3);\n String[] knnSoybean = new String[soybeanTestingSet.size()];\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n knnSoybean[i] = knn.classify(soybeanTestingSet.get(i));\n }\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n if(knnSoybean[i].equals(soybeanTestingSet.get(i)[Soybean.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnSoybean[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnSoybean[i] + \", actually \" + soybeanTestingSet.get(i)[Soybean.classColumn].value() + \")\");\n }\n }\n \n \n /*\n * Lets setup ID3:\n * DataSet, TestSet, column with the class categorization. (republican, democrat in this case)\n */\n\n System.out.println(HouseVotes.class.getSimpleName());\n ID3 id3 = new ID3(houseVotes, houseVotesTestingSet, HouseVotes.classColumn);\n String[] id3HouseVotes = new String[houseVotesTestingSet.size()];\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n id3HouseVotes[i] = id3.classify(houseVotesTestingSet.get(i));\n }\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n if(id3HouseVotes[i].equals(houseVotesTestingSet.get(i)[HouseVotes.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3HouseVotes[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3HouseVotes[i] + \", actually \" + houseVotesTestingSet.get(i)[HouseVotes.classColumn].value() + \")\");\n }\n }\n\n System.out.println(BreastCancer.class.getSimpleName());\n id3 = new ID3(breastCancer, breastCancerTestingSet, BreastCancer.classColumn);\n String[] id3BreastCancer = new String[breastCancerTestingSet.size()];\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n id3BreastCancer[i] = id3.classify(breastCancerTestingSet.get(i));\n }\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n if(id3BreastCancer[i].equals(breastCancerTestingSet.get(i)[BreastCancer.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3BreastCancer[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3BreastCancer[i] + \", actually \" + breastCancerTestingSet.get(i)[BreastCancer.classColumn].value() + \")\");\n }\n }\n\n System.out.println(Glass.class.getSimpleName());\n id3 = new ID3(glass, glassTestingSet, Glass.classColumn);\n String[] id3Glass = new String[glassTestingSet.size()];\n for(int i = 0; i < glassTestingSet.size(); i++) {\n id3Glass[i] = id3.classify(glassTestingSet.get(i));\n }\n for(int i = 0; i < glassTestingSet.size(); i++) {\n if(id3Glass[i].equals(glassTestingSet.get(i)[Glass.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3Glass[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3Glass[i] + \", actually \" + glassTestingSet.get(i)[Glass.classColumn].value() + \")\");\n }\n }\n\n System.out.println(Iris.class.getSimpleName());\n id3 = new ID3(iris, irisTestingSet, Iris.classColumn);\n String[] id3Iris = new String[irisTestingSet.size()];\n for(int i = 0; i < irisTestingSet.size(); i++) {\n id3Iris[i] = id3.classify(irisTestingSet.get(i));\n }\n for(int i = 0; i < irisTestingSet.size(); i++) {\n if(id3Iris[i].equals(irisTestingSet.get(i)[Iris.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3Iris[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3Iris[i] + \", actually \" + irisTestingSet.get(i)[Iris.classColumn].value() + \")\");\n }\n }\n\n System.out.println(Soybean.class.getSimpleName());\n id3 = new ID3(soybean, soybeanTestingSet, Soybean.classColumn);\n String[] id3Soybean = new String[soybeanTestingSet.size()];\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n id3Soybean[i] = id3.classify(soybeanTestingSet.get(i));\n }\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n if(id3Soybean[i].equals(soybeanTestingSet.get(i)[Soybean.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3Soybean[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3Soybean[i] + \", actually \" + soybeanTestingSet.get(i)[Soybean.classColumn].value() + \")\");\n }\n }\n }", "public AnalysisDatasets() {\n }", "public abstract FastqSampleGroup create(File sampleDir) throws IOException;", "private void setTestData() {\n\t\tCollections.shuffle(input);\n\t\ttestData = new LinkedList<>();\n\t\tfor (int i = 0; i < TEST_DATA_SIZE; i++) {\n\t\t\ttestData.add(input.remove(0));\n\t\t}\n\t}", "org.hl7.fhir.SampledData addNewValueSampledData();", "public void createDataFeeds(){\n\n\t\tfinal MyDbHelper helper = new MyDbHelper(this);\n\t\tfinal SQLiteDatabase db = helper.getWritableDatabase();\n\t\t\n\t\tContentValues values = new ContentValues();\n\t\t\n\t\tDummyFeed.createFeeds(db, values);\t\t\n\t\t\n\t\tdb.close();\n\t\t\n\t}", "@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}", "@Override\n public BaseDataProvider creatDataProvider() {\n return null;\n }", "Data() throws IOException {\n // Initialise new default path from scratch\n path = Path.of(\"src/main/data/duke.txt\");\n new File(\"src/main/data\").mkdirs();\n new File(path.toString()).createNewFile();\n }", "private static XYZDataset createDataset(Comparable<?> xKey, \n Comparable<?> yKey, Comparable<?> zKey) {\n Reader in = new InputStreamReader(\n ScatterPlot3D3.class.getResourceAsStream(\"iris.txt\"));\n KeyedValues3D data;\n try {\n data = JSONUtils.readKeyedValues3D(in);\n } catch (IOException ex) {\n throw new RuntimeException(ex);\n }\n return DataUtils.extractXYZDatasetFromColumns(data, xKey, yKey, zKey);\n }", "private XYDataset createDataset() {\n\t \tXYSeriesCollection dataset = new XYSeriesCollection();\n\t \t\n\t \t//Definir cada Estacao\n\t\t XYSeries aes1 = new XYSeries(\"Estação1\");\n\t\t XYSeries aes2 = new XYSeries(\"Estação2\");\n\t\t XYSeries aes3 = new XYSeries(\"Estação3\");\n\t\t XYSeries aes4 = new XYSeries(\"Estação4\");\n\t\t XYSeries aes5 = new XYSeries(\"Estação5\");\n\t\t XYSeries aes6 = new XYSeries(\"Estação6\");\n\t\t XYSeries aes7 = new XYSeries(\"Estação7\");\n\t\t XYSeries aes8 = new XYSeries(\"Estação8\");\n\t\t XYSeries aes9 = new XYSeries(\"Estação9\");\n\t\t XYSeries aes10 = new XYSeries(\"Estação10\");\n\t\t XYSeries aes11 = new XYSeries(\"Estação11\");\n\t\t XYSeries aes12 = new XYSeries(\"Estação12\");\n\t\t XYSeries aes13 = new XYSeries(\"Estação13\");\n\t\t XYSeries aes14 = new XYSeries(\"Estação14\");\n\t\t XYSeries aes15 = new XYSeries(\"Estação15\");\n\t\t XYSeries aes16 = new XYSeries(\"Estação16\");\n\t\t \n\t\t //Definir numero de utilizadores em simultaneo para aparece na Interface\n\t\t XYSeries au1 = new XYSeries(\"AU1\");\n\t\t XYSeries au2 = new XYSeries(\"AU2\");\n\t\t XYSeries au3 = new XYSeries(\"AU3\");\n\t\t XYSeries au4 = new XYSeries(\"AU4\");\n\t\t XYSeries au5 = new XYSeries(\"AU5\");\n\t\t XYSeries au6 = new XYSeries(\"AU6\");\n\t\t XYSeries au7 = new XYSeries(\"AU7\");\n\t\t XYSeries au8 = new XYSeries(\"AU8\");\n\t\t XYSeries au9 = new XYSeries(\"AU9\");\n\t\t XYSeries au10 = new XYSeries(\"AU10\");\n\t\t \n\t\t //Colocar estacoes no gráfico\n\t\t aes1.add(12,12);\n\t\t aes2.add(12,37);\n\t\t aes3.add(12,62);\n\t\t aes4.add(12,87);\n\t\t \n\t\t aes5.add(37,12);\n\t\t aes6.add(37,37);\n\t\t aes7.add(37,62);\n\t\t aes8.add(37,87);\n\t\t \n\t\t aes9.add(62,12); \n\t\t aes10.add(62,37);\n\t\t aes11.add(62,62);\n\t\t aes12.add(62,87);\n\t\t \n\t\t aes13.add(87,12);\n\t\t aes14.add(87,37);\n\t\t aes15.add(87,62);\n\t\t aes16.add(87,87);\n\t\t \n\t\t//Para a bicicleta 1\n\t\t \t\n\t\t\t for(Entry<String, String> entry : position1.entrySet()) {\n\t\t\t\t String key = entry.getKey();\n\t\t\t\t \n\t\t\t\t String[] part= key.split(\",\");\n\t\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t\t \n\t\t\t\t au1.add(keyX,keyY);\n\t\t\t }\n\t\t \n\t\t\t //Para a bicicleta 2\n\t\t for(Entry<String, String> entry : position2.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au2.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Para a bicicleta 3\n\t\t for(Entry<String, String> entry : position3.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au3.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position4.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au4.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position5.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au5.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position6.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au6.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position7.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au7.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position8.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au8.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position9.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au9.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position10.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au10.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Add series to dataset\n\t\t dataset.addSeries(au1);\n\t\t dataset.addSeries(au2);\n\t\t dataset.addSeries(au3);\n\t\t dataset.addSeries(au4);\n\t\t dataset.addSeries(au5);\n\t\t dataset.addSeries(au6);\n\t\t dataset.addSeries(au7);\n\t\t dataset.addSeries(au8);\n\t\t dataset.addSeries(au9);\n\t\t dataset.addSeries(au10);\n\t\t \n\t\t \n\t\t dataset.addSeries(aes1);\n\t\t dataset.addSeries(aes2);\n\t\t dataset.addSeries(aes3);\n\t\t dataset.addSeries(aes4);\n\t\t dataset.addSeries(aes5);\n\t\t dataset.addSeries(aes6);\n\t\t dataset.addSeries(aes7);\n\t\t dataset.addSeries(aes8);\n\t\t dataset.addSeries(aes9);\n\t\t dataset.addSeries(aes10);\n\t\t dataset.addSeries(aes11);\n\t\t dataset.addSeries(aes12);\n\t\t dataset.addSeries(aes13);\n\t\t dataset.addSeries(aes14);\n\t\t dataset.addSeries(aes15);\n\t\t dataset.addSeries(aes16);\n\t\t \n\t\t return dataset;\n\t }", "public static void main(String[] args) {\n\t\tCreateClassificationData test = new CreateClassificationData(\"originalData/Data.txt\");\n\t}", "public void createDataSourceReturnsCorrectDefinition() {\n SoftDeleteColumnDeletionDetectionPolicy deletionDetectionPolicy =\n new SoftDeleteColumnDeletionDetectionPolicy()\n .setSoftDeleteColumnName(\"isDeleted\")\n .setSoftDeleteMarkerValue(\"1\");\n\n HighWaterMarkChangeDetectionPolicy changeDetectionPolicy =\n new HighWaterMarkChangeDetectionPolicy(\"fakecolumn\");\n\n // AzureSql\n createAndValidateDataSource(createTestSqlDataSourceObject(null, null));\n createAndValidateDataSource(createTestSqlDataSourceObject(deletionDetectionPolicy, null));\n createAndValidateDataSource(createTestSqlDataSourceObject(null, new SqlIntegratedChangeTrackingPolicy()));\n createAndValidateDataSource(createTestSqlDataSourceObject(deletionDetectionPolicy,\n changeDetectionPolicy));\n\n // Cosmos\n createAndValidateDataSource(createTestCosmosDataSource(null, false));\n createAndValidateDataSource(createTestCosmosDataSource(null, true));\n createAndValidateDataSource(createTestCosmosDataSource(deletionDetectionPolicy, false));\n createAndValidateDataSource(createTestCosmosDataSource(deletionDetectionPolicy, false));\n\n // Azure Blob Storage\n createAndValidateDataSource(createTestBlobDataSource(null));\n createAndValidateDataSource(createTestBlobDataSource(deletionDetectionPolicy));\n\n // Azure Table Storage\n createAndValidateDataSource(createTestTableStorageDataSource());\n createAndValidateDataSource(createTestBlobDataSource(deletionDetectionPolicy));\n }", "public void createDataSourceReturnsCorrectDefinition() {\n SoftDeleteColumnDeletionDetectionPolicy deletionDetectionPolicy =\n new SoftDeleteColumnDeletionDetectionPolicy()\n .setSoftDeleteColumnName(\"isDeleted\")\n .setSoftDeleteMarkerValue(\"1\");\n\n HighWaterMarkChangeDetectionPolicy changeDetectionPolicy =\n new HighWaterMarkChangeDetectionPolicy(\"fakecolumn\");\n\n // AzureSql\n createAndValidateDataSource(createTestSqlDataSourceObject(null, null));\n createAndValidateDataSource(createTestSqlDataSourceObject(deletionDetectionPolicy, null));\n createAndValidateDataSource(createTestSqlDataSourceObject(null, new SqlIntegratedChangeTrackingPolicy()));\n createAndValidateDataSource(createTestSqlDataSourceObject(deletionDetectionPolicy,\n changeDetectionPolicy));\n\n // Cosmos\n createAndValidateDataSource(createTestCosmosDataSource(null, false));\n createAndValidateDataSource(createTestCosmosDataSource(null, true));\n createAndValidateDataSource(createTestCosmosDataSource(deletionDetectionPolicy, false));\n createAndValidateDataSource(createTestCosmosDataSource(deletionDetectionPolicy, false));\n\n // Azure Blob Storage\n createAndValidateDataSource(createTestBlobDataSource(null));\n createAndValidateDataSource(createTestBlobDataSource(deletionDetectionPolicy));\n\n // Azure Table Storage\n createAndValidateDataSource(createTestTableStorageDataSource());\n createAndValidateDataSource(createTestBlobDataSource(deletionDetectionPolicy));\n }", "@Override\n\t@SystemSetup(extension = FrameitcoreConstants.EXTENSIONNAME, process = Process.ALL, type = Type.ESSENTIAL)\n\tpublic void createEssentialData() {\n\t\t// Import essential data\n\t\tLOG.info(\"Importing essential data...\");\n\n\t\tsuper.importData(\"/essentialData/countries.impex\");\n\n\t\tLOG.info(\"Essential data import complete.\");\n\t}", "public void create_dataset(double sampling_rate, double freq, int n) {\n double amplitude = 10.0d;\n double constant = freq/sampling_rate*2.0d*Math.PI;\n double sumTWD=0.0d;\n\n for (int i = 0; i < n; i++) {\n NavigationTools.TWD.add((Math.sin((double)i*constant)+Math.random()*0.2d)*amplitude);\n sumTWD += NavigationTools.TWD.getLast();\n }\n\n NavigationTools.TWD_longAVG=sumTWD/(double)n;\n }", "@POST\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response createDataSet(@QueryParam(Q_PROVIDER) String providerId, Dataset<String> dataset) {\n\n ParamUtil.require(\"dataset\", dataset);\n ParamUtil.require(\"providerId\", providerId);\n\n Dataset<String> createdDataset = datasetService.createDataSet(providerId, dataset);\n return Response.ok().entity(createdDataset).build();\n }", "public CategoryDataset createDataset() {\n\t\tfinal DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\t\tProjectManagement projectManagement = new ProjectManagement();\n\t\tif (this.chartName == \"Earned Value\") {\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getEarnedValue(date), \"Earned Value\", date);\n\t\t\t}\n\t\t} else if (this.chartName == \"Schedule Variance\") {\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getScheduleVariance(date), \"Schedule Variance\", date);\n\t\t\t}\n\n\t\t} else {// Cost Variance\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getCostVariance(date), \"Cost Variance\", date);\n\t\t\t}\n\t\t}\n\t\treturn dataset;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate static void createTestData() {\n\t\t\n\t\tusers.put(\"User0\", objectHandler.createUser(25.0));\n\t\tusers.put(\"User1\", objectHandler.createUser(1.0));\n\t\t\n\t\tdocuments.put(\"Doc0\", objectHandler.createDocument(\"mydoc\", 25, '4', 'C'));\n\t\tdocuments.put(\"Doc1\", objectHandler.createDocument(\"another\", 15, '3', 'B'));\n\t\t\n\t\tusers.get(\"User0\").addDocument(documents.get(\"Doc0\"));\n\t\tusers.get(\"User1\").addDocument(documents.get(\"Doc1\"));\n\t\t\n\t\tPrinterCapability capability1 = objectHandler.createPrinterCapability(true, false, true, true);\n\t\tPrinterCapability capability2 = objectHandler.createPrinterCapability(false, true, true, false);\n\t\tPrinterCapability capability3 = objectHandler.createPrinterCapability(false, true, true, false);\n\t\t\n\t\tPrinterPricing pricing = objectHandler.createPrinterPricing(0.03, 0.14, 0.06, 0.24);\n\t\t\n\t\tPrinterCapacity capacity1 = objectHandler.createPrinterCapacity(25, 0, 10, 30);\n\t\tPrinterCapacity capacity2 = objectHandler.createPrinterCapacity(0, 10, 15, 0);\n\t\tPrinterCapacity capacity3 = objectHandler.createPrinterCapacity(0, 10, 15, 0);\n\t\t\n\t\tprinters.put(\"Printer0\", objectHandler.createPrinter(\"A4All\", capability1, pricing, capacity1, objectHandler.createPrinterStatus()));\n\t\tprinters.put(\"Printer1\", objectHandler.createPrinter(\"A3B\", capability2, pricing, capacity2, objectHandler.createPrinterStatus()));\n\t\tprinters.put(\"Printer2\", objectHandler.createPrinter(\"A3B-rip\", capability3, pricing, capacity3, objectHandler.createPrinterStatus()));\n\t\t\n\t\tVDMSet status = new VDMSet();\n\t\tstatus.add(\"needFixing\");\n\t\tprinters.get(\"Printer2\").break_(status);\n\t}", "private CinaImageDataSetInformation createDataSetInformation()\n {\n CinaImageDataSetInformation metadataDataSetInfo = new CinaImageDataSetInformation();\n metadataDataSetInfo.setSampleCode(replicaSampleId.getSampleCode());\n metadataDataSetInfo.setSpaceCode(replicaSampleId.getSpaceLevel().getSpaceCode());\n metadataDataSetInfo.setDataSetType(globalState.getImageDataSetType().getDataSetType());\n metadataDataSetInfo.setDataSetKind(DataSetKind.PHYSICAL);\n List<String> parentDataSetCodes =\n Collections.singletonList(bundleMetadataDataSetInformation.getDataSetCode());\n metadataDataSetInfo.setParentDataSetCodes(parentDataSetCodes);\n metadataDataSetInfo.setShareId(bundleMetadataDataSetInformation.getShareId());\n return metadataDataSetInfo;\n }", "private void createData() {\n//\n// tour = new Tour();\n// tour.setTitle(\"Death Valley\");\n// tour.setDescription(\"A tour to Death Valley\");\n// tour.setPrice(900);\n// tour.setImage(\"death_valley\");\n// tour = dataSource.create(tour);\n// Log.i(LOGTAG, \"Tour created with id \" + tour.getId());\n//\n// tour = new Tour();\n// tour.setTitle(\"San Francisco\");\n// tour.setDescription(\"A tour to San Francisco\");\n// tour.setPrice(1200);\n// tour.setImage(\"san_francisco\");\n// tour = dataSource.create(tour);\n// Log.i(LOGTAG, \"Tour created with id \" + tour.getId());\n\n ToursPullParser parser = new ToursPullParser();\n tours = parser.parseXML(this);\n\n for (Tour tour : tours) {\n dataSource.create(tour);\n }\n\n }", "public hu.blackbelt.epsilon.runtime.model.test1.data.DataModel build() {\n final hu.blackbelt.epsilon.runtime.model.test1.data.DataModel _newInstance = hu.blackbelt.epsilon.runtime.model.test1.data.DataFactory.eINSTANCE.createDataModel();\n if (m_featureNameSet) {\n _newInstance.setName(m_name);\n }\n if (m_featureEntitySet) {\n _newInstance.getEntity().addAll(m_entity);\n } else {\n if (!m_featureEntityBuilder.isEmpty()) {\n for (hu.blackbelt.epsilon.runtime.model.test1.data.util.builder.IDataBuilder<? extends hu.blackbelt.epsilon.runtime.model.test1.data.Entity> builder : m_featureEntityBuilder) {\n _newInstance.getEntity().add(builder.build());\n }\n }\n }\n return _newInstance;\n }", "public DataSet( int _height , int _width) throws FileNotFoundException {\n height = _height;\n width = _width;\n InitFile( \"src/com/algorithme/DataSet.txt\" );\n InitTargets();\n InitFeatures();\n System.out.println(\"Création de la DataSet\");\n }", "@Before\r\n\tpublic void setUp() {\r\n\t\tRandom r = new Random();\r\n\t\tmyID = r.nextInt(100);\r\n\t\tmyEntryData = new Entry_Database();\r\n\t\tfor (int i = 0; i < 20; i++) {\r\n\t\t\tEntry e = new Entry(myID);\r\n\t\t\te.setCat(\"Science\");\r\n\t\t\te.setEntry(new File(\"example.txt\"));\r\n\t\t\te.setName(\"Test Name\");\r\n\t\t\te.setNotes(\"\");\r\n\t\t\te.setScore(0);\r\n\t\t\tmyEntryData.addEntry(myID, e);\r\n\t\t}\r\n\t}", "private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }", "public SimpleDataGenerator() {\n\n names.add(\"Anna\");\n names.add(\"Maria\");\n names.add(\"Angela\");\n names.add(\"Monika\");\n names.add(\"Agnieszka\");\n names.add(\"Agnieszka\");\n names.add(\"Natalia\");\n names.add(\"Andzrzej\");\n names.add(\"Ferdynand\");\n names.add(\"Mateusz\");\n names.add(\"Adam\");\n names.add(\"Wojciech\");\n names.add(\"Robert\");\n names.add(\"Jerzy\");\n names.add(\"Jakub\");\n names.add(\"Patryk\");\n names.add(\"Alekasnder\");\n names.add(\"Lech\");\n names.add(\"Antoni\");\n names.add(\"Marian\");\n\n surnames.add(\"Kowalski\");\n surnames.add(\"Nowak\");\n surnames.add(\"Brzozowski\");\n surnames.add(\"Kaczynski\");\n surnames.add(\"Ziobro\");\n surnames.add(\"Macierewicz\");\n surnames.add(\"Kopacz\");\n surnames.add(\"Tusk\");\n surnames.add(\"Szydlo\");\n surnames.add(\"Niesiolowski\");\n surnames.add(\"Grodzki\");\n surnames.add(\"Szpak\");\n surnames.add(\"Kiepski\");\n surnames.add(\"Aleksandrowicz\");\n surnames.add(\"Wyrostek\");\n surnames.add(\"Gibala\");\n surnames.add(\"Marcinkiewicz\");\n surnames.add(\"Mrozowicz\");\n surnames.add(\"Olechowski\");\n surnames.add(\"Duda\");\n surnames.add(\"Thrump\");\n\n products.add(\"Komputer\");\n products.add(\"Myszka\");\n products.add(\"Monitor\");\n products.add(\"Klawiatura\");\n products.add(\"Kawa\");\n products.add(\"Herbata\");\n }", "public void makeData() {\n\t\tFile file = null;\r\n try {\r\n if (!m.getDataFolder().exists()) { //Check if the directory of the plugin exists...\r\n \tm.getDataFolder().mkdirs(); //If not making one.\r\n }\r\n file = new File(m.getDataFolder(), \"data.yml\"); // Defining file to data.yml NOTE: This file has to be also in your Project, even if it's empty.\r\n if (!file.exists()) { //Check if it exists\r\n \tm.getLogger().info(\"data.yml not found, creating!\"); //Log that it is creating\r\n \tm.saveResource(\"data.yml\", true); //Saving the resource, This is all by Java done no Spigot noeeded. \r\n } else {\r\n \tm.getLogger().info(\"data.yml found, loading!\"); //If it is already there, load it.\r\n \t//TODO: Loading...\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();//If something returned a NPE or something it will print a stacktrace...\r\n }\r\n\t}", "private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\n\t\tif (_controler != null) {\n\t\t\tfor (Object cat : _controler.getCategorieData()) {\n\n\t\t\t\tresult.setValue((String) cat, _controler.getTotal((String) cat));\n\n\t\t\t}\n\t\t}\n\t\treturn result;\n\n\t}", "@Test\n public void test64() throws Throwable {\n CategoryPlot categoryPlot0 = new CategoryPlot();\n CategoryDataset categoryDataset0 = categoryPlot0.getDataset(557);\n }", "public static void main(String[] args) throws Exception {\n int numLinesToSkip = 0;\n String delimiter = \",\"; //这是csv文件中的分隔符\n RecordReader recordReader = new CSVRecordReader(numLinesToSkip,delimiter);\n recordReader.initialize(new FileSplit(new ClassPathResource(\"dataSet20170119.csv\").getFile()));\n\n //Second: the RecordReaderDataSetIterator handles conversion to DataSet objects, ready for use in neural network\n\n /**\n * 这是标签(类别)所在列的序号\n */\n int labelIndex = 0; //5 values in each row of the iris.txt CSV: 4 input features followed by an integer label (class) index. Labels are the 5th value (index 4) in each row\n //类别的总数\n int numClasses = 2; //3 classes (types of iris flowers) in the iris data set. Classes have integer values 0, 1 or 2\n\n //一次读取多少条数据。当数据量较大时可以分几次读取,每次读取后就训练。这就是随机梯度下降\n int batchSize = 2000; //Iris data set: 150 examples total. We are loading all of them into one DataSet (not recommended for large data sets)\n\n DataSetIterator iterator = new RecordReaderDataSetIterator(recordReader,batchSize,labelIndex,numClasses);\n //因为我在这里写的2000是总的数据量大小,一次读完,所以一次next就完了。如果分批的话要几次next\n DataSet allData = iterator.next();\n// allData.\n allData.shuffle();\n SplitTestAndTrain testAndTrain = allData.splitTestAndTrain(0.8); //Use 65% of data for training\n\n DataSet trainingData = testAndTrain.getTrain();\n DataSet testData = testAndTrain.getTest();\n //We need to normalize our data. We'll use NormalizeStandardize (which gives us mean 0, unit variance):\n //数据归一化的步骤,非常重要,不做可能会导致梯度中的几个无法收敛\n DataNormalization normalizer = new NormalizerStandardize();\n normalizer.fit(trainingData); //Collect the statistics (mean/stdev) from the training data. This does not modify the input data\n normalizer.transform(trainingData); //Apply normalization to the training data\n normalizer.transform(testData); //Apply normalization to the test data. This is using statistics calculated from the *training* set\n\n\n final int numInputs = 9202;\n int outputNum = 2;\n int iterations = 1000;\n long seed = 142;\n int numEpochs = 50; // number of epochs to perform\n\n log.info(\"Build model....\");\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(seed)\n .optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT)\n .iterations(iterations)\n .activation(Activation.SIGMOID)\n .weightInit(WeightInit.ZERO) //参数初始化的方法,全部置零\n .learningRate(1e-3) //经过测试,这里的学习率在1e-3比较合适\n .regularization(true).l2(5e-5) //正则化项,防止参数过多导致过拟合。2阶范数乘一个比率\n .list()\n\n .layer(0, new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD)\n .activation(Activation.SIGMOID)\n .nIn(numInputs).nOut(outputNum).build())\n .backprop(true).pretrain(false)\n .build();\n\n //run the model\n MultiLayerNetwork model = new MultiLayerNetwork(conf);\n model.init();\n model.setListeners(new ScoreIterationListener(100));\n\n\n log.info(\"Train model....\");\n for( int i=0; i<numEpochs; i++ ){\n log.info(\"Epoch \" + i);\n model.fit(trainingData);\n\n //每个epoch结束后立马观察模型估计的效果,方便及早停止\n Evaluation eval = new Evaluation(numClasses);\n INDArray output = model.output(testData.getFeatureMatrix());\n eval.eval(testData.getLabels(), output);\n log.info(eval.stats());\n }\n\n }", "public void addDataset(Resource dataset, String label, String comment, String publisher, String date, Resource structure){\n\t\tdataCubeModel.add(dataset, RDF.type, QB.Dataset);\n\t\tdataCubeModel.add(dataset, DCTerms.publisher, publisher);\n\t\tdataCubeModel.add(dataset, RDFS.label, label);\n\t\tdataCubeModel.add(dataset, RDFS.comment, comment);\n\t\tdataCubeModel.add(dataset, QB.structure, structure);\n\t\tdataCubeModel.add(dataset, DCTerms.date, date);\n\t}", "public DataResourceBuilder _sample_(Resource _sample_) {\n this.dataResourceImpl.getSample().add(_sample_);\n return this;\n }", "public void PrepareDataset(TweetPreprocessor preprocessor, String dataset)\n\t{\n\t\tdbiterator = DBInstanceIterator.getInstance();\n\t\ttry\n {\n System.out.println(\"Preparing Datasets ...\");\n //PrepareAll(preprocessor,dataset);\n\n\t\t\tSystem.out.println(\"Saving work to Database ..\");\n\t\t\tsaveTextOutput(Dataset + \"data_text.csv\", \"d_text\");\n\t\t\tsaveTextOutput(Dataset + \"data_feature.csv\", \"d_feature\");\n\t\t\tsaveTextOutput(Dataset + \"data_complex.csv\", \"d_complex\");\n\t\t\t//saveLexiconOuput(Dataset + \"data_lexicon.csv\",true);\n\t\t\tSystem.out.println(\"Datasets ready for training .%.\");\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static List<Point> createConvergingDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 400);\r\n add(data, 5, 700);\r\n add(data, 10, 900);\r\n add(data, 15, 1000);\r\n add(data, 20, 1050);\r\n add(data, 25, 1060);\r\n add(data, 30, 1062);\r\n return data;\r\n }", "public Dataset getDataset(DatasetType dataType){\n switch(dataType){\n case TEST:\n return test;\n case TRAINING:\n return training;\n default:\n return null;\n }\n }", "@DataProvider\n public Object[][] Data() \n {\n return new Object[][]\n {\n {\"a\" ,\"aaaa\" },\n { \"b\" ,\"bbb\"},\n {\"c\" ,\"ccc\"}\n \n };\n }", "void makeSampleGraph() {\n\t\tg.addVertex(\"a\");\n\t\tg.addVertex(\"b\");\n\t\tg.addVertex(\"c\");\n\t\tg.addVertex(\"d\");\n\t\tg.addVertex(\"e\");\n\t\tg.addVertex(\"f\");\n\t\tg.addVertex(\"g\");\n\t\tg.addEdge(\"a\", \"b\");\n\t\tg.addEdge(\"b\", \"c\");\n\t\tg.addEdge(\"b\", \"f\");\n\t\tg.addEdge(\"c\", \"d\");\n\t\tg.addEdge(\"d\", \"e\");\n\t\tg.addEdge(\"e\", \"f\");\n\t\tg.addEdge(\"e\", \"g\");\n\t}", "public Test makeTest(DataSource ds, List<Question> givenQns){\n\t\tArrayList<Question> startQns = new ArrayList<Question>();\n\t\tfor (int i = 0; i < givenQns.size(); i++){\n\t\t\tstartQns.add((Question)givenQns.get(i));\n\t\t}\n\t\tString category = startQns.get(0).getCategory();\n\t\tString difficulty = \"any\";\n\t\t\n\t\twhile(startQns.size()>5){\n\t\t\tint index = (int)(Math.random()*startQns.size());\n\t\t\tstartQns.remove(index);\n\t\t}\n\t\tTest test = this.makeTest(ds, difficulty, category, 5, startQns);\n//\t\tSystem.out.println(\"TestMakerA->test: \" + test.toString());\n\t\tint[] correct = new int[5];\n\t\tArrayList<Question[]> questions = (ArrayList<Question[]>)test.getTest();\n\n\t\tfor(int i = 0; i < 5; i++){\n\t\t\tcorrect[i] = (int)(Math.random()*4);\n\t\t\tif(questions.get(i)[correct[i]] != startQns.get(i)){\n\t\t\t\tquestions.get(i)[correct[i]] = startQns.get(i);\n\t\t\t}\n\t\t}\n\n\t\ttest.setCorrect(correct);\n\t\treturn test;\n\t}", "void init(Dataset ds, Session sess);", "protected abstract D createData();", "@DataProvider(name = \"zimPageShowNotesPairs\")\n\tpublic\n\tObject[][] createData1()\n\t{\n\t\treturn new Object[][]\n\t\t\t{\n\t\t\t\t{\":UbuntuPodcast:s10:e05\", \"http://ubuntupodcast.org/2017/04/06/s10e05-supreme-luxuriant-gun/\"},\n\t\t\t};\n\t}", "@BeforeClass (alwaysRun = true)\n public void dataPreparation()\n {\n serverHealth.isServerReachable();\n serverHealth.assertServerIsOnline();\n\n // Before we start testing the live indexing we need to use the reindexing component to index the system nodes.\n Step.STEP(\"Index system nodes.\");\n AlfrescoStackInitializer.reindexEverything();\n\n Step.STEP(\"Create a test user and private site.\");\n testUser = dataUser.createRandomTestUser();\n testSite = helper.createPrivateSite(testUser);\n }", "public void generateRandomVaraibles() {\r\n\r\n\t\tfor (DataVariable var : dataTestModel) {\r\n\t\t\tif (!var.getType().equals(\"LOCAL_DATA\") && !var.getType().equals(\"OUTPUT_DATA\")) {\r\n\t\t\t\tif (var.getType().equals(\"boolean\") || var.getType().equals(\"Boolean\")) {\r\n\t\t\t\t\tvar.setValue(String.valueOf(getRandomBoolean()));\r\n\r\n\t\t\t\t} else if (var.getType().equals(\"int\")) {\r\n\t\t\t\t\tif (var.getMinimumValue() != null && var.getMinimumValue().length() > 0\r\n\t\t\t\t\t\t\t&& var.getMaximumValue() != null && var.getMaximumValue().length() > 0) {\r\n\t\t\t\t\t\tvar.setValue(String.valueOf(randomInt(Integer.parseInt(var.getMinimumValue()),\r\n\t\t\t\t\t\t\t\tInteger.parseInt(var.getMaximumValue()))));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tvar.setValue(String.valueOf(randomInt(0, 100)));\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (var.getType().equals(\"double\")) {\r\n\t\t\t\t\tif (var.getMinimumValue() != null && var.getMinimumValue().length() > 0\r\n\t\t\t\t\t\t\t&& var.getMaximumValue() != null && var.getMaximumValue().length() > 0) {\r\n\t\t\t\t\t\tvar.setValue(String.valueOf(randomDouple(Double.parseDouble(var.getMinimumValue()),\r\n\t\t\t\t\t\t\t\tDouble.parseDouble(var.getMaximumValue()))));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tvar.setValue(String.valueOf(randomDouple(0.0, 100.0)));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@DataProvider(name=\"dataset\")\r\n\tpublic static Object[][] getdata() throws IOException{\r\n\t\tObject [][] ob= new IO().getdataset(\"./dataset.csv\");\t\r\n\treturn ob;\r\n\t}", "private void createDummyData() {\n YangInstanceIdentifier yiid;\n // create 2 links (stored in waitingLinks)\n LeafNode<String> link1Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_1);\n LeafNode<String> link2Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_3);\n\n ContainerNode source1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link1Source).build();\n ContainerNode source2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link2Source).build();\n\n LeafNode<String> link1Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_2);\n LeafNode<String> link2Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_4);\n ContainerNode dest1Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link1Dest).build();\n ContainerNode dest2Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link2Dest).build();\n\n MapEntryNode link1 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_1)\n .withChild(source1Container).withChild(dest1Container).build();\n MapEntryNode link2 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_2)\n .withChild(source2Container).withChild(dest2Container).build();\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_1);\n UnderlayItem item = new UnderlayItem(link1, null, TOPOLOGY_ID, LINK_ID_1, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_2);\n item = new UnderlayItem(link2, null, TOPOLOGY_ID, LINK_ID_2, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create 2 supporting nodes under two overlay nodes\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1).build();\n Map<QName, Object> suppNode1KeyValues = new HashMap<>();\n suppNode1KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode1KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_1);\n MapEntryNode menSuppNode1 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode1KeyValues)).build();\n MapNode suppNode1List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode1).build();\n MapEntryNode overlayNode1 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_1)\n .addChild(suppNode1List).build();\n item = new UnderlayItem(overlayNode1, null, TOPOLOGY_ID, OVERLAY_NODE_ID_1, CorrelationItemEnum.Node);\n // overlayNode1 is created\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2).build();\n Map<QName, Object> suppNode2KeyValues = new HashMap<>();\n suppNode2KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode2KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_2);\n MapEntryNode menSuppNode2 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode2KeyValues)).build();\n MapNode suppNode2List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode2).build();\n MapEntryNode overlayNode2 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_2)\n .addChild(suppNode2List).build();\n item = new UnderlayItem(overlayNode2, null, TOPOLOGY_ID, OVERLAY_NODE_ID_2, CorrelationItemEnum.Node);\n // overlayNode2 is created and link:1 is matched\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create a third supporting node under a third overlay node\n yiid = YangInstanceIdentifier.builder()\n .nodeWithKey(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3).build();\n Map<QName, Object> suppNode3KeyValues = new HashMap<>();\n suppNode3KeyValues.put(TopologyQNames.TOPOLOGY_REF, TOPOLOGY_ID);\n suppNode3KeyValues.put(TopologyQNames.NODE_REF, UNDERLAY_NODE_ID_3);\n MapEntryNode menSuppNode3 = ImmutableNodes.mapEntryBuilder()\n .withNodeIdentifier(new NodeIdentifierWithPredicates(SupportingNode.QNAME, suppNode3KeyValues)).build();\n MapNode suppNode3List = ImmutableNodes.mapNodeBuilder(SupportingNode.QNAME).addChild(menSuppNode3).build();\n MapEntryNode node3 = ImmutableNodes\n .mapEntryBuilder(Node.QNAME, TopologyQNames.NETWORK_NODE_ID_QNAME, OVERLAY_NODE_ID_3)\n .addChild(suppNode3List).build();\n item = new UnderlayItem(node3, null, TOPOLOGY_ID, OVERLAY_NODE_ID_3, CorrelationItemEnum.Node);\n\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n\n // create another matched link (link:3)\n LeafNode<String> link3Source = ImmutableNodes.leafNode(TopologyQNames.LINK_SOURCE_NODE_QNAME,\n UNDERLAY_NODE_ID_2);\n ContainerNode source3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Source.QNAME)).withChild(link3Source).build();\n LeafNode<String> link3Dest = ImmutableNodes.leafNode(TopologyQNames.LINK_DEST_NODE_QNAME, UNDERLAY_NODE_ID_3);\n ContainerNode dest3Container = ImmutableContainerNodeBuilder\n .create(ImmutableNodes.containerNode(Destination.QNAME)).withChild(link3Dest).build();\n MapEntryNode link3 = ImmutableNodes.mapEntryBuilder(Link.QNAME, TopologyQNames.NETWORK_LINK_ID_QNAME, LINK_ID_3)\n .withChild(source3Container).withChild(dest3Container).build();\n yiid = DUMMY_LINK_CREATOR.createNodeIdYiid(LINK_ID_3);\n item = new UnderlayItem(link3, null, TOPOLOGY_ID, LINK_ID_3, CorrelationItemEnum.Link);\n ntLinkCalculator.processCreatedChanges(yiid, item, TOPOLOGY_ID);\n }", "@BeforeClass\n public static void beforeTests() {\n pl = new LocalPersistenceLayer();\n\n DigitalCollection coll = new DigitalCollection(\"Test\");\n edummy = new Element(\"Dummy\", \"Dummy\");\n pdummy = new Property(\"Dummy\");\n vdummy = new ValueSource(\"Dummy\", \"0.1\");\n\n edummy.setCollection(coll);\n edummy.setCollection(coll);\n edummy.setCollection(coll);\n\n pl.handleCreate(DigitalCollection.class, coll);\n pl.handleCreate(Element.class, edummy);\n pl.handleCreate(Property.class, pdummy);\n pl.handleCreate(ValueSource.class, vdummy);\n }", "@Test\n public void addModelData() {\n new FactoryInitializer()\n .initialize(\n ((tr, ev, is, np, md) -> new ResNetConv2DFactory(tr,ev,is,np,md).addModelData(new ArrayList<>()))\n );\n }", "List<Pair<String, byte[]>> generateSample(Object descriptor);", "private void generateSampleKeys()\n {\n Iterator<ArrayList<String>> di = data.iterator();\n String key2;\n\n while (di.hasNext())\n {\n ArrayList<String> row = di.next();\n\n Iterator<Integer> kci = keyCols.iterator();\n StringBuffer buf = new StringBuffer();\n while (kci.hasNext())\n {\n Integer i = kci.next();\n String value = row.get(i);\n buf.append(value + '_');\n }\n key2 = new String(StringUtils.chop(buf.toString()));\n key2 = key2.toUpperCase();\n\n SampleWithProperties s = new SampleWithProperties(key2);\n\n // now have to add properties\n Iterator<Integer> pi = spts.keySet().iterator();\n while (pi.hasNext())\n {\n Integer key3 = pi.next();\n String val = row.get(key3);\n val = val.toUpperCase();\n s.addProperty(spts.get(key3), val);\n }\n swp.add(s);\n }\n }", "Sample start();", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "static double[][] makeTestData() {\n double[][] data = new double[21][2];\n double xmax = 5;\n double xmin = -5;\n double dx = (xmax - xmin) / (data.length -1);\n for (int i = 0; i < data.length; i++) {\n double x = xmin + dx * i;\n double y = 2.5 * x * x * x - x * x / 3 + 3 * x;\n data[i][0] = x;\n data[i][1] = y;\n }\n return data;\n }", "@DataProvider(name = \"getRandomData\")\r\n\r\n\tpublic Object[][] getData() {\r\n\r\n\t\tString workingdirectory = System.getProperty(\"user.dir\");\r\n\r\n\t\tLinkedHashMap<String, Integer> colNameToLocation = new LinkedHashMap<String, Integer>();\r\n\r\n\t\tString s[][] = utility.getDataFromCSV(workingdirectory + \"\\\\products.csv\", colNameToLocation);// from\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// utility\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// file\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// it\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// get\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// total\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// no\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// data\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// through\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// object\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// and\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// store\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// it\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// in\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// s\r\n\r\n\t\tString random[][] = null;\r\n\r\n\t\tif (isTotalCount) // this is the boolean value declared in the basetest\r\n\r\n\t\t\trandom = utility.getRandomNoFromCSV(s, s.length, colNameToLocation);\r\n\r\n\t\telse\r\n\r\n\t\t\trandom = utility.getRandomNoFromCSV(s, count, colNameToLocation);\r\n\r\n\t\treturn random;// here it stores the no of input from the testsuite file\r\n\t\t\t\t\t\t// i.e the user input\r\n\r\n\t}", "public static Dataset createDataset(RepositoryConnection connection)\n {\n DatasetGraph dsg = new JenaSesameDatasetGraph(connection) ;\n return DatasetFactory.wrap(dsg) ;\n }" ]
[ "0.6516023", "0.64370793", "0.64273083", "0.62875646", "0.62670517", "0.6214323", "0.61983186", "0.6167228", "0.61314213", "0.6025523", "0.60058933", "0.6000588", "0.5994616", "0.59502536", "0.59395736", "0.5922694", "0.5888017", "0.58848166", "0.5875737", "0.58483356", "0.58144146", "0.5791881", "0.5764934", "0.5750094", "0.57366276", "0.5707717", "0.5679893", "0.5664937", "0.56525475", "0.5634532", "0.55928105", "0.55899227", "0.5578267", "0.556789", "0.5567222", "0.55668247", "0.5556454", "0.5522618", "0.55212766", "0.5516994", "0.55096537", "0.5493202", "0.5478318", "0.54759705", "0.5461835", "0.5449353", "0.54364926", "0.54296714", "0.54131347", "0.5401032", "0.539855", "0.53938675", "0.53928816", "0.5388474", "0.5386537", "0.5383873", "0.53813636", "0.53745663", "0.53707695", "0.53707695", "0.5341433", "0.5338654", "0.53320485", "0.5330749", "0.53303844", "0.53287834", "0.53281593", "0.53249234", "0.53195435", "0.5319459", "0.53191024", "0.5301594", "0.52991086", "0.52865267", "0.52671593", "0.52633965", "0.5258127", "0.52442086", "0.5241143", "0.5229221", "0.522893", "0.52240705", "0.5219536", "0.5219075", "0.52168113", "0.5212938", "0.52100664", "0.5205504", "0.5195747", "0.51866", "0.51763487", "0.5171558", "0.5164432", "0.51623", "0.51565075", "0.51553375", "0.5154488", "0.5151309", "0.51506615", "0.51463956" ]
0.5839276
20
Creates the chart to display for the demo.
public static JFreeChart createChart(CategoryDataset dataset) { JFreeChart chart = ChartFactory.createBarChart( "Min/Max Category Plot", // chart title "Category", // domain axis label "Value", // range axis label dataset, // data PlotOrientation.VERTICAL, true, // include legend true, // tooltips false // urls ); CategoryPlot plot = (CategoryPlot) chart.getPlot(); plot.setRangePannable(true); MinMaxCategoryRenderer renderer = new MinMaxCategoryRenderer(); renderer.setDrawLines(false); plot.setRenderer(renderer); ChartUtilities.applyCurrentTheme(chart); return chart; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createChart() {\n\t\tchartSpace = CTChartSpace.Factory.newInstance();\n\t\tchart = chartSpace.addNewChart();\n\t\tCTPlotArea plotArea = chart.addNewPlotArea();\n\n\t\tplotArea.addNewLayout();\n\t\tchart.addNewPlotVisOnly().setVal(true);\n\n\t\tCTPrintSettings printSettings = chartSpace.addNewPrintSettings();\n\t\tprintSettings.addNewHeaderFooter();\n\n\t\tCTPageMargins pageMargins = printSettings.addNewPageMargins();\n\t\tpageMargins.setB(0.75);\n\t\tpageMargins.setL(0.70);\n\t\tpageMargins.setR(0.70);\n\t\tpageMargins.setT(0.75);\n\t\tpageMargins.setHeader(0.30);\n\t\tpageMargins.setFooter(0.30);\n\t\tprintSettings.addNewPageSetup();\n\t}", "private void createChart() {\n LineChart lineChart = (LineChart) findViewById(R.id.line_chart);\n\n // LineChart DataSet\n ArrayList<LineDataSet> dataSets = new ArrayList<>();\n\n // x-coordinate format value\n XAxis xAxis = lineChart.getXAxis();\n xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);\n xAxis.setGranularity(1f); // only intervals of 1 day\n// xAxis.setValueFormatter(new DayAxisValueFormatter(lineChart));\n\n\n // x-coordinate value\n ArrayList<String> xValues = new ArrayList<>();\n xValues.add(\"No.1\");\n xValues.add(\"No.2\");\n xValues.add(\"No.3\");\n xValues.add(\"No.4\");\n xValues.add(\"No.5\");\n\n // value\n ArrayList<Entry> value = new ArrayList<>();\n String measureItemName = \"\";\n value.add(new Entry(100, 0));\n value.add(new Entry(120, 1));\n value.add(new Entry(150, 2));\n value.add(new Entry(250, 3));\n value.add(new Entry(500, 4));\n\n\n // add value to LineChart's DataSet\n LineDataSet valueDataSet = new LineDataSet(value, measureItemName);\n dataSets.add(valueDataSet);\n\n // set LineChart's DataSet to LineChart\n// lineChart.setData(new LineData(xValues, dataSets));\n lineChart.setData(new LineData(valueDataSet));\n }", "@Override\n\tprotected final JFreeChart createChart() {\n\t\tJFreeChart jFreeChart=null;\n\t\tIntervalXYDataset dataset=createDataset();\n\t\t\n\t\tjFreeChart=ChartFactory.createXYBarChart(title,xalabel, dateAxis, yalabel,dataset, por, legend, tooltips, urls);\n\t\t\n\t\tXYPlot plot=(XYPlot)jFreeChart.getPlot();\n\t\tpreRender(plot);\n\t\treturn jFreeChart; \n\t}", "private Chart(){}", "private void createchart() {\n int successcount = 0;\n int failedcount = 0;\n \n DefaultPieDataset barchartdata = new DefaultPieDataset();\n \n if(system == null && enterprise == null){\n for(Enterprise ent: network.getEnterpriseDirectory().getEnterpriseList()){\n for(WorkRequest request: ent.getWorkQueue().getWorkQueue()){\n if(request.getStatus() == WorkRequest.Status.ENTERPRISE2ADMINAPPROVED || request.getStatus() == WorkRequest.Status.ORGANIZATION3ADMINAPPROVED)\n successcount++;\n else if(request.getStatus() == WorkRequest.Status.TESTFAILED)\n failedcount++;\n }\n }\n }\n else if(network == null && enterprise == null){\n for(Network net: system.getNetworkList()){\n for(Enterprise ent: net.getEnterpriseDirectory().getEnterpriseList()){\n for(WorkRequest request: ent.getWorkQueue().getWorkQueue()){\n if(request.getStatus() == WorkRequest.Status.ENTERPRISE2ADMINAPPROVED || request.getStatus() == WorkRequest.Status.ORGANIZATION3ADMINAPPROVED)\n successcount++;\n else if(request.getStatus() == WorkRequest.Status.TESTFAILED)\n failedcount++;\n }\n }\n }\n }\n else{\n for(WorkRequest request: enterprise.getWorkQueue().getWorkQueue()){\n if(request.getStatus() == WorkRequest.Status.ENTERPRISE2ADMINAPPROVED || request.getStatus() == WorkRequest.Status.ORGANIZATION3ADMINAPPROVED)\n successcount++;\n else if(request.getStatus() == WorkRequest.Status.TESTFAILED)\n failedcount++;\n }\n }\n \n barchartdata.setValue( \"Successful Trials\",new Double(successcount));\n barchartdata.setValue(\"Failed trials\",new Double(failedcount));\n\n JFreeChart pieChart = ChartFactory.createPieChart(\"Successful versus failed trials\",barchartdata, false, true, false);\n final PiePlot plot=(PiePlot) pieChart.getPlot();\n ChartPanel barPanel = new ChartPanel(pieChart);\n\n dashboardpanel.removeAll();\n dashboardpanel.setLayout(new java.awt.BorderLayout());\n dashboardpanel.add(barPanel, BorderLayout.CENTER);\n dashboardpanel.validate();\n \n }", "public ChartPanel createChartPanel(QueryResult myResult) throws Exception {\n\n myChart = makeChart(myResult);\n\n // create the chart frame and display it \n ChartPanel myChartPanel = new ChartPanel(myChart);\n\n return myChartPanel;\n }", "private static JFreeChart createChart(CategoryDataset dataset) {\n JFreeChart chart = ChartFactory.createLineChart(\n \"Line Chart\", null /* x-axis label*/, \n \"Range\" /* y-axis label */, dataset);\n chart.addSubtitle(new TextTitle(\" Its is generated to show patient History \" \n ));\n chart.setBackgroundPaint(Color.white);\n CategoryPlot plot = (CategoryPlot) chart.getPlot();\n\tNumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();\n rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());\n // Line renderer = (BarRenderer) plot.getRenderer();\n // renderer.setDrawBarOutline(false);\n // LineAndShapeRenderer renderer = (LineAndShapeRenderer) plot.getRenderer(); \n//renderer.setItemMargin(3); \n//renderer.setItemLabelsVisible(true);\n chart.getLegend().setFrame(BlockBorder.NONE);\n return chart;\n }", "private JPanel createChartPanel(XYSeriesCollection li) {\n\n String chartTitle = \" Movement Chart\";\n String xAxisLabel = \"Matrix Size\";\n String yAxisLabel = \"time in ms\";\n\n XYSeriesCollection dataset = li;\n // System.out.println(\"tesst count \" + dataset.getSeriesCount());\n\n //XYDataset dataset = createDataset(li);\n JFreeChart chart = ChartFactory.createXYLineChart(chartTitle, xAxisLabel, yAxisLabel, dataset);\n XYPlot plot = chart.getXYPlot();\n XYLineAndShapeRenderer renderer = new XYLineAndShapeRenderer();\n plot.setRenderer(renderer);\n\n return new ChartPanel(chart);\n }", "@Override\r\n\tprotected void generateChart() throws Exception {\n\t\t\r\n\t}", "public static JPanel createDemoPanel() {\r\n JFreeChart chart = createChart(createDataset());\r\n ChartPanel panel = new ChartPanel(chart);\r\n panel.setMouseWheelEnabled(true);\r\n return panel;\r\n }", "private void initChart() {\n Cartesian cartesian = AnyChart.line();\n\n cartesian.animation(true);\n\n cartesian.padding(10d, 20d, 5d, 20d);\n\n cartesian.crosshair().enabled(true);\n cartesian.crosshair()\n .yLabel(true)\n // TODO ystroke\n .yStroke((Stroke) null, null, null, (String) null, (String) null);\n\n cartesian.tooltip().positionMode(TooltipPositionMode.POINT);\n\n cartesian.title(\"Steps taken in this week and last week\");\n\n cartesian.yAxis(0).title(\"Steps\");\n cartesian.xAxis(0).labels().padding(5d, 5d, 5d, 5d);\n\n List<DataEntry> seriesData = new ArrayList<>();\n Log.d(\"Size This Week\",stepsTakenModelsThisWeek.size()+\"\");\n for(int i = 0 ; i<7 ; i++){\n CustomDataEntry c = new CustomDataEntry(days[i],stepsTakenModelsLastWeek.get(i).getSteps());\n if(i<stepsTakenModelsThisWeek.size()){\n c.setValue(\"value2\",stepsTakenModelsThisWeek.get(i).getSteps());\n }else{\n if(DateUtilities.getDayInAbbBySelectedDate(stepsTakenModelsLastWeek.get(i).getDate()).equals(\n DateUtilities.getCurrentDayInAbb()))\n {\n c.setValue(\"value2\",stepsToday);\n }else{\n c.setValue(\"value2\",0);\n }\n }\n seriesData.add(c);\n }\n\n Set set = Set.instantiate();\n set.data(seriesData);\n Mapping series1Mapping = set.mapAs(\"{ x: 'x', value: 'value' }\");\n Mapping series2Mapping = set.mapAs(\"{ x: 'x', value: 'value2' }\");\n\n Line series1 = cartesian.line(series1Mapping);\n series1.name(\"Last Week\");\n series1.hovered().markers().enabled(true);\n series1.hovered().markers()\n .type(MarkerType.CIRCLE)\n .size(4d);\n series1.tooltip()\n .position(\"right\")\n .anchor(Anchor.LEFT_CENTER)\n .offsetX(5d)\n .offsetY(5d);\n\n Line series2 = cartesian.line(series2Mapping);\n series2.name(\"This Week\");\n series2.hovered().markers().enabled(true);\n series2.hovered().markers()\n .type(MarkerType.CIRCLE)\n .size(4d);\n series2.tooltip()\n .position(\"right\")\n .anchor(Anchor.LEFT_CENTER)\n .offsetX(5d)\n .offsetY(5d);\n\n\n cartesian.legend().enabled(true);\n cartesian.legend().fontSize(13d);\n cartesian.legend().padding(0d, 0d, 10d, 0d);\n\n chart.setChart(cartesian);\n }", "public void createChart(StatisticPreviewChartViewModel statistic, Chart chart){\n\t chart.getTitle().setText(mainUser.getUsername());\r\n\t chart.getAxisSet().getXAxis(0).getTitle().setText(\"Dzień\");\r\n\t chart.getAxisSet().getYAxis(0).getTitle().setText(\"Kwoty\");\r\n\t // create scatter series\r\n\t ILineSeries series = (ILineSeries) chart.getSeriesSet().createSeries(SeriesType.LINE, \"Wartość\");\r\n\t series.setLineStyle(LineStyle.SOLID);\r\n\r\n\t Date[] days = statistic.getDays().stream().toArray(Date[]::new);\r\n\t series.setYSeries(statistic.getPrices());\r\n\t series.setXDateSeries(days); // xSeries is an array of java.util.Date\r\n\t IAxisTick xTick = chart.getAxisSet().getXAxis(0).getTick();\r\n\t \r\n\t IAxis yAxis = chart.getAxisSet().getYAxis(0);\r\n\t yAxis.adjustRange();\r\n\t \r\n\t yAxis.scrollUp();\r\n\t yAxis.scrollDown();\r\n\t Color color = new Color(Display.getDefault(), 255, 0, 0);\r\n\t series.setSymbolColor(color);\r\n\t \r\n\r\n\t DateFormat format = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n\t xTick.setFormat(format);\r\n\t \r\n\t \r\n\t // adjust the axis range\r\n\t chart.getAxisSet().adjustRange();\r\n\t \r\n\t chart.getParent().layout();\r\n\t comp.getParent().layout();\r\n\t \r\n\r\n\t comp.getParent().layout();\r\n\t chart.setVisible(true);\r\n\t}", "public void onModuleLoad() {\n\n Chart chart = new Chart()\n .setType(Series.Type.SPLINE)\n .setChartTitleText(\"Temperaturen\")\n .setMarginRight(10);\n\t\n\tSeries series = chart.createSeries()\n\t.setName(\"°C in Palma\")\n\t.setPoints(new Number[] { 22.4, 25.6, 20.5, 19.0, 17.0, 18.0, 19.0, 18.3 });\n\tchart.addSeries(series);\n\n\tSeries series2 = chart.createSeries()\n\t.setName(\"°C in Leipzig\")\n\t.setPoints(new Number[] { 13.5, 14.3, 16.4, 9.9, 12.5, 13.0, 15.9, 20.0} );\n\tchart.addSeries(series2);\n\t\n\tRootPanel.get().add(chart);\n\t\n\t}", "private void constructChartPanel() {\n chartPanel = new JPanel();\n chartPanel.setBorder(BorderFactory.createTitledBorder(\"Price Chart\"));\n chartPanel.setPreferredSize(relativeSize(0.4f, 0.35f));\n \n displayChartButton = new JButton(\"Click to Display Price Chart\");\n displayChartButton.setEnabled(false);\n displayChartButton.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n JPanel cPanel = chart.getChartPanel();\n chartPanel.removeAll();\n chartPanel.add(cPanel);\n cPanel.setPreferredSize(relativeSize(0.4f, 0.35f));\n \n pack();\n repaint();\n }\n });\n \n chartPanel.add(displayChartButton);\n }", "public Chart initializeChart();", "private static JFreeChart createChart(XYDataset dataset) {\n\n chart = ChartFactory.createTimeSeriesChart(\n \"Stromzählerübersicht\", // Titel\n \"Datum\", // x-Achse label\n \"kWh\", // y-Achse label\n dataset);\n\n chart.setBackgroundPaint(Color.WHITE);\n\n XYPlot plot = (XYPlot) chart.getPlot();\n plot.setBackgroundPaint(Color.LIGHT_GRAY);\n plot.setDomainGridlinePaint(Color.WHITE);\n plot.setRangeGridlinePaint(Color.WHITE);\n plot.setAxisOffset(new RectangleInsets(5.0, 5.0, 5.0, 5.0));\n plot.setDomainCrosshairVisible(true);\n plot.setRangeCrosshairVisible(true);\n\n XYItemRenderer r = plot.getRenderer();\n if (r instanceof XYLineAndShapeRenderer) {\n XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) r;\n renderer.setDefaultShapesVisible(false);\n renderer.setDefaultShapesFilled(false);\n renderer.setDrawSeriesLineAsPath(true);\n }\n\n DateAxis axis = (DateAxis) plot.getDomainAxis();\n axis.setDateFormatOverride(new SimpleDateFormat(\"dd-MM-yyyy\"));\n\n return chart;\n\n }", "private String generateChart() {\r\n\t\tint passedTestCount = data.getNumberofTestPassed();\r\n\t\tint skippedTestCount = data.getNumberofTestSkipped();\r\n\t\tint failedTestCount = data.getNumberofTestFailed();\r\n\r\n\t\tString script = \"<script>var svg = d3.select('svg'),\"\r\n\t\t\t\t+ \"margin = {top: 30, right: 20, bottom: 20, left: 50},\"\r\n\t\t\t\t+ \"width = +svg.attr('width') - margin.left - margin.right,\"\r\n\t\t\t\t+ \"height = +svg.attr('height') - margin.top - margin.bottom;\"\r\n\t\t\t\t+ \"var x = d3.scaleBand().range([0, 450]),\"\r\n\t\t\t\t+ \"y = d3.scaleLinear().rangeRound([230, 0]);\"\r\n\t\t\t\t+ \"var g = svg.append('g').attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');\"\r\n\t\t\t\t+\r\n\r\n\t\t\t\t\"var data = [{'name':'Pass','value':\"\r\n\t\t\t\t+ passedTestCount\r\n\t\t\t\t+ \"},{'name':'FaiL','value':\"\r\n\t\t\t\t+ failedTestCount\r\n\t\t\t\t+ \"},{'name':'Skip','value':\"\r\n\t\t\t\t+ skippedTestCount\r\n\t\t\t\t+ \"}];\"\r\n\t\t\t\t+\r\n\r\n\t\t\t\t\"var max = 0;\"\r\n\t\t\t\t+ \"var index = 0;\"\r\n\t\t\t\t+ \"for(index=0;index<data.length;index++) {\"\r\n\t\t\t\t+ \"if(max<data[index]['value']) {\"\r\n\t\t\t\t+ \"max = data[index]['value']; } }\"\r\n\t\t\t\t+ \"max = max%2 ==0? max : max +1;\"\r\n\t\t\t\t+ \"x.domain(data.map(function(d) { return d.name; }));\"\r\n\t\t\t\t+ \"y.domain([0, max]);\"\r\n\t\t\t\t+ \"g.append('g').attr('class', 'axis axis--x')\"\r\n\t\t\t\t+ \".attr('transform', 'translate(0,' + height + ')')\"\r\n\t\t\t\t+ \".call(d3.axisBottom(x)).attr('stroke', '#000000');\"\r\n\t\t\t\t+ \"g.append('g').attr('class', 'axis axis--y')\"\r\n\t\t\t\t+ \".call(d3.axisLeft(y).ticks(3)).attr('stroke', '#000000')\"\r\n\t\t\t\t+ \".append('text').attr('transform', 'rotate(-90)').attr('y', 6)\"\r\n\t\t\t\t+ \".attr('dy', '0.71em').attr('text-anchor', 'end');\"\r\n\t\t\t\t+ \"d3.selectAll('line').attr('stroke', '#000000');\"\r\n\t\t\t\t+ \"d3.selectAll('path').attr('stroke', '#000000');\"\r\n\t\t\t\t+ \"var temp=0;\"\r\n\t\t\t\t+ \"g.selectAll('.bar').data(data).enter().append('rect').attr('class', 'bar')\"\r\n\t\t\t\t+ \".attr('x', function(d) {return x(d.name)+50; })\"\r\n\t\t\t\t+ \".attr('y', function(d) { return y(d.value); })\"\r\n\t\t\t\t+ \".attr('width', 50)\"\r\n\t\t\t\t+ \".attr('height', function(d) { return height - y(d.value); }).attr('fill','#ff9900')\"\r\n\t\t\t\t+ \".attr('data-name',function(d){return d.name})\"\r\n\t\t\t\t+ \".attr('data-value',function(d){return d.value}).attr('height', 0).transition().duration(1000).delay(200).attr('height', function (d, i) {return height - y(d.value);});;</script>\";\r\n\t\treturn script;\r\n\t}", "private static JFreeChart createChart(CategoryDataset dataset) {\n\t\t//the title of the chart depending of the attributes chosen by the user\n\t\tif (queryNumber==0) {domainLabel=\"Per day\";}\n\t\telse if (queryNumber==1) {domainLabel=\"Per hour\";}\n\t\telse if (queryNumber==2) {domainLabel=\"Per minute\";}\n\t\t\n\t\t// setting the title \n\t\tString rangeLabel=\"Average (ms)\";\n\t\t// create the chart...\n\t\tJFreeChart chart = ChartFactory.createBarChart(\n\t\t\t\t\"Static\", // chart title\n\t\t\t\tdomainLabel, // domain axis label\n\t\t\t\trangeLabel, // range axis label\n\t\t\t\tdataset, // data\n\t\t\t\tPlotOrientation.VERTICAL, // orientation\n\t\t\t\tfalse, // include legend\n\t\t\t\ttrue, // tooltips\n\t\t\t\tfalse // URLs\n\t\t\t\t);\n\t\t\n\t\t//setting the title preferences and format\n\t\tchart.getTitle().setFont(fontStatic);\n\t\tchart.getTitle().setPaint(Color.red);\n\t\tchart.setBackgroundPaint(Color.white);\n\t\tCategoryPlot plot = chart.getCategoryPlot();\n\t\tplot.setBackgroundPaint(Color.lightGray);\n\t\tplot.setDomainGridlinePaint(Color.white);\n\t\tplot.setDomainGridlinesVisible(true);\n\t\tplot.setRangeGridlinePaint(Color.white);\n\t\tfinal NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();\n\t\tchart.getCategoryPlot().getRangeAxis().setLabelPaint(Color.RED);\n\t\tchart.getCategoryPlot().getDomainAxis().setLabelPaint(Color.RED);\n\t\trangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());\n\t\tBarRenderer renderer = (BarRenderer) plot.getRenderer();\n\t\trenderer.setDrawBarOutline(false);\n\t\tfor (int i =0;i<25;i++) renderer.setSeriesPaint(i, Color.BLUE);\n\t\treturn chart;\n\t}", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "public void generateChart(int[] dataValues) {\n\t\t/*\n\t\t * The XYSeriesCollection object is a set XYSeries series (dataset) that\n\t\t * can be visualized in the same chart\n\t\t */\n\t\tXYSeriesCollection dataset = new XYSeriesCollection();\n\t\t/*\n\t\t * The XYSeries that are loaded in the dataset. There might be many\n\t\t * series in one dataset.\n\t\t */\n\t\tXYSeries data = new XYSeries(\"random values\");\n\n\t\t/*\n\t\t * Populating the XYSeries data object from the input Integer array\n\t\t * values.\n\t\t */\n\t\tfor (int i = 0; i < dataValues.length; i++) {\n\t\t\tdata.add(i, dataValues[i]);\n\t\t}\n\n\t\t// add the series to the dataset\n\t\tdataset.addSeries(data);\n\n\t\tboolean legend = false; // do not visualize a legend\n\t\tboolean tooltips = false; // do not visualize tooltips\n\t\tboolean urls = false; // do not visualize urls\n\n\t\t// Declare and initialize a createXYLineChart JFreeChart\n\t\tJFreeChart chart = ChartFactory.createXYLineChart(\"Grades Histogram\", \"Grades\", \"Frequency\", dataset,\n\t\t\t\tPlotOrientation.VERTICAL, legend, tooltips, urls);\n\n\t\t/*\n\t\t * Initialize a frame for visualizing the chart and attach the\n\t\t * previously created chart.\n\t\t */\n\t\tChartFrame frame = new ChartFrame(\"First\", chart);\n\t\tframe.pack();\n\t\t// makes the previously created frame visible\n\t\tframe.setVisible(true);\n\t}", "private void initializeChart(final List<DateCounter> data)\n {\n final XYSeries series = new XYSeries(TITLE_XY_SERIES);\n\n //Adding data to the chart\n addDataToXYSeries(data, series);\n\n //Finalizing the chart\n final XYSeriesCollection coll = new XYSeriesCollection(series);\n final JFreeChart chart = ChartFactory.createXYLineChart(TITLE_CHART, X_AXIS_TITLE,\n Y_AXIS_TITLE, coll, PlotOrientation.VERTICAL, true, true, false);\n final ChartPanel chartPanel = new ChartPanel(chart);\n chartPanel.setPreferredSize(new java.awt.Dimension(SIZE_CHART_PANEL, SIZE_CHART_PANEL));\n this.add(chartPanel, BorderLayout.CENTER);\n }", "public static Chart getChart(String type){\n\t\tChart chart = new Chart(Quality.Advanced, type);\r\n\t\tchart.getView().setBackgroundColor(Color.BLACK);\r\n\t\tchart.getView().setAxeSquared(true);\r\n\t\tchart.getAxeLayout().setGridColor(Color.WHITE);\r\n\t\tchart.getAxeLayout().setFaceDisplayed(false);\r\n\t\taddLight( chart, new Coord3d(0,-100,100));\r\n\t\tsceneHisto(chart);\t\t\r\n\t\treturn chart;\r\n\t}", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "private void createChart() {\n // Preparing...\n String selectedDate = periodComboBox.getSelectedItem().toString();\n String selectedPeriod = periodComboBox.getSelectedItem().toString();\n String periodType = periodTypeComboBox.getSelectedItem().toString();\n periodList = new ArrayList<>();\n PieChart chart;\n\n switch (periodType) {\n case \"Monthly\":\n // Configuring panel\n chartPanel.removeAll();\n chartPanel.revalidate();\n\n // Gathering data\n periodList = new ArrayList<>();\n monthlyTotals.stream().filter((w) -> (w.getDate().equals(selectedDate))).forEach((w) -> {\n periodList.add(w);\n });\n\n // Creating chart\n if (pieChartRadioButton.isSelected()) {\n chart = new PieChart(selectedPeriod + \" Totals\", periodList);\n chartPanel.add(chart.getContentPane());\n chart.pack();\n } else if (barGraphRadioButton.isSelected()) {\n BarGraph bg = new BarGraph(\"\", selectedPeriod + \" Totals\", periodList);\n chartPanel.add(bg.getContentPane());\n bg.pack();\n }\n\n // Displaying\n chartPanel.repaint();\n break;\n case \"Yearly\":\n // Configuring panel\n chartPanel.removeAll();\n chartPanel.revalidate();\n\n // Gathering data\n periodList = new ArrayList<>();\n yearlyTotals.stream().filter((w) -> (w.getDate().equals(selectedDate))).forEach((w) -> {\n periodList.add(w);\n });\n\n // Creating chart\n if (pieChartRadioButton.isSelected()) {\n chart = new PieChart(selectedPeriod + \" Totals\", periodList);\n chartPanel.add(chart.getContentPane());\n chart.pack();\n } else if (barGraphRadioButton.isSelected()) {\n BarGraph bg = new BarGraph(\"\", selectedPeriod + \" Totals\", periodList);\n chartPanel.add(bg.getContentPane());\n bg.pack();\n }\n\n // Displaying\n chartPanel.repaint();\n break;\n case \"Historical\":\n // Configuring panel\n chartPanel.removeAll();\n chartPanel.revalidate();\n\n // Creating chart\n if (pieChartRadioButton.isSelected()) {\n chart = new PieChart(\"Historical Totals\", historicalTotals);\n chartPanel.add(chart.getContentPane());\n chart.pack();\n } else if (barGraphRadioButton.isSelected()) {\n BarGraph bg = new BarGraph(\"\", \"Historical Totals\", historicalTotals);\n chartPanel.add(bg.getContentPane());\n bg.pack();\n }\n\n // Displaying\n chartPanel.repaint();\n }\n }", "private void setUpGraph() {\n \tString title;\n\t\ttry {\n\t\t\ttitle = util.readTextFile(new File(UI.UITEXT_DIRECTORY)).get(GRAPHTITLE_DEX);\n\t\t\taCS = new AreaChartSample(cellStateNames,title);\n\t\t} catch (FileNotFoundException e) {\n\t\t\taCS = new AreaChartSample(cellStateNames, \"ERROR ON TITLE\");\n\t\t}\n\t\troot.getChildren().add(aCS.getAreaChart());\n \tplot();\n }", "public void chart() {\r\n setLayout(new FlowLayout());\r\n String[] testNumbers = {\"LINEAR SEARCH\", \"TEST 1\", \"TEST 2\", \"TEST 3\", \"TEST 4\", \"TEST 5\", \"TEST 6\", \"TEST 7\", \"TEST 8\", \"TEST 9\", \"TEST 10\", \"AVERAGE\", \"STANDARD DEV.\"};\r\n Object[][] testResult = {{\"500\", lin[0][0], lin[0][1], lin[0][2], lin[0][3], lin[0][4], lin[0][5], lin[0][6], lin[0][7], lin[0][8], lin[0][0], linAvAndDev[0][0], linAvAndDev[0][1]},\r\n {\"10,000\", lin[1][0], lin[1][1], lin[1][2], lin[1][3], lin[1][4], lin[1][5], lin[1][6], lin[1][7], lin[1][8], lin[1][9], linAvAndDev[1][0], linAvAndDev[1][1]},\r\n {\"100,000\", lin[2][0], lin[2][1], lin[2][2], lin[2][3], lin[2][4], lin[2][5], lin[2][6], lin[2][7], lin[2][8], lin[2][9], linAvAndDev[2][0], linAvAndDev[2][1]},\r\n {\"1,000,000\", lin[3][0], lin[3][1], lin[3][2], lin[3][3], lin[3][4], lin[3][5], lin[3][6], lin[3][7], lin[3][8], lin[3][9], linAvAndDev[3][0], linAvAndDev[3][1]},\r\n {\"5,000,000\", lin[4][0], lin[4][1], lin[4][2], lin[4][3], lin[4][4], lin[4][5], lin[4][6], lin[4][7], lin[4][8], lin[4][9], linAvAndDev[4][0], linAvAndDev[4][1]},\r\n {\"7,000,000\", lin[5][0], lin[5][1], lin[5][2], lin[5][3], lin[5][4], lin[5][5], lin[5][6], lin[5][7], lin[5][8], lin[5][9], linAvAndDev[5][0], linAvAndDev[5][1]},\r\n {\"10,000,000\", lin[6][0], lin[6][1], lin[6][2], lin[6][3], lin[6][4], lin[6][5], lin[6][6], lin[6][7], lin[6][8], lin[6][9], linAvAndDev[6][0], linAvAndDev[6][1]},\r\n {\"BINARY SEARCH\", \"TEST 1\", \"TEST 2\", \"TEST 3\", \"TEST 4\", \"TEST 5\", \"TEST 6\", \"TEST 7\", \"TEST 8\", \"TEST 9\", \"TEST 10\", \"AVERAGE\", \"STANDARD DEV.\"},\r\n {\"500\", bin[0][0], bin[0][1], bin[0][2], bin[0][3], bin[0][4], bin[0][5], bin[0][6], bin[0][7], bin[0][8], bin[0][9], linAvAndDev[7][0], linAvAndDev[7][1]},\r\n {\"10,000\", bin[1][0], bin[1][1], bin[1][2], bin[1][3], bin[1][4], bin[1][5], bin[1][6], bin[1][7], bin[1][8], bin[1][9], linAvAndDev[8][0], linAvAndDev[8][1]},\r\n {\"100,000\", bin[2][0], bin[2][1], bin[2][2], bin[2][3], bin[2][4], bin[2][5], bin[2][6], bin[2][7], bin[2][8], bin[2][9], linAvAndDev[9][0], linAvAndDev[9][1]},\r\n {\"1,000,000\", bin[3][0], bin[3][1], bin[3][2], bin[3][3], bin[3][4], bin[3][5], bin[3][6], bin[3][7], bin[3][8], bin[3][9], linAvAndDev[10][0], linAvAndDev[10][1]},\r\n {\"5,000,000\", bin[4][0], bin[4][1], bin[4][2], bin[4][3], bin[4][4], bin[4][5], bin[4][6], bin[4][7], bin[4][8], bin[4][9], linAvAndDev[11][0], linAvAndDev[11][1]},\r\n {\"7,000,000\", bin[5][0], bin[5][1], bin[5][2], bin[5][3], bin[5][4], bin[5][5], bin[5][6], bin[5][7], bin[5][8], bin[5][9], linAvAndDev[12][0], linAvAndDev[12][1]},\r\n {\"10,000,000\", bin[6][0], bin[6][1], bin[6][2], bin[6][3], bin[6][4], bin[6][5], bin[6][6], bin[6][7], bin[6][8], bin[6][9], linAvAndDev[13][0], linAvAndDev[13][1]}};\r\n chart = new JTable(testResult, testNumbers);\r\n chart.setPreferredScrollableViewportSize(new Dimension(1500, 500)); // SETS SIZE OF CHART.\r\n chart.setFillsViewportHeight(true);\r\n JScrollPane scrollPane = new JScrollPane(chart);\r\n add(scrollPane);\r\n }", "public ChartController()\n {\n \tthis.pieModel = new PieChartModel();\n \tthis.pieModel.set(\"\", 0);\n \tthis.categoryModel = new CartesianChartModel() ;\n \tChartSeries fakultas = new ChartSeries() ;\n \tfakultas.set(\"\", 0);\n \tthis.categoryModel.addSeries(fakultas);\n }", "private PieDataset createDataset() {\n JOptionPane.showMessageDialog(null, \"teste\"+dados.getEntrada());\r\n \r\n DefaultPieDataset result = new DefaultPieDataset();\r\n result.setValue(\"Entrada\", dados.getEntrada());\r\n result.setValue(\"Saida\", dados.getSaida());\r\n result.setValue(\"Saldo do Periodo\", dados.getSaldo());\r\n return result;\r\n\r\n }", "private void initChart() {\r\n /*mCurrentSeries = new XYSeries(\"Sample Data\");\r\n mDataset.addSeries(mCurrentSeries);\r\n mCurrentRenderer = new XYSeriesRenderer();\r\n mRenderer.addSeriesRenderer(mCurrentRenderer);*/\r\n \t\r\n \tList<Integer> MyListValue = new ArrayList<Integer>();\r\n\t\t/*for (int i = 0; i < SpeakingTimeList.size(); i++){\r\n\t\t\tMyListValue.add(SpeakingTimeList.get(i));\r\n\t\t}*/\r\n\t\tfor (int i = 0; i < participantAndSpeakingTimeList.size(); i++){\r\n\t\t\tMyListValue.add(participantAndSpeakingTimeList.get(i).getValue());\r\n\t\t}\r\n\t\t\r\n\t\t/*MyList.add(25);\r\n\t\tMyList.add(10);\r\n\t\tMyList.add(15);\r\n\t\tMyList.add(20);*/\r\n\t\t\t\t\r\n\t\tint[] y = new int[MyListValue.size()];\r\n\t\tfor (int i = 0; i < MyListValue.size(); i++) \r\n\t\t\ty[i] = MyListValue.get(i);\r\n\t\t\r\n\t\t//int y[] = {25,10,15,20};\r\n\t \r\n CategorySeries series = new CategorySeries(\"Speaking time in secondes\");\r\n for(int i=0; i < y.length; i++){\r\n series.add(\"Bar\"+(i+1),y[i]);\r\n }\r\n \r\n dataSet = new XYMultipleSeriesDataset(); // collection of series under one object.,there could any\r\n dataSet.addSeries(series.toXYSeries()); // number of series\r\n \r\n //customization of the chart\r\n \r\n XYSeriesRenderer renderer = new XYSeriesRenderer(); // one renderer for one series\r\n renderer.setColor(Color.parseColor(\"#0099FF\"));\r\n renderer.setDisplayChartValues(true);\r\n renderer.setChartValuesSpacing((float) 5.5d);\r\n renderer.setLineWidth((float) 10.5d);\r\n \r\n \r\n mRenderer = new XYMultipleSeriesRenderer(); // collection multiple values for one renderer or series\r\n mRenderer.addSeriesRenderer(renderer);\r\n mRenderer.setChartTitle(\"Speaking time per participant\");\r\n// mRenderer.setXTitle(\"xValues\");\r\n mRenderer.setYTitle(\"Time in secondes\");\r\n mRenderer.setZoomButtonsVisible(true); mRenderer.setShowLegend(true);\r\n mRenderer.setShowGridX(true); // this will show the grid in graph\r\n mRenderer.setShowGridY(true); \r\n// mRenderer.setAntialiasing(true);\r\n mRenderer.setBarSpacing(.5); // adding spacing between the line or stacks\r\n mRenderer.setApplyBackgroundColor(true);\r\n mRenderer.setBackgroundColor(Color.BLACK);\r\n mRenderer.setXAxisMin(0);\r\n mRenderer.setYAxisMin(0);\r\n //mRenderer.setXAxisMax(5);\r\n /*mRenderer.setXAxisMax(ParticipantsList.size()+1);*/\r\n mRenderer.setXAxisMax(participantAndSpeakingTimeList.size()+1);\r\n //mRenderer.setYAxisMax(100);\r\n mRenderer.setYAxisMax(Math.round(getMaxValue()/10)*10+10);\r\n// \r\n \r\n mRenderer.setXLabels(0);\r\n \r\n mRenderer.setXLabelsAngle(90);\r\n mRenderer.setXLabelsAlign(Align.LEFT);\r\n \r\n /*for (int i = 0; i < ParticipantsList.size(); i++){\r\n\t\t\tmRenderer.addXTextLabel(i+1, ParticipantsList.get(i));\r\n\t\t}*/\r\n for (int i = 0; i < participantAndSpeakingTimeList.size(); i++){\r\n\t\t\tmRenderer.addXTextLabel(i+1, participantAndSpeakingTimeList.get(i).getName());\r\n\t\t}\r\n \r\n /*mRenderer.addXTextLabel(1,\"Income\");\r\n mRenderer.addXTextLabel(2,\"Saving\");\r\n mRenderer.addXTextLabel(3,\"Expenditure\");\r\n mRenderer.addXTextLabel(4,\"NetIncome\");*/\r\n \r\n mRenderer.setPanEnabled(true, true); // will fix the chart position\r\n //Intent intent = ChartFactory.getBarChartIntent(context, dataSet, mRenderer,Type.DEFAULT);\r\n \r\n //return intent;\r\n\r\n\t\r\n\t}", "private JFreeChart createChart(PieDataset dataset, String title) {\n\n\t\tJFreeChart chart = ChartFactory.createPieChart3D(title, // chart title\n\t\t\t\tdataset, // data\n\t\t\t\ttrue, // include legend\n\t\t\t\ttrue, false);\n\n\t\tPiePlot3D plot = (PiePlot3D) chart.getPlot();\n\t\tplot.setStartAngle(290);\n\t\tplot.setDirection(Rotation.CLOCKWISE);\n\t\tplot.setForegroundAlpha(0.5f);\n\t\treturn chart;\n\n\t}", "@Override\n\tpublic GraphicalView makeChart(Context context) {\n\t\tXYMultipleSeriesRenderer renderer = getRenderer(context);\n\t\tchartView = ChartFactory.getBarChartView(context, getDataset(),renderer, Type.DEFAULT);\n\t\t// Return the view so it can be showed.\n\t\treturn chartView;\n\t}", "public void generateChart(){\n String[][] contents = retrieveFields();\n\n// String msg = \"test - \";\n// printCells(contents);\n\n String[] houseDisplay = new String[12];\n houseDisplay = new String[]{\"6\",\"4\",\"2\",\"1\",\"4\",\"6\",\"3\",\"5\",\"7/8\",\"\",\"5\",\"3\"};\n display(houseDisplay);\n }", "public JFrame displayChart() {\n final JFrame frame = new JFrame(\"dds\");\n\n // Schedule a job for the event-dispatching thread:\n // creating and showing this application's GUI.\n try {\n javax.swing.SwingUtilities.invokeAndWait(new Runnable() {\n\n @Override\n public void run() {\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n // XChartPanel<XYChart> chartPanel = new XChartPanel<XYChart>(charts.get(0));\n //() chartPanels.add(chartPanel);\n // frame.add(chartPanel);\n\n // Display the window.\n frame.setName(\"Динаміка системи\");\n frame.pack();\n frame.setVisible(true);\n }\n });\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n\n return frame;\n }", "private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\t\tresult.setValue(\"Linux\", 29);\n\t\tresult.setValue(\"Mac\", 20);\n\t\tresult.setValue(\"Windows\", 51);\n\t\treturn result;\n\n\t}", "protected JFreeChart createChart(PieDataset dataset, String title) {\r\n\t\tJFreeChart chart = ChartFactory.createPieChart3D(title, dataset, true, true, false);\r\n\r\n\t\tPiePlot3D plot = (PiePlot3D) chart.getPlot();\r\n\t\tplot.setStartAngle(290);\r\n\t\tplot.setDirection(Rotation.CLOCKWISE);\r\n\t\tplot.setForegroundAlpha(0.5f);\r\n\t\t\r\n\t\treturn chart;\r\n\t}", "private XYDataset createDataset() {\n\t \tXYSeriesCollection dataset = new XYSeriesCollection();\n\t \t\n\t \t//Definir cada Estacao\n\t\t XYSeries aes1 = new XYSeries(\"Estação1\");\n\t\t XYSeries aes2 = new XYSeries(\"Estação2\");\n\t\t XYSeries aes3 = new XYSeries(\"Estação3\");\n\t\t XYSeries aes4 = new XYSeries(\"Estação4\");\n\t\t XYSeries aes5 = new XYSeries(\"Estação5\");\n\t\t XYSeries aes6 = new XYSeries(\"Estação6\");\n\t\t XYSeries aes7 = new XYSeries(\"Estação7\");\n\t\t XYSeries aes8 = new XYSeries(\"Estação8\");\n\t\t XYSeries aes9 = new XYSeries(\"Estação9\");\n\t\t XYSeries aes10 = new XYSeries(\"Estação10\");\n\t\t XYSeries aes11 = new XYSeries(\"Estação11\");\n\t\t XYSeries aes12 = new XYSeries(\"Estação12\");\n\t\t XYSeries aes13 = new XYSeries(\"Estação13\");\n\t\t XYSeries aes14 = new XYSeries(\"Estação14\");\n\t\t XYSeries aes15 = new XYSeries(\"Estação15\");\n\t\t XYSeries aes16 = new XYSeries(\"Estação16\");\n\t\t \n\t\t //Definir numero de utilizadores em simultaneo para aparece na Interface\n\t\t XYSeries au1 = new XYSeries(\"AU1\");\n\t\t XYSeries au2 = new XYSeries(\"AU2\");\n\t\t XYSeries au3 = new XYSeries(\"AU3\");\n\t\t XYSeries au4 = new XYSeries(\"AU4\");\n\t\t XYSeries au5 = new XYSeries(\"AU5\");\n\t\t XYSeries au6 = new XYSeries(\"AU6\");\n\t\t XYSeries au7 = new XYSeries(\"AU7\");\n\t\t XYSeries au8 = new XYSeries(\"AU8\");\n\t\t XYSeries au9 = new XYSeries(\"AU9\");\n\t\t XYSeries au10 = new XYSeries(\"AU10\");\n\t\t \n\t\t //Colocar estacoes no gráfico\n\t\t aes1.add(12,12);\n\t\t aes2.add(12,37);\n\t\t aes3.add(12,62);\n\t\t aes4.add(12,87);\n\t\t \n\t\t aes5.add(37,12);\n\t\t aes6.add(37,37);\n\t\t aes7.add(37,62);\n\t\t aes8.add(37,87);\n\t\t \n\t\t aes9.add(62,12); \n\t\t aes10.add(62,37);\n\t\t aes11.add(62,62);\n\t\t aes12.add(62,87);\n\t\t \n\t\t aes13.add(87,12);\n\t\t aes14.add(87,37);\n\t\t aes15.add(87,62);\n\t\t aes16.add(87,87);\n\t\t \n\t\t//Para a bicicleta 1\n\t\t \t\n\t\t\t for(Entry<String, String> entry : position1.entrySet()) {\n\t\t\t\t String key = entry.getKey();\n\t\t\t\t \n\t\t\t\t String[] part= key.split(\",\");\n\t\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t\t \n\t\t\t\t au1.add(keyX,keyY);\n\t\t\t }\n\t\t \n\t\t\t //Para a bicicleta 2\n\t\t for(Entry<String, String> entry : position2.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au2.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Para a bicicleta 3\n\t\t for(Entry<String, String> entry : position3.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au3.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position4.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au4.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position5.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au5.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position6.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au6.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position7.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au7.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position8.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au8.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position9.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au9.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position10.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au10.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Add series to dataset\n\t\t dataset.addSeries(au1);\n\t\t dataset.addSeries(au2);\n\t\t dataset.addSeries(au3);\n\t\t dataset.addSeries(au4);\n\t\t dataset.addSeries(au5);\n\t\t dataset.addSeries(au6);\n\t\t dataset.addSeries(au7);\n\t\t dataset.addSeries(au8);\n\t\t dataset.addSeries(au9);\n\t\t dataset.addSeries(au10);\n\t\t \n\t\t \n\t\t dataset.addSeries(aes1);\n\t\t dataset.addSeries(aes2);\n\t\t dataset.addSeries(aes3);\n\t\t dataset.addSeries(aes4);\n\t\t dataset.addSeries(aes5);\n\t\t dataset.addSeries(aes6);\n\t\t dataset.addSeries(aes7);\n\t\t dataset.addSeries(aes8);\n\t\t dataset.addSeries(aes9);\n\t\t dataset.addSeries(aes10);\n\t\t dataset.addSeries(aes11);\n\t\t dataset.addSeries(aes12);\n\t\t dataset.addSeries(aes13);\n\t\t dataset.addSeries(aes14);\n\t\t dataset.addSeries(aes15);\n\t\t dataset.addSeries(aes16);\n\t\t \n\t\t return dataset;\n\t }", "@RequiresApi(api = Build.VERSION_CODES.O)\n public void createNewLineChart() {\n\n ArrayList<Entry> yValues = new ArrayList<>();\n yValues.clear();\n\n //Todays Date\n Date date = new Date();\n LocalDate localDate = date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n// String currentMonth = getMonthForInt(localDate.getMonthValue());\n if (monthSelectedAsInt > localDate.getMonthValue()){\n yValues.add(new Entry(0, 0));\n } else if (monthSelectedAsInt == localDate.getMonthValue()){\n for (int i = 1; i <= localDate.getDayOfMonth() ; i++) {\n yValues.add(new Entry(i, occupancyRate[i]));\n }\n } else {\n for (int i = 1; i <= numberOfDays ; i++) {\n yValues.add(new Entry(i, occupancyRate[i]));\n }\n }\n\n //chart.setOnChartValueSelectedListener(this);\n\n // enable scaling and dragging\n chart.setDragEnabled(true);\n chart.setScaleEnabled(true);\n\n // if disabled, scaling can be done on x- and y-axis separately\n chart.setPinchZoom(false);\n\n LineDataSet set1;\n\n set1 = new LineDataSet(yValues, \"Occupany Rate \");\n set1.setDrawCircles(false);\n set1.setDrawValues(false);\n set1.setColor(Color.RED);\n\n ArrayList <ILineDataSet> dataSets = new ArrayList<>();\n dataSets.add(set1);\n LineData dataLine = new LineData(set1);\n chart.getDescription().setEnabled(false);\n chart.getXAxis().setTextSize(10f);\n chart.getXAxis().setPosition(XAxis.XAxisPosition.BOTTOM);\n\n chart.getAxisLeft().setAxisMinimum(0);\n chart.getAxisLeft().setAxisMaximum(100);\n chart.getAxisRight().setAxisMinimum(0);\n chart.getAxisRight().setAxisMaximum(100);\n chart.getXAxis().setAxisMinimum(1);\n chart.getXAxis().setAxisMaximum(numberOfDays);\n\n chart.setData(dataLine);\n chart.invalidate();\n }", "public ChartTest() {\n initComponents();\n }", "private void start () {\n NumberAxis xAxis = new NumberAxis();\n NumberAxis yAxis = new NumberAxis();\n\n xAxis.setForceZeroInRange(false);\n yAxis.setForceZeroInRange(false);\n xAxis.setAnimated(false);\n yAxis.setAnimated(false);\n\n xAxis.setLabel(\"Number of \" + cmc + \" Drops\");\n xAxis.setMinorTickVisible(false);\n\n chart = new LineChart<>(xAxis, yAxis);\n chart.setTitle(\"Changes in \" + cmc + \" Drops\");\n chart.setLegendSide(Side.LEFT);\n chart.setAnimated(false);\n\n this.getChildren().add(chart);\n this.setAlignment(Pos.CENTER_LEFT);\n }", "ArrayList<JFreeChart> generateAll();", "private void createGraph() {\r\n graph = new Graph(SHELL, SWT.NONE);\r\n\r\n final GridData gridData = new GridData();\r\n gridData.horizontalAlignment = GridData.FILL;\r\n gridData.verticalAlignment = GridData.FILL;\r\n gridData.grabExcessHorizontalSpace = true;\r\n gridData.grabExcessVerticalSpace = true;\r\n gridData.heightHint = DEFAULT_GRAPH_SIZE;\r\n gridData.widthHint = DEFAULT_GRAPH_SIZE;\r\n graph.setLayoutData(gridData);\r\n }", "public void View()\n\t{\n\t\tDefaultPieDataset pieDataset = new DefaultPieDataset();\n\t\t\n\t\tfor(String key : result.keySet())\n\t\t{\n\t\t\tpieDataset.setValue(key, Double.parseDouble(result.get(key).toString()));\n\t\t}\n\t\t\n\t\tJFreeChart chart = ChartFactory.createPieChart(title, pieDataset, true, true, true);\n\t\t\n\t\tChartFrame frame = new ChartFrame(\"Pie Chart\", chart);\n\t\t\n\t\tframe.setVisible(true);\n\t\tframe.setSize(450,500);\n\t}", "private void setupCharts(Metrics metrics) {\n // language in config\n metrics.addCustomChart(new SimplePie(\"used_language\", () ->\n getConfig().getString(\"language\", \"auto\")));\n\n metrics.addCustomChart(new SimplePie(\"default_locale\", () ->\n Locale.getDefault().toLanguageTag()));\n\n // encoding in config\n metrics.addCustomChart(new SimplePie(\"encoding\", () ->\n getConfig().getString(\"encoding\", \"UTF-8\")));\n\n // tradeWithMoney in config\n metrics.addCustomChart(new SimplePie(\"money_enabled\", () ->\n getConfig().getBoolean(\"tradeWithMoney\", true) ? \"enabled\" : \"disabled\"));\n\n // noDebts in config\n metrics.addCustomChart(new SimplePie(\"no_debts_enabled\", () ->\n getConfig().getBoolean(\"noDebts\", true) ? \"enabled\" : \"disabled\"));\n\n // maxTradingDistance in config\n metrics.addCustomChart(new SimplePie(\"max_trading_distance\", () ->\n String.valueOf(getConfig().getInt(\"maxTradingDistance\", 15))));\n\n // tradeThroughWorlds in config\n metrics.addCustomChart(new SimplePie(\"trade_through_worlds_enabled\", () ->\n getConfig().getBoolean(\"tradeThroughWorlds\", false) ? \"enabled\" : \"disabled\"));\n\n // fastTrade in config\n metrics.addCustomChart(new SimplePie(\"fast_trade_enabled\", () ->\n getConfig().getBoolean(\"fastTrade\", false) ? \"enabled\" : \"disabled\"));\n\n // successful trades\n metrics.addCustomChart(new SingleLineChart(\"successful_trades\", () -> successfulTrades));\n\n // aborted trades\n metrics.addCustomChart(new SingleLineChart(\"aborted_trades\", () -> abortedTrades));\n\n // Is Vault used?\n metrics.addCustomChart(new SimplePie(\"vault_used\", () -> hasVault ? \"Used\" : \"Not used\"));\n\n // The used economy plugin\n metrics.addCustomChart(new SimplePie(\"economy_plugin\", () -> economyName));\n\n // Download source\n metrics.addCustomChart(new SimplePie(\"download_source\", () -> {\n // Now the only source.\n return \"spigotmc.org\";\n }));\n }", "public testChart() {\n initComponents();\n }", "private Object createDataset(final ChartConfiguration config) {\n final CategoryChart chart = (CategoryChart) config.chart;\n for (final Fields key: config.fields) {\n chart.addSeries(key.getLocalizedName(), new double[1], new double[1]);\n }\n populateDataset(config);\n return null;\n }", "protected XSSFChart() {\n\t\tsuper();\n\t\tcreateChart();\n\t}", "public CategoryDataset createDataset() {\n\t\tfinal DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\t\tProjectManagement projectManagement = new ProjectManagement();\n\t\tif (this.chartName == \"Earned Value\") {\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getEarnedValue(date), \"Earned Value\", date);\n\t\t\t}\n\t\t} else if (this.chartName == \"Schedule Variance\") {\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getScheduleVariance(date), \"Schedule Variance\", date);\n\t\t\t}\n\n\t\t} else {// Cost Variance\n\t\t\tfor (LocalDate date : dateList) {\n\t\t\t\tdataset.addValue(projectManagement.getCostVariance(date), \"Cost Variance\", date);\n\t\t\t}\n\t\t}\n\t\treturn dataset;\n\t}", "public GraphView() {\r\n graphModel = new GraphModel();\r\n graphModel.setNoOfChannels(0);\r\n graphModel.setXLength(1);\r\n initializeGraph();\r\n add(chartPanel);\r\n setVisible(true);\r\n }", "@Override\n public void init() throws Exception {\n Mapper mapper = new Mapper() {\n public double f(double x, double y) {\n try {\n return i3d.evaluate(x, y);\n } catch (InterpolationException e) {\n e.printStackTrace();\n return 0;\n }\n }\n };\n \n // Define range and precision for the function to plot\n Range rangeX = new Range((float)i3d.lowerA(), (float)i3d.upperA());\n int stepsX = 100;\n Range rangeY = new Range((float)i3d.lowerB(), (float)i3d.upperB());\n int stepsY = 100;\n \n AbstractDrawable drawable;\n // Create the object to represent the surface\n final Shape surface = Builder.buildOrthonormal(new OrthonormalGrid(rangeX, stepsX, rangeY, stepsY), mapper);\n surface.setColorMapper(new ColorMapper(new ColorMapRainbow(),\n surface.getBounds().getZmin(), surface.getBounds().getZmax(), COLOR_BASE));\n surface.setWireframeDisplayed(true);\n surface.setWireframeWidth(1);\n surface.setWireframeColor(COLOR_WIRE);\n surface.setFaceDisplayed(true);\n drawable = surface;\n \n // Create a chart\n chart = AWTChartComponentFactory.chart(Quality.Advanced);\n chart.getAxeLayout().setXTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setYTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setZTickRenderer(new FixedDecimalTickRenderer(1));\n chart.getAxeLayout().setFaceDisplayed(false);\n chart.getAxeLayout().setMainColor(COLOR_MAIN);\n chart.getView().setBackgroundColor(COLOR_BG);\n chart.getScene().getGraph().add(drawable);\n \n chart.getAxeLayout().setXAxeLabel(\"Length\");\n chart.getAxeLayout().setYAxeLabel(\"Time\");\n chart.getAxeLayout().setZAxeLabel(\"Temperature\");\n }", "private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\n\t\tif (_controler != null) {\n\t\t\tfor (Object cat : _controler.getCategorieData()) {\n\n\t\t\t\tresult.setValue((String) cat, _controler.getTotal((String) cat));\n\n\t\t\t}\n\t\t}\n\t\treturn result;\n\n\t}", "@Override\n public void run() {\n XYChart.Data<Number, Number> data = new XYChart.Data<>(-x, y);\n data.setNode(new Circle(5, javafx.scene.paint.Color.GREY));\n series.getData().add(data);\n lineChart.getData().add(series);\n }", "public TestPlotter() {\n\t\tplot = new Plot2D(title, xLabel, yLabel, true);\n\t\tplot.addChartMouseListener(new PlotListener());\n\t\tplot.addDismissListener(new AL());\n\t\tplot.setDefaultCloseOperation(plotter.EXIT_ON_CLOSE);\n\t\t\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) { \n \n XYChart.Series series = new XYChart.Series<>();\n \n \n series.setName(\"Gagnant\");\n series.getData().add(new XYChart.Data(\"Jan\", 100));\n series.getData().add(new XYChart.Data(\"Fev\", 170));\n series.getData().add(new XYChart.Data(\"Mars\", 197));\n series.getData().add(new XYChart.Data(\"Avr\", 160));\n series.getData().add(new XYChart.Data(\"Mai\", 165));\n series.getData().add(new XYChart.Data(\"Juin\", 179));\n series.getData().add(new XYChart.Data(\"Juil\", 195));\n series.getData().add(new XYChart.Data(\"Aout\", 140));\n series.getData().add(new XYChart.Data(\"Sept\", 121));\n series.getData().add(new XYChart.Data(\"Oct\", 173));\n series.getData().add(new XYChart.Data(\"Nov\", 185));\n series.getData().add(new XYChart.Data(\"Dec\", 150));\n \n XYChart.Series perdant = new XYChart.Series<>();\n perdant.setName(\"Perdant\");\n \n perdant.getData().add(new XYChart.Data(\"Jan\", 80));\n perdant.getData().add(new XYChart.Data(\"Fev\", 60));\n perdant.getData().add(new XYChart.Data(\"Mars\", 80));\n perdant.getData().add(new XYChart.Data(\"Avr\", 70));\n perdant.getData().add(new XYChart.Data(\"Mai\", 70));\n perdant.getData().add(new XYChart.Data(\"Juin\", 60));\n perdant.getData().add(new XYChart.Data(\"Juil\", 100));\n perdant.getData().add(new XYChart.Data(\"Aout\", 80));\n perdant.getData().add(new XYChart.Data(\"Sept\", 50));\n perdant.getData().add(new XYChart.Data(\"Oct\", 79));\n perdant.getData().add(new XYChart.Data(\"Nov\", 70));\n perdant.getData().add(new XYChart.Data(\"Dec\", 12));\n \n\n Tooltip tooltip = new Tooltip(\"Le nombre de gagnants ou cours des mois augmentent souvent.\");\n areaChart.getStylesheets().add(\"-fx-color:green;\");\n areaChart.getData().addAll(series, perdant);\n BarChart.getStylesheets().add(\"chart-bar series<1> bar-legend-symbol default-color<red>\");\n BarChart.getData().addAll(perdant);\n\n\n }", "private void drawChart() throws ParseException {\n Calendar cal = new GregorianCalendar();\n cal.setTime(new Date());\n cal.set(Calendar.DAY_OF_MONTH, -7);\n cal.set(Calendar.HOUR_OF_DAY, 0);\n cal.set(Calendar.MINUTE, 0);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n Date startTime = cal.getTime();\n Date dayEnd = new Date();\n\n historyChart.setBackgroundColor(Color.WHITE);\n historyChart.setDrawBorders(true);\n\n\n ArrayList<String> xAxis = new ArrayList<>();\n ArrayList<Float> calories = new ArrayList<>();\n ArrayList<Float> calcium = new ArrayList<>();\n ArrayList<Float> sodium = new ArrayList<>();\n ArrayList<Float> carbs = new ArrayList<>();\n ArrayList<Float> cholestrol = new ArrayList<>();\n ArrayList<Float> iron = new ArrayList<>();\n ArrayList<Float> protien = new ArrayList<>();\n ArrayList<Float> sugar = new ArrayList<>();\n ArrayList<Float> totalfat = new ArrayList<>();\n\n NutritionHistory instance = NutritionHistory.getInstance();\n NutritionHistory.getInstance().getNutritionInformation(startTime, dayEnd, nutritionInformation -> {\n DatabaseReference mDatabase = FirebaseDatabase.getInstance().getReference();\n FirebaseUser mCurrentUser = FirebaseAuth.getInstance().getCurrentUser();\n mDatabase.child(\"account\").child(mCurrentUser.getUid()).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n double caloriesNeeded = 2000L;\n for (DataSnapshot data : dataSnapshot.getChildren()) {\n switch (data.getKey()) {\n case \"calories\":\n caloriesNeeded = Double.parseDouble(String.valueOf(data.getValue()));\n }\n }\n\n NutrientConverter converter = new NutrientConverter(caloriesNeeded);\n\n NutritionInformation.NutritionInformationBuilder builder = new NutritionInformation.NutritionInformationBuilder();\n NutritionInformation current = builder.build();\n\n Long[] days = nutritionInformation.keySet().stream().toArray(Long[]::new);\n Arrays.sort(days);\n\n for(Long day: days) {\n xAxis.add(sdf2.format(new Date(day)).toString());\n calories.add(converter.convert(\"Calories\", (float) nutritionInformation.get(day).getCalories()));\n calcium.add(converter.convert(\"Calcium\", (float) nutritionInformation.get(day).getCalcium()));\n sodium.add(converter.convert(\"Sodium\", (float)nutritionInformation.get(day).getSodium()));\n carbs.add(converter.convert(\"Carbohydrates\", (float) nutritionInformation.get(day).getCarbohydrates()));\n cholestrol.add(converter.convert(\"Cholesterol\", (float)nutritionInformation.get(day).getCholesterol()));\n iron.add(converter.convert(\"Iron\", (float)nutritionInformation.get(day).getIron()));\n protien.add(converter.convert(\"Protein\", (float)nutritionInformation.get(day).getProtein()));\n sugar.add(converter.convert(\"Sugar\", (float)nutritionInformation.get(day).getSugar()));\n totalfat.add(converter.convert(\"Total Fat\", (float)nutritionInformation.get(day).getTotalFat()));\n }\n Log.i(\"HERE\", xAxis.toString());\n LineDataSet dataCalories = addValues(\"Calories\", calories);\n dataCalories.setColor(Color.RED);\n dataCalories.setLineWidth(2f);\n\n LineDataSet dataCalcium = addValues(\"Calcium\",calcium);\n dataCalcium.setColor(Color.rgb(181, 126\t, 220));\n dataCalcium.setLineWidth(2f);\n\n LineDataSet dataSodium = addValues(\"Sodium\", sodium);\n dataSodium.setColor(Color.BLUE);\n dataSodium.setLineWidth(2f);\n\n LineDataSet dataCarbs = addValues(\"Carbohydrates\",carbs);\n dataCarbs.setColor(Color.GREEN);\n dataCarbs.setLineWidth(2f);\n\n LineDataSet dataCholesterol = addValues(\"Cholesterol\", cholestrol);\n dataCholesterol.setColor(Color.YELLOW);\n dataCholesterol.setLineWidth(2f);\n\n LineDataSet dataIron = addValues(\"Iron\",iron);\n dataIron.setColor(Color.BLACK);\n dataIron.setLineWidth(2f);\n\n LineDataSet dataProtein = addValues(\"Protein\", protien);\n dataProtein.setColor(Color.CYAN);\n dataProtein.setLineWidth(2f);\n\n LineDataSet dataSugar = addValues(\"Sugar\",sugar);\n dataSugar.setColor(Color.MAGENTA);\n dataSugar.setLineWidth(2f);\n\n LineDataSet dataTotalFat = addValues(\"Total Fat\", totalfat);\n dataTotalFat.setColor(Color.rgb(248\t,131, 121));\n dataTotalFat.setLineWidth(2f);\n\n LineData lineData = new LineData(dataCalories, dataCalcium ,dataSodium, dataCarbs, dataIron, dataSugar, dataProtein, dataTotalFat, dataCholesterol);\n historyChart.setData(lineData);\n historyChart.getXAxis().setDrawAxisLine(true);\n historyChart.setVisibleXRange(0, xAxis.size() - 1);\n historyChart.getXAxis().setValueFormatter(new MyXAxisValueFormatter(xAxis));\n historyChart.getXAxis().setPosition(XAxis.XAxisPosition.BOTTOM);\n historyChart.enableScroll();\n historyChart.getDescription().setEnabled(false);\n historyChart.getXAxis().setLabelCount(7, true);\n historyChart.setExtraBottomOffset(20f);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n });\n\n designChart(xAxis);\n historyChart.invalidate();\n }", "@Override\r\n public void run() {\n chart = new PieChart();\r\n chart.setWidth(\"100px\");\r\n chart.setHeight(\"100px\");\r\n fp.add(chart);\r\n draw();\r\n }", "private XYDataset createDataset() {\n\t\tfinal XYSeriesCollection dataset = new XYSeriesCollection( ); \n\t\tdataset.addSeries(trainErrors); \n\t\tdataset.addSeries(testErrors);\n\t\treturn dataset;\n\t}", "private JFreeChart createChart(final String title,\n\t\t\tfinal String categoryAxisLabel, final String valueAxisLabel,\n\t\t\tfinal XYSeriesCollection dataset) {\n\t\tNumberAxis xAxis = new NumberAxis(categoryAxisLabel);\n\t\txAxis.setAutoRangeIncludesZero(false);\n\t\txAxis.setRange(0, 24);\n\t\tNumberAxis yAxis = new NumberAxis(valueAxisLabel);\n\t\tyAxis.setAutoRangeIncludesZero(true);\n\t\tyAxis.setRange(0, 100);\n\n\t\tXYPlot plot = new XYPlot(dataset, xAxis, yAxis, null);\n\n\t\tXYItemRenderer renderer = new XYLineAndShapeRenderer(true, true);\n\t\trenderer.setBaseToolTipGenerator(null/* XYToolTipGenerator */);\n\t\trenderer.setURLGenerator(null/* urlGenerator */);\n\t\tplot.setRenderer(renderer);\n\t\tplot.setOrientation(PlotOrientation.VERTICAL);\n\n\t\tJFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,\n\t\t\t\tplot, true/* legend */);\n\t\treturn chart;\n\t}", "public static void main(String[] args) {\r\n\r\n // create a chart\r\n double[][] data = new double[][] {\r\n {56.0, -12.0, 34.0, 76.0, 56.0, 100.0, 67.0, 45.0},\r\n {37.0, 45.0, 67.0, 25.0, 34.0, 34.0, 100.0, 53.0},\r\n {43.0, 54.0, 34.0, 34.0, 87.0, 64.0, 73.0, 12.0}};\r\n CategoryDataset dataset = DatasetUtilities.createCategoryDataset(\r\n \"Series \", \"Type \", data);\r\n\r\n JFreeChart chart = null;\r\n boolean drilldown = true;\r\n\r\n if (drilldown) {\r\n CategoryAxis categoryAxis = new CategoryAxis(\"Category\");\r\n ValueAxis valueAxis = new NumberAxis(\"Value\");\r\n BarRenderer renderer = new BarRenderer();\r\n renderer.setBaseToolTipGenerator(\r\n new StandardCategoryToolTipGenerator());\r\n renderer.setBaseItemURLGenerator(new StandardCategoryURLGenerator(\r\n \"bar_chart_detail.jsp\"));\r\n \r\n // add URLs to the series names in the legend...\r\n renderer.setLegendItemURLGenerator(new CategorySeriesLabelGenerator() \r\n {\r\n public String generateLabel(CategoryDataset dataset, int series) {\r\n return \"series.html?series=\" + (series + 1);\r\n }\r\n \r\n });\r\n \r\n // add tool tips to the series names in the legend...\r\n renderer.setLegendItemToolTipGenerator(new CategorySeriesLabelGenerator() \r\n {\r\n public String generateLabel(CategoryDataset dataset, int series) {\r\n return \"Tool tip for series \" + (series + 1);\r\n }\r\n \r\n });\r\n CategoryPlot plot = new CategoryPlot(dataset, categoryAxis, \r\n valueAxis, renderer);\r\n plot.setOrientation(PlotOrientation.VERTICAL);\r\n chart = new JFreeChart(\"Bar Chart\", JFreeChart.DEFAULT_TITLE_FONT,\r\n plot, true);\r\n }\r\n else {\r\n chart = ChartFactory.createBarChart(\r\n \"Vertical Bar Chart\", // chart title\r\n \"Category\", // domain axis label\r\n \"Value\", // range axis label\r\n dataset, // data\r\n PlotOrientation.VERTICAL,\r\n true, // include legend\r\n true,\r\n false\r\n );\r\n }\r\n chart.setBackgroundPaint(java.awt.Color.white);\r\n \r\n // save it to an image\r\n try {\r\n ChartRenderingInfo info = new ChartRenderingInfo(\r\n new StandardEntityCollection());\r\n File file1 = new File(\"barchart100.png\");\r\n ChartUtilities.saveChartAsPNG(file1, chart, 600, 400, info);\r\n\r\n // write an HTML page incorporating the image with an image map\r\n File file2 = new File(\"barchart100.html\");\r\n OutputStream out = new BufferedOutputStream(\r\n new FileOutputStream(file2));\r\n PrintWriter writer = new PrintWriter(out);\r\n writer.println(\"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD XHTML 1.0 Strict//EN\\\"\");\r\n writer.println(\"\\\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\\\">\");\r\n writer.println(\"<html xmlns=\\\"http://www.w3.org/1999/xhtml\\\" lang=\\\"en\\\" xml:lang=\\\"en\\\">\");\r\n writer.println(\"<head><title>JFreeChart Image Map Demo</title></head>\");\r\n writer.println(\"<body><p>\");\r\n ImageMapUtilities.writeImageMap(writer, \"chart\", info);\r\n writer.println(\"<img src=\\\"barchart100.png\\\" \"\r\n + \"width=\\\"600\\\" height=\\\"400\\\" usemap=\\\"#chart\\\" alt=\\\"barchart100.png\\\"/>\");\r\n writer.println(\"</p></body>\");\r\n writer.println(\"</html>\");\r\n writer.close();\r\n\r\n }\r\n catch (IOException e) {\r\n System.out.println(e.toString());\r\n }\r\n\r\n }", "public void createChart(String titulo, String tituloX, String tituloY, XYSeries series[]){\n dataset = createDataset(series);\n \n chart = ChartFactory.createScatterPlot(\n titulo,\n tituloX, \n tituloY, \n dataset);\n \n plot = (XYPlot) chart.getPlot();\n }", "@PostConstruct\n public void init() {\n\n areaChartByDate = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newAreaChartSettings()\n .dataset(SALES_OPPS)\n .group(CREATION_DATE).dynamic(80, DAY, true)\n .column(CREATION_DATE, \"Creation date\")\n .column(EXPECTED_AMOUNT, SUM).format(AppConstants.INSTANCE.sales_bydate_area_column1(), \"$ #,###\")\n .title(AppConstants.INSTANCE.sales_bydate_area_title())\n .titleVisible(true)\n .width(700).height(200)\n .margins(10, 100, 80, 100)\n .filterOn(true, true, true)\n .buildSettings());\n\n pieChartYears = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newPieChartSettings()\n .dataset(SALES_OPPS)\n .group(CREATION_DATE).dynamic(YEAR, true)\n .column(CREATION_DATE, \"Year\")\n .column(COUNT, \"#occs\").format(AppConstants.INSTANCE.sales_bydate_pie_years_column1(), \"#,###\")\n .title(AppConstants.INSTANCE.sales_bydate_pie_years_title())\n .titleVisible(true)\n .width(200).height(150)\n .margins(0, 0, 0, 0)\n .filterOn(false, true, false)\n .buildSettings());\n\n pieChartQuarters = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newPieChartSettings()\n .dataset(SALES_OPPS)\n .group(CREATION_DATE).fixed(QUARTER, true)\n .column(CREATION_DATE, \"Creation date\")\n .column(COUNT, \"#occs\").format(AppConstants.INSTANCE.sales_bydate_pie_quarters_column1(), \"#,###\")\n .title(AppConstants.INSTANCE.sales_bydate_pie_quarters_title())\n .titleVisible(true)\n .width(200).height(150)\n .margins(0, 0, 0, 0)\n .filterOn(false, true, false)\n .buildSettings());\n\n barChartDayOfWeek = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newBarChartSettings()\n .subType_Bar()\n .dataset(SALES_OPPS)\n .group(CREATION_DATE).fixed(DAY_OF_WEEK, true).firstDay(SUNDAY)\n .column(CREATION_DATE, \"Creation date\")\n .column(COUNT, \"#occs\").format(AppConstants.INSTANCE.sales_bydate_bar_weekday_column1(), \"#,###\")\n .title(AppConstants.INSTANCE.sales_bydate_bar_weekday_title())\n .titleVisible(true)\n .width(200).height(150)\n .margins(0, 20, 80, 0)\n .filterOn(false, true, true)\n .buildSettings());\n\n\n pieChartByPipeline = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newPieChartSettings()\n .dataset(SALES_OPPS)\n .group(PIPELINE)\n .column(PIPELINE, \"Pipeline\")\n .column(COUNT, \"#opps\").format(AppConstants.INSTANCE.sales_bydate_pie_pipe_column1(), \"#,###\")\n .title(AppConstants.INSTANCE.sales_bydate_pie_pipe_title())\n .titleVisible(true)\n .width(200).height(150)\n .margins(0, 0, 0, 0)\n .filterOn(false, true, true)\n .buildSettings());\n\n tableAll = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newTableSettings()\n .dataset(SALES_OPPS)\n .title(AppConstants.INSTANCE.sales_bydate_title())\n .titleVisible(false)\n .tablePageSize(5)\n .tableWidth(800)\n .tableOrderEnabled(true)\n .tableOrderDefault(AMOUNT, DESCENDING)\n .renderer(DefaultRenderer.UUID)\n .column(COUNTRY, AppConstants.INSTANCE.sales_bydate_table_column1())\n .column(CUSTOMER, AppConstants.INSTANCE.sales_bydate_table_column2())\n .column(PRODUCT, AppConstants.INSTANCE.sales_bydate_table_column3())\n .column(SALES_PERSON, AppConstants.INSTANCE.sales_bydate_table_column4())\n .column(STATUS, AppConstants.INSTANCE.sales_bydate_table_column5())\n .column(AMOUNT).format(AppConstants.INSTANCE.sales_bydate_table_column6(), \"$ #,###\")\n .column(EXPECTED_AMOUNT).format(AppConstants.INSTANCE.sales_bydate_table_column7(), \"$ #,###\")\n .column(CREATION_DATE).format(AppConstants.INSTANCE.sales_bydate_table_column8(), \"MMM dd, yyyy\")\n .column(CLOSING_DATE).format(AppConstants.INSTANCE.sales_bydate_table_column9(), \"MMM dd, yyyy\")\n .filterOn(false, true, true)\n .buildSettings());\n\n // Create the selectors\n\n countrySelector = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newSelectorSettings()\n .dataset(SALES_OPPS)\n .group(COUNTRY)\n .column(COUNTRY, \"Country\")\n .column(COUNT, \"#Opps\").format(\"#Opps\", \"#,###\")\n .column(AMOUNT, SUM).format(AppConstants.INSTANCE.sales_bydate_selector_total(), \"$ #,##0.00\")\n .sort(COUNTRY, ASCENDING)\n .filterOn(false, true, true)\n .buildSettings());\n\n salesmanSelector = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newSelectorSettings()\n .dataset(SALES_OPPS)\n .group(SALES_PERSON)\n .column(SALES_PERSON, \"Employee\")\n .column(COUNT, \"#Opps\").format(\"#Opps\", \"#,###\")\n .column(AMOUNT, SUM).format(AppConstants.INSTANCE.sales_bydate_selector_total(), \"$ #,##0.00\")\n .sort(SALES_PERSON, ASCENDING)\n .filterOn(false, true, true)\n .buildSettings());\n\n customerSelector = displayerLocator.lookupDisplayer(\n DisplayerSettingsFactory.newSelectorSettings()\n .dataset(SALES_OPPS)\n .group(CUSTOMER)\n .column(CUSTOMER, \"Customer\")\n .column(COUNT, \"#Opps\").format(\"#Opps\", \"#,###\")\n .column(AMOUNT, SUM).format(AppConstants.INSTANCE.sales_bydate_selector_total(), \"$ #,##0.00\")\n .sort(CUSTOMER, ASCENDING)\n .filterOn(false, true, true)\n .buildSettings());\n\n // Make the displayers interact among them\n displayerCoordinator.addDisplayer(areaChartByDate);\n displayerCoordinator.addDisplayer(pieChartYears);\n displayerCoordinator.addDisplayer(pieChartQuarters);\n displayerCoordinator.addDisplayer(barChartDayOfWeek);\n displayerCoordinator.addDisplayer(pieChartByPipeline);\n displayerCoordinator.addDisplayer(tableAll);\n displayerCoordinator.addDisplayer(countrySelector);\n displayerCoordinator.addDisplayer(salesmanSelector);\n displayerCoordinator.addDisplayer(customerSelector);\n\n // Init the dashboard from the UI Binder template\n initWidget(uiBinder.createAndBindUi(this));\n\n // Draw the charts\n displayerCoordinator.drawAll();\n }", "public ThongKeHD() {\n initComponents();\n initialization();\n performEvent();\n //drawChart(2021);\n }", "public UIXChart()\n {\n super(\"org.apache.myfaces.trinidad.Chart\");\n }", "public CoreChart()\n {\n super(\"org.apache.myfaces.trinidad.Chart\");\n }", "private void createD3Example() {\n\n\t\tSystem.out.println(\"createD3Example\");\n\n\t\tboolean showPoints = true;\n\n\t\tint widthSVG = 1200;\n\t\tint heightSVG = 800;\n\n\t\td3 = browser.getD3();\n//\t\tSystem.out.println(\"D3 version \" + d3.version());\n\t\twebEngine = d3.getWebEngine();\n\n\t\t// apply CSS\n\t\tloadCssForThisClass();\n\n\t\tsvg = d3.select(\"svg\")\n\t\t\t\t.attr(\"width\", widthSVG)\n\t\t\t\t.attr(\"height\", heightSVG);\n\n\t\ttry {\n\n\t\t\tinjectStyleInSVG();\n\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\n\t\t// create initial d3 content\n\n\t\t// data that you want to plot, I\"ve used separate arrays for x and y values\n\t\tdouble[] xData = {5, 10, 25, 32, 40, 40, 15, 7};\n\t\tdouble[] yData = {3, 17, 4, 10, 6, -20, -20.0, 0};\n\n\t\t// size and margins for the chart\n\n\t\tdouble totalWidth = 550;\n\t\tdouble totalHeight = 550;\n\n\t\tdouble marginLeft = 60;\n\t\tdouble marginRight = 15;\n\n\t\tdouble marginTop = 20;\n\t\tdouble marginBottom = 60;\n\n\t\tdouble width = totalWidth - marginLeft - marginRight;\n\t\tdouble height = totalHeight - marginTop - marginBottom;\n\n\t\t// x and y scales, I've used linear here but there are other options\n\t\t// the scales translate data values to pixel values for you\n\t\tdouble xMin = 0;\n\t\tdouble xMax = 50;\n\t\tLinearScale x = d3.scale().linear() //\n\t\t .domain(new double[]{xMin, xMax}) // the range of the values to plot\n\t\t .range(new double[]{0, width}); // the pixel range of the x-axis\n\n\t\tdouble yMin = -25;\n\t\tdouble yMax = 25;\n\t\tLinearScale y = d3.scale().linear() //\n\t\t .domain(new double[]{yMin, yMax}) //\n\t\t .range(new double[]{height, 0});\n\n\t\t// the chart object, includes all margins\n\t\tSelection chart = d3.select(\"svg\") //\n\t\t\t.attr(\"width\", width + marginRight + marginLeft) //\n\t\t\t.attr(\"height\", height + marginTop + marginBottom) //\n\t\t\t.attr(\"class\", \"chart\");\n\n\t\t// the main object where the chart and axis will be drawn\n\t\tSelection main = chart.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(\" + marginLeft + \",\" + marginTop + \")\") //\n\t\t\t.attr(\"width\", width) //\n\t\t\t.attr(\"height\", height) //\n\t\t\t.attr(\"class\", \"main\");\n\n\t\t// draw the x axis\n\t\tAxis xAxis = d3.svg().axis().scale(x).orient(Orientation.BOTTOM);\n\n\t\t//xAxis.innerTickSize(10);\n\n\n\t\tmain.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(0,\" + height + \")\") //\n\t\t\t.attr(\"class\", \"main axis date\").call(xAxis);\n\n\t\t// draw the y axis\n\t\tAxis yAxis = d3.svg().axis() //\n\t\t\t.scale(y) //\n\t\t\t.orient(Orientation.LEFT);\n\t\t\n\t\tmain.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(0,0)\") //\n\t\t\t.attr(\"class\", \"main axis date\") //\n\t\t\t.call(yAxis);\n\n\t\t// draw the graph object\n\t\tSelection g = main.append(\"svg:g\");\n\n\t\tg.selectAll(\"scatter-dots\")\n\t\t .data(yData) // using the values in the ydata array\n\t\t .enter().append(\"svg:circle\") // create a new circle for each value\n\t\t .attr(\"cy\", new YAxisDatumFunction(webEngine, y, yData) ) // translate y value to a pixel\n\t\t .attr(\"cx\", new XAxisDatumFunction(webEngine, x, xData)) // translate x value\n\t\t .attr(\"r\", 5) // radius of circle\n\t\t .style(\"opacity\", 1.0); // opacity of circle\n\n\n\t\t// Line, the path generator\n\t\tLine line;\n\n\t\tInterpolationMode mode = InterpolationMode.LINEAR;\n\n\t\tline = d3.svg().line()\n\t\t\t\t.x(new XAxisDatumFunction(webEngine, x, xData))\n\t\t\t\t.y(new YAxisDatumFunction(webEngine, y, yData));\n\n\t\tSelection g2 = g.append(\"svg:g\")\n\t\t\t\t.classed(\"Pippo-line-group\", true);\n\n\t\tString cssClassName = \"Agodemar-Test-Line\";\n\t\tSelection pathLine = g2.append(\"path\").classed(cssClassName, true);\n\t\tpathLine\n\t\t\t.attr(\"fill\",\"none\")\n\t\t\t.attr(\"stroke\",\"red\")\n\t\t\t.attr(\"stroke-width\",\"5\")\n\t\t\t.attr(\"stroke-linecap\",\"square\") // \"butt\", \"round\", \"square\"\n\t\t\t.attr(\"stroke-dasharray\",\"15,10\");\n\n\t\tfinal Stack<Coords> points = new Stack<>();\n\n//\t\tdouble [] x = {50.0, 120.0, 400.0, 700};\n//\t\tdouble [] y = {100.0, 30.0, 20.0, 200};\n\n\t\tIntStream.range(0, xData.length)\n\t\t\t.forEach(i ->\n\t\t\t\t\tpoints.push(new Coords(webEngine, xData[i], yData[i]))\n\t\t\t\t\t);\n\n//\t\tSystem.out.println(\"points:\");\n//\t\tpoints.stream()\n//\t\t\t.forEach(p -> System.out.println(p.x()+\", \"+p.y()));\n\n\t\tmode = InterpolationMode.MONOTONE;\n\t\tline = line.interpolate(mode);\n\t\tSystem.out.println(\"Interpolation mode: \" + line.interpolate());\n\n\t\tdouble tension = 0.1;\n\t\tline = line.tension(tension);\n//\t\tSystem.out.println(\"tension: \" + line.tension());\n\n\t\tList<Coords> coordsList = new ArrayList<>(points);\n\n//\t\tSystem.out.println(\"coordsList:\");\n//\t\tcoordsList.stream()\n//\t\t\t.forEach(c -> System.out.println(c.x()+\", \"+c.y()));\n\n\t\tString coordinates = line.generate(coordsList);\n\n//\t\tSystem.out.println(\"coordinates: \" + coordinates);\n\n\t\tpathLine.attr(\"d\", coordinates);\n\n\t\tLabelFactory labelFactory = new LabelFactory();\n\t\t\n//\t\tSelection myText = labelFactory.createInParentSelection(svg);\n//\t\tmyText.text(\"Agodemar!!!\");\n\t\t\n\t\tSelection text = svg.append(\"text\") //\n\t\t\t\t.attr(\"x\", 20) // String.format(\"%d\", widthSVG/2))\n\t\t\t\t.attr(\"y\", 100) // String.format(\"%d\", heightSVG/2))\n\t\t\t\t.text(\"Hello World\");\t\t\n\t\t\n\t\tsvg.append(\"g\")\n\t\t\t.attr(\"class\", \"main\")\n\t\t\t.append(\"text\")\n\t\t\t.attr(\"x\", 20).attr(\"dx\", \"12em\")\n\t\t\t.attr(\"y\", 56).attr(\"dy\", \"2em\")\n\t\t\t.attr(\"font\",\"20px sans-serif\")\n\t\t\t.text(\"Agodemar!!!\");\n\n//\t\tsvg.append(\"g\")\n//\t\t\t.attr(\"class\", \"y\" + \" \" + \"axis\")\n//\t\t\t.call(yAxis).append(\"text\")\n//\t\t\t.attr(\"transform\", \"rotate(-90)\")\n//\t\t\t.attr(\"y\", 6).attr(\"dy\", \".71em\")\n//\t\t\t.style(\"text-anchor\", \"end\")\n//\t\t\t.text(\"Frequency\");\n\t\t\n\t\t\n//\t\t// make a paragraph <p> in the html\n//\t\td3.select(\"body\").append(\"p\").text(\"Agodemar :: Hi there!\");\n\n\t}", "private AWTChart getDemoChart(AWTChart chart, IFunction function, Range xRange, Range yRange, int precX, int precY) {\n Mapper mapper = new FunctionMapper(function);\r\n\r\n // Create the object to represent the function over the given range.\r\n OrthonormalGrid grid = new OrthonormalGrid(xRange, precX, yRange, precY);\r\n\r\n chart.getScene().getGraph().remove(surface);\r\n surface = Builder.buildOrthonormal(grid, mapper);\r\n surface.setColorMapper(new ColorMapper(new ColorMapRainbow(), surface.getBounds().getZmin(), surface.getBounds().getZmax(), new Color(1, 1, 1, .6f)));\r\n surface.setFaceDisplayed(true);\r\n surface.setWireframeDisplayed(true);\r\n// surface.setBoundingBoxColor(Color.BLACK);\r\n surface.setWireframeWidth(1);\r\n\r\n chart.getScene().getGraph().add(surface);\r\n\r\n return chart;\r\n }", "private void initPieChart() {\n\t\tPieChart chartLinguagens = new PieChart();\n\t\tchartLinguagens.setTitle(\"Ranking de Linguagens de Programação Mar/2013\");\n\t\tObservableList<PieChart.Data> datas = FXCollections.observableArrayList(\n\t\t\t\tnew PieChart.Data(\"Java\", 18.156),\n\t\t\t\tnew PieChart.Data(\"C\", 17.141), \n\t\t\t\tnew PieChart.Data(\"Objective-C\", 10.230),\n\t\t\t\tnew PieChart.Data(\"C++\", 9.115), \n\t\t\t\tnew PieChart.Data(\"C#\", 6.597), \n\t\t\t\tnew PieChart.Data(\"Outros\", 38.761));\n\t\tchartLinguagens.setData(datas);\n\t\tpane.getChildren().add(chartLinguagens);\n\t}", "private XYSeries createSeries() {\r\n return createSeries(0);\r\n }", "private void makeChart() {\n\n Log.d(\"Chart\",\"Start Chart\");\n\n ArrayList<Entry> speedList = new ArrayList<>();\n ArrayList<Entry> avgSpeedList = new ArrayList<>();\n ArrayList<Entry> avgAltList = new ArrayList<>();\n\n int numberOfValues = trackingList.size();\n\n //Fills the data in the Arrays Entry (xValue,yValue)\n for(int i = 0; i < numberOfValues;i++){\n float avgSpeed = (float)averageSpeed;\n float avgAlt = (float)averageAlt;\n float curSpeed = (float)trackingList.get(i).getSpeed();\n\n Log.d(\"Chart\",\"CurSpeed: \" +curSpeed);\n\n avgSpeedList.add(new Entry(i*3,avgSpeed));\n speedList.add(new Entry(i*3,curSpeed));\n avgAltList.add(new Entry(i*3,avgAlt));\n }\n\n ArrayList<String> xAXES = new ArrayList<>();\n\n\n String[] xaxes = new String[xAXES.size()];\n for(int i=0; i<xAXES.size();i++){\n xaxes[i] = xAXES.get(i);\n }\n\n // More than one Array (Line in the Graph)\n ArrayList<ILineDataSet> lineDataSets = new ArrayList<>();\n\n //Speed Graph setup\n LineDataSet lineDataSet1 = new LineDataSet(speedList,\"Speed\");\n lineDataSet1.setDrawCircles(false);\n lineDataSet1.setColor(Color.BLUE);\n lineDataSet1.setLineWidth(2);\n\n //AvgSpeed setup\n LineDataSet lineDataSet2 = new LineDataSet(avgSpeedList,\"AvgSpeedLine\");\n lineDataSet2.setDrawCircles(false);\n lineDataSet2.setColor(Color.RED);\n lineDataSet2.setLineWidth(3);\n\n //AvgAlt setup\n LineDataSet lineDataSet3 = new LineDataSet(avgAltList,\"AvgAltLine\");\n lineDataSet3.setDrawCircles(false);\n lineDataSet3.setColor(Color.MAGENTA);\n lineDataSet3.setLineWidth(3);\n\n //Add them to the List\n lineDataSets.add(lineDataSet1);\n lineDataSets.add(lineDataSet2);\n lineDataSets.add(lineDataSet3);\n\n //setup for the xAxis\n XAxis xAxis = lineChart.getXAxis();\n xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);\n\n //Puts the data in the Graph\n lineChart.setData(new LineData(lineDataSets));\n lineChart.setVisibleXRangeMaximum(65f);\n\n //Chart description\n lineChart.getDescription().setText(\"All Speed\");\n\n //Shows timer information when clicked\n lineChart.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Toast.makeText(getApplicationContext(), \"Its measured every 3 seconds\",Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.blood_suger_analysis_diagram);\n\t\tBarChart barChart1 = (BarChart) findViewById(R.id.bloodSugerAnalysisDiagramChart1);\n\t\tBarChart barChart2 = (BarChart) findViewById(R.id.bloodSugerAnalysisDiagramChart2);\n\t\tPieChart pieChart = (PieChart) findViewById(R.id.bloodSugerAnalysisDiagramChart3);\n\t\tdouble[] chart1Values = { 18.0, 15 };\n\t\tdouble[] chart2Values = { 18.0, 15, 24, 20 };\n\n\t\tsetChart1(barChart1, chart1Values);\n\t\tsetchart2(barChart2, chart2Values);\n\t\tint normalCount = 3;\n\t\tint highCount = 2;\n\t\tint lowCount = 5;\n\t\tsetChart3(pieChart, lowCount, normalCount, highCount);\n\t}", "public JFreeChart createChart(CategoryDataset dataset) {\n CategoryAxis categoryAxis = new CategoryAxis(\"\");\n ValueAxis valueAxis = new NumberAxis(\"\");\n valueAxis.setVisible(false);\n BarRenderer renderer = new BarRenderer() {\n\n @Override\n public Paint getItemPaint(int row, int column) {\n return Color.blue;\n// switch (column) {\n// case 0:\n// return Color.red;\n// case 1:\n// return Color.yellow;\n// case 2:\n// return Color.blue;\n// case 3:\n// return Color.orange;\n// case 4:\n// return Color.gray;\n// case 5:\n// return Color.green.darker();\n// default:\n// return Color.red;\n// }\n }\n };\n renderer.setDrawBarOutline(false);\n renderer.setBaseItemLabelGenerator(new StandardCategoryItemLabelGenerator());\n renderer.setBasePositiveItemLabelPosition(new ItemLabelPosition(\n ItemLabelAnchor.OUTSIDE12, TextAnchor.BOTTOM_CENTER));\n renderer.setBaseItemLabelsVisible(Boolean.TRUE);\n renderer.setBarPainter(new StandardBarPainter());\n CategoryPlot plot = new CategoryPlot(dataset, categoryAxis, valueAxis, renderer);\n JFreeChart chart = new JFreeChart(\"\", JFreeChart.DEFAULT_TITLE_FONT, plot, false);\n chart.setBackgroundPaint(Color.white);\n return chart;\n }", "public CreateDitaaChart(String d) {\n\t\tdiagram = d;\n\t}", "public HistogramTest(String title) {\r\n super(title);\r\n IntervalXYDataset dataset = createDataset();\r\n JFreeChart chart = createChart(dataset);\r\n ChartPanel chartPanel = new ChartPanel(chart);\r\n chartPanel.setPreferredSize(new java.awt.Dimension(500, 270));\r\n chartPanel.setMouseZoomable(true, false);\r\n setContentPane(chartPanel);\r\n }", "@Override\n @Transactional\n public void getTheSpecial() {\n log.info(\"Running \\\"The Special\\\"...\");\n\n log.info(\"Creating plot...\");\n Chart plot = new Chart();\n plot.setName(\"My_Plot_\" + RandomUtils.nextInt());\n Map<String, Object> map = new HashMap<>();\n map.put(\"key1\", \"value1\");\n map.put(\"key2\", 2);\n plot.setOptions(map);\n plot.setTopic(topicDao.findOne(\"test\"));\n\n List<Map<String, Object>> mainPlotData = new ArrayList<Map<String, Object>>();\n\n for (Integer i = 0; i < 1; i++) {\n Map<String, Object> itemData = new HashMap<String, Object>();\n\n // Generate data set\n List<List<Double>> data = new ArrayList<>();\n for (Double j = 0D; j < 20; j++) {\n List<Double> bar = new ArrayList<>();\n bar.add(j);\n bar.add(Math.sin(j));\n data.add(bar);\n }\n\n itemData.put(\"data\", data);\n itemData.put(\"label\", \"Sin\");\n itemData.put(\"color\", \"#000000\");\n\n mainPlotData.add(itemData);\n }\n //plot.setData(mainPlotData);\n\n Map<String, Object> mainOptions = new HashMap<>();\n\n Map<String, Object> bars = new HashMap<>();\n bars.put(\"show\", true);\n bars.put(\"barWidth\", 0.5);\n bars.put(\"fill\", 0.9);\n mainOptions.put(\"bars\", bars);\n\n Map<String, Object> xaxis = new HashMap<>();\n bars.put(\"ticks\", new ArrayList<String>());\n bars.put(\"autoscaleMargin\", 0.02);\n mainOptions.put(\"xaxis\", xaxis);\n\n Map<String, Object> yaxis = new HashMap<>();\n bars.put(\"min\", -2);\n bars.put(\"max\", 2);\n mainOptions.put(\"yaxis\", yaxis);\n \n Map<String, Object> grid = new HashMap<>();\n List<Map<String, Object>> markings = new ArrayList<>();\n Map<String, Object> markingItem;\n Map<String, Object> axisItem;\n\n markingItem = new HashMap<>();\n markingItem.put(\"color\", \"#F6F6F6\");\n axisItem = new HashMap<>();\n axisItem.put(\"from\", 1);\n markingItem.put(\"yaxis\", axisItem);\n markings.add(markingItem);\n\n markingItem = new HashMap<>();\n markingItem.put(\"color\", \"#F6F6F6\");\n axisItem = new HashMap<>();\n axisItem.put(\"to\", -1);\n markingItem.put(\"yaxis\", axisItem);\n markings.add(markingItem);\n\n markingItem = new HashMap<>();\n markingItem.put(\"color\", \"#F6F6F6\");\n markingItem.put(\"lineWidth\", 1);\n axisItem = new HashMap<>();\n axisItem.put(\"from\", 2);\n axisItem.put(\"to\", 2);\n markingItem.put(\"xaxis\", axisItem);\n markings.add(markingItem);\n\n markingItem = new HashMap<>();\n markingItem.put(\"color\", \"#F6F6F6\");\n markingItem.put(\"lineWidth\", 1);\n axisItem = new HashMap<>();\n axisItem.put(\"from\", 8);\n axisItem.put(\"to\", 8);\n markingItem.put(\"xaxis\", axisItem);\n markings.add(markingItem);\n\n grid.put(\"markings\", markings);\n mainOptions.put(\"grid\", grid);\n\n plot.setOptions(mainOptions);\n\n try {\n plotService.save(plot);\n } catch (InvalidChartException e) {\n log.error(\"Couldn't create the plot.\");\n }\n\n List<Post> posts = datastoreService.findByTopicId(\"test\", Post.class);\n log.info(\"Posts count is <\" + posts.size() + \">\");\n\n log.info(\"That's it. Have fun!\");\n\n return;\n }", "public JFreeChart render();", "public DanceChart build();", "private BarData generateDataBar() {\n\n ArrayList<BarEntry> entries = new ArrayList<>();\n\n for (int i = 0; i < 12; i++) {\n entries.add(new BarEntry(i, (int) (Math.random() * 70) + 30));\n }\n\n BarDataSet d = new BarDataSet(entries, \"New DataSet 1\");\n // 设置相邻的柱状图之间的距离\n d.setColors(ColorTemplate.VORDIPLOM_COLORS);\n // 设置高亮的透明度\n d.setHighLightAlpha(255);\n\n BarData cd = new BarData(d);\n cd.setBarWidth(0.9f);\n return cd;\n }", "public static void main(String[] args) {\n showChart(createLineChart(), \"LineChartExample\");\n }", "public Parent createLineGraph(ObservableList<HappinessReport> data) {\n xAxis = new CategoryAxis();\n xAxis.setLabel(\"Country\");\n //Yaxis Creation\n yAxis = new NumberAxis();\n yAxis.setLabel(\"Life Expectancy (Years)\");\n //Chart Creation\n linechart = new LineChart<>(xAxis, yAxis);\n linechart.setTitle(\"Linechart\");\n //Country and Score Data load into chart\n for (int intx = 0; intx < data.size(); intx++) {\n XYChart.Series LineChartSeries = new XYChart.Series<>();\n LineChartSeries.getData().add(new XYChart.Data(String.valueOf(data.get(intx).getCountry()), data.get(intx).getExpectancy()));\n linechart.getData().add(LineChartSeries);\n }\n linechart.setTitle(\"Horizontal Bar Chart Example\");\n linechart.setVerticalGridLinesVisible(false);\n linechart.setLegendVisible(false);\n return linechart;\n }", "public void drawChart() {\n ArrayList<Entry> confuse = new ArrayList<>();\n ArrayList<Entry> attention = new ArrayList<>();\n ArrayList<Entry> engagement = new ArrayList<>();\n ArrayList<Entry> joy = new ArrayList<>();\n ArrayList<Entry> valence = new ArrayList<>();\n // point = \"Brow Furrow: \\n\";\n String dum = null, dum2 = null;\n for (int i = 0; i < size; i++) {\n //point += (\"\" + Emotion.getBrowFurrow(i).getL() + \" seconds reading of \" + Emotion.getBrowFurrow(i).getR() + \"\\n\");\n dum2 = Emotion.getBrowFurrow(i).getL().toString();\n dum = Emotion.getBrowFurrow(i).getR().toString();\n confuse.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n dum2 = Emotion.getAttention(i).getL().toString();\n dum = Emotion.getAttention(i).getR().toString();\n attention.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n dum2 = Emotion.getEngagement(i).getL().toString();\n dum = Emotion.getEngagement(i).getR().toString();\n engagement.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n dum2 = Emotion.getJoy(i).getL().toString();\n dum = Emotion.getJoy(i).getR().toString();\n joy.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n dum2 = Emotion.getValence(i).getL().toString();\n dum = Emotion.getValence(i).getR().toString();\n valence.add(new Entry((float)Double.parseDouble(dum2), Float.parseFloat(dum)));\n }\n\n LineDataSet data1 = new LineDataSet(confuse,\"Confuse\");\n LineDataSet data2 = new LineDataSet(attention,\"Attention\");\n LineDataSet data3 = new LineDataSet(engagement,\"Engagement\");\n LineDataSet data4 = new LineDataSet(joy,\"Engagement\");\n LineDataSet data5 = new LineDataSet(valence,\"Valence\");\n data1.setColor(Color.BLUE);\n data1.setDrawCircles(false);\n data2.setColor(Color.YELLOW);\n data2.setDrawCircles(false);\n data3.setColor(Color.GRAY);\n data3.setDrawCircles(false);\n data4.setColor(Color.MAGENTA);\n data4.setDrawCircles(false);\n data5.setColor(Color.GREEN);\n data5.setDrawCircles(false);\n\n\n dataSets.add(data1);\n dataSets.add(data2);\n dataSets.add(data3);\n dataSets.add(data4);\n dataSets.add(data5);\n }", "public static JPanel createDemoPanel(String total, String avild, String title) {\n double dtotal;\n double davild;\n dtotal = Double.parseDouble(total);\n davild = Double.parseDouble(avild);\n JFreeChart chart = createChart(createDataset(dtotal, davild), title);\n return new ChartPanel(chart);\n }", "private void setupSoldTicketsByEventTypeChart() {\n chartCreator.createPieChart(soldTicketsByEventTypeChart, soldTicketsByEventTypeData);\n }", "private void plotDato() {\n List<Entry> entriesMedidas = new ArrayList<Entry>();\n entriesMedidas.add(new Entry((float) dato.getYears(), (float) dato.getMeasures()[mag]));\n LineDataSet lineaMedidas = new LineDataSet(entriesMedidas, \"Medida\");\n lineaMedidas.setAxisDependency(YAxis.AxisDependency.LEFT);\n lineaMedidas.setColor(ColorTemplate.rgb(\"0A0A0A\"));\n lineaMedidas.setCircleColor(ColorTemplate.rgb(\"0A0A0A\"));\n todasMedidas.add(lineaMedidas);\n }", "public static JFreeChart createChart(final CategoryDataset dataset) {\n \n // create the chart...\n final JFreeChart chart = ChartFactory.createLineChart(\n \"Line Chart\", // chart title\n \"Type\", // domain axis label\n \"Value\", // range axis label\n dataset, // data\n PlotOrientation.VERTICAL, // orientation\n true, // include legend\n true, // tooltips\n false // urls\n );\n\n // NOW DO SOME OPTIONAL CUSTOMISATION OF THE CHART...\n //final StandardLegend legend = (StandardLegend) chart.getLegend();\n //legend.setDisplaySeriesShapes(true);\n //legend.setShapeScaleX(1.5);\n //legend.setShapeScaleY(1.5);\n //legend.setDisplaySeriesLines(true);\n\n chart.setBackgroundPaint(Color.white);\n\n final CategoryPlot plot = (CategoryPlot) chart.getPlot();\n plot.setBackgroundPaint(Color.lightGray);\n plot.setRangeGridlinePaint(Color.white);\n\n // customise the range axis...\n final NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();\n rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());\n rangeAxis.setAutoRangeIncludesZero(true);\n\n \n \n \n // customise the renderer...\n final LineAndShapeRenderer renderer = (LineAndShapeRenderer) plot.getRenderer();\n //renderer.setDrawShapes(true);\n\n renderer.setSeriesStroke(\n 0, new BasicStroke(\n 2.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND,\n 1.0f, new float[] {10.0f, 6.0f}, 0.0f\n )\n );\n renderer.setSeriesStroke(\n 1, new BasicStroke(\n 2.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND,\n 1.0f, new float[] {6.0f, 6.0f}, 0.0f\n )\n );\n renderer.setSeriesStroke(\n 2, new BasicStroke(\n 2.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND,\n 1.0f, new float[] {2.0f, 6.0f}, 0.0f\n )\n );\n // OPTIONAL CUSTOMISATION COMPLETED.\n \n return chart;\n }", "@Nullable\n @Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.chart,container,false);\n\n initView(view);\n return view;\n }", "public ChartPanel getChartPanel();", "private void setupDailyBarChart() {\r\n BarChart chart = findViewById(R.id.chart);\r\n chart.getDescription().setEnabled(false);\r\n chart.setExtraOffsets(0, 0, 0, 10);\r\n chart.setNoDataText(getResources().getString(R.string.loading_graph));\r\n chart.getPaint(Chart.PAINT_INFO).setTextSize(Utils.convertDpToPixel(16f));\r\n chart.getLegend().setEnabled(false);\r\n\r\n // Show time on x-axis at three hour intervals\r\n XAxis xAxis = chart.getXAxis();\r\n xAxis.setValueFormatter(new IAxisValueFormatter() {\r\n @Override\r\n public String getFormattedValue(float value, AxisBase axis) {\r\n int valueInt = (int) value;\r\n if(valueInt == 0) {\r\n return \"12am\";\r\n } else if(valueInt > 0 && valueInt < 12) {\r\n return valueInt + \"am\";\r\n } else if(valueInt == 12) {\r\n return \"12pm\";\r\n } else {\r\n return (valueInt - 12) + \"pm\";\r\n }\r\n }\r\n });\r\n\r\n xAxis.setPosition(XAxis.XAxisPosition.BOTTOM);\r\n xAxis.setDrawGridLines(false);\r\n xAxis.setTextSize(14f);\r\n // show label for every three hours\r\n xAxis.setGranularity(3.0f);\r\n xAxis.setLabelCount(8);\r\n xAxis.setGranularityEnabled(true);\r\n\r\n // Show non-sedentary hours on left y-axis\r\n YAxis yAxisLeft = chart.getAxisLeft();\r\n yAxisLeft.setAxisMinimum(0f);\r\n yAxisLeft.setTextSize(14f);\r\n yAxisLeft.setGranularity(1.0f); // show integer values on y axis\r\n yAxisLeft.setGranularityEnabled(true);\r\n\r\n YAxis yAxisRight = chart.getAxisRight();\r\n yAxisRight.setEnabled(false);\r\n }", "private void initGUI(){\n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\tDefaultPieDataset dataset = new DefaultPieDataset();// use to set value of pie chart\n\t\tdataset.setValue(\"Bandwidth\",0);//set initial result of the Bandwidth\n\t\tdataset.setValue(\"Signal To Noise\",0);//set initial result of the Signal To Noise\n\t\tdataset.setValue(\"Max Data Rate\",0);//set initial result of the max data rate\n\t\tsetMaxDataRateLBL(dataset); //Set the content of initial result of max data rate \n\t\tJFreeChart pieChart = ChartFactory.createPieChart(\"Shannons Theorem\", dataset, true,true,false);\n\t\t//pie plot use to multiply the pattern and display of pie chart\n\t\tPiePlot plot = (PiePlot)pieChart.getPlot();\n\t\tplot.setLabelFont(new Font(\"SansSerif\", Font.PLAIN, 12));\n //show the message if there is no data available\n\t\tplot.setNoDataMessage(\"No data available\");\n \n // make the result show the numbers on the pie chart\n plot.setLabelGenerator(new StandardPieSectionLabelGenerator(\"{0}: {1} ({2})\", new DecimalFormat(\"0\"), new DecimalFormat(\"0%\")));\n plot.setCircular(false);\n plot.setLabelGap(0.02);\n\t\tChartPanel cp = new ChartPanel(pieChart); //use to put pie chart into JPanel \n\t\tadd(cp);\n\t\tadd(createResult());\n\t}", "private JFreeChart createChart ( final XYDataset dataset1, final XYDataset dataset2 ) {\n final JFreeChart result = ChartFactory.createTimeSeriesChart( null, \"\", \"\", dataset1, true, true, false );\n final XYPlot plot = result.getXYPlot();\n final XYItemRenderer renderer1 = new XYLineAndShapeRenderer( true, false );\n final XYItemRenderer renderer2 = new XYLineAndShapeRenderer( true, false );\n plot.setDomainPannable( true );\n plot.setRangePannable( true );\n plot.setDataset( SPEED_SERIES_DATASET, dataset2 );\n plot.mapDatasetToRangeAxis( SPEED_SERIES_DATASET, SPEED_SERIES_DATASET );\n plot.setRenderer( SPEED_SERIES_DATASET, renderer1 );\n plot.setDataset( POSITION_SERIES_DATASET, dataset1 );\n plot.mapDatasetToRangeAxis( POSITION_SERIES_DATASET, POSITION_SERIES_DATASET );\n plot.setRenderer( POSITION_SERIES_DATASET, renderer2 );\n plot.setBackgroundPaint( StartUI.MAIN_BACKGROUND_COLOR );\n plot.setDomainGridlinePaint( Color.decode(\"0x3b4246\") );\n plot.setRangeGridlinePaint( Color.decode(\"0x3b4246\") );\n plot.setRangeGridlineStroke( new BasicStroke( 0.8f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL ) );\n plot.setDomainGridlineStroke( new BasicStroke( 0.8f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL ) );\n renderer1.setSeriesPaint( 0, Color.decode( \"#AAFF44\" ) );\n renderer2.setSeriesPaint( 0, Color.decode( \"#EEDD00\" ) );\n result.setBackgroundPaint( null );\n result.removeLegend();\n return result;\n }", "private void addCharts() {\n piechartPanel.removeAll();\n piechartPanel.validate();\n piechartPanel.repaint();\n\n barschartPanel.removeAll();\n barschartPanel.validate();\n barschartPanel.repaint();\n if (cpanel != null) {\n cpanel = null;\n }\n pieChart = new PieChart(collection, 0, type, cb_sort.isSelected()).chart;\n barsChart = new BarsChart(collection, 0, type, cb_sort.isSelected()).chart;\n cpanel = new ChartPanel(pieChart);\n cpanel.setSize(piechartPanel.getSize());\n piechartPanel.add(cpanel);\n piechartPanel.getParent().validate();\n cpanel = new ChartPanel(barsChart);\n cpanel.setSize(barschartPanel.getSize());\n barschartPanel.add(cpanel);\n barschartPanel.getParent().validate();\n }", "private void initializeChartPanel() {\n\n Rectangle region = new Rectangle(0, 0, clip.getFrameCount(), clip.getFrameFreqSamples());\n\n //toClipCoords(region);\n region.y = clip.getFrameFreqSamples() - (region.y + region.height);\n\n final int endCol = region.x + region.width;\n final int endRow = region.y + region.height;\n\n //System.out.println(\"endCol = \" + endCol + \" endRow = \" + endRow);\n\n XYSeries xy = new XYSeries(\"data\");\n XYSeries xySpline = new XYSeries(\"spline\");\n\n // Displays the single MAX or STRONGEST Frequency for each column\n // captures every x'th element for fitting spline\n int maxItensity = 0;\n int[] rows = new int[endCol];\n int[] intensities = new int[endCol];\n\n// int SPLINEPRECISION = chartPrefJSlider2.getValue(); // 1 is highest precision; default = 40\n int SPLINEPRECISION = 40; // 1 is highest precision; default = 40\n int splineCounter = 0;\n\n for (int col = region.x; col < endCol; col++) {\n Frame fr = clip.getFrame(col);\n int strongestFreq = 0;\n int strongestFreqStrength = 0;\n for (int row = region.y; row < endRow; row++) {\n // the following is a MUCH faster equivalent to: img.setRGB(col, row, greyVal);\n //int greyVal = (int) (brightness + (contrast * Math.log1p(Math.abs(preMult * val))));\n int greyVal = (int) (0 + (625.0 * Math.log1p(Math.abs(11.2 * fr.getReal(row)))));\n greyVal = Math.min(255, Math.max(0, greyVal));\n int thisFreqStrength = (greyVal << 16) | (greyVal << 8) | (greyVal);\n\n if (thisFreqStrength > strongestFreqStrength) {\n strongestFreqStrength = thisFreqStrength;\n strongestFreq = row;\n }\n if (thisFreqStrength > maxItensity) {\n maxItensity = thisFreqStrength;\n }\n }\n rows[col] = strongestFreq;\n intensities[col] = strongestFreqStrength;\n }\n System.out.println(\"maxItensity = \" + maxItensity);\n\n // Average neighboring data values\n // Use minIntensity amoung neighbors for averaged row\n // Use threshold to exclude weak signals\n //int NUMPOINTSAVERAGED = 20;\n int NUMPOINTSAVERAGED = jSlider1.getValue(); // default = 20\n double INTENSITYTHRESHOLD = 0.95;\n int[] data = new int[endCol - NUMPOINTSAVERAGED];\n int[] dataAveraged = new int[endCol - NUMPOINTSAVERAGED];\n int[] minIntensities = new int[endCol - NUMPOINTSAVERAGED];\n for (int col = region.x; col < endCol - NUMPOINTSAVERAGED; col++) {\n int sumRows = 0;\n int minIntensity = maxItensity;\n for (int i = col; i < col + NUMPOINTSAVERAGED; i++) {\n sumRows += rows[i];\n minIntensity = java.lang.Math.min(minIntensity, intensities[i]);\n }\n data[col] = rows[col];\n dataAveraged[col] = java.lang.Math.round(sumRows / NUMPOINTSAVERAGED);\n minIntensities[col] = minIntensity;\n }\n\n for (int col = region.x; col < endCol - 2 * NUMPOINTSAVERAGED; col++) {\n splineCounter++;\n for (int row = region.y; row < endRow; row++) {\n if (row == data[col] && minIntensities[col] > INTENSITYTHRESHOLD * maxItensity) {\n // adds actual data\n xy.add((double) col, (double) convertYCoordToFreq(row));\n //System.out.println(\"adding data point (\" + col + \",\" + row + \")\");\n }\n\n if (row == dataAveraged[col] && minIntensities[col] > INTENSITYTHRESHOLD * maxItensity) {\n // adds averaged data\n //xy.add((double) col, (double) convertYCoordToFreq(row));\n //System.out.println(\"adding data point (\" + col + \",\" + row + \")\");\n if (splineCounter % SPLINEPRECISION == 0) {\n xySpline.add((double) (col + NUMPOINTSAVERAGED / 2), (double) convertYCoordToFreq(row));\n }\n }\n }\n }\n\n dataset.removeAllSeries();\n dataset.addSeries(xy);\n\n //XYSeriesCollection splineDataset = new XYSeriesCollection();\n dataset.addSeries(xySpline);\n\n JFreeChart chart = ChartFactory.createXYLineChart(\n //JFreeChart chart = ChartFactory.createScatterPlot(\n clip.getFileName(), \"Time (ms)\", \"Frequency (Hz)\", dataset, PlotOrientation.VERTICAL, true, true, false);\n XYPlot xyplot = (XYPlot) chart.getPlot();\n xyplot.setRenderer(new XYSplineRenderer());\n XYLineAndShapeRenderer xylineandshaperenderer = (XYLineAndShapeRenderer) xyplot.getRenderer();\n xylineandshaperenderer.setSeriesShape(0, new java.awt.Rectangle(1, 1, 1, 1));\n xylineandshaperenderer.setSeriesLinesVisible(0, false);\n xylineandshaperenderer.setSeriesShapesVisible(0, true);\n xylineandshaperenderer.setSeriesLinesVisible(1, false);\n xylineandshaperenderer.setSeriesShapesVisible(1, false);\n\n// ChartFrame frame = new ChartFrame(\"First\", chart);\n// frame.pack();\n// frame.setVisible(true);\n\n\n jCheckBox1.setEnabled(true);\n jCheckBox1.setSelected(true);\n\n jCheckBox2.setEnabled(true);\n jCheckBox2.setSelected(false);\n\n jSlider1.setEnabled(true);\n jSlider2.setEnabled(true);\n\n jTextField9.setText(clip.getFileName());\n\n chartPanel = new ChartPanel(chart);\n }", "private static JFreeChart createChart(String xaxisName) {\n JFreeChart chart = MimsChartFactory.createMimsXYLineChart(\"\", xaxisName, \"\", null, PlotOrientation.VERTICAL, true, true, false);\n chart.setBackgroundPaint(Color.white);\n // Get a reference to the plot.\n MimsXYPlot plot = (MimsXYPlot) chart.getPlot();\n\n // Create integer x-axis.\n plot.getDomainAxis().setStandardTickUnits(NumberAxis.createIntegerTickUnits());\n\n // Set colors.\n plot.setBackgroundPaint(Color.lightGray);\n plot.setDomainGridlinePaint(Color.white);\n plot.setRangeGridlinePaint(Color.white);\n\n // Movable range and domain.\n plot.setDomainPannable(true);\n plot.setRangePannable(true);\n\n // Allow crosshairs to 'focus' in on a given point.\n plot.setDomainCrosshairVisible(true);\n plot.setRangeCrosshairVisible(true);\n\n return chart;\n }", "public static void createGraph(String[] xAxisLabels, Rx_DataSet[] values, String xAxisTitle, String yAxisTitle) {\n AxisChart ac = GraphFunctions.createChart(xAxisLabels, values, xAxisTitle, yAxisTitle, 1, 0);\n new GraphWindow(ac).setVisible(true);\n }", "private Chart getChartFromParams(final PageParameters params) {\n String chartString;\n String themeString;\n Chart config;\n\n //If the showcase is started without any parameters\n //set the parameters to lineBasic and give us a line Chart\n if(params.getAllNamed().size() < 2){\n PageParameters temp = new PageParameters();\n temp.add(\"theme\", \"default\");\n temp.add(\"chart\", \"line\");\n setResponsePage(HomepageHighcharts.class, temp);\n config = new Chart(\"chart\", new BasicLineOptions(), null);\n return config;\n }\n\n themeString = params.getAllNamed().get(0).getValue();\n Theme theme = getThemeFromParams(themeString);\n chartString = params.getAllNamed().get(1).getValue();\n\n if(chartString == null) {\n config = new Chart(\"chart\", new BasicLineOptions(), theme);\n return config;\n }\n\n switch(chartString) {\n case \"basicBar\":\n config = new Chart(\"chart\", new BasicBarOptions(), theme);\n break;\n\n case \"splineWithSymbols\":\n config = new Chart(\"chart\", new SplineWithSymbolsOptions(), theme);\n break;\n\n case \"irregularIntervals\":\n config = new Chart(\"chart\", new TimeDataWithIrregularIntervalsOptions(), theme);\n break;\n\n case \"logarithmicAxis\":\n config = new Chart(\"chart\", new LogarithmicAxisOptions(), theme);\n break;\n\n case \"scatter\":\n config = new Chart(\"chart\", new ScatterPlotOptions(), theme);\n break;\n\n case \"area\":\n config = new Chart(\"chart\", new BasicAreaOptions(), theme);\n break;\n\n case \"areaWithNegativeValues\":\n config = new Chart(\"chart\", new AreaWithNegativeValuesOptions(), theme);\n break;\n\n case \"stackedAndGroupedColumn\":\n config = new Chart(\"chart\", new StackedAndGroupedColumnOptions(), theme);\n break;\n\n case \"combo\":\n config = new Chart(\"chart\", new ComboOptions(), theme);\n break;\n\n case \"donut\":\n config = new Chart(\"chart\", new DonutOptions(), theme);\n break;\n\n case \"withDataLabels\":\n config = new Chart(\"chart\", new LineWithDataLabelsOptions(), theme);\n break;\n\n case \"zoomableTimeSeries\":\n config = new Chart(\"chart\", new ZoomableTimeSeriesOptions(), theme);\n break;\n\n case \"splineInverted\":\n config = new Chart(\"chart\", new SplineWithInvertedAxisOptions(), theme);\n break;\n\n case \"splineWithPlotBands\":\n config = new Chart(\"chart\", new SplineWithPlotBandsOptions(), theme);\n break;\n\n case \"polar\":\n config = new Chart(\"chart\", new PolarOptions(), theme);\n break;\n\n case \"stackedArea\":\n config = new Chart(\"chart\", new StackedAreaOptions(), theme);\n break;\n\n case \"percentageArea\":\n config = new Chart(\"chart\", new PercentageAreaOptions(), theme);\n break;\n\n case \"areaMissing\":\n config = new Chart(\"chart\", new AreaMissingOptions(), theme);\n break;\n\n case \"areaInverted\":\n config = new Chart(\"chart\", new AreaInvertedAxisOptions(), theme);\n break;\n\n case \"areaSpline\":\n config = new Chart(\"chart\", new AreaSplineOptions(), theme);\n break;\n\n case \"areaSplineRange\":\n config = new Chart(\"chart\", new AreaSplineRangeOptions(), theme);\n break;\n\n case \"columnWithDrilldown\":\n config = new Chart(\"chart\", new ColumnWithDrilldownOptions(), theme);\n break;\n\n case \"columnRotated\":\n config = new Chart(\"chart\", new ColumnWithRotatedLabelsOptions(), theme);\n break;\n\n case \"stackedBar\":\n config = new Chart(\"chart\", new StackedBarOptions(), theme);\n break;\n\n case \"barNegativeStack\":\n config = new Chart(\"chart\", new StackedBarOptions(), theme);\n break;\n\n case \"basicColumn\":\n config = new Chart(\"chart\", new BasicColumnOptions(), theme);\n break;\n\n case \"columnWithNegativeValues\":\n config = new Chart(\"chart\", new ColumnWithNegativeValuesOptions(), theme);\n break;\n\n case \"stackedColumn\":\n config = new Chart(\"chart\", new StackedColumnOptions(), theme);\n break;\n\n case \"stackedPercentage\":\n config = new Chart(\"chart\", new StackedPercentageOptions(), theme);\n break;\n\n case \"basicPie\":\n config = new Chart(\"chart\", new BasicPieOptions(), theme);\n break;\n\n case \"pieWithGradient\":\n config = new Chart(\"chart\", new PieWithGradientOptions(), theme);\n break;\n\n case \"pieWithLegend\":\n config = new Chart(\"chart\", new PieWithLegendOptions(), theme);\n break;\n\n case \"splineUpdating\":\n config = new Chart(\"chart\", new WicketSplineUpdatingOptions(), theme);\n break;\n\n case \"bubble\":\n config = new Chart(\"chart\", new BubbleChartOptions(), theme);\n break;\n\n case \"3dbubble\":\n config = new Chart(\"chart\", new BubbleChart3DOptions(), theme);\n break;\n\n case \"boxplot\":\n config = new Chart(\"chart\", new BoxplotChartOptions(), theme);\n break;\n\n case \"interactive\":\n config = new Chart(\"chart\", new InteractionOptions(), theme);\n break;\n\n case \"angularGauge\":\n config = new Chart(\"chart\", new AngularGaugeOptions(), theme);\n break;\n\n case \"spiderweb\":\n config = new Chart(\"chart\", new SpiderwebOptions(), theme);\n break;\n\n case \"windrose\":\n config = new Chart(\"chart\", new WindroseOptions(), theme);\n break;\n\n case \"columnrange\":\n config = new Chart(\"chart\", new ColumnRangeOptions(), theme);\n break;\n\n case \"arearange\":\n config = new Chart(\"chart\", new AreaRangeOptions(), theme);\n break;\n\n case \"clicktoadd\":\n config = new Chart(\"chart\", new ClickToAddAPointOptions(), theme);\n break;\n\n case \"dualAxes\":\n config = new Chart(\"chart\", new DualAxesOptions(), theme);\n break;\n\n case \"scatterWithRegression\":\n config = new Chart(\"chart\", new ScatterWithRegressionLineOptions(), theme);\n break;\n\n case \"multipleAxes\":\n config = new Chart(\"chart\", new MultipleAxesOptions(), theme);\n break;\n\n case \"errorBar\":\n config = new Chart(\"chart\", new ErrorBarOptions(), theme);\n break;\n\n case \"funnel\":\n config = new Chart(\"chart\", new FunnelOptions(), theme);\n break;\n\n case \"pyramid\":\n config = new Chart(\"chart\", new PyramidOptions(), theme);\n break;\n\n case \"heatmap\":\n config = new Chart(\"chart\", new HeatmapOptions(), theme);\n break;\n\n default:\n config = new Chart(\"chart\", new BasicLineOptions(), theme);\n break;\n }\n return config;\n }", "private void populateCharts() {\n\t\tpopulatePieChart1();\n\t\tpopulatePieChart2();\n\t\tpopulateBarChart1();\n\t\tpopulateBarChart2();\n\t}", "public Container createInterface(){\n\t\tChartTypeInterface.setLayout(new GridLayout(4,2,20,20));\n\t\t\n\t\tMakePie();\n\t\tMakeXYSpline();\n\t\tMakeStacked();\n\t\tMakeScatter();\n\t\tMakeLine();\n\t\tMakeBubble();\n\t\tMakeBar();\n\t\tMakeBar3D();\n\t\t\t\t\t\n\t\treturn ChartTypeInterface;\n\t}", "public void createOscilloscopeData() {\n this.rmsSum = 0;\n int reactorFrequency = getReactorFrequency().intValue();\n int reactorAmplitude = getReactorAmplitude().intValue();\n double reactorPhase = getReactorPhase().doubleValue();\n int controlFrequency = getControlFrequency().intValue();\n int controlAmplitude = getControlAmplitude().intValue();\n double controlPhase = getControlPhase().doubleValue();\n XYChart.Series<Number, Number> dataSeriesOutput = new XYChart.Series<>();\n for (int i = 0; i < 40; i++) {\n createOscilloscopeDatapoint(dataSeriesOutput, reactorFrequency, reactorAmplitude, reactorPhase, \n controlFrequency, controlAmplitude, controlPhase, i);\n }\n dataSeriesOutput.setName(\"Reactor\" + number + \"OutputData\");\n this.outputData.addAll(dataSeriesOutput/*, dataSeriesReactor, dataSeriesControl */);\n \n \n if (this.online == true) {\n this.rms = Math.sqrt(this.rmsSum / 40);\n setOutputPower(100 - (this.rms));\n }\n }", "public Parent createBarGraph(ObservableList<HappinessReport> data) {\n xAxis = new CategoryAxis();\n xAxis.setLabel(\"Country\");\n //Yaxis Creation\n yAxis = new NumberAxis();\n yAxis.setLabel(\"Score\");\n //Chart Creation\n barchart = new BarChart<>(xAxis, yAxis);\n barchart.setTitle(\"Horizontal Bar Chart Example\");\n //Country and Score Data load into chart\n for (int intx = 0; intx < data.size(); intx++) {\n XYChart.Series barChartSeries = new XYChart.Series<>();\n barChartSeries.getData().add(new XYChart.Data(String.valueOf(data.get(intx).getCountry()), data.get(intx).getScore()));\n barchart.getData().add(barChartSeries);\n }\n barchart.setTitle(\"Horizontal Bar Chart Example\");\n barchart.setLegendVisible(false);\n return barchart;\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tchart = new ComboChart();\r\n\t\t\t\tpanel.add(chart);\r\n\t\t\t\tisReady = true;\r\n\t\t\t}", "private void createBarChart(FoodEmissions emissions, Context context) {\n ArrayList<BarEntry> barEntries = new ArrayList<>();\n ArrayList<String> labelNames = new ArrayList<>();\n labelNames.add(\"Meat\");\n labelNames.add(\"Dairy\");\n labelNames.add(\"Plant\");\n labelNames.add(\"Total\");\n barEntries.add(new BarEntry(0, Float.parseFloat(emissions.getMeat())));\n barEntries.add(new BarEntry(1, Float.parseFloat(emissions.getDairy())));\n barEntries.add(new BarEntry(2, Float.parseFloat(emissions.getPlant())));\n barEntries.add(new BarEntry(3, Float.parseFloat(emissions.getTotal())));\n LayoutInflater li = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n RelativeLayout relativeLayout = (RelativeLayout) li.inflate(R.layout.emission_chart_layout, null);\n BarChart chart = relativeLayout.findViewById(R.id.bar_chart);\n //Customization to the BarCharts look\n BarDataSet set = new BarDataSet(barEntries, \"CO2 Emissions (in Kg)\");\n set.setColors(ColorTemplate.COLORFUL_COLORS);\n set.setValueTextSize(20f);\n Description description = new Description();\n description.setText(\"\");\n chart.setDescription(description);\n BarData data = new BarData(set);\n chart.setData(data);\n Legend legend = chart.getLegend();\n legend.setTextSize(15f);\n XAxis xAxis = chart.getXAxis();\n xAxis.setValueFormatter(new IndexAxisValueFormatter(labelNames));\n xAxis.setPosition(XAxis.XAxisPosition.TOP);\n xAxis.setDrawGridLines(false);\n xAxis.setGranularity(1f);\n xAxis.setLabelCount(labelNames.size());\n AlertDialog builder = new AlertDialog.Builder(context)\n .setNegativeButton(\"Close\", null)\n .setView(relativeLayout)\n .setCancelable(false)\n .create();\n builder.show();\n }", "public Chart(double[][] result, double[][] observed){\n //Create a new Frame object\n final Frame f1 = new Frame(\"Model Fit\");\n\t//Set the Frame object size\t\n\tf1.setSize(600,400);\n //Add a window listener to the Frame to close it\n\tf1.addWindowListener(new WindowAdapter() {\n @Override\n\t\tpublic void windowClosing(WindowEvent we) {\n\t\t\tf1.dispose();\n\t\t}\n\t});\n \n //add in the code to create the chart\n //create a data object to hold the XY data\n DefaultXYDataset data = new DefaultXYDataset();\n //cycle through the origins\n for (int i = 0; i < observed.length; i++) {\n //create a two dimensional array to hold the observed and result\n double dataArray[][] = new double[2][observed[i].length];\n //put the observed data in element 0\n dataArray[0]=observed[i];\n //put the result data in element 1\n dataArray[1]=result[i];\n //add the data series with a unique name\n data.addSeries(\"Origin \"+i, dataArray);\n }\n\t//Create the chart with the correct title and axis names and data etc.\n\tJFreeChart chart = ChartFactory.createScatterPlot(\"Observed vs. Results\", \n\t\t\"Observed\", // x axis label\n\t\t\"Results\", // y axis label\n\t\tdata, // data\n\t\tPlotOrientation.VERTICAL, // orientation\n\t\ttrue, // legend\n\t\ttrue, // tooltips\n\t\tfalse // URLs\n\t);\n\t//get the plot area and format it to the desired colours\n\tXYPlot plot = (XYPlot) chart.getPlot();\n\tplot.setBackgroundPaint(Color.white);\n\tplot.setDomainGridlinePaint(Color.darkGray);\n\tplot.setDomainGridlinesVisible(true);\n\tplot.setRangeGridlinePaint(Color.black);\n\t\n\t// We're going to add some regression stuff here shortly.\n double[] coeffs = Regression.getOLSRegression(createTwoDArray(result, observed));\n\tLineFunction2D linefunction2d = new LineFunction2D(coeffs[0], coeffs[1]);\n\tXYDataset series2 = DatasetUtilities.sampleFunction2D(linefunction2d, 10, 50, 5, \"Linear Regression Line\");\n\tplot.setDataset(2, series2); \n\tXYLineAndShapeRenderer lineDrawer = new XYLineAndShapeRenderer(true, false);\n\tlineDrawer.setSeriesPaint(0, Color.BLACK);\n\tplot.setRenderer(2, lineDrawer);\n\t\n //create a chart panel to render to the screnn\n\tChartPanel chartPanel = new ChartPanel(chart);\n //add the chart panel to the frame\n\tf1.add(chartPanel);\n //set the frame to be visible\n\tf1.setVisible(true);\n }", "JFreeChart generateBox();" ]
[ "0.781668", "0.709774", "0.6969244", "0.6845623", "0.6842807", "0.681524", "0.6760003", "0.6757202", "0.6645447", "0.6630971", "0.6617191", "0.66092944", "0.65602964", "0.65327734", "0.65129846", "0.64764893", "0.6463931", "0.6453258", "0.64017755", "0.63640183", "0.636145", "0.63491964", "0.63414294", "0.63340026", "0.6332615", "0.62979126", "0.62944734", "0.6274867", "0.62569183", "0.62400824", "0.62383175", "0.6212696", "0.6186008", "0.61796856", "0.6110799", "0.6083524", "0.60726035", "0.6070702", "0.6050131", "0.6046739", "0.6029981", "0.6016818", "0.6005662", "0.5989599", "0.59849006", "0.5967244", "0.5963089", "0.5951858", "0.594824", "0.594142", "0.59279287", "0.59268945", "0.59151006", "0.59055924", "0.588425", "0.58831143", "0.5875641", "0.58700895", "0.58559716", "0.58558124", "0.58551395", "0.58455735", "0.5838885", "0.5831374", "0.5825224", "0.58216447", "0.5803162", "0.5788676", "0.5777105", "0.575649", "0.57558125", "0.57540375", "0.575212", "0.5746618", "0.57389605", "0.5733347", "0.5728545", "0.5721633", "0.56998414", "0.5699593", "0.5688954", "0.5679205", "0.56789196", "0.5672244", "0.567095", "0.5663065", "0.5645411", "0.56416345", "0.5625687", "0.561996", "0.56117165", "0.56116265", "0.5607778", "0.56031644", "0.56006986", "0.5596868", "0.55879784", "0.55821955", "0.5577173", "0.55689555", "0.55603176" ]
0.0
-1
Creates a panel for the demo (used by SuperDemo.java).
public static JPanel createDemoPanel() { JFreeChart chart = createChart(createDataset()); ChartPanel panel = new ChartPanel(chart); panel.setMouseWheelEnabled(true); return panel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }", "public DemoPanel() {\n }", "protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}", "public ExamplePanel() {\n\t\tinitWidget(uiBinder.createAndBindUi(this));\n\t\tsetWidgetToMaxWidthAndHeight();\n\t\tWindow.addResizeHandler(resizeHandler);\n\t\tintroPanel = new IntroPanel();\n\t\tsetWidgetAsExample(introPanel);\n\t}", "public ExamplePanel (){\n initWidget(uiBinder.createAndBindUi(this));\n setWidgetToMaxWidthAndHeight();\n Window.addResizeHandler(resizeHandler);\n introPanel = new IntroPanel();\n setWidgetAsExample(introPanel);\n }", "void addPanel() {\n \tPanel panel = new Panel();\r\n\r\n panel.setLayout(new GridLayout(4, 1));\r\n jSliderBrightness = makeTitledSilder(\"Helligkeit\", 0, 256, 128); // werte veraendert\r\n jSliderContrast = makeTitledSilder(\"Kontrast\", 0, 10, 5);\r\n jSliderSaturation = makeTitledSilder(\"Sättigung\", 0, 9, 4);\r\n jSliderHue = makeTitledSilder(\"Hue\", 0, 360, 0);\r\n //jSliderContrast = makeTitledSilder(\"Slider2-Wert\", 0, 100, 50);\r\n panel.add(jSliderBrightness);\r\n panel.add(jSliderContrast);\r\n panel.add(jSliderSaturation);\r\n panel.add(jSliderHue);\r\n \r\n add(panel);\r\n \r\n pack();\r\n }", "@Override\n public void setupPanel()\n {\n\n }", "public Parent creatPanel() {\r\n\t\t\r\n\t\thlavniPanel = new BorderPane();\r\n\t\thlavniPanel.setCenter(creatGameDesk());\r\n\t\thlavniPanel.setTop(createMenuBar());\r\n\t\t\r\n\t\thlavniPanel.setBackground(new Background(new BackgroundFill(Color.BURLYWOOD, CornerRadii.EMPTY, Insets.EMPTY)));\r\n\t\thlavniPanel.setPadding(new Insets(8));\r\n\t\treturn hlavniPanel;\r\n\t}", "public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}", "final JPanel createMainPanel() {\r\n\r\n logger.entering(this.getClass().getName(), \"createMainPanel\");\r\n\r\n this.pnlMain = new JPanel();\r\n\r\n this.pnlMain.setLayout(new BorderLayout());\r\n\r\n this.pnlMain.add(new JLabel(\r\n \"Select the MicroSensorDataTypes that shall be filtered out\"),\r\n BorderLayout.NORTH);\r\n\r\n this.pnlMain.add(createCheckBoxPanel(), BorderLayout.CENTER);\r\n\r\n this.pnlMain.add(getButtonPanel(), BorderLayout.SOUTH);\r\n\r\n logger.exiting(this.getClass().getName(), \"createMainPanel\",\r\n this.pnlMain);\r\n\r\n return this.pnlMain;\r\n }", "private HelloPanel() {\n\n\t\tHTML w = new HTML(BalasResources.INSTANCE.helloPane().getText());\n\t\tinitWidget(w);\n\t}", "private Panel designPanel() {\n Panel panel = new Panel();\n contentLayout = new FormLayout();\n wrapperLayout = new VerticalLayout();\n numberOfDatasetsBox = new ComboBox<>();\n numberOfReplicatesBox = new ComboBox<>(\"Select number of Replicates\");\n\n\n List<Integer> possibleDatasetNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfDatasetsBox.setItems(possibleDatasetNumber);\n\n List<Integer> possibleReplicateNumber =\n IntStream.rangeClosed(1, 100).boxed().collect(Collectors.toList());\n numberOfReplicatesBox.setItems(possibleReplicateNumber);\n\n datasetAccordion = new Accordion();\n datasetAccordion.setWidth(\"100%\");\n\n panel.setContent(wrapperLayout);\n return panel;\n }", "public void setupPanel() {\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new ModifiedFlowLayout(FlowLayout.LEFT));\n\t\tpanel.setBackground(Color.BLACK);\n\t\tpanel.setOpaque(true);\n\t}", "private void createPanel() {\n JPanel panel = new JPanel();\n \n for(int i = 0; i < button.size(); i++){\n panel.add(button.get(i));\n }\n panel.add(label);\n \n add(panel);\n }", "public PrintsPanel() {\n initComponents();\n createPanels();\n\n }", "private void initPanel() {\n\t\tthis.panel = new JPanel();\n\t\tthis.panel.setBounds(5, 5, 130, 20);\n\t\tthis.panel.setLayout(null); \n\n\t}", "private void createpanel1() {\r\n\t\theader = new JLabel();\r\n\t\theader.setText(\"Type in Userinformation\");\r\n\t\theader.setFont(customFont.deriveFont(25f));\r\n\t\theader.setForeground(Color.WHITE);\r\n\r\n\t\tpanels[0].add(header);\r\n\t\tpanels[0].setOpaque(false);\r\n\t\tallComponents.add(panels[0]);\r\n\r\n\t}", "public static JPanel newPanel() {\n\t\treturn null;\n\t}", "private JPanel makePanel()\n {\n JPanel mainPanel = new JPanel();\n mainPanel.add(myLoginPanel);\n\n return mainPanel;\n }", "protected Panel createButtonPanel() {\n Panel panel = new Panel();\n panel.setLayout(new PaletteLayout(2, new Point(2,2), false));\n return panel;\n }", "public JavaPanel() {\n\t\tsuper();\n\t}", "public NewJPanel() {\n initComponents();\n }", "public NewJPanel() {\n initComponents();\n }", "public abstract void createContents(Panel mainPanel);", "private void createManualJPanel() {\r\n createJPanelWithManual();\r\n JFrame frame = new JFrame();\r\n customizeFrame(frame);\r\n }", "@Override\r\n public void setup(Panel panel) {\n }", "public Panel() {\n initComponents();\n\n\n }", "public Panel() {\n }", "private void initPanels() {\r\n\t\r\n\tpanel = new JPanel();\r\n\tpanel.setBounds(0, 0, ScreenSize.WIDTH + 25, ScreenSize.HEIGHT + 50);\r\n\tpanel.setLayout(new BorderLayout());\r\n\tpanel.addComponentListener(this);\r\n\r\n\tbord = new BordPanel();\r\n\tbord.setBounds(0 ,0 ,ScreenSize.WIDTH, ScreenSize.HEIGHT);\r\n\tbord.setOpaque(true);\r\n\r\n\tlabel = new JLabel();\r\n\tlabel.setText(\"Text\");\r\n\r\n\tpanel.add(label, BorderLayout.SOUTH);\r\n\tpanel.add(bord, BorderLayout.CENTER);\r\n\t\r\n\tframe.add(panel);\r\n }", "public void testOnePanel() {\n\t\t// Instantiate nested panels\n\t\tRasterFileTestPlotPanel parent =\n\t\t\tnew RasterFileTestPlotPanel(TEST_DIR);\n\t\t\n\t\t// Add background widgets to panel such that\n\t\t// they are top aligned and non-overlapping\n\t\tparent.add(new Background(WIDTH, HEIGHT, COLOR_1), true);\n\t\tparent.add(new Background(WIDTH, HEIGHT, COLOR_2),\n\t\t\t\tHorizontalAlignment.RIGHT_OF,\n\t\t\t\tVerticalAlignment.TOP_JUSTIFIED);\n\t\t\n\t\t// Output graphics to file\n\t\tparent.toPngFile(\"one-panel.png\");\n\t}", "public CreateNewEventJPanel() {\n }", "public JPanel menuPanel() {\n\t\tJPanel mpanel = new JPanel(null);\n\t\tmpanel.setBounds(0, 100, 700, 300);\n\t\tmpanel.setBackground(Color.PINK);\n\t\tFont lblfont = new Font(\"SansSerif\", Font.BOLD, 30);\n\t\t\n\t\tworkerBtn = new JButton(workerpic);\n\t\tvisitorBtn = new JButton(visitorpic);\n\t\tworkerBtn.addActionListener(this);\n\t\tvisitorBtn.addActionListener(this);\n\t\tvisitorBtn.setBounds(100, 50, 150, 200);\n\t\tworkerBtn.setBounds(450, 50, 150, 200);\n\t\t\n\t\tlblworker.setBounds(450, 0, 150, 50);\n\t\tlblvisitor.setBounds(100, 0, 150, 50);\n\t\tlblworker.setHorizontalAlignment(JLabel.CENTER);\n\t\tlblvisitor.setHorizontalAlignment(JLabel.CENTER);\n\t\tlblworker.setFont(lblfont);\n\t\tlblvisitor.setFont(lblfont);\n\t\tmpanel.add(lblworker);\n\t\tmpanel.add(lblvisitor);\n\t\tmpanel.add(visitorBtn);\n\t\tmpanel.add(workerBtn);\n\t\treturn mpanel;\n\t}", "private void setUpPanel() {\n this.panel = new JPanel();\n functions = new JPanel();\n panel.setPreferredSize(new Dimension(Screen.screenWidth, Screen.screenHeight));\n\n int borderBottom = Screen.screenHeight / 8;\n if (Screen.screenHeight > 1400) {\n borderBottom = Screen.screenHeight / 7;\n }\n\n panel.setBorder(BorderFactory.createEmptyBorder(80, Screen.border, borderBottom, Screen.border));\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n functions.setPreferredSize(new Dimension(600, 500));\n functions.setLayout(cardLayout);\n }", "public AboutPanel() {\n super();\n initialize();\n }", "JPanel guiPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new BorderLayout());\n tabbedPane = new JTabbedPane();\n tabbedPane.addTab(\"Light\", lightPanel());\n tabbedPane.addTab(\"Background\", backgroundPanel());\n tabbedPane.addTab(\"Fog\", fogPanel());\n tabbedPane.addTab(\"Sound\", soundPanel());\n panel.add(\"Center\", tabbedPane);\n\n panel.add(\"South\", configPanel());\n return panel;\n }", "public JPanel titlePanel() {\n\t\tJPanel tpanel = new JPanel(null);\n\t\ttpanel.setBounds(0, 0, 700, 100);\n\t\ttpanel.setBackground(Color.PINK);\n\t\ttitle.setFont(new Font(\"SansSerif\", Font.BOLD, 50));\n\t\ttitle.setBounds(150, 0, 400, 100);\n\t\ttitle.setHorizontalAlignment(JLabel.CENTER);\n\t\ttpanel.add(title);\n\t\treturn tpanel;\n\t}", "public PanelAmigo() {\n initComponents();\n \n }", "public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, 120dlu:grow\", // cols //$NON-NLS-1$\n\t\t\t\t\"p, 3dlu,p,3dlu,p\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tbuilder.append(Messages.getString(\"RenameDialog.CurrentName\"), oldName); //$NON-NLS-1$\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(Messages.getString(\"RenameDialog.NewName\"), newName); //$NON-NLS-1$\n\t\treturn builder.getPanel();\n\t}", "private JPanel createPanel(String title) {\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new GridLayout(0, 1));\n\t\tpanel.setBorder(new TitledBorder(new EtchedBorder(), title));\n\t\treturn panel;\n\t}", "public DrawPanel() {\n initComponents();\n }", "private Component doInit() {\n\t\tJXPanel panel = new JXPanel();\n\t\tpanel.setLayout(new BorderLayout());\n\n\t\t// create a label\n\t\tfinal JXLabel label = new JXLabel();\n\t\tlabel.setFont(new Font(\"Segoe UI\", Font.BOLD, 14));\n\t\tlabel.setText(\"task pane item 1 : a label\");\n\t\tlabel.setIcon(Images.NetworkDisconnected.getIcon(32, 32));\n\t\tlabel.setHorizontalAlignment(JXLabel.LEFT);\n\t\tlabel.setBackgroundPainter(getPainter());\n\n\t\t// tweak with the UI defaults for the taskpane and taskpanecontainer\n\t\tchangeUIdefaults();\n\n\t\t// create a taskpanecontainer\n\t\tJXTaskPaneContainer taskpanecontainer = new JXTaskPaneContainer();\n\n\t\t// create a taskpane, and set it's title and icon\n\t\tJXTaskPane taskpane = new JXTaskPane();\n\t\ttaskpane.setTitle(\"My Tasks\");\n\t\ttaskpane.setIcon(Images.Quit.getIcon(24, 24));\n\n\t\t// add various actions and components to the taskpane\n\t\ttaskpane.add(label);\n\t\ttaskpane.add(new AbstractAction() {\n\t\t\tprivate static final long serialVersionUID = -7314920635669764914L;\n\t\t\t{\n\t\t\t\tputValue(Action.NAME, \"task pane item 2 : an action\");\n\t\t\t\tputValue(Action.SHORT_DESCRIPTION, \"perform an action\");\n\t\t\t\tputValue(Action.SMALL_ICON,\n\t\t\t\t\t\tImages.NetworkConnected.getIcon(32, 32));\n\t\t\t}\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlabel.setText(\"an action performed\");\n\t\t\t}\n\t\t});\n\n\t\t// add the task pane to the taskpanecontainer\n\t\ttaskpanecontainer.add(taskpane);\n\n\t\t// set the transparency of the JXPanel to 50% transparent\n\t\tpanel.setAlpha(0.7f);\n\n\t\tpanel.add(taskpanecontainer, BorderLayout.CENTER);\n\t\tpanel.setPreferredSize(new Dimension(250, 200));\n\n\t\treturn panel;\n\t}", "private JPanel createScrollPaneDemonstrations() {\n\n JPanel panelScroll = new JPanel(new GridLayout());\n panelScroll.setBorder(BorderFactory.createTitledBorder(PADDING_BORDER,\n \"Select the desired demonstrations:\", TitledBorder.LEFT, TitledBorder.TOP));\n modelDemonstration = new ModelTableDemonstrationsList(demonstrationsList);\n demonstrationsListJTable = new JTable(modelDemonstration);\n demonstrationsListJTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n demonstrationsListJTable.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n //demonstrationApplicationController.newDemonstrationApplication(((Demonstration)modelDemonstration.getValueAt(demonstrationsListJTable.getSelectedRow(), demonstrationsListJTable.getSelectedColumn())));\n }\n });\n\n JScrollPane scrollPane = new JScrollPane(demonstrationsListJTable);\n scrollPane.setBorder(PADDING_BORDER);\n\n panelScroll.setMinimumSize(scrollPane.getMinimumSize());\n panelScroll.add(scrollPane);\n\n return panelScroll;\n }", "public static JPanel createDemoPanel(String total, String avild, String title) {\n double dtotal;\n double davild;\n dtotal = Double.parseDouble(total);\n davild = Double.parseDouble(avild);\n JFreeChart chart = createChart(createDataset(dtotal, davild), title);\n return new ChartPanel(chart);\n }", "private void setPanel()\r\n\t{\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.setLayout(new GridLayout(5, 2));\r\n\t\t\r\n\t\tpanel.add(bubbleL);\r\n\t\tpanel.add(bubblePB);\r\n\t\t\r\n\t\tpanel.add(insertionL);\r\n\t\tpanel.add(insertionPB);\r\n\t\t\r\n\t\tpanel.add(mergeL);\r\n\t\tpanel.add(mergePB);\r\n\t\t\r\n\t\tpanel.add(quickL);\r\n\t\tpanel.add(quickPB);\r\n\t\t\r\n\t\tpanel.add(radixL);\r\n\t\tpanel.add(radixPB);\r\n\t}", "private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tthis.add(firstButton);\n\t\tthis.add(firstField);\n\t}", "private static void createAndShowUI(){\n JFrame frame = new JFrame(\"TargetTest\");\n TargetTest test = new TargetTest();\n frame.setLayout(new FlowLayout());\n frame.getContentPane().add(test.getMainPanel());\n //frame.getContentPane().add(test.getControlsPanel());\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n frame.pack();\n\n frame.setLocationRelativeTo(null);\n\n frame.setVisible(true);\n}", "private void setUpPanel() {\n\n this.add(nameLabel);\n this.add(showMetadataButton);\n this.add(compressFilesButton);\n this.add(decompressFilesButton);\n this.add(compressionResultLabel);\n this.add(messageShorteningButton);\n this.add(messageShorteningResultLabel);\n }", "private Panel createMessagePanel()\n {\n Panel messagePanel;\n Label product;\n Label version;\n Label copyright;\n\n product = new Label(\"File System Archiver\");\n version = new Label(\"Version \" + Constants.CLIENT_VERSION);\n copyright = new Label(\"Copyright (c) 2001\");\n\n messagePanel = new Panel();\n messagePanel.setLayout(new GridLayout(3, 0));\n\n messagePanel.add(product);\n messagePanel.add(version);\n messagePanel.add(copyright);\n\n messagePanel.setVisible(true);\n\n return messagePanel;\n }", "private Component buildMainPanel() {\r\n \tDPanel mainPanel = new DPanel();\r\n \tJLabel backGroundLabel = new JLabel(ImageUtil.getImageIcon(\"happycow.jpg\"));\r\n \tmainPanel.add(backGroundLabel);\r\n \tsetCurrentContentPane(mainPanel);\r\n \thome = mainPanel;\r\n return home;\r\n }", "public JPanel buildPanel() {\n\t\tsetLayout(new BorderLayout());\n\t\tsetBackground(ClientConstants.LIGHT_YELLOW);\n\t\tJLabel graphPlotLabel = new JLabel(ClientConstants.GRAPH_PLOT, JLabel.CENTER);\n\t\tgraphPlotLabel.setFont(ClientConstants.TEXT_FONT);\n\t\tadd(graphPlotLabel, BorderLayout.NORTH);\n\t\tsetLayout(new BorderLayout());\n\t\taffectiveGraphPlot = new AffectivePlot();\n\t\tClientDataSingleton.getInstance().setAffectivePlot(affectiveGraphPlot);\n\t\taffectiveGraphPlot.setBackground(Color.WHITE);\n\t\tadd(affectiveGraphPlot);\n\t\treturn this;\n\t}", "void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }", "private void setupPanels() {\n\t\tsplitPanel.addEast(east, Window.getClientWidth() / 5);\n\t\tsplitPanel.add(battleMatCanvasPanel);\n\t\tpanelsSetup = true;\n\t}", "public MainMenuPanel() {\n\t\tinitComponents();\n\t}", "private void createHeaderPanel()\n\t{\n\t\theaderPanel.setLayout (new GridLayout(2,1));\n\t\theaderPanel.add(textPanel);\n\t\theaderPanel.add(functionPanel);\n\t\t\t\t\t\n\t}", "public AboutPanel_V2() {\n init();\n }", "private void createBottomPanel() {\n humanPaquetView = new ViewDeckVisible(false);\n this.getContentPane().add(humanPaquetView);\n }", "private JPanel createMusicPanel() {\n\t\tJPanel musicPanel = new JPanel();\n\t\tmusicPanel.setLayout(new BorderLayout());\n\t\tmusicPanel.setBorder(new EmptyBorder(10, 10, 10, 10));\n\n\t\tJPanel musicTitlePanel = new JPanel();\n\t\tmusicTitlePanel.setLayout(new BorderLayout());\n\t\tJLabel music = new JLabel(\"Music\");\n\t\tmusicTitlePanel.add(music, BorderLayout.WEST);\n\t\tmusicComboBox = new JComboBox(musicCBContent);\n\t\tmusicComboBox.setName(\"musicComboBox\");\n\t\tmusicTitlePanel.add(musicComboBox, BorderLayout.EAST);\n\t\tmusicPanel.add(musicTitlePanel, BorderLayout.NORTH);\n\n\t\tmusicContents = new JPanel();\n\t\tmusicContents.setLayout(new FlowLayout());\n\t\tmusicPanel.add(createJScrollPane(musicContents), BorderLayout.CENTER);\n\n\t\treturn musicPanel;\n\t}", "private void constructTitlePanel() {\n titlePanel = new JPanel();\n titlePanel.setPreferredSize(relativeSize(0.8f, 0.03f));\n \n JLabel titleLabel = new JLabel(\"JMarkets Server Interface\");\n titleLabel.setFont(new Font(\"Arial\", Font.BOLD, 18));\n titleLabel.setForeground(new Color(102, 51, 0));\n \n titlePanel.add(titleLabel);\n }", "public JPanel createSouthPanel() {\n\t\tsouth = new JPanel(new GridLayout(1, 1));\n\t\t// adds start button and its functionality\n\t\tstartGame();\n\t\treturn south;\n\t}", "public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }", "public ComandaPanel() {\n\n initComponents();\n // comanda = new Comanda();\n }", "@Override\n\tpublic JPanel createContentPane() {\n\t\t// Fabriken holen\n\t\tGridBagConstraintsFactory gbcf = GridBagConstraintsFactory.getInstance();\n\t\tWidgetFactory wf = WidgetFactory.getInstance();\n\t\t// Widgets erzeugen\n\t\tJPanel panel = wf.getContentPane(\"MainFrame\", true);\n\t\tpanel.add(createPanelStoredServices(), gbcf.getTableConstraints(0, 1, 1, 1));\n\t\tpanel.add(createPanelEditService(), gbcf.getTableConstraints(0, 2, 1, 1));\n\t\treturn panel;\n\t}", "@Override protected JComponent setupPanel()\t{ return null; }", "public Panel(LayoutManager paramLayoutManager)\n/* */ {\n/* 65 */ setLayout(paramLayoutManager);\n/* */ }", "public AboutUsPanel() {\n initComponents();\n }", "public MenuPanel() {\n initComponents();\n }", "private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tqueryButton = new JButton(\"query\");\n\t\tthis.add(queryButton);\n\t\tthis.add(displayPane);\n\t\tdisplayArea = new JTextArea(10,30);\n\t\tadd(displayArea);\n\t\t\n\t\t\n\t}", "private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n JFrame frame = new JFrame(\"TablePanel\");\n JPanel contentP = new JPanel();\n Box v = Box.createVerticalBox();\n Box h = Box.createHorizontalBox();\n Box h2 = Box.createHorizontalBox();\n TablePanel tablePanel = new TablePanel();\n tablePanel.setOpaque(true); //content panes must be opaque\n\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setContentPane(contentP);\n contentP.add(tablePanel);\n contentP.add(v);\n v.add(h);\n v.add(h2);\n\n h.add(tablePanel);\n h2.add(new JButton(\"Hello\"));\n //Display the window.\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n }", "private void addPanels() {\n\t\tthis.add(dicePanel, BorderLayout.WEST);\n\t\tthis.add(inputPanel, BorderLayout.CENTER);\n\t\tthis.add(infoPanel, BorderLayout.SOUTH);\n\t}", "public TitlePanel() {\n\t\tinitComponents();\n\t}", "private void addGraphPanel() {\n // Starting\n String S = C + \": addGraphPanel(): \";\n graphPanel.drawGraphPanel(xAxisName,yAxisName,functionList,xLog,yLog,customAxis,TITLE,buttonControlPanel);\n togglePlot();\n }", "public ControlPanel() {\n\t\tpanelName = null;\n\t}", "private void createGUI() {\n ResizeGifPanel newContentPane = new ResizeGifPanel();\n newContentPane.setOpaque(true); \n setContentPane(newContentPane); \n }", "private void constructMainPanel() {\n // initialize the main panel\n mainPanel = new JPanel();\n mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\n mainPanel.setPreferredSize(new Dimension(model.getWidth() + 50,\n model.getHeight() + 240));\n JScrollPane mainPane = new JScrollPane(mainPanel, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,\n ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n this.add(mainPane);\n\n }", "private void createTopPanel(){\n computerPaquetView = new ViewDeckVisible(true);\n this.getContentPane().add(computerPaquetView);\n }", "private void createContent(final Container container) {\n this.mainPanel = new MainPanel();\n this.mainPanel.setName(\"mainPanel\"); // Fest\n\n if (container != null) {\n // adds the main panel\n container.add(this.mainPanel, BorderLayout.CENTER);\n\n // Handle status bar\n container.add(StatusBar.getInstance(), BorderLayout.SOUTH);\n }\n }", "public JPanel createHeroList()\n\t{\t\n\t\t//create heroPanel\n\t\tJPanel heroPanel = new JPanel();\n\t\t//set the layout\n\t\theroPanel.setLayout(new GridLayout(3,1));\n\t\t//create the font for the panel and the labels\n\t\tFont heroFont = new Font(\"Comic Sans MS\",Font.BOLD,16);\n\t\t\n\t\t//create colorButton\n\t\tcolorButton = new JButton(\"Choose the Color\");\n\t\t//set font\n\t\tcolorButton.setFont(heroFont);\n\t\t//add the button to the panel\n\t\theroPanel.add(colorButton);\n\t\tcolorButton.setForeground(Color.ORANGE);\n\t\tcolorButton.setBackground(Color.BLACK);\n\t\tcolorButton.setOpaque(true);\n\t\t//implement action listener\n\t\tcolorButton.addActionListener(this);\n\t\t\n\t\t//create intro Label\n\t\tintroLabel = new JLabel(\"Super Hero Twenty Questions!!!\");\n\t\t//set the font\n\t\tintroLabel.setFont(heroFont);\n\t\tintroLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tintroLabel.setForeground(Color.ORANGE);\n\t\tintroLabel.setBackground(Color.BLACK);\n\t\tintroLabel.setOpaque(true);\n\t\t//add to the panel\n\t\theroPanel.add(introLabel);\n\t\t\n\t\t//create hero label and pick your favorite super hero\n\t\theroLabel = new JLabel(\"Choose your Favorite Super Hero!!!\");\n\t\t//set horizontal alignment\n\t\theroLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\theroLabel.setForeground(Color.ORANGE);\n\t\theroLabel.setBackground(Color.BLACK);\n\t\theroLabel.setOpaque(true);\n\t\theroLabel.setFont(heroFont);\n\t\t//add the label ot panel\n\t\theroPanel.add(heroLabel);\n\t\t//return Panel\n\t\treturn heroPanel;\n\t}", "public Panel()\n/* */ {\n/* 56 */ this(new FlowLayout());\n/* */ }", "private JPanel buildContentPane(){\t\n\t\tinitialiseElements();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new FlowLayout());\n\t\tpanel.setBackground(Color.lightGray);\n\t\tpanel.add(scroll);\n\t\tpanel.add(bouton);\n\t\tpanel.add(bouton2);\n\t\treturn panel;\n\t}", "public LocalPanel() {\r\n\t\tinitComponents();\r\n\t}", "public AppoinmentPanel() {\n initComponents();\n }", "public JComponent createTopPanel() {\n\n\t//\tcontent();\n\t\tfields = new JTextField[NBR_FIELDS];\n\t\tmyTable = new PalletTable(db);\n\t\ttable = new JTable(myTable);\n\t\ttable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\t\ttable.setPreferredScrollableViewportSize(new Dimension(750, 100));\n table.setFillsViewportHeight(true);\n\t\tscroll = new JScrollPane(table);\n\t//\tcontent();\n\t\tmainPanel= new JPanel();\n\t\tmainPanel.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\tc.gridy=0;\n\t\tmainPanel.add(scroll,c);\n\t\tc.gridy=1;\n\t\tmainPanel.add(content(),c);\n\t\t//scroll.setPreferredSize(new Dimension(300,250));\n\t\treturn mainPanel;\n\t}", "public void createContentPane() {\n\t\tLOG.log(\"Creating the content panel.\");\n\t\tCONTENT_PANE = new JPanel();\n\t\tCONTENT_PANE.setBorder(null);\n\t\tCONTENT_PANE.setLayout(new BorderLayout());\n\t}", "private JPanel createCanvas() {\n return new JPanel() {\n\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n element.drawMe((Graphics2D) g);\n }\n\n };\n }", "private void createPanelContent() {\n FragmentActivity activity = getActivity();\n if (this.mLayoutView == null) {\n activity.finish();\n }\n ViewGroup.LayoutParams layoutParams = this.mLayoutView.getLayoutParams();\n layoutParams.height = -2;\n this.mLayoutView.setLayoutParams(layoutParams);\n this.mPanelSlices = (RecyclerView) this.mLayoutView.findViewById(C0010R$id.panel_parent_layout);\n this.mSeeMoreButton = (TextView) this.mLayoutView.findViewById(C0010R$id.see_more);\n this.mDoneButton = (TextView) this.mLayoutView.findViewById(C0010R$id.done);\n this.mTitleView = (TextView) this.mLayoutView.findViewById(C0010R$id.panel_title);\n this.mPanelHeader = (LinearLayout) this.mLayoutView.findViewById(C0010R$id.panel_header);\n this.mTitleIcon = (ImageView) this.mLayoutView.findViewById(C0010R$id.title_icon);\n this.mHeaderTitle = (TextView) this.mLayoutView.findViewById(C0010R$id.header_title);\n this.mHeaderSubtitle = (TextView) this.mLayoutView.findViewById(C0010R$id.header_subtitle);\n this.mFooterDivider = this.mLayoutView.findViewById(C0010R$id.footer_divider);\n this.mPanelSlices.setVisibility(8);\n Bundle arguments = getArguments();\n String string = arguments.getString(\"PANEL_CALLING_PACKAGE_NAME\");\n PanelContent panel = FeatureFactory.getFactory(activity).getPanelFeatureProvider().getPanel(activity, arguments);\n this.mPanel = panel;\n if (panel == null) {\n activity.finish();\n }\n this.mPanel.registerCallback(new LocalPanelCallback());\n if (this.mPanel instanceof LifecycleObserver) {\n getLifecycle().addObserver((LifecycleObserver) this.mPanel);\n }\n this.mMetricsProvider = FeatureFactory.getFactory(activity).getMetricsFeatureProvider();\n this.mPanelSlices.setLayoutManager(new LinearLayoutManager(activity));\n this.mLayoutView.getViewTreeObserver().addOnPreDrawListener(this.mOnPreDrawListener);\n loadAllSlices();\n IconCompat icon = this.mPanel.getIcon();\n CharSequence title = this.mPanel.getTitle();\n if (icon == null) {\n this.mTitleView.setVisibility(0);\n this.mPanelHeader.setVisibility(8);\n this.mTitleView.setText(title);\n } else {\n this.mTitleView.setVisibility(8);\n this.mPanelHeader.setVisibility(0);\n this.mPanelHeader.setAccessibilityPaneTitle(title);\n this.mTitleIcon.setImageIcon(icon.toIcon(getContext()));\n this.mHeaderTitle.setText(title);\n this.mHeaderSubtitle.setText(this.mPanel.getSubTitle());\n if (this.mPanel.getHeaderIconIntent() != null) {\n this.mTitleIcon.setOnClickListener(getHeaderIconListener());\n this.mTitleIcon.setLayoutParams(new LinearLayout.LayoutParams(-2, -2));\n } else {\n int dimensionPixelSize = getResources().getDimensionPixelSize(C0007R$dimen.output_switcher_panel_icon_size);\n this.mTitleIcon.setLayoutParams(new LinearLayout.LayoutParams(dimensionPixelSize, dimensionPixelSize));\n }\n }\n if (this.mPanel.getViewType() == 2) {\n this.mFooterDivider.setVisibility(0);\n } else {\n this.mFooterDivider.setVisibility(8);\n }\n this.mSeeMoreButton.setOnClickListener(getSeeMoreListener());\n this.mDoneButton.setOnClickListener(getCloseListener());\n if (this.mPanel.isCustomizedButtonUsed()) {\n CharSequence customizedButtonTitle = this.mPanel.getCustomizedButtonTitle();\n if (TextUtils.isEmpty(customizedButtonTitle)) {\n this.mSeeMoreButton.setVisibility(8);\n } else {\n this.mSeeMoreButton.setVisibility(0);\n this.mSeeMoreButton.setText(customizedButtonTitle);\n }\n } else if (this.mPanel.getSeeMoreIntent() == null) {\n this.mSeeMoreButton.setVisibility(8);\n }\n this.mMetricsProvider.action(0, 1, this.mPanel.getMetricsCategory(), string, 0);\n }", "UserLoginPanel() {\n\t\tJPanel myPanel = new MyPanel();\n\t\tJPanel feedbackPanel = new FeedbackPanel();\n\n\t\tthis.setLayout(new GridLayout(3, 1));\n\t\tthis.add(feedbackPanel);\n\t\tthis.add(myPanel);\n\t\tthis.add(new JPanel());\n\n\t\tthis.setVisible(true);\n\t}", "private FactoryViewPanel buildAdvancedPanel()\r\n {\r\n FactoryViewPanel panel = new FactoryViewPanel();\r\n if (myIsImport)\r\n {\r\n addField(panel, myDataSourceModel.getIncludeInTimeline());\r\n }\r\n JPanel refreshPanel = buildRefreshPanel();\r\n panel.addLabelComponent(ControllerFactory.createLabel(myDataSourceModel.getAutoRefresh(), refreshPanel.getComponent(0)),\r\n refreshPanel);\r\n addField(panel, myDataSourceModel.getPointType());\r\n addField(panel, myDataSourceModel.getFeatureAltitude());\r\n addField(panel, myDataSourceModel.getPolygonFill());\r\n addField(panel, myDataSourceModel.getScalingMethod());\r\n addField(panel, myDataSourceModel.getShowLabels());\r\n return panel;\r\n }", "public SnowmanPanel()\n {\n setPreferredSize(new Dimension(300,225));\n setBackground(Color.cyan);\n }", "private void setUpPanel() { \n this.setPreferredSize(new Dimension(myWidth, myHeight)); \n // Set this panel as a grid panel with 1 column, 6 rows. \n this.setLayout(new GridLayout(NUM_ROWS, 1)); \n // Create the next piece panel.\n this.myNextPiece = new TetrisNextPiecePanel();\n this.add(myNextPiece); \n // Add another panel which will show game instruction.\n final HowToPlayPanel instructionsPanel = new HowToPlayPanel();\n this.add(instructionsPanel);\n // add the last panel which will show the scores, level, game state etc.\n this.setUpLastPanel();\n }", "private JPanel createExitPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new MigLayout());\n panel.setPreferredSize(new Dimension(400, 50));\n panel.setOpaque(true);\n panel.setBorder(BorderFactory.createTitledBorder(\n localization.get(\"ExitsTitle\")));\n return panel;\n }", "public void createScrollPanel(JPanel panel) {\n scrollPanel = new JScrollPane(panel, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n scrollPanel.setPreferredSize(new Dimension(710, 600));\n }", "private JPanel createNorthPanel() \r\n\t{\r\n\t\tJPanel panel = new JPanel();\r\n\t\t\r\n\t\tJLabel title = new JLabel(\"Reservations\", SwingConstants.CENTER);\r\n\t\ttitle.setFont(new Font(\"serif\", Font.PLAIN, 29));\r\n\t\tpanel.add(title);\r\n\t\t\r\n\t\treturn panel;\r\n\t}", "private void createWidgets() {\n\n\t\tJPanel filmPanel = createFilmPanel();\n\t\tJPanel musicPanel = createMusicPanel();\n\t\tJPanel unclassPanel = createUnclassifiedPanel();\n\n\t\tthis.add(filmPanel);\n\t\tthis.add(musicPanel);\n\t\tthis.add(unclassPanel);\n\t}", "public WithdrawPanel() {\n initComponents();\n }", "public DashBoardPanel() {\n initComponents();\n }", "private void constructAnimationPanel() {\n animationPanel = new EAPanel(model);\n animationPanel.setLayout(new FlowLayout());\n animationPanel.setPreferredSize(new Dimension(model.getWidth(), model.getHeight()));\n mainPanel.add(animationPanel);\n }", "public WidgetPanel() {\n\n // setup the master panel\n HorizontalPanel outer = new HorizontalPanel();\n HorizontalPanel border = new HorizontalPanel();\n border.setStyleName(\"WidgetPanelBorder\");\n border.setHeight(\"100%\");\n outer.add(border);\n\n // setup the widgets panel\n widgets.setStyleName(\"WidgetPanel\");\n widgets.setHeight(\"100%\");\n outer.add(widgets);\n \n // init the outer panel\n initWidget(outer);\n }", "private JPanel addPannelName(){\n\t\tJPanel panNom = new JPanel();\n\t\tpanNom.setPreferredSize(new Dimension(175, 75));\n\t\tnameT = new JTextField();\n\t\tnameT.setPreferredSize(new Dimension(100, 25));\n\t\tpanNom.setBorder(BorderFactory.createTitledBorder(\"Channel name\"));\n\t\tname = new JLabel(\"Put a name :\");\n\t\tpanNom.add(name);\n\t\tpanNom.add(nameT);\n\t\treturn panNom;\n\t}", "@ThreadConfined(type = ThreadConfined.ThreadType.AWT)\n DomainDetailsPanel() {\n initComponents();\n MiniTimelinePanel timelinePanel = new MiniTimelinePanel();\n DiscoveryEventUtils.getDiscoveryEventBus().register(timelinePanel);\n jTabbedPane1.add(Bundle.DomainDetailsPanel_miniTimelineTitle_text(), timelinePanel);\n for (BlackboardArtifact.ARTIFACT_TYPE type : SearchData.Type.DOMAIN.getArtifactTypes()) {\n jTabbedPane1.add(type.getDisplayName(), new DomainArtifactsTabPanel(type));\n }\n }", "public void createUI() {\r\n\t\ttry {\r\n\t\t\tJPanel centerPanel = this.createCenterPane();\r\n\t\t\tJPanel westPanel = this.createWestPanel();\r\n\t\t\tm_XONContentPane.add(westPanel, BorderLayout.WEST);\r\n\t\t\tm_XONContentPane.add(centerPanel, BorderLayout.CENTER);\r\n\t\t\tm_XONContentPane.revalidate();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tRGPTLogger.logToFile(\"Exception at createUI \", ex);\r\n\t\t}\r\n\t}" ]
[ "0.7807591", "0.75254244", "0.7429824", "0.74061733", "0.73415625", "0.71469074", "0.7036538", "0.70187885", "0.7003463", "0.69913477", "0.6985645", "0.6952408", "0.6950661", "0.69505054", "0.6942393", "0.6904126", "0.6900259", "0.6886663", "0.68488", "0.6834968", "0.68097013", "0.6768612", "0.6768612", "0.674397", "0.6741538", "0.6722369", "0.67204595", "0.66586506", "0.66540456", "0.66274935", "0.66018736", "0.65655124", "0.6555229", "0.6529776", "0.65275687", "0.6525884", "0.65207946", "0.65187734", "0.6506089", "0.6503858", "0.6500203", "0.6499452", "0.64962095", "0.64831144", "0.6477543", "0.64730376", "0.6468416", "0.64677227", "0.6467626", "0.6437195", "0.64331144", "0.64244336", "0.6394657", "0.6389761", "0.6379398", "0.6375633", "0.6374415", "0.6365783", "0.63571507", "0.6353059", "0.6344651", "0.6343459", "0.63398725", "0.633917", "0.63317454", "0.6328229", "0.63125587", "0.6305141", "0.6297249", "0.62936467", "0.6291808", "0.62858844", "0.6276091", "0.6275209", "0.6260408", "0.62600875", "0.62588817", "0.6250178", "0.6250042", "0.6243702", "0.62408495", "0.6229127", "0.6229036", "0.6228574", "0.62257665", "0.6222549", "0.62211597", "0.6217277", "0.62131864", "0.62051386", "0.62049526", "0.6199309", "0.6196048", "0.61894846", "0.6188242", "0.6186886", "0.6183441", "0.6183272", "0.6182189", "0.61805594" ]
0.81167424
0
Starting point for the demonstration application.
public static void main(String[] args) { MinMaxCategoryPlotDemo1 demo = new MinMaxCategoryPlotDemo1( "JFreeChart: MinMaxCategoryPlotDemo1.java"); demo.pack(); RefineryUtilities.centerFrameOnScreen(demo); demo.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startDemo() {\n // Welcoming display\n this.view.displayMenu();\n\n // State of the inventory and the users\n this.view.displaySystem(this.system);\n\n this.view.displayExampleMessage();\n\n // Example with a student\n Student s = this.system.getStudents().get(0);\n\n Calendar startDate = Calendar.getInstance();\n Calendar endDate = Calendar.getInstance();\n endDate.setTimeInMillis(endDate.getTimeInMillis() + 6*24*60*60*1000);\n\n Loan l = s.book(Model.IPAD3, new Period(startDate, endDate));\n this.system.checkLoan(l);\n\n this.view.displayBorrow(s, l);\n this.system.putAway(l);\n this.view.displayReturn(s, l);\n\n // Example with a teacher\n\n Teacher t = this.system.getTeachers().get(0);\n\n Loan l2 = s.book(Model.XPERIAZ, new Period(startDate, endDate));\n this.system.checkLoan(l2);\n\n this.view.displayBorrow(t, l2);\n this.system.putAway(l2);\n this.view.displayReturn(t, l2);\n\n }", "public void show(){\n System.out.println(\"Welcome to Edureka's Tutorial\");\n }", "public static void main() {\n \n }", "public static void main(String[] args) {\n\r\n Starter starter = new Starter();\r\n starter.start();\r\n\r\n\r\n }", "public main() {\n initComponents();\n \n }", "public static void main(String[] argv) {\r\n\t\tDemo15 demo = new Demo15();\r\n\t\tdemo.start();\r\n\t}", "public Main() {\n \n \n }", "public static void main(String[] args) {\n demo5();\n }", "public static void main(String[] args) {\n demoClass();\n }", "public static void main(String[] args) {\n demoClass();\n }", "@Override\n public void start (Stage primaryStage) {\n Group root = new Group();\n Scene scene = new Scene(root, AppConstants.STAGE_WIDTH, AppConstants.STAGE_HEIGHT);\n ModulePopulator = new ModuleCreationHelper(root, scene, primaryStage);\n view = new View();\n scene.setFill(AppConstants.BACKGROUND_COLOR);\n // scene.getStylesheets().add(getClass().getResource(\"application.css\").toExternalForm());\n view.init(root, ModulePopulator);\n ModulePopulator.setView(view);\n ModulePopulator.createMainPageModules();\n view.initRunner(root, ModulePopulator);\n primaryStage.setTitle(\"SLogo!\");\n primaryStage.setScene(scene);\n primaryStage.show();\n\n System.out.println(\"App Has Started!\");\n }", "public static void main(String[] args) {\n\t\tHelloAiming app = new HelloAiming();\n app.setConfigShowMode(ConfigShowMode.AlwaysShow);\n\t\tapp.start();\n\n\t}", "public static void main(java.lang.String[] args)\r\n {\r\n // Insert code to start the application here.\r\n WatchListTableModule demo = new WatchListTableModule(null);\r\n demo.mainImpl();\r\n }", "public static void main(String[] args) {\n new GraphicStudyApp();\n }", "public static void main(String[] args) {\n SettVisualizer.startApplication();\r\n }", "public static void main(String[] args) {\n\t\tshow();\r\n\t}", "public Application()\n {\n newsFeed = new NewsFeed();\n test = new Test();\n \n makeDummies();\n display();\n displayShortSummary();\n runTest();\n }", "public static void main(String[] args) {\n startApplication();\n }", "public static void main(String[] args) {\n ItemRegistry itemRegistry = new ItemRegistry();\n Printer printer = new Printer();\n AccountingHandler accountingHandler = new AccountingHandler();\n InventoryHandler inventoryHandler = new InventoryHandler();\n Register register = new Register(printer, itemRegistry, accountingHandler, inventoryHandler);\n Controller contr = new Controller(register);\n View view = new View(contr);\n\n view.sampleExecution();\n }", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "public static void main(String[] argv) {\r\n new BubbleGraphDemo(new BasicFrame(\"Bubble Graph Demo\"));\r\n }", "public static void main(String[] args)\n {\n\n DemoCliApp demo = new DemoCliApp();\n demo.run();\n }", "public static void main(String args[]) {\n \t// create the app\n \tGLApp_Demo_lines demo = new GLApp_Demo_lines();\n\n \t// set title, window size\n \tdemo.window_title = \"Hello World\";\n \tdemo.displayWidth = 640;\n \tdemo.displayHeight = 480;\n\n \t// start running: will call init(), setup(), draw(), mouse functions\n \tdemo.run();\n }", "Sample start();", "public static void main(String[] args) {\n SimpleUserInterface app = new SimpleUserInterface();\n app.start();\n }", "public static void main(String[] args) {\n example();\n }", "public DemonstrationApp()\n {\n // Create Customers of all 3 types\n s = new Senior(\"alice\", \"123 road\", 65, \"555-5555\", 1);\n a = new Adult(\"stacy\", \"123 lane\", 65, \"555-1111\", 2);\n u = new Student(\"bob\", \"123 street\", 65, \"555-3333\", 3);\n \n //Create an account for each customer \n ca = new CheckingAccount(s,1,0);\n sa = new SavingsAccount(a,2,100);\n sav = new SavingsAccount(u,3,1000);\n \n //Create a bank\n b = new Bank();\n \n //Create a date object\n date = new Date(2019, 02, 12);\n }", "@Test\n public void main() {\n MainApp.main(new String[] {});\n }", "public static void main(String[] args) {\n InitStart.Init();\r\n new MainMenuView().displayMenu();\r\n\r\n }", "public static void main(String[] args) {\n\t\tJCalendarDemo demo = new JCalendarDemo();\n\t\tJFrame frame = new JFrame();\n\t\tframe.setBounds(100,100, 400, 400);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t\tcontentPane = new JPanel();\n\t\tframe.setContentPane(contentPane);\n\t\tcontentPane.add(demo);\n\t\t\n\t}", "public MainEntryPoint() {\r\n\r\n }", "public static void demo() {\n\t\tlab_2_2_5();\n\n\t}", "private Main() {\n\n super();\n }", "public static void main(String args[]) {\n Greeting.ToyApp toyApp = DaggerGreeting_ToyComponent.builder().build().toyApp();\n toyApp.greeting.sayHello();\n }", "public static void main(String[] args) {\nshow();\r\n\t}", "public static void main(String[] args) throws Exception {\n\n Application.launch(sample.Main.class, args);\n }", "public static void main(String[] args) {\n\t\tJFrame frame = new JFrame();\n\t\tframe.getContentPane().add(new StartPanel());\n\t\tframe.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}", "public static void main(String[] args) {\n // Start App\n EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() { new App(); }\n });\n }", "public static void main(String[] args) {\n // TODO code application logic here\n // some testing? or actually we can't run it standalone??\n }", "public Main() {\n\t\tsuper();\n\t\tInitScreen screen = new InitScreen();\n\t\tpushScreen(screen);\n\t\tUiApplication.getUiApplication().repaint();\n\t}", "void startup();", "void startup();", "private void start() {\r\n\t\t// Clear the log file.\r\n\t\tBPCC_Logger.clearLogFile();\r\n\t\t\r\n\t\t// Initialize BPCC_Util static fields.\r\n\t\tBPCC_Util.initStaticFields();\r\n\t\t\r\n\t\t// Set logging level desired for test.\r\n\t\tBPCC_Util.setLogLevel(LogLevelEnum.DEBUG);\r\n\t\t\r\n\t\t// Initialize class global variables.\r\n\t\tinitVars();\r\n\t\t\r\n\t\tcreateAndShowGUI();\r\n\t}", "public static void main(String[] args) {\n JFrame f = new JFrame(\"Expression Sampler\");\n f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n f.setLocation(100, 100);\n f.setContentPane(new Sampler()); \n f.pack(); f.setVisible(true); \n }", "public static void main(String[] args) {\n\n experiment();\n }", "public static void main(String[] args) {\n new MyApp();\n }", "public static void main(String[] args) {\r\n // TODO code application logic here\r\n ObjectFactory.getUIinstance().getHomeInstance().setVisible(true);\r\n }", "public void start() {\n\t\tSystem.out.println(\"BMW.........start!!!.\");\n\t}", "public static void main(String[] args) {\n showWindow();\r\n\t}", "public static void main(String[] args) {\n WeatherApplication gui = new WeatherApplication( );\n \n // make window visible\n gui.setVisible( true );\n \n }", "public static void main(String[] args) {\n \n //GUI START\n DecoratorPatternDemo decoratorPatternDemo = new DecoratorPatternDemo();\n //GUI END\n\n \n }", "public static void main() {\n }", "public Main() {\n\t\tsuper();\n\t}", "public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tDemo gui = new Demo();\n\t\t\t\tgui.setVisible(true);\n\t\t\t}\n\t\t});\n\t}", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "public static void main(String[] args) {\n // Start the user interface\n BonusMemberUI bonusMemberUI = new BonusMemberUI();\n\n bonusMemberUI.init();\n bonusMemberUI.start();\n }", "public static void main(String[] args) {\n TestApp testApp=new TestApp();\r\n testApp.startApp();\r\n }", "public static void main(String[] args) throws IOException {\r\n\r\n HistogramTest demo = new HistogramTest(\"Histogram Test\");\r\n demo.pack();\r\n //RefineryUtilities.centerFrameOnScreen(demo);\r\n demo.setVisible(true);\r\n\r\n }", "public static void main(String[] args) {\n\t\trunApplication();\n\t}", "public static void main(String[] args){\n\t\tView view = new View();\r\n\t\tDatabaseInteraction model = new DatabaseInteraction();\r\n\r\n\t\t//Initialize controller. \r\n\t\tController controller = new Controller(view,model);\r\n\r\n\t\t//Connect database, start user interaction, and let the controller respond to user options. \r\n\t\tmodel.connectDatabase();\r\n\t\tcontroller.userInteracion();\r\n\t\tcontroller.respondToUserOption();\r\n\r\n\t}", "public static void main(String[] args) {\n Ventana v=new Ventana();\n v.setVisible(true);\n }", "public static void main(String[] args) {\n //launch it\n launch();\n }", "public void runDemo()\n {\n manager.printAllProducts();\n \n int noProducts = manager.numberProductsInStock();\n \n int amount = 0;\n \n System.out.println(\"No of products in stock = \" + noProducts);\n \n demoDeliverProducts();\n demoSellProducts();\n }", "public static void main(String[] args) {\n JFXPanel fxPanel = new JFXPanel();\n new Main().start();\n }", "public static void main(String[] args)\n {\n Injector guice = Guice.createInjector(new DiscountGuiceModule());\n\n // Inject the application which contains a separate object graph which contains all the business logic\n // When we call the top level class, BasicApplication, guice will inject every static dependency that we request\n // via @Inject\n BasicApplication basicApplication = guice.getInstance(BasicApplication.class);\n\n // now start the application\n basicApplication.start();\n }", "public static void main(String[] args) {\n //Size of window\n int width = 1000;\n int height = 1100;\n Model m = new Model();\n View v = new View(m);\n Controller c = new Controller(m, v);\n v.setController(c);\n c.init(width, height);\n }", "public static void main(String args[]) {\r\n java.awt.EventQueue.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n new ServoTest().setVisible(true);\r\n }\r\n });\r\n }", "public static void main(final String... args) {\n\n Application.launch();\n }", "public static void main(String[] args) {\n // PUT YOUR TEST CODE HERE\n }", "public static void main(String[] args) {\n\t\tHelloWorld.init();\n\t}", "private Main ()\n {\n super ();\n }", "public static void main(String[] argv) {\r\n\t\tboolean sharedContextTest = false;\r\n\r\n\t\tAppGameContainer container = new AppGameContainer(new ImageCornerTest(), 800, 600, DisplayMode.Opt.WINDOWED);\r\n\t\tcontainer.setDisplayMode(800,600, DisplayMode.Opt.WINDOWED);\r\n\t\tcontainer.start();\r\n\t}", "public static void main()\n\t{\n\t}", "public static void main(String[] args) {\n\r\n\t\ttry {\r\n\r\n\t\t\t// Set up Google Guice Dependency Injector\r\n\t\t\tInjector injector = Guice.createInjector(new BoatImplModule(),\r\n\t\t\t\t\tnew PersonDemoImplModule());\r\n\r\n\t\t\t// Build up the application, resolving dependencies automatically by\r\n\t\t\t// Guice\r\n\t\t\tIBoatController controller = injector\r\n\t\t\t\t\t.getInstance(IBoatController.class);\r\n\r\n//\t\t\tIBoatControllerRMI rmiController = injector\r\n//\t\t\t\t\t.getInstance(IBoatControllerRMI.class);\r\n//\r\n//\t\t\tRegistry registry = LocateRegistry.getRegistry();\r\n//\t\t\tIBoatControllerRMI stub = (IBoatControllerRMI) UnicastRemoteObject\r\n//\t\t\t\t\t.exportObject(rmiController, 0);\r\n//\t\t\tregistry.rebind(\"BoatControllerRMI\", stub);\r\n\r\n\t\t\tBoatTUI tui = new BoatTUI(controller);\r\n\r\n\t\t\ttui.printTUI();\r\n\t\t\t// continue to read user input on the tui until the user decides to\r\n\t\t\t// quit\r\n\t\t\tboolean continu = true;\r\n\t\t\tScanner scanner = new Scanner(System.in);\r\n\t\t\twhile (continu) {\r\n\t\t\t\tcontinu = tui.processInputLine(\"\");\r\n\t\t\t}\r\n\r\n\t\t} \r\n\t\t// catch (RemoteException e) {\r\n\t\t// e.printStackTrace();\r\n\t\t// }\r\n\t\tfinally {\r\n\t\t\tPlay.stop();\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Just testing\");\r\n\t\t//lisää kommenttia\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n \n \n \n \n }", "public static void main(String[] args) {\n MUI mg = MUI.getInstance();\n mg.setVisible(true);\n }", "public static void main(String[] args) {\n\t\tDemoStatic.show();\n\t\tDemoStatic d = new DemoStatic();\n\t\tDemoStatic d1 = new DemoStatic();\n\t\tDemoStatic d2 = new DemoStatic();\n\t\td2.show();\n\t\tDemoStatic d3 = new DemoStatic();\n\t\td3.show();\n\t}", "public static void main(String[] args) {\n // TODO code application logic here\n Welcome wel = new Welcome();\n \n wel.setVisible(true);\n }", "public void startApp()\r\n\t{\n\t}", "public static void main(String [] args){\n SmartPhone sm = new SmartPhone();\n sm.run();\n // System.out.println(sm.run());\n }", "public static void main(String[] args) {\n CubeChaser1 app = new CubeChaser1();\n app.start();\n\n }", "public static void main(String[] args) {\n ExhibitionCenter ec = DefaultInstantiator.createExhibitionCenter();\n\n Organizer o = new Organizer(new User(\"Daniel\", \"daniell\", \"email@dd23\", \"password\", new ArrayList<>(), \"\"));\n List<Organizer> lo = new ArrayList<>();\n lo.add(o);\n\n Exhibition e1 = new Exhibition();\n e1.setState(new ExhibitionCreatedState(e1));\n e1.setOrganizersList(new OrganizersList(lo));\n\n Exhibition e2 = new Exhibition();\n e2.setState(new ExhibitionCreatedState(e2));\n e2.setOrganizersList(new OrganizersList(lo));\n\n List<Exhibition> le = new ArrayList<>();\n le.add(e1);\n le.add(e2);\n\n ec.setExhibitionsRegister(new ExhibitionsRegister(le));\n\n new CreateDemonstrationUI(ec, o);\n }", "public Main() {}", "public static void main( String[] args )\n {\n\n new Frame();\n new ThreeDiceApp();\n }", "public static void main(String[] args) {demo6();\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n ClientDemo clientDemo = new ClientDemo();\r\n clientDemo.setTitle(\"平安银行银企直连客户端DEMO V0.1\");\r\n clientDemo.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //netool.pack();\r\n clientDemo.setSize(600, 580);\r\n clientDemo.setLocationRelativeTo(null); //居中显示\r\n clientDemo.setVisible(true);\r\n }", "public static void main(String[] args) {\r\n// Use for unit testing\r\n }", "public static void main(String[] args) {\n\r\n\t\tclientSample();\r\n\t}", "public static void main(String[] args) {\n\t\tnew OpenDemo();\r\n\t}", "public static void main(String[] args) {\n launch(BlaiseGraphicsTestApp.class, args);\n }", "public MainApp() {\n initComponents();\n }", "public static void main(String[] args) {\n JFrame window = new JFrame(\"Layout Demo 1\");\n SliderAndButtonDemo content = new SliderAndButtonDemo();\n window.setContentPane(content);\n window.pack();\n window.setLocation(100,100);\n window.setResizable(false);\n window.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\n window.setVisible(true);\n }", "public static void main(String... args) {\n\t\tApplication.launch(View.class, args);\n\t}", "public static void main(String[] args)\n {\n //Create an instance of Demonstration app\n DemonstrationApp d = new DemonstrationApp();\n \n //Add the accounts to the bank\n d.b.addAccount(d.ca);\n d.b.addAccount(d.sa);\n d.b.addAccount(d.sav);\n \n System.out.println(d.ca.toString());\n System.out.println(d.sa.toString());\n \n //create Transactions\n d.t1 = new Transaction(1,\"deposit\",150, d.date, \"none\");\n d.t2 = new Transaction(2,\"withdraw\",150, d.date, \"$50 Overdraft\");\n d.t3 = new Transaction(3,\"deposit\",d.u.getSavingsInterest(), d.date, \"none\");\n \n //Bank makes the transactions\n d.b.makeDeposit(d.t1);\n d.b.makeWithdrawal(d.t2);\n \n System.out.println(d.ca.toString());\n System.out.println(d.sa.toString());\n \n }", "@Override\n\tpublic void start() {\n\t\tSystem.out.println(\"BMW -- start\");\n\t}", "public static void main(String[] args) {\n init();\n\n }", "public static void main(String[] args){\t\t\n\t\tJeopardy3 j = new Jeopardy3();\n\t\tj.setupWindow();\n\t}", "public static void main(String[] args){\r\n\t\tstart();\r\n\t}", "public void start()\n {\n }", "public static void main(String[] args){\n\n MyApp myApp = new MyApp(); //1\n myApp.runMyApp(); //2\n System.out.println(\"End of Program\"); //3\n }" ]
[ "0.7247807", "0.7043833", "0.6927817", "0.6921694", "0.687076", "0.6710247", "0.666283", "0.66302913", "0.66219354", "0.66219354", "0.6620019", "0.661744", "0.6596961", "0.6588474", "0.65874666", "0.65790266", "0.6568898", "0.65629476", "0.6554157", "0.6553215", "0.6545148", "0.6543535", "0.6543383", "0.65319103", "0.6525072", "0.6523811", "0.64989936", "0.6484219", "0.6477227", "0.6474431", "0.64476633", "0.6424505", "0.6420728", "0.6406852", "0.640444", "0.64025754", "0.6402527", "0.6401338", "0.6396777", "0.639389", "0.63704365", "0.63704365", "0.6368031", "0.63637406", "0.63631004", "0.6352606", "0.6351445", "0.63489866", "0.6336181", "0.63328004", "0.6319366", "0.63162243", "0.6314275", "0.6312686", "0.63057625", "0.6301606", "0.6299628", "0.6297007", "0.629454", "0.629412", "0.6289128", "0.6286245", "0.62836546", "0.6283315", "0.6281451", "0.62797755", "0.6279507", "0.6278941", "0.6276997", "0.62726784", "0.627221", "0.62720066", "0.62651175", "0.6262593", "0.625869", "0.6255476", "0.6251194", "0.62498295", "0.62354094", "0.6229601", "0.6226071", "0.62255377", "0.621991", "0.6219116", "0.6218906", "0.62146175", "0.6214194", "0.6214041", "0.6209568", "0.6206954", "0.62057245", "0.62027353", "0.6198669", "0.6193972", "0.61918056", "0.61911243", "0.6186794", "0.6185112", "0.6183641", "0.618056", "0.6179488" ]
0.0
-1
read the file content returning it as String. Could return null if file not found or could not be opened
@Override public String read(String elementId) throws IOException { File file = new File(mDataFolder, elementId); FileInputStream fileInputStream; try { fileInputStream = new FileInputStream(file); } catch (FileNotFoundException e) { Logger.d(e.getMessage()); return null; } StringBuilder fileContent = new StringBuilder(); byte[] buffer = new byte[1024]; int n; try { while ((n = fileInputStream.read(buffer)) != -1) { fileContent.append(new String(buffer, 0, n)); } return fileContent.toString(); } catch (IOException e) { Logger.e(e, "Can't read file"); throw e; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String readFile() {\n\t\tFileReader file;\n\t\tString textFile = \"\";\n\n\t\ttry {\n\t\t\tfile = new FileReader(path);\n\n\t\t\t// Output string.\n\t\t\ttextFile = new String();\n\n\t\t\tBufferedReader bfr = new BufferedReader(file);\n\n\t\t\ttextFile= bfr.readLine();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error reading the file\");\n\t\t}\n\t\treturn textFile;\n\n\t}", "public String getContent() {\n String s = null;\n try {\n s = new String(Files.readAllBytes(Paths.get(filename)), StandardCharsets.UTF_8);\n }\n catch (IOException e) {\n message = \"Problem reading a file: \" + filename;\n }\n return s;\n }", "private String getStringFromFile() throws FileNotFoundException {\n String contents;\n FileInputStream fis = new FileInputStream(f);\n StringBuilder stringBuilder = new StringBuilder();\n try {\n InputStreamReader inputStreamReader = new InputStreamReader(fis, \"UTF-8\");\n BufferedReader reader = new BufferedReader(inputStreamReader);\n String line = reader.readLine();\n while (line != null) {\n stringBuilder.append(line).append('\\n');\n line = reader.readLine();\n }\n } catch (IOException e) {\n // Error occurred when opening raw file for reading.\n } finally {\n contents = stringBuilder.toString();\n }\n return contents;\n }", "public String read() {\n\t\tStringBuffer text = new StringBuffer((int)file.length());\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader b = new BufferedReader(fr);\n\t\t\tboolean eof = false;\n\t\t\tString line;\n\t\t\tString ret = \"\\n\";\n\t\t\twhile (!eof) {\n\t\t\t\tline = b.readLine();\n\t\t\t\tif (line == null) {\n\t\t\t\t\teof = true;\n\t\t\t\t} else {\n\t\t\t\t\ttext.append(line);\n\t\t\t\t\ttext.append(ret);\n\t\t\t\t}\n\t\t\t}\n\t\t\tb.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"File \" + file.getName() +\n\t\t\t\t\" is unreadable : \" + e.toString());\n\t\t}\n\t\treturn text.toString();\n\t}", "public String readFile(){\n\t\tString res = \"\";\n\t\t\n\t\tFile log = new File(filePath);\n\t\tBufferedReader bf = null;\n\t\t\n\t\ttry{\n\t\t\tbf = new BufferedReader(new FileReader(log));\n\t\t\tString line = bf.readLine();\n\t\t\n\t\t\n\t\t\twhile (line != null){\n\t\t\t\tres += line+\"\\n\";\n\t\t\t\tline = bf.readLine();\n\t\t\t}\n\t\t\n\t\t\treturn res;\n\t\t}\n\t\tcatch(Exception oops){\n\t\t\tSystem.err.println(\"There was an error reading the file \"+oops.getStackTrace());\n\t\t\treturn \"\";\n\t\t}\n\t\tfinally{\n\t\t\ttry {\n\t\t\t\tbf.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"There was an error closing the read Buffer \"+e.getStackTrace());\n\t\t\t}\n\t\t}\n\t}", "public String readFileContents(String filename) {\n return null;\n\n }", "public static String read(String path) {\r\n\t\t\r\n\t\t// open the file\r\n\t\tFile file = new File(path);\r\n\t\t\r\n\t\t\r\n\t\t// if the file does not exist return null\r\n\t\tif (!file.exists())\r\n\t\t\treturn null;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString content = \"\";\r\n\t\t\r\n\t\t// write to the file\r\n\t\ttry {\r\n\t\t\t// open stream\r\n\t\t\tFileReader fReader = new FileReader(file);\r\n\t\t\tBufferedReader bufferedReader = new BufferedReader(fReader);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// read all the content of the file\r\n\t\t\tString current = bufferedReader.readLine();\r\n\t\t\twhile (current != null) {\r\n\t\t\t\tcontent = content.concat(current + \"\\n\");\r\n\t\t\t\tcurrent = bufferedReader.readLine();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// close anything was opened\r\n\t\t\tbufferedReader.close();\r\n\t\t\tfReader.close();\r\n\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\t\r\n\t\treturn content;\r\n\t}", "public String read() throws Exception {\r\n\t\tBufferedReader reader = null;\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tif (input==null) input = new FileInputStream(file);\r\n\t\t\treader = new BufferedReader(new InputStreamReader(input,charset));\r\n\t\t\tchar[] c= null;\r\n\t\t\twhile (reader.read(c=new char[8192])!=-1) {\r\n\t\t\t\tsb.append(c);\r\n\t\t\t}\r\n\t\t\tc=null;\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\treader.close();\r\n\t\t}\r\n\t\treturn sb.toString().trim();\r\n\t}", "private String getFileContent(String filePath) {\r\n\r\n\t\ttry {\r\n\t\t\tString text = new String(Files.readAllBytes(Paths.get(filePath)), StandardCharsets.UTF_8);\r\n\t\t\treturn text;\r\n\t\t} catch (Exception ex) {\r\n\t\t\treturn \"-1\";\r\n\t\t}\r\n\t}", "public static String getFileContentsAsString(String filename) {\n\n // Java uses Paths as an operating system-independent specification of the location of files.\n // In this case, we're looking for files that are in a directory called 'data' located in the\n // root directory of the project, which is the 'current working directory'.\n final Path path = FileSystems.getDefault().getPath(\"Resources\", filename);\n\n try {\n // Read all of the bytes out of the file specified by 'path' and then convert those bytes\n // into a Java String. Because this operation can fail if the file doesn't exist, we\n // include this in a try/catch block\n return new String(Files.readAllBytes(path));\n } catch (IOException e) {\n // Since we couldn't find the file, there is no point in trying to continue. Let the\n // user know what happened and exit the run of the program. Note: we're only exiting\n // in this way because we haven't talked about exceptions and throwing them in CS 126 yet.\n System.out.println(\"Couldn't find file: \" + filename);\n System.exit(-1);\n return null; // note that this return will never execute, but Java wants it there.\n }\n }", "public String ReadFile() throws IOException {\n File file = context.getFilesDir();\n File textfile = new File(file + \"/\" + this.fileName);\n\n FileInputStream input = context.openFileInput(this.fileName);\n byte[] buffer = new byte[(int)textfile.length()];\n\n input.read(buffer);\n\n return new String(buffer);\n }", "@Override\n public String getContent() throws FileNotFound, CannotReadFile\n {\n Reader input = null;\n try\n {\n input = new InputStreamReader(resource.openStream());\n String content = IOUtils.toString(input).replace(\"\\r\\n\", \"\\n\");\n\n return content;\n } catch (FileNotFoundException ex)\n {\n throw new FileNotFound();\n } catch (IOException ex)\n {\n throw new CannotReadFile();\n } finally\n {\n InternalUtils.close(input);\n }\n }", "public static String readFileContent(String fileName){\r\n String str=null;\r\n BufferedReader reader=null;\r\n try {\r\n reader=new BufferedReader(new FileReader(fileName));\r\n str=reader.readLine();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }finally{\r\n if(reader!=null){\r\n try {\r\n reader.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n return str;\r\n }", "@Override\n\tpublic String readBlob() throws PersistBlobException {\n\t\tlog.debug(\"readString: \");\n\t\ttry {\n\t\t\tString contents = FileUtils.readFileToString(new File(full_file_name), \"UTF-8\");\n\t\t\tlog.debug(\"returned string: \"+contents);\n\t\t\treturn contents;\n\t\t} catch (IOException e) {\n\t\t\tthrow new PersistBlobException(\"can not read string\",e);\n\t\t}\n\n\t}", "public static String readFile(Path path) {\n\t\tif (path != null) {\n\t\t\tbyte[] bytes = toByteArray(path);\n\t\t\tif (bytes != null) {\n\t\t\t\treturn new String(bytes, StandardCharsets.UTF_8);\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "public String read(String filePath) throws IOException {\r\n\t\t//read file into stream\r\n\t\t\treturn new String(Files.readAllBytes(Paths.get(filePath)));\r\n\t}", "public String readFile(){\r\n StringBuffer str = new StringBuffer(); //StringBuffer is a mutable string\r\n Charset charset = Charset.forName(\"UTF-8\"); //UTF-8 character encoding\r\n Path file = Paths.get(filename + \".txt\");\r\n try (BufferedReader reader = Files.newBufferedReader(file, charset)) { // Buffer: a memory area that buffered streams read\r\n String line = null;\r\n while ((line = reader.readLine()) != null) { //Readers and writers are on top of streams and converts bytes to characters and back, using a character encoding\r\n str.append(line + \"\\n\");\r\n }\r\n }\r\n catch (IOException x) {\r\n System.err.format(\"IOException: %s%n\", x);\r\n }\r\n return str.toString();\r\n }", "public static String readFile(File file) {\n FileInputStream fis = null;\n try {\n fis = new FileInputStream(file);\n byte[] b = Utils.readBytes(fis);\n return new String(b, StandardCharsets.UTF_8);\n } catch (IOException e) {\n e.printStackTrace();\n }finally {\n if(fis != null) {\n try {\n fis.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return null;\n }", "public String readFromFile() throws IOException {\n return br.readLine();\n }", "private String getFileContent(java.io.File fileObj) {\n String returned = \"\";\n try {\n java.io.BufferedReader reader = new java.io.BufferedReader(new java.io.FileReader(fileObj));\n while (reader.ready()) {\n returned = returned + reader.readLine() + lineSeparator;\n }\n } catch (FileNotFoundException ex) {\n JTVProg.logPrint(this, 0, \"файл [\" + fileObj.getName() + \"] не найден\");\n } catch (IOException ex) {\n JTVProg.logPrint(this, 0, \"[\" + fileObj.getName() + \"]: ошибка ввода/вывода\");\n }\n return returned;\n }", "private String readStringFromFile(final File file) {\n try {\n FileInputStream fin = new FileInputStream(file);\n BufferedReader reader = new BufferedReader(new InputStreamReader(fin));\n StringBuilder sb = new StringBuilder();\n String line = null;\n while ((line = reader.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n reader.close();\n String result = sb.toString();\n fin.close();\n return result;\n } catch (IOException ioEx) {\n Log.e(TAG, \"Error reading String from a file: \" + ioEx.getLocalizedMessage());\n }\n return null;\n }", "public static String getStringFromFile(String filename) {\r\n try {\r\n FileInputStream fis = new FileInputStream(filename);\r\n int available = fis.available();\r\n byte buffer[] = new byte[available];\r\n fis.read(buffer);\r\n fis.close();\r\n\r\n String tmp = new String(buffer);\r\n //System.out.println(\"\\nfrom file:\"+filename+\":\\n\"+tmp);\r\n return tmp;\r\n\r\n } catch (Exception ex) {\r\n // System.out.println(ex);\r\n // ex.printStackTrace();\r\n return \"\";\r\n } // endtry\r\n }", "public String loadFromFile() {\n StringBuilder sb = new StringBuilder();\n try {\n Log.d(\"DEBUG\", this.context.getPackageName());\n Log.d(\"DEBUG\", this.file);\n FileInputStream fis = context.openFileInput(file);\n BufferedReader br = new BufferedReader(new InputStreamReader(fis, this.encoding));\n String line;\n while(( line = br.readLine()) != null ) {\n sb.append( line );\n sb.append( '\\n' );\n }\n } catch (IOException e) {\n e.printStackTrace();\n return \"\";\n }\n return sb.toString();\n }", "public String readFromFile(String path) {\n BufferedReader br = null;\n String returnString =\"\";\n try {\n String sCurrentLine;\n br = new BufferedReader(new FileReader(path));\n while ((sCurrentLine = br.readLine()) != null) {\n returnString+=sCurrentLine;\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (br != null)br.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n return returnString;\n }", "String readFile( String filename ) {\n try {\n FileReader fileReader = new FileReader( filename );\n BufferedReader bufferedReader = new BufferedReader( fileReader );\n StringBuilder stringBuilder = new StringBuilder();\n String line = bufferedReader.readLine();\n while( line != null ) {\n stringBuilder.append( line );\n stringBuilder.append( \"\\n\" );\n line = bufferedReader.readLine();\n }\n bufferedReader.close();\n fileReader.close();\n return stringBuilder.toString();\n } catch( Exception e ) {\n playerObjects.getLogFile().WriteLine( Formatting.exceptionToStackTrace( e ) );\n return null;\n }\n }", "private static String readFile(File file) {\n String result = \"\";\n\n try (BufferedReader bufferedReader = new BufferedReader(\n new FileReader(file))) {\n result = bufferedReader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return result;\n }", "private String readFile() {\n try {\n BufferedReader in = new BufferedReader(new FileReader(\"C:\\\\Users\"\n + \"\\\\MohammadLoqman\\\\cs61b\\\\sp19-s1547\"\n + \"\\\\proj3\\\\byow\\\\Core\\\\previousGame.txt\"));\n StringBuilder sb = new StringBuilder();\n String toLoad;\n try {\n toLoad = in.readLine();\n while (toLoad != null) {\n sb.append(toLoad);\n sb.append(System.lineSeparator());\n toLoad = in.readLine();\n }\n String everything = sb.toString();\n return everything;\n } catch (IOException E) {\n System.out.println(\"do nothin\");\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"file not found\");\n }\n return null;\n\n }", "public static String readFile(String path) {\n String contents = \"\";\n try {\n BufferedReader br = new BufferedReader(new FileReader(path));\n\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n while (line != null) {\n sb.append(line);\n sb.append(System.lineSeparator());\n line = br.readLine();\n }\n contents = sb.toString();\n br.close();\n } catch (Exception e) {\n System.out.println(e.toString());\n System.exit(1);\n }\n return contents;\n }", "String readText(FsPath path);", "public String readFileContent(File file) {\n StringBuilder fileContentBuilder = new StringBuilder();\n if (file.exists()) {\n String stringLine;\n try {\n FileReader fileReader = new FileReader(file);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n while ((stringLine = bufferedReader.readLine()) != null) {\n fileContentBuilder.append(stringLine + \"\\n\");\n }\n bufferedReader.close();\n fileReader.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return fileContentBuilder.toString();\n }", "public String readFile(String fName) {\n String msg=\"\";\n try {\n File theFile = new File(fName);\n InputStreamReader iStream = new InputStreamReader(new FileInputStream(theFile));\n int length = (int)theFile.length();\n char input[] = new char[length];\n iStream.read(input);\n msg = new String(input);\n } catch (IOException e) {\n e.printStackTrace();\n } // catch\n return msg;\n }", "public String getFileContent(String filePath) {\n\t\tString content = \"\";\n\t\t// get the path\n\t\tString path = filePath.substring(0, filePath.lastIndexOf(\"/\"));\n\t\t// get the file's name\n\t\tString name = filePath.substring(filePath.lastIndexOf(\"/\") + 1);\n\t\t// iterate through all the files to see if we can find it...\n\t\tfor (FileObjects t : getDirectory(path, directory).getFiles()) {\n\t\t\tif (name.equals(t.getName())) {\n\t\t\t\tcontent = t.getContent();\n\t\t\t}\n\t\t}\n\t\t// return the content of the file, or just an empty string if it's\n\t\t// empty.\n\t\treturn content;\n\n\t}", "public static String readFile(String filePath) {\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(filePath));\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString line = br.readLine();\n\n\t\t\twhile (line != null) {\n\t\t\t\tsb.append(line);\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(br);\n\t\t}\n\n\t\treturn null;\n\t}", "public static String readFileAsString(String fileName) {\n String text = \"\";\n\n try {\n text = new String(Files.readAllBytes(Paths.get(fileName)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return text;\n }", "private static String readFile(String filePath) {\n\t\tFile file = new File(filePath);\n\t\tString fileElements;\n\t\tFileInputStream in = null;\n\t\t\n\t\tif(file.exists()){\n\t\t\ttry {\n\t\t\t\tin = new FileInputStream(file);\n\t\t\t\tbyte[] fileBytes = new byte[(int)file.length()];\n\t\t\t\tin.read(fileBytes);\n\t\t\t\tfileElements = new String(fileBytes);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tfileElements = \"\";\n\t\t\t} catch(IOException io){\n\t\t\t\tio.printStackTrace();\n\t\t\t\tfileElements = \"\";\n\t\t\t}\n\t\t}else{\n\t\t\tfileElements=\"\";\n\t\t}\n\t\treturn fileElements;\n\t}", "public String readFileIntoString(String filepath) throws IOException;", "private static String readFile(String fileName) throws IOException {\n\t\tReader reader = new FileReader(fileName);\n\n\t\ttry {\n\t\t\t// Create a StringBuilder instance\n\t\t\tStringBuilder sb = new StringBuilder();\n\n\t\t\t// Buffer for reading\n\t\t\tchar[] buffer = new char[1024];\n\n\t\t\t// Number of read chars\n\t\t\tint k = 0;\n\n\t\t\t// Read characters and append to string builder\n\t\t\twhile ((k = reader.read(buffer)) != -1) {\n\t\t\t\tsb.append(buffer, 0, k);\n\t\t\t}\n\n\t\t\t// Return read content\n\t\t\treturn sb.toString();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\treader.close();\n\t\t\t} catch (IOException ioe) {\n\t\t\t\t// Ignore\n\t\t\t}\n\t\t}\n\t}", "public String ReadFile(String sFilePath) throws Exception {\n File f = null;\n FileInputStream fstream = null;\n String stemp = \"\";\n try {\n //getting file oject\n f = new File(sFilePath);\n //get object for fileinputstream\n fstream = new FileInputStream(f);\n //getting byte array length\n byte data[] = new byte[fstream.available()];\n //getting file stream data into byte array\n fstream.read(data);\n //storing byte array data into String\n stemp = new String(data);\n return stemp;\n } catch (Exception e) {\n throw new Exception(\"ReadFile : \" + e.toString());\n } finally {\n try {\n fstream.close();\n } catch (Exception e) {\n }\n }\n }", "static String readFile(String path) throws IOException{\n\t\tFileInputStream fs = new FileInputStream(path);\n\t\tStringBuffer sb = new StringBuffer();\n\t\t// read a file\n\t\tint singleByte = fs.read(); // read singleByte\n\t\twhile(singleByte!=-1){\n\t\t\tsb.append((char)singleByte);\n\t\t\t///System.out.print((char)singleByte);\n\t\t\tsingleByte = fs.read();\n\t\t}\n\t\tfs.close(); // close the file\n\t\treturn sb.toString();\n\t}", "public static String read(File file) throws CWLException {\r\n StringBuilder contents = new StringBuilder();\r\n try (FileInputStream in = new FileInputStream(file)) {\r\n byte[] buffer = new byte[1024];\r\n int read = 0;\r\n while ((read = in.read(buffer)) > 0) {\r\n contents.append(new String(buffer, 0, read, StandardCharsets.UTF_8.name()));\r\n }\r\n } catch (IOException e) {\r\n throw new CWLException(\r\n ResourceLoader.getMessage(READ_FILE_FAILED_MSG, file.getAbsolutePath(), e.getMessage()),\r\n 255);\r\n }\r\n return contents.toString();\r\n }", "private static String ReadFile(String filePath) {\n StringBuilder sb = new StringBuilder();\n try {\n BufferedReader r = new BufferedReader(new FileReader(filePath));\n String line;\n while ((line = r.readLine()) != null) {\n sb.append(line);\n }\n } catch (Exception e) {\n System.out.println(e.getStackTrace());\n }\n return sb.toString();\n\n }", "private StringBuffer readFromFile(String src) {\n \t\tif (src == null)\n \t\t\treturn null;\n \t\tInputStream stream = null;\n \t\tStringBuffer content = new StringBuffer();\n \t\tBufferedReader reader = null;\n \t\ttry {\n \t\t\tURL url = new URL(src);\n \t\t\tstream = url.openStream();\n \t\t\t//TODO: Do we need to worry about the encoding here? e.g.:\n \t\t\t//reader = new BufferedReader(new InputStreamReader(stream,\n \t\t\t// ResourcesPlugin.getEncoding()));\n \t\t\treader = new BufferedReader(new InputStreamReader(stream));\n \t\t\twhile (true) {\n \t\t\t\tString line = reader.readLine();\n \t\t\t\tif (line == null) // EOF\n \t\t\t\t\tbreak; // done reading file\n \t\t\t\tcontent.append(line);\n \t\t\t\tcontent.append(IIntroHTMLConstants.NEW_LINE);\n \t\t\t}\n \t\t} catch (Exception exception) {\n \t\t\tLogger.logError(\"Error reading from file\", exception); //$NON-NLS-1$\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (reader != null)\n \t\t\t\t\treader.close();\n \t\t\t\tif (stream != null)\n \t\t\t\t\tstream.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tLogger.logError(\"Error closing input stream\", e); //$NON-NLS-1$\n \t\t\t\treturn null;\n \t\t\t}\n \t\t}\n \t\treturn content;\n \t}", "private String readFile(String file) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(file), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n\n }", "@Nullable\n public String readFile(String fileName) throws IOException {\n ObjectId objectId = findFile(fileName);\n if (objectId == null) {\n return null;\n }\n\n ObjectLoader obj = reader.open(objectId, Constants.OBJ_BLOB);\n byte[] raw = obj.getCachedBytes(Integer.MAX_VALUE);\n\n if (raw.length == 0) {\n return null;\n }\n return RawParseUtils.decode(raw);\n }", "private static String readFile(String path) throws IOException {\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(path)))) {\n\t\t\tStringBuilder input = new StringBuilder();\n\t\t\tString tmp; while ((tmp = br.readLine()) != null) input.append(tmp+\"\\n\");\n\t\t\treturn input.toString();\n\t\t}\n\t}", "public static String readFile(File file) {\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(file));\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString line = br.readLine();\n\n\t\t\twhile (line != null) {\n\t\t\t\tsb.append(line);\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"!!!\", e);\n\t\t} finally {\n\t\t\tCloseUtils.close(br);\n\t\t}\n\n\t\treturn null;\n\t}", "public static String readFile(final String name) {\n FileReader fileReader = null;\n final StringBuilder contents = new StringBuilder();\n try {\n final File file = new File(name);\n if (!file.exists()) {\n throw new IllegalArgumentException(\"File \" + name + \" does not exist\");\n }\n fileReader = new FileReader(file);\n final BufferedReader reader = new BufferedReader(fileReader);\n String inputLine = reader.readLine();\n while (inputLine != null) {\n contents.append(inputLine).append(\"\\n\");\n inputLine = reader.readLine();\n }\n reader.close();\n } catch (final IOException i1) {\n LOG.severe(\"Can't open file:\" + name);\n }\n return contents.toString();\n }", "public static String readFileAsString(String filePath, String encoding) {\n\t\tbyte[] buffer = new byte[(int) new File(filePath).length()];\n\t\tBufferedInputStream f = null;\n\t\ttry {\n\t\t\tFile file = new File(filePath);\n\t\t\tfor (int attempt = 0; attempt < 3; attempt++) {\n\t\t\t\tif (file.exists()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tThread.sleep(2);\n\t\t\t}\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tSystem.err.println(\"\\nfile not found: \" + filePath);\n\t\t\t\tthrow new FileNotFoundException(\"Could not find file: \" + filePath);\n\t\t\t}\n\n\t\t\tf = new BufferedInputStream(new FileInputStream(filePath));\n\t\t\tf.read(buffer);\n\t\t} catch (IOException e) {\n\t\t\tthrow new UncheckedExecutionException(e);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (f != null)\n\t\t\t\ttry {\n\t\t\t\t\tf.close();\n\t\t\t\t} catch (IOException ignored) {\n\t\t\t\t}\n\t\t}\n\t\tString contents = null;\n\t\ttry {\n\t\t\tcontents = new String(buffer, encoding);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn contents;\n\t}", "private static String loadFile(String path){\n try {\n\n BufferedReader reader = new BufferedReader(new FileReader(path));\n StringBuilder sb = new StringBuilder();\n\n String line;\n while((line = reader.readLine()) != null){\n sb.append(line);\n sb.append('\\n');\n }\n\n reader.close();\n return sb.toString();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return null;\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n }", "public String readFile (String pathOfFileSelected) {\n\n File file = new File(pathOfFileSelected);\n\n StringBuilder text = new StringBuilder();\n\n try {\n BufferedReader br = new BufferedReader(new FileReader(file));\n String line;\n\n while ((line = br.readLine()) != null) {\n text.append(line);\n text.append('\\n');\n }\n br.close();\n Log.d(TAG, \"readFile: text: \" +text.toString());\n return text.toString().trim();\n }\n catch (IOException e) {\n Log.e(TAG, \"readFile: \",e );\n return null;\n }\n }", "public static String readFileAsString(Context context, String fileName) {\n\t\tInputStream in;\n\t\tStringBuilder sb = new StringBuilder();\n \t\tboolean result = false;\n\t\t// wykonaj jako jeden nieprzerwany blok czynnosci na plikach - zaloz blokade na statyczny obiekt DATA_LOCK\n \t\tsynchronized (FileUtil.DATA_LOCK) {\n \t\t\ttry{\n\t\t\t\tin = context.getAssets().open(fileName);\n\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in), 8*1024);\n\t\t\t String line = null;\n\t\t\t while ((line = reader.readLine()) != null) {\n\t\t\t sb.append(line).append(FileUtil.LINE_SEP);\n\t\t\t }\n\t\t\t in.close();\n\t\t\t result = true;\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tLog.e(LOG_TAG, \"Nie odnaleziono pliku: '\"+fileName+\"'\");\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.e(LOG_TAG, \"Blad odczytu pliku: '\"+fileName+\"'\");\n\t\t\t}\n \t\t}\n \t\tif(result) return sb.toString();\n \t\treturn null;\n\t}", "private static String getText(IFile file) throws CoreException, IOException {\n\t\tInputStream in = file.getContents();\n\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\tbyte[] buf = new byte[1024];\n\t\tint read = in.read(buf);\n\t\twhile (read > 0) {\n\t\t\tout.write(buf, 0, read);\n\t\t\tread = in.read(buf);\n\t\t}\n\t\treturn out.toString();\n\t}", "public static String readFile(String pFilePath) {\n\t\tBufferedReader bufferedReader = null;\n\t StringBuilder stringBuilder = new StringBuilder();\n\t\ttry {\n\t\t\tbufferedReader = new BufferedReader(new FileReader(pFilePath));\n\t\t\tbufferedReader.lines().forEach((s) -> { stringBuilder.append(s + \"\\n\"); });\t\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t} finally {\n\t\t\tif (bufferedReader != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbufferedReader.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (stringBuilder != null && stringBuilder.toString().equals(\"\")) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn stringBuilder.toString();\n\t\t}\n\t}", "@SuppressWarnings(\"unused\")\n private String readFile(File f) throws IOException {\n BufferedReader reader = new BufferedReader(new FileReader(f));\n String line = reader.readLine();\n StringBuilder builder = new StringBuilder();\n while (line != null) {\n builder.append(line).append('\\n');\n line = reader.readLine();\n }\n reader.close();\n return builder.toString();\n }", "public String getStringContent() throws IOException;", "public static String readFile(String path) throws IOException {\n BufferedReader reader = new BufferedReader(new FileReader(path));\n\n String line;\n StringBuilder builder = new StringBuilder();\n\n while ((line = reader.readLine()) != null) {\n builder.append(line);\n }\n\n return builder.toString();\n }", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n return contentBuilder.toString();\n }", "public static String getContent(String path){\t\n\t\t\n\t\tStringBuilder content = new StringBuilder();\n\t\tFile file = new File(path);\n\t\t\n\t\ttry{\n\t\t\tScanner fileReader = new Scanner(file);\n\t\t\twhile (fileReader.hasNextLine()) \n\t\t\t\tcontent.append(fileReader.nextLine() + \"\\n\");\t\n\t\t\tfileReader.close();\n\t\t}\n\t\tcatch(FileNotFoundException f){\n\t\t\tf.printStackTrace();\n }\n \n return content.toString();\n\t}", "public String readFileIntoString(String sourceFilepath) throws IOException {\n StringBuilder sb = new StringBuilder();\n URL url = new URL(sourceFilepath);\n BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));\n String line = null;\n while ((line = reader.readLine()) != null) {\n sb.append(line + \"\\n\");\n }\n reader.close();\n return sb.toString();\n }", "public static String readFile(final File file) throws IOException\n\t{\n\t\tfinal BufferedReader input = new BufferedReader(new InputStreamReader(\n\t\t\t\tnew FileInputStream(file), FILE_CHARSET_NAME));\n\t\ttry\n\t\t{\n\t\t\tfinal StringBuilder contents = new StringBuilder(BUFFER_SIZE);\n\n\t\t\t// copy from input stream\n\t\t\tfinal char[] charBuffer = new char[BUFFER_SIZE];\n\t\t\tint len;\n\t\t\twhile ((len = input.read(charBuffer)) > 0)\n\t\t\t{\n\t\t\t\tcontents.append(charBuffer, 0, len);\n\t\t\t}\n\n\t\t\treturn contents.toString();\n\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tinput.close();\n\t\t}\n\t}", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n }", "public static String readFileAsString(String filePath) {\n\t\tbyte[] buffer = new byte[(int) new File(filePath).length()];\n\t\tBufferedInputStream f = null;\n\t\ttry {\n\t\t\tFile file = new File(filePath);\n\t\t\tfor (int attempt = 0; attempt < 3; attempt++) {\n\t\t\t\tif (file.exists()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tThread.sleep(2);\n\t\t\t}\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tSystem.err.println(\"\\nfile not found: \" + filePath);\n\t\t\t\tthrow new FileNotFoundException(\"Could not find file: \" + filePath);\n\t\t\t}\n\n\t\t\tf = new BufferedInputStream(new FileInputStream(filePath));\n\t\t\tf.read(buffer);\n\t\t} catch (IOException e) {\n\t\t\tthrow new UncheckedExecutionException(e);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (f != null)\n\t\t\t\ttry {\n\t\t\t\t\tf.close();\n\t\t\t\t} catch (IOException ignored) {\n\t\t\t\t}\n\t\t}\n\t\treturn new String(buffer);\n\t}", "public static String readTextStream(String filename) throws IOException {\n StringBuffer sb = new StringBuffer();\n BufferedReader fileReader = new BufferedReader(new InputStreamReader(FileHelper.class.getClassLoader().getResourceAsStream(filename)));\n FileHelper.read(sb, fileReader);\n return sb.toString();\n }", "protected String openReadFile(Path filePath) throws IOException{\n\t\tString line;\n\t\tStringBuilder sb = new StringBuilder();\n\t\t// Read the document\n\t\tBufferedReader reader = Files.newBufferedReader(filePath, ENCODING);\n\t\t// Append each line in the document to our string\n\t\twhile ((line = reader.readLine()) != null) {\n\t\t\tsb.append(line);\n\t\t\tsb.append(\"\\n\"); // readLine discards new-row characters, re-append them.\n\t\t}\n\t\tif(sb.length() != 0){\n\t\t\tsb.deleteCharAt(sb.length()-1); // However last line doesn't contain one, remove it.\n\t\t}\n\t\treader.close();\n\t\treturn new String(sb.toString());\n\t}", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));\n }\n\n return contentBuilder.toString();\n }", "public String readStringFromFileSafe(String filename) {\r\n\t\tString result = null;\r\n\t\ttry {\r\n\t\t\tresult = readStringFromFile(filename);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\thandleFileNotFoundException(e, filename);\r\n\t\t} catch (IOException e) {\r\n\t\t\thandleIOException(e, filename);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public static String readFromFile(String fileName) {\n\n StringBuilder output = new StringBuilder();\n boolean presente = new File(fileName).exists();\n\n if (!presente) {\n return \"\";\n }\n try {\n FileReader reader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(reader);\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n output.append(line).append(\"\\n\");\n }\n bufferedReader.close();\n reader.close();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n return output.toString();\n }", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(contentBuilder::append);\n }\n return contentBuilder.toString();\n }", "public String read(String filename) {\n StringBuilder stringBuilder = new StringBuilder();\n try (BufferedReader bufferedReader = new BufferedReader(new FileReader(filename))) {\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n stringBuilder.append(line).append(\"\\n\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n return stringBuilder.toString();\n }", "public static String read(String filepath) throws IOException {\n BufferedReader bf=new BufferedReader(new FileReader(new File(filepath)));\n String s;\n StringBuilder sb=new StringBuilder();\n while((s=bf.readLine())!=null)\n sb.append(s+ \"\\n\");\n bf.close();\n return sb.toString();\n }", "public String readFile(String filePath)\n {\n String result = \"\";\n try {\n\n FileReader reader = new FileReader(filePath);\n Scanner scanner = new Scanner(reader);\n\n while(scanner.hasNextLine())\n {\n result += scanner.nextLine();\n }\n reader.close();\n }\n catch(FileNotFoundException ex)\n {\n System.out.println(\"File not found. Please contact the administrator.\");\n }\n catch (Exception ex)\n {\n System.out.println(\"Some error occurred. Please contact the administrator.\");\n }\n return result;\n }", "public static String getStringFromFile(Context context, String filePath) throws IOException {\n final InputStream stream = context.getResources().getAssets().open(filePath);\n String ret = convertStreamToString(stream);\n stream.close();\n return ret;\n }", "public final String getStringFromFile(final int length) throws IOException {\r\n\r\n if (length <= 0) {\r\n return new String(\"\");\r\n }\r\n\r\n byte[] b = new byte[length];\r\n raFile.readFully(b);\r\n final String s = new String(b);\r\n b = null;\r\n return s;\r\n }", "public static String getAsString(File file) {\n\t\tInputStream is = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(file);\n\t\t\tString rtn = getAsString(is);\n\t\t\treturn rtn;\n\t\t} catch (Exception exp) {\n\t\t\tthrow new RuntimeException(exp);\n\t\t} finally {\n\t\t\tif (is != null) {\n\t\t\t\ttry {\n\t\t\t\t\tis.close();\n\t\t\t\t} catch (Exception exp) {\n\t\t\t\t\tthrow new RuntimeException(exp);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static String read(String filename) throws IOException {\n // Reading input by lines:\n BufferedReader in = new BufferedReader(new FileReader(filename));\n// BufferedInputStream in2 = new BufferedInputStream(new FileInputStream(filename));\n String s;\n int s2;\n StringBuilder sb = new StringBuilder();\n while((s = in.readLine())!= null)\n sb.append( s + \"\\n\");\n// sb.append((char) s2);\n in.close();\n return sb.toString();\n }", "public String getContents(File file) {\n\t //...checks on file are elided\n\t StringBuilder contents = new StringBuilder();\n\t \n\t try {\n\t //use buffering, reading one line at a time\n\t //FileReader always assumes default encoding is OK!\n\t BufferedReader input = new BufferedReader(new FileReader(file));\n\t try {\n\t String line = null; \n\n\t while (( line = input.readLine()) != null){\n\t contents.append(line);\n\t contents.append(\"\\r\\n\");\t }\n\t }\n\t finally {\n\t input.close();\n\t }\n\t }\n\t catch (IOException ex){\n\t log.error(\"Greska prilikom citanja iz fajla: \"+ex);\n\t }\n\t \n\t return contents.toString();\n\t}", "public String readFile(String filename) {\n\n String result = \"\";\n FileReader fileReader = null;\n BufferedReader bufferedReader = null;\n try {\n fileReader = new FileReader(filename);\n bufferedReader = new BufferedReader(fileReader);\n\n StringBuilder stringBuilder = new StringBuilder();\n String line = bufferedReader.readLine();\n while (line != null) {\n stringBuilder.append(line);\n line = bufferedReader.readLine();\n }\n result = stringBuilder.toString();\n } catch (Exception e) {\n Log.error(\"Error in reading Locator Repository file \" + e.getMessage());\n } finally {\n try {\n if (bufferedReader != null) {\n bufferedReader.close();\n }\n if (fileReader != null) {\n fileReader.close();\n }\n } catch (IOException e) {\n Log.error(\"Error in closing Locator Repository file \" + e.getMessage());\n } finally {\n CustomAssert\n .assertTrue(StringUtils.isNotEmpty(result), \"Error in reading file \" + filename);\n }\n }\n\n return result;\n }", "public static String readFile(String filePath) throws IOException {\n\t\tString readString = \"\";\n\t\tRandomAccessFile file = new RandomAccessFile(filePath, \"r\");\n\t\tFileChannel channel = file.getChannel();\n\t\tByteBuffer buffer = ByteBuffer.allocate(1024);\n\t\twhile (channel.read(buffer) > 0) {\n\t\t\tbuffer.flip();\n\t\t\tfor (int i = 0; i < buffer.limit(); i++)\n\t\t\t\treadString += (char) buffer.get();\n\t\t\tbuffer.clear();\n\t\t}\n\t\tchannel.close();\n\t\tfile.close();\n\t\treturn readString;\n\t}", "String getFile();", "String getFile();", "String getFile();", "public static String read(String filename) {\n StringBuilder sb = new StringBuilder();\n try {\n FileReader fr = new FileReader(new File(filename));\n BufferedReader br = new BufferedReader(fr);\n String s;\n while ((s = br.readLine()) != null) {\n sb.append(s).append(\"\\n\");\n }\n br.close();\n fr.close();\n } catch (FileNotFoundException ex) {\n } catch (IOException ex) {\n }\n return sb.toString();\n }", "private static String readFileToString(String filePath) throws IOException {\n\t\tStringBuilder fileData = new StringBuilder(1000);\n\t\tBufferedReader reader = new BufferedReader(new FileReader(filePath));\n\t\tchar[] buf = new char[10];\n\t\tint numRead = 0;\n\t\twhile ((numRead = reader.read(buf)) != -1) {\n\t\t\tString readData = String.valueOf(buf, 0, numRead);\n\t\t\tfileData.append(readData);\n\t\t\tbuf = new char[1024];\n\t\t}\n\t\treader.close();\n\t\treturn fileData.toString();\t\n\t}", "public static String readFile(String filePath) throws IOException {\n\t\tString text = \"\";\n\t\tBufferedReader br = new BufferedReader(new FileReader(filePath));\n\t\ttry {\n\n\t\t\tint intch;\n\t\t\twhile ((intch = br.read()) != -1) {\n\t\t\t\ttext += (char) intch;\n\t\t\t}\n\t\t} finally {\n\t\t\tbr.close();\n\t\t}\n\t\treturn text;\n\t}", "public String getConteudoArquivo() {\n\t\tfinal StringBuilder builder = new StringBuilder();\n\t\tFileReader leitor = null;\n\t\tBufferedReader buffer = null;\n\t\ttry {\n\n\t\t\tleitor = new FileReader(this.arquivo);\n\t\t\tbuffer = new BufferedReader(leitor);\n\n\t\t\twhile (buffer.ready()) {\n\t\t\t\tbuilder.append(buffer.readLine() + \"\\n\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalArgumentException(\"Imposivel de ler o arquivo \"\n\t\t\t\t\t+ this.arquivo.getName());\n\t\t} finally {\n\t\t\tRessourcesUtils.closeRessources(buffer);\n\t\t}\n\n\t\treturn builder.toString();\n\t}", "public static String readFileAsString(String path) throws IOException {\n return readFileAsString(path, Charset.defaultCharset().name());\n }", "public static String readFileToString (File file) {\n try {\n final var END_OF_FILE = \"\\\\z\";\n var input = new Scanner(file);\n input.useDelimiter(END_OF_FILE);\n var result = input.next();\n input.close();\n return result;\n }\n catch(IOException e){\n return \"\";\n }\n }", "private static String readFileToString(File fileToRead) {\n\t\tString out = null;\n\t\ttry {\n\t\t\tout = FileUtils.readFileToString(fileToRead);\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\treturn out;\n\t}", "public String readFromFile(String filePath){\n String fileData = \"\";\n try{\n File myFile = new File(filePath);\n Scanner myReader = new Scanner(myFile);\n while (myReader.hasNextLine()){\n String data = myReader.nextLine();\n fileData += data+\"\\n\";\n }\n myReader.close();\n } catch(FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n return fileData;\n }", "private String getFileContent(){\n\t\tString employeesJsonString=\"\";\n\t\ttry {\n\t\t\tScanner sc = new Scanner(file);\n\t\t\twhile(sc.hasNextLine()){\n\t\t\t\temployeesJsonString += sc.nextLine();\n\t\t\t}\n\t\t\t\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t\tSystem.out.println(\"file error\");\n\t\t}\n\t\treturn employeesJsonString;\n\t}", "public String read(File file) throws IOException {\n\t\t\tInputStream is = null;\r\n\t\t\tis = new FileInputStream(file);\r\n\t\t\t\r\n\t\t\tAccessTextFile test = new AccessTextFile();\r\n//\t\t\tInputStream is = new FileInputStream(\"E:\\\\test.txt\");\r\n\t\t\tStringBuffer buffer = new StringBuffer();\r\n\t\t\ttest.readToBuffer(buffer, is);\r\n\t\t\tSystem.out.println(buffer); // 将读到 buffer 中的内容写出来\r\n\t\t\tis.close();\t\t\r\n\t\t\treturn buffer.toString();\r\n\t\t }", "String input() {\n\n try {\n\n FileReader reader = new FileReader(\"the text.txt\");\n BufferedReader bufferedReader = new BufferedReader(reader);\n StringBuilder builder = new StringBuilder();\n String line;\n\n while ((line = bufferedReader.readLine()) != null)\n builder.append(line);\n\n return builder.toString();\n\n } catch (IOException e) {\n\n System.out.println(\"Input Failure\");\n return null;\n }\n }", "public static String loadFileAsString(String filePath) throws java.io.IOException{\n\t StringBuffer fileData = new StringBuffer(1000);\n\t BufferedReader reader = new BufferedReader(new FileReader(filePath));\n\t char[] buf = new char[1024];\n\t int numRead=0;\n\t while((numRead=reader.read(buf)) != -1){\n\t String readData = String.valueOf(buf, 0, numRead);\n\t fileData.append(readData);\n\t }\n\t reader.close();\n\t return fileData.toString();\n\t}", "private String readFile(String path, Charset encoding) throws IOException \r\n\t{\r\n\t\tbyte[] encoded = Files.readAllBytes(Paths.get(path));\r\n\t\treturn new String(encoded, encoding);\r\n\t}", "public String readtexto() {\n String texto=\"\";\n try\n {\n BufferedReader fin =\n new BufferedReader(\n new InputStreamReader(\n openFileInput(\"datos.json\")));\n\n texto = fin.readLine();\n fin.close();\n }\n catch (Exception ex)\n {\n Log.e(\"Ficheros\", \"Error al leer fichero desde memoria interna\");\n }\n\n\n\n return texto;\n }", "public String ReadContent(File fileToRead) {\n StringBuilder spamFilterContent = new StringBuilder();\n String fileContent = \"\";\n try {\n BufferedReader bufferedReader = new BufferedReader(new FileReader(fileToRead));\n String line;\n\n while ((line = bufferedReader.readLine()) != null) {\n spamFilterContent.append(line);\n }\n bufferedReader.close();\n fileContent = spamFilterContent.toString();\n } catch (IOException e) {\n //You'll need to add proper error handling here\n }\n\n return fileContent;\n }", "private static String readFileContents(File file) throws FileNotFoundException {\n StringBuilder fileContents = new StringBuilder((int) file.length());\n\n try (Scanner scanner = new Scanner(file)) {\n while (scanner.hasNext()) {\n fileContents.append(scanner.next());\n }\n return fileContents.toString();\n }\n }", "public String readFile(String fileName) throws IOException {\n BufferedReader br = new BufferedReader(new FileReader(fileName));\n try {\n StringBuilder sb = new StringBuilder();\n String line = br.readLine();\n\n while (line != null) {\n sb.append(line);\n sb.append(\"\\n\");\n line = br.readLine();\n }\n return sb.toString();\n } finally {\n br.close();\n }\n }", "public static String getStringFromFile(String filename) {\n if (Logger.get().isDebug()) {\n Logger.debug(\"Reading file {}\", filename);\n }\n List<String> read = FileKit.readLines(filename);\n if (!read.isEmpty()) {\n if (Logger.get().isTrace()) {\n Logger.trace(\"Read {}\", read.get(0));\n }\n return read.get(0);\n }\n return Normal.EMPTY;\n }", "public static String readOneString(String fileName)throws FileNotFoundException{\r\n StringBuilder sb=new StringBuilder();\r\n fileExists(fileName);\r\n log.fine(\"Reading one string from file: \"+fileName);\r\n try {\r\n BufferedReader in=new BufferedReader(new FileReader(fileName));\r\n try {\r\n String s;\r\n s=in.readLine();\r\n if(s==null){\r\n return null;\r\n }\r\n sb.append(s);\r\n }finally {\r\n in.close();\r\n }\r\n }catch (IOException e){\r\n throw new RuntimeException(e);\r\n }\r\n return sb.toString();\r\n }" ]
[ "0.801817", "0.7921411", "0.7845346", "0.7754846", "0.7722213", "0.7684662", "0.76687104", "0.76086205", "0.75922763", "0.7503219", "0.74986273", "0.7482786", "0.74488", "0.74478126", "0.74217224", "0.7407639", "0.7380257", "0.7343046", "0.7260131", "0.7249501", "0.7189882", "0.7185434", "0.71773624", "0.7171909", "0.7154548", "0.71268594", "0.711532", "0.7102745", "0.7097572", "0.7077546", "0.7059539", "0.70464647", "0.7036619", "0.70164055", "0.70137554", "0.7011319", "0.7006777", "0.69977087", "0.69931555", "0.69695926", "0.69610035", "0.69538766", "0.6948638", "0.69271874", "0.6917601", "0.6916054", "0.69063264", "0.69037235", "0.6882334", "0.6878481", "0.68524146", "0.68516797", "0.6846551", "0.6828225", "0.682666", "0.68157935", "0.6812707", "0.68038815", "0.680291", "0.6796788", "0.67919904", "0.6786941", "0.6774695", "0.6773603", "0.67619884", "0.6760712", "0.6756221", "0.67499775", "0.674988", "0.67437106", "0.6733558", "0.6728002", "0.67255616", "0.671729", "0.6713906", "0.6709304", "0.6706574", "0.6702174", "0.66986006", "0.66986006", "0.66986006", "0.66964734", "0.66862124", "0.6682301", "0.66790867", "0.66653556", "0.6662665", "0.6654373", "0.6624627", "0.6619529", "0.6613153", "0.6593811", "0.65920204", "0.65875906", "0.6587276", "0.6586951", "0.65722287", "0.6570958", "0.6569472", "0.6567294" ]
0.6776315
62
moves the face across the screen
public void animateFace(double x1, double y1, double x2, double y2){ if(x1 <= 720){ x1+= 5; y1 = (int)(y1 + (10 * Math.sin(.03 * x1))); if(y1 > 280){ y1 = 280; } } else{ x1 = 0; } if(x2 <= 720){ x2+= 5; y2 = (int)(y2 + (10 * Math.sin(.03 * x2))); if(y2 > 320){ y2 = 320; } } else{ x2 = 0; } if(stringX <= 720){ stringX += 5; stringY = (int)(stringY + (10 * Math.sin(.03 * stringX))); if(stringY > 320){ stringY = 320; } } else{ stringX = 0; } setPosition(x1, y1, x2, y2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateDirectionFace();", "public void act() \n {\n move(-2);\n if(isAtEdge())\n {\n turn(180);\n getImage().mirrorVertically();\n }\n }", "public void faceUp(){\r\n changePlace(hand);\r\n //do a magical work\r\n changePlace(graveYard);\r\n }", "public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}", "public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}", "public void move() {\n\t\tif (!visible) {\r\n\t\t\thideTurtle();\r\n\t\t}\r\n\t}", "public void move(){\n super.move();\n if(getX() >= Main.WIDTH - getWidth() * 1.5) {\n setDirection(-1);\n } else if(getX() <= 50) {\n setDirection(1);\n }\n }", "private void goAcrossWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.move();\n\t\tthis.turnRight();\n\t}", "private void turnAround() {\r\n this.setCurrentDirection(-getCurrentDirection());\r\n }", "public void up() {\n\t\tswitch (facing){\n\t\tcase \"RIGHT\" :\n\t\t\tvely = 0;\n\t\t\tvelx = 1.5;\n\t\t\tbreak;\n\t\tcase \"LEFT\" :\n\t\t\tvely = 0;\n\t\t\tvelx = -1.5;\n\t\t\tbreak;\n\t\tcase \"UP\" :\n\t\t\tvely = -1.5;\n\t\t\tvelx = 0;\n\t\t\tbreak;\n\t\tcase \"DOWN\" :\n\t\t\tvely = 1.5;\n\t\t\tvelx = 0;\n\t\t\tbreak;\n\t\t}\n\t}", "public void move() {\n\t\tx+= -1;\n\t\tif (x < 0) {\n\t\t\tx = (processing.width - 1);\n\t\t}\n\t\ty+= 1;\n\t\tif (y > processing.height-1)\n\t\t\ty=0;\n\t}", "@Override\r\n\tpublic void moveTo(float x, float y) {\n\t\t\r\n\t}", "private void faceBackwards(){\n\t\tturnLeft();\n\t\tturnLeft();\n\t}", "public void move() {\n float xpos = thing.getX(), ypos = thing.getY();\n int xdir = 0, ydir = 0;\n if (left) xdir -= SPEED; if (right) xdir += SPEED;\n if (up) ydir -= SPEED; if (down) ydir += SPEED;\n xpos += xdir; ypos += ydir;\n\n VeggieCopter game = thing.getGame();\n int w = game.getWindowWidth(), h = game.getWindowHeight();\n int width = thing.getWidth(), height = thing.getHeight();\n if (xpos < 1) xpos = 1; if (xpos + width >= w) xpos = w - width - 1;\n if (ypos < 1) ypos = 1; if (ypos + height >= h) ypos = h - height - 1;\n thing.setPos(xpos, ypos);\n }", "public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}", "void move() {\n\t\tif (reachedEdge()) {\n\t\t\tvelocityX = velocityX * -1;\n\t\t\ty = y + 50;\n\t\t}\n\t\tif (reachedLeft()) {\n\t\t\tvelocityX = velocityX * -1;\n\t\t\ty = y + 50;\n\t\t}\n\n\t\tx = x + velocityX;\n\t}", "public void up(){\n\t\tmoveX=0;\n\t\tmoveY=-1;\n\t}", "public void stepForwad() {\n\t\t\t\n\t\t\tswitch(this.direction) {\n\t\t\t\tcase 0:\n\t\t\t\t\tthis.y += 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tthis.x += 1;\n\t\t\t\t\tthis.y += 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tthis.x += 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tthis.x += 1;\n\t\t\t\t\tthis.y -= 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tthis.y -= 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tthis.x -= 1;\n\t\t\t\t\tthis.y -= 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tthis.x -= 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7: \n\t\t\t\t\tthis.x -= 1;\n\t\t\t\t\tthis.y += 1;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tthis.x = (this.worldWidth + this.x)%this.worldWidth;\n\t\t\tthis.y = (this.worldHeight + this.y)%this.worldHeight;\n\t\t}", "@Override\r\n\tpublic void render () {\n\t if(Gdx.input.isKeyPressed(Input.Keys.LEFT))\r\n sprMstanding.translateX(-1f);\r\n\t if(Gdx.input.isKeyPressed(Input.Keys.RIGHT))\r\n sprMstanding.translateX(1f);\r\n\r\n //sprGoomba sliding across\r\n sprGoomba.translateX(-1f);\r\n\r\n\r\n\t //background\r\n\t\tGdx.gl.glClearColor(0, 0, 1, 1);\r\n\t\tGdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\r\n\t\tbatch.begin();\r\n\t\t//draw Mario\r\n\t\tbatch.draw(sprMstanding, sprMstanding.getX(), sprMstanding.getY(),sprMstanding.getWidth()/2,sprMstanding.getHeight()/2,\r\n sprMstanding.getWidth(),sprMstanding.getHeight(),sprMstanding.getScaleX(),sprMstanding.getScaleY(),sprMstanding.getRotation());\r\n\t\t//draw sprGoomba\r\n batch.draw(sprGoomba, sprGoomba.getX(), sprGoomba.getY(), sprGoomba.getWidth()/2,sprGoomba.getHeight()/2,\r\n sprGoomba.getWidth(), sprGoomba.getHeight(),sprGoomba.getScaleX(), sprGoomba.getScaleY(), sprGoomba.getRotation());\r\n\t\tbatch.end();\r\n\t}", "public void move()\n {\n xPosition = xPosition + xSpeed;\n yPosition = yPosition + ySpeed;\n draw();\n if (xPosition >= rightBound - diameter)\n {\n xSpeed = -(xSpeed);\n\n }\n else\n {\n }\n if (xPosition <= leftBound)\n {\n xSpeed = -(xSpeed);\n\n }\n else\n {\n }\n if (yPosition <= upBound)\n {\n ySpeed = -(ySpeed);\n\n }\n else\n {\n }\n if (yPosition >= lowBound - diameter)\n {\n ySpeed = -(ySpeed);\n\n }\n else \n {\n }\n\n }", "public void move() {\n\t\tdouble xv = 0;\r\n\t\tdouble yv = 0;\r\n\t\t//this method allows the entity to hold both up and down (or left and right) and not move. gives for smooth direction change and movement\r\n\t\tif (moveRight) {\r\n\t\t\txv+=getSpeed();\r\n\t\t\torientation = Orientation.EAST;\r\n\t\t}\r\n\t\tif (moveLeft) {\r\n\t\t\txv-=getSpeed();\r\n\t\t\torientation = Orientation.WEST;\r\n\t\t}\r\n\t\tif (moveUp)\r\n\t\t\tyv-=getSpeed();\r\n\t\tif (moveDown)\r\n\t\t\tyv+=getSpeed();\r\n\t\tif (!doubleEquals(xv,0) || !doubleEquals(yv,0)) {\r\n\t\t\t((Player)this).useMana(0.1);\r\n\t\t\tImageIcon img = new ImageIcon(\"lib/assets/images/fireball.png\");\r\n\t\t\tBufferedImage image = new BufferedImage(32,32,BufferedImage.TYPE_INT_ARGB);\r\n\t\t\tGraphics g = image.getGraphics();\r\n\t\t\tg.drawImage(img.getImage(), 0, 0, image.getWidth(), image.getHeight(), null);\r\n\t\t\tColor n = loop[ind%loop.length];\r\n\t\t\tind++;\r\n\t\t\timage = ImageProcessor.scaleToColor(image, n);\r\n\t\t\t//PopMessage.addPopMessage(new PopMessage(image,getX(),getY()));\r\n\t\t}\r\n\t\telse\r\n\t\t\t((Player)this).useMana(-0.1);\r\n\t\tmove(xv,yv);\r\n\t}", "public void laserMoveUp()\r\n\t{\r\n\r\n\t\tif (y > 0)\r\n\t\t\ty -= 20;\r\n\r\n\t\telse\r\n\t\t\tdestroyed = true;\r\n\r\n\t}", "private void changeCameraPosition() {\n yPosition = mPerspectiveCamera.position.y;\n if (isMovingUp) {\n yPosition += 0.1;\n if (yPosition > 20)\n isMovingUp = false;\n } else {\n yPosition -= 0.1;\n if (yPosition < 1)\n isMovingUp = true;\n }\n\n mPerspectiveCamera.position.set(xPosition, yPosition, zPosition);\n mPerspectiveCamera.update();\n }", "public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}", "boolean turnFaceDown();", "public void move() {\r\n posX += movementX;\r\n posY += movementY;\r\n anchorX += movementX;\r\n anchorY += movementY;\r\n }", "void moveForward();", "@Override\n\tpublic void moveCamera() {\n\n\t}", "public void moveForward()\r\n\t{\r\n\t\tif(loc[1] > 1)\r\n\t\t{\r\n\t\t\tthis.loc[0] -= Math.sin(Math.toRadians(heading-90))*distance; \r\n\t\t\tthis.loc[2] -= Math.cos(Math.toRadians(heading-90))*distance;\r\n\t\t}\r\n\t}", "public void move()\n {\n universe.erase(this);\n \n // compute new position\n \n yPosition += ySpeed;\n xPosition += xSpeed;\n\n // check if it has hit the ground\n if(yPosition >= (groundPosition - diameter) && ySpeed > 0) {\n yPosition = groundPosition - diameter;\n ySpeed = -ySpeed; \n }\n // check if top\n if(yPosition <= 0 && ySpeed < 0){\n ySpeed = -ySpeed; \n }\n //check right\n if(xPosition >= (universe.getLength() - diameter) && xSpeed >0){\n xSpeed = -xSpeed;\n }\n //check left\n if(xPosition <= 0 && xSpeed < 0){\n xSpeed = -xSpeed;\n }\n \n // draw again at new position\n universe.draw(this);\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 }", "protected abstract void moveTo(final float x, final float y);", "public void move()\r\n\t{\r\n\t\tmoveHor(xVel);\r\n\t\tmoveVert(yVel);\r\n\t}", "public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }", "public void setFaceDown(){faceUp = false;}", "public void swim() {\r\n\t\tif(super.getPosition()[0] == Ocean.getInstance().getWidth()-71){\r\n\t\t\tinvX = true;\r\n\t\t} else if(super.getPosition()[0] == 0){\r\n\t\t\tinvX = false;\r\n\t\t}\r\n\t\tif(super.getPosition()[1] == Ocean.getInstance().getDepth()-71){\r\n\t\t\tinvY = true;\r\n\t\t} else if(super.getPosition()[1] == 0){\r\n\t\t\tinvY = false;\r\n\t\t}\r\n\t\tif(invX){\r\n\t\t\tsuper.getPosition()[0]-=1;\r\n\t\t} else {\r\n\t\t\tsuper.getPosition()[0]+=1;\r\n\t\t}\r\n\t\tif(invY){\r\n\t\t\tsuper.getPosition()[1]-=1;\r\n\t\t} else {\r\n\t\t\tsuper.getPosition()[1]+=1;\r\n\t\t}\r\n\t}", "void updateFace(Face face) {\n mFace = face;\n postInvalidate();\n }", "public void move() {\r\n\t\tsetY(getY() + 134);\r\n\t\tmyImage = myImage.getScaledInstance(100, 300, 60);\r\n\r\n\t}", "public void act() \n {\n move(-16);\n \n \n if (isAtEdge())\n {\n setLocation(700,getY());\n }\n \n if (isTouching(Shots.class))\n {\n getWorld().addObject(new SpaceObject(), 500,Greenfoot.getRandomNumber(400));\n }\n \n }", "public void move()\r\n {\r\n if(goRight)\r\n {\r\n setLocation(getX()+10,getY()+3);\r\n if(contFall<8)\r\n contFall++;\r\n else contFall=0;\r\n switch(contFall)\r\n {\r\n case 0:setImage(im1);\r\n break;\r\n case 2:setImage(im2);\r\n break;\r\n case 4:setImage(im3);\r\n break;\r\n case 6:setImage(im4);\r\n break;\r\n }\r\n }else\r\n {\r\n setLocation(getX()-10,getY()+3);\r\n if(contFall<8)\r\n contFall++;\r\n else contFall=0;\r\n switch(contFall)\r\n {\r\n case 0:setImage(im1);\r\n break;\r\n case 2:setImage(im2);\r\n break;\r\n case 4:setImage(im3);\r\n break;\r\n case 6:setImage(im4);\r\n break;\r\n }\r\n }\r\n if(getY()>getWorld().getHeight())\r\n ((CaveWorld)(getWorld())).deleteAxe(this);\r\n }", "protected void up() {\n move(positionX, positionY - 1);\n orientation = BattleGrid.RIGHT_ANGLE * 3;\n }", "private void moveToWall() {\n\t\t// TODO Auto-generated method stub\n\t\t// if front is clear then keep moving\n\t\twhile (this.frontIsClear()) {\n\t\t\tthis.move();\n\t\t}\n\t}", "public void updateFaceDir() {\n\t\tif (faceDirection != null)\n\t\t\tface(location.transform(faceDirection.getDiffX(),\n\t\t\t\t\tfaceDirection.getDiffY(), 0));\n\t}", "public void move() {\r\n\r\n\t\tif(x < 0) {\r\n\t\t\tx = 400;\r\n\t\t}\r\n\r\n\t\t// factor for speed increase\r\n\t\tx -= 1 * factor;\r\n\t}", "private void moveFaceClockwise(RubiksCube initialState, RubiksFace.RubiksFacePosition position) {\n moveSquare(initialState, position, 1, 1, position, 3, 1);\n moveSquare(initialState, position, 2, 1, position, 3, 2);\n moveSquare(initialState, position, 3, 1, position, 3, 3);\n moveSquare(initialState, position, 3, 2, position, 2, 3);\n moveSquare(initialState, position, 3, 3, position, 1, 3);\n moveSquare(initialState, position, 2, 3, position, 1, 2);\n moveSquare(initialState, position, 1, 3, position, 1, 1);\n moveSquare(initialState, position, 1, 2, position, 2, 1);\n\n // Relative faces to the selected position\n RubiksFace.RubiksFacePosition upEdgeFace;\n RubiksFace.RubiksFacePosition downEdgeFace;\n RubiksFace.RubiksFacePosition leftEdgeFace;\n RubiksFace.RubiksFacePosition rightEdgeFace;\n\n // Registry to store color outside of cube when turning\n RubiksColorReference registry1;\n RubiksColorReference registry2;\n RubiksColorReference registry3;\n\n switch (position) {\n case FRONT:\n upEdgeFace = RubiksFace.RubiksFacePosition.UP;\n downEdgeFace = RubiksFace.RubiksFacePosition.DOWN;\n leftEdgeFace = RubiksFace.RubiksFacePosition.LEFT;\n rightEdgeFace = RubiksFace.RubiksFacePosition.RIGHT;\n\n // Registry is used to store rows so they don't get overwritten\n registry1 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,1));\n registry2 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,2));\n registry3 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,3));\n\n // Change the up edge\n swapColors(upEdgeFace, 1,3, registry1);\n swapColors(upEdgeFace, 2,3, registry2);\n swapColors(upEdgeFace, 3,3, registry3);\n\n // Change the right edge\n swapColors(rightEdgeFace, 1,1, registry1);\n swapColors(rightEdgeFace, 1,2, registry2);\n swapColors(rightEdgeFace, 1,3, registry3);\n\n // Change the down edge\n swapColors(downEdgeFace, 3,1, registry1);\n swapColors(downEdgeFace, 2,1, registry2);\n swapColors(downEdgeFace, 1,1, registry3);\n\n // Change the left edge\n swapColors(leftEdgeFace, 3,3, registry1);\n swapColors(leftEdgeFace, 3,2, registry2);\n swapColors(leftEdgeFace, 3,1, registry3);\n\n break;\n case LEFT:\n upEdgeFace = RubiksFace.RubiksFacePosition.UP;\n downEdgeFace = RubiksFace.RubiksFacePosition.DOWN;\n leftEdgeFace = RubiksFace.RubiksFacePosition.BACK;\n rightEdgeFace = RubiksFace.RubiksFacePosition.FRONT;\n\n // Registry is used to store rows so they don't get overwritten\n registry1 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,1));\n registry2 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,2));\n registry3 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,3));\n\n // Change the up edge\n swapColors(upEdgeFace, 1,3, registry1);\n swapColors(upEdgeFace, 1,2, registry2);\n swapColors(upEdgeFace, 1,1, registry3);\n\n // Change the right edge\n swapColors(rightEdgeFace, 1,1, registry1);\n swapColors(rightEdgeFace, 1,2, registry2);\n swapColors(rightEdgeFace, 1,3, registry3);\n\n // Change the down edge\n swapColors(downEdgeFace, 1,1, registry1);\n swapColors(downEdgeFace, 1,2, registry2);\n swapColors(downEdgeFace, 1,3, registry3);\n\n // Change the left edge\n swapColors(leftEdgeFace, 3,3, registry1);\n swapColors(leftEdgeFace, 3,2, registry2);\n swapColors(leftEdgeFace, 3,1, registry3);\n\n break;\n case RIGHT:\n upEdgeFace = RubiksFace.RubiksFacePosition.UP;\n downEdgeFace = RubiksFace.RubiksFacePosition.DOWN;\n leftEdgeFace = RubiksFace.RubiksFacePosition.FRONT;\n rightEdgeFace = RubiksFace.RubiksFacePosition.BACK;\n\n // Registry is used to store rows so they don't get overwritten\n registry1 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,1));\n registry2 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,2));\n registry3 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,3));\n\n // Change the up edge\n swapColors(upEdgeFace, 3,1, registry1);\n swapColors(upEdgeFace, 3,2, registry2);\n swapColors(upEdgeFace, 3,3, registry3);\n\n // Change the right edge\n swapColors(rightEdgeFace, 1,1, registry1);\n swapColors(rightEdgeFace, 1,2, registry2);\n swapColors(rightEdgeFace, 1,3, registry3);\n\n // Change the down edge\n swapColors(downEdgeFace, 3,3, registry1);\n swapColors(downEdgeFace, 3,2, registry2);\n swapColors(downEdgeFace, 3,1, registry3);\n\n // Change the left edge\n swapColors(leftEdgeFace, 3,1, registry1);\n swapColors(leftEdgeFace, 3,2, registry2);\n swapColors(leftEdgeFace, 3,3, registry3);\n\n break;\n case BACK:\n upEdgeFace = RubiksFace.RubiksFacePosition.UP;\n downEdgeFace = RubiksFace.RubiksFacePosition.DOWN;\n leftEdgeFace = RubiksFace.RubiksFacePosition.RIGHT;\n rightEdgeFace = RubiksFace.RubiksFacePosition.LEFT;\n\n // Registry is used to store rows so they don't get overwritten\n registry1 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,1));\n registry2 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,2));\n registry3 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,3));\n\n // Change the up edge\n swapColors(upEdgeFace, 1,1, registry1);\n swapColors(upEdgeFace, 2,1, registry2);\n swapColors(upEdgeFace, 3,1, registry3);\n\n // Change the right edge\n swapColors(rightEdgeFace, 1,3, registry1);\n swapColors(rightEdgeFace, 1,2, registry2);\n swapColors(rightEdgeFace, 1,1, registry3);\n\n // Change the down edge\n swapColors(downEdgeFace, 3,3, registry1);\n swapColors(downEdgeFace, 2,3, registry2);\n swapColors(downEdgeFace, 1,3, registry3);\n\n // Change the left edge\n swapColors(leftEdgeFace, 3,1, registry1);\n swapColors(leftEdgeFace, 3,2, registry2);\n swapColors(leftEdgeFace, 3,3, registry3);\n\n break;\n case UP:\n upEdgeFace = RubiksFace.RubiksFacePosition.BACK;\n downEdgeFace = RubiksFace.RubiksFacePosition.FRONT;\n leftEdgeFace = RubiksFace.RubiksFacePosition.LEFT;\n rightEdgeFace = RubiksFace.RubiksFacePosition.RIGHT;\n\n // Registry is used to store rows so they don't get overwritten\n registry1 = new RubiksColorReference(getRubiksFace(rightEdgeFace).getSquare(1,1));\n registry2 = new RubiksColorReference(getRubiksFace(rightEdgeFace).getSquare(2,1));\n registry3 = new RubiksColorReference(getRubiksFace(rightEdgeFace).getSquare(3,1));\n\n // Change the down edge\n swapColors(downEdgeFace, 1, 1, registry1);\n swapColors(downEdgeFace, 2, 1, registry2);\n swapColors(downEdgeFace, 3, 1, registry3);\n\n // Change the left edge\n swapColors(leftEdgeFace, 1, 1, registry1);\n swapColors(leftEdgeFace, 2, 1, registry2);\n swapColors(leftEdgeFace, 3, 1, registry3);\n\n // Change the up edge\n swapColors(upEdgeFace, 1, 1, registry1);\n swapColors(upEdgeFace, 2, 1, registry2);\n swapColors(upEdgeFace, 3, 1, registry3);\n\n // Change the right edge\n swapColors(rightEdgeFace, 1, 1, registry1);\n swapColors(rightEdgeFace, 2, 1, registry2);\n swapColors(rightEdgeFace, 3, 1, registry3);\n\n break;\n case DOWN:\n upEdgeFace = RubiksFace.RubiksFacePosition.FRONT;\n downEdgeFace = RubiksFace.RubiksFacePosition.BACK;\n leftEdgeFace = RubiksFace.RubiksFacePosition.LEFT;\n rightEdgeFace = RubiksFace.RubiksFacePosition.RIGHT;\n\n // Registry is used to store rows so they don't get overwritten\n registry1 = new RubiksColorReference(getRubiksFace(rightEdgeFace).getSquare(1,3));\n registry2 = new RubiksColorReference(getRubiksFace(rightEdgeFace).getSquare(2,3));\n registry3 = new RubiksColorReference(getRubiksFace(rightEdgeFace).getSquare(3,3));\n\n // Change the down edge\n swapColors(downEdgeFace, 1, 3, registry1);\n swapColors(downEdgeFace, 2, 3, registry2);\n swapColors(downEdgeFace, 3, 3, registry3);\n\n // Change the left edge\n swapColors(leftEdgeFace, 1, 3, registry1);\n swapColors(leftEdgeFace, 2, 3, registry2);\n swapColors(leftEdgeFace, 3, 3, registry3);\n\n // Change the up edge\n swapColors(upEdgeFace, 1, 3, registry1);\n swapColors(upEdgeFace, 2, 3, registry2);\n swapColors(upEdgeFace, 3, 3, registry3);\n\n // Change the right edge\n swapColors(rightEdgeFace, 1, 3, registry1);\n swapColors(rightEdgeFace, 2, 3, registry2);\n swapColors(rightEdgeFace, 3, 3, registry3);\n\n break;\n }\n }", "@Override\n void move(int ScreenHeight, int ScreenWidth) {\n turnAround();\n moveRightLeft(ScreenWidth);\n moveUpDown(ScreenHeight);\n }", "public void Move()\n {\n this.x += this.speed;\n\n //Cutoff the position\n if (this.x <= 2)\n {\n this.x = 2;\n }\n else if (this.x >= GameConstants.SCREEN_WIDTH - 2 * this.imageWidth)\n {\n this.x = GameConstants.SCREEN_WIDTH - 2 * this.imageWidth;\n }\n }", "public void move()\n\t{\n\t\tx = x + frogVelocityX;\n\t}", "public void move(){\n\t\t\tbx += (int)movex;\n\t\t\tby += (int)movey;\n\t\t\tthis.setBounds((int)bx,(int)by,10,10);\n\n\t\t\t\n\t\t}", "public void moveActor();", "public void stopMoving()\n {\n mouthPosition = 0;\n }", "public void move(){\n x+=xDirection;\n y+=yDirection;\n }", "@Override\r\n\tpublic void update() {\n\t\tx += dx;\r\n\t\ty += dy;\r\n\t if(x<0 && dx<0) dx=-dx;\r\n\t if(x>GamePanel.WIDTH-side && dx>0) dx=-dx;\r\n\t}", "public void facePosition(Position position) {\n this.getFaceCoordinates().setX(2 * position.getX() + 1);\n this.getFaceCoordinates().setY(2 * position.getY() + 1);\n this.getFlags().flag(Flag.FACE_COORDINATE);\n }", "@Override\n public void onMove(float x, float y) {\n }", "public void act(){\n // Removing object, if out of the simulated zone\n if (atWorldEdge()){\n getWorld().removeObject(this);\n return;\n }\n\n //Move Thanos up\n setLocation (getX(), getY() - speed);\n }", "@Override\r\n\tpublic void turn(float delta) {\n\t\t\r\n\t}", "public void paint(){\n\t\tif(this.x+GameScreen.backCam<900 && this.x+GameScreen.backCam>-60){\n\t\t\tGraphicsHandler.drawImage(texture,this.x+GameScreen.backCam,this.y+GameScreen.yCam,size,size);\n\t\t}\n\t}", "private void moveAround()\n {\n if(getY()>75)\n {\n setRotation(270);\n }\n else if(getX()<75)\n {\n setRotation(0);\n }\n else if (getX()>getWorld().getWidth()-50)\n {\n setRotation(180);\n }\n else if (isTouching(Player.class))\n {\n Actor actor = getOneIntersectingObject(Player.class);\n turnTowards(actor.getX(), actor.getY());\n turn(180);\n }\n else if(Greenfoot.getRandomNumber(100) < 3)\n {\n setRotation(Greenfoot.getRandomNumber(360));\n }\n move(1);\n }", "boolean turnFaceUp();", "@Override\n public void doMove() {\n if (((-Transform.getOffsetTranslation().getX() - (Game.getWindowWidth()) < getPosition().getX()\n && (-Transform.getOffsetTranslation().getX() + (Game.getWindowWidth() * 2)) > getPosition().getX()\n && (-Transform.getOffsetTranslation().getY() - (Game.getWindowHeight())) < getPosition().getY()\n && (-Transform.getOffsetTranslation().getY() + (Game.getWindowHeight() * 2)) > getPosition().getY()))) {\n addPosition(new Vector(Velocity).mult(Game.getDelta()));\n } else {\n Level().RemoveObject(this);\n }\n }", "public void act() \n {\n // Add your action code here.\n /*\n if ( pixelsMoved >= 20 )\n {\n moving = false;\n pixelsMoved = 0;\n }\n */\n if ( moving )\n {\n move(1);\n pixelsMoved++;\n \n if ( pixelsMoved >= 20 )\n {\n setMoving( false );\n }\n }\n }", "public void flip(){\n this.faceDown = !this.faceDown;\n }", "public void frogReposition() {\n\t\tsetY(FrogPositionY);\n\t\tsetX(FrogPositionX);\t\t\n\t\t}", "public void move(){\n\t\t\n\t}", "public void move()\r\n\t{\r\n\t\ty-=8;\r\n\t}", "public void turnLeft()\r\n\t{\r\n\t\t\r\n\t\theading -= 2; //JW\r\n\t\t//Following the camera:\r\n\t\t\t//heading -= Math.sin(Math.toRadians(15))*distance; \r\n\t\t\t//heading -= Math.cos(Math.toRadians(15))*distance;\r\n\t}", "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tif (gr.isValid(next)) {\n\t\t\tsetDirection(getLocation().getDirectionToward(next));\n\t\t\tmoveTo(next);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t\tFlower flower = new Flower(getColor());\n\t\tflower.putSelfInGrid(gr, loc);\n\t}", "public void moveCam() {\n float x = this.cam_bind_x; //current pos the camera is binded to\n float y = this.cam_bind_y;\n\n //this amazing camera code is from: https://stackoverflow.com/questions/24047172/libgdx-camera-smooth-translation\n Vector3 target = new Vector3(x+MathUtils.cos(Global.m_angle)*20,y+MathUtils.sin(Global.m_angle)*20,0);\n final float speed = 0.1f, ispeed=1.0f-speed;\n\n Vector3 cameraPosition = cam.position;\n cameraPosition.scl(ispeed);\n target.scl(speed);\n cameraPosition.add(target);\n cam.position.set(cameraPosition);\n\n this.updateCam();\n\n }", "void move(int row, int col) {\n\n int rowdiff = row - this._row; int coldiff = col - this.column;\n if (((Math.abs(rowdiff)) > 1) || (Math.abs(coldiff)) > 1);\n || (row >= _side) || (col >= _side) || (row < 0) || (col < 0);\n || ((Math.abs(coldiff)) == 1) && ((Math.abs(rowdiff)) == 1))); {\n throw new java.lang.IllegalArgumentException();\n } \n else if (rowdiff == 1) && (coldiff == 0)//up method\n { \n if (((isPaintedSquare(row, col) && isPaintedFace(2)) || \n (!isPaintedSquare(row, col) && !isPaintedFace(2))) {\n up_method(cube)\n } else if (isPaintedFace(2) == true) {\n _facePainted[2] == false\n grid[row][col] == true\n up_method(cube)\n }\n else {\n _facePainted[2] == true\n grid[row][col] == false \n up_method(cube)\n }\n }\n else if ((rowdiff == -1) && (coldiff == 0)) //down method\n\n { \n if (((isPaintedSquare(row, col) && isPaintedFace(4)) || \n (!isPaintedSquare(row, col) && !isPaintedFace(4))) {\n up_method(cube)\n } else if (isPaintedFace(4) == true) {\n _facePainted[4] == false\n grid[row][col] == true\n up_method(cube)\n } else {\n _facePainted[4] == true\n grid[row][col] == false \n up_method(cube)\n }\n }\n else if (rowdiff == 0) && (coldiff == -1) { //left method\n if (((isPaintedSquare(row, col) && isPaintedFace(5)) || \n (!isPaintedSquare(row, col) && !isPaintedFace(5))) {\n up_method(cube)\n } else if (isPaintedFace(5) == true) {\n _facePainted[5] == false\n grid[row][col] == true\n up_method(cube)}\n else {\n _facePainted[5] == true\n grid[row][col] == false \n up_method(cube)}\n }\n else if ((rowdiff == 0) && (coldiff == 1)) { //right method\n if (((isPaintedSquare(row, col) && isPaintedFace(6)) || \n (!isPaintedSquare(row, col) && !isPaintedFace(6))) {\n up_method(cube)\n } else if (isPaintedFace(6) == true) {\n _facePainted[6] == false\n grid[row][col] == true\n up_method(cube)}\n else {\n _facePainted[6] == true\n grid[row][col] == false \n up_method(cube)\n \n }\n }\n\n\n }", "public void move() {\n\t\tthis.move(velocity.x, velocity.y);\n\t}", "private void updateSprite(){\n //facing front\n getImage().clear();\n getImage().drawImage(SHEET,-(frame%SHEET_W)*SPRITE_W,0);\n if(!goLeft) getImage().mirrorHorizontally();\n if (iframes>0&&iframes%10<5) setImage(SpriteHelper.makeWhite( getImage()));\n else frame = frame + 1 % (SHEET_H* SHEET_W);\n }", "private void move() {\n\t\t\tangle += Math.PI/24;\n\t\n\t\t\tcow.locX = Math.sin(angle) * 2.5 + player.getLocation().getX();\n\t\t\tcow.locZ = Math.cos(angle) * 2.5 + player.getLocation().getZ();\n\t\t\t\n\t\t\tLocation loc = new Location(player.getWorld(), cow.locX, player.getLocation().getY() + 1.5, cow.locZ);\n\t\t\tloc.setDirection(player.getLocation().subtract(loc).toVector()); //Look at the player\n\t\t\t\n\t\t\tPacketHandler.teleportFakeEntity(player, cow.getId(), loc);\n\t\t}", "public void turnSmaround()\n { \n Wall w= (Wall)getOneIntersectingObject(Wall.class);\n wX=w.getX();\n wY=w.getY();\n }", "private void moveClawUp() {\n\t\tMotor.A.setSpeed(45);\n\t\tMotor.A.rotate(90);\n\t\t\n\t}", "public void setFace(CardFace face) {\n if (face == CardFace.FACE_DOWN) {\n cardFace = CardFace.FACE_DOWN;\n sprite.texture = faceDownTexture;\n } else {\n cardFace = CardFace.FACE_UP;\n sprite.texture = faceUpTexture;\n }\n }", "private void goUpWall() {\n\t\t// TODO Auto-generated method stub\n\t\tthis.turnLeft();\n\t\tthis.move(2);\n\t\tthis.turnRight();\n\t}", "@Override\n\t\t\t\tpublic void drag(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer) {\n\t\t\t\t\tgameObject.moveBy(x-gameObject.getWidth()/2, y-gameObject.getHeight()/2);\n\t\t\t\t}", "@Override\n\tpublic void update(){\n\t\t\n\t\tx += dx;\n\t\tif(x <= 2){\n\t\t\tx = 2;\n\t\t}else if(x >= ((this.width+this.paddlewidth)-350)){\n\t\t\tx = (this.width+this.paddlewidth)-350;\n\t\t}else if(x <= Dimensions.PADDLE_LEFT){\n\t\t\tx = Dimensions.PADDLE_LEFT;\n\t\t}\n\t}", "public void move() {\n Grid<Actor> gr = getGrid();\n if (gr == null) {\n return;\n }\n Location loc = getLocation();\n if (gr.isValid(next)) {\n setDirection(getLocation().getDirectionToward(next));\n moveTo(next);\n } else {\n removeSelfFromGrid();\n }\n Flower flower = new Flower(getColor());\n flower.putSelfInGrid(gr, loc);\n }", "@Override\n\tvoid update(){\n\n\t\t\tif(Frogger.flag==1){\n\t\t\t\tif(orientation == Orientation.UP) y -= step;\n\t\t\t\telse if (orientation == Orientation.DOWN) y += step;\n\t\t\t\telse if (orientation == Orientation.RIGHT) x += step;\n\t\t\t\telse if (orientation == Orientation.LEFT) x -= step;\n\t\t}\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}", "void moveTo(int dx, int dy);", "private void move() {\n\t\t\tx += Math.PI/12;\n\t\t\thead.locY = intensity * Math.cos(x) + centerY;\n\t\t\thead.yaw = spinYaw(head.yaw, 3f);\n\t\t\t\t\t\n\t\t\tPacketHandler.teleportFakeEntity(player, head.getId(), \n\t\t\t\tnew Location(player.getWorld(), head.locX, head.locY, head.locZ, head.yaw, 0));\n\t\t}", "public void move() {\r\n\t\tSystem.out.print(\"This Goose moves forward\");\r\n\t}", "@Override\n\tpublic void move() {\n\t\tx += ((direction) * xSpeed);\n\t\t//If any sprite has collided with the left or right edge of the screen set collided to true\n\t\tif (x >= 800 - spriteImage.getWidth(null) || x <= 0) collided = true;\n\t}", "public void moveUp() {\n\t\tposY += speed;\n\t}", "void moveUp() {\n\t\tsetY(y-1);\r\n\t\tdx=0;\r\n\t\tdy=-1;\r\n\t}", "@Override\n protected void moveOver(){\n incrementXPos(getWidth()/2);\n if(pointUp){\n incrementYPos(-1*getHeight());\n } else {\n incrementYPos(getHeight());\n }\n incrementCol();\n setPointDirection();\n }", "private void move() {\n acceleration.accelerate(velocity, position);\r\n }", "public void fly() {\n double x = getPosition().getX();\n double y = getPosition().getY();\n\n // for turning around\n if (x >= 19 || x == 1) {\n xDirection = xDirection * (-1);\n }\n\n // switcher\n x = x + xDirection;\n y = y + yDirection;\n\n // change position call\n changePosition(x, y);\n\n // for inversing\n if (yDirection == 1) {\n yDirection = -1;\n } else if (yDirection == -1) {\n yDirection = 1;\n }\n }", "public void fruitRegrow()\n {\n fruit.makeInvisible();\n fruit.moveVertical(-60);\n fruit.makeVisible();\n }", "public void move()\n {\n double angle = Math.toRadians( getRotation() );\n int x = (int) Math.round(getX() + Math.cos(angle) * WALKING_SPEED);\n int y = (int) Math.round(getY() + Math.sin(angle) * WALKING_SPEED);\n setLocation(x, y);\n }", "public void move(int x, int y){\n universe.erase(this);\n this.yPosition = y;\n this.xPosition = x;\n universe.draw(this);\n }", "@Override\n\t\t\t\tpublic void drag(com.badlogic.gdx.scenes.scene2d.InputEvent event, float x, float y, int pointer) {\n\t\t\t\t\tgameObject.moveBy(x-gameObject.getWidth()/2, 0);\n\t\t\t\t}", "@Override\r\n protected void redrawCursor() {\n this.viewport.getCursor().moveAccordingly(this.finger.getFingerPitch(), this.finger.getFingerYaw());\r\n }", "private void adjustCameraPosition() {\n if (upward) {\n\n if (tilt<90) {\n tilt ++;\n zoom-=0.01f;\n } else {\n upward=false;\n }\n\n } else {\n if (tilt>0) {\n tilt --;\n zoom+=0.01f;\n } else {\n upward=true;\n }\n }\n }", "private void moveOffScreen(GObject element) {\r\n\t\tif (element != null && (element.getX() > getWidth()|| element.getX() + element.getWidth() < 0)) {\r\n\t\t\tremove(element);\r\n\t\t\telement = null;\r\n\t\t}\r\n\t}", "public void moveUp() {\r\n\t\tmy_cursor_location.y--;\r\n\t}", "public void move() {\r\n\t\tthis.vector2D = this.vector2D.add(Direction.DOWN.getUnitVector());\r\n\t}", "@Override\n public void move() {\n this.point.x += vector.x * getCurrentSpeed();\n this.point.y += vector.y * getCurrentSpeed();\n }", "private void moveFaceAntiClockwise(RubiksCube initialState, RubiksFace.RubiksFacePosition position) {\n moveSquare(initialState, position, 1, 1, position, 1, 3);\n moveSquare(initialState, position, 2, 1, position, 1, 2);\n moveSquare(initialState, position, 3, 1, position, 1, 1);\n moveSquare(initialState, position, 3, 2, position, 2, 1);\n moveSquare(initialState, position, 3, 3, position, 3, 1);\n moveSquare(initialState, position, 2, 3, position, 3, 2);\n moveSquare(initialState, position, 1, 3, position, 3, 3);\n moveSquare(initialState, position, 1, 2, position, 2, 3);\n\n // Relative faces to the selected position\n RubiksFace.RubiksFacePosition upEdgeFace;\n RubiksFace.RubiksFacePosition downEdgeFace;\n RubiksFace.RubiksFacePosition leftEdgeFace;\n RubiksFace.RubiksFacePosition rightEdgeFace;\n\n // Registry to store color outside of cube when turning\n RubiksColorReference registry1;\n RubiksColorReference registry2;\n RubiksColorReference registry3;\n\n switch (position) {\n case FRONT:\n upEdgeFace = RubiksFace.RubiksFacePosition.UP;\n downEdgeFace = RubiksFace.RubiksFacePosition.DOWN;\n leftEdgeFace = RubiksFace.RubiksFacePosition.LEFT;\n rightEdgeFace = RubiksFace.RubiksFacePosition.RIGHT;\n\n // Registry is used to store rows so they don't get overwritten\n registry1 = new RubiksColorReference(getRubiksFace(rightEdgeFace).getSquare(1,1));\n registry2 = new RubiksColorReference(getRubiksFace(rightEdgeFace).getSquare(1,2));\n registry3 = new RubiksColorReference(getRubiksFace(rightEdgeFace).getSquare(1,3));\n\n // Change the up edge\n swapColors(upEdgeFace, 1,3, registry1);\n swapColors(upEdgeFace, 2,3, registry2);\n swapColors(upEdgeFace, 3,3, registry3);\n\n // Change the left edge\n swapColors(leftEdgeFace, 3,1, registry1);\n swapColors(leftEdgeFace, 3,2, registry2);\n swapColors(leftEdgeFace, 3,3, registry3);\n\n // Change the down edge\n swapColors(downEdgeFace, 1,1, registry1);\n swapColors(downEdgeFace, 2,1, registry2);\n swapColors(downEdgeFace, 3,1, registry3);\n\n // Change the right edge\n swapColors(rightEdgeFace, 1,3, registry1);\n swapColors(rightEdgeFace, 1,2, registry2);\n swapColors(rightEdgeFace, 1,1, registry3);\n\n break;\n case LEFT:\n upEdgeFace = RubiksFace.RubiksFacePosition.UP;\n downEdgeFace = RubiksFace.RubiksFacePosition.DOWN;\n leftEdgeFace = RubiksFace.RubiksFacePosition.BACK;\n rightEdgeFace = RubiksFace.RubiksFacePosition.FRONT;\n\n // Registry is used to store rows so they don't get overwritten\n registry1 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,1));\n registry2 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,2));\n registry3 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,3));\n\n // Change the down edge\n swapColors(downEdgeFace, 1,3, registry1);\n swapColors(downEdgeFace, 1,2, registry2);\n swapColors(downEdgeFace, 1,1, registry3);\n\n // Change the right edge\n swapColors(rightEdgeFace, 1,3, registry1);\n swapColors(rightEdgeFace, 1,2, registry2);\n swapColors(rightEdgeFace, 1,1, registry3);\n\n // Change the up edge\n swapColors(upEdgeFace, 1,1, registry1);\n swapColors(upEdgeFace, 1,2, registry2);\n swapColors(upEdgeFace, 1,3, registry3);\n\n // Change the left edge\n swapColors(leftEdgeFace, 3,3, registry1);\n swapColors(leftEdgeFace, 3,2, registry2);\n swapColors(leftEdgeFace, 3,1, registry3);\n\n break;\n case RIGHT:\n upEdgeFace = RubiksFace.RubiksFacePosition.UP;\n downEdgeFace = RubiksFace.RubiksFacePosition.DOWN;\n leftEdgeFace = RubiksFace.RubiksFacePosition.FRONT;\n rightEdgeFace = RubiksFace.RubiksFacePosition.BACK;\n\n // Registry is used to store rows so they don't get overwritten\n registry1 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,1));\n registry2 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,2));\n registry3 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,3));\n\n // Change the down edge\n swapColors(downEdgeFace, 3,1, registry1);\n swapColors(downEdgeFace, 3,2, registry2);\n swapColors(downEdgeFace, 3,3, registry3);\n\n // Change the right edge\n swapColors(rightEdgeFace, 1,3, registry1);\n swapColors(rightEdgeFace, 1,2, registry2);\n swapColors(rightEdgeFace, 1,1, registry3);\n\n // Change the up edge\n swapColors(upEdgeFace, 3,1, registry1);\n swapColors(upEdgeFace, 3,2, registry2);\n swapColors(upEdgeFace, 3,3, registry3);\n\n // Change the left edge\n swapColors(leftEdgeFace, 3,1, registry1);\n swapColors(leftEdgeFace, 3,2, registry2);\n swapColors(leftEdgeFace, 3,3, registry3);\n\n break;\n case BACK:\n upEdgeFace = RubiksFace.RubiksFacePosition.UP;\n downEdgeFace = RubiksFace.RubiksFacePosition.DOWN;\n leftEdgeFace = RubiksFace.RubiksFacePosition.RIGHT;\n rightEdgeFace = RubiksFace.RubiksFacePosition.LEFT;\n\n // Registry is used to store rows so they don't get overwritten\n registry1 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,1));\n registry2 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,2));\n registry3 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,3));\n\n // Change the down edge\n swapColors(downEdgeFace, 3,3, registry1);\n swapColors(downEdgeFace, 2,3, registry2);\n swapColors(downEdgeFace, 1,3, registry3);\n\n // Change the right edge\n swapColors(rightEdgeFace, 1,3, registry1);\n swapColors(rightEdgeFace, 1,2, registry2);\n swapColors(rightEdgeFace, 1,1, registry3);\n\n // Change the up edge\n swapColors(upEdgeFace, 1,1, registry1);\n swapColors(upEdgeFace, 2,1, registry2);\n swapColors(upEdgeFace, 3,1, registry3);\n\n // Change the left edge\n swapColors(leftEdgeFace, 3,1, registry1);\n swapColors(leftEdgeFace, 3,2, registry2);\n swapColors(leftEdgeFace, 3,3, registry3);\n\n break;\n case UP:\n upEdgeFace = RubiksFace.RubiksFacePosition.BACK;\n downEdgeFace = RubiksFace.RubiksFacePosition.FRONT;\n leftEdgeFace = RubiksFace.RubiksFacePosition.LEFT;\n rightEdgeFace = RubiksFace.RubiksFacePosition.RIGHT;\n\n // Registry is used to store rows so they don't get overwritten\n registry1 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(1,1));\n registry2 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(2,1));\n registry3 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,1));\n\n // Change the down edge\n swapColors(downEdgeFace, 1, 1, registry1);\n swapColors(downEdgeFace, 2, 1, registry2);\n swapColors(downEdgeFace, 3, 1, registry3);\n\n // Change the right edge\n swapColors(rightEdgeFace, 1, 1, registry1);\n swapColors(rightEdgeFace, 2, 1, registry2);\n swapColors(rightEdgeFace, 3, 1, registry3);\n\n // Change the up edge\n swapColors(upEdgeFace, 1, 1, registry1);\n swapColors(upEdgeFace, 2, 1, registry2);\n swapColors(upEdgeFace, 3, 1, registry3);\n\n // Change the left edge\n swapColors(leftEdgeFace, 1, 1, registry1);\n swapColors(leftEdgeFace, 2, 1, registry2);\n swapColors(leftEdgeFace, 3, 1, registry3);\n\n break;\n case DOWN:\n upEdgeFace = RubiksFace.RubiksFacePosition.FRONT;\n downEdgeFace = RubiksFace.RubiksFacePosition.BACK;\n leftEdgeFace = RubiksFace.RubiksFacePosition.LEFT;\n rightEdgeFace = RubiksFace.RubiksFacePosition.RIGHT;\n\n // Registry is used to store rows so they don't get overwritten\n registry1 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(1,3));\n registry2 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(2,3));\n registry3 = new RubiksColorReference(getRubiksFace(leftEdgeFace).getSquare(3,3));\n\n // Change the down edge\n swapColors(downEdgeFace, 1, 3, registry1);\n swapColors(downEdgeFace, 2, 3, registry2);\n swapColors(downEdgeFace, 3, 3, registry3);\n\n // Change the right edge\n swapColors(rightEdgeFace, 1, 3, registry1);\n swapColors(rightEdgeFace, 2, 3, registry2);\n swapColors(rightEdgeFace, 3, 3, registry3);\n\n // Change the up edge\n swapColors(upEdgeFace, 1, 3, registry1);\n swapColors(upEdgeFace, 2, 3, registry2);\n swapColors(upEdgeFace, 3, 3, registry3);\n\n // Change the left edge\n swapColors(leftEdgeFace, 1, 3, registry1);\n swapColors(leftEdgeFace, 2, 3, registry2);\n swapColors(leftEdgeFace, 3, 3, registry3);\n\n break;\n }\n }" ]
[ "0.68247616", "0.6704293", "0.65661293", "0.6547736", "0.6524845", "0.65035725", "0.64976794", "0.64767283", "0.6431542", "0.6425524", "0.6412722", "0.64091015", "0.6374316", "0.6312359", "0.6307602", "0.6304024", "0.62832224", "0.6283087", "0.62731636", "0.6265799", "0.6265186", "0.6239378", "0.6232366", "0.6220959", "0.6194002", "0.618671", "0.61704123", "0.6164386", "0.61533463", "0.61529326", "0.61512125", "0.6141084", "0.6140192", "0.61359185", "0.612739", "0.6125934", "0.61251634", "0.6124822", "0.6114454", "0.61085016", "0.6094193", "0.60938394", "0.6088224", "0.6087697", "0.60865206", "0.6086393", "0.608122", "0.6074809", "0.60717404", "0.60685027", "0.6056203", "0.60480434", "0.60474205", "0.6035976", "0.60205257", "0.6013367", "0.6013159", "0.6009605", "0.6009033", "0.600007", "0.5999832", "0.5995299", "0.59931064", "0.5991235", "0.5982228", "0.59811765", "0.59773916", "0.59683627", "0.59618956", "0.59616345", "0.59561974", "0.5951709", "0.59507334", "0.59413344", "0.5939973", "0.593863", "0.5934096", "0.59338844", "0.593219", "0.59298414", "0.5927294", "0.59120965", "0.59077704", "0.58978784", "0.58912635", "0.5890838", "0.5889876", "0.58855754", "0.5881779", "0.58747023", "0.5868562", "0.58683324", "0.58646846", "0.58640873", "0.58629596", "0.5860916", "0.5858358", "0.5857924", "0.58525825", "0.5850291", "0.58453614" ]
0.0
-1
sets the position for the circle
public void setPosition(double x1, double y1, double x2, double y2){ circle.setFrame(x1, y1, CIRCLE_SIZE, CIRCLE_SIZE); circle2.setFrame(x2, y2, CIRCLE_SIZE, CIRCLE_SIZE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPosition(Point position){\r\n this.position.set(position.x, position.y);\r\n\r\n this.shadow.setPosition(position);\r\n this.surface.setPosition(position);\r\n this.shading.setPosition(position);\r\n\r\n\r\n this.setBounds(new Rect(\r\n this.position.x - this.radius,\r\n this.position.y - this.radius,\r\n this.position.x + this.radius,\r\n this.position.y + this.radius\r\n ));\r\n \r\n }", "private void setCurrentPos() {\n\t\tcurrentPos=layout_Circle[l.y][l.x];\n\t\tcurrentPos.setFill(Paint.valueOf(\"Red\"));\n\n\t\tsetValidMoves();\n\t}", "private void configureLocation() {\n radius = size / 2;\n circleX = bounds.left + radius;\n circleY = bounds.top + radius;\n }", "public Circle() {\r\n this.radius = 0.0;\r\n this.center = new Point();\r\n }", "private void setCircle() {\n\t\tlayout_Circle=new Circle[][] {{null, null, null, null, null, null, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, finishCircle, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, pos80, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, pos7_1, pos70, pos71, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, pos6_2, pos6_1, pos60, pos61, pos62, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, pos5_3, pos5_2, pos5_1, pos50, pos51, pos52, pos53, null, null},\n\t\t\t \t\t\t\t\t\t {null, pos4_4, pos4_3, pos4_2, pos4_1, pos40, pos41, pos42, pos43, pos44, null},\n\t\t\t \t\t\t\t\t\t {null, null, pos3_3, pos3_2, pos3_1, pos30, pos31, pos32, pos33, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, pos2_2, pos2_1, pos20, pos21, pos22, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, pos1_1, pos10, pos11, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, startCircle, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, null, null, null, null, null, null}};\n\t}", "public void setPosition(Point position);", "void setPosition(double xPos, double yPos);", "public void setPosition(Coordinate position) {\n cPosition = position;\n }", "void setPos(float x, float y);", "public void setPosition(float x, float y);", "void setPosition(Point point);", "public void moveTo(int newX, int newY) {\n xPosition = newX-radius;\n yPosition = newY-radius;\n }", "public void setPosition(Dot position) {\r\n\t\tthis.position = position;\r\n\t}", "public void setPosition(Point position) {\n this.position = position;\n }", "public Circle(Circle circle) {\n this.center = circle.center;\n this.radius = circle.radius;\n }", "public void setPosition(Point newPosition);", "private void setPosition(float x, float y) {\n this.x = x;\r\n this.y = y;\r\n group();\r\n }", "public void setPosition(Point position) {\n this.position = new Point(position);\n update();\n }", "public Position() {\r\n\t\tthis.positionX = 0;\r\n\t\tthis.positionY = 0;\r\n\t\tthis.angle = 0;\r\n\t\tthis.penState=true;\r\n\t\tthis.clearScreen=false;\r\n\t\tthis.color=0;\r\n\t}", "public Circle(double r)\n {\n setRad(r);\n\n }", "public void setPosition(Point p) {\r\n\t\tthis.position = p;\r\n\t\tc.setPosition(p);\r\n\t}", "@Override\n public void setCircle(boolean isCircle) {\n mIsCircle = isCircle;\n updatePath();\n invalidateSelf();\n }", "public void redoMove(){\n circleObj.setX(newX);\n circleObj.setY(newY);\n }", "private void addCircle() {\n\t\tdouble r = getRadius();\n\t\tadd(new GOval(getWidth() / 2.0 - r, getHeight() / 2.0 - r, 2 * r, 2 * r));\n\t}", "public Circle(double r) {\n this.r = r;\n this.center = new Point(0,0);\n }", "@Override\n public void setPosition(float x, float y) {\n }", "public Circle() {\n\t\tr=0.0; //by defalut set radius to something so we have a circle \n\t}", "public void setPosition(Position pos);", "void setPosition(Position position);", "void setPosition(Position position);", "public void setPosition(double x, double y){\r\n this.x = (float)x;\r\n this.y = (float)y;\r\n changed();\r\n }", "private void newCircle()\n {\n setMinimumSize(null);\n\n //Generate a new circle\n panel.generateNewCircle();\n\n //Calculate the circle properties and setup the text area with their values\n generateTextArea();\n\n //Repack the frame to fit everything perfectly\n pack();\n\n setMinimumSize(getSize());\n }", "public void set(Point3 centerValue, float radiusValue)\n\t{\n\t\tcenter.x=centerValue.x;\n\t\tcenter.y=centerValue.y;\n\t\t\n\t\tradius=radiusValue;\n\t}", "public void setRadius(int radius);", "public void setPosition(int posX, int posY) {\n\t}", "public Circle(float centerX, float centerY, float radius) {\n this.center = new Vector2(centerX, centerY);\n this.radius = radius;\n }", "protected void positionCenter() {\n\t\tlog(\"Positioning on center of line.\");\n\t\tdouble offset = -lineWidth / 2;\n\t\tbindTransition(getPilot().travelComplete(offset), LineFinderState.FINISH);\n\t}", "public void setPosition(int x, int y)\n\t{\n\t\tint w = getSize().width;\n\t\tint h = getSize().height;\n\n\t\tpos.x = x;\n\n\t\tpos.y = y;\n\n\t\trect.setLocation(x - w / 2, y - h / 2);\n\t}", "public Circle(double radius){\n\t\tradius =this.radius;\n\t\tcolor =\"Red\";\n\t}", "public Circle(double radius){\n// Set the this.X to the args\n//Force any var radius < 0 to 0\n this.radius = Math.max(0, radius);\n }", "public void setPosition(double x, double y)\n {\n mPosition = new Point2D.Double(x, y);\n }", "public Circle() {\n radius = 1.0;\n color = \"red\";\n }", "@Override\n public void draw() {\n drawAPI.drawCircle(radius, x, y); \n }", "public Circle(){\n\t\t\n\t\tradius = 1.0;\n\t\tcolor =\"Red\";\n\t}", "private void drawCircle(int radius) {\n if (mCircle != null) {\n mCircle.remove();\n }\n // We defined a new circle center options with location and radius\n mCircleOptions.center(new LatLng(mLocation.getLatitude(), mLocation.getLongitude())).radius(radius); // In meters\n // We add here to the map the new circle\n mCircle = mGoogleMap.addCircle(mCircleOptions);\n }", "public void setSpawnPoint() {\n if (this.dirVec.y == 0) {\n super.centerRectAt(new Point(-1*OUTER_OFFSET, super.getCenter().y));\n }\n else {\n super.centerRectAt(new Point(super.getCenter().x, OUTER_OFFSET));\n }\n }", "public Circle(double radius, Point center) {\r\n this.radius = radius;\r\n this.center = center;\r\n }", "private void setCurrentRadius(double r){\n\t\t\n\t\t_currentRadius = r;\n\t\t\n\t}", "void setPos(Vec3 pos);", "public void setPosition(Point pos) {\n this.topLeft = pos.asVector();\n }", "public void setPosition(double x, double y) {\r\n this.x = x;\r\n this.y = y;\r\n }", "void setPosition(Vector3f position);", "public void setPosition(Point2D position)\n {\n mPosition = position;\n }", "void setPosition (double x, double y, double z);", "public void setPosition(double x, double y) {\n // set the location\n setLocation((int)Math.round(x), (int)Math.round(y));\n \n // set the position variables\n position.x = x;\n position.y = y;\n }", "public void setPosition(Position pos) {\n position = new Position(pos);\n }", "public void changePos(double xP, double yP){ \n this.xCoor += xP;\n this.yCoor += yP;\n \n }", "public void setPosition(GeoPoint position){\n\t\tmPosition = position.clone();\n\t\tif (isInfoWindowShown()) {\n\t\t\tcloseInfoWindow();\n\t\t\tshowInfoWindow();\n\t\t}\n\t\tmBounds=new BoundingBox(position.getLatitude(),position.getLongitude(),position.getLatitude(),position.getLongitude());\n\t}", "public void setCenter(Point center) {\r\n this.center = center;\r\n }", "public void setPosition(double x, double y) {\n getMotion().setPosition(x, y);\n }", "public Circle(double radius){\n this.radius = radius;\n }", "public Circle() {\n radius = 1.0;\n color = \"red\";\n }", "public Circle()\r\n\t{\r\n\t\tradius = 0.0;\r\n\t}", "public void setPosition(final Point p) {\n this.position = p;\n }", "public void setPosition(double x, double y) {\n this.x = x;\n this.y = y;\n }", "public void setPosition(Vector position) {\n this.posX = position.getX();\n this.posY = position.getY();\n this.posZ = position.getZ();\n this.posSet = true;\n }", "public void set(Point2 centerValue, float radiusValue)\n\t{\n\t\tcenter.x=centerValue.x;\n\t\tcenter.y=centerValue.y;\n\t\t\n\t\tradius=radiusValue;\n\t}", "public void setCenter(Point newPoint) {\n this.center = newPoint;\n }", "PositionedObject(){\n float x = DrawingHelper.getGameViewWidth()/2;\n float y = DrawingHelper.getGameViewHeight()/2;\n _position.set(x,y);\n }", "public Circle(Point o, double r) {\n origin = new Point(o);\n radius = r;\n }", "private void circle(){\n\t\tsquareCollison();\n\t\tsetMoveSpeed(10);\n\t}", "public void setPosition(double x, double y) {\n\t\tsetX(x);\n\t\tsetY(y);\n\t}", "public void setPosition(Point2 position) {\r\n this.position = position;\r\n }", "public void setCenterPosition(ViewPosition p) {\n\n\t}", "public void setPosition(Position pos) {\n \tthis.position = pos;\n \t//setGrade();\n }", "private void positionCircles_()\n\t{\n\t\tIterator<PVCircle> it = circles.iterator();\n\t\tint indx = 0;\n\t\tRandom rng = new Random();\n\t\twhile (it.hasNext())\n\t\t{\t\n\t\t\tPVCircle currCircle = it.next();\n\t\t\t//currCircle.setRadius(MAX_RADIUS * (double) currCircle.getWeight() / totalWeight);\n\t\t\tboolean collision = true;\n\t\t\tint loopCount = 0;\n\t\t\twhile(collision && loopCount < 100)\n\t\t\t{\n\t\t\t\tcurrCircle.setPosition(res_x * rng.nextDouble(), res_y * rng.nextDouble());\n\t\t\t\tcollision = checkCollision(currCircle, indx, indx);\n\t\t\t\tloopCount++;\n\t\t\t}\n\t\t\tif(loopCount == 100)\n\t\t\t{\n\t\t\t\t//Log.d(\"position\", \"Circle too big to fit\");\n\t\t\t\tit.remove();\n\t\t\t}\n\t\t\telse indx++;\n\t\t}\n\t}", "public void setRadius(int radius)\n {\n this.radius = radius;\n super.setSize(radius + 2, radius + 2);\n this.paintImmediately(this.getVisibleRect());\n }", "private void setRadius(float radius) {\n\t\tthis.radius = radius;\n\t}", "public void setDiameter(int diameter) {\n circleDiameter = diameter;\n\n }", "public void setPosition(Vector2fc position){\n glfwSetWindowPos(handle, (int) position.x(), (int) position.y());\n this.position.set(position);\n }", "void set_marker_position (double p_position) {\n //\n // Ensure the specific value is legal.\n //\n double l_position = Range.clip\n (p_position , SERVO_MARKER_MIN\n , SERVO_MARKER_MAX); // Servo position is restricted to protect from mechanical damage\n\n\n\n //\n // Set the right value.\n //\n if (marker!= null)\n {\n marker.setPosition (l_position);\n }\n\n }", "private void drawCenter(double x, double y) {\n\t\tdouble r = findCenterRadius(x, y);\n\t\tGPoint corner = findCenterCorner(r, x ,y);\n\t\tcenterCircle = new GOval(2*r,2*r);\n\t\tadd(centerCircle, corner);\n\t\t//GPoint center = new GPoint(corner.getX() - r, corner.getY() - r );\n\t}", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"Inside draw of Circle ..Point is: \"+center.getX() +\",\"+center.getY());\n\t}", "void setPosition(Position p);", "public Circle(double xValue, double yValue, double r) {\n origin = new Point(xValue, yValue);\n radius = r;\n }", "public void setPosition(Position p);", "public void setCircleClip(int x, int y, int radius);", "public void setCenterCircleFill(){\n if(solvable){\n solvableCircle.setFill(Color.GREEN);\n }\n else{\n solvableCircle.setFill(Color.RED);\n }\n }", "public Circle(double r, Point center) {\n this.r = r;\n this.center = center;\n }", "public void setPosition(Vector2 pos) {\n\t\tsetX(pos.x);\n\t\tsetY(pos.y);\n\t}", "@Generated\n @Selector(\"setPosition:\")\n public native void setPosition(@ByValue CGPoint value);", "public Circle(double newRadius) {\n\t\tradius = newRadius;\t\t\t\n\t}", "public void setPosition(float x, float y) {\n this.x = x;\n this.y = y;\n }", "private void updateRadiusCircle(){\n if(mRadiusCircle != null) {\n mRadiusCircle.setVisible(false);\n }\n mRadiusCircle = mMap.addCircle(new CircleOptions()\n .center(new LatLng(mCurrentLoc.latitude, mCurrentLoc.longitude))\n .radius(mRadius * METERS_PER_MILE)\n .strokeColor(Color.BLUE)\n .fillColor(BLUE_COLOR));\n mRadiusCircle.setVisible(true);\n }", "private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }", "public void setPosition(Point point) {\n setPosition(point.x, point.y);\n }", "public Circle(int x, int y, int r, Color c) {\n super(x-r,y-r);\n color = c;\n name = \"Circle\";\n width = 2*r;\n height = 2*r;\n radius = r;\n }", "SimpleCircle(double newRadius){\n\t\tradius=newRadius;\n\t}", "public abstract void setPosition(Position position);", "public void setCardPos(double x, double y ){\r\n setX(x);\r\n setY(y);\r\n }" ]
[ "0.7359523", "0.7314327", "0.719559", "0.7092673", "0.7022722", "0.6959748", "0.6930371", "0.6807953", "0.66702825", "0.6654374", "0.66519094", "0.6643058", "0.6627849", "0.66266775", "0.65738875", "0.6563083", "0.6530758", "0.65125406", "0.6504089", "0.6502051", "0.64911497", "0.64396226", "0.6406852", "0.63717914", "0.6369962", "0.63517565", "0.63478196", "0.63320154", "0.6327249", "0.6327249", "0.6321098", "0.6308618", "0.6300302", "0.629892", "0.6298276", "0.6272123", "0.6270875", "0.6269643", "0.62684214", "0.62680715", "0.6260047", "0.62525", "0.62478447", "0.6247605", "0.62404", "0.6240094", "0.6234027", "0.6228057", "0.6225539", "0.6223962", "0.62196124", "0.6218744", "0.6217005", "0.6205944", "0.6202287", "0.6191975", "0.61821103", "0.61819583", "0.6179992", "0.61774397", "0.6162969", "0.61608386", "0.6153035", "0.6151408", "0.6151205", "0.6151103", "0.6150934", "0.61439437", "0.61432785", "0.61318105", "0.61294377", "0.61265326", "0.6126349", "0.61150867", "0.6109206", "0.6106524", "0.6105065", "0.6103111", "0.6101126", "0.6100127", "0.609776", "0.6093269", "0.609257", "0.6085707", "0.6077698", "0.60745955", "0.6071103", "0.60692954", "0.6066404", "0.60662985", "0.6058824", "0.604693", "0.60390306", "0.6037672", "0.6036624", "0.60359645", "0.6035558", "0.6028264", "0.60248125", "0.6023031" ]
0.6751495
8
Draws face to the screen
@Override public void paintComponent(Graphics g){ super.paintComponent(g); animateFace((int)circle.x, (int)circle.y, (int)circle2.x, (int)circle2.y); drawFace(g); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawFace(int face) {\n\t\tif (faceNearClipped[face]) {\n\t\t\tdrawNearClippedFace(face);\n\t\t\treturn;\n\t\t}\n\n\t\tint a = faceVertexA[face];\n\t\tint b = faceVertexB[face];\n\t\tint c = faceVertexC[face];\n\t\tDraw3D.clipX = faceClippedX[face];\n\n\t\tif (faceAlpha == null) {\n\t\t\tDraw3D.alpha = 0;\n\t\t} else {\n\t\t\tDraw3D.alpha = faceAlpha[face];\n\t\t}\n\n\t\tint type;\n\n\t\tif (faceInfo == null) {\n\t\t\ttype = 0;\n\t\t} else {\n\t\t\ttype = faceInfo[face] & 0b11;\n\t\t}\n\n\t\tif (type == 0) {\n\t\t\tDraw3D.fillGouraudTriangle(vertexScreenY[a], vertexScreenY[b], vertexScreenY[c], vertexScreenX[a], vertexScreenX[b], vertexScreenX[c], faceColorA[face], faceColorB[face], faceColorC[face]);\n\t\t} else if (type == 1) {\n\t\t\tDraw3D.fillTriangle(vertexScreenY[a], vertexScreenY[b], vertexScreenY[c], vertexScreenX[a], vertexScreenX[b], vertexScreenX[c], palette[faceColorA[face]]);\n\t\t} else if (type == 2) {\n\t\t\tint texturedFace = faceInfo[face] >> 2;\n\t\t\tint ta = texturedVertexA[texturedFace];\n\t\t\tint tb = texturedVertexB[texturedFace];\n\t\t\tint tc = texturedVertexC[texturedFace];\n\t\t\tDraw3D.fillTexturedTriangle(vertexScreenY[a], vertexScreenY[b], vertexScreenY[c], vertexScreenX[a], vertexScreenX[b], vertexScreenX[c], faceColorA[face], faceColorB[face], faceColorC[face], vertexViewSpaceX[ta], vertexViewSpaceX[tb], vertexViewSpaceX[tc], vertexViewSpaceY[ta], vertexViewSpaceY[tb], vertexViewSpaceY[tc], vertexViewSpaceZ[ta], vertexViewSpaceZ[tb], vertexViewSpaceZ[tc], faceColor[face]);\n\t\t} else if (type == 3) {\n\t\t\tint texturedFace = faceInfo[face] >> 2;\n\t\t\tint ta = texturedVertexA[texturedFace];\n\t\t\tint tb = texturedVertexB[texturedFace];\n\t\t\tint tc = texturedVertexC[texturedFace];\n\t\t\tDraw3D.fillTexturedTriangle(vertexScreenY[a], vertexScreenY[b], vertexScreenY[c], vertexScreenX[a], vertexScreenX[b], vertexScreenX[c], faceColorA[face], faceColorA[face], faceColorA[face], vertexViewSpaceX[ta], vertexViewSpaceX[tb], vertexViewSpaceX[tc], vertexViewSpaceY[ta], vertexViewSpaceY[tb], vertexViewSpaceY[tc], vertexViewSpaceZ[ta], vertexViewSpaceZ[tb], vertexViewSpaceZ[tc], faceColor[face]);\n\t\t}\n\t}", "@Override\n public void draw(Canvas canvas) {\n Face face = this.face;\n if (face == null) {\n return;\n }\n\n // Draws a circle at the position of the detected face, with the face's track id below.\n float x = translateX(face.getPosition().x + face.getWidth() / 2);\n float y = translateY(face.getPosition().y + face.getHeight() / 2);\n\n if (showText) {\n canvas.drawCircle(x, y, FACE_POSITION_RADIUS, facePositionPaint);\n\n canvas.drawText(\"id: \" + getId(), x + ID_X_OFFSET, y + ID_Y_OFFSET, idPaint);\n\n canvas.drawText(\"happiness: \" + String.format(\"%.2f\", face.getIsSmilingProbability()),\n x - ID_X_OFFSET, y - ID_Y_OFFSET, idPaint);\n\n canvas.drawText(\"right eye: \" + String.format(\"%.2f\", face.getIsRightEyeOpenProbability()),\n x + ID_X_OFFSET * 2, y + ID_Y_OFFSET * 2, idPaint);\n\n canvas.drawText(\"left eye: \" + String.format(\"%.2f\", face.getIsLeftEyeOpenProbability()),\n x - ID_X_OFFSET * 2, y - ID_Y_OFFSET * 2, idPaint);\n }\n\n // Draws a bounding box around the face.\n canvas.drawRect(getBoundingBox(), boxPaint);\n }", "@Override\n public void draw(Canvas canvas) {\n Face face = mFace;\n if (face == null) {\n return;\n }\n/*\n // 3\n float centerX = translateX(face.getPosition().x + face.getWidth() / 2.0f);\n float centerY = translateY(face.getPosition().y + face.getHeight() / 2.0f);\n float offsetX = scaleX(face.getWidth() / 2.0f);\n float offsetY = scaleY(face.getHeight() / 2.0f);\n\n // 4\n // Draw a box around the face.\n float left = centerX - offsetX;\n float right = centerX + offsetX;\n float top = centerY - offsetY;\n float bottom = centerY + offsetY;\n\n // 5\n canvas.drawRect(left, top, right, bottom, mHintOutlinePaint);\n\n // 6\n // Draw the face's id.\n canvas.drawText(String.format(\"id: %d\", face.getId()), centerX, centerY, mHintTextPaint);\n*/\n // Get the landmarks associated with the face\n for (Landmark lm : face.getLandmarks()) {\n switch (lm.getType()) {\n case Landmark.BOTTOM_MOUTH:\n case Landmark.LEFT_EYE:\n case Landmark.LEFT_MOUTH:\n case Landmark.NOSE_BASE:\n case Landmark.RIGHT_EYE:\n case Landmark.RIGHT_MOUTH:\n // draw the green dot\n PointF pt = lm.getPosition();\n float x = translateX(pt.x);\n float y_pt = translateY(pt.y);\n float y_text = y_pt - 10f;\n canvas.drawCircle(x, y_pt, DOT_RADIUS, mLandmarkPaint);\n String text = getTextFromLandmarkType(lm.getType());\n canvas.drawText(text, x, y_text, mHintTextPaint);\n if (lm.getType() == Landmark.NOSE_BASE) {\n System.out.println(\"x = \" + String.valueOf(x) + \", y_pt = \" + String.valueOf(y_pt));\n }\n break;\n }\n } // end for\n\n }", "@Override\n public void draw(Canvas canvas) {\n\n int cW = canvas.getWidth();\n int cH = canvas.getHeight();\n\n // модификатор сдвига (камера снимает 640*480, а канвас другого размера)\n float xMod = (float) cW / width;\n float yMod = (float) cH / height;\n\n\n Face face = mFace;\n if (face == null) {\n return;\n }\n\n // Draws a circle at the position of the detected face, with the face's track id below.\n float x = translateX(face.getPosition().x + face.getWidth() / 2);\n float y = translateY(face.getPosition().y + face.getHeight() / 2);\n canvas.drawText(\"id: \" + mFaceId, x + ID_X_OFFSET, y + ID_Y_OFFSET, mIdPaint);\n\n final List<Landmark> landmarks = face.getLandmarks();\n\n Landmark leftEye = null;\n Landmark rightEye = null;\n Landmark nose = null;\n\n for (Landmark landmark : landmarks) {\n int cx = (int) (landmark.getPosition().x);\n int cy = (int) (landmark.getPosition().y);\n if (landmark.getType() == Landmark.LEFT_EYE) {\n leftEye = landmark;\n }\n if (landmark.getType() == Landmark.RIGHT_EYE) {\n rightEye = landmark;\n }\n if (landmark.getType() == Landmark.NOSE_BASE) {\n nose = landmark;\n }\n }\n\n if (leftEye != null && rightEye != null) {\n float lX = translateX(leftEye.getPosition().x);\n float lY = translateY(leftEye.getPosition().y);\n float rX = translateX(rightEye.getPosition().x);\n float rY = translateY(rightEye.getPosition().y);\n canvas.drawCircle(lX, lY, 10, mIdPaint);\n canvas.drawCircle(rX, rY, 10, mIdPaint);\n canvas.drawLine(lX, lY, rX, rY, mIdPaint);\n }\n\n if (nose != null) {\n float nX = translateX(nose.getPosition().x);\n float nY = translateY(nose.getPosition().y);\n canvas.drawCircle(nX, nY, 10, mIdPaint);\n canvas.drawLine(nX, nY - 100, nX, nY + 100, mIdPaint);\n }\n\n\n // Draws a bounding box around the face.\n float xOffset = scaleX(face.getWidth() / 2.0f);\n float yOffset = scaleY(face.getHeight() / 2.0f);\n float left = x - xOffset;\n float top = y - yOffset;\n float right = x + xOffset;\n float bottom = y + yOffset;\n canvas.drawRect(left, top, right, bottom, mBoxPaint);\n }", "public void draw()\n\t{\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, texture_id);\n\t\tdrawMesh(gl);\n\t}", "public void draw() {\t\t\n\t\ttexture.draw(x, y);\n\t\tstructure.getTexture().draw(x,y);\n\t}", "public void draw() {\r\n\t\tfor(int i=0; i<2; i++) {\r\n\t\t\trenderer[i].setView(camera[i]);\r\n\t\t\trenderer[i].render();\r\n\t\t}\r\n\t}", "public void draw() {\r\n\t\tif (active_)\r\n\t\t\tGlobals.getInstance().getCamera().drawImageOnHud(posx_, posy_, currentImage());\r\n\t}", "void updateFace(Face face) {\n mFace = face;\n postInvalidate();\n }", "public void paint(){\n\t\tif(this.x+GameScreen.backCam<900 && this.x+GameScreen.backCam>-60){\n\t\t\tGraphicsHandler.drawImage(texture,this.x+GameScreen.backCam,this.y+GameScreen.yCam,size,size);\n\t\t}\n\t}", "public void draw() {\n \n // TODO\n }", "void draw() {\n\t\t// display debug information\n\t\t// if (debugMode)\n\t\t// displayDebugInformation();\n\n\t\tupdate();\n\t\trender(); // display freetransform points, lines and colorings\n\n\t\t// display opposite objects\n\t\t// displayOppositeObject();\n\t}", "public void draw() {\n \n }", "private void drawFace(final Canvas canvas, final Bitmap view, final int top, final int left,\n final int centerX, final int centerY, final float scale, final float rotation) {\n\n // create the camera if we haven't before\n if (mCamera == null) {\n mCamera = new Camera();\n }\n\n // save the camera state\n mCamera.save();\n\n // translate and then rotate the camera\n mCamera.translate(0, 0, centerY);\n mCamera.rotateX(rotation);\n mCamera.translate(0, 0, -centerY);\n\n // create the matrix if we haven't before\n if (mMatrix == null) {\n mMatrix = new Matrix();\n }\n\n // get the matrix from the camera and then restore the camera\n mCamera.getMatrix(mMatrix);\n mCamera.restore();\n\n // translate and scale the matrix\n mMatrix.preTranslate(-centerX, -centerY);\n mMatrix.postScale(scale, scale);\n mMatrix.postTranslate(left + centerX, top + centerY);\n\n // create and initialize the paint object\n if (mPaint == null) {\n mPaint = new Paint();\n mPaint.setAntiAlias(true);\n mPaint.setFilterBitmap(true);\n }\n\n // set the light\n if (mLightEnabled) {\n mPaint.setColorFilter(calculateLight(rotation));\n } else {\n mPaint.setAlpha(0xFF - (int)(2 * Math.abs(rotation)));\n }\n\n // draw the bitmap\n canvas.drawBitmap(view, mMatrix, mPaint);\n }", "public void draw() {\n\t\t\tfloat[] vertices = new float[mVertices.size()];\n\t\t\tfor (int i = 0; i < vertices.length; i++)\n\t\t\t\tvertices[i] = mVertices.get(i);\n\t\t\t\n\t\t\tfloat[] textureCoords = null;\n\t\t\tif (mTextureID != 0) {\n\t\t\t\ttextureCoords = new float[mTextureCoords.size()];\n\t\t\t\tfor (int i = 0; i < textureCoords.length; i++)\n\t\t\t\t\ttextureCoords[i] = mTextureCoords.get(i);\n\t\t\t}\n\t\t\t\n\t\t\tshort[] indices = new short[mIndices.size()];\n\t\t\tfor (int i = 0; i < indices.length; i++)\n\t\t\t\tindices[i] = mIndices.get(i);\n\t\t\t\n\t\t\t// Get OpenGL\n\t\t\tGL10 gl = GameGraphics2D.this.mGL;\n\t\t\t\n\t\t\t// Set render state\n\t\t\tgl.glDisable(GL10.GL_LIGHTING);\n\t\t\tgl.glEnable(GL10.GL_DEPTH_TEST);\n\t\t\tgl.glEnable(GL10.GL_BLEND);\n\n\t\t\tif (mBlendingMode == BLENDING_MODE.ALPHA)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);\n\t\t\telse if (mBlendingMode == BLENDING_MODE.ADDITIVE)\n\t\t\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE);\n\t\t\t\n\t\t\tif (mTextureID != 0)\n\t\t\t\tgl.glEnable(GL10.GL_TEXTURE_2D);\n\t\t\telse\n\t\t\t\tgl.glDisable(GL10.GL_TEXTURE_2D);\n\t\t\t\n\t\t\t// Draw the batch of textured triangles\n\t\t\tgl.glColor4f(Color.red(mColour) / 255.0f,\n\t\t\t\t\t\t Color.green(mColour) / 255.0f,\n\t\t\t\t\t\t Color.blue(mColour) / 255.0f,\n\t\t\t\t\t\t Color.alpha(mColour) / 255.0f);\n\t\t\t\n\t\t\tif (mTextureID != 0) {\n\t\t\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);\n\t\t\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(textureCoords));\n\t\t\t}\n\t\t\t\n\t\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, GameGraphics.getFloatBuffer(vertices));\n\t\t\tgl.glDrawElements(GL10.GL_TRIANGLES, indices.length,\n\t\t\t\t\tGL10.GL_UNSIGNED_SHORT, GameGraphics.getShortBuffer(indices));\n\t\t}", "@Override\n protected void onDraw(Canvas canvas) {\n if(face == null) {\n super.onDraw(canvas);\n return;\n }\n Paint paint = new Paint();\n\n paint.setStyle(Paint.Style.STROKE);\n paint.setStrokeWidth(2);\n paint.setColor(Color.RED);\n\n canvas.drawRect(bounds, paint);\n //canvas.drawRect(100, 100, 200, 200, paint);\n\n }", "public void draw(GL10 gl) {\n\n\n\t\t//Point to our buffers\n\t\tgl.glEnableClientState(GL10.GL_VERTEX_ARRAY);\n\t\tgl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);\n\n\n\t\t//Set the face rotation\n\t\tgl.glFrontFace(GL10.GL_CCW);\n\n\t\t//Enable the vertex and texture state\n\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBufferBuffer);\n\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, textureBufferBuffer);\n\n\t\t//gl.glDrawArrays(GL10.GL_TRIANGLES, 0, numOfVertices);\n\n\t\tgl.glDrawElements(GL10.GL_TRIANGLES, indices.length,GL10.GL_UNSIGNED_SHORT, indexBufferBuffer);\n\n\t\t//Disable the client state before leaving\n\t\tgl.glDisableClientState(GL10.GL_VERTEX_ARRAY);\n\t\tgl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY);\n\t}", "public void drawImage() {\n mTextureRender.drawFrame(mSurfaceTexture);\n }", "private void draw()\n {\n if(surfaceHolder.getSurface().isValid())\n {\n // Locks the surface. Can't be accessed or changed before it is unlocked again\n canvas = surfaceHolder.lockCanvas();\n\n // Background color\n canvas.drawColor(Color.BLACK);\n\n\n // ===================== DRAW SPRITES ======================= //\n // Draw Pacman\n canvas.drawBitmap(pacman.getBitmap(), pacman.getX(), pacman.getY(), paint);\n\n // Draw all Monsters\n for(Monster monster : monsterList)\n {\n canvas.drawBitmap(monster.getBitmap(), monster.getX(), monster.getY(), paint);\n }\n\n // Draw Cherries\n for(Cherry cherry : cherryList)\n {\n canvas.drawBitmap(cherry.getBitmap(), cherry.getX(), cherry.getY(), paint);\n }\n\n // Draw Key\n canvas.drawBitmap(key.getBitmap(), key.getX(), key.getY(), paint);\n\n // Draw Stars\n paint.setColor(Color.WHITE);\n for(Star star : starList)\n {\n paint.setStrokeWidth(star.getStarWidth());\n canvas.drawPoint(star.getX(), star.getY(), paint);\n }\n\n // ======================================================= //\n\n\n if(!gameEnded)\n {\n // Draw user HUD\n paint.setTextAlign(Paint.Align.LEFT);\n paint.setColor(Color.WHITE);\n paint.setTextSize(40);\n paint.setTypeface(Typeface.MONOSPACE);\n canvas.drawText(\"Level: \" + level, 10, 50, paint);\n canvas.drawText(\"Hi Score: \" + hiScore, (screenMax_X /4) * 3, 50 , paint);\n canvas.drawText(\"Score: \" + score, screenMax_X / 3, 50 , paint);\n canvas.drawText(\"New level in: \" + distanceRemaining + \"km\", screenMax_X / 3, screenMax_Y - 20, paint);\n canvas.drawText(\"Lives: \" + pacman.getLifes(), 10, screenMax_Y - 20, paint);\n canvas.drawText(\"Speed \" + pacman.getSpeed() * 100 + \" Km/h\", (screenMax_X /4) * 3, screenMax_Y - 20, paint);\n\n } else {\n\n // Draw 'Game Over' Screen\n paint.setTextAlign(Paint.Align.CENTER);\n paint.setTypeface(Typeface.MONOSPACE);\n paint.setFakeBoldText(true);\n paint.setTextSize(150);\n canvas.drawText(\"Game Over\", screenMax_X / 2, 350, paint);\n paint.setTextSize(50);\n paint.setTypeface(Typeface.DEFAULT);\n paint.setFakeBoldText(false);\n canvas.drawText(\"Hi Score: \" + hiScore, screenMax_X / 2, 480, paint);\n canvas.drawText(\"Your Score: \" + score, screenMax_X / 2, 550, paint);\n paint.setTextSize(80);\n canvas.drawText(\"Tap to replay!\", screenMax_X / 2, 700, paint);\n }\n\n if(levelSwitched)\n {\n // Notify the user whenever level is switched\n paint.setTextSize(100);\n paint.setTypeface(Typeface.MONOSPACE);\n paint.setFakeBoldText(true);\n paint.setTextAlign(Paint.Align.CENTER);\n canvas.drawText(\"Level \" + level + \"!\", screenMax_X / 2, 350, paint);\n }\n\n // Unlcock canvas and draw it the scene\n surfaceHolder.unlockCanvasAndPost(canvas);\n }\n }", "public void setFace(int face) {\n\t\tthis.face = face;\n\t}", "public void draw();", "public void draw();", "public void draw();", "public void draw() {\r\n if(isVisible()) {\r\n Canvas canvas = Canvas.getCanvas();\r\n canvas.draw(this,getColor(),\r\n new Rectangle(\r\n (int)round(getXposition()),\r\n (int)round(getYposition()),\r\n (int)round(size),\r\n (int)round(size)));\r\n canvas.wait(10);\r\n }\r\n }", "public void draw(){\n StdDraw.picture(this.xCoordinate,this.yCoordinate,this.img);\n }", "protected abstract void showLeftFace();", "public void draw() {\r\n\r\n//\t\tif (textures.length > 1) {\r\n//\t\t\tfor (int i = 1; i < textures.length; i++) {\r\n\t\tif (textures.length > 1) {\r\n\t\t\tDrawQuadWithTexture(textures[0], x, y, width, height);\r\n\t\t\tDrawQuadWithRotatedTexture(textures[1], x, y, width, height, angle);\r\n\t\t} else {\r\n\t\t\tDrawQuadWithRotatedTexture(textures[0], x, y, width, height, angle);\r\n\t\t}\r\n\r\n//\t\t\t}\r\n//\t\t}\r\n//\t\t\r\n\t}", "public void draw() {\n }", "private void draw() {\n this.player.getMap().DrawBackground(this.cameraSystem);\n\n //Dibujamos al jugador\n player.draw();\n\n for (Character character : this.characters) {\n if (character.getMap() == this.player.getMap()) {\n character.draw();\n }\n }\n\n //Dibujamos la parte \"superior\"\n this.player.getMap().DrawForeground();\n\n //Sistema de notificaciones\n this.notificationsSystem.draw();\n\n this.player.getInventorySystem().draw();\n\n //Hacemos que la cámara se actualice\n cameraSystem.draw();\n }", "public void draw(){\n }", "@Override\n public void draw() {\n /** preparacion de la ventana **/\n background(255);\n lights();\n directionalLight(40, 90, 100, 1, 40, 40);\n\n translate(origin.x,origin.y);\n scale(zoom);\n\n\n /** entrada del usuario **/\n userInput();\n /** ejes X Y Z **/\n drawAxes();\n /** aplicar ik **/\n writePos();\n\n /** escala de los objetos**/\n scale(-1.2f);\n\n /** esfera que muestra la posicion en coord X Y Z\n *\n * X -> coord[0]\n * Y -> coord[1]\n * Z -> coord[2]\n *\n * **/\n pushMatrix();\n noStroke();\n fill(250, 100, 1);\n translate(-coord_cartesian[1] ,-coord_cartesian[2] -11,-coord_cartesian[0] );\n sphere(2);\n popMatrix();\n\n\n /**\n * Dibuja el brazo\n */\n pushMatrix();\n arm.drawArm();\n popMatrix();\n }", "public void updateDirectionFace();", "protected DrawSurface() {\n\t\taiDrawingOrder = new Object[] { RANGE_CURSOR_DRAWSURFACE, GRID_DRAWSURFACE, GRAPH_DRAWSURFACE,\n\t\t\t\tCURSOR_DRAWSURFACE, ZOOM_DRAWSURFACE, };\n\n\t\t// we know that we paint all our own pixels.\n\t\tsetOpaque(false);\n\n\t\t// default background\n\t\tsetBackground(Color.BLACK);\n\n\t\t// give us the same default front as a JPanel\n\t\tsetFont(UIManager.getFont(\"Panel.font\"));\n\n\t\t/*\n\t\t * We create our own cursor because the default cross-hair cursor has\n\t\t * some weird display issues - it seems to fade into some waterfall\n\t\t * graphs, and seems to interact with the green FFT line to produce red\n\t\t * pixels. Weird.\n\t\t */\n\t\tsetCursor(DEFAULT_CROSSHAIR_CURSOR);\n\n\t\tPeralexLibsBundle.addLocaleListener(this); // do after components have\n\t\t\t\t\t\t\t\t\t\t\t\t\t// been initialised\n\t}", "@Override\n\t\tpublic void render()\n\t\t{\n\t\t\tif(color.alpha() > 0)\n\t\t\t{\n\t\t\t\tbind();\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\n\t\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\n\t\t\t\t\tfloat screenWidth = WindowManager.controller().width();\n\t\t\t\t\tfloat screenHeight = WindowManager.controller().height();\n\t\t\t\t\tGL11.glVertex2f(0, 0);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, 0);\n\t\t\t\t\tGL11.glVertex2f(0, screenHeight);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, screenHeight);\n\t\t\t\tGL11.glEnd();\n\t\t\t\trelease();\n\t\t\t}\n\t\t}", "public void draw() {\r\n\t\t// Draw the triangle making up the mountain\r\n\t\tTriangle mountain = new Triangle(this.x, 100,\r\n\t\t\t\tthis.x + mountainSize / 2, 100, this.x + mountainSize / 4,\r\n\t\t\t\t100 - this.y / 4, Color.DARK_GRAY, true);\r\n\t\t// Draw the triangle making up the snow cap\r\n\t\tthis.snow = new Triangle(side1, bottom - this.y / 8, side2, bottom\r\n\t\t\t\t- this.y / 8, this.x + mountainSize / 4, 100 - this.y / 4,\r\n\t\t\t\tColor.WHITE, true);\r\n\t\tthis.window.add(mountain);\r\n\t\tthis.window.add(snow);\r\n\t}", "private void drawBox() {\n GLES20.glEnable(GLES20.GL_SCISSOR_TEST);\n GLES20.glScissor(0, 0, 100, 100);\n GLES20.glClearColor(1.0f, 0.0f, 0.0f, 1.0f);\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);\n GLES20.glDisable(GLES20.GL_SCISSOR_TEST);\n }", "public void draw(){\n\t\tStdDraw.picture(this.xxPos,this.yyPos,\"images/\"+this.imgFileName);\n\t}", "private void drawMesh(GL10 gl)\n\t{\n\t\t// Point to our buffers\n\t\tgl.glEnableClientState(GL10.GL_VERTEX_ARRAY);\n\t\tgl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);\n\t\t\n\t\t// Set the face rotation\n\t\tgl.glFrontFace(GL10.GL_CW);\n\t\t\n\t\t// Point to our vertex buffer\n\t\tgl.glVertexPointer(3, GL10.GL_FLOAT, 0, vertexBuffer);\n\t\tgl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, textureBuffer);\n\t\t\n\t\t// Draw the vertices as triangle strip\n\t\t//gl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, vertices.length / 3);\n\t\tgl.glDrawArrays(GL10.GL_TRIANGLE_STRIP, 0, vertexCount / 3);\n\n\t\t//Disable the client state before leaving\n\t\tgl.glDisableClientState(GL10.GL_VERTEX_ARRAY);\n\t\tgl.glDisableClientState(GL10.GL_TEXTURE_COORD_ARRAY);\n\t}", "void draw();", "public void draw() {\n\n }", "void drawAt(DrawSurface d, Rectangle rect);", "public void onDrawFrame(GL10 unused) {\n\n \tGLES20.glClearColor(0.5f,0.5f,0.5f,0.5f);\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);\n \n GLES20.glEnable(GLES20.GL_DEPTH_TEST);\n\n \t//GLES20.glCullFace(GLES20.GL_BACK);\n\n /* Update MVP matrix */\n\n mat4 mvp = mProj\n \t.mul(mat4.translation(0.0f, 0.0f, -5.0f))\n \t.mul(mat4.rotateY(-mAngleX))\n \t.mul(mat4.rotateX(mAngleY));\n \t\n \n // Add program to OpenGL environment\n GLES20.glUseProgram(mProgram);\n \n /* Set model view projection matrix */\n GLES20.glUniformMatrix4fv(muMVPHandle, 1, false, mvp.f(), 0);\n \n /*\n * Now we're ready to draw some 3D objects\n */\n mCube.draw(maPositionHandle, maColorHandle);\n }", "public void draw() {\n\n // Make sure our drawing surface is valid or we crash\n if (ourHolder.getSurface().isValid()) {\n // Lock the canvas ready to draw\n canvas = ourHolder.lockCanvas();\n // Draw the background color\n paint.setTypeface(tf);\n canvas.drawColor(Color.rgb(178,223,219));\n paint.setColor(Color.rgb(255,255,255));\n canvas.drawRect(offsetX, offsetY, width-offsetX, (height-100)-offsetY, paint);\n // Choose the brush color for drawing\n paint.setColor(Color.argb(50,0,0,0));\n paint.setFlags(Paint.ANTI_ALIAS_FLAG);\n // Make the text a bit bigger\n paint.setTextSize(40);\n paint.setStrokeWidth(5);\n paint.setStrokeCap(Paint.Cap.ROUND);\n // Display the current fps on the screen\n canvas.drawText(\"FPS:\" + fps, 20, 40, paint);\n paint.setTextSize(400);\n if(hasTouched == true) {\n if (count < 0) {\n canvas.drawText(0 + \"\", (width / 2) - 100, height / 2, paint);\n } else if(count<=numLines) {\n canvas.drawText(count + \"\", (width / 2) - 100, height / 2, paint);\n }\n } else {\n paint.setTextSize(100);\n canvas.drawText(\"TAP TO START\", (width / 2) - 300, height / 2, paint);\n }\n paint.setColor(Color.rgb(0,150,136));\n\n paint.setColor(color);\n\n canvas.drawCircle(xPosition, yPosition, radius, paint);\n\n paint.setColor(lineColor);\n\n if(isMoving==true && hasHit == false && count>=0) {\n canvas.drawLine(initialX, initialY, endX, endY, paint);\n }\n paint.setColor(Color.rgb(103,58,183));\n\n for(int i=0; i<verts.length; i++) {\n canvas.drawVertices(Canvas.VertexMode.TRIANGLES, verts[0].length, verts[i], 0, null, 0, verticesColors, 0, null, 0, 0, new Paint());\n }\n for (int i=0; i<innerVerts.length; i++) {\n canvas.drawVertices(Canvas.VertexMode.TRIANGLES, innerVerts[0].length, innerVerts[i], 0, null, 0, verticesColors, 0, null, 0, 0, new Paint());\n }\n // Draw everything to the screen\n ourHolder.unlockCanvasAndPost(canvas);\n\n //Display size and width\n\n }\n\n }", "public void draw(GL10 gl) {\n\n // Counter-clockwise winding. // 设置逆时针方法为面的“前面”\n gl.glFrontFace(GL10.GL_CCW);\n // Enable face culling. // 打开 忽略“后面”设置\n gl.glEnable(GL10.GL_CULL_FACE);\n // What faces to remove with the face culling. // 明确指明“忽略”哪个面\n gl.glCullFace(GL10.GL_BACK);\n\n // 需要告诉OpenGL库打开 Vertex buffer以便传入顶点坐标Buffer.\n // 要注意:使用OpenGL ES的这些功能之后,要关闭这个功能以免影响后续操作.\n\n // Enabled the vertices buffer for writing and to be used during rendering.\n gl.glEnableClientState(GL10.GL_VERTEX_ARRAY);\n // Specifies the location and data format of an array of vertex coordinates to use when rendering.\n gl.glVertexPointer(3, GL10.GL_FLOAT, 0,\n vertexBuffer);\n\n gl.glDrawElements(GL10.GL_TRIANGLES, indices.length,\n GL10.GL_UNSIGNED_SHORT, indexBuffer);\n\n // When you are done with the buffer don't forget to disable it.\n // Disable the vertices buffer.\n gl.glDisableClientState(GL10.GL_VERTEX_ARRAY);\n // Disable face culling.\n gl.glDisable(GL10.GL_CULL_FACE);\n\n // Color\n gl.glColor4f(0.5f, 0.5f, 1.0f, 1.0f);\n }", "private void render() {\n\t\ttheMap.draw(g);\n\t\ttheTrainer.draw(g);\n\t}", "public void draw() {\n\t\tfor (int i = 0; i < particleCount; i++) {\r\n\t\t\tif (particles[i] != null) {\r\n\t\t\t\tglBegin(GL_QUADS);\r\n\t\t\t\t{\r\n\t\t\t\t\tparticles[i].draw();\r\n\t\t\t\t}\r\n\t\t\t\tglEnd();\r\n\t\t\t}\r\n\t\t}\r\n\t\tglColor3f(1, 1, 1);\r\n\t}", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制三角形\");\t\n\t}", "public void Render(){\n //player rect\n glPushMatrix();\n glTranslatef(px, py, 0.0f);\n glBegin(GL_TRIANGLES);\n glColor3f(1.0f, 1.0f, 1.0f);\n glVertex2f(-sx, sy);\n glVertex2f(-sx, -sy);\n glVertex2f(sx, sy);\n glVertex2f(sx, sy);\n glVertex2f(-sx, -sy);\n glVertex2f(sx, -sy);\n glEnd();\n glPopMatrix();\n \n if(debug){\n glPushMatrix();\n glBegin(GL_LINES);\n glColor3f(0f, 1f, 0f);\n glVertex2f(px-sx, py+sy/2);\n glVertex2f(px+sx, py+sy/2);\n glColor3f(0f, 1f, 0f);\n glVertex2f(px-sx, py-sy/2);\n glVertex2f(px+sx, py-sy/2);\n glEnd();\n glPopMatrix();\n }\n \n }", "public void draw(){\n hit();\n hit();\n }", "public void drawBale() {\n\t\tvertexData.position(0);\n\t\tglVertexAttribPointer(mPositionHandle, POSITION_COMPONENT_COUNT,\n\t\t\t\tGL_FLOAT, false, 0, vertexData);\n\n\t\tglEnableVertexAttribArray(mPositionHandle);\n\n\t\t// Pass in the color information\n\t\tcolorData.position(0);\n\t\tglVertexAttribPointer(mColorHandle, COLOR_COMPONENT_COUNT,\n\t\t\t\tGL_FLOAT, false, 0, colorData);\n\n\t\tglEnableVertexAttribArray(mColorHandle);\n\t\t\n\t\t// Pass in the texture coordinate information\n textureData.position(0);\n GLES20.glVertexAttribPointer(mTextureCoordHandle, TEXTURE_COMPONENT_COUNT, GLES20.GL_FLOAT, false, \n \t\t0, textureData);\n \n GLES20.glEnableVertexAttribArray(mTextureCoordHandle);\n\n\t\t// This multiplies the view matrix by the model matrix, and stores the\n\t\t// result in the MVP matrix\n\t\t// (which currently contains model * view).\n\t\tmultiplyMM(mMVPMatrix, 0, mViewMatrix, 0, mModelMatrix, 0);\n\n\t\t// Pass in the modelview matrix.\n\t\tglUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n\t\t// This multiplies the modelview matrix by the projection matrix, and\n\t\t// stores the result in the MVP matrix\n\t\t// (which now contains model * view * projection).\n\t\tMatrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n\n\t\t// Pass in the combined matrix.\n\t\tglUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n\t\t// Draw the cube.\n\t\tglDrawArrays(GL_TRIANGLES, 0, 60);\n\t\tglDrawArrays(GL_TRIANGLE_FAN, 60, 12);\n\t\tglDrawArrays(GL_TRIANGLE_FAN, 72, 12);\n\t}", "public void drawCube() {\r\n GLES20.glUseProgram(program);\r\n\r\n GLES20.glUniform3fv(lightPosParam, 1, lightPosInEyeSpace, 0);\r\n\r\n // Set the Model in the shader, used to calculate lighting\r\n GLES20.glUniformMatrix4fv(modelParam, 1, false, model, 0);\r\n\r\n // Set the ModelView in the shader, used to calculate lighting\r\n GLES20.glUniformMatrix4fv(modelViewParam, 1, false, modelView, 0);\r\n\r\n // Set the position of the cube\r\n GLES20.glVertexAttribPointer(positionParam, COORDS_PER_VERTEX, GLES20.GL_FLOAT, false, 0, vertices);\r\n\r\n // Set the ModelViewProjection matrix in the shader.\r\n GLES20.glUniformMatrix4fv(modelViewProjectionParam, 1, false, modelViewProjection, 0);\r\n\r\n // Set the normal positions of the cube, again for shading\r\n GLES20.glVertexAttribPointer(normalParam, 3, GLES20.GL_FLOAT, false, 0, normals);\r\n GLES20.glVertexAttribPointer(colorParam, 4, GLES20.GL_FLOAT, false, 0, isLookingAtObject(this) ? cubeFoundColors : colors);\r\n\r\n GLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 36);\r\n checkGLError(\"Drawing cube\");\r\n }", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"You are drawing a RECTANGLE\");\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "public void draw() {\n\t\t\r\n\t\tSystem.out.println(\"drawing...\");\r\n\t\t\r\n\t}", "public void onDrawFrame( GL10 gl ) {\n\t\tgl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); \n\t\tgl.glLoadIdentity();\n\n\t\t\n\t\t//Move \"camera\"\n\t\tgl.glMatrixMode(GL10.GL_MODELVIEW);\n\t\tgl.glLoadIdentity();\n\t\t//gl.glTranslatef(x, y, z);\n\n\t\tQuaternion q= new Quaternion(qx,qy,qz,qw);\n\t\tVector3f rv = q.getEulerAngles();\n\t\tgl.glRotatef(rv.x, -1.0f, 0.0f, 0.0f);\n\t\tgl.glRotatef(rv.y, 0.0f, -1.0f, 0.0f);\n\t\tgl.glRotatef(rv.z, 0.0f, 0.0f, -1.0f);\n\t\t//End camera move\n\t\t\n\t\tgl.glTranslatef(-10*x, -10*y, -10*z);\n\t\t\n\t\n\t\t\n\t\t//gl.glRotatef(mCubeRotation, 1.0f, 1.0f, 1.0f);\n\n\t\tmCube.draw(gl);\n\t\t\n\t\t\n\t\t\n\n\t\tgl.glLoadIdentity(); \n\n\t\n\t\t\n\t\tmCubeRotation -= 0.15f; \n\n\t}", "private void render(){\n planeImage.draw(currPos.x,currPos.y, drawOps);\n }", "private void drawGame(){\n drawBackGroundImage();\n drawWalls();\n drawPowerups();\n drawBullet();\n }", "public synchronized void display() {\r\n\r\n\t\t// clear the screen and draw a yellow square\r\n\t\tgl.clear(GL.COLOR_BUFFER_BIT);\r\n\t\t// First rectangle\r\n\t\tgl.pushMatrix();\r\n\t\tgl.translate(-0.5, 0.0, 0.0);\r\n\t\tgl.rotate(spin, 0.0, 0.0, 1.0);\r\n\t\tgl.rect(-0.5, -0.5, 0.5, 0.5);\r\n\t\tgl.popMatrix();\r\n\t\t// Second rectangle\r\n\t\tgl.pushMatrix();\r\n\t\tgl.translate(0.5, 0.0, 0.0);\r\n\t\tgl.rotate(-spin, 0.0, 0.0, 1.0);\r\n\t\tgl.rect(-0.5, -0.5, 0.5, 0.5);\r\n\t\tgl.popMatrix();\r\n\t\tgl.flush(); // Make sure all commands have completed.\r\n\t\tgl.swap();\t // Swap the render buffer with the screen buffer\r\n\t}", "@Override\n\tpublic void draw(Graphics2D g, Camera cam) {\n\n\t}", "public void drawNearClippedFace(int face) {\n\t\tint centerX = Draw3D.centerX;\n\t\tint centerY = Draw3D.centerY;\n\t\tint elements = 0;\n\n\t\tint a = faceVertexA[face];\n\t\tint b = faceVertexB[face];\n\t\tint c = faceVertexC[face];\n\n\t\tint zA = vertexViewSpaceZ[a];\n\t\tint zB = vertexViewSpaceZ[b];\n\t\tint zC = vertexViewSpaceZ[c];\n\n\t\tif (zA >= 50) {\n\t\t\tclippedX[elements] = vertexScreenX[a];\n\t\t\tclippedY[elements] = vertexScreenY[a];\n\t\t\tclippedColor[elements++] = faceColorA[face];\n\t\t} else {\n\t\t\tint xA = vertexViewSpaceX[a];\n\t\t\tint yA = vertexViewSpaceY[a];\n\t\t\tint colorA = faceColorA[face];\n\n\t\t\tif (zC >= 50) {\n\t\t\t\tint scalar = (50 - zA) * reciprical16[zC - zA];\n\t\t\t\tclippedX[elements] = centerX + (((xA + (((vertexViewSpaceX[c] - xA) * scalar) >> 16)) << 9) / 50);\n\t\t\t\tclippedY[elements] = centerY + (((yA + (((vertexViewSpaceY[c] - yA) * scalar) >> 16)) << 9) / 50);\n\t\t\t\tclippedColor[elements++] = colorA + (((faceColorC[face] - colorA) * scalar) >> 16);\n\t\t\t}\n\n\t\t\tif (zB >= 50) {\n\t\t\t\tint scalar = (50 - zA) * reciprical16[zB - zA];\n\t\t\t\tclippedX[elements] = centerX + (((xA + (((vertexViewSpaceX[b] - xA) * scalar) >> 16)) << 9) / 50);\n\t\t\t\tclippedY[elements] = centerY + (((yA + (((vertexViewSpaceY[b] - yA) * scalar) >> 16)) << 9) / 50);\n\t\t\t\tclippedColor[elements++] = colorA + (((faceColorB[face] - colorA) * scalar) >> 16);\n\t\t\t}\n\t\t}\n\n\t\tif (zB >= 50) {\n\t\t\tclippedX[elements] = vertexScreenX[b];\n\t\t\tclippedY[elements] = vertexScreenY[b];\n\t\t\tclippedColor[elements++] = faceColorB[face];\n\t\t} else {\n\t\t\tint xB = vertexViewSpaceX[b];\n\t\t\tint yB = vertexViewSpaceY[b];\n\t\t\tint colorB = faceColorB[face];\n\n\t\t\tif (zA >= 50) {\n\t\t\t\tint scalar = (50 - zB) * reciprical16[zA - zB];\n\t\t\t\tclippedX[elements] = centerX + (((xB + (((vertexViewSpaceX[a] - xB) * scalar) >> 16)) << 9) / 50);\n\t\t\t\tclippedY[elements] = centerY + (((yB + (((vertexViewSpaceY[a] - yB) * scalar) >> 16)) << 9) / 50);\n\t\t\t\tclippedColor[elements++] = colorB + (((faceColorA[face] - colorB) * scalar) >> 16);\n\t\t\t}\n\n\t\t\tif (zC >= 50) {\n\t\t\t\tint scalar = (50 - zB) * reciprical16[zC - zB];\n\t\t\t\tclippedX[elements] = centerX + (((xB + (((vertexViewSpaceX[c] - xB) * scalar) >> 16)) << 9) / 50);\n\t\t\t\tclippedY[elements] = centerY + (((yB + (((vertexViewSpaceY[c] - yB) * scalar) >> 16)) << 9) / 50);\n\t\t\t\tclippedColor[elements++] = colorB + (((faceColorC[face] - colorB) * scalar) >> 16);\n\t\t\t}\n\t\t}\n\n\t\tif (zC >= 50) {\n\t\t\tclippedX[elements] = vertexScreenX[c];\n\t\t\tclippedY[elements] = vertexScreenY[c];\n\t\t\tclippedColor[elements++] = faceColorC[face];\n\t\t} else {\n\t\t\tint xC = vertexViewSpaceX[c];\n\t\t\tint yC = vertexViewSpaceY[c];\n\t\t\tint colorC = faceColorC[face];\n\n\t\t\tif (zB >= 50) {\n\t\t\t\tint k6 = (50 - zC) * reciprical16[zB - zC];\n\t\t\t\tclippedX[elements] = centerX + (((xC + (((vertexViewSpaceX[b] - xC) * k6) >> 16)) << 9) / 50);\n\t\t\t\tclippedY[elements] = centerY + (((yC + (((vertexViewSpaceY[b] - yC) * k6) >> 16)) << 9) / 50);\n\t\t\t\tclippedColor[elements++] = colorC + (((faceColorB[face] - colorC) * k6) >> 16);\n\t\t\t}\n\n\t\t\tif (zA >= 50) {\n\t\t\t\tint l6 = (50 - zC) * reciprical16[zA - zC];\n\t\t\t\tclippedX[elements] = centerX + (((xC + (((vertexViewSpaceX[a] - xC) * l6) >> 16)) << 9) / 50);\n\t\t\t\tclippedY[elements] = centerY + (((yC + (((vertexViewSpaceY[a] - yC) * l6) >> 16)) << 9) / 50);\n\t\t\t\tclippedColor[elements++] = colorC + (((faceColorA[face] - colorC) * l6) >> 16);\n\t\t\t}\n\t\t}\n\n\t\tint x0 = clippedX[0];\n\t\tint x1 = clippedX[1];\n\t\tint x2 = clippedX[2];\n\t\tint y0 = clippedY[0];\n\t\tint y1 = clippedY[1];\n\t\tint y2 = clippedY[2];\n\n\t\t// Back-face culling\n\t\tif ((((x0 - x1) * (y2 - y1)) - ((y0 - y1) * (x2 - x1))) <= 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tDraw3D.clipX = false;\n\n\t\t// It's possible for a single triangle to be clipped into two separate triangles.\n\n\t\tif (elements == 3) {\n\t\t\tif ((x0 < 0) || (x1 < 0) || (x2 < 0) || (x0 > Draw2D.boundX) || (x1 > Draw2D.boundX) || (x2 > Draw2D.boundX)) {\n\t\t\t\tDraw3D.clipX = true;\n\t\t\t}\n\n\t\t\tint type;\n\n\t\t\tif (faceInfo == null) {\n\t\t\t\ttype = 0;\n\t\t\t} else {\n\t\t\t\ttype = faceInfo[face] & 3;\n\t\t\t}\n\n\t\t\tif (type == 0) {\n\t\t\t\tDraw3D.fillGouraudTriangle(y0, y1, y2, x0, x1, x2, clippedColor[0], clippedColor[1], clippedColor[2]);\n\t\t\t} else if (type == 1) {\n\t\t\t\tDraw3D.fillTriangle(y0, y1, y2, x0, x1, x2, palette[faceColorA[face]]);\n\t\t\t} else if (type == 2) {\n\t\t\t\tint texturedFace = faceInfo[face] >> 2;\n\t\t\t\tint tA = texturedVertexA[texturedFace];\n\t\t\t\tint tB = texturedVertexB[texturedFace];\n\t\t\t\tint tC = texturedVertexC[texturedFace];\n\t\t\t\tDraw3D.fillTexturedTriangle(y0, y1, y2, x0, x1, x2, clippedColor[0], clippedColor[1], clippedColor[2], vertexViewSpaceX[tA], vertexViewSpaceX[tB], vertexViewSpaceX[tC], vertexViewSpaceY[tA], vertexViewSpaceY[tB], vertexViewSpaceY[tC], vertexViewSpaceZ[tA], vertexViewSpaceZ[tB], vertexViewSpaceZ[tC], faceColor[face]);\n\t\t\t} else if (type == 3) {\n\t\t\t\tint texturedFace = faceInfo[face] >> 2;\n\t\t\t\tint tA = texturedVertexA[texturedFace];\n\t\t\t\tint tB = texturedVertexB[texturedFace];\n\t\t\t\tint tC = texturedVertexC[texturedFace];\n\t\t\t\tDraw3D.fillTexturedTriangle(y0, y1, y2, x0, x1, x2, faceColorA[face], faceColorA[face], faceColorA[face], vertexViewSpaceX[tA], vertexViewSpaceX[tB], vertexViewSpaceX[tC], vertexViewSpaceY[tA], vertexViewSpaceY[tB], vertexViewSpaceY[tC], vertexViewSpaceZ[tA], vertexViewSpaceZ[tB], vertexViewSpaceZ[tC], faceColor[face]);\n\t\t\t}\n\t\t} else if (elements == 4) {\n\t\t\tif ((x0 < 0) || (x1 < 0) || (x2 < 0) || (x0 > Draw2D.boundX) || (x1 > Draw2D.boundX) || (x2 > Draw2D.boundX) || (clippedX[3] < 0) || (clippedX[3] > Draw2D.boundX)) {\n\t\t\t\tDraw3D.clipX = true;\n\t\t\t}\n\n\t\t\tint type;\n\n\t\t\tif (faceInfo == null) {\n\t\t\t\ttype = 0;\n\t\t\t} else {\n\t\t\t\ttype = faceInfo[face] & 3;\n\t\t\t}\n\n\t\t\tif (type == 0) {\n\t\t\t\tDraw3D.fillGouraudTriangle(y0, y1, y2, x0, x1, x2, clippedColor[0], clippedColor[1], clippedColor[2]);\n\t\t\t\tDraw3D.fillGouraudTriangle(y0, y2, clippedY[3], x0, x2, clippedX[3], clippedColor[0], clippedColor[2], clippedColor[3]);\n\t\t\t} else if (type == 1) {\n\t\t\t\tint colorA = palette[faceColorA[face]];\n\t\t\t\tDraw3D.fillTriangle(y0, y1, y2, x0, x1, x2, colorA);\n\t\t\t\tDraw3D.fillTriangle(y0, y2, clippedY[3], x0, x2, clippedX[3], colorA);\n\t\t\t} else if (type == 2) {\n\t\t\t\tint texturedFace = faceInfo[face] >> 2;\n\t\t\t\tint tA = texturedVertexA[texturedFace];\n\t\t\t\tint tB = texturedVertexB[texturedFace];\n\t\t\t\tint tC = texturedVertexC[texturedFace];\n\t\t\t\tDraw3D.fillTexturedTriangle(y0, y1, y2, x0, x1, x2, clippedColor[0], clippedColor[1], clippedColor[2], vertexViewSpaceX[tA], vertexViewSpaceX[tB], vertexViewSpaceX[tC], vertexViewSpaceY[tA], vertexViewSpaceY[tB], vertexViewSpaceY[tC], vertexViewSpaceZ[tA], vertexViewSpaceZ[tB], vertexViewSpaceZ[tC], faceColor[face]);\n\t\t\t\tDraw3D.fillTexturedTriangle(y0, y2, clippedY[3], x0, x2, clippedX[3], clippedColor[0], clippedColor[2], clippedColor[3], vertexViewSpaceX[tA], vertexViewSpaceX[tB], vertexViewSpaceX[tC], vertexViewSpaceY[tA], vertexViewSpaceY[tB], vertexViewSpaceY[tC], vertexViewSpaceZ[tA], vertexViewSpaceZ[tB], vertexViewSpaceZ[tC], faceColor[face]);\n\t\t\t} else if (type == 3) {\n\t\t\t\tint texturedFace = faceInfo[face] >> 2;\n\t\t\t\tint tA = texturedVertexA[texturedFace];\n\t\t\t\tint tB = texturedVertexB[texturedFace];\n\t\t\t\tint tC = texturedVertexC[texturedFace];\n\t\t\t\tDraw3D.fillTexturedTriangle(y0, y1, y2, x0, x1, x2, faceColorA[face], faceColorA[face], faceColorA[face], vertexViewSpaceX[tA], vertexViewSpaceX[tB], vertexViewSpaceX[tC], vertexViewSpaceY[tA], vertexViewSpaceY[tB], vertexViewSpaceY[tC], vertexViewSpaceZ[tA], vertexViewSpaceZ[tB], vertexViewSpaceZ[tC], faceColor[face]);\n\t\t\t\tDraw3D.fillTexturedTriangle(y0, y2, clippedY[3], x0, x2, clippedX[3], faceColorA[face], faceColorA[face], faceColorA[face], vertexViewSpaceX[tA], vertexViewSpaceX[tB], vertexViewSpaceX[tC], vertexViewSpaceY[tA], vertexViewSpaceY[tB], vertexViewSpaceY[tC], vertexViewSpaceZ[tA], vertexViewSpaceZ[tB], vertexViewSpaceZ[tC], faceColor[face]);\n\t\t\t}\n\t\t}\n\t}", "private static void draw() {\n\t\tinitField();\n\t\tview = new View(field);\n\t\tview.setSize(viewWidth, viewHeight);\n\t\tframe = new JFrame();\n\t\tframe.setSize(fwidth, fheight);\n\t\tframe.setTitle(\"Land Mine\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.add(view);\n\t\tframe.setVisible(true);\n\t}", "public void draw(){\n\t\tif(selected){\n\t\t\timg.draw(xpos,ypos,scale,Color.blue);\n\t\t}else{\n\t\t\timg.draw(xpos, ypos, scale);\n\t\t}\n\t}", "public void render()\n\t{\n\t\t// Get or create the BufferStrategy to plan rendering\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get the graphics that can be drawn to\n\t\tg = bs.getDrawGraphics();\n\t\t\n\t\t// Set the Graphics2D\n\t\tg2d = (Graphics2D)g;\n\t\t\n\t\t// Create a black rectangle to fill the canvas as a base background\n\t\tg.setColor(Color.black);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\tif (screenLoaded)\n\t\t{\n\t\t\t// Draw the static background\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawStaticBackground(g);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(game.getCamera().getxPos(), \n\t\t\t\t\t\t \t game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the background layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawBackground(g);\n\t\t\t\n\t\t\t// Render all of the Tiles\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesWorld())\n\t\t\t\tgame.getWorldHandler().renderTiles(g);\n\t\t\t\n\t\t\t// Render all of the GameObjects\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesGameObjects())\n\t\t\t\tgame.getObjectHandler().renderGameObjects(g);\n\t\t\t\n\t\t\t// Draw the foreground layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawForeground(g);\n\t\t\t\n\t\t\t// Draw the lighting\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesLighting())\n\t\t\tg.drawImage(game.getLightHandler().getLightmap(), -1500, -3100, null);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(-game.getCamera().getxPos(), \n\t\t\t\t\t\t \t -game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the gui layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawGui(g);\n\t\t\t\n\t\t\t// Draw the debug layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null\n\t\t\t\t&& game.getDebugScreen() != null\n\t\t\t\t&& game.isDebugShown())\n\t\t\t\tgame.getDebugScreen().showDebug(g);\n\t\t\t\n\t\t\t// Draw the loading \"curtain\" if the screen is still loading\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null &&\n\t\t\t\t!screenLoaded)\n\t\t\t{\n\t\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Dispose of all graphics\n\t\t\tg.dispose();\n\t\t\t// Show all graphics prepared on the BufferStrategy\n\t\t\tbs.show();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tGraphics2D g2 = (Graphics2D)g;\n\t\t\tg2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\t\n\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Dispose of all graphics\n\t\tg.dispose();\n\t\t// Show all graphics prepared on the BufferStrategy\n\t\tbs.show();\n\t}", "protected abstract void showRightFace();", "private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n } else {\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n g.setColor(Color.white);\n g.drawLine(0, 500, 595, 500);\n player.render(g);\n for (int i = 0; i < aliens.size(); i++) {\n Alien al = aliens.get(i);\n al.render(g);\n }\n if (shotVisible) {\n shot.render(g);\n }\n\n if(gameOver==false)\n {\n gameOver();\n }\n for(Alien alien: aliens){\n Bomb b = alien.getBomb();\n b.render(g);\n }\n g.setColor(Color.red);\n Font small = new Font(\"Helvetica\", Font.BOLD, 20);\n g.setFont(small);\n g.drawString(\"G - Guardar\", 10, 50);\n g.drawString(\"C - Cargar\", 10, 70);\n g.drawString(\"P - Pausa\", 10, 90);\n\n if(keyManager.pause)\n {\n g.drawString(\"PAUSA\", 250, 300);\n }\n \n bs.show();\n g.dispose();\n }\n\n }", "public void beginDraw(int renderMode)\r\n\t{\r\n\r\n\t\tswitch(renderMode) {\r\n\t\tcase POINT:\r\n\t\t\tgl.glBegin(GL_POINTS);\r\n\t\t\tbreak;\r\n\t\tcase POLYGON:\r\n\t\t\tgl.glBegin(GL_POLYGON);\r\n\t\t\tbreak;\r\n\t\tcase POLYLINE:\r\n\t\t\tgl.glBegin(GL_LINE_STRIP);\r\n\t\t\tbreak;\r\n\t\tcase LINE:\r\n\t\t\tgl.glBegin(GL_LINES);\r\n\t\t\tbreak;\r\n\t\tcase TRIANGLE:\r\n\t\t\tgl.glBegin(GL_TRIANGLES);\r\n\t\t\tbreak;\r\n\t\tcase LINE_LOOP:\r\n\t\t\tgl.glBegin(GL_LINE_LOOP);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "void draw() {\n\t\tSystem.out.println(\"Drawing the Rectange...\");\n\t\t}", "public void draw()\r\n {\r\n drawn = true;\r\n }", "public void draw() {\n\t\tGL11.glColor3f(0.5f,0.5f,1.0f);\n\t\n\t\t// draw quad\n\t\tGL11.glBegin(GL11.GL_QUADS);\n\t\t\tGL11.glVertex2f(x,y);\n\t\t\tGL11.glVertex2f(x+width,y);\n\t\t\tGL11.glVertex2f(x+width,y+height);\n\t\t\tGL11.glVertex2f(x,y+height);\n\t\tGL11.glEnd();\n\t\t\n\t\tif(text != null || !text.equals(\"\"))\n\t\t\tfont.drawString(text, x, y);\n\t\n\t}", "private void render() {\n if (game.isEnded()) {\n if (endGui == null) {\n drawEndScreen();\n }\n\n return;\n }\n\n drawScore();\n drawSnake();\n drawFood();\n }", "public void draw() {\n draw(clientController.getUser().getShows());\n }", "public void render() {\r\n glPushMatrix();\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOVertexHandle);\r\n glVertexPointer(3, GL_FLOAT, 0, 0l);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOColorHandle);\r\n glColorPointer(3, GL_FLOAT, 0, 0l);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOTextureHandle);\r\n glBindTexture(GL_TEXTURE_2D, 1);\r\n glTexCoordPointer(2, GL_FLOAT, 0, 0l);\r\n glDrawArrays(GL_QUADS, 0, CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 24);\r\n glPopMatrix();\r\n }", "public void draw(){\n\t\tcomponent.draw();\r\n\t}", "@Override\r\n public void draw() {\n }", "public void draw() {\n\t\tSystem.out.println(getMessageSource().getMessage(\"greeting2\", null, null));\r\n\r\n\t\tSystem.out.println(getMessageSource().getMessage(\"drawing.circle\", null, null));\r\n\t\tSystem.out.println(\"Center's Coordinates: (\" + getCenter().getX() + \", \" + getCenter().getY() + \")\");\r\n\t\tSystem.out.println(getMessageSource().getMessage(\"drawing.center\",\r\n\t\t\t\tnew Object[] { getCenter().getX(), getCenter().getY() }, \"Default point coordinates msg\", null));\r\n\t}", "public void display(GLAutoDrawable gLDrawable) {\n final GL2 gl = gLDrawable.getGL().getGL2(); \n gl.glClear(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT); //clear buffers\n gl.glMatrixMode(GL2.GL_MODELVIEW);\n gl.glLoadIdentity();\t\n\n EffectsManager.getManager().updateLights(gl);\n //eye positition is set by Animator class, it looks at 0, 0, 0\n glu.gluLookAt(eyeLocation.x, eyeLocation.y, eyeLocation.z, 0, 0, 0, 0, 1, 0);\n \n gl.glPushMatrix();\n gl.glBegin(GL2.GL_QUADS);\n \n Random rand = new Random(100);\n \n for (QuadFace f : mesh) {\n \tfor (Vector3f v : f.getVertices()) {\n \t\tVector3f norm = normals.get(v);\n \t\tgl.glColor3f(rand.nextFloat(), rand.nextFloat(), rand.nextFloat());\n \t\tgl.glNormal3f(norm.x, norm.y, norm.z);\n \t\tgl.glVertex3f(v.x, v.y, v.z);\n \t}\n }\n gl.glEnd();\n gl.glPopMatrix();\n gl.glFlush(); \n }", "public static boolean render(int coordX, int coordY, int coordZ, int texture, Texture[] textureMap) {\r\n GL11.glTranslatef(coordX, coordY, coordZ); // Absolute position in game\r\n// GL11.glRotatef(xrot, 1.0f, 0.0f, 0.0f); // Rotate On The X Axis\r\n// GL11.glRotatef(yrot, 0.0f, 1.0f, 0.0f); // Rotate On The Y Axis\r\n// GL11.glRotatef(zrot, 0.0f, 0.0f, 1.0f); // Rotate On The Z Axis\r\n GL11.glBindTexture(GL11.GL_TEXTURE_2D, textureMap[texture].getTextureID()); // Select Our Texture\r\n GL11.glBegin(GL11.GL_QUADS);\r\n // Front Face\r\n GL11.glTexCoord2f(0.0f, 0.0f);\r\n GL11.glVertex3f(-1.0f, -1.0f, 1.0f); // Bottom Left Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 0.0f);\r\n GL11.glVertex3f(1.0f, -1.0f, 1.0f); // Bottom Right Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 1.0f);\r\n GL11.glVertex3f(1.0f, 1.0f, 1.0f); // Top Right Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 1.0f);\r\n GL11.glVertex3f(-1.0f, 1.0f, 1.0f); // Top Left Of The Texture and Quad\r\n // Back Face\r\n GL11.glTexCoord2f(1.0f, 0.0f);\r\n GL11.glVertex3f(-1.0f, -1.0f, -1.0f); // Bottom Right Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 1.0f);\r\n GL11.glVertex3f(-1.0f, 1.0f, -1.0f); // Top Right Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 1.0f);\r\n GL11.glVertex3f(1.0f, 1.0f, -1.0f); // Top Left Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 0.0f);\r\n GL11.glVertex3f(1.0f, -1.0f, -1.0f); // Bottom Left Of The Texture and Quad\r\n // Top Face\r\n GL11.glTexCoord2f(0.0f, 1.0f);\r\n GL11.glVertex3f(-1.0f, 1.0f, -1.0f); // Top Left Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 0.0f);\r\n GL11.glVertex3f(-1.0f, 1.0f, 1.0f); // Bottom Left Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 0.0f);\r\n GL11.glVertex3f(1.0f, 1.0f, 1.0f); // Bottom Right Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 1.0f);\r\n GL11.glVertex3f(1.0f, 1.0f, -1.0f); // Top Right Of The Texture and Quad\r\n // Bottom Face\r\n GL11.glTexCoord2f(1.0f, 1.0f);\r\n GL11.glVertex3f(-1.0f, -1.0f, -1.0f); // Top Right Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 1.0f);\r\n GL11.glVertex3f(1.0f, -1.0f, -1.0f); // Top Left Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 0.0f);\r\n GL11.glVertex3f(1.0f, -1.0f, 1.0f); // Bottom Left Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 0.0f);\r\n GL11.glVertex3f(-1.0f, -1.0f, 1.0f); // Bottom Right Of The Texture and Quad\r\n // Right face\r\n GL11.glTexCoord2f(1.0f, 0.0f);\r\n GL11.glVertex3f(1.0f, -1.0f, -1.0f); // Bottom Right Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 1.0f);\r\n GL11.glVertex3f(1.0f, 1.0f, -1.0f); // Top Right Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 1.0f);\r\n GL11.glVertex3f(1.0f, 1.0f, 1.0f); // Top Left Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 0.0f);\r\n GL11.glVertex3f(1.0f, -1.0f, 1.0f); // Bottom Left Of The Texture and Quad\r\n // Left Face\r\n GL11.glTexCoord2f(0.0f, 0.0f);\r\n GL11.glVertex3f(-1.0f, -1.0f, -1.0f); // Bottom Left Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 0.0f);\r\n GL11.glVertex3f(-1.0f, -1.0f, 1.0f); // Bottom Right Of The Texture and Quad\r\n GL11.glTexCoord2f(1.0f, 1.0f);\r\n GL11.glVertex3f(-1.0f, 1.0f, 1.0f); // Top Right Of The Texture and Quad\r\n GL11.glTexCoord2f(0.0f, 1.0f);\r\n GL11.glVertex3f(-1.0f, 1.0f, -1.0f); // Top Left Of The Texture and Quad\r\n GL11.glEnd();\r\n\r\n// xrot += 0.3f; // X Axis Rotation\r\n// yrot += 0.2f; // Y Axis Rotation\r\n// zrot += 0.4f; // Z Axis Rotation\r\n\r\n return true;\r\n }", "public void draw() \r\n\t{\r\n\t\tdraw(root, new RectHV(0,0,1,1) );\r\n\t}", "public void render () {\n\t\tcam.update();\n\t\tbatch.setProjectionMatrix(cam.combined);\n\t\trenderBackground();\n\t\t/*shapeRender.setProjectionMatrix(cam.combined);\n\t\tshapeRender.begin(ShapeRenderer.ShapeType.Line);\n\t\tshapeRender.ellipse(world.trout.hitBox.x, world.trout.hitBox.y, world.trout.hitBox.width, world.trout.hitBox.height);\n\t\tshapeRender.circle(world.hook.circleBounds.x, world.hook.circleBounds.y, world.hook.circleBounds.radius);\n\t\tshapeRender.point(world.trout.position.x, world.trout.position.y, 0f);*/\n\t\trenderObjects();\n\t\t\n\t}", "protected void render() {\n\t\tentities.render();\n\t\t// Render GUI\n\t\tentities.renderGUI();\n\n\t\t// Flips the page between the two buffers\n\t\ts.drawToGraphics((Graphics2D) Window.strategy.getDrawGraphics());\n\t\tWindow.strategy.show();\n\t}", "public void draw(Graphics surface) {\r\n surface.drawLine(50, 50, 250, 250);\r\n\tsurface.drawOval(20,20,40,40);\r\n box.draw(surface);\r\n\tfor (BouncingBox b : boxes) {\r\n\t b.draw(surface);\r\n\t}\r\n }", "public void drawOn(DrawSurface surface) {\n surface.setColor(Color.BLACK);\n surface.fillCircle(this.getX() + 1, this.getY() + 1, this.r);\n surface.setColor(this.color);\n surface.fillCircle(this.getX(), this.getY(), this.r);\n surface.setColor(Color.black);\n surface.drawCircle(this.getX(), this.getY(), this.r);\n }", "@Override\n public void render() {\n // Set the background color to opaque black\n Gdx.gl.glClearColor(0, 0, 0, 1);\n // Actually tell OpenGL to clear the screen\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n // First we begin a batch of points\n shapeRenderer.begin(ShapeType.Point);\n // Then we draw a point\n shapeRenderer.point(100, 100, 0);\n // And make sure we end the batch\n shapeRenderer.end();\n }", "protected abstract void draw();", "public void drawOn(DrawSurface surface) {\n surface.setColor(this.color);\n surface.fillCircle(this.getX(), this.getY(), r);\n surface.setColor(Color.BLACK);\n surface.drawCircle(this.getX(), this.getY(), r);\n }", "public void drawOn(DrawSurface surface){\r\n surface.setColor(color);\r\n surface.fillCircle((int)center.getX(),(int)center.getY(),radius);\r\n }", "public void setFace(CardFace face) {\n if (face == CardFace.FACE_DOWN) {\n cardFace = CardFace.FACE_DOWN;\n sprite.texture = faceDownTexture;\n } else {\n cardFace = CardFace.FACE_UP;\n sprite.texture = faceUpTexture;\n }\n }", "public void draw() {\n draw(this.root, new RectHV(0.0, 0.0, 1.0, 1.0));\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public void render()\n\t{\n\t\tBufferStrategy bs = this.getBufferStrategy();\n\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t//////////////////////////////\n\n\t\tg.setColor(Color.DARK_GRAY);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\tif (display != null && GeneticSimulator.updateRendering)\n\t\t{\n\t\t\tg.drawImage(display, 0, 0, getWidth(), getHeight(), this);\n\t\t}\n\n\t\tWorld world = GeneticSimulator.world();\n\n\t\tworld.draw((Graphics2D) g, view);\n\n\t\tg.setColor(Color.WHITE);\n\t\tg.drawString(String.format(\"view: [%2.1f, %2.1f, %2.1f, %2.1f, %2.2f]\", view.x, view.y, view.width, view.height, view.PxToWorldScale), (int) 10, (int) 15);\n\n\t\tg.drawString(String.format(\"world: [time: %2.2f pop: %d]\", world.getTime() / 100f, World.popCount), 10, 30);\n\n\t\tg.drawRect(view.pixelX, view.pixelY, view.pixelWidth, view.pixelHeight);\n//\t\tp.render(g);\n//\t\tc.render(g);\n\n\n\t\t//g.drawImage(player,100,100,this);\n\n\t\t//////////////////////////////\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "public void drawOn(DrawSurface surface) {\n surface.setColor(Color.WHITE);\n surface.fillCircle(this.getX(), this.getY(), this.radius);\n surface.setColor(Color.BLACK);\n surface.drawCircle(this.getX(), this.getY(), this.radius);\n }", "public void draw() {\n if (!myTurn()) {\n return;\n }\n draw(4 - handPile.size());\n }", "public void draw(){\n\t\tString filename = \"images/\" + this.imgFileName;\n\t\tStdDraw.picture(this.xxPos, this.yyPos, filename);\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "private void draw() {\n gsm.draw(g);\n }", "void draw(IViewShapes shape);", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }", "public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }" ]
[ "0.7664062", "0.7253399", "0.7045349", "0.7014079", "0.6930137", "0.66921127", "0.668224", "0.66493887", "0.6573897", "0.6543139", "0.6531973", "0.64193803", "0.6371812", "0.63341427", "0.6330914", "0.6326667", "0.63250184", "0.6302117", "0.6288815", "0.62826645", "0.62717295", "0.62717295", "0.62717295", "0.6271332", "0.62603754", "0.6227312", "0.62206584", "0.62023747", "0.62016124", "0.6198945", "0.61761975", "0.6174075", "0.6164834", "0.61580074", "0.61395866", "0.61363393", "0.61354434", "0.6121612", "0.61210805", "0.61090446", "0.6100401", "0.6099694", "0.6076821", "0.6057441", "0.6051216", "0.60396874", "0.6037689", "0.603386", "0.6032923", "0.60321283", "0.60321105", "0.6023719", "0.6017172", "0.6017172", "0.6016499", "0.6005091", "0.60027903", "0.60024375", "0.59970784", "0.59867734", "0.5983173", "0.5978565", "0.5977887", "0.59753895", "0.59738916", "0.59624887", "0.5962162", "0.5951989", "0.59519225", "0.59517443", "0.5950191", "0.5949818", "0.5949304", "0.5945987", "0.59418285", "0.5938966", "0.5938552", "0.5936098", "0.59319437", "0.59279996", "0.5924596", "0.5922493", "0.59196156", "0.5914324", "0.5910894", "0.59011406", "0.5891349", "0.58908457", "0.5888402", "0.5888095", "0.5888095", "0.5884921", "0.588453", "0.5879886", "0.5878704", "0.58755183", "0.58755183", "0.58746827", "0.5874677", "0.58702344", "0.58702344" ]
0.0
-1
Sets up the window for the Graphics
private void init(){ add(new DrawSurface()); setTitle("Animation Exercise"); setSize(640, 480); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupWindow() {\n\t\tgetContentPane().setLayout(null);\t\t\t\t\n\n\t\t// Set title\n\t\tsetTitle(\"Gallhp\");\n\n\t\t// Set location and size\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\t\n\t\tsetSize(800, 600);\n\t\tsetResizable(false);\n\n\t}", "private static void setupWindow() {\n window.setSize((2 * WINDOW_MARGINS) + (CELL_SIZE * SIZE_X), (2 * WINDOW_MARGINS) + (CELL_SIZE * SIZE_Y));\n window.add(canvas);\n window.setVisible(true);\n window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n canvas.createBufferStrategy(2);\n }", "private void drawWindowSetup(){\n\t\t//draw header\n\t\ttopBar.draw(graphics);\n\t\t//draw footer\n\t\tbottomBar.draw(graphics);\n\t\t//draw right bar\n\t\trightBar.draw(graphics);\n\t}", "private void buildWindow(){\r\n\t\tthis.setSize(new Dimension(600, 400));\r\n\t\tFunctions.setDebug(true);\r\n\t\tbackendConnector = new BackendConnector(this);\r\n\t\tguiManager = new GUIManager(this);\r\n\t\tmainCanvas = new MainCanvas(this);\r\n\t\tadd(mainCanvas);\r\n\t}", "private void configureWindow() {\n\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n background.setBackground(Color.BLACK);\n setSize(initialWindowWidth, initialWindowHeight);\n setVisible(true);\n }", "private void setupGameWindow()\n {\n uControll.setWindowProperties(new WindowListener() {\n @Override\n public void windowOpened(WindowEvent we) {\n }\n\n @Override\n public void windowClosing(WindowEvent we) {\n menuPanel.open();\n }\n\n @Override\n public void windowClosed(WindowEvent we) {\n }\n\n @Override\n public void windowIconified(WindowEvent we) {\n }\n\n @Override\n public void windowDeiconified(WindowEvent we) {\n }\n\n @Override\n public void windowActivated(WindowEvent we) {\n }\n\n @Override\n public void windowDeactivated(WindowEvent we) {\n }\n });\n }", "private UI() {\r\n window = new JFrame();\r\n window.setSize(800, 450);\r\n window.setResizable(false);\r\n window.setLocation(0, 0);\r\n window.setVisible(true);\r\n window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n window.setTitle(\"RadarApp\");\r\n windowgfx = window.getGraphics();\r\n try{\r\n sound = Audio.getInstance();\r\n } catch(MidiUnavailableException e){\r\n sound = null;\r\n }\r\n\r\n \r\n }", "public GameWindow() {\n\t\tthis.initWindow();\n\t}", "private void initUI() {\n\t\t//Creating the window for our game\n\t\tframe = new JFrame(GAME_TITLE);\n\t\tframe.setSize(BOARD_WIDTH, BOARD_HEIGHT);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setResizable(false);\n\t\tframe.setLocationRelativeTo(null);\n\t\tframe.setVisible(true);\n\t\t\n\t\t//Creating a canvas to add to the window\n\t\tcanvas = new Canvas();\n\t\tcanvas.setPreferredSize(new Dimension(BOARD_WIDTH, BOARD_HEIGHT));\n\t\tcanvas.setMaximumSize(new Dimension(BOARD_WIDTH, BOARD_HEIGHT));\n\t\tcanvas.setMinimumSize(new Dimension(BOARD_WIDTH, BOARD_HEIGHT));\n\t\t\n\t\tframe.add(canvas);\n\t\tframe.pack();\n\t\t\n\t}", "private void createWindow() {\r\n\t\t// Create the picture frame and initializes it.\r\n\t\tthis.createAndInitPictureFrame();\r\n\r\n\t\t// Set up the menu bar.\r\n\t\tthis.setUpMenuBar();\r\n\r\n\t\t// Create the information panel.\r\n\t\t//this.createInfoPanel();\r\n\r\n\t\t// Create the scrollpane for the picture.\r\n\t\tthis.createAndInitScrollingImage();\r\n\r\n\t\t// Show the picture in the frame at the size it needs to be.\r\n\t\tthis.pictureFrame.pack();\r\n\t\tthis.pictureFrame.setVisible(true);\r\n\t\tpictureFrame.setSize(728,560);\r\n\t}", "public void setupGUIWindow()\n { \n// _frame.setExtendedState(Frame.MAXIMIZED_BOTH);\n// exitOnClose(); \n// createButtonGrid(); \n// addButtonPanel(); \n \n\t //setSize(new Dimension(Toolkit.getDefaultToolkit().getScreenSize())); \n \n\t _frame.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t _frame.addComponentListener(new WindowListener());\n\t exitOnClose(); \n\t createShipPlacementButton();\n\t createButtonGrid(_displayPanel, _buttonGrid2, null); // player\n\t createButtonGrid(_buttonPanel, _buttonGrid, new GridListener(_buttonGrid)); // enemy\n\t addButtonPanel(); \n }", "public GameWindow() {\n\t\tthis.setTitle(\"HEX\");// small caps HEX is \\u029C\\u1D07x\n\t\tviewSize = new Dimension(750, 600);\n\t\tbarSize = new Dimension(250, 600);\n\t\twindowSize = new Dimension(1000, 600);\n\t\tthis.setDefaultKeys();\n\t\tselectedOption = 0;\n\t\tactiveScreen = 0;\n\t\t// Set default player factions\n\t\tplayerFactions = new int[3];\n\t\tplayerFactions[0] = 1;\n\t\tplayerFactions[1] = 2;\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(false);\n\t\tthis.getContentPane().setMaximumSize(windowSize);\n\t\tthis.getContentPane().setMinimumSize(windowSize);\n\t\tthis.getContentPane().setPreferredSize(windowSize);\n\t\tthis.getContentPane().setSize(windowSize);\n\t\tpack();\n\t\taddKeyListener(this);\n\t\tthis.setLocationRelativeTo(null);\n\t\tthis.setIconImage(ImageRes.getWinIcon());\n\t\tsetVisible(true);\n\t\trun();\n\t}", "public Window() {\n initComponents();\n setTitle(\"Clash of Asteroids 1J\");\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setResizable(false);\n setLocationRelativeTo(null);\n canvas = new Canvas();\n keyBoard = new KeyBoard();\n mouseInput = new MouseInput();\n canvas.setPreferredSize(new Dimension(Constants.WIDTH, Constants.HEIGHT));\n canvas.setMaximumSize(new Dimension(Constants.WIDTH, Constants.HEIGHT));\n canvas.setMinimumSize(new Dimension(Constants.WIDTH, Constants.HEIGHT));\n canvas.setFocusable(true);\n add(canvas);\n canvas.addKeyListener(keyBoard);\n addKeyListener(keyBoard);\n canvas.addMouseListener(mouseInput);\n addMouseListener(mouseInput);\n canvas.addMouseMotionListener(mouseInput);\n addMouseMotionListener(mouseInput);\n setVisible(true);\n }", "public Window() {\n initComponents();\n SetIcon();\n \n }", "void go(){\n\t\twindow.setSize(28, 80);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\twindow.setVisible(true);\n\t\twindow.setResizable(false);\n\t\twindow.add(new PewGrid());\n\t\t// Adds a listener for mouse related events\n\t\twindow.addMouseListener(new mouseevent());\n\t\twindow.repaint();\n\t\t//move();\n\t}", "private void init() {\r\n\r\n createGUI();\r\n\r\n setSize(new Dimension(600, 600));\r\n setTitle(\"Grid - Regular Grid Renderer\");\r\n }", "static public void make() {\n\t\tif (window != null)\n\t\t\treturn;\n\n\t\twindow = new JFrame();\n\t\twindow.setTitle(\"Finecraft\");\n\t\twindow.setMinimumSize(new Dimension(500, 300));\n\t\twindow.setSize(asInteger(WINDOW_WIDTH), asInteger(WINDOW_HEIGHT));\n\t\twindow.setResizable(asBoolean(WINDOW_RESIZE));\n\t\twindow.setLocationRelativeTo(null);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "public Window()\n {\n // Sets window defaults\n this.setDefaultCloseOperation(EXIT_ON_CLOSE);\n this.setSize(800,800);\n this.setResizable(false);\n this.setTitle(\"Graph Drawing\");\n\n // Creates the various graph display panels\n this.detailsPanel = new DetailsPanel(this);\n detailsPanel.setMaximumSize(new Dimension(625,50));\n\n this.graph = new DrawPolygon();\n graph.setPreferredSize(new Dimension(625, 750));\n\n // Creates the various option display panels\n this.graphPanel = new GraphPanel(this);\n graphPanel.setPreferredSize(new Dimension(175, 75));\n\n this.linePanel = new LinePanel(this);\n linePanel.setPreferredSize(new Dimension(175, 100));\n\n this.aestheticsPanel = new AestheticsPanel(this);\n aestheticsPanel.setPreferredSize(new Dimension(175, 625));\n\n // Creates the graphing panel\n graphingPanel = new JPanel(new BorderLayout());\n graphingPanel.add(detailsPanel, BorderLayout.PAGE_START);\n graphingPanel.add(graph, BorderLayout.PAGE_END);\n\n // Creates the option panel container panel\n optionPanel = new JPanel(new BorderLayout());\n optionPanel.add(graphPanel, BorderLayout.PAGE_START);\n optionPanel.add(linePanel, BorderLayout.CENTER);\n optionPanel.add(aestheticsPanel, BorderLayout.PAGE_END);\n\n // Adds the panels to the content pane\n this.getContentPane().setLayout(new BorderLayout());\n this.getContentPane().add(graphingPanel, BorderLayout.WEST);\n this.getContentPane().add(optionPanel, BorderLayout.EAST);\n this.setVisible(true);\n }", "public static void createAndShowStartWindow() {\n\n\t\t// Create and set up the window.\n\n\t\tstartMenu.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t// panel will hold the buttons and text\n\t\tJPanel panel = new JPanel() {\n\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t// Fills the panel with a red/black gradient\n\t\t\tprotected void paintComponent(Graphics grphcs) {\n\t\t\t\tGraphics2D g2d = (Graphics2D) grphcs;\n\t\t\t\tg2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\n\t\t\t\tColor color1 = new Color(119, 29, 29);\n\t\t\t\tColor color2 = Color.BLACK;\n\t\t\t\tGradientPaint gp = new GradientPaint(0, 0, color1, 0, getHeight() - 100, color2);\n\t\t\t\tg2d.setPaint(gp);\n\t\t\t\tg2d.fillRect(0, 0, getWidth(), getHeight());\n\n\t\t\t\tsuper.paintComponent(grphcs);\n\t\t\t}\n\t\t};\n\n\t\tpanel.setOpaque(false);\n\n\t\tpanel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n\n\t Font customFont = null;\n\t \n\n\t\ttry {\n\t\t customFont = Font.createFont(Font.TRUETYPE_FONT, ClassLoader.getSystemClassLoader().getResourceAsStream(\"data/AlegreyaSC-Medium.ttf\")).deriveFont(32f);\n\n\t\t GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\n\t\t ge.registerFont(Font.createFont(Font.TRUETYPE_FONT, ClassLoader.getSystemClassLoader().getResourceAsStream(\"data/AlegreyaSC-Medium.ttf\")));\n\t\t\n\n\t\t} catch (IOException|FontFormatException e) {\n\t\t //Handle exception\n\t\t}\n\t\t\n\n\t\t\n\t\t// Some info text at the top of the window\n\t\tJLabel welcome = new JLabel(\"<html><center><font color='white'> Welcome to <br> Ultimate Checkers! </font></html>\",\n\t\t\t\tSwingConstants.CENTER);\n\t\twelcome.setFont(customFont);\n\t\n\n\t\twelcome.setPreferredSize(new Dimension(200, 25));\n\t\twelcome.setAlignmentX(Component.CENTER_ALIGNMENT);\n\n\n\t\t// \"Rigid Area\" is used to align everything\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 40)));\n\t\tpanel.add(welcome);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 50)));\n\t\t//panel.add(choose);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\n\t\t// The start Window will have four buttons\n\t\t// Button1 will open a new window with a standard checkers board\n\t\tJButton button1 = new JButton(\"New Game (Standard Setup)\");\n\n\t\tbutton1.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\tNewGameSettings.createAndShowGameSettings();\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\t\t// Setting up button1\n\t\tbutton1.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton1.setMaximumSize(new Dimension(250, 40));\n\n\t\t// Button2 will open a new window where a custom setup can be created\n\t\tJButton button2 = new JButton(\"New Game (Custom Setup)\");\n\t\tbutton2.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// Begin creating custom game board setup for checkers\n\t\t\t\t\t\tNewCustomWindow.createAndShowCustomGame();\n\t\t\t\t\t\t// Close the start menu window and remove it from memory\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Setting up button2\n\t\tbutton2.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton2.setMaximumSize(new Dimension(250, 40));\n\n\t\t// Button3 is not implemented yet, it will be used to load a saved game\n\t\tJButton button3 = new JButton(\"Load A Saved Game\");\n\t\tbutton3.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton3.setMaximumSize(new Dimension(250, 40));\n\t\tbutton3.addActionListener(new ActionListener() {\n\n\t\t\tfinal JFrame popupWrongFormat = new PopupFrame(\n\t\t\t\t\t\"Wrong Format!\",\n\t\t\t\t\t\"<html><center>\"\n\t\t\t\t\t\t\t+ \"The save file is in the wrong format! <br><br>\"\n\t\t\t\t\t\t\t+ \"Please make sure the load file is in csv format with an 8x8 table, \"\n\t\t\t\t\t\t\t+ \"followed by whose turn it is, \"\n\t\t\t\t\t\t\t+ \"the white player type and the black player type.\"\n\t\t\t\t\t\t\t+ \"</center></html>\");\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// This will create the file chooser\n\t\t\t\t\t\tJFileChooser chooser = new JFileChooser();\n\n\t\t\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\"CSV Files\", \"csv\");\n\t\t\t\t\t\tchooser.setFileFilter(filter);\n\n\t\t\t\t\t\tint returnVal = chooser.showOpenDialog(startMenu);\n\t\t\t\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t\t\tFile file = chooser.getSelectedFile();\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tcheckAndPlay(file);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tpopupWrongFormat.setVisible(true);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Do nothing. Load cancelled by user.\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Button4 closes the game\n\t\tJButton button4 = new JButton(\"Exit Ultimate Checkers\");\n\t\tbutton4.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjavax.swing.SwingUtilities.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// Close the start menu window and remove it from memory\n\t\t\t\t\t\tstartMenu.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t});\n\n\t\t// Setting up button4\n\t\tbutton4.setAlignmentX(Component.CENTER_ALIGNMENT);\n\t\tbutton4.setMaximumSize(new Dimension(250, 40));\n\n\t\t// The four buttons are added to the panel and aligned\n\t\tpanel.add(button1);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tpanel.add(button2);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tpanel.add(button3);\n\t\tpanel.add(Box.createRigidArea(new Dimension(0, 80)));\n\t\tpanel.add(button4);\n\n\t\t// Setting up the start Menu\n\t\tstartMenu.setSize(400, 600);\n\t\tstartMenu.setResizable(false);\n\n\t\t// Centers the window with respect to the user's screen resolution\n\t\tDimension dimension = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint x = (int) ((dimension.getWidth() - startMenu.getWidth()) / 2);\n\t\tint y = (int) ((dimension.getHeight() - startMenu.getHeight()) / 2);\n\t\tstartMenu.setLocation(x, y);\n\n\t\tstartMenu.add(panel, BorderLayout.CENTER);\n\t\tstartMenu.setVisible(true);\n\n\t}", "public Window(){\n\n screen = new Screen();\n add(screen);\n\n setSize(800,800);\n\n setTitle(\"Java Worm v0.1\");\n System.out.println(\"Java Worm v0.1\");\n\n setVisible(true);\n }", "public void setupWindow() {\n\t\t// all the variables declared above are initialized here.\n\t\tfinalizedUserQuestions = sortQuestions.randsort();\n\t\tcards = new JPanel(new CardLayout());\t\t\n\t\tcl = (CardLayout)(cards.getLayout());\n\t\t\t\n\t\tf = new JFrame(\"Jeopardy!\");\n\t\tf.setResizable(false);\n\t\tJPanel home = new JeopardyHome(cl, cards);\n\t\thome.setBackground(Color.BLUE);\n\t\tJPanel board = new JeopardyBoard(cl, cards, finalizedUserQuestions);\n\t\tJPanel answerpanel = new JeopardyAnswerPanel((JeopardyBoard) board);\n\t\tanswerpanel.setBackground(Color.BLUE);\n\t\tJPanel endpanel = new JeopardyGameEnd();\n\t\tendpanel.setBackground(Color.BLUE);\n\t\t\n\t\tcards.add(home, \"Main\");\n\t\tcards.add(board, \"Jeopardy! Board\");\n\t\tcards.add(answerpanel, \"Jeopardy! Answer\");\n\t\tcards.add(endpanel, \"End\");\n\t\t\n\t\tcl.show(cards, \"Main\");\n\t\t\n\t\t// menu widgets. This game isn't really that menu-oriented.\n\t\t// 'Exit' and 'Back to Home' are the only features.\n\t\t\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tJMenu options = new JMenu(\"Options\");\n\t\tJMenuItem exit = new JMenuItem(\"Exit\");\n\t\tback = new JMenuItem(\"Go To Board\");\n\t\t\n\t\texit.addActionListener(this);\n\t\tback.addActionListener(this);\n\t\t\n\t\toptions.add(back);\n\t\toptions.add(exit);\n\t\tmenuBar.add(options);\n\t\t\n\t\t// frame \"control center\"\n\t\tf.setJMenuBar(menuBar);\t\n\t\tf.setSize(1050, 745);\n\t\tf.setLocationRelativeTo(null);\n\t\tf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tf.add(cards, BorderLayout.CENTER);\n\t\t\t\t\n\t\tf.setVisible(true);\n\t}", "void createWindow();", "public GameWindow() {\n super(\"P-CHESS\");\n gameScreen = new GameScreen(this);\n\n setContentPane(gameScreen);\n setJMenuBar(new ProgramMenu(this));\n\n pack();\n\n setLocationRelativeTo(null);\n setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);\n setMinimumSize(getSize());\n setPreferredSize(getSize());\n\n addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent evt) {\n confirmExit();\n\n }\n });\n\n }", "void buildWindow()\n { main.gui.gralMng.selectPanel(\"primaryWindow\");\n main.gui.gralMng.setPosition(-30, 0, -47, 0, 'r'); //right buttom, about half less display width and hight.\n int windProps = GralWindow.windConcurrently;\n GralWindow window = main.gui.gralMng.createWindow(\"windStatus\", \"Status - The.file.Commander\", windProps);\n windStatus = window; \n main.gui.gralMng.setPosition(3.5f, GralPos.size -3, 1, GralPos.size +5, 'd');\n widgCopy = main.gui.gralMng.addButton(\"sCopy\", main.copyCmd.actionConfirmCopy, \"copy\");\n widgEsc = main.gui.gralMng.addButton(\"dirBytes\", actionButton, \"esc\");\n }", "public static void createAndShowGui() {\n updateShapes();\n initialiseShapeTurtleLinden();\n Painting painting = new Painting();\n ButtonsController buttonsController = new ButtonsController(painting);\n Buttons buttonPanel = new Buttons(buttonsController);\n buttonsController.turtleInit(turtle, linSys);\n\n JPanel mainPanel = new JPanel(false);\n mainPanel.add(painting);\n mainPanel.add(buttonPanel, BorderLayout.SOUTH);\n\n\n ProdPainter prodPaint = new ProdPainter();\n ProductionsController productionsController = new ProductionsController(shape, prodPaint);\n Productions productions = new Productions(productionsController);\n JPanel productionsTab = new JPanel(false);\n productionsTab.add(productions);\n productionsTab.add(prodPaint);\n\n SettingsController settingsController = new SettingsController(turtle, linSys, shape,\n buttonsController, productionsController);\n settingsController.init();\n Settings settings = new Settings(settingsController);\n JPanel settingsTab = new JPanel(false);\n settingsTab.add(settings);\n\n\n JTabbedPane tabs = new JTabbedPane();\n tabs.addTab(\"Drawing\", mainPanel);\n tabs.addTab(\"Productions\", productionsTab);\n tabs.addTab(\"Settings\", settingsTab);\n\n\n JFrame frame = new JFrame();\n frame.setSize(frameWidth, frameHeight + 120);\n setDefaultLookAndFeelDecorated(true);\n frame.add(tabs);\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "public void createGui(){\n\t\twindow = this.getContentPane(); \n\t\twindow.setLayout(new FlowLayout());\n\n\t\t//\tAdd \"panel\" to be used for drawing \n\t\t_panel = new ResizableImagePanel();\n\t\tDimension d= new Dimension(1433,642);\n\t\t_panel.setPreferredSize(d);\t\t \n\t\twindow.add(_panel);\n\n\t\t// A menu-bar contains menus. A menu contains menu-items (or sub-Menu)\n\t\tJMenuBar menuBar; // the menu-bar\n\t\tJMenu menu; // each menu in the menu-bar\n\n\t\tmenuBar = new JMenuBar();\n\t\t// First Menu\n\t\tmenu = new JMenu(\"Menu\");\n\t\tmenu.setMnemonic(KeyEvent.VK_A); // alt short-cut key\n\t\tmenuBar.add(menu); // the menu-bar adds this menu\n\n\t\tmenuItem1 = new JMenuItem(\"Fruit\", KeyEvent.VK_F);\n\t\tmenu.add(menuItem1); // the menu adds this item\n\n\t\tmenuItem2 = new JMenuItem(\"Pacman\", KeyEvent.VK_S);\n\t\tmenu.add(menuItem2); // the menu adds this item\n\t\tmenuItem3 = new JMenuItem(\"Run\");\n\t\tmenu.add(menuItem3); // the menu adds this item \n\t\tmenuItem4 = new JMenuItem(\"Save Game\");\n\t\tmenu.add(menuItem4); // the menu adds this item\n\n\t\tmenuItem5 = new JMenuItem(\"Open Game\");\n\t\tmenu.add(menuItem5); // the menu adds this item\n\t\tmenuItem6 = new JMenuItem(\"Clear Game\");\n\t\tmenu.add(menuItem6); // the menu adds this item\n\t\tmenuItem1.addActionListener(this);\n\t\tmenuItem2.addActionListener(this);\n\t\tmenuItem3.addActionListener(this);\n\t\tmenuItem4.addActionListener(this);\n\t\tmenuItem5.addActionListener(this);\n\t\tmenuItem6.addActionListener(this);\n\n\t\tsetJMenuBar(menuBar); // \"this\" JFrame sets its menu-bar\n\t\t// panel (source) fires the MouseEvent.\n\t\t//\tpanel adds \"this\" object as a MouseEvent listener.\n\t\t_panel.addMouseListener(this);\n\t}", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "public GameWindow() {\n\t\tif (!ENABLED) {\n\t\t\t// Don't touch anything that could cause an X11 call, since this\n\t\t\t// might mess up a test being run over SSH.\n\t\t\tframe = null;\n\t\t\twhoseTurnLabel = null;\n\t\t\tboardPanel = null;\n\t\t} else {\n\t\t\tframe = new JFrame();\n\t\t\tframe.setTitle(\"Fox and Geese\");\n\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\n\t\t\tJPanel content = new JPanel();\n\t\t\tcontent.setLayout(new BorderLayout());\n\t\t\tframe.setContentPane(content);\n\t\n\t\t\tboardPanel = new BoardPanel();\n\t\t\tcontent.add(boardPanel, BorderLayout.CENTER);\n\t\n\t\t\t// Make a row of status labels along the bottom of the window.\n\t\t\tBox status = new Box(BoxLayout.X_AXIS);\n\t\t\tcontent.add(status, BorderLayout.SOUTH);\n\t\n\t\t\twhoseTurnLabel = new JLabel();\n\t\t\twhoseTurnLabel.setBorder(\n\t\t\t\t\tBorderFactory.createEmptyBorder(2, 2, 2, 2));\n\t\t\tstatus.add(whoseTurnLabel);\n\t\n\t\t\t// Determine frame size based on subcomponents.\n\t\t\tframe.pack();\n\t\t}\n\t\t\n\t\tsynchronized (INSTANCES) {\n\t\t\tINSTANCES.add(this);\n\t\t}\n\t}", "private void setup() {\n this.jpanel = new JPanel(new BorderLayout());\n this.jframe = new JFrame(\"Minesweeper\");\n this.jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.jframe.setSize(sizeX * LENGTH + 18, (sizeY + 1) * LENGTH + 43);\n\n this.jframe.setVisible(true);\n this.jpanel.addMouseListener(this);\n this.jpanel.setSize(sizeX * LENGTH, (sizeY + 1) * LENGTH);\n this.jframe.add(this.jpanel);\n\n this.g = jpanel.getGraphics();\n }", "private void initUI() {\n\r\n add(new Surface());//This is where the surface is added JFrame container\r\n\r\n setTitle(\"Java 2D\");//Set title here\r\n setSize(300, 200);//Sets size of window\r\n setLocationRelativeTo(null);\r\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n }", "private void createDisplay()\n {\n // Creates frame based off of the parameters passed in Display constructor\n frame = new JFrame(title); \n frame.setSize(width, height);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setResizable(false); \n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n // Creates the canvas that is drawn on\n canvas = new Canvas();\n canvas.setPreferredSize(new Dimension(width,height));\n canvas.setMaximumSize(new Dimension(width,height));\n canvas.setMinimumSize(new Dimension(width,height));\n canvas.setFocusable(false);\n //add the canvas to the window\n frame.add(canvas);\n //pack the window (kinda like sealing it off)\n frame.pack();\n }", "@Override\n\tprotected void setupWindow(RenderSystem renderSystem, GraphicsEnvironment graphicsEnvironment) {\n\t\tif (BUILD_STATE.equalsIgnoreCase(\"release\")) {\n\t\t\tDisplaySettingsDialog displaySettingsDialogue = new DisplaySettingsDialog(\n\t\t\t\t\tgraphicsEnvironment.getDefaultScreenDevice());\n\t\t\tdisplaySettingsDialogue.showIt();\n\t\t\trenderWindow = renderSystem.createRenderWindow(displaySettingsDialogue.getSelectedDisplayMode(),\n\t\t\t\t\tdisplaySettingsDialogue.isFullScreenModeSelected());\n\t\t\trenderWindow.setTitle(\"The Most Dangerous Game | Saechao Lucas/Nhat Doan A3\");\n\t\t} else if (BUILD_STATE.equalsIgnoreCase(\"test\")) {\n\t\t\tint displayHeight = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice()\n\t\t\t\t\t.getDisplayMode().getHeight();\n\t\t\tint displayWidth = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice()\n\t\t\t\t\t.getDisplayMode().getWidth();\n\t\t\tif (displayHeight > 1920 && displayWidth > 1080)\n\t\t\t\trenderWindow = renderSystem.createRenderWindow(new DisplayMode(1920, 1080, 24, 60), false);\n\t\t\telse\n\t\t\t\trenderWindow = renderSystem.createRenderWindow(new DisplayMode(1280, 720, 24, 60), false);\n\t\t}\n\t}", "public WindowGame() {\n\n\t\t// Frame Settings\n\t\twindow = new JFrame(\"Tetris\");\n\t\twindow.setSize(WIDTH, HEIGHT);\n//\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\twindow.setLocationRelativeTo(null); // puts the window in the center of the screen\n\t\twindow.setResizable(false);\n\n\t\tboard = new Board();\n\t\twindow.add(board);\n\t\twindow.addKeyListener(board);\n\t\twindow.setVisible(true);\n\t}", "public void settings() {\n int widthOfWindow = 900;\n int heightOfWindow = 900;\n\n //Size of the program window\n size(widthOfWindow, heightOfWindow);\n //making the movement smooth, i think, comes from processing\n smooth();\n }", "public GUI() {\n\t\t// sets up file choosers\n\t\tsetFileChoosers();\n\t\t// initialises JFrame\n\t\tsetContent();\n\t\t// sets default window attributes\n\t\tthis.setDefaultAttributes();\n\t\t// instantiates controller object\n\t\tsetController();\n\t\t// sets toolbar to go over frame\n\t\tJPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\t\tToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);\n\t\t// sets antialiasing\n\t\t((Graphics2D) this.getGraphics()).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\t}", "public void createAndShowGUI() {\n\t\tcontroller = new ControllerClass(); \r\n\r\n\t\t// Create and set up the window\r\n\t\twindowLookAndFeel();\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetTitle(\"Media Works - Add Screen\");\r\n\t\tsetResizable(false);\r\n\t\tadd(componentSetup());\r\n\t\tpack();\r\n\t\tsetSize(720,540);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetVisible(true);\r\n\t}", "public ViewGuaranterWindow() {\n initComponents();\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n }", "public static void main(String[] args) {\n JFrame win = new JFrame(\"GraphicsDemo1\");\r\n win.setSize(800,600);\r\n win.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n GraphicsDemo1 canvas = new GraphicsDemo1();\r\n win.add( canvas );\r\n win.setVisible(true);\r\n }", "public void init() {\n\t\tsetSize(500,300);\n\t}", "public void initGame() {\n\t\ttoolbar = new Toolbar();\n\t\ttoolbar.setButtonListener(this);\n\t\tadd(toolbar, BorderLayout.NORTH);\n\n\t\t// setup & add board\n\t\tboard = new Board();\n\t\tadd(board, BorderLayout.CENTER);\n\n\t\t// jframe setup\n\t\tsetSize(Constants.BOARD_WIDTH, Constants.BOARD_HEIGHT);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "public window() {\n \n super();\n setSize(FRAMEWIDTH,FRAMEHEIGHT);\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n setTitle(\"PROJECT 2012\");\n\n \n}", "public HFGUI() {\n initComponents();\n HF = new HELPFit();\n // This two line will display the window on the center of the screen\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n }", "public void windowsConfiguration() {\n\t\tthis.setTitle(\"Segaleo\");\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(false);\n\t\tthis.setLocationRelativeTo(null);\n\t}", "private void createWindow() throws Exception {\r\n Display.setFullscreen(false);\r\n Display.setDisplayMode(new DisplayMode(WIDTH, HEIGHT));\r\n Display.setTitle(\"Program 2\");\r\n Display.create();\r\n }", "public mainGUI() {\n initComponents();\n setSize(Toolkit.getDefaultToolkit().getScreenSize());\n }", "public PumpkinFrame() {\r\n setLook(\"Pumpkin Maker\",100,100,800,480);\r\n setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n }", "private void settings() {\n\n\t\tthis.addWindowListener(controller);\n\t\tthis.setVisible(true);\n\t\tthis.setSize(1000, 660);\n\t\tthis.validate();\n\t\tthis.repaint();\n\n\t}", "void initGUI(){\n\t\t// use border layout for our main frame\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\t// create a new TitlePage and add it to the GUI. This is initially the only instantiated item\n\t\ttitlePage = new TitlePage(this);\n\t\tadd(titlePage);\n\t\t\n\t\tsetBackground( new Color(30, 130, 76) );\t// set a green background\n\t\tsetResizable(false); \t\t\t\t\t\t// User can't change the window's size.\n\t\tsetDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\t// exit when we close\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\t\t\t\t\t// set size of JFrame\n\t\t// set it to visible\n\t\tsetVisible(true);\n\t}", "public DrawGUI() {\n\n\t\tthis.setTitle(\"Draw 0.2\");\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(\"img/logo.png\"));\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdrawingContainer = new DrawingContainer();\n\t\tscrollpane = new JScrollPane(drawingContainer);\n\n\t\tcontroller = new DrawingController(this);\n\t\ttools = new ToolBox(controller);\n\t\tcontroller.newDrawing(new Dimension(500, 380));\n\n\t\t// statusBar = new StatusBar();\n\n\t\tgetContentPane().add(tools, BorderLayout.WEST);\n\t\tgetContentPane().add(scrollpane, BorderLayout.CENTER);\n\t\t// getContentPane().add(statusBar, BorderLayout.SOUTH);\n\n\t\tMenuListener mainMenuListener = new MenuListener(controller);\n\t\tJMenuBar mainMenu = new MainMenu(mainMenuListener);\n\t\tthis.setJMenuBar(mainMenu);\n\n\t\tpack();\n\t\tsetVisible(true);\n\n\t}", "public SettingsWindow()\n {\n House.seed = System.currentTimeMillis();\n initWindow();\n showWindows();\n }", "@Override\n protected void windowInit ()\n {\n }", "public MainWindow() {\n Dimension screenSize=Toolkit.getDefaultToolkit().getScreenSize();\n this.setBounds(screenSize.width/2-150, screenSize.height/2-75, 300, 150);\n initComponents();\n }", "public void launch() {\r\n\t\tthis.setLocation(200, 200);\r\n\t\tthis.setSize(COLS * BLOCK_SIZE, ROWS * BLOCK_SIZE);\r\n\t\tthis.addKeyListener(new KeyMonitor());\r\n\t\tthis.addWindowListener(new WindowAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosing(WindowEvent e) {\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t});\r\n\t\tthis.setVisible(true);\r\n\t\t\r\n\t\tnew Thread(PaintThread).start();\r\n\t\t\r\n\t}", "private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }", "public void init() {\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setSize(new Dimension(windowWidth, windowHeight));\n setTitle(\"Weather - \" \n + webAddress.getCapitalizedCity() + \", \" \n + webAddress.getCapitalizedCountry());\n setVisible(true);\n }", "private void createAndShowGUI()\r\n {\r\n //Create and set up the window.\r\n frame = new JFrame();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(this);\r\n frame.addKeyListener(this);\r\n\r\n //Display the window.\r\n this.setPreferredSize(new Dimension(\r\n BLOCKSIZE * ( board.getNumCols() + 3 + nextUp.getNumCols() ),\r\n BLOCKSIZE * ( board.getNumRows() + 2 )\r\n ));\r\n\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "GardenPlannerHomeGUI(){\n setContentPane(homeScreen);\n setPreferredSize(new Dimension(500,500));\n pack();\n setVisible(true);\n setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n Listeners();\n }", "public void initApp() {\n \tint ms = (int) Math.round(1000d / Settings.getFramesPerSecond());\n \ttimer = new Timer(ms, this);\n \ttimer.start();\n setBackground(new Color(35, 35, 35));\n Dimension d = new Dimension(Settings.getGridDimensions());\n d.setSize(d.getWidth() + Settings.getBoxSize() * 4 + 80, d.getHeight());\n setPreferredSize(d);\n setFocusable(true);\n }", "private void setupSettingWindow()\n {\n setGUI.setWindowListener(new WindowListener() {\n @Override\n public void windowOpened(WindowEvent we) {\n }\n\n @Override\n public void windowClosing(WindowEvent we) {\n }\n\n @Override\n public void windowClosed(WindowEvent we) {\n player1Color = setGUI.getPlayer1Color();\n player2Color = setGUI.getPlayer2Color();\n }\n\n @Override\n public void windowIconified(WindowEvent we) {\n }\n\n @Override\n public void windowDeiconified(WindowEvent we) {\n }\n\n @Override\n public void windowActivated(WindowEvent we) {\n }\n\n @Override\n public void windowDeactivated(WindowEvent we) {\n }\n });\n }", "private void setUpFrame() {\n rootPanel = new JPanel();\n rootPanel.setLayout(new BorderLayout());\n rootPanel.setBackground(Color.darkGray);\n }", "public void draw(Graphics window);", "public Hwk2JFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\n\t\t\n\t\tJLabel lblDesignCopyrights = new JLabel(\"design copyrights \\u00A9 chinmaya\");\n\t\tlblDesignCopyrights.setFont(new Font(\"Times New Roman\", Font.PLAIN, 14));\n\t\tlblDesignCopyrights.setForeground(new Color(255, 255, 224));\n\t\tlblDesignCopyrights.setBounds(1711, 1018, 183, 23);\n\t\tframe.getContentPane().add(lblDesignCopyrights);\n\t\t\n\t\tJPanel background = new JPanel();\n\t\tbackground.setLayout(null);\n\t\tbackground.setBackground(Color.DARK_GRAY);\n\t\tbackground.setBounds(14, 200, 1880, 809);\n\t\tframe.getContentPane().add(background);\n\t\t\n\t\t\n\t\tJLabel lblTypesOfMachine = new JLabel(\"MACHINE NAME\");\n\t\tlblTypesOfMachine.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblTypesOfMachine.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblTypesOfMachine.setForeground(Color.WHITE);\n\t\tlblTypesOfMachine.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblTypesOfMachine.setBounds(69, 378, 178, 30);\n\t\tbackground.add(lblTypesOfMachine);\n\t\t\n\t\t\n\t\tJLabel lblAppointment = new JLabel(\"LIST TO DO\");\n\t\tlblAppointment.setForeground(Color.WHITE);\n\t\tlblAppointment.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblAppointment.setBounds(69, 117, 319, 48);\n\t\tbackground.add(lblAppointment);\n\t\t\n\t\tJLabel lblQuantity = new JLabel(\"QUANTITY\");\n\t\tlblQuantity.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblQuantity.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblQuantity.setForeground(Color.WHITE);\n\t\tlblQuantity.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblQuantity.setBounds(69, 428, 178, 30);\n\t\tbackground.add(lblQuantity);\n\t\t\n\t\tPanel panel = new Panel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBackground(Color.BLACK);\n\t\tpanel.setBounds(0, 30, 1880, 67);\n\t\tbackground.add(panel);\n\t\t\n\t\tJButton cusbtn = new JButton(\"CUSTOMER\");\n\t\tcusbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\t customer cr = new customer();\n\t\t cr.csStart();\n\t\t frame.dispose();\n\t\t\t}\n\t\t});\n\t\tcusbtn.setForeground(Color.WHITE);\n\t\tcusbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tcusbtn.setBackground(Color.BLACK);\n\t\tcusbtn.setBounds(1257, 11, 613, 44);\n\t\tpanel.add(cusbtn);\n\t\t\n\t\tJButton bilbtn = new JButton(\"INVOICE\");\n\t\tbilbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tadminInvoice inv= new adminInvoice();\n\t\t\t\tinv. adminInvoiceStart();\n\t\t\t\tframe.dispose();\n\n\t\t\t}\n\t\t});\n\t\tbilbtn.setForeground(Color.WHITE);\n\t\tbilbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbilbtn.setBackground(Color.BLACK);\n\t\tbilbtn.setBounds(633, 11, 613, 44);\n\t\tpanel.add(bilbtn);\n\t\t\n\t\tJButton prdbtn = new JButton(\"PRODUCTS\");\n\t\tprdbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tadminproducts prd = new adminproducts();\n\t\t\t\tprd.adminPrd();\n\t\t\t\tframe.dispose();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tprdbtn.setForeground(Color.WHITE);\n\t\tprdbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tprdbtn.setBackground(Color.BLACK);\n\t\tprdbtn.setBounds(10, 11, 613, 44);\n\t\tpanel.add(prdbtn);\n\t\t\n\t\tJLabel lblCustomerName = new JLabel(\"CUSTOMER NAME\");\n\t\tlblCustomerName.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblCustomerName.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblCustomerName.setForeground(Color.WHITE);\n\t\tlblCustomerName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblCustomerName.setBounds(69, 278, 178, 30);\n\t\tbackground.add(lblCustomerName);\n\t\t\n\t\tJLabel lblMachineType = new JLabel(\"MACHINE TYPE\");\n\t\tlblMachineType.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblMachineType.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblMachineType.setForeground(Color.WHITE);\n\t\tlblMachineType.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblMachineType.setBounds(69, 328, 178, 30);\n\t\tbackground.add(lblMachineType);\n\t\t\n\t\t\n\t\tJButton btnStore = new JButton(\"STORE\");\n\t\tbtnStore.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tString dateEntry=date.getText();\n\t\t\t\tString cusname= customerName.getText();\t\n\t\t\t\tString machType=machineType.getText();\n\t\t\t\tString machName=machineName.getText();\n\t\t\t\tString quan=quantity.getText();\n\t\t\t\tString dl= deadline.getText();\n\t\t\t\tConnection con;\n\t\t\t\tPreparedStatement insert;\n\t\t\t\t\n\t\t\t\tif(dateEntry.isEmpty()||cusname.isEmpty()||machName.isEmpty()||machType.isEmpty()||quan.isEmpty()||dl.isEmpty()) \n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"no field must be left empty\",\"registration error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\t\n\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \" Appointment added!!\");\n\t\t\t\t}\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/machine_works\", \"root\", \"\");\n\t\t\t\t\tinsert = con.prepareStatement(\"insert into appointment (date,cusname,machType,machName,quan,deadline) values (?,?,?,?,?,?)\");\n\t\t insert.setString(1, dateEntry);\n\t\t insert.setString(2, cusname);\n\t\t insert.setString(3, machType);\n\t\t insert.setString(4, machName);\n\t\t insert.setString(5, quan);\n\t\t insert.setString(6, dl);\n\t\t insert.executeUpdate();\n\t\t\t\t}\n\t\t\t\tcatch(Exception E)\n\t\t\t\t{\n\t\t\t\t\tE.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnStore.setForeground(Color.WHITE);\n\t\tbtnStore.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnStore.setBackground(Color.BLACK);\n\t\tbtnStore.setBounds(580, 578, 116, 44);\n\t\tbackground.add(btnStore);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\tscrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tscrollPane.setBounds(1000, 230, 613, 267);\n\t\tbackground.add(scrollPane);\n\t\t\n\t\tinvoice = new JTable();\n\t\tscrollPane.setViewportView(invoice);\n\t\t\n\t\tJLabel lblInvoice = new JLabel(\"VIEW TO-DO LIST\");\n\t\tlblInvoice.setForeground(Color.WHITE);\n\t\tlblInvoice.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblInvoice.setBounds(1010, 117, 387, 48);\n\t\tbackground.add(lblInvoice);\n\t\t\n\t\tquantity = new JTextField();\n\t\tquantity.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tquantity.setColumns(10);\n\t\tquantity.setBounds(279, 428, 289, 30);\n\t\tbackground.add(quantity);\n\t\t\n\t\tmachineName = new JTextField();\n\t\tmachineName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tmachineName.setColumns(10);\n\t\tmachineName.setBounds(279, 328, 289, 30);\n\t\tbackground.add(machineName);\n\t\t\n\t\tmachineType = new JTextField();\n\t\tmachineType.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tmachineType.setColumns(10);\n\t\tmachineType.setBounds(279, 378, 289, 30);\n\t\tbackground.add(machineType);\n\t\t\n\t\tcustomerName = new JTextField();\n\t\tcustomerName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tcustomerName.setColumns(10);\n\t\tcustomerName.setBounds(279, 278, 289, 30);\n\t\tbackground.add(customerName);\n\t\t\n\t\tJLabel deadlineLbl = new JLabel(\"DEADLINE\");\n\t\tdeadlineLbl.setVerticalAlignment(SwingConstants.TOP);\n\t\tdeadlineLbl.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tdeadlineLbl.setForeground(Color.WHITE);\n\t\tdeadlineLbl.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tdeadlineLbl.setBounds(69, 481, 178, 30);\n\t\tbackground.add(deadlineLbl);\n\t\t\n\t\tJLabel lblDate = new JLabel(\"DATE\");\n\t\tlblDate.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblDate.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblDate.setForeground(Color.WHITE);\n\t\tlblDate.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblDate.setBounds(69, 228, 178, 30);\n\t\tbackground.add(lblDate);\n\t\t\n\t\tdate = new JTextField();\n\t\tdate.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tdate.setColumns(10);\n\t\tdate.setBounds(279, 228, 289, 30);\n\t\tbackground.add(date);\n\t\t\n\t\tJButton btnView = new JButton(\"VIEW\");\n\t\tbtnView.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tConnection con = null;\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/machine_works\", \"root\", \"\");\n\t\t String query=\"select * from appointment \";\n\t\t\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\t\t\n\t\t\t\t\tinvoice.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(Exception E)\n\t\t\t\t{\n\t\t\t\t\tE.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnView.setForeground(Color.WHITE);\n\t\tbtnView.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnView.setBackground(Color.BLACK);\n\t\tbtnView.setBounds(1584, 578, 116, 44);\n\t\tbackground.add(btnView);\n\t\t\n\t\tdeadline = new JTextField();\n\t\tdeadline.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tdeadline.setColumns(10);\n\t\tdeadline.setBounds(279, 481, 289, 30);\n\t\tbackground.add(deadline);\n\t\t\n\t\tJPanel header = new JPanel();\n\t\theader.setLayout(null);\n\t\theader.setBackground(Color.DARK_GRAY);\n\t\theader.setBounds(14, 23, 1880, 163);\n\t\tframe.getContentPane().add(header);\n\t\t\n\t\tJPanel mwtitle = new JPanel();\n\t\tmwtitle.setLayout(null);\n\t\tmwtitle.setForeground(Color.WHITE);\n\t\tmwtitle.setBackground(Color.BLACK);\n\t\tmwtitle.setBounds(209, 7, 649, 151);\n\t\theader.add(mwtitle);\n\t\t\n\t\tJLabel label = new JLabel(\"MACHINE WORKS\");\n\t\tlabel.setForeground(Color.WHITE);\n\t\tlabel.setFont(new Font(\"Times New Roman\", Font.PLAIN, 69));\n\t\tlabel.setBounds(20, 11, 605, 72);\n\t\tmwtitle.add(label);\n\t\t\n\t\tJLabel lblWhereAllThe = new JLabel(\"Where all the WORK is done by MACHINE\");\n\t\tlblWhereAllThe.setForeground(Color.ORANGE);\n\t\tlblWhereAllThe.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblWhereAllThe.setBounds(38, 94, 581, 48);\n\t\tmwtitle.add(lblWhereAllThe);\n\t\t\n\t\tJLabel logolbl = new JLabel(\"\");\n\t\tlogolbl.setIcon(new ImageIcon(\"C:\\\\Users\\\\CHINMAYA SH\\\\Pictures\\\\download.png\"));\n\t\tlogolbl.setBounds(58, 7, 151, 151);\n\t\theader.add(logolbl);\n\t\t\n\t\tJButton lgbtn = new JButton(\"LOGOUT\");\n\t\tlgbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Logged out Successfull !!\");\n\t\t\t\tindex ind = new index();\n\t\t\t\tind.indexStart();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tlgbtn.setForeground(Color.WHITE);\n\t\tlgbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tlgbtn.setBackground(Color.BLACK);\n\t\tlgbtn.setBounds(1674, 60, 116, 44);\n\t\theader.add(lgbtn);\n\t\t\n\t\tJButton button_1 = new JButton(\"SIGN UP\");\n\t\tbutton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tsignup sg = new signup();\n\t\t\t\tsg.signupStart();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbutton_1.setForeground(Color.WHITE);\n\t\tbutton_1.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbutton_1.setBackground(Color.BLACK);\n\t\tbutton_1.setBounds(1488, 60, 116, 44);\n\t\theader.add(button_1);\n\t\t\n\t\tJButton btnAppointment = new JButton(\"TO-DO\");\n\t\tbtnAppointment.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tappointments ap = new appointments();\n\t\t\t\tap.appointmentList();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnAppointment.setForeground(Color.WHITE);\n\t\tbtnAppointment.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnAppointment.setBackground(Color.BLACK);\n\t\tbtnAppointment.setBounds(1309, 60, 125, 44);\n\t\theader.add(btnAppointment);\n\t\tframe.setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 1920\t, 1080);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\n\t}", "public void init(){\n\t\tsetSize (800,600);\n\t\t//el primer parametro del rectangulo en el ancho\n\t\t//y el alto\n\t\trectangulo = new GRect(120,80);\n\t\t\n\t}", "public void initUI() {\n\t\tadd(board);\r\n\t\t//Set if frame is resizable by user\r\n\t\tsetResizable(false);\r\n\t\t//call pack method to fit the \r\n\t\t//preferred size and layout of subcomponents\r\n\t\t//***important head might not work correctly with collision of bottom and right borders\r\n\t\tpack();\r\n\t\t//set title for frame\r\n\t\tsetTitle(\"Snake\");\r\n\t\t//set location on screen(null centers it)\r\n\t\tsetLocationRelativeTo(null);\r\n\t\t//set default for close button of frame\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void settings() {\n\t\tthis.setVisible(true);\n\t\tthis.setSize(800,200);\n\t}", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "private void setContent() {\n\t\t// sets window content visible\n\t\tthis.getContentPane().setVisible(true);\n\n\t\t// sets up desktop area inside JFrame for JInternalFrame\n\t\tdesktop = new JDesktopPane();\n\t\tdesktop.setOpaque(false);\n\t\ti_console = getNewInternalFrame();\n\t\ti_palette = getNewInternalFrame();\n\n\t\tJPanel s_workspace = new JPanel(new BorderLayout());\n\t\tJPanel s_palette = new JPanel(new BorderLayout());\n\t\tdock_palette.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ti_palette_docked = !i_palette_docked;\n\t\t\t\ti_palette.setSize(new Dimension(250, 200));\n\t\t\t}\n\t\t});\n\t\ts_palette.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tif (SwingUtilities.isRightMouseButton(e)) {\n\t\t\t\t\trightMenuClick = true;\n\t\t\t\t\trmenu.removeAll();\n\t\t\t\t\trmenu.add(dock_palette);\n\t\t\t\t\trmenu.show(e.getComponent(), e.getX(), e.getY());\n\t\t\t\t}\n\t\t\t\tif (SwingUtilities.isLeftMouseButton(e)) {\n\t\t\t\t\trightMenuClick = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// palette internalframe content\n\n\t\ts_palette.setLayout(new BoxLayout(s_palette, BoxLayout.Y_AXIS));\n\n\t\tJButton button_DRect = new JButton(\"DraggableRect\");\n\t\tbutton_DRect.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_DRect.setMaximumSize(new Dimension(125, 25));\n\t\tbutton_DRect.addActionListener(this);\n\t\tbutton_DRect.setActionCommand(\"draggableRect\");\n\t\ts_palette.add(button_DRect);\n\n\t\ts_palette.add(Box.createRigidArea(new Dimension(0, 10)));\n\n\t\tJButton button_Assignment = new JButton(\"Assignment\");\n\t\tbutton_Assignment.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_Assignment.setMaximumSize(new Dimension(125, 25));\n\t\tbutton_Assignment.addActionListener(this);\n\t\tbutton_Assignment.setActionCommand(\"assignment\");\n\t\ts_palette.add(button_Assignment);\n\n\t\ts_palette.add(Box.createRigidArea(new Dimension(0, 10)));\n\n\t\tJButton button_Conditional = new JButton(\"Conditional\");\n\t\tbutton_Conditional.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_Conditional.addActionListener(this);\n\t\tbutton_Conditional.setActionCommand(\"conditional\");\n\t\tbutton_Conditional.setMaximumSize(new Dimension(125, 25));\n\t\ts_palette.add(button_Conditional);\n\n\t\ts_palette.add(Box.createRigidArea(new Dimension(0, 10)));\n\n\t\tJButton button_Loop = new JButton(\"Loop\");\n\t\tbutton_Loop.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_Loop.setMaximumSize(new Dimension(125, 25));\n\t\tbutton_Loop.addActionListener(this);\n\t\tbutton_Loop.setActionCommand(\"loop\");\n\t\ts_palette.add(button_Loop);\n\n\t\ts_palette.add(Box.createRigidArea(new Dimension(0, 10)));\n\t\t// ---------------------------------------------------------------------------------\n\n\t\tJButton button_Function = new JButton(\"Function\");\n\t\tbutton_Function.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_Function.setMaximumSize(new Dimension(125, 25));\n\t\tbutton_Function.addActionListener(this);\n\t\tbutton_Function.setActionCommand(\"function\");\n\t\ts_palette.add(button_Function);\n\n\t\ts_palette.add(Box.createRigidArea(new Dimension(0, 10)));\n\t\t// -------------------------------------------------------------------------------\n\t\tJButton button_Start = new JButton(\"Start\");\n\t\tbutton_Start.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_Start.setMaximumSize(new Dimension(125, 25));\n\t\tbutton_Start.addActionListener(this);\n\t\tbutton_Start.setActionCommand(\"start\");\n\t\ts_palette.add(button_Start);\n\n\t\ts_palette.add(Box.createRigidArea(new Dimension(0, 10)));\n\n\t\tJButton button_Text = new JButton(\"Script\");\n\t\tbutton_Text.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_Text.setMaximumSize(new Dimension(125, 25));\n\t\tbutton_Text.addActionListener(this);\n\t\tbutton_Text.setActionCommand(\"script\");\n\t\ts_palette.add(button_Text);\n\n\t\tJPanel s_output = new JPanel(new BorderLayout());\n\n\t\tdock_console.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ti_console_docked = !i_console_docked;\n\t\t\t\tif (!i_console_docked) {\n\t\t\t\t\ti_console.setSize(new Dimension(250, 200));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcodeLabel.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tif (SwingUtilities.isRightMouseButton(e)) {\n\t\t\t\t\trightMenuClick = true;\n\t\t\t\t\trmenu.removeAll();\n\t\t\t\t\trmenu.add(dock_console);\n\t\t\t\t\trmenu.show(e.getComponent(), e.getX(), e.getY());\n\t\t\t\t}\n\t\t\t\tif (SwingUtilities.isLeftMouseButton(e)) {\n\t\t\t\t\trightMenuClick = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tJScrollPane codeScrollPane = new JScrollPane(codeLabel); // made\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// scrollPane\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// connecting\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// to\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// codeLabel\n\t\tJScrollPane s_workspace_ScrollPane = new JScrollPane(s_workspace);\n\t\tJScrollPane s_palette_ScrollPane = new JScrollPane(s_palette);\n\t\tJScrollPane s_output_ScrollPane = new JScrollPane(s_output);\n\t\t// JScrollPane s_main_ScrollPane = new JScrollPane(desktop);\n\n\t\ti_console.getContentPane().add(codeScrollPane);\n\t\ti_palette.getContentPane().add(s_palette_ScrollPane);\n\n\t\tcodeScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); \n\t\ts_workspace_ScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\ts_palette_ScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\ts_output_ScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t// s_main_ScrollPane\n\t\t// .setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\n\t\tdesktop.add(i_console);\n\t\tdesktop.add(i_palette);\n\t\tthis.setContentPane(desktop);\n\t\t// this.setContentPane(s_main_ScrollPane);\n\n\t\t// buffer panel between JFrame and p_main content\n\t\tbufferPanel.setVisible(true);\n\t\tbufferPanel.setLayout(new GridBagLayout());\n\t\tbufferPanel.setOpaque(false);\n\t\tthis.getContentPane().add(bufferPanel);\n\n\t\t// GridBagConstraints for setting p_main into bufferPanel\n\t\tGridBagConstraints gbc_p_main = new GridBagConstraints();\n\t\tgbc_p_main.anchor = GridBagConstraints.CENTER;\n\t\tgbc_p_main.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_p_main.weightx = 1;\n\t\tgbc_p_main.weighty = 1;\n\t\tgbc_p_main.gridx = 0;\n\t\tgbc_p_main.gridy = 0;\n\t\tgbc_p_main.fill = GridBagConstraints.BOTH;\n\n\t\t// initializes JPanel encapsulating the content (p_main)\n\t\tp_main.setVisible(true);\n\t\tp_main.setBorder(BorderFactory.createLineBorder(Color.black));\n\t\tp_main.setRequestFocusEnabled(false);\n\t\tp_main.setOpaque(false);\n\t\tp_main.setFocusable(false);\n\t\t// p_main.setBackground(Color.WHITE);\n\t\tbufferPanel.add(p_main, gbc_p_main);\n\t\tGridBagLayout gbl_p_main = new GridBagLayout();\n\t\tgbl_p_main.columnWidths = new int[] { 0, 0, 0, 0 };\n\t\tgbl_p_main.rowHeights = new int[] { 0, 0, 0, 0, 0, 0, 0, 0 };\n\t\tgbl_p_main.columnWeights = new double[] { 1.0, 2.0, 1.0, Double.MIN_VALUE };\n\t\tgbl_p_main.rowWeights = new double[] { 1.0, 2.0, 2.0, 2.0, 2.0, 4.0, 1.0, Double.MIN_VALUE };\n\t\tp_main.setLayout(gbl_p_main);\n\n\t\t// this is the left panel\n\t\t// initializes p_palette\n\t\tp_palette.setVisible(true);\n\t\tp_palette.setOpaque(false);\n\t\tGridBagConstraints gbc_p_palette = new GridBagConstraints();\n\t\tgbc_p_palette.anchor = GridBagConstraints.WEST;\n\t\tgbc_p_palette.gridheight = 6;\n\t\tgbc_p_palette.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_p_palette.fill = GridBagConstraints.BOTH;\n\t\tgbc_p_palette.gridx = 0;\n\t\tgbc_p_palette.gridy = 0;\n\n\t\tp_main.add(p_palette, gbc_p_palette);\n\t\tGridBagLayout gbl_p_palette = new GridBagLayout();\n\t\tgbl_p_palette.columnWidths = new int[] { 0 };\n\t\tgbl_p_palette.rowHeights = new int[] { 0 };\n\t\tgbl_p_palette.columnWeights = new double[] { Double.MIN_VALUE };\n\t\tgbl_p_palette.rowWeights = new double[] { Double.MIN_VALUE };\n\t\tp_palette.setLayout(gbl_p_palette);\n\n\t\t// this is the bottom panel\n\t\t// initializes p_console\n\t\tp_console.setVisible(true);\n\t\tp_console.setOpaque(false);\n\t\tGridBagConstraints gbc_p_console = new GridBagConstraints();\n\t\tgbc_p_console.anchor = GridBagConstraints.WEST;\n\t\tgbc_p_console.gridwidth = 2;\n\t\tgbc_p_console.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_p_console.fill = GridBagConstraints.BOTH;\n\t\tgbc_p_console.gridx = 1;\n\t\tgbc_p_console.gridy = 5;\n\t\tp_main.add(p_console, gbc_p_console);\n\t\t/*\n\t\t * GridBagLayout gbl_p_console = new GridBagLayout();\n\t\t * gbl_p_console.columnWidths = new int[]{0}; gbl_p_console.rowHeights =\n\t\t * new int[]{0}; gbl_p_console.columnWeights = new\n\t\t * double[]{Double.MIN_VALUE}; gbl_p_console.rowWeights = new\n\t\t * double[]{Double.MIN_VALUE}; p_console.setLayout(gbl_p_console);\n\t\t */\n\t\tp_console.setLayout(new BorderLayout());\n\n\t}", "private void setup2DGraphics() {\n\n\t\tGL11.glMatrixMode(GL11.GL_PROJECTION);\n\t\tGL11.glLoadIdentity();\n\t\tGL11.glOrtho(0, width, 0, height, 1, -1);\n\t\tGL11.glMatrixMode(GL11.GL_MODELVIEW);\n\t\tGL11.glLoadIdentity();\n\t}", "private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}", "private static void createAndShowGUI() {\n //Create and set up the window.\n //JFrame frame = new JFrame(\"Basics of Color\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Add content to the window.\n frame.add(new ColorBasics(), BorderLayout.CENTER);\n Menu menu = new Menu();\n frame.setJMenuBar(menu.createMenuBar());\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n frame.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n }", "public GameWindow(){\n setSize(1012,785);\n setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n setLayout(null);\n\n JLabel sun = new JLabel(\"SUN\");\n sun.setLocation(37,80);\n sun.setSize(60,20);\n\n GamePanel gp = new GamePanel(sun);\n gp.setLocation(0,0);\n getLayeredPane().add(gp,new Integer(0));\n \n PlantCard sunflower = new PlantCard(new ImageIcon(this.getClass().getResource(\"images/cards/card_sunflower.png\")).getImage());\n sunflower.setLocation(110,8);\n sunflower.setAction((ActionEvent e) -> {\n gp.activePlantingBrush = PlantType.Sunflower;\n });\n getLayeredPane().add(sunflower,new Integer(3));\n\n PlantCard peashooter = new PlantCard(new ImageIcon(this.getClass().getResource(\"images/cards/card_peashooter.png\")).getImage());\n peashooter.setLocation(175,8);\n peashooter.setAction((ActionEvent e) -> {\n gp.activePlantingBrush = PlantType.Peashooter;\n });\n getLayeredPane().add(peashooter,new Integer(3));\n\n PlantCard freezepeashooter = new PlantCard(new ImageIcon(this.getClass().getResource(\"images/cards/card_freezepeashooter.png\")).getImage());\n freezepeashooter.setLocation(240,8);\n freezepeashooter.setAction((ActionEvent e) -> {\n gp.activePlantingBrush = PlantType.FreezePeashooter;\n });\n getLayeredPane().add(freezepeashooter,new Integer(3));\n\n\n\n getLayeredPane().add(sun,new Integer(2));\n setResizable(false);\n setVisible(true);\n }", "public Game() {\n\t\toptions = Options.load();\n\t\tmenu = new Menu(this);\n\t\twindow = new JFrame(Game.TITLE);\n\t\twindow.setExtendedState(JFrame.MAXIMIZED_BOTH);\n\t\twindow.setMinimumSize(new Dimension(window.getWidth(), window.getHeight()));\n\t\twindow.setLocationRelativeTo(null);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\twindow.setVisible(true);\n\t\tloadMenu();\n\t}", "public void init() {\n this.window = new PWWindow(this.project);\n }", "private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "public GameFrame() {\n initComponents();\n setTitle(\"Ultra Generic Tower Defence by Jorzi\");\n }", "public Window()\n {\n // sets title\n super(\"Awesome Calculator\");\n\n // generated design code\n initComponents();\n\n conversions.addListSelectionListener(this);\n\n // sets up the map\n buttons = new JButton[]{\n zero, one, two, three, four,\n five, six, seven, eight, nine\n };\n\n // stores the initial button color\n init = zero.getBackground();\n\n // center frame on screen\n setLocationRelativeTo(null);\n\n // don't have to worry about component focus\n KeyboardFocusManager.getCurrentKeyboardFocusManager()\n .addKeyEventDispatcher(new KeyEventDispatcher()\n {\n @Override\n public boolean dispatchKeyEvent(KeyEvent event)\n {\n if (event.getID() == KeyEvent.KEY_PRESSED)\n {\n keyPressed(event);\n }\n\n return false;\n }\n }\n );\n }", "private static void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n frame = new JFrame(\"ATC simulator\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n atcscreen = new AtcScreen();\r\n atcscreen.setOpaque(true);\r\n frame.setContentPane(atcscreen);\r\n \r\n //Display the window.\r\n frame.setSize(1000,1000);\r\n //atcscreen.setSize(300,300);\r\n //frame.pack();\r\n frame.setVisible(true);\r\n }", "private void createAndShowGUI() {\n //Create and set up the window.\n frame = new JFrame();\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.getContentPane().add(this);\n frame.addKeyListener(this);\n frame.addMouseListener(this);\n\n //Display the window.\n this.setPreferredSize(new Dimension(288, 512));\n this.addMouseListener(this);\n\n frame.pack();\n frame.setVisible(true);\n }", "public MainWindow()\n\t{\n\t\tsettingsWindow = new SettingsWindow(this);\n\t\t\n\t\tplayingField = null;\n\t\t\n\t\tthis.setTitle(\"Minesweeper\");\n\t\tthis.setResizable(false);\n\t\tthis.setJMenuBar(createMenuBar());\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tthis.newGame();\n\t\t\n\t\tthis.setVisible(true);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tGraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();\n\t\tint width = gd.getDisplayMode().getWidth();\n\t\tint height = gd.getDisplayMode().getHeight();\n\t\tframe.setBounds(width / 3, height / 3, 461, 321);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\ttextField = new JTextField();\n\t\ttextField.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString text = textField.getText();\n\t\t\t\ttextField.setText(\"\");\n\t\t\t\tif (text.trim().equalsIgnoreCase(\"devwindow\")) {\n\n\t\t\t\t\tDevWindow window = new DevWindow();\n\t\t\t\t\twindow.frame.setVisible(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttextField.setBounds(10, 240, 430, 31);\n\t\tframe.getContentPane().add(textField);\n\n\t\tJLabel label = new JLabel();\n\t\tlabel.setText(\"Command Line (Dev Use Only)\");\n\t\tlabel.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlabel.setBounds(10, 220, 204, 17);\n\t\tframe.getContentPane().add(label);\n\n\t\tOptionsController oc = new OptionsController();\n\n\t\tJSlider slider = new JSlider();\n\t\tslider.setBounds(10, 113, 430, 31);\n\t\tslider.setPaintTicks(true);\n\t\tslider.setMaximum(600);\n\t\tslider.setMinimum(1);\n\t\tslider.setValue(Integer.parseInt(oc.getProp().getProperty(\"refreshRate\")));\n\t\tframe.getContentPane().add(slider);\n\n\t\tJLabel lblBackgroundRefreshRate = new JLabel();\n\t\tlblBackgroundRefreshRate.setText(\"Background Refresh Rate\");\n\t\tlblBackgroundRefreshRate.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlblBackgroundRefreshRate.setBounds(10, 91, 158, 17);\n\t\tframe.getContentPane().add(lblBackgroundRefreshRate);\n\n\t\tJSlider slider_1 = new JSlider();\n\t\tslider_1.setToolTipText(\"\");\n\t\tslider_1.setBounds(10, 30, 430, 33);\n\t\tslider_1.setMaximum(300);\n\t\tslider_1.setMinimum(1);\n\t\tslider_1.setValue(Integer.parseInt(oc.getProp().getProperty(\"messageFrequency\")));\n\t\tframe.getContentPane().add(slider_1);\n\n\t\tJLabel label_2 = new JLabel();\n\t\tlabel_2.setText(\"New Message Frequency\");\n\t\tlabel_2.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlabel_2.setBounds(10, 11, 158, 17);\n\t\tframe.getContentPane().add(label_2);\n\n\t\tJLabel lblNewLabel = new JLabel(\"New label\");\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblNewLabel.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlblNewLabel.setBounds(317, 54, 123, 25);\n\t\tlblNewLabel.setText(oc.getProp().getProperty(\"messageFrequency\") + \" minute(s)\");\n\n\t\tlblNewLabel.addPropertyChangeListener(new PropertyChangeListener() {\n\t\t\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\n\t\t\t\toc.getProp().setProperty(\"messageFrequency\", lblNewLabel.getText().substring(0, 3).trim());\n\t\t\t\toc.saveProperties();\n\t\t\t}\n\t\t});\n\n\t\tframe.getContentPane().add(lblNewLabel);\n\n\t\tJLabel label_3 = new JLabel(\"115 second(s) or 1.92 minute(s)\");\n\t\tlabel_3.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlabel_3.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlabel_3.setBounds(291, 155, 149, 25);\n\t\tframe.getContentPane().add(label_3);\n\n\t\tJLabel label_1 = new JLabel(oc.getProp().getProperty(\"refreshRate\"));\n\t\tlabel_1.setHorizontalAlignment(SwingConstants.RIGHT);\n\n\t\tlabel_1.setFont(new Font(\"Microsoft Yi Baiti\", Font.BOLD, 17));\n\t\tlabel_1.setBounds(291, 135, 149, 25);\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\tlabel_1.setText(oc.getProp().getProperty(\"refreshRate\") + \" second(s)\");\n\t\tlabel_3.setText(\n\t\t\t\tdf.format(Long.parseLong(oc.getProp().getProperty(\"refreshRate\").trim()) / 60.0) + \" minute(s)\");\n\n\t\tlabel_1.addPropertyChangeListener(new PropertyChangeListener() {\n\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\n\t\t\t\toc.getProp().setProperty(\"refreshRate\", label_1.getText().substring(0, 4).trim());\n\t\t\t\toc.saveProperties();\n\t\t\t}\n\t\t});\n\n\t\tframe.getContentPane().add(label_1);\n\n\t\tJCheckBox chckbxNewCheckBox = new JCheckBox(\"Start On Start Up\");\n\t\tchckbxNewCheckBox.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tboolean selected = chckbxNewCheckBox.isSelected();\n\n\t\t\t\toc.getProp().setProperty(\"startOnStartUp\", Boolean.toString(selected));\n\t\t\t\toc.saveProperties();\n\n\t\t\t\tif (selected) {\n\n\t\t\t\t\tif (!StartUp.exists()) {\n\n\t\t\t\t\t\tStartUp.create();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\n\t\t\t\t\tStartUp.delete();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tchckbxNewCheckBox.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 15));\n\t\tchckbxNewCheckBox.setBounds(317, 186, 123, 23);\n\t\tchckbxNewCheckBox.setSelected(Boolean.valueOf(oc.getProp().getProperty(\"startOnStartUp\")));\n\t\tframe.getContentPane().add(chckbxNewCheckBox);\n\n\t\tJButton btnNewButton = new JButton(\"Exit Without Refresh\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 15));\n\t\tbtnNewButton.setBounds(10, 156, 143, 23);\n\t\tframe.getContentPane().add(btnNewButton);\n\n\t\tJButton btnNewButton_1 = new JButton(\"Help\");\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\tInstructionWindow iWindow = new InstructionWindow();\n\t\t\t\tiWindow.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(201, 186, 65, 23);\n\t\tframe.getContentPane().add(btnNewButton_1);\n\n\t\tJButton button = new JButton(\"Refresh Offline MBank\");\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tConnection conn = null;\n\t\t\t\tDatabaseController dbc = DatabaseController.getDBController();\n\t\t\t\tString connectString = dbc.buildConnectionString();\n\n\t\t\t\ttry {\n\t\t\t\t\tconn = DriverManager.getConnection(connectString);\n\t\t\t\t\toc.getProp().setProperty(\"offlineMode\", \"false\");\n\t\t\t\t\toc.saveProperties();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tStringBuffer buf = new StringBuffer();\n\t\t\t\t\tbuf.append(\"There was a problem with the following connection string: \");\n\t\t\t\t\tbuf.append(connectString);\n\t\t\t\t\tbuf.append(\"\\n\\nHere is the exceptio:\\n\");\n\t\t\t\t\tbuf.append(e.toString());\n\t\t\t\t\tSystem.out.println(buf.toString());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tRuntime.getRuntime()\n\t\t\t\t\t\t\t\t.exec(\"javaw -jar \\\"\" + System.getProperty(\"user.home\") + File.separator + \"Documents\"\n\t\t\t\t\t\t\t\t\t\t+ File.separator + \"SevMessageConfig\" + File.separator\n\t\t\t\t\t\t\t\t\t\t+ \"NowOfflineWindow.jar\\\"\");\n\t\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep((long) 3000.0);\n\t\t\t\t\t} catch (InterruptedException e2) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te2.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tFile file = new File(System.getProperty(\"user.home\") + File.separator + \"Documents\" + File.separator\n\t\t\t\t\t\t+ \"SevMessageConfig\" + File.separator + \"offlineMessageBank.txt\");\n\t\t\t\tfile.delete();\n\n\t\t\t\tif (!StartUp.exists()) {\n\n\t\t\t\t\tStartUp.create();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\tbutton.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 15));\n\t\tbutton.setBounds(10, 186, 165, 23);\n\t\tframe.getContentPane().add(button);\n\n\t\tslider_1.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent arg0) {\n\n\t\t\t\tlblNewLabel.setText(Integer.toString(slider_1.getValue()) + \" minute(s)\");\n\t\t\t}\n\t\t});\n\n\t\tslider.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent arg0) {\n\t\t\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\t\t\tlabel_1.setText(Integer.toString(slider.getValue()) + \" second(s)\");\n\t\t\t\tlabel_3.setText(df.format(Long.parseLong(oc.getProp().getProperty(\"refreshRate\").trim()) / 60.0)\n\t\t\t\t\t\t+ \" minute(s)\");\n\t\t\t}\n\t\t});\n\t}", "public Game(){\n\t\tDimension size = new Dimension(width * scale, height * scale);\n\t\tsetPreferredSize(size);\n\t\t\n\t\tscreen = new Screen(width, height);//instantiated the new screen\n\t\t\n\t\tframe = new JFrame();\n\t\t\n\t}", "private static void createAndShowGUI() {\n\t\t//Create and set up the window.\n\t\tJFrame frame = new JFrame(\"Color test\");\n\t\tframe.setPreferredSize(new Dimension(700, 700));\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t//Create and set up the content pane.\n\t\tJComponent newContentPane = new ColorTest();\n\t\tnewContentPane.setOpaque(true); //content panes must be opaque\n\t\tframe.setContentPane(newContentPane);\n\n\t\t//Display the window.\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}", "private void initUI(int width, int height) {\n\t\tsetSize(width, height);\n\t\tsetTitle(ClientParameters.WINDOW_TITLE);\n\t\tsetLocationRelativeTo(null);\n\t\tsetResizable(ClientParameters.IS_RESIZABLE);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\t// adding components\n\t\tpane.setLayout(new BorderLayout());\n\t\tpane.add(host, BorderLayout.NORTH);\n\t\tpane.add(portNumber, BorderLayout.CENTER);\n\t\tpane.add(connectButton, BorderLayout.SOUTH);\n\t}", "public Coup() {\n dim = Toolkit.getDefaultToolkit().getScreenSize();\n jframe = new JFrame(\"Coup\");\n jframe.setVisible(true);\n jframe.setSize(800, 700);\n jframe.setLocation(dim.width / 2 - jframe.getWidth() / 2, dim.width \n / 2 - jframe.getHeight() / 2);\n jframe.add(board = new Board());\n jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 640, 480);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJDesktopPane desktopPane = new JDesktopPane();\t\t//Creates desktop pane\n\t\tdesktopPane.setBounds(-7, -30, 640, 480);\t\t\t// Sets location to be outside of window\n\t\tframe.getContentPane().add(desktopPane);\t\t\t// adds desktop pane to frame\n\t\t\n//\t\tMainMenu MainMenu = new MainMenu();\t\t// Creates new MainMenu\n//\t\tMainMenu.setVisible(true);\t\t\t\t// Sets MainMenu Visible\n//\t\tdesktopPane.add(MainMenu);\t\t\t\t// Adds MainMenu to DesktopPane\n\t\t\n\t\t\n\t\t MainMenu nw = MainMenu.getInstance();\n\t\t nw.pack();\n//\t\t if (nw.isVisible()) {\n//\t\t } else {\n\t\t\tnw.setBounds(100, 100, 400, 200);\n\t\t desktopPane.add(nw);\n\t\t nw.setVisible(true);\n\t\t \n//\t\t }\n\t\t try {\n\t\t nw.setMaximum(true);\n\t\t } catch (Exception e1) {\n\t\t \tSystem.out.println(e1);\n\t\t }\n\t}", "@Override\r\n\tpublic void init() {\n\t\tsetSize(new Dimension(450,250));\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tinitPanel();\r\n\t\t\r\n\t}", "mainWindow(String title, String location) {\n\t\tsuper(title); //sets the title of the window\n\t\tthis.location = location; //the location of all images and resources\n\t\t\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE); //allows the window to be closed\n\t\tthis.setVisible(true); //shows the window\n\t\tthis.setSize(900, 650); //sets the preferred size\n\t\tthis.setResizable(false); //size cannot be changed\n\t\tdrawWindow(); //makes the window\n\t\tthis.pack();\n\t}", "public window() {\n initComponents();\n letras();\n ArduinoConnection();\n }", "private void initialize() {\r\n this.setSize(new Dimension(374, 288));\r\n this.setContentPane(getJPanel());\r\n this.setResizable(false);\r\n this.setModal(true);\r\n this.setTitle(\"颜色选择面板\");\r\n addJPanel();\r\n\t}", "public GameWindow() {\r\n\r\n\t\tsuper(SWT.CLOSE | SWT.TITLE | SWT.MIN | SWT.DOUBLE_BUFFERED);\r\n\r\n\t\tshell.setText(WINDOW_TITLE);\r\n\t\tshell.setBackground(display.getSystemColor(SWT.COLOR_BLACK));\r\n\t\tshell.setBackgroundMode(SWT.INHERIT_DEFAULT);\r\n\t\tshell.addShellListener(new ShellAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void shellClosed(ShellEvent event) {\r\n\t\t\t\tclose();\r\n\t\t\t\tevent.doit = false;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Set up the OpenGL canvas\r\n\t\tGLData gldata = new GLData();\r\n\t\tgldata.doubleBuffer = true;\r\n\t\tgldata.sampleBuffers = 1;\r\n\t\tgldata.samples = 4;\r\n\t\tcanvas = new GLCanvas(shell, SWT.NONE, gldata);\r\n\t}", "public MainWindow() {\n initComponents();\n \n StationView = new SpaceStationView();\n EnemyView = new EnemyStarshipView();\n \n stationPanel.add(StationView);\n enemyPanel.add(EnemyView);\n \n message.setVisible(false);\n \n setTitle(appName);\n \n repaint();\n setLocationRelativeTo(null);\n \n }", "private void addProperties()\n\t{\n\t\tgetContentPane().setLayout(null);\n\t\tDimension resolucao=Toolkit.getDefaultToolkit().getScreenSize();\n\t\tsetSize(370,177);\n\t\tsetLocation((resolucao.width-260)/2,(resolucao.height-380)/2);\n\t\tsetResizable(false);\n\t\taddWindowListener(new WindowAdapter(){public void windowClosing(WindowEvent e){dispose();}});\n \t}", "@Override\r\n\tpublic void init() {\n\t\tLogger.info(\"Opening window...\");\r\n\t\twindow = new Window(CompiledSettings.WINDOW_WIDTH, CompiledSettings.WINDOW_HEIGHT, CompiledSettings.WINDOW_DEFAULT_TITLE, this, Window.WINDOW_HIDDEN | Window.WINDOW_MULTISAMPLE_X8 | Window.WINDOW_RESIZEABLE | Window.WINDOW_DEBUGMODE);\r\n\t\twindow.setSwapInterval(0);\r\n\t\twindow.setIcon(\"res/texture/icon.png\");\r\n\t\twindow.setBackFaceCulling(false);\r\n\t\twindow.clearColor(0.2f, 0.2f, 0.2f, 1.0f);\r\n\t\tLogger.debug(\"Window opened\");\r\n\t\t\r\n\t\t// Font\r\n\t\tGlyphTexture glyphs = GlyphTexture.loadFont(new Font(\"arial\", Font.PLAIN, 128));\r\n\t\t\r\n\t\t// Critical Initalizations\r\n\t\tTextLabelTexture.initialize(window, glyphs);\r\n\t\tTextureLoader.init(16); // Start loading resources\r\n\t\tGameStateManager.initialize(window);\r\n\t\t\r\n\t\t// Resource loading\r\n\t\tGameStateManager.setState(GameStates.LOADING);\r\n\t\t((Loader)GameStates.LOADING.state).loadRes(GameStates.MAINMENU);\r\n\t\tGameStateManager.init();\r\n\t\t\r\n\t\twindow.unhide();\r\n\t}", "public void paint(Graphics window)\n\t{\n\t\twindow.setColor(Color.WHITE);\n\t\twindow.fillRect(0,0,getWidth(), getHeight());\n\t\twindow.setColor(Color.BLUE);\n\t\twindow.drawRect(20,20,getWidth()-40,getHeight()-40);\n\t\twindow.setFont(new Font(\"TAHOMA\",Font.BOLD,18));\n\t\twindow.drawString(\"CREATE YOUR OWN SHAPE!\",40,40);\n\n\n\t\tColor[] col0 = {Color.CYAN, Color.RED, Color.GREEN};\n\t\tCustomShape cs0 = new CustomShape(500, 200, 50, 200, col0);\n\t\tcs0.draw(window);\n\t\t\n\t\tColor[] col1 = {Color.BLACK, Color.PINK, Color.DARK_GRAY};\n\t\tCustomShape cs1 = new CustomShape(180, 450, 200, 70, col1);\n\t\tcs1.draw(window);\n\t\t\n\t\tColor[] col2 = {Color.MAGENTA, Color.ORANGE, Color.YELLOW};\n\t\tCustomShape cs2 = new CustomShape(300, 120, 250, 250, col2);\n\t\tcs2.draw(window);\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "private static void createAndShowGUI() {\n //\n // Use the normal window decorations as defined by the look-and-feel\n // schema\n //\n JFrame.setDefaultLookAndFeelDecorated(true);\n //\n // Create the main application window\n //\n mainWindow = new MainWindow();\n //\n // Show the application window\n //\n mainWindow.pack();\n mainWindow.setVisible(true);\n }", "private void initialize() {\n\t\tframePirateEventScreen = new JFrame();\n\t\tframePirateEventScreen.setBounds(100, 100, 630, 241);\n\t\tframePirateEventScreen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tJButton btnContinue = new JButton(\"CONTINUE\");\n\t\tbtnContinue.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tbtnContinue.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfinishedWindow();\n\t\t\t}\n\t\t});\n\t\tframePirateEventScreen.getContentPane().setLayout(new MigLayout(\"\", \"[85px,grow]\", \"[grow][23px]\"));\n\n\t\tJLabel lblNewLabel = new JLabel(\n\t\t\t\t\"You have been boarded by pirates! You will have to beat them in a game to deter them.\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tframePirateEventScreen.getContentPane().add(lblNewLabel, \"cell 0 0\");\n\t\tframePirateEventScreen.getContentPane().add(btnContinue, \"cell 0 1,alignx center,aligny center\");\n\t}" ]
[ "0.7956048", "0.778886", "0.7494632", "0.74342835", "0.7420263", "0.72556466", "0.7227285", "0.7224236", "0.71825486", "0.7117192", "0.7107839", "0.70936036", "0.7051196", "0.7050741", "0.7034199", "0.69749355", "0.6958216", "0.69333315", "0.69292384", "0.6906002", "0.6879752", "0.6845846", "0.6810185", "0.68064547", "0.67991036", "0.67783064", "0.67610407", "0.67517215", "0.67452425", "0.67399716", "0.67285216", "0.6727967", "0.67266476", "0.6726629", "0.6693099", "0.66893244", "0.6684155", "0.66743803", "0.6664372", "0.6664305", "0.6658761", "0.66469204", "0.6638375", "0.6627166", "0.66181517", "0.6616688", "0.661612", "0.6613739", "0.66080654", "0.6599412", "0.6597976", "0.6596473", "0.6596195", "0.65950173", "0.65918577", "0.6589049", "0.65873426", "0.6585009", "0.6582915", "0.65742993", "0.65726364", "0.65498054", "0.6549555", "0.6541653", "0.6537389", "0.653554", "0.65339524", "0.65318733", "0.6529907", "0.6529123", "0.6525628", "0.6513287", "0.65074253", "0.6505933", "0.6505031", "0.65030193", "0.6499695", "0.6499473", "0.6495733", "0.6495628", "0.64950246", "0.6493168", "0.6492611", "0.6490363", "0.64902365", "0.64884025", "0.64880824", "0.6485951", "0.6485335", "0.64824253", "0.6477752", "0.64755815", "0.64717245", "0.6461985", "0.6461435", "0.6461186", "0.6452661", "0.64445245", "0.64437854", "0.6438278" ]
0.69369185
17
Add a CSS node at the specified index.
@Nonnull public final HCHead addCSSAt (@Nonnegative final int nIndex, @Nonnull final IHCNode aCSS) { ValueEnforcer.notNull (aCSS, "CSS"); if (!HCCSSNodeDetector.isCSSNode (aCSS)) throw new IllegalArgumentException (aCSS + " is not a valid CSS node!"); m_aCSS.add (nIndex, aCSS); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public @Override void add(int index, E element) {\n \tNode n = index == size ? sentinel : getNode(index);\n \tnew Node(n.pred, element);\n }", "public void insertChildAt(WSLNode node, int index) {\n\t\tchildren.insertElementAt(node, index);\n\t}", "public void add(int index, Object value) {\n if (index > _size) {\n throw new ListIndexOutOfBoundsException(\"Error\");\n }\n ListNode node = new ListNode(value);\n if (index == 0) {\n node.next = start;\n start = node;\n } else {\n ListNode prev = start;\n for (int i = 0; i<index - 1; i++ ) {\n prev = prev.next;\n }\n ListNode temp = prev.next;\n prev.next = node;\n node.next = temp;\n } \n _size++;\n }", "public void addAtIndex(int index, int data)\n {\n Node newNode = new Node(data);\n Node oldNode = head;\n\n for (int i=1;i<size;i++)\n {\n if (i == index)\n {\n Node myNode = oldNode.next;\n oldNode.next = newNode;\n newNode.next = myNode;\n break;\n }\n oldNode = oldNode.next;\n }\n size++ ;\n }", "public void add(int index, E x) {\n\t\tif (index < 0 || index > mSize) // == mSize allowed\n\t\t\tthrow new IndexOutOfBoundsException();\n\n\t\tif (size() == 0)\n\t\t\taddFirst(x);\n\t\telse {\n\t\t\taddBefore(getNode(index, 0, size()), x);\n\t\t\tmSize++;\n\t\t\tmodCount++;\n\t\t}\n\t}", "public void addChild(int index, Node node) {\n\t\tthis.children.add(index, node);\n\t}", "public void add(int index, int data){\r\n if (index == 0){\r\n front = ned node(data, front){\r\n } else {\r\n node curr = front;\r\n for (int i = 0; i < index - 1; i++){\r\n curr = curr.next;\r\n }\r\n curr.next = new node(data, curr.next);\r\n }\r\n }\r\n \r\n}", "public void addAtIndex(int index, T data) {\n Node<T> newNode = new Node<>();\n newNode.data = data;\n\n if (index == 0) {\n addAtStart(data);\n } else {\n Node<T> node = head;\n for (int i = 0; i < index - 1; i++) {\n node = node.next;\n }\n newNode.next = node.next;\n node.next = newNode;\n }\n }", "public void add(int index, Object element) {\r\n addBefore(element, (index == size ? header : entry(index)));\r\n }", "public void addAt(int index, T data) {\n Node<T> newNode = new Node<T>();\n newNode.data = data;\n\n if (index == 0) {\n newNode.next = head;\n head = newNode;\n } else {\n Node<T> currentNode = head;\n Node<T> previousNode = null;\n\n for (int i = 0; i < index; i++) {\n previousNode = currentNode;\n currentNode = currentNode.next;\n }\n previousNode.next = newNode;\n newNode.next = currentNode;\n }\n size++;\n }", "public void add (int index, E item)\n {\n if (index < 0 || index > size) {\n throw new\n IndexOutOfBoundsException(Integer.toString(index));\n }\n if (index == 0)\n addFirst(item);\n else {\n Node<E> node = getNode(index - 1);\n addAfter(node, item);\n }\n }", "private void addNodeAtIndex(int data, int index) {\n ListNode newNode = new ListNode(data);\n if (head == null) {\n head = newNode;\n return;\n }\n int count = 0;\n ListNode current = head;\n while (count < index - 1) {\n count++;\n current = current.next;\n }\n newNode.next = current.next;\n current.next = newNode;\n }", "private void addNode(int index, Node<AnyType> t) throws IndexOutOfBoundsException {\n \n /**\n * -------------------------------------------\n * TODO: You fully implement this method\n * \n */\n \n \n if ( index == 0 && !isEmpty() ) {\n \n t.setNextNode( headNode );\n headNode.setPreviousNode( t );\n headNode = t;\n size++;\n \n } else if ( index == 0 && isEmpty() ) { \n \n t.setNextNode( headNode );\n headNode = t;\n size++;\n \n } else if ( index == size ) {\n \n addNode( t );\n \n } else {\n \n Node<AnyType> node = getNode( index );\n \n node.getPreviousNode().setNextNode( t );\n t.setPreviousNode( node.getPreviousNode() );\n node.setPreviousNode( t );\n t.setNextNode( node );\n \n size++;\n \n }\n \n }", "public void addAtIndex(int idx, T v) {\n addAtIndex(idx, new Node(v));\n }", "public void addAtIndex(int index, int val) {\n if (index < 0 || index > size) return;\n\n Node node = head;\n\n for (int i = 0; i < index; i++) {\n node = node.next;\n }\n\n Node newNode = new Node(val);\n newNode.next = node.next;\n newNode.next.prev = newNode;\n node.next = newNode;\n newNode.prev = node;\n size++;\n }", "public void addElement(int index, TLProperty element);", "public void addAtIndex(int index, int val) {\n if (index < 0 || index > size) {\n return;\n }\n Node prev = dummyHead;\n for (int i = 0; i < index; i++) {\n prev = prev.next;\n }\n prev.next = new Node(val, prev.next);\n size++;\n }", "public void add(int index, E obj){\n Node n = head;\n Node foo = new Node<E>(obj);\n Node temp = new Node<E>(null);\n int count = 0;\n if(index >= size()){\n index = size(); \n }\n else if (index < 0){\n index = 0;\n }\n while(n.getNext() != null && count != index)\n {\n n = n.getNext();\n temp = n;\n count++;\n }\n temp = n.getNext();\n n.setNext(foo);\n foo.setNext(temp);\n }", "public void addAtIndex(int index, int val) {\n if (index > this.size) {\n return;\n }\n\n if (index < 0) {\n index = 0;\n }\n\n ListNode pred = this.head;\n\n for (int i = 0; i < index; ++i) {\n pred = pred.next;\n }\n\n ListNode node = new ListNode(val);\n node.next = pred.next;\n pred.next = node;\n\n this.size++;\n }", "@Nonnull\n public final HCHead addJSAt (@Nonnegative final int nIndex, @Nonnull final IHCNode aJS)\n {\n ValueEnforcer.notNull (aJS, \"JS\");\n if (!HCJSNodeDetector.isJSNode (aJS))\n throw new IllegalArgumentException (aJS + \" is not a valid JS node!\");\n m_aJS.add (nIndex, aJS);\n return this;\n }", "public void add(int index,Object data)\r\n\t{\r\n\t\tNode n = headPointer;\t\r\n\t\t//System.out.println(\"headPointer is: \" + n.getData());\r\n\t\tint count = 0;\r\n \r\n\t\twhile(count != index)\r\n {\r\n\t\t\t//System.out.println(\"n is: \" + n.getData());\r\n\t\t\tif(n != null)\r\n\t\t\t{\r\n\t\t\t\tn = n.getNext();\t\r\n\t\t\t}\r\n count++;\r\n }\r\n\t//\tSystem.out.println(\"We have fallen out of the loop\");\r\n\t\t\r\n\t\tNode m = new Node(data, n, n.getPrev()); \r\n\t\tm.getPrev().setNext(m);\r\n\t\tn.setPrev(m);\t\r\n\t}", "public void addAtIndex(int idx, Node node) {\n if (!checkIndexBounds(idx)) {\n return;\n }\n\n Node pre = getNodeBeforeIndex(idx);\n Node curr = pre.next;\n pre.next = node;\n node.next = curr;\n this.length++;\n }", "public void add(int index, Object data) {\n isValidIndex(index);\n\n Node newNode = new Node(data);\n if (isEmpty()) {\n head = newNode;\n size ++;\n } else if (index == 0) {\n addFirst(data);\n } else {\n Node n = getNode(index - 1);\n newNode.next = n.next;\n n.next = newNode;\n size ++;\n }\n\n if (newNode.next == null) {\n tail = newNode;\n }\n }", "void add(int index, Object element);", "public LinkedListElement add(int Index, T content) throws IndexOutOfBoundsException {\n if (Index == 0) {\n LinkedListElement element = new LinkedListElement(content);\n element.next = this;\n return element;\n } else {\n throw new IndexOutOfBoundsException(\"Methode add: Dieser Index existiert nicht!\");\n }\n }", "public void add(final T data, final int index) {\n if (index < 0 || index > numElement + 1) {\n throw new IndexOutOfBoundsException();\n }\n Node<T> newNode = new Node<>(data);\n if (index == 0) {\n prepend(data);\n } else if (index == numElement) {\n append(data);\n }\n Node<T> iterator = head;\n for (int currentIndex = 0; currentIndex < index - 1; currentIndex++) {\n iterator = iterator.getNext();\n }\n newNode.setNext(iterator.getNext());\n iterator.setNext(newNode);\n numElement++;\n }", "LinkedEntries.LinkNode add(NodeEntry cne, int index) {\n LinkedEntries.LinkNode ln = new LinkedEntries.LinkNode(cne, index);\n addNode(ln, getHeader());\n return ln;\n }", "public void add(int index, AnyType t) throws IndexOutOfBoundsException, NullPointerException {\n \n if ( t == null ) throw new NullPointerException();\n \n addNode( index, new Node<AnyType>(t) );\n \n }", "void add(int index, T element);", "void add(int index, T element);", "@Override\n\tpublic void add(int index, E element) {\n\t\trangeCheckForAdd(index);\n\t\tif (index==size) {\n\t\t\tNode<E> oldLast = last;\n\t\t\tlast = new Node<E>(oldLast, element, first);\n\t\t\t//这是链表添加的第一个元素\n\t\t\tif (oldLast == null) {\n\t\t\t\tfirst = last;\n\t\t\t\tfirst.next = first;\n\t\t\t\tfirst.prev = first;\n\t\t\t}else {\n\t\t\t\toldLast.next = last;\n\t\t\t\tfirst.prev = last;\n\t\t\t}\n\t\t}else {\n\t\t\tNode<E> next = node(index);\n\t\t\tNode<E> prev = next.prev;\n\t\t\tNode<E> node = new Node<E>(prev, element, next);\n\t\t\tnext.prev = node;\n\t\t\tprev.next = node;\n\t\t\tif (next == first) { // index == 0\n\t\t\t\tfirst = node;\n\t\t\t}\n\t\t}\n\t\tsize ++;\n\t}", "void addAdjcentNode(int adjcentNodeIdx){\r\n\t\t\tadjacentNodeIndices.add(adjcentNodeIdx);\r\n\t\t}", "public void add(int index, String value){\n\tadd(value);\n }", "public void addNode(String name, int index) {\n\t\tDefaultTreeModel model = (DefaultTreeModel) getModel();\n\t\tTreeNode root = (TreeNode) model.getRoot();\n\t\tif (index > root.getChildCount() || index < 0){\n\t\t\tindex = root.getChildCount();\n\t\t}\n\n\t\tmodel.insertNodeInto(new TreeNode(name, root.getNodeOption(), index, false), root, index);\n\t\tmodel.reload();\n\n\t\tscrollRowToVisible(index + 1);\n\n\t}", "public void add(int index, T obj) {\r\n if (index < 0 || size < index) {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n if (obj == null) {\r\n throw new IllegalArgumentException(\"Cannot add null \"\r\n + \"objects to a list\");\r\n }\r\n\r\n Node<T> current;\r\n if (index == size) {\r\n current = tail;\r\n }\r\n else {\r\n current = getNodeAtIndex(index);\r\n }\r\n\r\n Node<T> newNode = new Node<T>(obj);\r\n newNode.setPrevious(current.previous());\r\n newNode.setNext(current);\r\n current.previous().setNext(newNode);\r\n current.setPrevious(newNode);\r\n size++;\r\n\r\n }", "public void add(int index, E obj)\r\n {\r\n listIterator(index).add(obj);\r\n }", "public void add(int index, String value){\n add(value);\n }", "public void addAtIndex(int index, int val) {\n if (index > size) return;\n //Add at head\n if (index <= 0) {\n addAtHead(val);\n }\n //Add at end\n else if (index == size) {\n addAtTail(val);\n } else {\n ListNode newNode = new ListNode(val);\n ListNode curr = head;\n //Add somewhere in between\n for (int i = 0; i < index - 1; i++) {\n curr = curr.next;\n }\n newNode.next = curr.next;\n curr.next = newNode;\n size++;\n }\n }", "@Override\n public void add(int index, T elem) {\n if(index < 0 || index >= size()) {//if the required index is not valid, give error\n throw new IndexOutOfBoundsException();\n }\n //if we want to add at the beginning of the list\n if(index == 0) {\n prepend(elem); //reuse prepend method when adding at the start of list\n return;\n }\n //if we want to add inside the list\n DLNode<T> predecessor = first; //create a reference, point it to the first node\n for(int i = 0; i < index - 1; i++) {//locate the preceeding index of the required index\n predecessor = predecessor.next;\n \n }\n DLNode<T> successor = predecessor.next; //another reference, now points to the index we want to add the new node to\n \n DLNode<T> middle = new DLNode(elem, predecessor, successor);//create new node, it's previous node is predecessor, the one after it is successor\n predecessor.next = middle; //new node is assigned to the required index, after predecessor, before successor\n \n if(successor == null) {//if there's no node after the new node\n last = middle; //new node is the last one \n }\n else{ //if there is a successor node exist\n successor.prev = middle; //new node preceeds it's successor\n } \n \n }", "public void insert(int index, char data)\n {\n if(index >= 0 && index <= numNodes){\n if(index == 0)\n {\n Node node = new Node(data);\n node.next = head;\n head = node;\n }\n else\n {\n //find your previous and your current\n Node curr = find(index);\n Node prev = find(index - 1);\n \n //add the new node with current as the successor and previous as the \n //predecessor\n Node node = new Node(data, curr);\n prev.next = node;\n }\n numNodes++;\n }\n else\n {\n throw new IndexOutOfBoundsException();\n }\n }", "@Override\n public void add(int index, T element){\n if(index < 0 || index > size()){\n throw new NullPointerException();\n }else if(isEmpty() || index == size()){\n add(element);\n } else if(index == 0){\n prepend(element);\n } else{\n DLLNode<T> newNode = new DLLNode<T>(element);\n DLLNode<T> rightNode = getCurrentNode(index);\n DLLNode<T> leftNode = rightNode.previous;\n leftNode.successor = newNode;\n newNode.previous = leftNode;\n newNode.successor = rightNode;\n rightNode.previous = newNode;\n }\n }", "public void add(int index, E element) {\n\t\tcheckBounds(index);\r\n\t\tif(index == size) {\r\n\t\t\tadd(element);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tNode<E> node = new Node<E>(element);\r\n\t\tif(index == 0) {\r\n\t\t\thead.setPrevious(node);\r\n\t\t\tnode.setNext(head);\r\n\t\t\thead = node;\r\n\t\t} else {\r\n\t\t\tnode.setNext(getNode(index));\r\n\t\t\tnode.setPrevious(getNode(index-1));\r\n\t\t\tgetNode(index-1).setNext(node);\r\n\t\t\tgetNode(index).setPrevious(node);\r\n\t\t}\r\n\t\tsize++;\r\n\t}", "public void add(int index, T element)\r\n {\r\n Node<T> newNode = new Node<T>(element);\r\n Node<T> walker; // needed for traversing the list\r\n \r\n if ((index < 0) || (index > numElements))\r\n throw new IndexOutOfBoundsException(\r\n \"Illegal index \" + index + \" passed to add method.\\n\");\r\n\r\n if (front == null) // add to empty list\r\n { \r\n front = newNode;\r\n rear = newNode;\r\n }\r\n else if (index == 0) // add to front\r\n {\r\n newNode.next = front;\r\n front = newNode;\r\n }\r\n else if (index == size()) // add to rear\r\n {\r\n rear.next = newNode;\r\n rear = newNode;\r\n }\r\n else // add to interior part of list\r\n {\r\n walker = front; \r\n for (int i=0; i<(index-1); i++)\r\n {\r\n walker = walker.next;\r\n }\r\n newNode.next = walker.next;\r\n walker.next = newNode;\r\n }\r\n numElements++;\r\n }", "public void add(int index, Type t);", "public void add(T element, int index) {\n int counter = 0;\n Node<T> newNode = new Node(element);\n Node<T> current = itsFirstNode;\n\t\tif (current == null) {\n\t\t\tthrow new NoSuchElementException(\"Beyond size of list or list empty\");\n\t\t}\n\t\twhile (current.getNextNode() != null ) {\n\t\t\tif ((counter == index - 1) || (index == 0)) {\n\t\t\t\tbreak;\n\t\t\t}\t\n\t\t\tcurrent = current.getNextNode();\n\t\t\tcounter++;\n\t\t}\n\t\ttry {\n\t\t\tif (index == 0) {\n\t\t\t\taddAsFirst(newNode);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tnewNode.setNextNode(current.getNextNode());\n\t\t\t\t(newNode.getNextNode()).setPriorNode(newNode);\n\t\t\t\tcurrent.setNextNode(newNode);\n\t\t\t\tnewNode.setPriorNode(current);\n\t\t\t}\n\t\t}\n\t\tcatch (NullPointerException e) {\n\t\t\t// NullPointer is fine\n\t\t}\n size++;\n }", "public void add(int index, E element);", "public abstract void add(T element, int index);", "public void add(int index, MemoryBlock block) {\n\t\tif ((index < 1) || (index > size-1))\n\t\t\t\tthrow new IllegalArgumentException();\n\t\telse if (index == 1){\n\t\t\taddFirst(block);\n\t\t}\n\t\telse if ((index == size-1) && (index != 1))\n\t\t\taddLast(block);\n\t\telse if ((index != size-1) && (index != 1))\n\t\t{\n\t\t\t\tNode newNode = new Node(block);\n\t\t\t\tnewNode.previous = getNode(index-1);\n\t\t\t\tnewNode.next = getNode(index);\n\t\t\t\tgetNode(index-1).next = newNode;\n\t\t\t\tgetNode(index).previous = newNode;\n\t\t\t\tsize++;\n\t\t}\n\t}", "public void addAtIndex(int index, int val) {\n if(index==0) {\n addAtHead(val);\n return;\n }\n if(index==len) {\n addAtTail(val);\n return;\n }\n if(index>0 && index<len) {\n SingleNode cur = new SingleNode(val,null);\n SingleNode pre = head;\n for(int i=0; i<index-1; i++) {\n pre = pre.next;\n }\n cur.next = pre.next;\n pre.next = cur;\n len++;\n }\n }", "public void addBefore(E val, int idx) throws IndexOutOfBoundsException {\n addNodeBefore(new SinglyLinkedList.Node<>(val), idx);\n }", "public void insertNodeToTheGivenIndex(int index, int data){\n int size = size(); // for performance improvement!\n\n //Index validation\n checkIndex(index);\n\n if(index==0){\n addNodeToTheStart(data);\n }else if(index==size){\n addNodeToTheEnd(data);\n }\n //Important\n Node newNode = new Node(data);\n Node current = head;\n Node previous = null;\n int i = 0;\n while(i<index){\n previous = current; //Update previous Node in the loop!\n current = current.next;\n i++;\n }\n newNode.next = current;\n assert previous != null;\n previous.next = newNode;\n }", "@Override\n public void add(int index, int element) {\n Entry newElement = new Entry(element);\n Entry tmp = getEntry(index);\n newElement.next = tmp;\n newElement.previous = tmp.previous;\n tmp.previous.next = newElement;\n tmp.previous = newElement;\n size++;\n }", "void addNode(int node);", "public void add(int index, Object o) {\n try {\n Element element = (Element) o;\n if (element.type() == Element.CHUNK) {\n Chunk chunk = (Chunk) element;\n if (!font.isStandardFont()) {\n chunk.setFont(font.difference(chunk.font()));\n }\n super.add(index, chunk);\n }\n else if (element.type() == Element.PHRASE ||\n element.type() == Element.ANCHOR ||\n element.type() == Element.ANNOTATION ||\n element.type() == Element.TABLE || // line added by David Freels\n element.type() == Element.GRAPHIC) {\n super.add(index, element);\n }\n else {\n throw new ClassCastException(String.valueOf(element.type()));\n }\n }\n catch(ClassCastException cce) {\n throw new ClassCastException(\"Insertion of illegal Element: \" + cce.getMessage());\n }\n }", "public void add(int index, T data) {\n\t\tif(index > size() || index < 0) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Illegal index: \" + index);\n\t\t}\n\t\t\n\t\tLinkedListNode<T> temp = head.getNext();\n\t\tint i = 0;\n\t\twhile(true) {\n\t\t\tif(temp == null) {\n\t\t\t\tthrow new InternalError(\"add(int index, T data) iterates past the end\");\n\t\t\t}\n\t\t\tif(index == i) {\n\t\t\t\tLinkedListNode<T> toAdd = new LinkedListNode<T>(temp, temp.getPrevious(), data);\n\t\t\t\ttemp.getPrevious().setNext(toAdd);\n\t\t\t\ttemp.setPrevious(toAdd);\n\t\t\t\tmodcount++;\n\t\t\t\tnodeCount++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ti++;\n\t\t\ttemp = temp.getNext();\n\t\t}\n\t}", "@Override\n\tpublic void add(int idx, T obj) throws IndexOutOfBoundsException {\n\t\tboolean found = false;\n\t\tint n = 0;\n\t\tListNode tmp = new ListNode(obj);\n\t\tListNode current = head;\n\t\t\n\t\tif (idx < 0 || idx > size()) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\telse if (idx == 0) {\n\t\t\ttmp.next = head;\n\t\t\thead = tmp;\n\t\t\tsize++;\n\t\t}\n\t\telse {\n\t\t\twhile (!found) {\n\t\t\t\tif (n == idx - 1) {\n\t\t\t\t\ttmp.next = current.next;\n\t\t\t\t\tcurrent.next = tmp;\n\t\t\t\t\tfound = true;\n\t\t\t\t\tsize++;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcurrent = current.next;\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void add(int index, Object element) {\r\n refs.add(index, new WeakReference(element));\r\n }", "public void add(int index, U newValue) throws IndexOutOfBoundsException {\n\t\t\tif (index > mLength || index < 0) {\n\t\t\t\tthrow new IndexOutOfBoundsException(\"Supplied index \" + index + \" is invalid.\");\n\t\t\t}\n\n\t\t\tif (index == 0) {\n\t\t\t\tlinkBeforeNode(new Node<>(newValue), mHead);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (index == mLength) {\n\t\t\t\tlinkAfterNode(new Node<>(newValue), mTail);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tlinkBeforeNode(new Node<>(newValue), getNodeAtIndex(index));\n\t\t}", "public void add(int index, CoreResourceHandle e) {\n if (index < 0 || index > doSize()) {\n throw new IndexOutOfBoundsException();\n } else if (e != null) {\n doAdd(index, e);\n } else {\n throw new NullPointerException();\n }\n }", "@Override\r\n public void add(int index, T b) {\r\n head = head.add(index, b);\r\n }", "public void add(int index, int data) throws OutOfBoundsException {\n\n\t\tif (index == 0) {\n\t\t\tNode right = head;\n\t\t\thead = new Node(right, data);\n\t\t} else if (index == size) {\n\t\t\tNode left = retrieve(size - 1);\n\t\t\tleft.setNextNode(new Node(null, data));\n\n\t\t} else {\n\t\t\tNode left = retrieve(index - 1);\n\t\t\tNode right = retrieve(index);\n\t\t\tNode noo = new Node(right, data);\n\t\t\tleft.setNextNode(noo);\n\t\t}\n\t\tsize++;\n\t}", "CSSExpression item(int index);", "@Override\n\tpublic void insert(Object data, int index) throws IndexOutOfBoundsException {\n\n\t\tif (index >= size() || index < 0) {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\n\t\tNode newNode = new Node(data);\n\t\tif (index == 0) {\n\t\t\tnewNode.setNext(head);\n\t\t\thead = newNode;\n\t\t} else {\n\t\t\tNode currentNode = head;\n\t\t\tint currentIndex = 0; // current index\n\t\t\twhile (currentNode != null && currentIndex < index - 1) {\n\t\t\t\tcurrentNode = currentNode.getNext();\n\t\t\t\tcurrentIndex++;\n\t\t\t}\n\t\t\tNode previousNode = currentNode; // set the previous node come before the node at the current index\n\t\t\tNode nextNode = currentNode.getNext(); // set the next node to go after the one we are adding\n\t\t\tpreviousNode.setNext(newNode);\n\t\t\tnewNode.setNext(nextNode);\n\t\t}\n\t\tsize++;\n\n\t}", "void add(int idx, float incr);", "public void addAtIndex(int index, int val) {\n if(index>size || index<0)\n return;\n ListNode ptr=new ListNode(val);\n ListNode p=head,follow=head;\n int count=0;\n while (p!=null && count!=index){\n count++;\n follow=p;\n p=p.next;\n }\n if(p==head) {\n if(p == null) {\n head = ptr;\n tail=ptr;\n }\n else {\n ptr.next = head;\n head = ptr;\n }\n size++;\n }\n else if(p==tail){\n ptr.next=p;\n follow.next=ptr;\n size++;\n }\n else if(p==null){\n follow.next=ptr;\n tail=ptr;\n size++;\n }\n else {\n ptr.next = p;\n follow.next = ptr;\n size++;\n }\n }", "public void insertAt(int index,int data){\n Node node =new Node();\n node.data=data;\n node.next=null;\n\n if (index == 0) {\n insertAtStart(data);\n }\n\n\nelse{\n Node n = head;\n for (int i=0; i < index-1;i++){\n n =n.next;\n }\n node.next =n.next;\n n.next = node;\n\n}}", "public void addPixel(int index, TokenizedPixel pixel) {\n\t\tthis.pixelList.add(index, pixel);\n\t}", "protected void addNode (Node node, int index)\n {\n Node currentNode = adjacencySequences[index];\n if (currentNode == null)\n adjacencySequences[index] = node;\n else\n {\n Node previousNode = null;\n while (currentNode != null && currentNode.edgeWeight < node.edgeWeight)\n {\n previousNode = currentNode;\n currentNode = currentNode.nextNode;\n }\n\n if (previousNode == null)\n adjacencySequences[index] = node;\n else\n previousNode.nextNode = node;\n \n node.nextNode = currentNode;\n }\n }", "public void add(int index, T element) {\n\t\tif (index < 0 || index > size)\n\t\t\tthrow new ArrayIndexOutOfBoundsException();\n\t\tif (index == 0) {\n\t\t\tinsertHead(element);\n\t\t\treturn;\n\t\t}\n\t\tif (index == size) {\n\t\t\tinsertTail(element);\n\t\t}\n\t\tNode<T> curNode = head;\n\t\twhile (index != 1) {\n\t\t\tcurNode = curNode.next;\n\t\t\tindex--;\n\t\t}\n\t\tNode<T> temp = curNode.next;\n\t\tcurNode.next = new Node<>(element);\n\t\tcurNode.next.next = temp;\n\t\tsize++;\n\t}", "public Builder addNode(\n int index, uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode value) {\n if (nodeBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureNodeIsMutable();\n node_.add(index, value);\n onChanged();\n } else {\n nodeBuilder_.addMessage(index, value);\n }\n return this;\n }", "public int add(int index, Path item) {\n // Gracefully handle items beyond end\n final int size = mItems.size();\n index = constrain(index, 0, size);\n\n mItems.add(index, item);\n return index;\n }", "public void addControl(int index, Control control) {\n\t\tcontrols.add(index, control);\n\t}", "public void add(int index, float x, float y) {\n\t\tpoints.add(index, new GPoint(x, y));\n\t}", "public uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.Builder addNodeBuilder(\n int index) {\n return getNodeFieldBuilder().addBuilder(\n index, uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.getDefaultInstance());\n }", "public void add(T data, int index) {\n\t\tif (index < 0 || index > this.size) {\n\t\t\tthrow new ArrayIndexOutOfBoundsException();\n\t\t} else if (index == size) {\n\t\t\tthis.add(data);\n\t\t} else if (index == 0) {\n\t\t\tthis.addFirst(data);\n\t\t} else {\n\t\t\tListNode<T> previousElement = goToIndex(index - 1);\n\t\t\tListNode<T> currentElement = goToIndex(index);\n\t\t\tListNode<T> newElement = new ListNode<T>(data, currentElement);\n\t\t\tpreviousElement.setNext(newElement);\n\t\t\tthis.size++;\n\t\t}\n\t}", "public void addIndex() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"index\",\n null,\n childrenNames());\n }", "public abstract void add(int index, E e);", "void addNode(String node);", "public void addChild(final int childIndex) {\n if (!this.children.contains(childIndex)) {\n this.children.add(childIndex);\n }\n }", "public void addChildAt(int index, FileNode child) {\r\n child.setParent(this);\r\n this.children.add(index, child);\r\n childNum++;\r\n }", "public void insertAtAnyPoint(int index, int data) {\n\t\tNode node = new Node(); // defining random node\n\t\tnode.data = data; // putting data on it\n\t\tnode.next = null;\n\t\tNode n = head; // initial node\n\t\tif(index == 0){\n\t\t\tinsertAtStart(data);\n\t\t}else{\n\t\tfor (int i = 0; i < index-1; i++) {\n\t\t\tn = n.next;\n\t\t}\n\t\tnode.next = n.next;\n\t\tn.next = node;\n\t\t}\n\t}", "public void add(int index, Object item)\n {\n items[index] = item;\n numItems++;\n }", "public void add(int index, Object object) {\n\t\tif (nextItem.getIndex() == index) {\n\t\t\tItem newItem = new Item(object, index);\n\t\t\tnewItem.setNext(nextItem);\n\t\t\tnextItem = newItem;\n\t\t\tnextItem.getNext().incrementIndex();\n\t\t} else {\n\t\t\tnextItem.add(index, object);\n\t\t}\n\t}", "private void add(E e, int index) {\r\n\t\t\tif (hasRoom(index)) {\r\n\t\t\t\tshiftElements(data, index);\r\n\t\t\t\tdata[index] = e;\r\n\t\t\t} else {\r\n\t\t\t\tNode toAdd = new Node();\r\n\t\t\t\tthis.next.prev = toAdd;\r\n\t\t\t\ttoAdd.next = this.next;\r\n\t\t\t\ttoAdd.prev = this;\r\n\t\t\t\tthis.next = toAdd;\r\n\r\n\t\t\t\ttoAdd.data[0] = this.data[data.length - 1];\r\n\t\t\t\t// Shifts everything over one spot, the end element gets lost\r\n\t\t\t\tSystem.arraycopy(this.data, index, this.data, index + 1, data.length - index - 1);\r\n\t\t\t\tthis.data[index] = e;\r\n\t\t\t}\r\n\t\t}", "public void add(int index, int value) {\n\t\t\tif(index < 0 || index > size) {\n\t\t\t\tthrow new IndexOutOfBoundsException(\"index\" + index);\n\t\t\t}\n\t\t\tensureCapacity(size + 1);\n\t\t\tfor(int i = size; i > index; i--) {\n\t\t\t\telementData[size] = elementData[i - 1];\n\t\t\t}\n\t\t\telementData[index] = value;\n\t\t\tsize++;\n\t\t}", "private void appendNewComponent(int index) {\n/* 165 */ IChatMutableComponent iChatMutableComponent = (new ChatComponentText(this.message.substring(this.currentIndex, index))).setChatModifier(this.modifier);\n/* 166 */ this.currentIndex = index;\n/* 167 */ if (this.currentChatComponent == null) {\n/* 168 */ this.currentChatComponent = (IChatMutableComponent)new ChatComponentText(\"\");\n/* 169 */ this.list.add(this.currentChatComponent);\n/* */ } \n/* 171 */ this.currentChatComponent.addSibling((IChatBaseComponent)iChatMutableComponent);\n/* */ }", "void addNode()\n {\n Node newNode = new Node(this.numNodes);\n this.nodeList.add(newNode);\n this.numNodes = this.numNodes + 1;\n }", "@Override\n public void insertAtAnyPosition(T value, int index) {\n Node<T> new_node = new Node<>(value);\n if(index < 0)\n throw new IndexOutOfBoundsException();\n else if(index == 0){\n new_node.next = start;\n start = new_node;\n }else{\n Node<T> previous = start;\n for(int i =0;i<index-1;i++)\n {\n previous = previous.next;\n }\n Node<T> curr = previous.next;\n new_node.next = curr;\n previous.next = new_node;\n }\n\n }", "public void insert(E data, int index) {\r\n\t\tcheckIndex(index);\r\n\t\t\r\n\t\t// If add the index is the tail of the LinkList, call add(data)\r\n\t\tif(index == size) {\r\n\t\t\tadd(data);\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\tNode<E> newNode = new Node<E>(data, null);\r\n\t\t\r\n\t\t// Get the (index-1)th node\r\n\t\tNode<E> beforeNode = findNode(index);\r\n\t\tnewNode.link = beforeNode.link;\r\n\t\tbeforeNode.link = newNode;\r\n\t\tsize++;\r\n\t\t}\r\n\t}", "public void addAtIndex(int index, T data) {\n if (data == null) {\n throw new IllegalArgumentException(\"You can't insert null \"\n + \"data in the structure.\");\n }\n if (index < 0 || index > size) {\n throw new IndexOutOfBoundsException(\"The data you are trying \"\n + \"to access is null\");\n }\n DoublyLinkedListNode<T> newnode = new DoublyLinkedListNode<T>(data);\n if (size == 0) {\n head = newnode;\n tail = head;\n size += 1;\n } else if (index == 0) {\n addToFront(data);\n } else if (size == index) {\n addToBack(data);\n } else {\n DoublyLinkedListNode<T> pointer = head;\n for (int i = 0; i < index - 1; i++) {\n pointer = pointer.getNext();\n }\n newnode.setNext(pointer.getNext());\n newnode.getNext().setPrevious(newnode);\n pointer.setNext(newnode);\n newnode.setPrevious(pointer);\n size += 1;\n }\n\n\n\n }", "public void addNode() {\n if (nodeCount + 1 > xs.length)\n resize();\n nodeCount++;\n }", "public final void add(final int index, final TokenStatement element) {\r\n\t\tif (index > this.size || index < 0) {\r\n\t\t\tthrow new IndexOutOfBoundsException( \"Index: \" + index + \", Size: \" + this.size );\r\n\t\t}\r\n\t\tthis.ensureCapacity( this.size + 1 ); // Increments modCount!!\r\n\t\tSystem.arraycopy( this.elementData, index, this.elementData, index + 1, this.size - index );\r\n\t\tthis.elementData[index] = element;\r\n\t\tthis.size++;\r\n\t}", "void addProperty(String index, Object value) {\n if (getProperty(index) == null) {\n properties.addProperty(index, value);\n }\n }", "public void add(int index, E data) {\n if (index == 0) {\n DoublyLinkedNode<E> newNode = new DoublyLinkedNode<E>(data);\n newNode.addAfter(head);\n size++;\n }\n else if (index == size) {\n DoublyLinkedNode<E> newNode = new DoublyLinkedNode<E>(data);\n newNode.addAfter(tail.getPrevious());\n size++;\n }\n else if (index > 0 && index < size) {\n DoublyLinkedNode<E> newNode = new DoublyLinkedNode<E>(data);\n newNode.addAfter(this.getNodeAt(index).getPrevious());\n size++;\n }\n else {\n throw new IndexOutOfBoundsException();\n }\n }", "public void addChild(WSLNode node) {children.addElement(node);}", "public void add(int index, GPoint point) {\n\t\tpoints.add(index, new GPoint(point));\n\t}", "@Override\r\n public void add(int index, E element) {\r\n if (index < 0 || index > size) {\r\n throw new IndexOutOfBoundsException();\r\n\r\n }\r\n for (int i = 0; i < size; i++) {\r\n if (get(i).equals(element)) {\r\n throw new IllegalArgumentException();\r\n }\r\n }\r\n\r\n LinkedListIterator it = new LinkedListIterator(index);\r\n it.add(element);\r\n\r\n }", "public void addAfter(E val, int idx) throws IndexOutOfBoundsException {\n addNodeAfter(new SinglyLinkedList.Node<>(val), idx);\n }", "public void add(int index, E e) {\n resize();\n for(int i = size-1; i >= index; i--) {\n list[i+1] = list[i];\n }\n list[index] = e;\n size++;\n }", "private static void addChildAt(\n ReactShadowNode parentNode,\n ReactShadowNode childNode,\n int index,\n int prevIndex) {\n if (index <= prevIndex) {\n throw new RuntimeException(\n \"Invariant failure, needs sorting! \" + index + \" <= \" + prevIndex);\n }\n\n parentNode.addChildAt(childNode, index);\n }" ]
[ "0.660744", "0.6424186", "0.63918185", "0.6378982", "0.6251761", "0.6251205", "0.62511694", "0.6244947", "0.62029004", "0.6177209", "0.61746526", "0.61565715", "0.6134176", "0.6134164", "0.60837114", "0.6064153", "0.6061394", "0.6049511", "0.60352015", "0.6012982", "0.6009534", "0.6008578", "0.59928584", "0.59901613", "0.59278446", "0.59182745", "0.5890334", "0.5874628", "0.58530354", "0.58530354", "0.5842668", "0.5840166", "0.5804041", "0.5792993", "0.5791133", "0.579064", "0.577211", "0.57656044", "0.5748116", "0.574726", "0.5736136", "0.57250863", "0.5711494", "0.57028985", "0.57009494", "0.56869316", "0.5659778", "0.56576455", "0.56537586", "0.5652608", "0.5649223", "0.56469333", "0.5642411", "0.5629042", "0.5622074", "0.56111974", "0.55985045", "0.5590384", "0.5583414", "0.5558121", "0.55451405", "0.55423206", "0.5530987", "0.5527422", "0.5524602", "0.55018026", "0.5487704", "0.54646975", "0.5456669", "0.5449492", "0.5435467", "0.5435095", "0.5423413", "0.5411936", "0.5390793", "0.53758043", "0.5374869", "0.53589976", "0.5353359", "0.5351411", "0.53406477", "0.53234947", "0.52969784", "0.5281687", "0.528013", "0.5276003", "0.52751464", "0.52726793", "0.52694935", "0.5267064", "0.5265331", "0.5261526", "0.52391124", "0.5233802", "0.5233263", "0.52262634", "0.52254546", "0.5212704", "0.5209346", "0.5202508" ]
0.7187736
0
JS handling Append some JavaScript code
@Nonnull public final HCHead addJS (@Nonnull final IHCNode aJS) { ValueEnforcer.notNull (aJS, "JS"); if (!HCJSNodeDetector.isJSNode (aJS)) throw new IllegalArgumentException (aJS + " is not a valid JS node!"); m_aJS.add (aJS); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JavaScript append(String javaScriptPartToAppend) {\n return js(javaScript + javaScriptPartToAppend);\n }", "public static void Javascript() {\n\n\t}", "private void addJS(String jsLocation) {\n Script ajaxScript = new Script(\"\");\n ajaxScript.attribute(\"src\", jsLocation);\n ajaxScript.attribute(\"type\", \"text/javascript\");\n page.addHeader(ajaxScript);\n }", "private String getJGrowlAfterOpenJavaScript() {\n StringBuilder javaScript = new StringBuilder();\n javaScript.append(\"function(e,m,o) {\");\n javaScript.append(\"var link = e.find('a');\");\n javaScript.append(\"if (link.size() > 0) {\");\n// javaScript.append(\"window.open(link.attr('href'), '_blank');\");\n javaScript.append(\"link[0].click();\");\n javaScript.append(\"}\");\n javaScript.append(\"}\");\n\n return javaScript.toString();\n }", "public JavaScript join(JavaScript javaScriptToJoin) {\n return js(this.javaScript + '\\n' + javaScriptToJoin.javaScript);\n }", "Container moreJavaScript(){\n\n Container con = new Container();\n con.addItem(\"/*****************************************************************/\\n\");\n con.addItem(\"function writeIt(the_long,the_lat,the_table)\\n\" +\n \"{\\n\" +\n \" var new_long = the_long - 0;\\n\" +\n \" var new_lat = the_lat - 0;\\n\" +\n \" var new_table = the_table - 0;\\n\" +\n \" var word_long_return = new_long + new_table;\\n\" +\n \" window.document.myForm.plongitudeeast.value = word_long_return;\\n\" +\n \" var word_lat_return = new_lat + new_table;\\n\" +\n \" window.document.myForm.platitudesouth.value = word_lat_return;\\n\" +\n \"}\\n\");\n con.addItem(\"function updatePTable(what)\\n\" +\n \"{\\n\" +\n \" var n = what.selectedIndex;\\n\" +\n \" /* window.alert(\\\"n = \\\" + n); */\\n\" +\n \" what.form.ptable.value = what.form.ptablesize.options[n].value;\\n\" +\n \"}\\n\");\n con.addItem(\"/*****************************************************************/\\n\");\n\n con.addItem(\"var menu = new Array (\\n\");\n for (int i = 0; i < sc.MAX1; i++) {\n con.addItem(\"\\\"\" + (i+1) + \"|\" + (i+1) + \"|\" + trueFalse[i] + \"*\");\n for (int j = 0; j < sc.MAX2; j ++) {\n if (sc.BSIZE[i][j] != 0) {\n String quote = \"\\\"\";\n if (j == 0) quote = \"\";\n String truef = \"\";\n if (j == 5) truef = \"|true\";\n String plus = \"+\";\n if (sc.MINSQ[i][j] == 20) plus = \",\";\n if ((i == (sc.MAX1-1)) && (sc.MINSQ[i][j] == 20)) plus = \")\";\n con.addItem(quote + i + \"-\" + j + \"|\" + sc.BSIZE[i][j] + \"(\" +\n sc.MINSQ[i][j] + \"x\" + sc.MINSQ[i][j] + \")\" +\n truef + \"#\\\"\" + plus + \"\\n\");\n } // if (sc.BSIZE[i][j] != 0)\n } // for (int j = 0; j < MAX2; j ++)\n } // for (int i = 0; i < MAX1; i++)\n\n return con;\n\n }", "private void addJQueryJS() {\n addJS(\"http://code.jquery.com/jquery-1.9.1.js\");\n addJS(\"http://code.jquery.com/ui/1.10.3/jquery-ui.js\");\n addJS(\"js/auDetails-new.js\");\n }", "public static void writeJavaScript(final Response response, final CharSequence text)\n\t{\n\t\tAttributeMap attributes = new AttributeMap();\n\t\tattributes.putAttribute(ATTR_TYPE, \"text/javascript\");\n\t\twriteInlineScript(response, text, attributes);\n\t}", "private void m48553b(String str) {\n WebView webView = (WebView) this.f34939a.get();\n if (webView != null) {\n StringBuffer stringBuffer = new StringBuffer(XDLJsInterface.JAVASCRIPT_PREFIX);\n stringBuffer.append(\"if(!!\");\n stringBuffer.append(this.f35123d);\n stringBuffer.append(\"){\");\n stringBuffer.append(this.f35123d);\n stringBuffer.append(\"(\");\n stringBuffer.append(str);\n stringBuffer.append(\")}\");\n String stringBuffer2 = stringBuffer.toString();\n SLog.m48368v(\"openSDK_LOG.SecureJsListener\", \"-->callback, callback: \" + stringBuffer2);\n webView.loadUrl(stringBuffer2);\n }\n }", "public JavaScript(String javaScript) {\n this.javaScript = javaScript;\n }", "public void widget(AjaxRequestTarget ajaxRequestTarget)\n\t{\n\t\tajaxRequestTarget.appendJavaScript(this.widget().render().toString());\n\t}", "private String getHtmlWithInjectedAttributes(String html) {\n StringBuilder jsAttributes = new StringBuilder();\n jsAttributes.append(getHtmlAttr(OPTION_ASYNC, async));\n jsAttributes.append(getHtmlAttr(OPTION_DEFER, defer));\n jsAttributes.append(getHtmlAttr(OPTION_CROSSORIGIN, crossorigin));\n jsAttributes.append(getHtmlAttr(OPTION_ONLOAD, onload));\n StringBuilder cssAttributes = new StringBuilder();\n cssAttributes.append(getHtmlAttr(OPTION_MEDIA, media));\n String updatedHtml = StringUtils.replace(html,\"<script \", \"<script \" + jsAttributes.toString());\n return StringUtils.replace(updatedHtml,\"<link \", \"<link \" + cssAttributes.toString());\n }", "private native void eval(String script) /*-{\n \t try {\n \t eval(\"{ var document = $doc; var window = $wnd; \"+ script + \"}\");\n \t } catch (e) {\n \t }\n \t }-*/;", "@Override\n public void writeClientLibJsFile(Node clientLibNode, String jsData, String componentUUID) {\n ClientLibraryUtil.addJavaScriptToClientLibrary(\n clientLibNode,\n componentUUID + JAVASCRIPT_SUFFIX,\n jsData,\n true,\n true\n );\n }", "@Override\n\tpublic void handleJs(JavaScriptObject message) {\n\t\t\n\t}", "public static native ExtElement append(ExtElement parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\[email protected]::getJsObj()(),\r\n\t\t\t\trawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "private static native void eval(String script)\n /*-{\n try {\n \t if (script != null) \n eval(\"{ var document = $doc; var window = $wnd; \"+ script + \"}\");\n } catch (e) {\n }\n }-*/;", "public native void appendData(String arg) /*-{\r\n\t\tvar jso = [email protected]::getJsObj()();\r\n\t\tjso.appendData(arg);\r\n }-*/;", "void setJs(final String js) {\n this.js = js;\n }", "public void toJs(StringBuilder js, PageGeneratorContext pageContext) {\n\t\tif (this.isDefaultButton) {\n\t\t\tjs.append(\"// this is the default button\\nP2.defaultButtonName = '\"\n\t\t\t\t\t+ this.name + \"';\\n\");\n\t\t}\n\t}", "public void handleScript(HtmlObjects.Script t)\n {\n }", "public static String getJS_AddNodeToDOM(String sParentID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + getTempUniqueNode() + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "public void executeScript(String js) {\n try {\n this.webView.getEngine().executeScript(js);\n } catch (RuntimeException ex) {\n ex.printStackTrace();\n if (!this.pdfJsLoaded) this.toExecuteWhenPDFJSLoaded += String.format(\"%s;\", js);\n }\n }", "private void generateJavaScriptCode(JavaToJavaScriptMap jjsMap,\n\t\t\tString[] jsFragments, StatementRanges[] ranges,\n\t\t\tSizeBreakdown[] sizeBreakdowns, List<JsSourceMap> sourceInfoMaps,\n\t\t\tboolean sourceMapsEnabled) {\n\t\tEvent generateJavascriptEvent = SpeedTracerLogger\n\t\t\t\t.start(CompilerEventType.GENERATE_JAVASCRIPT);\n\t\tfor (int i = 0; i < jsFragments.length; i++) {\n\t\t\tDefaultTextOutput out = new DefaultTextOutput(\n\t\t\t\t\t!options.isIncrementalCompileEnabled()\n\t\t\t\t\t\t\t&& options.getOutput().shouldMinimize());\n\t\t\tJsReportGenerationVisitor v = new JsReportGenerationVisitor(out,\n\t\t\t\t\tjjsMap, options.isJsonSoycEnabled());\n\t\t\tv.accept(jsProgram.getFragmentBlock(i));\n\t\t\tStatementRanges statementRanges = v.getStatementRanges();\n\t\t\tString code = out.toString();\n\t\t\tJsSourceMap infoMap = (sourceInfoMaps != null)\n\t\t\t\t\t? v.getSourceInfoMap()\n\t\t\t\t\t: null;\n\t\t\tJsAbstractTextTransformer transformer = new JsNoopTransformer(code,\n\t\t\t\t\tstatementRanges, infoMap);\n\t\t\t/**\n\t\t\t * Cut generated JS up on class boundaries and re-link the source\n\t\t\t * (possibly making use of source from previous compiles, thus\n\t\t\t * making it possible to perform partial recompiles).\n\t\t\t */\n\t\t\tif (options.isIncrementalCompileEnabled()) {\n\t\t\t\ttransformer = new JsTypeLinker(logger, transformer,\n\t\t\t\t\t\tv.getClassRanges(), v.getProgramClassRange(),\n\t\t\t\t\t\tgetMinimalRebuildCache(), jprogram.typeOracle);\n\t\t\t\ttransformer.exec();\n\t\t\t}\n\t\t\t/**\n\t\t\t * Reorder function decls to improve compression ratios. Also\n\t\t\t * restructures the top level blocks into sub-blocks if they exceed\n\t\t\t * 32767 statements.\n\t\t\t */\n\t\t\tEvent functionClusterEvent = SpeedTracerLogger\n\t\t\t\t\t.start(CompilerEventType.FUNCTION_CLUSTER);\n\t\t\t// TODO(cromwellian) move to the Js AST optimization, re-enable\n\t\t\t// sourcemaps + clustering\n\t\t\tif (!sourceMapsEnabled && !options.isClosureCompilerFormatEnabled()\n\t\t\t\t\t&& options.shouldClusterSimilarFunctions()\n\t\t\t\t\t&& options.getNamespace() == JsNamespaceOption.NONE\n\t\t\t\t\t&& options.getOutput() == JsOutputOption.OBFUSCATED) {\n\t\t\t\ttransformer = new JsFunctionClusterer(transformer);\n\t\t\t\ttransformer.exec();\n\t\t\t}\n\t\t\tfunctionClusterEvent.end();\n\t\t\tjsFragments[i] = transformer.getJs();\n\t\t\tranges[i] = transformer.getStatementRanges();\n\t\t\tif (sizeBreakdowns != null) {\n\t\t\t\tsizeBreakdowns[i] = v.getSizeBreakdown();\n\t\t\t}\n\t\t\tif (sourceInfoMaps != null) {\n\t\t\t\tsourceInfoMaps.add(transformer.getSourceInfoMap());\n\t\t\t}\n\t\t}\n\t\tgenerateJavascriptEvent.end();\n\t}", "protected String event2JavaScript(Event event) throws IOException {\n\n\t\t// Convert the event to a comma-separated string.\n\t\tString jsArgs = \"\";\n\t\tfor (Iterator iter = event.getFieldNames(); iter.hasNext();) {\n\t\t\tString name = (String) iter.next();\n\t\t\tString value = event.getField(name);\n\t\t\tString nextArgument = (jsArgs.equals(\"\") ? \"\" : \",\") + \"'\" + name + \"'\" + \", \\\"\" + value + \"\\\"\";\n\t\t\tjsArgs += nextArgument;\n\t\t}\n\n\t\t// Construct and return the function call */\n\t\treturn \"<script language=\\\"JavaScript\\\">parent.push(\" + jsArgs + \");</script>\";\n\t}", "private String filterScriptMarkup(HttpServletRequest request, HttpServletResponse response, CMAbstractCode code) {\n //construct xmlFilters to strip RichText from <div> and <p> tags\n Markup unfilteredCode = code.getCode();\n List<XMLFilter> filters = new ArrayList<>();\n filters.addAll(xmlFilterFactory.createFilters(request, response, unfilteredCode, \"script\"));\n filters.add(new ScriptFilter());\n\n //strip <div> and <p> from markup\n StringWriter writer = new StringWriter();\n ScriptSerializer handler = new ScriptSerializer(writer);\n unfilteredCode.writeOn(filters, handler);\n return writer.getBuffer().toString();\n }", "public static native ExtElement append(Element parent, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "void toJavaScript(StringBuilder js, PageGeneratorContext pageContext) {\n\t\tjs.append(\"\\n/***** action field = \").append(this.name)\n\t\t\t\t.append(\" ********/\\n\");\n\t\tjs.append(Page.JS_VAR_NAME)\n\t\t\t\t.append(\" = new PM.\")\n\t\t\t\t.append(this\n\t\t\t\t\t\t.getClass()\n\t\t\t\t\t\t.getName()\n\t\t\t\t\t\t.substring(\n\t\t\t\t\t\t\t\tthis.getClass().getName().lastIndexOf('.') + 1))\n\t\t\t\t.append(\"();\");\n\t\tpageContext.setAttributes(this, js,\n\t\t\t\tAbstractAction.ACTION_ATTRIBUTE_NAMES);\n\t\tpageContext.setTableSensitiveAttributes(this, js,\n\t\t\t\tAbstractAction.ALL_TABLE_SENSITIVE_ATTRIBUTES);\n\t\tpageContext.setTableSensitiveArrays(this, js,\n\t\t\t\tAbstractAction.ALL_TABLE_SENSITIVE_ARRAYS);\n\t\tjs.append('\\n').append(\"P2.addAction(\").append(Page.JS_VAR_NAME)\n\t\t\t\t.append(\");\");\n\t}", "private void renderScript(Tag headTag, String context, String dojoPath) {\n Tag scriptTag = headTag.addChild(new CompositeTag(HtmlElement.SCRIPT));\n scriptTag.addAttribute(\"type\", \"text/javascript\");\n scriptTag.addAttribute(\"src\", context + dojoPath + \"/dojo/dojo.js\");\n scriptTag.addAttribute(\"djConfig\", config);\n }", "@Override\r\n\tpublic String execute(String script) {\n\t\treturn script+\"sb\";\r\n\t}", "public void addScripture(Scripture toAdd) {\n scriptures.add(toAdd);\n }", "public void loadJavaScript(String javascript) {\n if (TextUtils.isEmpty(javascript)) {\n return;\n }\n\n if (Build.VERSION.SDK_INT >= 19) { //Build.VERSION_CODES.KITKAT\n String newJS = clipJacaScriptUrlString(javascript);\n if (!newJS.startsWith(\"javascript:\")) {\n try{\n super.evaluateJavascript(newJS, null);\n }catch (Exception | Error e){\n super.loadUrl(javascript);\n e.printStackTrace();\n }\n } else {\n super.loadUrl(javascript);\n }\n } else {\n super.loadUrl(javascript);\n }\n }", "private static native void eval(String script)\n /*-{\n try {\n if (script == null) return;\n $wnd.eval(script);\n } catch (e) {\n }\n }-*/;", "public void jsContructor() {\n }", "public void readJSCodeToString() {\n String currProjPath = System.getProperty(\"user.dir\");\n String JSDirPath = \"/src/main/js\";\n this.excludeTagsJS = UtilsFile.readFileToString(currProjPath + JSDirPath + \"/ExcludeTags.js\");\n this.getClickElementOfDOMJS = UtilsFile.readFileToString(currProjPath + JSDirPath + \"/GetClickElementOfDOM.js\");\n this.getElementXPathJS = UtilsFile.readFileToString(currProjPath + JSDirPath + \"/GetElementXPath.js\");\n this.getHiddenElementOfDOMJS = UtilsFile.readFileToString(currProjPath + JSDirPath + \"/GetHiddenElementsOfDOM.js\");\n this.isDisPlayedJS = UtilsFile.readFileToString(currProjPath + JSDirPath + \"/IsDisplayed.js\");\n }", "private String js() throws IOException {\n String outputLine;\n File path = new File(\"src/main/resources/app.js\");\n FileReader fileReader = new FileReader(path);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n outputLine = \"HTTP/1.1 200 OK\\r\\n\"\n + \"Content-Type: text/javascript \\r\\n\"\n + \"\\r\\n\";\n String inputLine;\n while ((inputLine=bufferedReader.readLine()) != null){\n outputLine += inputLine + \"\\n\";\n }\n return outputLine;\n }", "private void addJsMessages() {\r\n MessageManager.getInstance().addJsMessage(\"pm.processErp.deleteBatch.noBatchNo.error\");\r\n MessageManager.getInstance().addJsMessage(\"pm.processErp.deleteBatch.confirmation\");\r\n MessageManager.getInstance().addJsMessage(\"pm.processErp.saveErp.comments.too.long.error\"); \r\n MessageManager.getInstance().addJsMessage(\"pm.processErp.noErpDataFound.information\");\r\n }", "void writeJavaScriptRenderer(PrintStream writer);", "ScriptEvaluator createScriptEvaluator();", "CodeBlock createCodeBlock();", "public void addToCode(String code){\r\n\t\tiCode+=getTabs()+code+\"\\n\";\r\n\t}", "public int doStartTag() throws JspException {\n try {\n JspWriter pw = pageContext.getOut();\n if (mode.equals(\"javascript\"))\n pw.println(\"<script language=\\\"JavaScript\\\">\");\n\n if (isExpression)\n pw.println(\" document.getElementById(\\\"message_\" + name +\n \"\\\").innerHTML=\" + message + \";\");\n else\n pw.println(\" document.getElementById(\\\"message_\" + name +\n \"\\\").innerHTML='\" + message + \"';\");\n\n if (mode.equals(\"javascript\"))\n pw.println(\"</script>\");\n }\n catch (Exception ex) {\n JspTagException jte =\n new JspTagException(\"Error handling clear progress monitor tag\");\n jte.initCause(ex);\n throw jte;\n }\n return SKIP_BODY;\n }", "public abstract void appendBlock();", "@Override\n\t\t public void onPageFinished(WebView view, String url) {\n\t\t webView.loadUrl(\"javascript:HTMLOUT.processHTML(document.documentElement.outerHTML);\");\n\t\t }", "@Override\n\tpublic void appendToResponse( WOResponse response, WOContext context ) {\n\t\tAjaxUtils.addScriptResourceInHead( context, response, \"prototype.js\" );\n\t\tAjaxUtils.addScriptResourceInHead( context, response, \"effects.js\" );\n\t\tsuper.appendToResponse( response, context );\n\t}", "protected void doScript(Set<String> scripts, JspWriter out, HttpServletRequest request, HttpServletResponse response, String location) throws IOException {\n\t\tif( scripts.contains(location)){\n\t\t\treturn;\n\t\t}\n\t\tscripts.add(location);\n\t\tif( location.startsWith(\"/\")){\n\t\t\t// script file\n\t\t\tout.print(\"<script type=\\\"text/javascript\\\" charset=\\\"utf8\\\" src=\\\"\");\n\t\t\tif( location.startsWith(\"//\")){\n\t\t\t\t// remote script file\n\t\t\t\tout.print(location);\n\t\t\t}else {\n\t\t\t\t// local script file\n\t\t\t\t// no sessionid needed\n\t\t\t\tout.print(request.getContextPath()+location);\t\t\n\t\t\t}\n\t\t\tout.println(\"\\\"></script>\");\n\t\t}else{\n\t\t\t// in-line script\n\t\t\tout.print(\"<script type=\\\"text/javascript\\\" charset=\\\"utf8\\\" >\");\n\t\t\tout.print(location);\n\t\t\tout.println(\"</script>\");\n\t\t}\n\t}", "public static native ExtElement append(String parentId, String rawHtml)/*-{\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parentId, rawHtml, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "boolean hasJs();", "public native void compile() /*-{\r\n\t\tvar template = [email protected]::getJsObj()();\r\n\t\ttemplate.compile();\r\n\t}-*/;", "void heading(JavaScriptObject source, JavaScriptObject error, JavaScriptObject code, JavaScriptObject type, JavaScriptObject success, JavaScriptObject heading);", "public static String toJSString(String inText)\n {\n //String text = HTMLDocument.simpleConvert(inText);\n // TODO: check if we need HTML conversion here and if this could be moved\n // to util or something\n return \"'\" + escapeJS(inText) + \"'\";\n }", "public static void addScript(AppContext conn,HttpServletRequest request, String script){\n\t\tif( script == null || script.trim().isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\tSet<String> scripts = (Set<String>) request.getAttribute(REQUEST_SCRIPT_ATTR);\n\t\tif( scripts == null ){\n\t\t\tscripts=new LinkedHashSet<>();\n\t\t\trequest.setAttribute(REQUEST_SCRIPT_ATTR, scripts);\n\t\t}\n\t\tscripts.add(conn.expandText(script));\n\t}", "public static JavaScript js(String javaScript) {\n return js(javaScript);\n }", "@NotNull\n\tpublic StringBuilder renderAngularJavascript(Page<?> page)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tAngularFeature af = new AngularFeature(page);\n\t\taf.configureTemplateVariables();\n\t\tsb.append(FileTemplates.renderTemplateScripts(\"jwangular\"));\n\t\tAngularPageConfigurator.log.finest(\"Rendering the angular script\");\n\t\treturn sb;\n\t}", "public static void writeScript(final Response response, AttributeMap attributes)\n\t{\n\t\tresponse.write(\"<script\");\n\t\tresponse.write(attributes.toCharSequence());\n\t\tresponse.write(\"></script>\");\n\t\tresponse.write(\"\\n\");\n\t}", "public String evaluate(final String jsExpression);", "public static String escapeJS(String inText)\n {\n return inText\n .replaceAll(\"(?<!\\\\\\\\)'\", \"\\\\\\\\'\")\n .replaceAll(\"(?<!\\\\\\\\)\\\"\", \"\\\\\\\\\\\"\")\n .replaceAll(\"\\n\", \"\\\\\\\\n\");\n }", "public static void writeInlineScript(final Response response, final CharSequence text, AttributeMap attributes)\n\t{\n\t\twriteOpenTag(response, attributes);\n\t\tresponse.write(Strings.replaceAll(text, \"</\", \"<\\\\/\"));\n\t\twriteCloseTag(response);\n\t}", "protected void writeAjaxPageScriptWidgetset(RenderRequest request,\n RenderResponse response, final BufferedWriter writer)\n throws IOException {\n String requestWidgetset = getApplicationOrSystemProperty(\n PARAMETER_WIDGETSET, null);\n String sharedWidgetset = getPortalProperty(\n PORTAL_PARAMETER_VAADIN_WIDGETSET, request.getPortalContext());\n \n String widgetset;\n if (requestWidgetset != null) {\n widgetset = requestWidgetset;\n } else if (sharedWidgetset != null) {\n widgetset = sharedWidgetset;\n } else {\n widgetset = DEFAULT_WIDGETSET;\n }\n String widgetsetURL = getWidgetsetURL(widgetset, request);\n writer.write(\"document.write('<iframe tabIndex=\\\"-1\\\" id=\\\"__gwt_historyFrame\\\" \"\n + \"style=\\\"position:absolute;width:0;height:0;border:0;overflow:\"\n + \"hidden;opacity:0;top:-100px;left:-100px;\\\" src=\\\"javascript:false\\\"></iframe>');\\n\");\n writer.write(\"document.write(\\\"<script language='javascript' src='\"\n + widgetsetURL + \"'><\\\\/script>\\\");\\n}\\n\");\n }", "public String getAsString() {\n return javaScript;\n }", "public void loadJavaScript(String javascript, final ValueCallback<String> resultCallback) {\n if (TextUtils.isEmpty(javascript)) {\n return;\n }\n\n if(Build.VERSION.SDK_INT >= 19) { //Build.VERSION_CODES.KITKAT\n String newJS = clipJacaScriptUrlString(javascript);\n if (!newJS.startsWith(\"javascript:\")) {\n try{\n super.evaluateJavascript(newJS, resultCallback);\n }catch (Exception | Error e){\n super.loadUrl(javascript);\n e.printStackTrace();\n }\n } else {\n super.loadUrl(javascript);\n }\n } else {\n super.loadUrl(javascript);\n }\n }", "public static void addNodeToDOM(WebElement element)\n\t{\n\t\tString sResult = addNodeToDOM(element, sTempUniqueNode);\n\t\tif (!sResult.equals(\"\"))\n\t\t{\n\t\t\tString sError = \"Javascript execution failed with following message: \" + sResult;\n\t\t\tLogs.logError(new JavaScriptException(sError));\n\t\t}\n\t}", "public static native ExtElement append(Element parent, DomConfig config)/*-{\r\n\t\tvar configJS = [email protected]::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(parent, configJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "public IAjaxCallDecorator getSaveDecorator() {\n return new AjaxCallDecorator() {\n @Override\n public CharSequence decorateScript(CharSequence script) {\n // textarea.value = codemirrorinstance.getCode()\n String id = getTextAreaMarkupId();\n return \"document.getElementById('\" + id + \"').value = document.gsEditors.\" + id + \".getValue();\" + script;\n }\n };\n }", "public String buildJS() {\n if (className == null || instanceName == null) {\n // The query is only \"select `JS_expression`\" - in that case, just eval it\n return \"{ visitor = wrapVisitor(visitor); let result = \"+selectExpression+\"; let isIterable = result != null && typeof result[Symbol.iterator] === 'function'; if (isIterable) { for (r in result) { if (visitor.visit(result[r])) { break }; }} else { visitor.visit(result); } }\";\n } else {\n // The query is \"select `JS_expression` from `class_name` `identifier`\n // visitor is\n String selectFunction = \"function __select__(\"+instanceName+\") { return \"+selectExpression+\" };\";\n String iteratorConstruction = \"let iterator = heap.objects('\"+className+\"', \"+isInstanceOf+\");\";\n String whereFunction;\n String resultsIterator;\n if (whereExpression == null) {\n whereFunction = \"\";\n resultsIterator = \"while (iterator.hasNext()) { let item = iterator.next(); if (visitor.visit(__select__(item))) { break; }; };\";\n } else {\n whereFunction = \"function __where__(\"+instanceName+\") { return \"+whereExpression+\" };\";\n resultsIterator = \"while (iterator.hasNext()) { let item = iterator.next(); if(__where__(item)) { if (visitor.visit(__select__(item))) { break; } } };\";\n }\n return \"{ visitor = wrapVisitor(visitor); \" + selectFunction + whereFunction + iteratorConstruction + resultsIterator + \"}\";\n }\n }", "public Script addInlineScript(final String scriptName, final String content)\n\t{\n\t\tfinal Script script = new Script();\n\t\tscript.setScriptContent(content);\n\t\tscript.setScriptDetails(new ScriptDetails(true, false, null));\n\t\t\t\t\n\t\tcreateScript(script, scriptName);\n\t\t\n\t\tlogger.debug(\"Adding in-line script {}\", scriptName);\n\n\t\tscripts.put(scriptName, script);\n\t\t\n\t\treturn script;\n\t}", "protected void onLoad() {\n \t\tsuper.onLoad();\n \t\teval(scripts);\n \t}", "public void pasteCode(String code) {\n engine.executeScript(\"editor.setValue(\\\"\" + escapeNewLines(code)+ \"\\\");\");\n }", "public ScriptWriter(UIComponent parent, final String javascriptContents, String optionalId) {\n this.parent = parent; \n this.setTransient(true);\n this.javascriptContents = javascriptContents;\n if (optionalId != null) {\n this.setId(optionalId);\n }\n }", "@Override\r\n\tpublic DTextArea setHtmlOnEnded(final String script) {\r\n\t\tsuper.setHtmlOnEnded(script) ;\r\n\t\treturn this ;\r\n\t}", "private String clipJacaScriptUrlString (String javascript) {\n String newJavaScriptStrin = javascript;\n\n if (!TextUtils.isEmpty(javascript)) {\n int javaScriptStringIndex = javascript.indexOf(\":\");\n if (javaScriptStringIndex > 0) {\n try {\n int clipIndex = javaScriptStringIndex + 1;\n if (clipIndex > 0 && clipIndex <= javascript.length()) {\n newJavaScriptStrin = javascript.substring(clipIndex, javascript.length());\n }\n } catch (StringIndexOutOfBoundsException e) {\n e.printStackTrace();\n }\n }\n }\n\n return newJavaScriptStrin;\n }", "@Nonnull\n public final HCHead addJSAt (@Nonnegative final int nIndex, @Nonnull final IHCNode aJS)\n {\n ValueEnforcer.notNull (aJS, \"JS\");\n if (!HCJSNodeDetector.isJSNode (aJS))\n throw new IllegalArgumentException (aJS + \" is not a valid JS node!\");\n m_aJS.add (nIndex, aJS);\n return this;\n }", "public void base() {\n APIlib.getInstance().addJSLine(jsBase + \".base();\");\n }", "public static native ExtElement append(ExtElement parent, DomConfig config)/*-{\r\n\t\tvar configJS = [email protected]::getJsObject()();\r\n\t\tvar obj = $wnd.Ext.DomHelper.append(\r\n\t\t\t\[email protected]::getJsObj()(),\r\n\t\t\t\tconfigJS, true);\r\n\t\treturn @com.ait.toolkit.sencha.shared.client.dom.ExtElement::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\r\n\t}-*/;", "gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak addNewCodeBreak();", "protected String getNoScriptMessage() {\n return \"You have to enable javascript in your browser to use an application built with Vaadin.\";\n }", "@Override\n protected boolean isRenderScriptEnable() {\n return true;\n }", "Script createScript();", "private String addEnd() {\n\t\t// NO PARAMETERS\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|End\");\n\t\treturn tag.toString();\n\t}", "public String build() {\n StringBuilder scriptBuilder = new StringBuilder();\n StringBuilder scriptBody = new StringBuilder();\n String importStmt = \"import \";\n \n try {\n if (scriptCode.contains(importStmt)) {\n BufferedReader reader = new BufferedReader(new StringReader(scriptCode));\n String line;\n while ((line = reader.readLine()) != null) {\n if (line.trim().startsWith(importStmt)) {\n scriptBuilder.append(line);\n scriptBuilder.append(\"\\n\");\n } else {\n scriptBody.append((scriptBody.length() == 0 ? \"\" : \"\\n\"));\n scriptBody.append(line);\n }\n }\n } else {\n scriptBody.append(scriptCode);\n }\n } catch (IOException e) {\n throw new CitrusRuntimeException(\"Failed to construct script from template\", e);\n }\n \n scriptBuilder.append(scriptHead);\n scriptBuilder.append(scriptBody.toString());\n scriptBuilder.append(scriptTail);\n \n return scriptBuilder.toString();\n }", "@Override\n public Optional<String> getJSCompiledWithAuthoredData(final String jsTemplate, final ValueMap componentData,\n final String componentUUID) throws DynamicClientLibException {\n try {\n String hbarWithAuthoredData = HandlebarsUtil.transpileHbarWithAuthoredData(jsTemplate, componentData, componentUUID);\n LOGGER.debug(\"hbarWithAuthoredData :: {}\" , hbarWithAuthoredData);\n Handlebars handlebars = new Handlebars();\n handlebars.registerHelperMissing((context, options) -> options.fn.text());\n Template template = handlebars.compileInline(hbarWithAuthoredData);\n String toJavaScriptStr = HandlebarsUtil.getJSFromHbarTemplate(template);\n LOGGER.debug(\"hbarWithAuthoredData :: {}\" , toJavaScriptStr);\n return Optional.of(HandlebarsUtil.buildCompiledHbarIife(componentUUID, toJavaScriptStr));\n }catch (TemplateException | HandlebarsException | IOException e){\n LOGGER.error(\"Freemarker Template Exception or IOException in getJSCompiledWithAuthoredData.\");\n throw new DynamicClientLibException(\"Freemarker Template Exception or IOException in getJSCompiledWithAuthoredData.\", e);\n }\n }", "public void append(DataModel dataModel, SQLScript script, UserInformation userInfos, DBExecMode dbmode) {\r\n\t\tfor (String s : this.create(dataModel, userInfos, dbmode)) {\r\n\t\t\tscript.addExtendingStatement(s);\r\n\t\t}\r\n\t}", "@Override\n protected void afterActivityLaunched() {\n onWebView().forceJavascriptEnabled();\n }", "@AfterRender\n\tpublic void afterRender() {\n\t\trenderSupport.addScript(String.format(\"new Tabber('%s', '%d');\", element.getClientId(), activeTabNum));\n\t}", "@Override\n\tprotected void initScript(Element e, Script parent) throws ScriptException {\n\n\t}", "@Override\n public void doneRendering(SRenderEvent renderEvent) {\n SessionManager.getSession().getScriptManager().addScriptListener(new JavaScriptListener(null, null, \"initSearchField('searchField');\"));\n }", "public void createJavascriptFunctions() {\n browser.createBrowserFunction(\n new IBrowserFunction(\"__java_cancelAddAccountWizard\") {\n @Override\n public Object function(Object[] arguments) {\n dialogManager.closeDialogWindow(addAccountPage);\n return true;\n }\n });\n\n browser\n .createBrowserFunction(new IBrowserFunction(\"__java_validateJID\") {\n @Override\n public Object function(Object[] arguments) {\n ValidationResult validationResult;\n if (arguments.length != 1\n || !(arguments[0] instanceof String)) {\n validationResult = new ValidationResult(false,\n \"JID must not be empty\");\n } else {\n\n final String jid = (String) arguments[0];\n JID jid1 = new JID(jid);\n String username = jid1.getName();\n String domain = jid1.getDomain();\n\n if (StringUtils.isBlank(username)) {\n validationResult = new ValidationResult(false,\n \"Invalid JID: username must not be empty.\");\n } else if (StringUtils.isBlank(domain)) {\n validationResult = new ValidationResult(false,\n \"Invalid JID: domain must not be empty.\");\n } else if (!domain.toLowerCase().equals(domain)) {\n validationResult = new ValidationResult(false,\n \"Invalid JID: domain must not contain upper case letters.\");\n } else if (accountCoreService.existsAccount(jid)) {\n validationResult = new ValidationResult(false,\n \"Account already exists.\");\n } else {\n validationResult = new ValidationResult(true, \"\");\n }\n }\n\n Gson gson = new Gson();\n return gson.toJson(validationResult);\n }\n });\n\n browser\n .createBrowserFunction(new IBrowserFunction(\"__java_saveAccount\") {\n @Override\n public Object function(Object[] arguments) {\n if (arguments.length != 2\n || !(arguments[0] instanceof String)\n || !(arguments[1] instanceof String)) {\n browser.run(\"alert('Please provide valid inputs');\");\n return false;\n }\n\n final String jid = (String) arguments[0];\n final String password = (String) arguments[1];\n\n ThreadUtils.runSafeAsync(LOG, new Runnable() {\n @Override\n public void run() {\n try {\n accountCoreService\n .createAccount(jid, password);\n dialogManager\n .closeDialogWindow(addAccountPage);\n } catch (RuntimeException e) {\n LOG.error(\n \"Unexpected exception while creating account. As the input has been validate, this should not happen.\",\n e);\n browser.run(\n \"alert('An error occurred while saving the account.');\");\n }\n }\n });\n\n return null;\n }\n });\n }", "protected void shoAddNewDataEditor () {\n\t\t\n\t\t\n\t\tinstantiateDataForAddNewTemplate(new AsyncCallback< DATA>() {\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t// ini tidak mungkin gagal\n\t\t\t\t\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void onSuccess(final DATA result) {\n\t\t\t\teditorGenerator.instantiatePanel(new ExpensivePanelGenerator<BaseDualControlDataEditor<PK,DATA>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onPanelGenerationComplete(\n\t\t\t\t\t\t\tBaseDualControlDataEditor<PK, DATA> widget) {\n\t\t\t\t\t\tconfigureAndPlaceEditorPanel(widget);\n\t\t\t\t\t\twidget.requestDoubleSubmitToken(null);\n\t\t\t\t\t\twidget.addAndEditNewData(result);\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\t\n\t\t\n\t}", "String getJavascriptValidation( );", "public void SEITE() {\n //<< new strExec\n mVar strExec = m$.var(\"strExec\");\n m$.newVar(strExec);\n //<< \n //<< set strExec = \"document.WWW.target=''; document.WWW.YINSEITE.value=''; document.WWW.YSEITE.value='\"_$$$WWW124ChangeoversWithOnClick(YA)_\"'; SAVENOW(2);\"\n strExec.set(mOp.Concat(mOp.Concat(\"document.WWW.target=''; document.WWW.YINSEITE.value=''; document.WWW.YSEITE.value='\",include.WWWConst.$$$WWW124ChangeoversWithOnClick(m$,m$.var(\"YA\"))),\"'; SAVENOW(2);\"));\n //<< do Button(strExec)\n m$.Cmd.Do(\"Button\",strExec.get());\n //<< \n //<< QUIT\n return;\n }", "private void addCodeContainer(Chart chart) {\n Label codeContainer = new Label(\"code\", new StringFromResourceModel(\n chart.getOptions().getClass(), chart.getOptions().getClass().getSimpleName()\n + \".java\"));\n codeContainer.setOutputMarkupId(true);\n add(codeContainer);\n }", "public static String getJS_AddNodeToDOM(String sParentID, String sNewChildNodeID)\n\t{\n\t\tString sAddNodeJS = \"var myNode=document.createElement('\" + sNewChildNodeID + \"'); \";\n\t\tsAddNodeJS += \"myNode.setAttribute('id', '\" + sNewChildNodeID + \"'); \";\n\t\tsAddNodeJS += \"document.getElementById('\" + sParentID + \"').appendChild(myNode); \";\n\t\treturn sAddNodeJS;\n\t}", "public void append(String fragment);", "public static native void _bindingJs(String str, JsCallback jsCallback);", "@Override\n\t\t\t\t\t\t\t\tpublic void onNext(final String s) {\n\t\t\t\t\t\t\t\t\tif (s.contains(\"}\") && outJSVar.charAt(outJSVar.length()-2) == ',') {\n\t\t\t\t\t\t\t\t\t\toutJSVar.deleteCharAt(outJSVar.length()-2);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\toutJSVar.append(s);\n\t\t\t\t\t\t\t\t\toutJSVar.append(\"\\n\");\n\t\t\t\t\t\t\t\t}", "public static String ClearJavaScriptTags(String strHTML) {\r\n\t\tstrHTML = strHTML.replaceAll(\"\\n\", \"<br/>\");\r\n\t\tString nohtml = strHTML.replaceAll(\"<script>\", \"\");\r\n\t\tnohtml = nohtml.replaceAll(\"</script>\", \"\");\r\n\t\treturn nohtml;\r\n\t\t// strHTML.rep\r\n\t}", "CD withCode();", "<T> List<String> generateInsertScript(GremlinSource<T> source);", "@JavascriptInterface\n @SuppressWarnings(\"unused\")\n public void processHTML(String html) {\n\n Element content;\n String value = \"\";\n try {\n org.jsoup.nodes.Document doc = Jsoup.parse(html, \"UTF-8\");\n content = doc.getElementsByClass(\"rupee\").get(0);\n value = content.text();\n } catch (Exception e) {\n e.printStackTrace();\n }\n listener.update(value);\n }", "private File quickJavascriptFilter(final String content) throws Exception {\n final File out = File.createTempFile(\"jsfilter\", \".js\");\n out.deleteOnExit();\n try (final PrintWriter pw = new PrintWriter(out)) {\n pw.println(content);\n }\n return out;\n }" ]
[ "0.6908685", "0.6620859", "0.6299366", "0.5776143", "0.5640119", "0.55233425", "0.5427658", "0.5407836", "0.5238663", "0.52358973", "0.51940405", "0.5189092", "0.5188241", "0.51660335", "0.5109366", "0.5084295", "0.507095", "0.50319475", "0.5030794", "0.50167704", "0.5013533", "0.5000439", "0.49857992", "0.49395692", "0.49294138", "0.4924526", "0.49213597", "0.49088824", "0.48889625", "0.48318246", "0.48078364", "0.48077497", "0.47972968", "0.4796255", "0.4788261", "0.47809714", "0.4780632", "0.4780207", "0.47795677", "0.47786978", "0.47600076", "0.47596148", "0.47423932", "0.47371563", "0.47280094", "0.47196105", "0.47132987", "0.4706571", "0.47038242", "0.47031373", "0.47022983", "0.46981564", "0.46938863", "0.46786162", "0.46780998", "0.4675909", "0.46743622", "0.46541122", "0.46357834", "0.45983744", "0.45865506", "0.4576851", "0.4574044", "0.45565698", "0.45564762", "0.4555704", "0.45416954", "0.45416763", "0.45244187", "0.4502546", "0.45008963", "0.44961792", "0.4495731", "0.44830775", "0.44803488", "0.44712216", "0.4469039", "0.44655383", "0.4458013", "0.44524485", "0.44410774", "0.44363326", "0.44343436", "0.4433888", "0.44223762", "0.44191486", "0.44190663", "0.44188178", "0.44167003", "0.44149", "0.4414407", "0.44113934", "0.44064328", "0.44004035", "0.43989176", "0.43884477", "0.43863645", "0.43777242", "0.43745703", "0.43720916" ]
0.47223914
45
Append some JavaScript code at the specified index
@Nonnull public final HCHead addJSAt (@Nonnegative final int nIndex, @Nonnull final IHCNode aJS) { ValueEnforcer.notNull (aJS, "JS"); if (!HCJSNodeDetector.isJSNode (aJS)) throw new IllegalArgumentException (aJS + " is not a valid JS node!"); m_aJS.add (nIndex, aJS); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JavaScript append(String javaScriptPartToAppend) {\n return js(javaScript + javaScriptPartToAppend);\n }", "org.globus.swift.language.Function insertNewFunction(int i);", "public static void Javascript() {\n\n\t}", "private void addJS(String jsLocation) {\n Script ajaxScript = new Script(\"\");\n ajaxScript.attribute(\"src\", jsLocation);\n ajaxScript.attribute(\"type\", \"text/javascript\");\n page.addHeader(ajaxScript);\n }", "public void insert(int index, String fragment);", "public native String insertItemBefore(String newItem, Number index);", "protected void insertCode(SketchCode newCode) {\n ensureExistence();\n\n // add file to the code/codeCount list, resort the list\n //if (codeCount == code.length) {\n code = (SketchCode[]) PApplet.append(code, newCode);\n codeCount++;\n //}\n //code[codeCount++] = newCode;\n }", "public void addToCode(String code){\r\n\t\tiCode+=getTabs()+code+\"\\n\";\r\n\t}", "public void insert(int index, Block block) {\r\n\t\tfor(Entry s : block) {\r\n\t\t\tinsert(index++, s.code,s.attributes());\r\n\t\t}\r\n\t}", "void hackInsertWidget(Widget w, int beforeIndex) {\n panel.insert(w, beforeIndex);\n }", "public void addAtIndex(int index, int data)\n {\n Node newNode = new Node(data);\n Node oldNode = head;\n\n for (int i=1;i<size;i++)\n {\n if (i == index)\n {\n Node myNode = oldNode.next;\n oldNode.next = newNode;\n newNode.next = myNode;\n break;\n }\n oldNode = oldNode.next;\n }\n size++ ;\n }", "private void appendNewComponent(int index) {\n/* 165 */ IChatMutableComponent iChatMutableComponent = (new ChatComponentText(this.message.substring(this.currentIndex, index))).setChatModifier(this.modifier);\n/* 166 */ this.currentIndex = index;\n/* 167 */ if (this.currentChatComponent == null) {\n/* 168 */ this.currentChatComponent = (IChatMutableComponent)new ChatComponentText(\"\");\n/* 169 */ this.list.add(this.currentChatComponent);\n/* */ } \n/* 171 */ this.currentChatComponent.addSibling((IChatBaseComponent)iChatMutableComponent);\n/* */ }", "public void add(int index, String value){\n\tadd(value);\n }", "public void insertValueAtIndex(int value, int index) {\n if (arraySize < 50 && index < arraySize) {\n theArray[index] = value;\n }\n }", "void add(int index, Object element);", "private void addNodeAtIndex(int data, int index) {\n ListNode newNode = new ListNode(data);\n if (head == null) {\n head = newNode;\n return;\n }\n int count = 0;\n ListNode current = head;\n while (count < index - 1) {\n count++;\n current = current.next;\n }\n newNode.next = current.next;\n current.next = newNode;\n }", "gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak addNewCodeBreak();", "private static String insert(String input, int index, String toInsert) {\n return input.substring(0, index) + toInsert + input.substring(index);\n }", "public void add(int index, Object element) {\r\n addBefore(element, (index == size ? header : entry(index)));\r\n }", "public abstract void appendBlock();", "public void insertElementAt(Object obj, int index);", "Container moreJavaScript(){\n\n Container con = new Container();\n con.addItem(\"/*****************************************************************/\\n\");\n con.addItem(\"function writeIt(the_long,the_lat,the_table)\\n\" +\n \"{\\n\" +\n \" var new_long = the_long - 0;\\n\" +\n \" var new_lat = the_lat - 0;\\n\" +\n \" var new_table = the_table - 0;\\n\" +\n \" var word_long_return = new_long + new_table;\\n\" +\n \" window.document.myForm.plongitudeeast.value = word_long_return;\\n\" +\n \" var word_lat_return = new_lat + new_table;\\n\" +\n \" window.document.myForm.platitudesouth.value = word_lat_return;\\n\" +\n \"}\\n\");\n con.addItem(\"function updatePTable(what)\\n\" +\n \"{\\n\" +\n \" var n = what.selectedIndex;\\n\" +\n \" /* window.alert(\\\"n = \\\" + n); */\\n\" +\n \" what.form.ptable.value = what.form.ptablesize.options[n].value;\\n\" +\n \"}\\n\");\n con.addItem(\"/*****************************************************************/\\n\");\n\n con.addItem(\"var menu = new Array (\\n\");\n for (int i = 0; i < sc.MAX1; i++) {\n con.addItem(\"\\\"\" + (i+1) + \"|\" + (i+1) + \"|\" + trueFalse[i] + \"*\");\n for (int j = 0; j < sc.MAX2; j ++) {\n if (sc.BSIZE[i][j] != 0) {\n String quote = \"\\\"\";\n if (j == 0) quote = \"\";\n String truef = \"\";\n if (j == 5) truef = \"|true\";\n String plus = \"+\";\n if (sc.MINSQ[i][j] == 20) plus = \",\";\n if ((i == (sc.MAX1-1)) && (sc.MINSQ[i][j] == 20)) plus = \")\";\n con.addItem(quote + i + \"-\" + j + \"|\" + sc.BSIZE[i][j] + \"(\" +\n sc.MINSQ[i][j] + \"x\" + sc.MINSQ[i][j] + \")\" +\n truef + \"#\\\"\" + plus + \"\\n\");\n } // if (sc.BSIZE[i][j] != 0)\n } // for (int j = 0; j < MAX2; j ++)\n } // for (int i = 0; i < MAX1; i++)\n\n return con;\n\n }", "private native void eval(String script) /*-{\n \t try {\n \t eval(\"{ var document = $doc; var window = $wnd; \"+ script + \"}\");\n \t } catch (e) {\n \t }\n \t }-*/;", "public void addAtIndex(int index, T data) {\n Node<T> newNode = new Node<>();\n newNode.data = data;\n\n if (index == 0) {\n addAtStart(data);\n } else {\n Node<T> node = head;\n for (int i = 0; i < index - 1; i++) {\n node = node.next;\n }\n newNode.next = node.next;\n node.next = newNode;\n }\n }", "@Override\r\n\tpublic String execute(String script) {\n\t\treturn script+\"sb\";\r\n\t}", "public void add(int index, String value){\n add(value);\n }", "private void paste( int index, int clipNum) {\n\n this.insertbefore( clipBoards.get(clipNum).toString(), index);\n\n\n }", "public JavaScript join(JavaScript javaScriptToJoin) {\n return js(this.javaScript + '\\n' + javaScriptToJoin.javaScript);\n }", "private static native void eval(String script)\n /*-{\n try {\n \t if (script != null) \n eval(\"{ var document = $doc; var window = $wnd; \"+ script + \"}\");\n } catch (e) {\n }\n }-*/;", "public void insertChar(int index, String charToInsert) {\r\n\t\tcommandsQueue.add(new String[] { \"insert\", \"\" + index, charToInsert });\r\n\t}", "private void testAddAtIndex(){\n System.out.println(\"------ TESTING : add(int index, int element) ------\");\n try{\n // The insertion will add values to the front\n // the sequence should be iSize-1....,1,0\n for(int i = 0; i < iSize ; i++){\n if(!iTestList.add(0,i))\n throw new RuntimeException(\"FAILED -> add(index,element) not working correctly\");\n }\n // we should test the out of edge cases\n // if we try the following code and the return value is true or if the\n // program crashes then there is a problem\n if(iTestList.add(iSize+10, 999 )){\n throw new RuntimeException(\"FAILED -> index should not be > SIZE\");\n }\n if(iTestList.add(-2,999 )){\n throw new RuntimeException(\"FAILED -> index should not be < 0\");\n }\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n }", "void add(int index, T element);", "void add(int index, T element);", "private static void addAtTest( int addAt\n , int value\n ) {\n list.add( addAt, value);\n System.out.println(\n \"insert \" + value\n + \" at position \" + addAt\n + \", resulting in \" + list.size() + \" elements:\"\n + System.lineSeparator()\n + list\n + System.lineSeparator()\n );\n }", "public void insert(int index, Code code, Attribute... attributes) {\r\n\t\tstmts.add(index,new Entry(code,attributes));\r\n\t}", "private void generateJavaScriptCode(JavaToJavaScriptMap jjsMap,\n\t\t\tString[] jsFragments, StatementRanges[] ranges,\n\t\t\tSizeBreakdown[] sizeBreakdowns, List<JsSourceMap> sourceInfoMaps,\n\t\t\tboolean sourceMapsEnabled) {\n\t\tEvent generateJavascriptEvent = SpeedTracerLogger\n\t\t\t\t.start(CompilerEventType.GENERATE_JAVASCRIPT);\n\t\tfor (int i = 0; i < jsFragments.length; i++) {\n\t\t\tDefaultTextOutput out = new DefaultTextOutput(\n\t\t\t\t\t!options.isIncrementalCompileEnabled()\n\t\t\t\t\t\t\t&& options.getOutput().shouldMinimize());\n\t\t\tJsReportGenerationVisitor v = new JsReportGenerationVisitor(out,\n\t\t\t\t\tjjsMap, options.isJsonSoycEnabled());\n\t\t\tv.accept(jsProgram.getFragmentBlock(i));\n\t\t\tStatementRanges statementRanges = v.getStatementRanges();\n\t\t\tString code = out.toString();\n\t\t\tJsSourceMap infoMap = (sourceInfoMaps != null)\n\t\t\t\t\t? v.getSourceInfoMap()\n\t\t\t\t\t: null;\n\t\t\tJsAbstractTextTransformer transformer = new JsNoopTransformer(code,\n\t\t\t\t\tstatementRanges, infoMap);\n\t\t\t/**\n\t\t\t * Cut generated JS up on class boundaries and re-link the source\n\t\t\t * (possibly making use of source from previous compiles, thus\n\t\t\t * making it possible to perform partial recompiles).\n\t\t\t */\n\t\t\tif (options.isIncrementalCompileEnabled()) {\n\t\t\t\ttransformer = new JsTypeLinker(logger, transformer,\n\t\t\t\t\t\tv.getClassRanges(), v.getProgramClassRange(),\n\t\t\t\t\t\tgetMinimalRebuildCache(), jprogram.typeOracle);\n\t\t\t\ttransformer.exec();\n\t\t\t}\n\t\t\t/**\n\t\t\t * Reorder function decls to improve compression ratios. Also\n\t\t\t * restructures the top level blocks into sub-blocks if they exceed\n\t\t\t * 32767 statements.\n\t\t\t */\n\t\t\tEvent functionClusterEvent = SpeedTracerLogger\n\t\t\t\t\t.start(CompilerEventType.FUNCTION_CLUSTER);\n\t\t\t// TODO(cromwellian) move to the Js AST optimization, re-enable\n\t\t\t// sourcemaps + clustering\n\t\t\tif (!sourceMapsEnabled && !options.isClosureCompilerFormatEnabled()\n\t\t\t\t\t&& options.shouldClusterSimilarFunctions()\n\t\t\t\t\t&& options.getNamespace() == JsNamespaceOption.NONE\n\t\t\t\t\t&& options.getOutput() == JsOutputOption.OBFUSCATED) {\n\t\t\t\ttransformer = new JsFunctionClusterer(transformer);\n\t\t\t\ttransformer.exec();\n\t\t\t}\n\t\t\tfunctionClusterEvent.end();\n\t\t\tjsFragments[i] = transformer.getJs();\n\t\t\tranges[i] = transformer.getStatementRanges();\n\t\t\tif (sizeBreakdowns != null) {\n\t\t\t\tsizeBreakdowns[i] = v.getSizeBreakdown();\n\t\t\t}\n\t\t\tif (sourceInfoMaps != null) {\n\t\t\t\tsourceInfoMaps.add(transformer.getSourceInfoMap());\n\t\t\t}\n\t\t}\n\t\tgenerateJavascriptEvent.end();\n\t}", "public void add(int index, E x) {\n\t\tif (index < 0 || index > mSize) // == mSize allowed\n\t\t\tthrow new IndexOutOfBoundsException();\n\n\t\tif (size() == 0)\n\t\t\taddFirst(x);\n\t\telse {\n\t\t\taddBefore(getNode(index, 0, size()), x);\n\t\t\tmSize++;\n\t\t\tmodCount++;\n\t\t}\n\t}", "void insert(int idx, int val);", "public final void add(final int index, final TokenStatement element) {\r\n\t\tif (index > this.size || index < 0) {\r\n\t\t\tthrow new IndexOutOfBoundsException( \"Index: \" + index + \", Size: \" + this.size );\r\n\t\t}\r\n\t\tthis.ensureCapacity( this.size + 1 ); // Increments modCount!!\r\n\t\tSystem.arraycopy( this.elementData, index, this.elementData, index + 1, this.size - index );\r\n\t\tthis.elementData[index] = element;\r\n\t\tthis.size++;\r\n\t}", "public Code(int codeIndex){\n //Evaluate code based on codeIndex with lexicographical order\n this.code = codeIndex + MIN_CODE;\n }", "public void insertAt(String insertData, int index) {\n\t\t// write you code for insertAt using the specification above\n\t\tif(index==0){\n\t\t\tadd(insertData);\n\t\t\treturn;\n\t\t}\n\t\tif(index<=size()){\n\t\t\tNode nodref = head;\n\t\t\tfor (int count = 0; count<index-1; count++){\n\t\t\t\tnodref=nodref.next;\n\t\t\t}\n\t\t\tNode adder = new Node(insertData);\n\t\t\tadder.next = nodref.next;\n\t\t\tnodref.next = adder; \n\t\t\tnumElements++;\n\t\t\treturn;\n\t\t}\n\t}", "public void insert(int index, T element);", "void add(int idx, float incr);", "public void insertChildAt(WSLNode node, int index) {\n\t\tchildren.insertElementAt(node, index);\n\t}", "protected int addInfo(syntaxMap toAdd){\n if(index == 10){\n return 0;\n }\n else if(index < 5) {\n this.array1[index] = toAdd;\n }\n else{\n this.array2[index - 5] = toAdd;\n }\n ++index;\n return 1;\n }", "public void insert(int index, Code code, Collection<Attribute> attributes) {\r\n\t\tstmts.add(index,new Entry(code,attributes));\r\n\t}", "public void append(String fragment);", "public void insertAtIndex(E toInsert, int atIndex) {\n\t\tfor(int x = numElements; x > atIndex; x--) {\n\t\t\telements[x] = elements[x-1];\n\t\t}\n\t\telements[atIndex] = toInsert;\n\t\tnumElements++;\n\t\tresize();\n\t}", "public void insertAtAnyPoint(int index, int data) {\n\t\tNode node = new Node(); // defining random node\n\t\tnode.data = data; // putting data on it\n\t\tnode.next = null;\n\t\tNode n = head; // initial node\n\t\tif(index == 0){\n\t\t\tinsertAtStart(data);\n\t\t}else{\n\t\tfor (int i = 0; i < index-1; i++) {\n\t\t\tn = n.next;\n\t\t}\n\t\tnode.next = n.next;\n\t\tn.next = node;\n\t\t}\n\t}", "public void addBefore(E val, int idx) throws IndexOutOfBoundsException {\n addNodeBefore(new SinglyLinkedList.Node<>(val), idx);\n }", "public JasminBytecode add( String line ) {\n jasminCode.add(line);\n return this;\n }", "public void addAfter(E val, int idx) throws IndexOutOfBoundsException {\n addNodeAfter(new SinglyLinkedList.Node<>(val), idx);\n }", "public JasminBytecode add() {\n return add(\"\");\n }", "public void addSpacer(int index){\n //inflater needed to \"inflate\" layouts\n LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n //instantiate our data object.\n ElementSpacerField elementSpacerField = new ElementSpacerField();\n //if loading, add element data object to page, else we are editing and insert it\n if(isLoading) {\n currentPage.addElement(elementSpacerField);\n }else{\n currentPage.insertElement(index, elementSpacerField);\n }\n //get new view (our xml fragment -the text field) and add it to current view\n View newView = inflater.inflate(R.layout.spacer_field, null);\n linearLayoutBody.addView(newView, index);\n Context context = App.getContext();\n LogManager.reportStatus(context, \"INSPECTOR\", \"onAddSpacerField\");\n }", "public void add(int index, Object value) {\n if (index > _size) {\n throw new ListIndexOutOfBoundsException(\"Error\");\n }\n ListNode node = new ListNode(value);\n if (index == 0) {\n node.next = start;\n start = node;\n } else {\n ListNode prev = start;\n for (int i = 0; i<index - 1; i++ ) {\n prev = prev.next;\n }\n ListNode temp = prev.next;\n prev.next = node;\n node.next = temp;\n } \n _size++;\n }", "public void addAtIndex(int index, int val) {\n if (index > size) return;\n //Add at head\n if (index <= 0) {\n addAtHead(val);\n }\n //Add at end\n else if (index == size) {\n addAtTail(val);\n } else {\n ListNode newNode = new ListNode(val);\n ListNode curr = head;\n //Add somewhere in between\n for (int i = 0; i < index - 1; i++) {\n curr = curr.next;\n }\n newNode.next = curr.next;\n curr.next = newNode;\n size++;\n }\n }", "CodeBlock createCodeBlock();", "private static native void eval(String script)\n /*-{\n try {\n if (script == null) return;\n $wnd.eval(script);\n } catch (e) {\n }\n }-*/;", "void add(int i , E e) throws IndexOutOfBoundsException;", "public void addAtIndex(int index, int val) {\n if (index < 0 || index > size) {\n return;\n }\n Node prev = dummyHead;\n for (int i = 0; i < index; i++) {\n prev = prev.next;\n }\n prev.next = new Node(val, prev.next);\n size++;\n }", "void add(int i, E e) throws IndexOutOfBoundsException;", "private void replace( int ix, int len, short code, boolean deleted[] )\n {\n text[ix] = code;\n \n Arrays.fill( deleted, ix+1, ix+len, true );\n }", "public void add(int index, Object o) {\n try {\n Element element = (Element) o;\n if (element.type() == Element.CHUNK) {\n Chunk chunk = (Chunk) element;\n if (!font.isStandardFont()) {\n chunk.setFont(font.difference(chunk.font()));\n }\n super.add(index, chunk);\n }\n else if (element.type() == Element.PHRASE ||\n element.type() == Element.ANCHOR ||\n element.type() == Element.ANNOTATION ||\n element.type() == Element.TABLE || // line added by David Freels\n element.type() == Element.GRAPHIC) {\n super.add(index, element);\n }\n else {\n throw new ClassCastException(String.valueOf(element.type()));\n }\n }\n catch(ClassCastException cce) {\n throw new ClassCastException(\"Insertion of illegal Element: \" + cce.getMessage());\n }\n }", "public static void writeJavaScript(final Response response, final CharSequence text)\n\t{\n\t\tAttributeMap attributes = new AttributeMap();\n\t\tattributes.putAttribute(ATTR_TYPE, \"text/javascript\");\n\t\twriteInlineScript(response, text, attributes);\n\t}", "public abstract void add(T element, int index);", "public void add(int index, E obj)\r\n {\r\n listIterator(index).add(obj);\r\n }", "public void insert(int index, T value) {\n extend();\n for (int i = this.list.length-1; i >index; i--) {\n this.list[i] = this.list[i-1];\n }\n this.list[index] = value;\n this.size++;\n }", "public android.renderscript.Element.Builder add(android.renderscript.Element element, java.lang.String name, int arraySize) { throw new RuntimeException(\"Stub!\"); }", "public void add(int index, Type t);", "public native String replaceItem(String newItem, Number index);", "public synchronized void insertElementAt(WModelObject object, int index)\n\t{\n\t\tm_elements.insertElementAt(object, index);\n\t}", "public void insertElementAt(Object obj, int index)\n {\n try {element.insertElementAt(obj, index);}\n catch (Exception e) {\n throw new IllegalArgumentException\n (\"VectorLinearList.insertElementAt: \" +\n \"index must be between 0 and size\");\n }\n }", "public void insertClause(int ix, EClause c)\n\t{ clauses.add(ix, c); }", "public void addAt(int index, T data) {\n Node<T> newNode = new Node<T>();\n newNode.data = data;\n\n if (index == 0) {\n newNode.next = head;\n head = newNode;\n } else {\n Node<T> currentNode = head;\n Node<T> previousNode = null;\n\n for (int i = 0; i < index; i++) {\n previousNode = currentNode;\n currentNode = currentNode.next;\n }\n previousNode.next = newNode;\n newNode.next = currentNode;\n }\n size++;\n }", "public void executeScript(String js) {\n try {\n this.webView.getEngine().executeScript(js);\n } catch (RuntimeException ex) {\n ex.printStackTrace();\n if (!this.pdfJsLoaded) this.toExecuteWhenPDFJSLoaded += String.format(\"%s;\", js);\n }\n }", "public native void insertData(double offset, String arg) /*-{\r\n\t\tvar jso = [email protected]::getJsObj()();\r\n\t\tjso.insertData(offset, arg);\r\n }-*/;", "private int plusOne(int index) {\n if (index + 1 >= array.length) {\n return 0;\n } else {\n return index + 1;\n }\n }", "public @Override void add(int index, E element) {\n \tNode n = index == size ? sentinel : getNode(index);\n \tnew Node(n.pred, element);\n }", "@Override\r\n\tpublic void addValueAtIndex(final IScope scope, final Object index, final T value) {}", "public boolean add(Where where, int index, E e) { \n\t \n\t /* \n\t * If there is no space to add the new element, grow the array. */\n\t if (is_full()) {\n\t grow();\n\t }\n\t \n\t /**\n\t * Add code here \n\t */\n\t \n\t if((where == Where.MIDDLE)){\n\t \t //System.out.println(\"Inserting element at index middle\");\n\t \t for(int k=num_elements+1;k>index;k--){\n\t \t\t elements[k] = elements[k-1];\n\t \t }\n\t \t elements[index] = e;\n\t \t num_elements++;\n\t }\n\t return true; \n\t }", "public void insertElementAt(Replicated obj, int index)\r\n\t{\n\t\tinsert(obj, index);\r\n\t}", "public void insertIndexInterval(long index, long length, boolean before) {\n return;\r\n }", "public void addAtIndex(int index, int val) {\n if (index > this.size) {\n return;\n }\n\n if (index < 0) {\n index = 0;\n }\n\n ListNode pred = this.head;\n\n for (int i = 0; i < index; ++i) {\n pred = pred.next;\n }\n\n ListNode node = new ListNode(val);\n node.next = pred.next;\n pred.next = node;\n\n this.size++;\n }", "private String getJGrowlAfterOpenJavaScript() {\n StringBuilder javaScript = new StringBuilder();\n javaScript.append(\"function(e,m,o) {\");\n javaScript.append(\"var link = e.find('a');\");\n javaScript.append(\"if (link.size() > 0) {\");\n// javaScript.append(\"window.open(link.attr('href'), '_blank');\");\n javaScript.append(\"link[0].click();\");\n javaScript.append(\"}\");\n javaScript.append(\"}\");\n\n return javaScript.toString();\n }", "private void insertValue(int index, int value) {\n\n\t\tfor (int i = this.array.length - 1; i > index; i--) {\n\t\t\tthis.array[i] = this.array[i - 1];\n\t\t}\n\n\t\tthis.array[index] = value;\n\t\tcount++;\n\t\tSystem.out.println(\"이동 횟수는 : \" + (count - (index + 1)));\n\t\tthis.showArray();\n\n\t}", "public abstract void add(int index, E e);", "public void insertAt(int index,int data){\n Node node =new Node();\n node.data=data;\n node.next=null;\n\n if (index == 0) {\n insertAtStart(data);\n }\n\n\nelse{\n Node n = head;\n for (int i=0; i < index-1;i++){\n n =n.next;\n }\n node.next =n.next;\n n.next = node;\n\n}}", "public void addAtIndex(int idx, T v) {\n addAtIndex(idx, new Node(v));\n }", "public void insert(int index, char data)\n {\n if(index >= 0 && index <= numNodes){\n if(index == 0)\n {\n Node node = new Node(data);\n node.next = head;\n head = node;\n }\n else\n {\n //find your previous and your current\n Node curr = find(index);\n Node prev = find(index - 1);\n \n //add the new node with current as the successor and previous as the \n //predecessor\n Node node = new Node(data, curr);\n prev.next = node;\n }\n numNodes++;\n }\n else\n {\n throw new IndexOutOfBoundsException();\n }\n }", "public native void insertRowAfter(int index, TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso\n\t\t\t\t.insertRowAfter(\n\t\t\t\t\t\tindex,\n\t\t\t\t\t\[email protected]::getJsObj()(),\n\t\t\t\t\t\[email protected]::getJsObj()());\n }-*/;", "public void appendExp(int value) throws Exception\n\t{\n\t\t\n\t}", "public void add(int index, E e) {\n resize();\n for(int i = size-1; i >= index; i--) {\n list[i+1] = list[i];\n }\n list[index] = e;\n size++;\n }", "public void add(int index, E element);", "@Override\n\tpublic void add(int index, Object e) throws IndexOutOfBoundsException\n\t{\n\t\t//just to check if the index is valid\n\t\tif ( index < 0 || index > size )\n \t\tthrow new IndexOutOfBoundsException();\n\t\t//check arraylist size\n\t\tif (size == myArray.length)\n\t\t\tresizeUp();\n\t\t//move all the proceeding elements to make room for the desired element\n\t\tfor ( int i = size; i > index; i-- )\n \t\tmyArray[i] = myArray[i-1];\n \t//plug the element\n\t\tmyArray[index] = e;\n \t++this.size;\n\n\t\t\n\t}", "public StringBuilder outputter(StringBuilder build, int index) {\r\n\t\t//if we have either an empty string or that we have gone through and we had all zzz we use this to add an 'a'\r\n\t\t//we use insert() because we want to be able to put the 'a' at the beginning \r\n\t\tif(index < 0) {\r\n\t\t\tbuild.insert(0,'a');\r\n\t\t}\r\n\t\telse {\r\n\t\t\t//if we have a 'z' then we want to replace it with an 'a'\r\n\t\t\tif(build.charAt(index) == 'z') {\r\n\t\t\t\tbuild.replace(index,index + 1,\"a\");\r\n\t\t\r\n\t\t\t\t//we use recursion to replace the zzz till we reach a non z or if we reach end of \r\n\t\t\t\t//string we will insert in a as seen above\r\n\t\t\t\toutputter(build, index - 1);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//otherwise we increase the letter\r\n\t\t\telse {\r\n\t\t\t\tbuild.replace(index, index + 1, \"\" + (char)(build.charAt(index)+1));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn build;\r\n\t}", "abstract protected void pre(int code);", "public android.renderscript.Element getSubElement(int index) { throw new RuntimeException(\"Stub!\"); }", "void insert(int index, T value) throws ListException;", "public void add(final T data, final int index) {\n if (index < 0 || index > numElement + 1) {\n throw new IndexOutOfBoundsException();\n }\n Node<T> newNode = new Node<>(data);\n if (index == 0) {\n prepend(data);\n } else if (index == numElement) {\n append(data);\n }\n Node<T> iterator = head;\n for (int currentIndex = 0; currentIndex < index - 1; currentIndex++) {\n iterator = iterator.getNext();\n }\n newNode.setNext(iterator.getNext());\n iterator.setNext(newNode);\n numElement++;\n }", "public abstract void append(int data, int row, int column);" ]
[ "0.60012573", "0.54993725", "0.54857713", "0.5467608", "0.53814834", "0.50041515", "0.49828768", "0.4964329", "0.49038953", "0.48773864", "0.4855024", "0.48369095", "0.4791547", "0.47883594", "0.47665182", "0.4733552", "0.47084022", "0.46942258", "0.46926507", "0.46798652", "0.46752197", "0.46675846", "0.46505594", "0.46340218", "0.46271756", "0.46219003", "0.46180913", "0.46022826", "0.46016586", "0.4593439", "0.4578314", "0.4576313", "0.4576313", "0.4567795", "0.45588183", "0.455862", "0.45558828", "0.45501536", "0.45448142", "0.45348093", "0.45319998", "0.45305747", "0.4521281", "0.45207492", "0.4516412", "0.45090646", "0.45056373", "0.45026284", "0.45015728", "0.44965756", "0.44947642", "0.4493779", "0.44842547", "0.44830543", "0.44761562", "0.44414616", "0.44304383", "0.44303516", "0.442495", "0.44245538", "0.44244358", "0.44216195", "0.4418939", "0.44099462", "0.44067693", "0.44045484", "0.44033688", "0.4393024", "0.43926004", "0.43884403", "0.4383128", "0.43794054", "0.43632525", "0.43619764", "0.43612638", "0.4355209", "0.43551004", "0.4351458", "0.43495727", "0.4346493", "0.43455252", "0.4336716", "0.43316278", "0.4321149", "0.43136737", "0.4313081", "0.431016", "0.4301581", "0.42953065", "0.4294755", "0.42903745", "0.428852", "0.42850095", "0.4284317", "0.42837057", "0.4282856", "0.4282455", "0.4278469", "0.4277343", "0.42643842" ]
0.5996781
1
Use the page title as plain text
@Override @Nonnull public String getPlainText () { return m_aPageTitle.getPlainText (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void printTitle( String title )\r\n {\n }", "public void setTitle(String title) { this.title = title; }", "public void setTitle(java.lang.String title);", "@Override\r\n\tpublic String getPageTitle() {\t\r\n\t\treturn getTranslation(Routes.getPageTitleKey(Routes.REPORT));\r\n\t}", "public void setTitle(java.lang.String value) {\n this.title = value;\n }", "private void setTitle(String userTitle){\n title = userTitle;\n }", "void setTitle(java.lang.String title);", "public final String getPageTitle() {\n\t\treturn pageTitle;\n\t}", "protected void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void printTitle()\n {\n System.out.println(title);\n }", "@Override\r\n\tpublic String getTitle() {\n\t\treturn title;\r\n\t}", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "@Override\r\n public String getTitle() {\n return title;\r\n }", "public void setTitle(String title){\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title)\n {\n this.title = title;\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 String get_defineSetupPage_Titletext() {\r\n\t\treturn FetchText(DefineSetupPageTitle);\r\n\t}", "public void setTitle(String title){\n \tthis.title = title;\n }", "public void setTitle(String title){\n\t\tthis.title = title;\n\t}", "@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void setTitle(String title) {\r\n\tthis.title = title;\r\n }", "public String getPageTitle() {\n\t\treturn pageTitle;\n\t}", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title);", "public String getTitle()\r\n\t{\r\n\t\treturn TITLE;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "private void setTitle(java.lang.String title) {\n System.out.println(\"setting title \"+title);\n this.title = title;\n }", "public String getTitle() {\n if (getMessages().contains(\"title\")) {\n return message(\"title\");\n }\n return message(MessageUtils.title(getResources().getPageName()));\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "@Override\r\n\tpublic void setTitle(String title) {\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n _title = title;\r\n }", "@Override\n public void setTitle(String title) {\n this.title = title;\n }", "@Override\r\n public String getTitle() {\r\n return title;\r\n }", "public void setTitle(String title) {\n\t\tthis.title = title; \n\t}", "public String getPageTitle() {\r\n\t\treturn this.pageTitle;\r\n\t}", "protected String getTitle(String siteName) { \n return siteName;\n }", "public void setTitle(String title) {\n\tthis.title = title;\n}", "void showTitle(String title);", "public void setTitle(java.lang.Object title) {\n this.title = title;\n }", "public void setTitle(String title)\n\t{\n\t\tthis.title = title;\n\t}", "@Override\r\n\tpublic void getTitle(String title) {\n\t\t\r\n\t}", "@Override\r\n public String getPageTitle() {\r\n return getTranslation(Routes.getPageTitleKey(Routes.NEW_VECHILE));\r\n }", "public void setTitle(String titleTemplate);", "@Override\n public String getTitle() {\n return title;\n }", "@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "String title();", "String title();", "public String getTitle() {\n \t\treturn title;\n \t}", "void setTitle(String title);", "void setTitle(String title);" ]
[ "0.764711", "0.76412433", "0.7640157", "0.7615282", "0.7563366", "0.7563046", "0.75530905", "0.75486153", "0.75362676", "0.7532882", "0.7532882", "0.7527774", "0.7513269", "0.7506877", "0.7506877", "0.7506877", "0.7506877", "0.75062644", "0.750437", "0.7502225", "0.7502225", "0.7502225", "0.748145", "0.74776626", "0.74760056", "0.7468411", "0.746785", "0.7464871", "0.74642694", "0.74637395", "0.7462838", "0.7462838", "0.7462838", "0.7462838", "0.7462838", "0.7461407", "0.7461407", "0.7444096", "0.7444096", "0.7444096", "0.7441711", "0.7440475", "0.7440475", "0.7440475", "0.7440475", "0.7440475", "0.74372977", "0.7432798", "0.742825", "0.742825", "0.742825", "0.7422618", "0.7422618", "0.7422618", "0.7422618", "0.7422618", "0.7422618", "0.7422618", "0.7422618", "0.7422618", "0.7422618", "0.7422618", "0.7422618", "0.7422618", "0.7422618", "0.7422618", "0.7422618", "0.7422618", "0.7422618", "0.7419034", "0.74189675", "0.7417279", "0.74052966", "0.7392249", "0.73911315", "0.7385565", "0.73812187", "0.73776656", "0.73718125", "0.73686403", "0.73461914", "0.73435366", "0.73432577", "0.733715", "0.7334483", "0.73236823", "0.73231244", "0.73231244", "0.73231244", "0.73231244", "0.73231244", "0.73231244", "0.73231244", "0.73231244", "0.73231244", "0.73187244", "0.73187244", "0.73018223", "0.73016214", "0.73016214" ]
0.74251544
51
public static Logger log = Logger.getLogger(FacultyModel.class);
public Integer nextPk() throws ApplicationException { // log.debug("Faculty Model nextPK method Started"); Connection conn = null; int pk = 0; try { conn = JDBCDataSource.getConnection(); PreparedStatement pstmt = conn.prepareStatement("SELECT MAX(id) FROM ST_FACULTY"); ResultSet rs = pstmt.executeQuery(); while (rs.next()) { pk = rs.getInt(1); } rs.close(); } catch (Exception e) { //log.error("DataBase Exception ..", e); throw new ApplicationException("Exception in Getting the PK"); } finally { JDBCDataSource.closeConnection(conn); } //log.debug("Faculty Model nextPK method End"); return pk + 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Log() {\r\n\t}", "@Override\n public void log()\n {\n }", "@Override\n public void logs() {\n \n }", "public MyLogs() {\n }", "public void logData(){\n }", "public String get_log(){\n }", "protected Log getLog()\n/* */ {\n/* 59 */ return log;\n/* */ }", "LogRecorder getLogRecorder();", "LogRecorder getLogRecorder();", "private Log() {\n }", "public LogModel getLogModel() {\n return localLogModel;\n }", "void log();", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public LogX() {\n\n }", "private Log getLog() {\n if (controller != null) {\n log = controller.getLog();\n } \n return log ;\n }", "public Log() { //Null constructor is adequate as all values start at zero\n\t}", "public DefaultListModel getLog()\r\n\t{\r\n\t\treturn log;\r\n\t}", "public Logger (){}", "@Override\n public Logger getLog(Class clazz) {\n return new Slf4jLogger(LoggerFactory.getLogger(clazz));\n }", "public LogBook() {\n logs = new UniqueLogList();\n exercises = new UniqueExerciseList();\n }", "public Logger getLogger()\n/* */ {\n/* 77 */ if (this.logger == null) {\n/* 78 */ this.logger = Hierarchy.getDefaultHierarchy().getLoggerFor(this.name);\n/* */ }\n/* 80 */ return this.logger;\n/* */ }", "private void logUser() {\n }", "public Log log() {\n return _log;\n }", "public MyLogger () {}", "@Override\r\n\tpublic Log getLog() {\n\t\treturn log;\r\n\t}", "@Override\n\tpublic String getLogFileName() {\n\t\treturn model.getLogFileName();\n\t}", "private void logToFile() {\n }", "protected static Logger log() {\n return LogSingleton.INSTANCE.value;\n }", "abstract void initiateLog();", "public Logger log() {\n return LOG;\n }", "public void setupLogging() {\n\t\ttry {\n\t\t\t_logger = Logger.getLogger(QoSModel.class);\n\t\t\tSimpleLayout layout = new SimpleLayout();\n\t\t\t_appender = new FileAppender(layout,_logFileName+\".txt\",false);\n\t\t\t_logger.addAppender(_appender);\n\t\t\t_logger.setLevel(Level.ALL);\n\t\t\tSystem.setOut(createLoggingProxy(System.out));\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void initializeLogging();", "public String getLog();", "public Logs() {\n initComponents();\n }", "private DAOLogger() {\n\t}", "private Logger() {\n\n }", "Logger getLog(Class clazz);", "private ExtentLogger() {}", "public void viewLogs() {\n\t}", "private Logger(){\n\n }", "public ArrayOfLogModel getArrayOfLogModel() {\n return localArrayOfLogModel;\n }", "public Logger getLog () {\n return log;\n }", "public Logger getLogger() {\n\treturn _logger;\n }", "@Override\n protected Logger getLogger() {\n return LOGGER;\n }", "void log() {\n\t\tm_drivetrain.log();\n\t\tm_forklift.log();\n\t}", "public LogModel[] getLogModel() {\n return localLogModel;\n }", "public Logger getLogger(){\n\t\treturn logger;\n\t}", "private static void defineLogger() {\n HTMLLayout layout = new HTMLLayout();\n DailyRollingFileAppender appender = null;\n try {\n appender = new DailyRollingFileAppender(layout, \"/Server_Log/log\", \"yyyy-MM-dd\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n logger.addAppender(appender);\n logger.setLevel(Level.DEBUG);\n }", "protected static Logger initLogger() {\n \n \n File logFile = new File(\"workshop2_slf4j.log\");\n logFile.delete();\n return LoggerFactory.getLogger(Slf4j.class.getName());\n }", "public EmployeeServlet()\n {\n logger = Logger.getLogger(getClass().getName());\n }", "public LogService getLog() {\n\treturn log;\n }", "public RevisorLogger getLogger();", "public LogMessageController() {\n\t}", "private Logger(){ }", "@Override\n\tprotected Logger getLogger() {\n\t\treturn HMetis.logger;\n\t}", "public Logger getLogger() {\t\t\n\t\treturn logger = LoggerFactory.getLogger(getClazz());\n\t}", "private Log()\n {\n //Hides implicit constructor.\n }", "protected GerentePoolLog(Class ownerClass)\n {\n\t\tArquivoConfiguracaoGPP arqConf = ArquivoConfiguracaoGPP.getInstance();\n\t\t//Define o nome e a porta do servidor q serao utilizados no LOG\n\t\thostName = arqConf.getEnderecoOrbGPP() + \":\" + arqConf.getPortaOrbGPP();\n\n\t\t/* Configura o LOG4J com as propriedades definidas no arquivo\n\t\t * de configuracao do GPP\n\t\t */\n\t\t\n\t\tPropertyConfigurator.configure(arqConf.getConfiguracaoesLog4j());\n\t\t//Inicia a instancia do Logger do LOG4J\n\t\tlogger = Logger.getLogger(ownerClass);\n\t\tlog(0,Definicoes.DEBUG,\"GerentePoolLog\",\"Construtor\",\"Iniciando escrita de Log do sistema GPP...\");\n }", "protected void log(Object msg) {\n\t\n\t\tSystem.out.println(\"MusicDataAccessor: \" + msg);\n\t}", "interface Solution {\n\n// use this Object to print the log (call from slf4j facade)\nstatic Logger log = LoggerFactory.getLogger(Solution.class);\n\n String decodeString(String s);\n}", "@Override\n\tprotected PublicationControlLogger getLogger() {\n\t\treturn logger;\n\t}", "@Override\n\tpublic void initLogger() {\n\t\t\n\t}", "@Override\r\n\tpublic Logger getLogger() {\r\n\t\t\r\n\t\treturn LogFileGenerator.getLogger();\r\n\t\t\r\n\t}", "public LogKitLogger(String name)\n/* */ {\n/* 64 */ this.name = name;\n/* 65 */ this.logger = getLogger();\n/* */ }", "public static Logger getLogger()\n {\n if (logger == null)\n {\n Log.logger = LogManager.getLogger(BAG_DESC);\n }\n return logger;\n }", "private void log() {\n\t\t\n//\t\tif (trx_loggin_on){\n\t\t\n\t\tif ( transLogModelThreadLocal.get().isTransLoggingOn() ) {\n\t\t\t\n\t\t\tTransLogModel translog = transLogModelThreadLocal.get();\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesConText().entrySet()) {\n\t\t\t\tMDC.put(entry.getKey().toString(), ((entry.getValue() == null)? \"\":entry.getValue()));\n\t\t\t}\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesOnce().entrySet()) {\n\t\t\t\tMDC.put(entry.getKey().toString(), ((entry.getValue() == null)? \"\":entry.getValue()));\n\t\t\t}\n\t\t\ttransactionLogger.info(\"\"); // don't really need a msg here\n\t\t\t\n\t\t\t// TODO MDC maybe conflic with existing MDC using in the project\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesConText().entrySet()) {\n\t\t\t\tMDC.remove(entry.getKey().toString());\n\t\t\t}\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesOnce().entrySet()) {\n\t\t\t\tMDC.remove(entry.getKey().toString());\n\t\t\t}\n\t\t\t\n\t\t\ttranslog.getAttributesOnce().clear();\n\t\t}\n\t\t\n\t}", "IFileLogger log();", "private final Log getLog() {\r\n return this.log;\r\n }", "LogRecord saveLog(LogRecord logRecord);", "public SegaLogger getLog(){\r\n\t\treturn log;\r\n\t}", "public SensorLog() {\n }", "private void log(String l) {\n if (LOG) {\n System.out.println(\"RotationMatrixTest.\" + l);\n }\n }", "public interface LoggerUtil {\n\t/**\n\t * Set the logger for the controller\n\t * \n\t * @param logName\n\t * @param filePath\n\t * @param logLevel\n\t * @return\n\t */\n\tLogger loggerArrangement(String logName, String filePath, LogeLevel logLevel);\n}", "private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }", "public Logger() {\n map = new LinkedHashMap<>();\n }", "private void logika_rozpocznij(){\n\t}", "@PrePersist\n public void startLog(){\n logger.info(\"creation du place en cours \" + this.name);\n }", "private static final Logger getLog4JLogger(final Log l) {\r\n return ((org.apache.commons.logging.impl.Log4JLogger) l).getLogger();\r\n }", "public Auditor () {\n\n\t\t// Create a new log file without deleting existing logs. Use the current time. \n\t\ttry {\n\t\t\tlog = new File( \"log: \" + Double.toString( new Date().getTime()) + \".txt\" );\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "private Logistic() {\n }", "public Catelog() {\n super();\n }", "public void setLog (Logger log) {\n this.log = log;\n }", "LogLevel getLogLevel();", "public EqpmentLogExample() {\n oredCriteria = new ArrayList();\n }", "public void logThis(String log, Theory theory)\n {\n }", "public Logger getLogger()\n {\n return this.logger;\n }", "public interface Logger\n{\n /**\n * Returns the name of the object.\n *\n * @return name of the Logger class\n */\n public String getName();\n\n /**\n * Rerturns the time of the object.\n *\n * @return time of the Logger object\n */\n public double getTime();\n}", "Appendable getLog();", "private static Log getLog() {\n if (log == null) {\n log = new SystemStreamLog();\n }\n\n return log;\n }", "public LogPoster() {\n\t\t\n\t}", "void log(Log log);", "public LoggingPanel() {\n initComponents();\n\n }", "public Faculty() {\n\t\tsuper();\n\t\tlevel = \" \";\n\t}", "public void setLogModel(LogModel param) {\n this.localLogModel = param;\n }", "public LogCategory getLog() {\n\t\treturn log;\n\t}", "private LoggerSingleton() {\n\n }", "private Logger getLogger() {\n return LoggerFactory.getLogger(ApplicationManager.class);\n }", "private Logger getLogger() {\n return LoggingUtils.getLogger();\n }", "public Logger getLogger() {\n return logger;\n }" ]
[ "0.625277", "0.6167766", "0.61514", "0.61404884", "0.61113054", "0.6088056", "0.6050447", "0.6044017", "0.6044017", "0.6004582", "0.59653014", "0.58826745", "0.5836703", "0.5836703", "0.5836703", "0.57939875", "0.5789815", "0.5765327", "0.57560444", "0.57512635", "0.57486504", "0.5700275", "0.56943953", "0.5673638", "0.5665511", "0.5662347", "0.5651827", "0.56491905", "0.5640778", "0.56407505", "0.56125945", "0.5611184", "0.56044745", "0.56018615", "0.55893147", "0.5577138", "0.5576498", "0.55660766", "0.5562936", "0.5561562", "0.5559274", "0.5555525", "0.55469495", "0.5546718", "0.5538737", "0.55314815", "0.55255234", "0.55252427", "0.5524384", "0.55201536", "0.551967", "0.5518634", "0.5515765", "0.5514555", "0.5507982", "0.55033225", "0.5488397", "0.54695266", "0.54683995", "0.5455579", "0.5428798", "0.54279715", "0.541505", "0.5414019", "0.5401459", "0.5390116", "0.53883505", "0.53858036", "0.53812593", "0.5379297", "0.5378988", "0.53761756", "0.5367785", "0.5342458", "0.5332551", "0.53318775", "0.53281534", "0.5327207", "0.53254294", "0.53240436", "0.5318218", "0.53157246", "0.5309417", "0.5297167", "0.5292377", "0.5280373", "0.52798593", "0.5274609", "0.5273401", "0.5272465", "0.5272045", "0.52692837", "0.5247447", "0.52454066", "0.52332616", "0.5233116", "0.5232548", "0.522976", "0.52226293", "0.52200186", "0.52182853" ]
0.0
-1
log.debug("Faculty Model Delete method End");
public void delete(FacultyBean bean) throws ApplicationException { Connection conn = null; try { conn = JDBCDataSource.getConnection(); conn.setAutoCommit(false); PreparedStatement pstmt = conn.prepareStatement("DELETE FROM ST_FACULTY WHERE ID=?"); pstmt.setLong(1, bean.getId()); pstmt.executeUpdate(); conn.commit(); } catch (Exception e) { // log.error("DATABASE EXCEPTION ", e); try { conn.rollback(); } catch (Exception ex) { throw new ApplicationException("Exception in Faculty Model rollback" + ex.getMessage()); } throw new ApplicationException("Exception in Faculty Model Delete Method"); } finally { JDBCDataSource.closeConnection(conn); } // log.debug("Faculty Model delete method End"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteStudent(){\r\n\t\t\r\n\t}", "public void deleteRecord() {\n// foods.clear();\n// try {\n// FoodRecordDao dao = new FoodRecordDao();\n// dao.saveFoodRecords(foods);\n// } catch (DaoException ex) {\n// Logger.getLogger(FoodLogViewController.class.getName()).log(Level.SEVERE, null, ex);\n// }\n }", "private void delete() {\n\n\t}", "public void delete(){\r\n\r\n }", "public void delete() {\n\n\t}", "int deleteByExample(FactRoomLogExample example);", "public void operationDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}", "@Test\n public void delete() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(2, 0, 6, \"GUI\");\n Student s2 = new Student(2,221, \"Pop Ion\",\"[email protected]\",\"prof\");\n Nota n2 = new Nota(2,2,\"prof\", 3, \"cv\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repot.delete(2);\n repo.delete(2);\n repon.delete(\"22\");\n assert repo.size() == 1;\n assert repot.size() == 1;\n assert repon.size() == 1;\n }\n catch (ValidationException e){\n }\n }", "private void deleteEmployeeBooking() {\n BookingModel bookingModel1 = new BookingModel();\n try {\n bookingModel1.deleteBooking(employeeID);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "@Override\n\tpublic boolean delete() {\n\t\tString sql=\"DELETE FROM tc_student where id=\"+id;\n\t\t//`\n\t\t\n\t\tSystem.out.println(sql);\n\t\treturn mysql.execute(sql);\n\t}", "@Override\n\tpublic boolean delete(Patient model) {\n\t\treturn false;\n\t}", "private Delete() {}", "private Delete() {}", "@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"no goin\");\n\t\t\n\t}", "public void delete() {\n\n }", "@Test\n public void deleteDoctor() {\n\t\tList<Doctor> doctors = drepository.findByName(\"Katri Halonen\");\n\t\tassertThat(doctors).hasSize(1);\n \tdrepository.deleteById((long) 3);\n \tdoctors = drepository.findByName(\"Katri Halonen\");\n \tassertThat(doctors).hasSize(0);\n }", "void delete(Exam exam);", "@Override\n\t\tpublic void delete() {\n\t\t\tSystem.out.println(\"새로운 삭제\");\n\t\t}", "@DELETE\n public void delete() {\n }", "@DELETE\n public void delete() {\n }", "@Override\n\tpublic void delete() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public String deleteEmployee(EmployeeDetails employeeDetails);", "@Test\r\n public void testDelete() throws Exception {\r\n bank.removePerson(p2);\r\n assertEquals(bank.viewAllPersons().size(), 1);\r\n assertEquals(bank.viewAllAccounts().size(), 1);\r\n }", "public void deleteParticipacao(Integer id) {\n participacaoRepository.deleteById(id);\n //listClient();\n \n}", "@Override\r\n\tpublic void delete() {\n\r\n\t}", "public void eliminar(CategoriaArticuloServicio categoriaArticuloServicio)\r\n/* 24: */ {\r\n/* 25:53 */ this.categoriaArticuloServicioDao.eliminar(categoriaArticuloServicio);\r\n/* 26: */ }", "@Test\n void deleteSuccess() {\n dao.delete(dao.getById(3));\n assertNull(dao.getById(3));\n }", "@Override\n\tpublic void delete() {\n\n\t}", "@Override\n\tpublic boolean delete(Tbuniversity tbuniversity) {\n\t\tboolean result= false;\n\t\tif(tbuniversityDAO.delete(tbuniversity)){\n\t\t\tresult =true;\n\t\t}\n\t\treturn result;\n\t}", "@DELETE\n public void delete() {\n }", "@Test\n void deleteSuccess() {\n dao.delete(dao.getById(2));\n assertNull(dao.getById(2));\n }", "@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 삭제를 하다.\");\n\t}", "@Test\n public void testExclui() {\n System.out.println(\"exclui\");\n Object obj = null;\n AdministradorDAO instance = new AdministradorDAO();\n instance.exclui(obj);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public String deleteUserDetails() {\n\r\n EntityManager em = CreateEntityManager.getEntityManager();\r\n EntityTransaction etx = em.getTransaction(); \r\n\r\n try { \r\n etx.begin(); \r\n if (golfUserDetails.getUserId() != null) {\r\n em.remove(em.merge(golfUserDetails));\r\n }\r\n etx.commit();\r\n em.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"deleteCourseDetails - remove : Exception : \" + ex.getMessage());\r\n }\r\n \r\n return displayHomePage();\r\n }", "@Override\n\tpublic void delete(ExperTypeVO expertypeVO) {\n\n\t}", "@Override\n\tpublic void delRec() {\n\t\t\n\t}", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "@Override\n public void delete() {\n\n\n }", "@Test\n\tpublic void testDelete(){\n\t}", "@Test\r\n public void testDeleteById() {\r\n System.out.println(\"deleteById\");\r\n int id = 0;\r\n AbonentDAL instance = new AbonentDAL();\r\n Abonent expResult = null;\r\n Abonent result = instance.deleteById(id);\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 }", "@Override\npublic int delete(Department department) {\n\treturn 0;\n}", "public void delete()\n {\n call(\"Delete\");\n }", "@Test\r\n public void testDelete() throws Exception {\r\n System.out.println(\"delete\");\r\n Bureau obj = new Bureau(0,\"Test\",\"000000000\",\"\");\r\n BureauDAO instance = new BureauDAO();\r\n instance.setConnection(dbConnect);\r\n obj = instance.create(obj);\r\n instance.delete(obj);\r\n try {\r\n instance.read(obj.getIdbur());\r\n fail(\"exception de record introuvable non générée\");\r\n }\r\n catch(SQLException e){}\r\n //TODO vérifier qu'on a bien une exception en cas de record parent de clé étrangère\r\n }", "@Override\n\tpublic void deleteEmployee() {\n\n\t}", "@Test\n public void deleteCategory_Deletes(){\n int returned = testDatabase.addCategory(category);\n testDatabase.deleteCategory(returned);\n assertEquals(\"deleteCategory - Deletes From Database\", null, testDatabase.getCategory(returned));\n }", "@Test\n public void deleteContact() {\n }", "private void deleteItem()\n {\n Category categoryToDelete = dataCategories.get(dataCategories.size()-1);\n AppDatabase db = Room.databaseBuilder(getApplicationContext(),\n AppDatabase.class, \"database-name\").allowMainThreadQueries().build();\n db.categoryDao().delete(categoryToDelete);\n testDatabase();\n }", "public void delete() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.delete(this);\r\n\t}", "void deletePatient(Patient target);", "@Override\r\n\tpublic void MemberDelete() {\n\r\n\t}", "@Test\n public void testDeleteTeacher() {\n System.out.println(\"deleteTeacher\");\n School instance = new School();\n instance.setTeachers(teachers);\n instance.setTeacherClass(teacherClass);\n\n assertFalse(instance.deleteTeacher(teacher));\n System.out.println(\"PASS with a teacher currently teaching a class\");\n\n assertTrue(instance.deleteTeacher(teacher3));\n teachers.remove(teacher3.getId());\n assertEquals(teachers, instance.getTeachers());\n System.out.println(\"PASS with a teacher currently not teaching any classes\");\n\n System.out.println(\"PASS ALL\");\n }", "int deleteByExample(CliStaffProjectExample example);", "int deleteByExample(WstatTeachingClasshourTeacherExample example);", "int deleteByExample(TrainingCourseExample example);", "public void delete(int TrainingId, int loggedInUserId) {\n\r\n\t}", "@Test\n public void test5Delete() {\n \n System.out.println(\"Prueba deSpecialityDAO\");\n SpecialityFactory factory = new MysqlSpecialityDAOFactry();\n SpecialityDAO dao = factory.create();\n assertEquals(dao.delete(\"telecomunicaciones\"),1);\n }", "void DeleteCompteUser(int id);", "@Override\n\tpublic void deleteExam(ExamBean exam) {\n\t\t\n\t}", "@Override\r\n\tpublic String delete() {\n\t\tList<Object> paramList=new ArrayList<Object>();\r\n\t\tparamList.add(admin.getAdminAccount());\r\n\t\tboolean mesg=false;\r\n\t\tif(adminDao.doDelete(paramList)==1)\r\n\t\t\tmesg=true;\r\n\t\tthis.setResultMesg(mesg, \"ɾ³ý\");\r\n\t\treturn SUCCESS;\r\n\t}", "@Override\n\tpublic void delete(Facture y) {\n\t\t\n\t}", "@Transactional\n\t@Override\n\tpublic String delete(Detail t) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void deleteStudentById(long id) {\n\t\t\n\t}", "@Test\n void deleteSuccess() {\n genericDAO.delete(genericDAO.getByID(2));\n assertNull(genericDAO.getByID(2));\n }", "@Override\r\n\tpublic void delete() {\n\t\tString delete=\"DELETE FROM members WHERE id =?\";\r\n\t\t try(Connection connection=db.getConnection();) {\r\n\t\t\t\t\r\n\t\t\t\tpreparedStatement=connection.prepareStatement(delete);\r\n\t\t\t\tpreparedStatement.setString(1, super.getIdString());\r\n\t\t \tpreparedStatement.executeUpdate();\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Transaction successful\");\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Something went wrong\");\r\n\t\t\t}\r\n\t}", "@Override\r\n\tpublic String delete() {\n\t\treturn \"delete\";\r\n\t}", "public void delete(User user)throws Exception;", "@Override\npublic void deleteById(String id) {\n\t\n}", "@Override\r\npublic int delete(int id) {\n\treturn detalle_pedidoDao.delete(id);\r\n}", "int deleteByExample(ReEducationExample example);", "public void delete(Long id) {\n log.debug(\"Request to delete Faculty : {}\", id);\n facultyRepository.deleteById(id);\n }", "@Override\r\n\tpublic void delete(Employee arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void delete() {\n\t\t\n\t}", "@Override\n\tpublic void delete() {\n\t\t\n\t}", "public void deleteStudent(Student student) {\n\t\t\r\n\t}", "public String delete() {\r\n\t\tVendorMasterModel model = new VendorMasterModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tboolean result = model.delete(vendorMaster);\r\n\t\tif (result) {\r\n\t\t\taddActionMessage(\"Record Deleted Successfully.\");\r\n\t\t\treset();\r\n\t\t}// end of if\r\n\t\telse {\r\n\t\t\taddActionMessage(\"This record is referenced in other resources.So can't delete.\");\r\n\t\t\treset();\r\n\t\t}// end of else\r\n\t\tmodel.Data(vendorMaster, request);\r\n\t\tmodel.terminate();\r\n\t\tgetNavigationPanel(1); \r\n\t\treturn \"success\";\r\n\t}", "int deleteByExample(CxBasStaffExample example);", "@Override\n\t@Action(\"delete\")\n\t@LogInfo(optType=\"删除\")\n\tpublic String delete() throws Exception {\n\t\ttry {\n\t\t\tString str=sampleManager.deleteEntity(deleteIds);\n\t\t\tStruts2Utils.getRequest().setAttribute(LogInfo.MESSAGE_ATTRIBUTE, \"删除数据:单号:\"+str);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\trenderText(\"删除失败:\" + e.getMessage());\n\t\t\tlog.error(\"删除数据信息失败\",e);\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public void removeFromDb() {\n }", "public void attributDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}", "public void deleteUserRecord() {\n\t\tSystem.out.println(\"Calling deleteUserRecord() Method To Delete User Record\");\n\t\tuserDAO.deleteUser(user);\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Studente : {}\", id); studenteRepository.deleteById(id);\n }", "@Test\r\n\tpublic void testCascadeDelete() {\r\n\t\tSet<Student> students = studentDao.getStudentByName(\"lucy\");\r\n\t\tif(students != null) {\r\n\t\t\tfor(Student student : students) {\r\n\t\t\t\tstudentDao.delete(student);\r\n\t\t\t}\r\n\t\t}\r\n\t\tlogger.debug(confidentialDao.loadAll());\r\n\t\t\r\n\t}", "int deleteByExample(TbExpressTraceExample example);", "@Test\n public void deleteById() {\n User user = new User();\n user.setId(1259474874313797634L);\n boolean ifDelete = user.deleteById();\n System.out.println(ifDelete);\n }", "public void deleteDepartmentByDeptNo(int dept_no);", "@Test\n void testDeleteUser() {\n List<User> allUsers = userData.crud.getAll();\n int deleteId = allUsers.get((allUsers.size() - 1)).getId();\n userData.crud.deleteRecord(userData.crud.getById(deleteId));\n assertNull(userData.crud.getById(deleteId));\n // List<User> allUsersMinusOne = userData.crud.getAll();\n // assertNotEquals(allUsersMinusOne, allUsers);\n logger.info(\"Deleted record for ID: \" + deleteId);\n\n LocationData locationData = new LocationData();\n Location location = new Location();\n Set<Location> userLocations = location.getLocations((User) userData.crud.getById(deleteId));\n\n assertEquals(0, userLocations.size());\n\n }", "public void deleteUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk deleteUser\");\r\n\t}", "public void deleteResults(){\n }", "int deleteByExample(RegsatUserExample example);", "int deleteByExample(BehaveLogExample example);", "public abstract boolean delete(Log log) throws DataException;", "@Test\n void deleteSuccess() {\n genericDao.delete(genericDao.getById(3));\n assertNull(genericDao.getById(3));\n }", "private void excluirAction() {\r\n Integer i = daoPedido.excluir(this.pedidoVO);\r\n\r\n if (i != null && i > 0) {\r\n msg = activity.getString(R.string.SUCCESS_excluido, pedidoVO.toString());\r\n Toast.makeText(activity, msg + \"(\" + i + \")\", Toast.LENGTH_SHORT).show();\r\n Log.i(\"DB_INFO\", \"Sucesso ao Alterar: \" + this.pedidoVO.toString());\r\n\r\n// this.adapter.remove(this.pedidoVO);\r\n this.refreshData(2);\r\n } else {\r\n msg = activity.getString(R.string.ERROR_excluir, pedidoVO.toString());\r\n Toast.makeText(activity, msg, Toast.LENGTH_SHORT).show();\r\n Log.e(\"DB_INFO\", \"Erro ao Excluir: \" + this.pedidoVO.toString());\r\n }\r\n }", "void delete() {\r\n\t\t\r\n\t\tSystem.out.println(\"This method is from subject class for abstract1\");\r\n\t\t\r\n\t}", "@Override\n public void delete()\n {\n }", "public void deletePerson(){\r\n\r\n\t/*get values from text fields*/\r\n\tname = tfName.getText();\r\n\r\n\tif(name.equals(\"\"))\r\n\t{\r\n\t\tJOptionPane.showMessageDialog(null,\"Please enter person name to delete.\");\r\n\t}\r\n\telse\r\n\t{\r\n\t\t/*remove Person of the given name*/\r\n\t\tint no = pDAO.removePerson(name);\r\n\t\tJOptionPane.showMessageDialog(null, no + \" Record(s) deleted.\");\r\n\t}\r\n }", "public boolean delete(ModelObject obj);", "@Override\n public void delStudent(Student student)\n {\n sf.getCurrentSession().delete(student);\n }", "@Override\n\tpublic void deleteUser() {\n\t\tLog.d(\"HFModuleManager\", \"deleteUser\");\n\t}", "int deleteByExample(AdminTabExample example);" ]
[ "0.73290944", "0.68838984", "0.67602944", "0.67213315", "0.6666591", "0.6610487", "0.65914047", "0.6579245", "0.6564933", "0.6555389", "0.6551897", "0.652916", "0.652916", "0.6525323", "0.64516777", "0.64474076", "0.64047104", "0.6397284", "0.6386277", "0.6386277", "0.63711447", "0.6352062", "0.6349644", "0.63392496", "0.6310319", "0.6303998", "0.62969214", "0.6294384", "0.62916636", "0.6277476", "0.62564695", "0.6250101", "0.62460697", "0.62435424", "0.623485", "0.6231289", "0.6228652", "0.6218754", "0.62173444", "0.6210849", "0.62056124", "0.62020355", "0.6195744", "0.6191437", "0.6186267", "0.618564", "0.6179171", "0.6168457", "0.6167757", "0.6160956", "0.6159506", "0.61591184", "0.61515754", "0.6150823", "0.61458915", "0.61435586", "0.6143398", "0.6142764", "0.6139417", "0.61392576", "0.61361754", "0.6130285", "0.61270356", "0.612623", "0.6122161", "0.6121072", "0.61200976", "0.61197245", "0.61138546", "0.6111404", "0.61098707", "0.6108835", "0.6108835", "0.6107368", "0.6106697", "0.6104357", "0.6103867", "0.609792", "0.6096268", "0.60916275", "0.60881966", "0.60809153", "0.6080496", "0.6080324", "0.60650027", "0.60635483", "0.6063338", "0.6061588", "0.6060768", "0.60601705", "0.6057781", "0.6057631", "0.60575926", "0.60563856", "0.60558814", "0.6053141", "0.60512286", "0.6051058", "0.60476583", "0.6046716" ]
0.67967033
2
log.debug("Faculty Model findByPK method Started");
public FacultyBean findByPk(long pk) throws ApplicationException { StringBuffer sql = new StringBuffer("SELECT * FROM ST_FACULTY WHERE ID=?"); Connection conn = null; FacultyBean bean = null; try { conn = JDBCDataSource.getConnection(); PreparedStatement pstmt = conn.prepareStatement(sql.toString()); pstmt.setLong(1, pk); ResultSet rs = pstmt.executeQuery(); while (rs.next()) { bean = new FacultyBean(); bean.setId(rs.getLong(1)); bean.setCollegeId(rs.getLong(2)); bean.setSubjectId(rs.getLong(3)); bean.setCourseId(rs.getLong(4)); bean.setFirstName(rs.getString(5)); bean.setLastName(rs.getString(6)); bean.setGender(rs.getString(7)); bean.setDob(rs.getDate(8)); bean.setEmailId(rs.getString(9)); bean.setMobileNo(rs.getString(10)); bean.setCourseName(rs.getString(11)); bean.setCollegeName(rs.getString(12)); bean.setSubjectName(rs.getString(13)); bean.setCreatedBy(rs.getString(14)); bean.setModifiedBy(rs.getString(15)); bean.setCreatedDatetime(rs.getTimestamp(16)); bean.setModifiedDatetime(rs.getTimestamp(17)); } rs.close(); } catch (Exception e) { e.printStackTrace(); // log.error("database exception ..." , e); throw new ApplicationException("Exception : Exception in findByPK in faculty model"); } finally { JDBCDataSource.closeConnection(conn); } //log.debug("Faculty Model FindByPK method end"); return bean; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CourseDTO findByPK(long pk) throws ApplicationException {\n\t\t// TODO Auto-generated method stub\n\t\t log.debug(\"Model findByPK Started\");\n\t StringBuffer sql = new StringBuffer(\n\t \"SELECT * FROM ST_COURSE WHERE ID=?\");\n\t CourseDTO dto = null;\n\t Connection conn = null;\n\t try {\n\n\t conn = JDBCDataSource.getConnection();\n\t PreparedStatement pstmt = conn.prepareStatement(sql.toString());\n\t pstmt.setLong(1, pk);\n\t ResultSet rs = pstmt.executeQuery();\n\t while (rs.next()) {\n\t dto = new CourseDTO();\n\t dto.setId(rs.getLong(1));\n\t \tdto.setName(rs.getString(2));\n\t \tdto.setCourceId(rs.getLong(3));\n\t \tdto.setDuration(rs.getInt(4));\n\t dto.setCreatedBy(rs.getString(5));\n\t \tdto.setModifiedBy(rs.getString(6));\n\t \tdto.setCreatedDatetime(rs.getTimestamp(7));\n\t \tdto.setModifiedDatetime(rs.getTimestamp(8));\n\t \t\n\t }\n\t rs.close();\n\t } catch (Exception e) {\n\t log.error(\"Database Exception..\", e);\n\t throw new ApplicationException(\n\t \"Exception : Exception in getting College by pk\");\n\t } finally {\n\t JDBCDataSource.closeConnection(conn);\n\t }\n\t log.debug(\"Model findByPK End\");\n\t return dto;\n\n\t}", "public Ruta findByPrimaryKey(RutaPk pk) throws RutaDaoException;", "public Student findById(int theStudent_id);", "public UserDTO findByPk(long pk) throws ApplicationException {\n\t\tlog.debug(\"Model findByPK started\");\n\t\tStringBuffer sql = new StringBuffer(\"select * from st_user where id=?\");\n\n\t\tUserDTO dto = null;\n\t\tConnection conn = null;\n\n\t\ttry {\n\t\t\tconn = JDBCDataSource.getConnection();\n\t\t\tSystem.out.println(\"in login do get connection \" + conn);\n\t\t\tPreparedStatement stmt = conn.prepareStatement(sql.toString());\n\t\t\tstmt.setLong(1, pk);\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tdto = new UserDTO();\n\t\t\t\tdto.setId(rs.getLong(1));\n\t\t\t\tdto.setFirstName(rs.getString(2));\n\t\t\t\tdto.setLastName(rs.getString(3));\n\t\t\t\tdto.setEmail(rs.getString(4));\n\t\t\t\tdto.setPassword(rs.getString(5));\n\t\t\t\tdto.setDob(rs.getDate(6));\n\t\t\t\tdto.setMobileNo(rs.getString(7));\n\t\t\t\tdto.setRoleId(rs.getLong(8));\n\t\t\t\tdto.setGender(rs.getString(9));\n\t\t\t\tdto.setCreatedBy(rs.getString(10));\n\t\t\t\tdto.setModifiedBy(rs.getString(11));\n\t\t\t\tdto.setCreatedDatetime(rs.getTimestamp(12));\n\t\t\t\tdto.setModifiedDatetime(rs.getTimestamp(13));\n\n\t\t\t}\n\t\t\trs.close();\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t\tlog.error(\"Database Exception..\", e);\n\t\t\tthrow new ApplicationException(\"Exception : Exception in getting User by pk\");\n\t\t} finally {\n\t\t\tJDBCDataSource.closeConnection(conn);\n\t\t}\n\t\tlog.debug(\"Model findByPK End\");\n\t\treturn dto;\n\n\t}", "public Faq findByPrimaryKey(FaqPk pk) throws FaqDaoException;", "@Test\n public void test4FindPk() {\n SpecialityFactory factory = new MysqlSpecialityDAOFactry();\n SpecialityDAO dao = factory.create();\n SpecialityDTO respuesta = dao.findPk(\"telecomunicaciones\");\n assertEquals(respuesta,spec2);\n }", "ProEmployee selectByPrimaryKey(String id);", "public int getEmployeePK() {\n return employeePK;\n}", "public Tipo findByPrimaryKey(TipoPk pk) throws TipoDaoException;", "public Student findStudent(int id);", "T findById(long pk);", "protected void checkFindByPrimaryKey(DetailAST aAST)\n {\n if (!Utils.hasPublicMethod(aAST, \"findByPrimaryKey\", false, 1))\n {\n final DetailAST nameAST = aAST.findFirstToken(TokenTypes.IDENT);\n log(\n aAST.getLineNo(),\n nameAST.getColumnNo(),\n \"missingmethod.bean\",\n new Object[] {\"Home interface\", \"findByPrimaryKey\"});\n }\n }", "public SgfensBanco findByPrimaryKey(SgfensBancoPk pk) throws SgfensBancoDaoException;", "public NominaPuesto findByPrimaryKey(NominaPuestoPk pk) throws NominaPuestoDaoException;", "public E findById(Serializable pk) ;", "public TipologiaStruttura findByPrimaryKey(TipologiaStrutturaPk pk) throws TipologiaStrutturaDaoException;", "ExamRoom selectByPrimaryKey(Integer pkid);", "public DatiBancari findByPrimaryKey(DatiBancariPk pk) throws DatiBancariDaoException;", "public Cliente findByPrimaryKey(ClientePk pk) throws ClienteDaoException;", "ProSchoolWare selectByPrimaryKey(String id);", "O obtener(PK id) throws DAOException;", "@Test\n public void selectById(){\n User user=iUserDao.selectById(\"158271202\");\n System.out.println(user.toString());\n }", "TblSecuencia findByIdSecuencia(long idSecuencia );", "public Employee findEmployee(Long id);", "LawPerson selectByPrimaryKey(Long personId);", "ROmUsers selectByPrimaryKey(String pkUserid);", "PracticeClass selectByPrimaryKey(PracticeClassKey key);", "@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}", "StudentGuardian selectByPrimaryKey(Integer id);", "public interface ParticipatorDao extends CrudRepository<Participator,Integer>{\n public Collection<Participator> findByAdmissionnum(int admissionnum);\n}", "Employee selectByPrimaryKey(String id);", "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 }", "FctWorkguide selectByPrimaryKey(Long autoid);", "Miss_control_log selectByPrimaryKey(String loginuuid);", "StudentEntity selectByPrimaryKey(String studentId);", "TResearchTeach selectByPrimaryKey(Long researchid);", "HospitalType selectByPrimaryKey(String id);", "R_dept_user selectByPrimaryKey(Integer id);", "@Override\n\tpublic User find(int id) {\n\t\tSystem.out.println(\"OracleDao is find\");\n\t\treturn null;\n\t}", "@Override\n public CerereDePrietenie findOne(Long aLong) {\n// String SQL = \"SELECT id,id_1,id_2,status,datac\"\n// + \"FROM cereredeprietenie \"\n// + \"WHERE id = ?\";\n//\n// try (Connection conn = connect();\n// PreparedStatement pstmt = conn.prepareStatement(SQL)) {\n//\n// pstmt.setInt(1, Math.toIntExact(aLong));\n// ResultSet rs = pstmt.executeQuery();\n//\n// while(rs.next()) {\n// Long id = rs.getLong(\"id\");\n// Long id_1 = rs.getLong(\"id_1\");\n// Long id_2 = rs.getLong(\"id_2\");\n//\n// String status = rs.getString(\"status\");\n// LocalDateTime data = rs.getObject( 5,LocalDateTime.class);\n//\n// Utilizator u1=repository.findOne(id_1);\n// Utilizator u2=repository.findOne(id_2);\n//\n// CerereDePrietenie u =new CerereDePrietenie(u1,u2);\n// u.setId(id);\n// u.setStatus(status);\n// u.setData(data);\n// return u;\n// }\n//\n//\n// } catch (SQLException ex) {\n// System.out.println(ex.getMessage());\n// }\n//\n// return null;\n List<CerereDePrietenie> list=new ArrayList<>();\n findAll().forEach(list::add);\n for(CerereDePrietenie cerere: list){\n if(cerere.getId() == aLong)\n return cerere;\n }\n return null;\n }", "Student findById(String id);", "FactRoomLog selectByPrimaryKey(Integer id);", "public void findbyid() throws Exception {\n try {\n Con_contadorDAO con_contadorDAO = getCon_contadorDAO();\n List<Con_contadorT> listTemp = con_contadorDAO.getByPK( con_contadorT);\n\n con_contadorT= listTemp.size()>0?listTemp.get(0):new Con_contadorT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }", "@Test\n public void testFindById() {\n System.out.println(\"findById\");\n Integer id = 1;\n PrioridadRest instance = mokPrioridadRest;\n Prioridad expResult = new Prioridad(1);\n Prioridad result = instance.findById(id);\n assertEquals(expResult, result);\n \n }", "Employee findById(int id);", "@Test\r\n public void testSelectById() {\r\n System.out.println(\"selectById\");\r\n int id = 1;\r\n AbonentDAL instance = new AbonentDAL();\r\n Abonent result = instance.selectById(id);\r\n assertTrue(result!=null && result.getId()==id);\r\n }", "public Utente findByPrimaryKey(UtentePk pk) throws UtenteDaoException\n\t{\n\t\treturn findByPrimaryKey( pk.getUteId() );\n\t}", "StudentInfo selectByPrimaryKey(Integer id);", "Student selectByPrimaryKey(Integer userid);", "@Test\n void getByIdSuccess() {\n logger.info(\"running getByID test\");\n User retrievedUser = (User)genericDao.getById(2);\n\n assertEquals(\"BigAl\", retrievedUser.getUserName());\n assertEquals(\"Albert\", retrievedUser.getFirstName());\n assertEquals(2, retrievedUser.getId());\n assertEquals(\"Einstein\", retrievedUser.getLastName());\n assertEquals(\"11223\", retrievedUser.getZipCode());\n assertEquals(LocalDate.of(1879,3,14), retrievedUser.getBirthDate());\n\n }", "public Doctor findById(int id);", "Kaiwa selectByPrimaryKey(String maht);", "public Employee getStudentOnId(int id);", "BehaveLog selectByPrimaryKey(Integer id);", "AccessModelEntity selectByPrimaryKey(String id);", "@Override\r\npublic int selectByPrimaryKey(Integer possalesdetailid) {\n\t\r\n\tPossalesdetail p= possalesdetail.selectByPrimaryKey(possalesdetailid);\r\n if(p.getPossalesdetailid()>0){\r\n \t\r\n \treturn 1;\r\n } else{\r\n\t return 0;\r\n }\r\n}", "public Integer nextPk() throws ApplicationException {\n\t\t//\tlog.debug(\"Faculty Model nextPK method Started\");\n\t\t\tConnection conn = null;\n\t\t\tint pk = 0;\n\t\t\ttry {\n\t\t\t\tconn = JDBCDataSource.getConnection();\n\t\t\t\tPreparedStatement pstmt = conn.prepareStatement(\"SELECT MAX(id) FROM ST_FACULTY\");\n\t\t\t\tResultSet rs = pstmt.executeQuery();\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tpk = rs.getInt(1);\n\t\t\t\t}\n\t\t\t\trs.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\t//log.error(\"DataBase Exception ..\", e);\n\t\t\t\tthrow new ApplicationException(\"Exception in Getting the PK\");\n\t\t\t} finally {\n\t\t\t\tJDBCDataSource.closeConnection(conn);\n\t\t\t}\n\t\t\t//log.debug(\"Faculty Model nextPK method End\");\n\t\t\treturn pk + 1;\n\t\t}", "public interface PersonRepository extends CrudRepository<Person, Long> {\n\n Person findOneByDesk_Id(Long id);\n}", "QuestionOne selectByPrimaryKey(Integer id);", "@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}", "PrhFree selectByPrimaryKey(Integer id);", "Teacher selectByPrimaryKey(Integer pkid);", "TrainingCourse selectByPrimaryKey(String id);", "Name findNameByPersonPrimary(int idPerson);", "LoginRecordDO selectByPrimaryKey(Long id);", "public Premie findById(Long premieid){\n return premieRepository.findById(premieid).get();\n }", "CrmDept selectByPrimaryKey(String deptCode);", "E findById(K id);", "@Override\n\tpublic User findByKey(Integer id) {\n\t\treturn null;\n\t}", "public void searchStudentByCode(String id) {\r\n System.out.println(\"conectado con model ---> metodo searchStudentByCode\");\r\n //TODO\r\n }", "public Tipo findByPrimaryKey(Integer idTipo) throws TipoDaoException;", "Student selectByPrimaryKey(Integer id);", "Caiwu selectByPrimaryKey(Integer id);", "List<Patient> findPatients(Employee nurse_id);", "Assist_table selectByPrimaryKey(Integer user);", "User selectByPrimaryKey(String id);", "Question selectByPrimaryKey(String questionId);", "Student selectByPrimaryKey(Integer studentId);", "PersonRegisterDo selectByPrimaryKey(Long id);", "FinancialManagement selectByPrimaryKey(Integer fId);", "@Test\n public void testFindBySsoId() {\n LOGGER.info(\"findBySsoId\");\n String ssoId = \"sam\";\n AppUser result = userRepo.findBySsoId(ssoId);\n assertNotNull(result);\n }", "@Test\n @Transactional\n public void testFindByCategory() {\n\n List<ForumThread> forumThreads = new ArrayList<>();\n forumThreads = forumThreadDAO.findByCategory(\"NEWS\");\n\n logger.info(\"Forum Threads: -> {}\", forumThreads.toString());\n }", "PrescriptionVerifyRecordDetail selectByPrimaryKey(String id);", "ResumePractice selectByPrimaryKey(Integer id);", "T getByPk(int key) throws PersistException;", "Object getPrimaryKey() throws IllegalStateException;", "public void findbyid() throws Exception {\n try {\n Ume_unidade_medidaDAO ume_unidade_medidaDAO = getUme_unidade_medidaDAO();\n List<Ume_unidade_medidaT> listTemp = ume_unidade_medidaDAO.getByPK( ume_unidade_medidaT);\t \n\n ume_unidade_medidaT= listTemp.size()>0?listTemp.get(0):new Ume_unidade_medidaT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }", "PrimaryKey getPrimaryKey();", "@Override\n\tpublic Empdetails findById(int empid) {\n\t\t\t\treturn empDAO.findById(empid);\n\t}", "@Test\n public void testSelectById() {\n disciplineTest = disciplineDao.selectById(1);\n boolean result = disciplineTest.getId() == 1;\n assertTrue(result);\n }", "@Test\r\n\tpublic void findByIdMaterialCategoryTest() {\r\n\t\t// Your Code Here\r\n\r\n\t}", "@Test\n public void testFindByLogin() throws Exception {\n String userName = String.valueOf(databaseTester.getConnection().createDataSet().getTable(\"User\")\n .getValue(0, \"login\"));\n// User user = jdbcUserDao.findByLogin(userName);\n// assertNotNull(\"Should find user by login\", user);\n }", "public RelacionConceptoEmbalaje findByPrimaryKey(RelacionConceptoEmbalajePk pk) throws RelacionConceptoEmbalajeDaoException;", "public SmsAgendaGrupo findByPrimaryKey(SmsAgendaGrupoPk pk) throws SmsAgendaGrupoDaoException;", "@Test\n public void findByIdTest() {\n }", "@Test\n public void findByIdTest() {\n }", "SsSocialSecurityAccountVO selectByPrimaryKey(Long socialSecurityAccountId);", "@Override\n\tpublic void baja(Integer pk) {\n\t\t\n\t}", "@Test\r\n\tpublic void testFindById() throws NoSuchDatabaseEntryException {\r\n\t\tQuestion q = new Question(\"Empty\", 1, 20, quizzes, null, choices);\r\n\t\tdao.create(q);\r\n\t\tassertEquals(q, dao.findById(q.getId()));\r\n\t}", "@Test\n\tpublic void findByUserID() {\n\t\tRegistrationDetails registrationDetailsForHappyPath = RegistrationHelper.getRegistrationDetailsForHappyPath();\n\t\ttry {\n\t\t\tem.getTransaction().begin();\n\t\t\tRegistrationDetails addRegistrationDetails = registrationDAO\n\t\t\t\t\t.addRegistrationDetails(registrationDetailsForHappyPath);\n\t\t\tem.getTransaction().commit();\n\t\t\t//fetch the registration object\n\t\t\tRegistrationDetails findByUserID = registrationDAO.findByUserID(addRegistrationDetails.getUserid());\n\t\t\tassertNotNull(findByUserID);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\t}" ]
[ "0.685632", "0.6455775", "0.6408238", "0.63895774", "0.63674426", "0.63447714", "0.63369656", "0.63092", "0.63027513", "0.61605024", "0.61554015", "0.6146185", "0.6143202", "0.61043495", "0.6090742", "0.6070179", "0.6054955", "0.6040393", "0.6037975", "0.6012583", "0.59831595", "0.5922751", "0.59107566", "0.58857894", "0.5882976", "0.5875888", "0.58737755", "0.5865067", "0.58567584", "0.5851539", "0.5843961", "0.5819889", "0.5815798", "0.58074707", "0.5804558", "0.57866776", "0.57759905", "0.5754246", "0.57479525", "0.5738844", "0.57323277", "0.57243925", "0.5721599", "0.5720067", "0.5709635", "0.57043666", "0.57016134", "0.56971824", "0.5695509", "0.5692236", "0.569159", "0.5687278", "0.5676157", "0.56643665", "0.566112", "0.5658707", "0.5653603", "0.56447864", "0.5631873", "0.5631814", "0.5626089", "0.56209534", "0.5620223", "0.5617783", "0.56168413", "0.56137586", "0.5604776", "0.5603275", "0.56013036", "0.5600151", "0.55896926", "0.55855316", "0.55853343", "0.55832976", "0.55785066", "0.5573951", "0.55734545", "0.55730516", "0.55698496", "0.5567598", "0.55648476", "0.55645466", "0.55559933", "0.5555528", "0.5549216", "0.55435234", "0.5542352", "0.5538784", "0.55325145", "0.5530809", "0.5529263", "0.55278003", "0.5524005", "0.5520733", "0.55190283", "0.55190283", "0.5519004", "0.5517132", "0.55164254", "0.55152524" ]
0.7070726
0
log.debug("Faculty Model search method Started");
public List search(FacultyBean bean, int pageNo, int pageSize) throws ApplicationException { System.out.println("faculty model"); StringBuffer sql = new StringBuffer("SELECT * FROM ST_FACULTY WHERE true"); if (bean!=null) { if (bean.getId()>0) { sql.append(" AND id = " + bean.getId()); } if (bean.getCollegeId() > 0) { sql.append(" AND college_Id = " + bean.getCollegeId()); } if (bean.getFirstName() != null && bean.getFirstName().trim().length() > 0) { sql.append(" AND FIRST_NAME like '" + bean.getFirstName() + "%'"); } if (bean.getLastName() != null && bean.getLastName().trim().length() > 0) { sql.append(" AND LAST_NAME like '" + bean.getLastName() + "%'"); } if (bean.getEmailId()!=null && bean.getEmailId().length()>0) { sql.append(" AND Email_Id like '" + bean.getEmailId() + "%'"); } if (bean.getGender()!=null && bean.getGender().length()>0) { sql.append(" AND Gender like '" + bean.getGender() + "%'"); } if (bean.getMobileNo()!=null && bean.getMobileNo().length()>0) { sql.append(" AND Mobile_No like '" + bean.getMobileNo() + "%'"); } if (bean.getCollegeName()!=null && bean.getCollegeName().length()>0) { sql.append(" AND college_Name like '" + bean.getCollegeName() + "%'"); } if (bean.getCourseId() > 0) { sql.append(" AND course_Id = " + bean.getCourseId()); } if (bean.getCourseName()!=null && bean.getCourseName().length()>0) { sql.append(" AND course_Name like '" + bean.getCourseName() + "%'"); } if (bean.getSubjectId() > 0) { sql.append(" AND Subject_Id = " + bean.getSubjectId()); } if (bean.getSubjectName()!=null && bean.getSubjectName().length()>0) { sql.append(" AND subject_Name like '" + bean.getSubjectName() + "%'"); } } // if page no is greater then zero then apply pagination System.out.println("model page ........"+pageNo +" "+pageSize); if(pageSize>0){ pageNo = (pageNo-1)*pageSize; sql.append(" limit "+pageNo+ " , " + pageSize); } System.out.println("final sql "+sql); Connection conn = null; ArrayList list = new ArrayList(); try{ conn = JDBCDataSource.getConnection(); PreparedStatement pstmt = conn.prepareStatement(sql.toString()); ResultSet rs = pstmt.executeQuery(); while (rs.next()) { bean = new FacultyBean(); bean.setId(rs.getLong(1)); bean.setCollegeId(rs.getLong(2)); bean.setSubjectId(rs.getLong(3)); bean.setCourseId(rs.getLong(4)); bean.setFirstName(rs.getString(5)); bean.setLastName(rs.getString(6)); bean.setGender(rs.getString(7)); bean.setDob(rs.getDate(8)); bean.setEmailId(rs.getString(9)); bean.setMobileNo(rs.getString(10)); bean.setCourseName(rs.getString(11)); bean.setCollegeName(rs.getString(12)); bean.setSubjectName(rs.getString(13)); bean.setCreatedBy(rs.getString(14)); bean.setModifiedBy(rs.getString(15)); bean.setCreatedDatetime(rs.getTimestamp(16)); bean.setModifiedDatetime(rs.getTimestamp(17)); System.out.println("out whiile"); list.add(bean); System.out.println("list size ----------->"+list.size()); } rs.close(); }catch(Exception e){ // log.error("database Exception .. " , e); e.printStackTrace(); // throw new ApplicationException("Exception : Exception in Search method of Faculty Model"); }finally { JDBCDataSource.closeConnection(conn); } // log.debug("Faculty Model search method End"); // System.out.println("retuen >>>>>>>>>>>>>>>"+list.size()); return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void search() {\r\n \t\r\n }", "public void search() {\n }", "@Override\r\n\tpublic void search() {\n\r\n\t}", "private void searchFunction() {\n\t\t\r\n\t}", "public void findallstudentservice() {\n\t\t dao.findallstudent();\r\n\t\t\r\n\t}", "@Override\n\tpublic void search() {\n\t}", "@Override\n\tpublic void search() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 조회를 하다.\");\n\t}", "private void run(){\n AccessLogParser accessLogParser = new AccessLogParser(accessLog);\n accessLogParser.parse();\n\n search();\n\n\n HibernateUtil.shutdown();\n }", "public void searchPerson() {\r\n\r\n\t/*get values from text filed*/\r\n\tname = tfName.getText();\r\n\r\n\t/*clear contents of arraylist if there are any from previous search*/\r\n\tpersonsList.clear();\r\n\r\n // intialize recordNumber to zero\r\n\trecordNumber = 0;\r\n\r\n\tif(name.equals(\"\"))\r\n\t{\r\n\t\tJOptionPane.showMessageDialog(null,\"Please enter person name to search.\");\r\n\t}\r\n\telse\r\n\t{\r\n\t\t/*get an array list of searched persons using PersonDAO*/\r\n\t\tpersonsList = pDAO.searchPerson(name);\r\n\r\n\t\tif(personsList.size() == 0)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(null, \"No record found.\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/*downcast the object from array list to PersonInfo*/\r\n\t\t\tPersonInfo person = (PersonInfo) personsList.get(recordNumber);\r\n\r\n // displaying search record in text fields \r\n\t\t\ttfName.setText(person.getName());\r\n\t\t\ttfAddress.setText(person.getAddress());\r\n\t\t\ttfPhone.setText(\"\"+person.getPhone());\r\n\t\t\ttfEmail.setText(person.getEmail());\r\n\t\t}\r\n\t}\r\n\r\n }", "public void SearchTutor() {\n\t\t\n\t}", "private void doResearch() {\n\t\tSystem.out.println(\"Students must do research\");\n\t}", "public List search(CourseDTO dto, int pageNo, int pageSize) throws ApplicationException {\n\t\t// TODO Auto-generated method stub\n\t\t log.debug(\"Model search Started\");\n\t\t StringBuffer sql = new StringBuffer(\"SELECT * FROM ST_COURCE WHERE 1=1\");\n\t\tSystem.out.println(\"chalu hua\");\n\n\t\tif(dto.getCourceId()>0){\n\t\tCourseModelJDBCImpl cmod = new CourseModelJDBCImpl();\n\t\tCourseDTO cbe = cmod.findByPK(dto.getCourceId());\n\t\tdto.setName(cbe.getName());\n\t\t}\n\n\t\t if (dto != null) {\n\t\t if (dto.getId() > 0) {\n\t\t sql.append(\" AND ID = \" + dto.getId());\n\t\t }\n\t\t \n\t\t /* if (bean.getName() != null && bean.getName().length() > 0) {\n\t\t sql.append(\" AND NAME like '\" + bean.getName()\n\t\t + \"%'\");\n\t\t }\n\t\t \n\t\t if (bean.getCourceId()>0) {\n\t\t sql.append(\" AND COURCE_ID like '\" + bean.getCourceId() + \"'\");\n\t\t }\n\t\t \n\t\t \n\t\t if (bean.getDuration()>0) {\n\t\t sql.append(\" AND DURATION like '\" + bean.getDuration() + \"%'\");\n\t\t }*/\n\t\t \n\t\t }\n\t\t \n\n\t\t // if page size is greater than zero then apply pagination\n\t\t if (pageSize > 0) {\n\t\t // Calculate start record index\n\t\t pageNo = (pageNo - 1) * pageSize;\n\n\t\t sql.append(\" Limit \" + pageNo + \", \" + pageSize);\n\t\t // sql.append(\" limit \" + pageNo + \",\" + pageSize);\n\t\t }\n\t\tSystem.out.println(\"query==== \"+sql);\n\t\t ArrayList list = new ArrayList();\n\t\t Connection conn = null;\n\t\t System.out.println(\"conn ke par hua\");\n\t\t try {\n\t\t conn = JDBCDataSource.getConnection();\n\t\t System.out.println(\"connection create hua\");\n\t\t PreparedStatement pstmt = conn.prepareStatement(sql.toString());\n\t\t System.out.println(\"preap se bahar hua\");\n\t\t ResultSet rs = pstmt.executeQuery();\n\t\t \n\t\tSystem.out.println(\"result set ke bahar aaya\");\n\t\t while(rs.next()){\n\t\t \tdto = new CourseDTO();\t\n\t\t dto.setId(rs.getLong(1));\n\t\t dto.setName(rs.getString(2));\n\t\t dto.setCourceId(rs.getLong(3));\n\t\t dto.setDuration(rs.getInt(4));\n\t\t dto.setCreatedBy(rs.getString(5));\n\t\t dto.setModifiedBy(rs.getString(6));\n\t\t dto.setCreatedDatetime(rs.getTimestamp(7));\n\t\t dto.setModifiedDatetime(rs.getTimestamp(8));\n\t\t list.add(dto);\n\t\t System.out.println(\"khatam hua\");\n\t\t }\n\t\t rs.close();\n\t\t }\n\t\t catch (Exception e) {\n\t\t log.error(\"Database Exception..\", e);\n\t\t throw new ApplicationException(\n\t\t \"Exception : Exception in search Cource\");\n\t\t } finally {\n\t\t JDBCDataSource.closeConnection(conn);\n\t\t }\n\n\t\t log.debug(\"Model search End\");\n\t\t return list;\n\n\n\t}", "public void search() {\n\n lazyModel = new LazyDataModel<Pesquisa>() {\n private static final long serialVersionUID = -6541913048403958674L;\n\n @Override\n public List<Pesquisa> load(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters) {\n\n pesquisarBC.searhValidation(searchParam);\n\n int count = pesquisarBC.count(searchParam);\n lazyModel.setRowCount(count);\n\n if (count > 0) {\n if (first > count) {\n // Go to last page\n first = (count / pageSize) * pageSize;\n }\n SearchFilter parameters = new SearchFilter();\n parameters.setFirst(first);\n parameters.setPageSize(pageSize);\n List<Pesquisa> list = pesquisarBC.search(searchParam, parameters);\n\n logger.info(\"END: load\");\n return list;\n } else {\n return null;\n }\n }\n };\n\n }", "public static void search() {\n int userSelected = selectFromList(crudParamOptions);\n switch (userSelected){\n case 1:\n searchFirstName();\n break;\n case 2:\n searchLastName();\n break;\n case 3:\n searchPhone();\n break;\n case 4:\n searchEmail();\n break;\n default:\n break;\n }\n }", "public void research() throws Exception\r\n\t{\r\n\t\tresult = ((CLibraryManager)AUser.getInstance()).searchUser(jTextField_UserName.getText(),jTextField_UserID.getText(),jTextField_FirstName.getText(),jTextField_LastName.getText());\r\n\t}", "private void searchCourse()\r\n {\r\n \ttry\r\n \t{\r\n \tString courseFaculty = this.getClientIn().readLine();\r\n \tString courseNumberStr = this.getClientIn().readLine();\r\n\r\n \tint courseNumber = Integer.parseInt(courseNumberStr);\r\n \tCourse foundCourse = this.getDBManager().searchCourse(courseFaculty, courseNumber);\r\n \tif(foundCourse == null)\r\n \t{\r\n \t\tthis.getClientOut().printf(\"ERROR\\nCourse Not Found.\\n\");\r\n \t\treturn;\r\n \t}\r\n \tthis.getClientOut().printf(\"SUCCESS\\n%s\\n\", foundCourse.toString());\r\n \t}\r\n\t\tcatch(NumberFormatException e)\r\n\t\t{\r\n\t\t\tthis.getClientOut().printf(\"ERROR\\nPlease check the Course Number. It must be an integer.\\n\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t\tthis.getClientOut().printf(\"ERROR\\nIOException while getting data from user\\n\");\r\n\t\t\treturn;\r\n\t\t}\r\n \tfinally\r\n \t{\r\n \t\tthis.getClientOut().flush();\r\n \t}\r\n }", "@Override\n\t\tpublic void search() {\n\t\t\tSystem.out.println(\"새로운 조회\");\n\t\t}", "private void visitToSearch() {\n if (search_Attendance==null) {\n search_Attendance=new Search_Attendance();\n search_Attendance.setVisible(true);\n } else {\n search_Attendance.setVisible(true);\n }\n }", "public void searchStudentByCode(String id) {\r\n System.out.println(\"conectado con model ---> metodo searchStudentByCode\");\r\n //TODO\r\n }", "@FXML\r\n private void search(){\n \r\n String s = tfSearch.getText().trim(); \r\n String type = cmbType.getSelectionModel().getSelectedItem();\r\n String col = cmbFilterBy.getSelectionModel().getSelectedItem();\r\n \r\n /**\r\n * Column Filters\r\n * \r\n */\r\n \r\n \r\n if(!s.isEmpty()){\r\n if(!chbtoggleInActiveTraining.isSelected()){\r\n db.populateTable(trainingFields+ \" WHERE title LIKE '%\"+s+\"%' AND status<>'active'\", tblTrainingList);\r\n }\r\n\r\n if(chbtoggleInActiveTraining.isSelected()){\r\n db.populateTable(trainingFields+ \" WHERE title LIKE '%\"+s+\"%'\", tblTrainingList);\r\n } \r\n } \r\n }", "public void findByName() {\n String name = view.input(message_get_name);\n if (name != null){\n try{\n List<Customer> list = model.findByName(name);\n if(list!=null)\n if(list.isEmpty())\n view.showMessage(not_found_name);\n else\n view.showTable(list);\n else\n view.showMessage(not_found_error);\n }catch(Exception e){\n view.showMessage(incorrect_data_error);\n }\n } \n }", "public search() {\n }", "void search();", "void search();", "@RequestMapping(value=\"/searchdata\", method=RequestMethod.POST)\r\n\tpublic String edithome(@ModelAttribute(\"register\") PersonalInfo register,HttpServletRequest request,\r\n\t\t\tRedirectAttributes attributes, Model map)\r\n\t{\n\t\t\t \r\n\t\t\t \r\n\t\t\tList<Object[]> skill = findContaintService.FindBySkill(register.getSearchTxt());\r\n\t\t\t \r\n\t\t if(!skill.isEmpty())\r\n\t\t {\r\n\t\t\t map.addAttribute(\"List\", skill);\r\n\t\t\treturn\"search\";\r\n\t\t\t \r\n\t\t } \r\n\t\t\t \r\n\t\t\t \r\n\t\t\t/*for(Object[] tuple : skill) {\r\n\t\t\t String name=((String) tuple[0]);\r\n\t\t\t String skills=((String) tuple[1]);\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\r\n/*\t\t\tSystem.out.println(skill);\r\n\t\t System.out.println(skill.toString());\r\n System.out.println(skill.getClass());\t\t\t \r\n*/\t\t\t \r\n\t\t\t /* Iterator it=skill.iterator();\r\n\t\t\t while(it.hasNext())\r\n\t\t\t {\r\n\t\t\t \t System.out.println(it.next());\r\n\t\t\t \t PersonalInfo info = (PersonalInfo)it.next();\r\n\t\t\t \t System.out.println(info.getFirstName());\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 return\"search\"; \r\n\t\t\t \r\n\t\t\t \r\n\t/*\t\t \r\n\t\t\tif (!list.isEmpty())\r\n\t\t\t{\r\n\t\t\t\r\n\t\t\t\tmap.addAttribute(\"List\", list);\r\n\t\t\t\treturn\"search\";\t\t\r\n\t\t\t}\r\n\t\t\telse if(!list1.isEmpty())\r\n\t\t\t{\r\n\t\t\t\t\tmap.addAttribute(\"List\", list1);\r\n\t\t\t\t\treturn\"search\";\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\treturn \"search\";\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n*/\t\t\r\n\t\t\t \r\n\t\t\t\r\n}", "@Test\n\tvoid searchTest() {\n\t}", "void searchStarted (Search search);", "public void search() {\n try {\n String searchKey = txt_SearchKey.getText();\n Search s = new Search();\n con = dc.connect();\n stmt1 = con.createStatement();\n\n\n String sql = s.getSQLQuery(\"tblUsers\", searchKey);\n\n vtdata_user = new Vector();\n ResultSet rsUser = stmt1.executeQuery(sql);\n while (rsUser.next()) {\n\n Vector temp = new Vector();\n\n temp.add(rsUser.getString(\"UserName\"));\n temp.add(rsUser.getString(\"U_Name\"));\n temp.add(rsUser.getString(\"Email\"));\n // temp.add(rsUser.getDate(\"BirthDate\"));\n\n temp.add(formatDate.format(rsUser.getDate(\"BirthDate\")));\n boolean gender = rsUser.getBoolean(\"Gender\");\n\n\n if (gender == true) {\n temp.add(\"Male\");\n }\n\n if (gender == false) {\n temp.add(\"Female\");\n }\n temp.add(rsUser.getString(\"Phone\"));\n vtdata_user.add(temp);\n }\n\n user_model = new DefaultTableModel(vtdata_user, vtcolumn_user) {\n\n @Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }\n };\n\n tb_User.setModel(user_model);\n if (vtdata_user.size() == 0) {\n\n JOptionPane.showMessageDialog(this, \"No Search User! \");\n }\n dc.disconnect(rsUser);\n dc.disconnect(stmt1);\n dc.disconnect(con);\n } catch (SQLException ex) {\n Logger.getLogger(UserManagement.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}", "@Override\n\tpublic void searchByName() {\n\t\tcount = 0;\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println(\"Enter search.....\");\n\t\tString search = UtilityClinic.readString();\n\t\tSystem.out.println(\"Showing search result(s).......\");\n\t\tfor (int i = 0; i < UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i);\n\t\t\tif (jsnobj.get(\"Patient's name\").toString().equals(search))\n\t\t\t\tSystem.out.print(\n\t\t\t\t\t\t++count + \" Name:\" + jsnobj.get(\"Patient's name\") + \" ID:\" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t\t\t\t+ \" Mobile:\" + jsnobj.get(\"Mobile\") + \" Age:\" + jsnobj.get(\"Age\"));\n\t\t}\n\t\tif (count == 0) {\n\t\t\tSystem.out.println(\"No results found.....\");\n\t\t}\n\t}", "@ActionTrigger(action=\"KEY-ENTQRY\", function=KeyFunction.SEARCH)\n\t\tpublic void spriden_Search()\n\t\t{\n\t\t\t\n\t\t\t\texecuteAction(\"QUERY\");\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t}", "public void search() {\n listTbagendamentos\n = agendamentoLogic.findAllTbagendamentoByDataAndPacienteAndFuncionario(dataSearch, tbcliente, tbfuncionario);\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 }", "private Search() {}", "public static void logSelectionEstablished() {\n RecordUserAction.record(\"ContextualSearch.SelectionEstablished\");\n }", "private static void LessonDAO() {\n PersonDAO personDAO = new PersonDAOImpl(); //amend in next lesson\n List<Person> personList = personDAO.getPersonList();\n\n System.out.println(\"===============================\");\n for(Person person: personList) {\n System.out.println(person.getPersonId() + \": \" + person.getFirstName() + \" \" + person.getLastName());\n }\n System.out.println(\"===============================\");\n //endregion\n\n //region Prompt User\n Scanner reader = new Scanner(System.in);\n System.out.println(\"Please Select a Person from the list: \");\n String personId = reader.nextLine();\n //endregion\n\n //region Get Person Details\n Person personDetail = personDAO.getPersonById(Integer.parseInt(personId));\n\n System.out.println(\"---Person Details---\");\n System.out.println(\"Full Name: \" + personDetail.GetFullName());\n //endregion\n }", "public void showHealthCarePersonaledata(){\n }", "static void searchProductDB() {\n\n int productID = Validate.readInt(ASK_PRODUCTID); // store product ID of user entry\n\n\n productDB.findProduct(productID); // use user entry as parameter for the findProduct method and if found will print details of product\n\n }", "public void Query() {\n }", "@FXML\n public void candidatesearch()\n {\n try\n {\n //getting object from hashmap\n Candidate can = (Candidate)allCandidates.get(C_ID.getText());\n //set values to TextFields by object\n C_Name.setText(can.getName());\n C_NIC.setText(can.getNIC());\n C_P_Id.setText(can.getParty_Id());\n C_P_Name.setText(can.getParty_Name());\n C_Address.setText(can.getAddress());\n C_TelNo.setText(can.getTelNo());\n C_Age.setText(String.valueOf(can.getAge()));\n }\n //catch when no result found\n catch(NullPointerException ex)\n {\n Alert a=new Alert(AlertType.WARNING);\n a.setContentText(\"Couldn't Find Any Records !\");\n a.show();\n }\n\n }", "void searchByName(String name) {\n\t\tint i=0;\n\t\t\tfor (Entity entity : Processing.nodeSet) {\n\t\t\t\t\n\t\t\t\t/* if Entity is person */\n\t\t\t\tif(entity instanceof Person) {\n\t\t\t\t\tPerson person=(Person)entity;\n\t\t\t\t\tif(person.getName().equalsIgnoreCase(name)){\n\t\t\t\t\tSystem.out.println(\"the person details are :\");\n\t\t\t\t\tSystem.out.println(\" name : \" + person.getName());\n\t\t\t\t\tSystem.out.println(\" phone : \" + person.getPhone());\n\t\t\t\t\tSystem.out.println(\" email : \" + person.getEmail());\n\t\t\t\t\tSystem.out.println(\" school : \" + person.getSchool());\n\t\t\t\t\tSystem.out.println(\" college : \" + person.getCollege() + \"\\n\");\n\t\t\t\t\t\tfor(String interest:person.getInterests()){\n\t\t\t\t\t\t\tSystem.out.println(\" interest in : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/* If entity is organization */\n\t\t\t\telse {\n\t\t\t\t\tOrganization organization=(Organization)entity;\n\t\t\t\t\tif(organization.getName().equalsIgnoreCase(name)){\n\t\t\t\t\t\tSystem.out.println(\"the person details are :\");\n\t\t\t\t\t\tSystem.out.println(\" name : \" + organization.getName());\n\t\t\t\t\t\tSystem.out.println(\" phone : \" + organization.getPhone());\n\t\t\t\t\t\tSystem.out.println(\" email : \" + organization.getEmail());\n\t\t\t\t\t\tfor(String interest:organization.getCourses()){\n\t\t\t\t\t\t\tSystem.out.println(\" courses are : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(String interest:organization.getFaculty()){\n\t\t\t\t\t\t\tSystem.out.println(\" Faculties are : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(String interest:organization.getPlacements()){\n\t\t\t\t\t\t\tSystem.out.println(\" Placements are : \" +interest + \"\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif(i>=Processing.nodeSet.size()) {//if no such name exist\n\t\t\t\tSystem.out.println(name+\" does not exist\");\n\t\t\t}\n\t}", "public void searchFlights();", "@Override\r\n\tpublic void find(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tURL1=\"/admin/xiaoshuolist.jsp\";\r\n\t\tthis.searchFields=\"title,content,categorytitle,author\";\r\n\t\tsuper.find(request, response);\r\n\t}", "public void customerQuery(){\n }", "public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n {\n \n List<ResultDAO> retListPredLookUp = new ArrayList<ResultDAO>();\n List<ResultDAO> retListPredSearch = new ArrayList<ResultDAO>();\n List<ResultDAO> retListObj = new ArrayList<ResultDAO>();\n List<ResultDAO> retListSubj = new ArrayList<ResultDAO>();\n \n List<List<ResultDAO>> retList = new ArrayList<List<ResultDAO>>();\n List<ResultDAO> retListPred = new ArrayList<ResultDAO>();\n \n // initialize with some default values\n int topK = Constants.TOPK;\n \n // we just need two threads to perform the search\n ExecutorService pool = Executors.newFixedThreadPool(2);\n \n try {\n if (request.getParameter(\"topk\") != null) {\n topK = Integer.parseInt(request.getParameter(\"topk\"));\n }\n \n QueryEngine.setTopK(topK);\n \n String subject = request.getParameter(\"subject\");\n String predicate = request.getParameter(\"predicate\");\n String object = request.getParameter(\"object\");\n \n // This is simple search mode. just qyerying for terms\n if (!Constants.PREDICTIVE_SEARCH_MODE) {\n // fetch the answer terms\n if (!subject.equals(\"Subject\") && !subject.equals(\"\") && !object.equals(\"Object\") && !object.equals(\"\")) {\n \n WebTupleProcessor webTupleProc = new WebTupleProcessor(pool, subject, object, predicate);\n // make a call to the Engine with the required parameters\n webTupleProc.processTuples(null);\n retList = webTupleProc.getRetList();\n \n retListSubj = retList.get(0);\n retListObj = retList.get(1);\n\n // get the predicates \n retListPredSearch = webTupleProc.getRetListPredSearch();\n\n } else {\n if (!subject.equals(\"Subject\") && !subject.equals(\"\")) {\n retListSubj = QueryEngine.doSearch(subject);\n }\n if (!object.equals(\"Object\") && !object.equals(\"\")) {\n retListObj = QueryEngine.doSearch(object);\n }\n }\n \n } else { // This is advanced search mode. where the system tries to predict the best matches based on the\n // input combination\n if (!subject.equals(\"Subject\") && !subject.equals(\"\") && !object.equals(\"Object\") && !object.equals(\"\")) {\n \n WebTupleProcessor webTupleProc = new WebTupleProcessor(pool, subject, object, predicate);\n // make a call to the Engine with the required parameters\n webTupleProc.processTuples(null);\n // get the subjects and objects\n retList = webTupleProc.getRetList();\n \n // get the predicates\n retListPredLookUp = webTupleProc.getRetListPredLookUp();\n retListPredSearch = webTupleProc.getRetListPredSearch();\n \n retListSubj = retList.get(0);\n retListObj = retList.get(1);\n }\n \n }\n \n // set the request parameter for results display\n if (retListSubj.size() > 0) {\n request.setAttribute(\"matchingListSubj\", retListSubj);\n }\n if (retListObj.size() > 0) {\n request.setAttribute(\"matchingListObj\", retListObj);\n }\n if (retListPredLookUp.size() > 0) {\n request.setAttribute(\"matchingListPredLookup\", retListPredLookUp);\n }\n if (retListPredSearch.size() > 0) {\n request.setAttribute(\"matchingListPredSearch\", retListPredSearch);\n }\n \n // for resetting the text boxes\n request.setAttribute(\"subject\", subject);\n request.setAttribute(\"predicate\", predicate);\n request.setAttribute(\"object\", object);\n request.setAttribute(\"topk\", topK);\n \n // redirect to page\n request.getRequestDispatcher(\"entry.jsp\").forward(request, response);\n \n }\n \n catch (Throwable theException) {\n System.out.println(theException);\n }\n \n }", "public ArrayList<University> fieldSearch(String schoolName, String state, String location, int numStudentsMin,\n\t\t\tint numStudentsMax, float percentFemaleMin, float percentFemaleMax, int SATVerbalMin, int SATVerbalMax,\n\t\t\tint SATMathMin, int SATMathMax, int expensesMin, int expensesMax, float PercentFinancialAidMin,\n\t\t\tfloat percenetFinancialAidMax, int numberApplicantsMin, int numberApplicatnsMax, float percentAddmittedMin,\n\t\t\tfloat percentAdmittedMax, float percentEnrolledMin, float percentEnrolledMax, int academicScaleMin,\n\t\t\tint academicScaleMax, int socialScalemin, int socialScaleMax, int qualityOfLifeMin, int qualityOfLifeMax,\n\t\t\tString[] emphases, String control) {\n\t\tArrayList<University> matchSchools;\n\n\t\tif (!sfCon.loggedIn) {\n\n\t\t\tif (schoolName.equals(\"\") && state.equals(\"\") && location.equals(\"\") && numStudentsMin == -1\n\t\t\t\t\t&& numStudentsMax == -1 && percentFemaleMin == -1 && percentFemaleMax == -1 && SATVerbalMin == -1\n\t\t\t\t\t&& SATVerbalMax == -1 && SATMathMin == -1 && SATMathMax == -1 && expensesMin == -1\n\t\t\t\t\t&& expensesMax == -1 && PercentFinancialAidMin == -1 && percenetFinancialAidMax == -1\n\t\t\t\t\t&& numberApplicantsMin == -1 && numberApplicatnsMax == -1 && percentAddmittedMin == -1\n\t\t\t\t\t&& percentAdmittedMax == -1 && percentEnrolledMin == -1 && percentEnrolledMax == -1\n\t\t\t\t\t&& academicScaleMin == -1 && academicScaleMax == -1 && socialScalemin == -1 && socialScaleMax == -1\n\t\t\t\t\t&& qualityOfLifeMin == -1 && qualityOfLifeMax == -1 && control.equals(\"\")) {\n\t\t\t\tthrow new IllegalArgumentException(\"Sorry, you must input at least one search field\");\n\t\t\t}\n\n\t\t\telse if ((numStudentsMax < numStudentsMin && numStudentsMax != -1)\n\t\t\t\t\t|| (percentFemaleMax < percentFemaleMin && percentFemaleMax != -1)\n\t\t\t\t\t|| (SATVerbalMax < SATVerbalMin && SATVerbalMax != -1)\n\t\t\t\t\t|| (SATMathMax < SATMathMin && SATMathMax != -1) || (expensesMax < expensesMin && expensesMax != -1)\n\t\t\t\t\t|| (percenetFinancialAidMax < PercentFinancialAidMin && percenetFinancialAidMax != -1)\n\t\t\t\t\t|| (numberApplicatnsMax < numberApplicatnsMax && numberApplicatnsMax != -1)\n\t\t\t\t\t|| (percentAdmittedMax < percentAddmittedMin && percentAdmittedMax != -1)\n\t\t\t\t\t|| (percentEnrolledMax < percentEnrolledMin && percentEnrolledMax != -1)\n\t\t\t\t\t|| (academicScaleMax < academicScaleMin && academicScaleMax != -1)\n\t\t\t\t\t|| (socialScaleMax < socialScalemin && socialScaleMax != -1)\n\t\t\t\t\t|| (qualityOfLifeMax < qualityOfLifeMin && qualityOfLifeMax != -1)) {\n\t\t\t\tthrow new IllegalArgumentException(\"Sorry, your no minimum can be greater than a maximum\");\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tmatchSchools = sfCon.search(schoolName, state, location, numStudentsMin, numStudentsMax,\n\t\t\t\t\t\tpercentFemaleMin, percentFemaleMax, SATVerbalMin, SATVerbalMax, SATMathMin, SATMathMax,\n\t\t\t\t\t\texpensesMin, expensesMax, PercentFinancialAidMin, percenetFinancialAidMax, numberApplicantsMin,\n\t\t\t\t\t\tnumberApplicatnsMax, percentAddmittedMin, percentAdmittedMax, percentEnrolledMin,\n\t\t\t\t\t\tpercentEnrolledMax, academicScaleMin, academicScaleMax, socialScalemin, socialScaleMax,\n\t\t\t\t\t\tqualityOfLifeMin, qualityOfLifeMax, emphases, control);\n\t\t\t\tfor (int i = 0; i < matchSchools.size(); i++) {\n\t\t\t\t\tSystem.out.println(matchSchools.get(i).getName());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\telse {\n\t\t\tthrow new IllegalArgumentException(\"Sorry, you must be logged in to access this functionality\");\n\t\t}\n\n\t\treturn matchSchools;\n\t}", "@RequestMapping(\"/search\")\n public ModelAndView showResult(@RequestParam( value = \"search_name\") String search_name, Model model){\n Collection<Node> nodes= nodeService.findNodesByNameLike(search_name);\n //Collection<Node> nodelist = nodeService.findByName(search_name);\n if (!nodes.isEmpty()){\n model.addAttribute(\"name\",search_name);\n model.addAttribute(\"infolist\",nodes);\n if(nodes.size() == 1) {\n Node node = nodes.iterator().next();\n model.addAttribute(\"node\",node );\n model.addAttribute(\"id\",node.getId());\n return new ModelAndView(\"show_result\", \"model\", model);\n }\n else{\n model.addAttribute(\"nodelist\", nodes);\n return new ModelAndView(\"index2\",\"model\",model);\n }\n }\n else{\n return new ModelAndView(\"error\",\"model\",model);\n }\n\n }", "public void runTestSearch() throws TorqueException {\r\n\t}", "public StudentExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Test()\n public void PatientRecord() {\n LoginPage login = new LoginPage(driver);\n DashboardItemsPage dash = new DashboardItemsPage(driver);\n FindPatientRecordPage fprecord = new FindPatientRecordPage(driver);\n login.LoginToDashboard(\"Admin\", \"Admin123\");\n fprecord.searchPatientRecord(\"Smith\");\n\n Assert.assertEquals(\"Find Patient Record\", \"Find Patient Record\");\n //Assert.assertEquals(Collections.singleton(fprecord.getPageTitle()), \"Find Patient Record\");\n fprecord.getPageTitle();\n }", "String searchBoxUserRecord();", "private void Searchdata() {\r\n Connection con;\r\n String searchby;\r\n String sortby;\r\n String keyword;\r\n \r\n searchby = (String)cboSearchby.getSelectedItem();\r\n sortby = (String)cboSortby.getSelectedItem();\r\n keyword = txfSearch.getText();\r\n try {\r\n con = ClassSQL.getConnect();\r\n Statement stmt = con.createStatement();\r\n String sql = Searchstmt(searchby,sortby,keyword);\r\n // System.out.println(sql); //for testing purposes\r\n stmt.executeQuery(sql);\r\n con.close();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n // Place code in here that will always be run.\r\n }\r\n }", "public void friendSearchClick(ActionEvent event) throws Exception{\r\n displayAddFriendresults();\r\n }", "public QueryController(String[] args){\n // Parse Args\n QueryArgs queryArgs = new QueryArgs();\n try {\n queryArgs.parseArgs(args);\n } catch (FileNotFoundException e) {\n //e.printStackTrace();\n System.err.println(\"Invalid Arguments received. Please check your arguments passed to ./search\");\n return;\n }\n\n // Run the Term Normaliser\n TermNormalizer normalizer = new TermNormalizer();\n String[] queryTerms = normalizer.transformedStringToTerms(queryArgs.queryString);\n\n //create the model\n Model model = new Model();\n model.loadCollectionFromMap(queryArgs.mapPath);\n model.loadLexicon(queryArgs.lexiconPath);\n model.loadInvertedList(queryArgs.invlistPath);\n if(queryArgs.stopListEnabled)\n {\n model.loadStopList(queryArgs.stopListPath);\n }\n if(queryArgs.printSummary && queryArgs.collectionPath != \"\")\n {\n model.setPathToCollection(queryArgs.collectionPath);\n }\n\n\n //fetch the top results from the query module\n QueryModule queryModule = new QueryModule();\n queryModule.doQuery(queryTerms, model, queryArgs.bm25Enabled);\n List<QueryResult> topResults = queryModule.getTopResult(queryArgs.maxResults);\n\n\n\n ResultsView resultsView = new ResultsView();\n if(queryArgs.printSummary)\n {\n\n DocSummary docSummary = new DocSummary();\n for(QueryResult result:topResults)\n {\n // retrieve the actualy text from the document collection\n result.setDoc(model.getDocumentCollection().getDocumentByIndex(result.getDoc().getIndex(), true));\n\n //set the summary on the result object by fetching it from the docSummary object\n result.setSummaryNQB(docSummary.getNonQueryBiasedSummary(result.getDoc(), model.getStopListModule()));\n result.setSummaryQB(docSummary.getQueryBiasedSummary(result.getDoc(), model.getStopListModule(), Arrays.asList(queryTerms)));\n }\n resultsView.printResultsWithSummary(topResults,queryArgs.queryLabel);\n }else\n {\n resultsView.printResults(topResults,queryArgs.queryLabel);\n }\n\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp)throws IOException {\n\n try {\n\n logRequest(req);\n\n if(!validateSession(req, resp))\n return;\n\n if(blockedSmokey(sessionManagement, resp))\n return;\n\n setLoggerByParameters(req);\n\n\n Formatter formatter = getFormatFromParameters(req);\n\n\n DBKeyInterface _project = getMandatoryKey(\"project\", req);\n Project project = new Project(new LookupByKey(_project));\n\n if(!mandatoryObjectExists(project, resp))\n return;\n\n Boolean instant = getOptionalBoolean(\"instant\", req, false); // Instant search or not\n String searchText = getMandatoryString(\"text\", req);\n\n //TODO: Only for test: REMOVE later\n if(searchText.startsWith(\"!\")){\n\n searchText = searchText.substring( 1 );\n instant = true;\n }\n\n PukkaLogger.log(PukkaLogger.Level.INFO, \"Searching for: \" + searchText);\n\n // Now select the appropriate search manager and retrieve the results\n\n if(instant){\n\n PortalUser user = sessionManagement.getUser();\n SearchManager2 filter = new SearchManager2(project, user);\n JSONArray resultJSON = filter.search(searchText, defaultLanguage);\n JSONObject json = new JSONObject().put(\"fragments\", resultJSON);\n\n sendJSONResponse(json, formatter, resp);\n\n }\n else{\n\n SearchManager filter = new SearchManager();\n JSONObject json = filter.getMatchJson(searchText, project, sessionManagement);\n\n sendJSONResponse(json, formatter, resp);\n\n }\n\n\n } catch (BackOfficeException e) {\n\n PukkaLogger.log( e ,\"Error (Get) in Search Servlet\");\n returnError(e.narration, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, resp);\n resp.flushBuffer();\n\n } catch (Exception e) {\n\n PukkaLogger.log( e , \"Error (Get) in Search Servlet\");\n returnError(\"Internal Error\", HttpServletResponse.SC_INTERNAL_SERVER_ERROR, resp);\n resp.flushBuffer();\n\n }\n\n\n }", "private void startSearch()\n {\n model.clear();\n ArrayList<String> result;\n if (orRadio.isSelected())\n {\n SearchEngine.search(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n else\n {\n SearchEngine.searchAnd(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n for (String s : result)\n {\n model.addElement(s);\n }\n int paragraphsRetrieved = result.size();\n reviewedField.setText(\" Retrieved \" + paragraphsRetrieved + \" paragraphs\");\n }", "public find() {\n initComponents();\n loadTBL(\"select * from before_production order by date\");\n loadSupp();\n }", "@Override\n\tpublic void find() {\n\t\tSystem.out.println(\"find method\");\n\t}", "@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}", "public void findDataFromServer() {\n try {\n JSONObject jsonObjectGetPostParameterEachScreen = null;\n PassParameterbean passParameterbean = null;\n if (pageTokenAvailable) {\n searchbean_post_data.setPageToken(pageToken);\n }\n\n if (TextUtils.isEmpty(baseTextview_searched_item.getText().toString())) {\n\n } else {\n String name = URLEncoder.encode(baseTextview_searched_item.getText().toString(), \"utf-8\");\n searchbean_post_data.setSearchText(name);\n }\n\n\n searchbean_post_data.setIsCommuntiySearchByName(\"1\");\n searchbean_post_data.setUser_id(commonSession.getLoggedUserID());\n requestParametersbean.setSearchbeanPassPostData(searchbean_post_data);\n\n jsonObjectGetPostParameterEachScreen = GetPostParameterEachScreen.getPostParametersAccordingIndex(ScreensEnums.SEARCH_BY_COMMUNITYNAME.getScrenIndex(), requestParametersbean);\n passParameterbean = new PassParameterbean(this, CommunitySearchByNameActivity.this, getApplicationContext(), URLs.SEARCH_BY_COMMUNITYNAME, jsonObjectGetPostParameterEachScreen, ScreensEnums.SEARCH_BY_COMMUNITYNAME.getScrenIndex(), CommunitySearchByNameActivity.class.getClass());\n\n\n /* requestParametersbean.setUserId(commonSession.getLoggedUserID());\n requestParametersbean.setStart_limit(current_start);\n\n jsonObjectGetPostParameterEachScreen = GetPostParameterEachScreen.getPostParametersAccordingIndex(ScreensEnums.FILTER_COMMUNITY.getScrenIndex(), requestParametersbean);\n passParameterbean = new PassParameterbean(this, CommunitySearchByNameActivity.this, getApplicationContext(), URLs.FILTERCOMMUNITY, jsonObjectGetPostParameterEachScreen, ScreensEnums.FILTER_COMMUNITY.getScrenIndex(), CommunitySearchByNameActivity.class.getClass());\n*/\n\n\n passParameterbean.setNoNeedToDisplayLoadingDialog(true);\n new RequestToServer(passParameterbean, retryParameterbean).execute();\n\n\n } catch (Exception e) {\n e.printStackTrace();\n new BaseException(e, false, retryParameterbean);\n }\n }", "public static List<StudentInfo> searchStudentInfo(String firtname, String lastname) {\r\n \r\n List<StudentInfo> students = new ArrayList<>();\r\n \r\n // declare resultSet\r\n ResultSet rs = null;\r\n \r\n // declare prepared statement\r\n PreparedStatement preparedStatement = null;\r\n \r\n // declare connection\r\n Connection conn = null;\r\n try {\r\n // get connection\r\n conn = DBUtils.getConnection();\r\n\r\n // set prepared statement\r\n preparedStatement = conn\r\n .prepareStatement(\"SELECT instructor.FName, instructor.LName,\" +\r\n \" IF(EXISTS ( SELECT * FROM gra WHERE gra.StudentId = phdstudent.StudentId) , 'GRA', \" +\r\n \" IF(EXISTS ( SELECT * FROM gta WHERE gta.StudentId = phdstudent.StudentId) , 'GTA', \" +\r\n \" IF(EXISTS ( SELECT * FROM scholarshipsupport WHERE scholarshipsupport.StudentId = phdstudent.StudentId) , 'scholarship', \" +\r\n \" IF(EXISTS ( SELECT * FROM selfsupport WHERE selfsupport.StudentId = phdstudent.StudentId) , 'self', ''))\" +\r\n \" )) AS StudentType, \" +\r\n \" milestone.MName, milestonespassed.PassDate\" +\r\n \" FROM phdstudent left join instructor on instructor.InstructorId = phdstudent.Supervisor\"\r\n + \" left join milestonespassed on phdstudent.StudentId = milestonespassed.StudentId\"\r\n + \" left join milestone on milestonespassed.MID = milestone.MID\" +\r\n \" WHERE phdstudent.FName = ? AND phdstudent.LName = ?\");\r\n \r\n // execute query\r\n preparedStatement.setString(1, firtname);\r\n preparedStatement.setString(2, lastname); \r\n\r\n rs = preparedStatement.executeQuery();\r\n \r\n //iterate and create the StudentInfo objects\r\n while (rs.next()) {\r\n \r\n students.add(new StudentInfo(rs.getString(1)+ \" \" + rs.getString(2), rs.getString(3), rs.getString(4), \r\n utils.Utils.toDate(rs.getDate(5))));\r\n\r\n }\r\n }catch(Exception ex){\r\n ex.printStackTrace();\r\n }\r\n finally {\r\n DBUtils.closeResource(conn);\r\n DBUtils.closeResource(preparedStatement);\r\n DBUtils.closeResource(rs);\r\n } \r\n \r\n return students; \r\n }", "private void search(SearchRequest request) {\r\n\t\tif(request == null)return;\r\n\t\tList<Record> results = handler.search(request);\r\n\t\tlist.show(results);\r\n\t\tpanInfo.setNumRec(results.size());\r\n\t\tpanInfo.setTotalAmt(Record.sumBalance(results));\r\n\t}", "@Test\n public void executeValidSearch_notAllFields(){\n emptySearchFields();\n view.setFloor(1);\n view.setBedrooms(1);\n view.setBathrooms(1);\n presenter.doSearch();\n Assert.assertTrue(presenter.hasNextResult());\n }", "@Override\n public Data3DPlastic search() {\n return super.search();\n }", "void viewStudents(Professor professor);", "public void searchTest() {\n\t\ttry {\n\t\t\tString keyword = \"操作道具\";\n\t\t\t// 使用IKQueryParser查询分析器构造Query对象\n\t\t\tQuery query = IKQueryParser.parse(LogsEntry.INDEX_FILED_CONTENT, keyword);\n\n\t\t\t// 搜索相似度最高的5条记录\n\t\t\tint querySize = 5;\n\t\t\tTopDocs topDocs = isearcher.search(query, null, querySize, sort);\n\t\t\tlogger.info(\"命中:{}\", topDocs.totalHits);\n\t\t\t// 输出结果\n\t\t\tScoreDoc[] scoreDocs = topDocs.scoreDocs;\n\t\t\tfor (int i = 0; i < scoreDocs.length; i++) {\n\t\t\t\tDocument targetDoc = isearcher.doc(scoreDocs[i].doc);\n\t\t\t\tlogger.info(\"内容:{}\", targetDoc.toString());\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "public EmpdetailExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "@Override\n public boolean onQueryTextSubmit(String s) {\n ArrayList<String> visibleList = new ArrayList<>();\n\n //for every log row\n for (String visibleItem : logList){\n //contains search bar string\n if (visibleItem.toLowerCase().contains(s.toLowerCase())){\n //add item to list\n visibleList.add(visibleItem);\n }\n }\n //initialize Adapter\n logAdapter = new ArrayAdapter<>(ViewLogActivity.this, R.layout.view_student_attendance, R.id.student, visibleList);\n\n //set Adapter to ListView\n mLogList.setAdapter(logAdapter);\n\n return true;\n }", "abstract public void search();", "@Test\n public void testFindUserByFilter() {\n System.out.println(\"findUserByFilter\");\n String filter = \"adrian\";\n UserServiceImpl instance = new UserServiceImpl(passwordService);\n List<User> result = instance.findUserByFilter(filter);\n assertEquals(1, result.size());\n assertEquals(\"adrian\", result.get(0).getUsername());\n }", "public void onSearchStarted();", "@RequestMapping(value={\"/search\"}, method={RequestMethod.GET})\n \tpublic ModelAndView handleSearch(@RequestParam(required=false) String q, @RequestParam(required=false,defaultValue=\"1\") Integer page){\n \t\tMap<String,Object> model = new HashMap<String,Object>();\n \t\t\n \t HashMap<String,Object> search = new HashMap<String,Object>();\n \t search.put(\"term\", \"\");\n \t search.put(\"total\",0);\n \n \t List<Map<String,String>> searchResult = new ArrayList<Map<String,String>>();\n \t if(StringUtils.isNotBlank(q)){\n \t \tsearch.put(\"term\", q);\n \t \tLimitedResult<List<NameConceptModelIF>> nameConceptModelList = null;\n \t \tint pageIndex = (page <= 0)?0:(page-1);\n \t \t//use page index +1 to avoid returning a bad page number\n \t\tsearch.put(\"pageNumber\", (pageIndex+1));\n \t\tsearch.put(\"pageSize\", searchService.getPageSize());\n \t\t//check if we want another page than the first one\n \t \tif(pageIndex > 0){\n \t \t\tnameConceptModelList = searchService.searchName(q,pageIndex);\n \t \t}\n \t \telse{\n \t \t\tnameConceptModelList = searchService.searchName(q);\n \t \t}\n \n \t\t search.put(\"total\",nameConceptModelList.getTotal_rows());\n \t\t List<Map<String,String>> searchResults = new ArrayList<Map<String,String>>();\n \t\t Map<String,String> searchRow = null;\n \t\t //TODO use objects directly instead of map\n \t\t for(NameConceptModelIF currNameConceptModel : nameConceptModelList.getRows()){\n \t\t \tif(currNameConceptModel.getClass().equals(NameConceptTaxonModel.class)){\n \t\t \t\tsearchRow = new HashMap<String,String>();\n \t\t \t\tsearchRow.put(\"type\",\"taxon\");\n \t\t \t\tsearchRow.put(\"name\", currNameConceptModel.getName());\n \t\t \t\tsearchRow.put(\"id\", currNameConceptModel.getTaxonId().toString());\n \t\t \t\tsearchRow.put(\"status\", currNameConceptModel.getStatus());\n \t\t \t\tsearchRow.put(\"namehtml\",((NameConceptTaxonModel)currNameConceptModel).getNamehtml());\n \t\t \t\tsearchRow.put(\"namehtmlauthor\",((NameConceptTaxonModel)currNameConceptModel).getNamehtmlauthor());\n \t\t \t\tsearchRow.put(\"rankname\",((NameConceptTaxonModel)currNameConceptModel).getRankname());\n \t\t \t\tsearchRow.put(\"parentid\",((NameConceptTaxonModel)currNameConceptModel).getParentid().toString());\n \t\t \t\tsearchRow.put(\"parentnamehtml\",((NameConceptTaxonModel)currNameConceptModel).getParentnamehtml());\n \t\t \t\tsearchResult.add(searchRow);\n \t\t \t}\n \t\t \telse if(currNameConceptModel.getClass().equals(NameConceptVernacularNameModel.class)){\n \t\t \t\tsearchRow = new HashMap<String, String>();\n \t\t \t\tsearchRow.put(\"type\",\"vernacular\");\n \t\t \t\tsearchRow.put(\"name\", currNameConceptModel.getName());\n \t\t \t\tsearchRow.put(\"id\", Integer.toString(((NameConceptVernacularNameModel)currNameConceptModel).getId()));\n \t\t \t\tsearchRow.put(\"status\", currNameConceptModel.getStatus());\n \t\t \t\tsearchRow.put(\"lang\",((NameConceptVernacularNameModel)currNameConceptModel).getLang());\n \t\t \t\tsearchRow.put(\"taxonid\",currNameConceptModel.getTaxonId().toString());\n \t\t \t\tsearchRow.put(\"taxonnamehtml\",((NameConceptVernacularNameModel)currNameConceptModel).getTaxonnamehtml());\n \t\t \t\tsearchResult.add(searchRow);\n \t\t \t}\n \t\t \telse{\n \t\t \t\t//logger\n \t\t \t\tsearchRow = null;\n \t\t \t}\n \t\t \tsearchResults.add(searchRow);\n \t\t }\n \t\t model.put(\"results\",searchResults);\n \t }\n \t \n \t model.put(\"search\",search);\n \t return new ModelAndView(\"search\", model);\n \t}", "@RequestMapping(\"/member\")\r\n public String search(@ModelAttribute(\"message\")MessageForm messageForm, Model model){\n String enter = messageForm.getText();\r\n Collection<Account> allData = accountService.getAccounts();\r\n List<Account> searchResult = new ArrayList<>();\r\n for (Iterator<Account> it = allData.iterator(); it.hasNext(); ) {\r\n Account a = it.next();\r\n if (stringEquals(a.getAccountID(),enter)) {\r\n searchResult.add(a);\r\n }\r\n }\r\n\r\n model.addAttribute(\"accountDetails\", searchResult);\r\n //list all account\r\n List<Account> all = new ArrayList<>();\r\n for(Iterator<Account> itor = allData.iterator();itor.hasNext();){\r\n Account acc = itor.next();\r\n all.add(acc);\r\n }\r\n model.addAttribute(\"allAccountDetails\", all);\r\n\r\n return \"member\";\r\n }", "private void run()\n {\n searchLexDb(\"^providing_\", true);\n }", "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 }", "private void searchExec(){\r\n\t\tString key=jComboBox1.getSelectedItem().toString();\r\n\t\tkey=NameConverter.convertViewName2PhysicName(\"Discount\", key);\r\n\t\tString valueLike=searchTxtArea.getText();\r\n\t\tList<DiscountBean>searchResult=discountService.searchDiscountByKey(key, valueLike);\r\n\t\tjTable1.setModel(ViewUtil.transferBeanList2DefaultTableModel(searchResult,\"Discount\"));\r\n\t}", "abstract public boolean performSearch();", "public List<User> searchUser() {\n String idUserQuery = (id == null) ? \"'%'\" : Integer.toString(id);\n String firstNameQuery = (\"\".equals(firstName) || \" \".equals(firstName)) ? \"'%'\" : \"'%\" + firstName + \"%'\";\n String lastNameQuery = (\"\".equals(lastName) || \" \".equals(lastName)) ? \"'%'\" : \"'%\" + lastName + \"%'\";\n String emailQuery = (\"\".equals(email) || \" \".equals(email)) ? \"'%'\" : \"'%\" + email + \"%'\";\n String idCityQuery = Integer.toString(idCity);\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(db.DB.connectionString, db.DB.user, db.DB.password);\n Statement stmt = conn.createStatement();\n String query = \"select * from users where id_user like \" + idUserQuery;\n query += \" and first_name like \" + firstNameQuery;\n query += \" and last_name like \" + lastNameQuery;\n query += \" and email like \" + emailQuery;\n query += \" and id_city=\" + idCityQuery;\n ResultSet rs = stmt.executeQuery(query);\n allUsers = new ArrayList<User>();\n while (rs.next()) {\n User user = new User();\n user.setId(rs.getInt(\"id_user\"));\n user.setFirstName(rs.getString(\"first_name\"));\n user.setLastName(rs.getString(\"last_name\"));\n user.setPhoneNumber(rs.getString(\"phone_number\"));\n user.setEmail(rs.getString(\"email\"));\n user.setAddress(rs.getString(\"address\"));\n user.setIdCity(rs.getInt(\"id_city\"));\n allUsers.add(user);\n renderUserTable = true;\n }\n if (allUsers.size() == 0) {\n FacesContext context = FacesContext.getCurrentInstance();\n context.getExternalContext().getFlash().setKeepMessages(true);\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"User not found\", null);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n }\n } catch (SQLException ex) {\n Logger.getLogger(UserController.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n clear();\n try {\n conn.close();\n } catch (Exception e) {\n /* ignored */ }\n }\n return null;\n }", "@Override\n public void onFailedSearch() {\n infoUsersNotHaveData();\n }", "@Test\n public void testSearch4() throws Exception\n {\n unauthenticate();\n actorService.search(\"this\");\n }", "@Test\n public void contextLoads() {\n List<UserInfo> userInfos = new ArrayList<UserInfo>();\n userInfos = userInfoController.getUserList();\n System.out.println(userInfos);\n/* assertTrue(userInfos.size()>0);*/\n/* UserInfo userInfo = new UserInfo();\n userInfo = userInfoController.getUserByUserId(1);\n System.out.println(userInfo.toString());*/\n\n\n }", "@FXML\n public void getStudent() throws FileNotFoundException, IOException, SQLException{\n \n lastclicked =\"s\";\n \n String search = SN.getText();\n ArrayList<String> courses = new ArrayList<>();\n \n \n if(!search.equals(\"\")){\n data.clear();\n Connection myConn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/users\", \"root\", \"simnew96\"); \n Statement myStatement = myConn.createStatement();\n ResultSet rs = myStatement.executeQuery(\"SELECT users.participants.student_id, users.participants.courses FROM users.participants\\n\" +\n \"WHERE users.participants.student_id = '\"+search+\"'\");\n while(rs.next()){\n courses.add(rs.getString(\"courses\"));\n \n }\n System.out.println(courses.toArray().toString());\n \n \n for(int i=0;i<courses.size(); i++){\n \n String table1 = courses.get(i).toLowerCase()+\"_marks\";\n ResultSet rs1 = myStatement.executeQuery(\"SELECT * FROM users.\"+table1+\" WHERE studentname='\"+search.toUpperCase()+\"'\");\n String currentcourse =courses.get(i);\n this.getData_and_Set(rs1, currentcourse);\n \n }\n //TRACING\n //System.out.println(data.get(1));\n \n myConn.close();\n \n }\n SN.clear();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tdoSearch(name, count);\n\t\t\t}", "List<Patient> findPatients(Employee nurse_id);", "public FindAllStudentServlet() {\n\t\tsuper();\n\t}", "public Search() throws Exception {\n sesion = Controller.getSession();\n fullTextSesion = org.hibernate.search.Search.getFullTextSession(sesion);\n }", "public void findContact(){\n EtecsaDB database = new EtecsaDB(this.getContext());\n if (!database.hasDatabase()){\n Toast.makeText(this.getContext(), R.string.no_database, Toast.LENGTH_SHORT).show();\n }\n else //buscar contacto\n new Search(this.getActivity()).execute(advancedSearch);\n }", "@Test\npublic void testCal() throws Exception {\n\tsearchText();\n}", "public void execFuzzySearchTraitFunc(){\n\n Map map = new HashMap();\n\n if(this.searchParam != null && this.searchParam.length()> 0 ){\n System.out.println(\"=============search param\"+this.searchParam );\n map.put(\"searchParam\",this.searchParam);\n }\n\n if(this.searchSpecies!= null && this.searchSpecies.equals(\"all\") == false){\n map.put(\"species\",this.searchSpecies);\n System.out.println(\"species=\"+this.searchSpecies);\n }\n\n if(this.searchTrait != null&& this.searchTrait.equals(\"null\")==false && this.searchTrait.length()>0){\n\n\n map.put(\"searchTrait\", this.searchTrait) ;\n }\n\n if(this.pvalue != null && this.pvalue.equals(\"null\")==false&& this.pvalue.length()>0){\n\n\n map.put(\"psitu\", this.psitu);\n map.put(\"pval\", this.pvalue) ;\n }\n\n\n\n gwasAssociationList =(List<GwasAssociationBean>) baseService.findResultList(\"cn.big.gvk.dm.GwasAssociation.selecTraitByFuzzySearch\",map);\n\n if(gwasAssociationList != null && gwasAssociationList.size()>0){\n\n for(GwasAssociationBean gwas: gwasAssociationList){\n\n //trait count\n Map cmap = new HashMap();\n cmap.put(\"traitId\",gwas.getTraitId()) ;\n if(this.searchSpecies!= null && this.searchSpecies.equals(\"all\") == false){\n cmap.put(\"species\",this.searchSpecies);\n\n }\n GwasAssociationBean tg_bean = (GwasAssociationBean)baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectAssociationCountByTraitId\",cmap);\n if(tg_bean != null ){\n gwas.setTraitCount(tg_bean.getGwasCount());\n }\n\n List<TermInformationBean> tilist = (List<TermInformationBean>)baseService.findResultList(\"cn.big.gvk.dm.Term.selectTermDefinition\",gwas.getTraitId());\n String s=\"\";\n if(tilist != null && tilist.size()>0 ){\n for(TermInformationBean tb:tilist ){\n if(tb!= null && tb.getTermDefinition() != null ){\n s+= tb.getTermDefinition() +\";\";\n }\n\n }\n }\n if(s.length()>0){\n s= s.substring(0, s.length()-1) ;\n }\n gwas.setTermDefinition(s);\n\n //study count\n GwasAssociationBean tg_bean1 = (GwasAssociationBean)baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectStudyCountByTraitid\",cmap);\n if(tg_bean1 != null ){\n gwas.setGwasCount(tg_bean1.getGwasCount());\n }\n\n }\n\n\n }\n\n StringBuffer sb = new StringBuffer();\n if(this.gwasAssociationList != null && this.gwasAssociationList.size()>0){\n for(GwasAssociationBean gwas: gwasAssociationList){\n sb.append(gwas.getTraitName()).append(\"\\t\").append(gwas.getTermDefinition()).append(\"\\t\")\n .append(gwas.getTraitCount()).append(\"\\t\").append(gwas.getGwasCount()).append(\"\\n\");\n }\n }\n\n if(format == 1 ){ //export txt\n this.response.reset();\n this.response.setHeader(\"Content-Disposition\",\n \"attachment;filename=export.txt\");\n this.response.setContentType(\"application/ms-txt\");\n try {\n PrintWriter pr = this.response.getWriter();\n pr.print(sb.toString());\n pr.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n\n }", "@GetMapping(value = \"/search\")\n\tpublic String searchName(@RequestParam(name = \"fname\") String fname, Model model) {\n\t\tmodel.addAttribute(\"employees\", employeerepository.findByFnameIgnoreCaseContaining(fname));\n\t\treturn \"employeelist\";\n\t}", "@PostMapping(\"/search\")\n public String showSearchResult(@RequestParam(name = \"searchBox\") String myString, Model model) throws IOException {\n List<String> productImageNames = new ArrayList<String>();\n List<String> productAudioNames = new ArrayList<String>();\n List<String> productVideoNames = new ArrayList<String>();\n System.out.println(\"Products found by findAll():\");\n System.out.println(\"----------------------------\");\n User user = userService.getCurrentUser();\n for (SolrSearch solrSearch : this.productRepository.findByName( myString)){\n// List<File> file = fileRepository.findByFileName(product);\n// productNames.add(file.get(0).getFileName().toString());\n String extension = \"\";\nSystem.out.println(solrSearch.getOriginalName());\n int i = solrSearch.getOriginalName().lastIndexOf('.');\n if (i > 0) {\n extension = solrSearch.getOriginalName().substring(i+1);\n }\n\n extension.toLowerCase();\nSystem.out.println(user);\n if(user!=null){\n List<File> file = fileService.fildFileByfile_name_metadata(solrSearch.getOriginalName());\n if(!file.isEmpty()){\n if((file.get(0).getUserId()==user.getId()) || (file.get(0).getPrivacy().equals(\"public\"))){\n if(extension.equals(\"jpg\")){\n productImageNames.add(solrSearch.getOriginalName());\n }else if(extension.equals(\"mp3\")){\n productAudioNames.add(solrSearch.getOriginalName());\n }else if(extension.equals(\"mp4\")){\n productVideoNames.add(solrSearch.getOriginalName());\n }\n }\n }\n }\n\n else {\n List<File> file = fileService.fildFileByfile_name_metadata(solrSearch.getOriginalName());\n System.out.println(file);\n if(!file.isEmpty()){\n System.out.println(\"0000000000000000000000000000000000000\");\n System.out.println(file.get(0).getPrivacy());\n if(file.get(0).getPrivacy().equals(\"public\")){\n if(extension.equals(\"jpg\")){\n productImageNames.add(solrSearch.getOriginalName());\n System.out.println(\"1111111111111111111111111111\");\n }else if(extension.equals(\"mp3\")){\n productAudioNames.add(solrSearch.getOriginalName());\n System.out.println(\"22222222222222222222222222222\");\n }else if(extension.equals(\"mp4\")){\n productVideoNames.add(solrSearch.getOriginalName());\n }\n }\n }\n }\nSystem.out.println(\"5555555555555555555555555555555555555\");\n System.out.println(solrSearch.getOriginalName());\n System.out.println(solrSearch);\n }\n// List<String> fileNames = new ArrayList<String>();\n// for(File i:fileService.findFileByuser_id()){\n// fileNames.add(i.getFileName());\n// }\n model.addAttribute(\"imagefiles\", storageService.loadAll2(productImageNames).map(\n path -> \"files/\"+path.getFileName().toString())\n .collect(Collectors.toList()));\n model.addAttribute(\"audiofiles\", storageService.loadAll2(productAudioNames).map(\n path -> \"files/\"+path.getFileName().toString())\n .collect(Collectors.toList()));\n model.addAttribute(\"videofiles\", storageService.loadAll2(productVideoNames).map(\n path -> \"files/\"+path.getFileName().toString())\n .collect(Collectors.toList()));\n\n\n if(user!= null) {\n model.addAttribute(\"message\", \"logged_in\");\n model.addAttribute(\"numberImage\",fileService.findFileNumberByuser_idAndtype(\".jpg\"));\n model.addAttribute(\"numberAudio\",fileService.findFileNumberByuser_idAndtype(\".mp3\"));\n model.addAttribute(\"numberVideo\",fileService.findFileNumberByuser_idAndtype(\".mp4\"));\n }\nSystem.out.println(\"bhbhbhjbhjbhjbhjbhjbhbhjbh\");\nSystem.out.println(myString);\n\n return \"searchResult\";\n }", "@Override\n @Transactional(readOnly = true)\n public List<CollegeDTO> search(String query) {\n log.debug(\"Request to search Colleges for query {}\", query);\n return StreamSupport\n .stream(collegeSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .map(collegeMapper::toDto)\n .collect(Collectors.toList());\n }", "List<LectureDTO> search(String query);", "private void logFindAll(String ip) {\n\t\tRetailUnitOfMeasureController.logger.info(\n\t\t\t\tString.format(RetailUnitOfMeasureController.FIND_ALL_LOG_MESSAGE,\n\t\t\t\t\t\tthis.userInfo.getUserId(), ip));\n\t}", "@Transactional\n\tpublic List<Faculty> listAllFaculty() {\n\n\t\tCriteriaBuilder builder = getSession().getCriteriaBuilder();\n\t\tCriteriaQuery<Faculty> criteriaQuery = builder.createQuery(Faculty.class);\n\t\tRoot<Faculty> root = criteriaQuery.from(Faculty.class);\n\t\tcriteriaQuery.select(root);\n\t\tQuery<Faculty> query = getSession().createQuery(criteriaQuery);\n\n\t\t// query.setFirstResult((page - 1) * 5);\n\t\t// query.setMaxResults(5);\n\t\treturn query.getResultList();\n\t}", "@SkipValidation\r\n\tpublic String searchMR() throws Exception{\r\n\t\t\r\n\t\tmrList=dao_impl.searchMR(addMRPojo); \r\n\t\t\r\n\t\t//Set date from database to string type\r\n\t\t\r\n\t\tIterator<AddMRActionPojo> dsd= mrList.iterator();\r\n\t\twhile(dsd.hasNext()){\r\n\t\t\tAddMRActionPojo actionPojo=\t(AddMRActionPojo) dsd.next();\r\n\t\t\t//System.out.println(\"check\"+actionPojo.getDoj_db());\r\n\t\t\t\r\n\t\t\tif(actionPojo.getDoj_db() != null )\r\n\t\t\t{\r\n\t\t\t\tactionPojo.setDoj(new SimpleDateFormat(\"dd/MM/yyyy\").format(actionPojo.getDoj_db()));\r\n\t\t\t\taddMRPojo.setDoj(actionPojo.getDoj());\r\n\t\t\t}\r\n\t\t\tif(actionPojo.getDob_db() != null )\r\n\t\t\t{\r\n\t\t\t\tactionPojo.setDob(new SimpleDateFormat(\"dd/MM/yyyy\").format(actionPojo.getDob_db()));\r\n\t\t\t\taddMRPojo.setDob(actionPojo.getDob());\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\treturn \"SUCCESS\";\r\n\t}", "public NormalSearch() throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException {\n super();\n //ins = new globalInstance();\n // TODO Auto-generated constructor stub\n }", "public void run() {\n\t\t\t//\t\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\tint no = 0;\n\t\t\tdataSql = getSQL();\n\t\t\t//\tRow\n\t\t\tint row = 0;\n\t\t\t//\tDelete Row\n\t\t\tdetail.setRowCount(row);\n\t\t\ttry {\n\t\t\t\tm_pstmt = getStatement(dataSql);\n\t\t\t\tlog.fine(\"Start query - \"\n\t\t\t\t\t\t+ (System.currentTimeMillis() - start) + \"ms\");\n\t\t\t\tm_rs = m_pstmt.executeQuery();\n\t\t\t\tlog.fine(\"End query - \" + (System.currentTimeMillis() - start)\n\t\t\t\t\t\t+ \"ms\");\n\t\t\t\t//\tLoad Table\n\t\t\t\trow = detail.loadTable(m_rs);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tlog.log(Level.SEVERE, dataSql, e);\n\t\t\t}\n\t\t\tclose();\n\t\t\t//\n\t\t\t//no = detail.getRowCount();\n\t\t\tlog.fine(\"#\" + no + \" - \" + (System.currentTimeMillis() - start)\n\t\t\t\t\t+ \"ms\");\n\t\t\tdetail.autoSize();\n\t\t\t//\n\t\t\tm_frame.setCursor(Cursor.getDefaultCursor());\n\t\t\tsetStatusLine(\n\t\t\t\t\tInteger.toString(no) + \" \"\n\t\t\t\t\t\t\t+ Msg.getMsg(Env.getCtx(), \"SearchRows_EnterQuery\"),\n\t\t\t\t\tfalse);\n\t\t\tsetStatusDB(Integer.toString(no));\n\t\t\tif (no == 0)\n\t\t\t\tlog.fine(dataSql);\n\t\t\telse {\n\t\t\t\tdetail.getSelectionModel().setSelectionInterval(0, 0);\n\t\t\t\tdetail.requestFocus();\n\t\t\t}\n\t\t\tisAllSelected = isSelectedByDefault();\n\t\t\tselectedRows(detail);\n\t\t\t//\tSet Collapsed\n\t\t\tif(row > 0)\n\t\t\t\tcollapsibleSearch.setCollapsed(isCollapsibleByDefault());\n\t\t}", "@FXML\n private void btnSearchClick() {\n\n // Check if search field isn't empty\n if (!txtSearch.getText().equals(\"\")) {\n\n // Display the progress indicator\n resultsProgressIndicator.setVisible(true);\n\n // Get query results\n MovieAPIImpl movieAPIImpl = new MovieAPIImpl();\n movieAPIImpl.getMovieList(Constants.SERVICE_API_KEY, txtSearch.getText(), this);\n }\n }", "@Test\r\n public void testSearch() throws Exception {\r\n System.out.println(\"rechNom\");\r\n Bureau obj1 = new Bureau(0,\"Test\",\"000000000\",\"\");\r\n Bureau obj2 = new Bureau(0,\"Test2\",\"000000001\",\"\");\r\n String nomrech = \"Test\";\r\n BureauDAO instance = new BureauDAO();\r\n instance.setConnection(dbConnect);\r\n obj1=instance.create(obj1);\r\n obj2=instance.create(obj2);\r\n \r\n \r\n String result = instance.search(nomrech);\r\n if(result.contains(obj1.getSigle())) fail(\"record introuvable \"+obj1);\r\n if(result.contains(obj2.getSigle())) fail(\"record introuvable \"+obj2);\r\n instance.delete(obj1);\r\n instance.delete(obj2);\r\n }" ]
[ "0.6476202", "0.62453735", "0.61920357", "0.6152911", "0.61291206", "0.60423154", "0.59426254", "0.58796966", "0.5867866", "0.5850368", "0.57528543", "0.57407844", "0.5649756", "0.56313616", "0.5623928", "0.55679274", "0.5562042", "0.55483836", "0.5480444", "0.547327", "0.5471556", "0.54435265", "0.54210734", "0.54210734", "0.54105157", "0.5403323", "0.53909695", "0.5376154", "0.5359", "0.53580385", "0.53453225", "0.5332999", "0.5332571", "0.5315952", "0.53068495", "0.5300337", "0.5298599", "0.5293483", "0.5288313", "0.527695", "0.5262072", "0.5257711", "0.52495545", "0.5247044", "0.5244572", "0.5242174", "0.52370226", "0.5230359", "0.52282983", "0.52235335", "0.52178776", "0.5210575", "0.5209565", "0.52086514", "0.5207908", "0.52038634", "0.51974666", "0.51931065", "0.519017", "0.51823026", "0.51812166", "0.516822", "0.5162426", "0.5152006", "0.51501536", "0.5146939", "0.5144502", "0.51441354", "0.51435876", "0.5140439", "0.5139295", "0.5137155", "0.5134989", "0.5133816", "0.5127722", "0.51242846", "0.51240325", "0.51233727", "0.5122246", "0.51198053", "0.5109286", "0.51068574", "0.510192", "0.5100083", "0.5099488", "0.509255", "0.5091051", "0.50907457", "0.50883263", "0.50824374", "0.5076437", "0.50742936", "0.50636035", "0.50633967", "0.5062983", "0.50577855", "0.505235", "0.5049155", "0.5046067", "0.50447637" ]
0.59371996
7
log.debug("Faculty Model List method Started");
public List list(int pageNo, int pageSize) throws ApplicationException { StringBuffer sql = new StringBuffer("SELECT * FROM ST_FACULTY"); Connection conn = null; ArrayList list = new ArrayList(); // if page is greater than zero then apply pagination if (pageSize>0) { pageNo = (pageNo-1)*pageSize; sql.append(" limit "+ pageNo+ " , " + pageSize); } try{ conn = JDBCDataSource.getConnection(); PreparedStatement pstmt = conn.prepareStatement(sql.toString()); ResultSet rs = pstmt.executeQuery(); while (rs.next()) { FacultyBean bean = new FacultyBean(); bean.setId(rs.getLong(1)); bean.setCollegeId(rs.getLong(2)); bean.setSubjectId(rs.getLong(3)); bean.setCourseId(rs.getLong(4)); bean.setFirstName(rs.getString(5)); bean.setLastName(rs.getString(6)); bean.setGender(rs.getString(7)); bean.setDob(rs.getDate(8)); bean.setEmailId(rs.getString(9)); bean.setMobileNo(rs.getString(10)); bean.setCourseName(rs.getString(11)); bean.setCollegeName(rs.getString(12)); bean.setSubjectName(rs.getString(13)); bean.setCreatedBy(rs.getString(14)); bean.setModifiedBy(rs.getString(15)); bean.setCreatedDatetime(rs.getTimestamp(16)); bean.setModifiedDatetime(rs.getTimestamp(17)); list.add(bean); }rs.close(); }catch(Exception e){ // log.error("Database Exception ......" , e); throw new ApplicationException("Exception in list method of FacultyModel"); }finally { JDBCDataSource.closeConnection(conn); } // log.debug("Faculty Model List method End"); return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void contextLoads() {\n List<UserInfo> userInfos = new ArrayList<UserInfo>();\n userInfos = userInfoController.getUserList();\n System.out.println(userInfos);\n/* assertTrue(userInfos.size()>0);*/\n/* UserInfo userInfo = new UserInfo();\n userInfo = userInfoController.getUserByUserId(1);\n System.out.println(userInfo.toString());*/\n\n\n }", "public void printModuleStudentInfo() {\t\r\n\tfor(int i =0; i<(StudentList.size()); i++) {\r\n\t\tStudent temp =StudentList.get(i);\r\n\t\tSystem.out.println(temp.getUserName());\r\n\t}\t\r\n}", "@Override\r\n\tpublic void showlist() {\n int studentid = 0;\r\n System.out.println(\"请输入学生学号:\");\r\n studentid = input.nextInt();\r\n StudentDAO dao = new StudentDAOimpl();\r\n List<Course> list = dao.showlist(studentid);\r\n System.out.println(\"课程编号\\t课程名称\\t教师编号\\t课程课时\");\r\n for(Course c : list) {\r\n System.out.println(c.getCourseid()+\"\\t\"+c.getCoursename()+\"\\t\"+c.getTeacherid()+\"\\t\"+c.getCoursetime());\r\n }\r\n \r\n\t}", "@Transactional\n\tpublic List<Faculty> listAllFaculty() {\n\n\t\tCriteriaBuilder builder = getSession().getCriteriaBuilder();\n\t\tCriteriaQuery<Faculty> criteriaQuery = builder.createQuery(Faculty.class);\n\t\tRoot<Faculty> root = criteriaQuery.from(Faculty.class);\n\t\tcriteriaQuery.select(root);\n\t\tQuery<Faculty> query = getSession().createQuery(criteriaQuery);\n\n\t\t// query.setFirstResult((page - 1) * 5);\n\t\t// query.setMaxResults(5);\n\t\treturn query.getResultList();\n\t}", "public void findallstudentservice() {\n\t\t dao.findallstudent();\r\n\t\t\r\n\t}", "public List search(FacultyBean bean, int pageNo, int pageSize) throws ApplicationException {\n\t\t\tSystem.out.println(\"faculty model\");\n\t\t\tStringBuffer sql = new StringBuffer(\"SELECT * FROM ST_FACULTY WHERE true\");\n\t\t\tif (bean!=null) {\n\t\t\t\tif (bean.getId()>0) {\n\t\t\t\t\tsql.append(\" AND id = \" + bean.getId());\n\t\t\t\t}\n\t\t\t\tif (bean.getCollegeId() > 0) {\n\t\t\t\t\tsql.append(\" AND college_Id = \" + bean.getCollegeId());\n\t\t\t\t}\n\t\t\t\tif (bean.getFirstName() != null && bean.getFirstName().trim().length() > 0) {\n\t\t\t\t\tsql.append(\" AND FIRST_NAME like '\" + bean.getFirstName() + \"%'\");\n\t\t\t\t}\n\t\t\t\tif (bean.getLastName() != null && bean.getLastName().trim().length() > 0) {\n\t\t\t\t\tsql.append(\" AND LAST_NAME like '\" + bean.getLastName() + \"%'\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (bean.getEmailId()!=null && bean.getEmailId().length()>0) {\n\t\t\t\t\tsql.append(\" AND Email_Id like '\" + bean.getEmailId() + \"%'\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (bean.getGender()!=null && bean.getGender().length()>0) {\n\t\t\t\t\tsql.append(\" AND Gender like '\" + bean.getGender() + \"%'\");\n\t\t\t\t}\n\t\t\n\t\t\t\n\t\t\t\tif (bean.getMobileNo()!=null && bean.getMobileNo().length()>0) {\n\t\t\t\t\tsql.append(\" AND Mobile_No like '\" + bean.getMobileNo() + \"%'\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (bean.getCollegeName()!=null && bean.getCollegeName().length()>0) {\n\t\t\t\t\tsql.append(\" AND college_Name like '\" + bean.getCollegeName() + \"%'\");\n\t\t\t\t}\n\t\t\t\tif (bean.getCourseId() > 0) {\n\t\t\t\t\tsql.append(\" AND course_Id = \" + bean.getCourseId());\n\t\t\t\t}\n\t\t\t\tif (bean.getCourseName()!=null && bean.getCourseName().length()>0) {\n\t\t\t\t\tsql.append(\" AND course_Name like '\" + bean.getCourseName() + \"%'\");\n\t\t\t\t}\n\t\t\t\tif (bean.getSubjectId() > 0) {\n\t\t\t\t\tsql.append(\" AND Subject_Id = \" + bean.getSubjectId());\n\t\t\t\t}\n\t\t\t\tif (bean.getSubjectName()!=null && bean.getSubjectName().length()>0) {\n\t\t\t\t\tsql.append(\" AND subject_Name like '\" + bean.getSubjectName() + \"%'\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// if page no is greater then zero then apply pagination \n\t\t\tSystem.out.println(\"model page ........\"+pageNo +\" \"+pageSize);\n\t\t\tif(pageSize>0){\n\t\t\t\tpageNo = (pageNo-1)*pageSize;\n\t\t\t\tsql.append(\" limit \"+pageNo+ \" , \" + pageSize);\n\t\t\t}\n\t\t System.out.println(\"final sql \"+sql);\n\t\t\tConnection conn = null;\n\t\t\tArrayList list = new ArrayList();\n\t\t\ttry{\n\t\t\t\t\n\t\t\t\tconn = JDBCDataSource.getConnection();\n\t\t\t\tPreparedStatement pstmt = conn.prepareStatement(sql.toString());\n\t\t\t\tResultSet rs = pstmt.executeQuery(); \n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\t\n\t\t\t\t\tbean = new FacultyBean();\n\t\t\t\t\tbean.setId(rs.getLong(1));\n\t\t\t\t\tbean.setCollegeId(rs.getLong(2));\n\t\t\t\t\tbean.setSubjectId(rs.getLong(3));\n\t\t\t\t\tbean.setCourseId(rs.getLong(4));\n\t\t\t\t\tbean.setFirstName(rs.getString(5));\n\t\t\t\t\tbean.setLastName(rs.getString(6));\n\t\t\t\t\tbean.setGender(rs.getString(7));\n\t\t\t\t\tbean.setDob(rs.getDate(8));\n\t\t\t\t\tbean.setEmailId(rs.getString(9));\n\t\t\t\t\tbean.setMobileNo(rs.getString(10));\n\t\t\t\t\tbean.setCourseName(rs.getString(11));\n\t\t\t\t\tbean.setCollegeName(rs.getString(12));\n\t\t\t\t\tbean.setSubjectName(rs.getString(13));\n\t\t\t\t\tbean.setCreatedBy(rs.getString(14));\n\t\t\t\t\tbean.setModifiedBy(rs.getString(15));\n\t\t\t\t\tbean.setCreatedDatetime(rs.getTimestamp(16));\n\t\t\t\t\tbean.setModifiedDatetime(rs.getTimestamp(17));\n\tSystem.out.println(\"out whiile\");\n\t\t\t\t\tlist.add(bean);\n\t\t\t\t\tSystem.out.println(\"list size ----------->\"+list.size());\n\t\t\t\t}\n\t\t\t\trs.close();\n\t\t\t\t\n\t\t\t}catch(Exception e){\n\t\t\t//\tlog.error(\"database Exception .. \" , e);\n\t\t\t\te.printStackTrace();\n\t\t//\tthrow new ApplicationException(\"Exception : Exception in Search method of Faculty Model\");\n\t\t\t}finally {\n\t\t\t\tJDBCDataSource.closeConnection(conn);\n\t\t\t}\n\t\t//\tlog.debug(\"Faculty Model search method End\");\n\t\t//\tSystem.out.println(\"retuen >>>>>>>>>>>>>>>\"+list.size());\n\t\t\treturn list;\n\t\t\t\n\t\t}", "@RequestMapping(\"load-userExamDashboard\")\r\n\tpublic String userExamDashBoard(Model model, HttpSession session, LoginPojo lp, WelcomeUserPojo wup,HttpServletRequest req) {\r\n\t\tString dbval=dv.getDatabaseValue(session,req);\r\n\t\tif(dbval.equals(\"0\"))\r\n\t\treturn \"defaultDatabaseErrorPage\";\r\n\t\t\r\n\t\tString studentid = (String) session.getAttribute(sidval);\r\n\t\tList<LoginPojo> userdetails = userservice.getUserdetails(studentid);\r\n\t\tString examnewstatus = null;\r\n\t\tString stateid = null;\r\n\t\tString locationid = null;\r\n\t\tString branchid = null;\r\n\t\tString classid = null;\r\n\t\tString sectionid = null;\r\n\t\tfor (LoginPojo loginPojo : userdetails) {\r\n\t\t\tstateid = loginPojo.getState();\r\n\t\t\tlocationid = loginPojo.getLocationid();\r\n\t\t\tbranchid = loginPojo.getBarnch();\r\n\t\t\tclassid = loginPojo.getClassname();\r\n\t\t\tsectionid = loginPojo.getSection();\r\n\t\t}\r\n\r\n\t\tList<QuestionPojo> questionlist = new ArrayList<>();\r\n\t\tList<QuestionPojo> examdata = userservice.getExams(stateid, locationid, branchid, classid, sectionid);\r\n\r\n\t\tSystem.out.println(\"examdata : \"+examdata.size());\r\n\t\t\r\n\t\tString examname = null;\r\n\t\tList<ExamCompletionState> examstatus = null;\r\n\t\tfor (QuestionPojo ques : examdata) {\r\n\t\t\tQuestionPojo questionpo = new QuestionPojo();\r\n\t\t\tList<String> subjectnames = new ArrayList<>();\r\n\t\t\tList<String> subjectids = new ArrayList<>();\r\n\t\t\texamname = ques.getExamname();\r\n\t\t\tquestionpo.setExamname(examname);\r\n\t\t\tquestionpo.setSubject(ques.getSubject());\r\n\t\t\tquestionpo.setSlotdate(ques.getSlotdate());\r\n\t\t\tquestionpo.setStarttime(ques.getStarttime());\r\n\t\t\tquestionpo.setEnddate(ques.getEnddate());\r\n\t\t\tquestionpo.setEndtime(ques.getEndtime());\r\n\t\t\tquestionpo.setSubjectid(ques.getSubjectid());\r\n\t\t\tquestionpo.setExam_type(ques.getExam_type());\r\n\t\t\tquestionpo.setPatterntypeid(ques.getPatterntypeid());\r\n\t\t\tquestionpo.setTestduration(ques.getTestduration());\r\n\r\n\t\t\tList<QuestionPojo> subjects = userservice.getSubjectnamesInSubjectTable(examname);\r\n\t\t\t/** Set Subject name list */\r\n\t\t\tint listsize = 1;\r\n\t\t\tfor (QuestionPojo subj : subjects) {\r\n\t\t\t\tString subjnames = subj.getSubject_type();\r\n\t\t\t\tif (listsize == 1) {\r\n\t\t\t\t\tsubjectnames.add(subjnames);\r\n\t\t\t\t}\r\n\t\t\t\tif ((listsize != 1)) {\r\n\t\t\t\t\tsubjectnames.add(\",\" + subjnames);\r\n\t\t\t\t}\r\n\t\t\t\tlistsize++;\r\n\t\t\t}\r\n\t\t\tquestionpo.setSublist(subjectnames);\r\n\r\n\t\t\t/** Set Subject id list */\r\n\t\t\tint listidsize = 1;\r\n\t\t\tfor (QuestionPojo subj1 : subjects) {\r\n\t\t\t\tint subjids = subj1.getSubjectid();\r\n\t\t\t\tString subjidstring = String.valueOf(subjids);\r\n\t\t\t\tif (listidsize == 1) {\r\n\t\t\t\t\tsubjectids.add(subjidstring);\r\n\t\t\t\t}\r\n\t\t\t\tif ((listidsize != 1)) {\r\n\t\t\t\t\tsubjectids.add(\",\" + subjidstring);\r\n\t\t\t\t}\r\n\t\t\t\tlistidsize++;\r\n\t\t\t}\r\n\t\t\tquestionpo.setSubidlist(subjectids);\r\n\r\n\t\t\texamstatus = userservice.getExamCompletionStatusQuery(studentid, stateid, locationid, branchid, classid,\r\n\t\t\t\t\tsectionid, examname);\r\n\r\n\t\t\tif (examstatus.isEmpty()) {\r\n\t\t\t\texamnewstatus = \"false\";\r\n\t\t\t\tquestionpo.setExam_status(examnewstatus);\r\n\t\t\t}\r\n\r\n\t\t\telse {\r\n\t\t\t\tfor (ExamCompletionState examComplete : examstatus) {\r\n\r\n\t\t\t\t\tString exstatus = examComplete.getExamn_status();\r\n\t\t\t\t\tquestionpo.setExam_status(exstatus);\r\n\t\t\t\t\tif (exstatus.equals(\"start\")) {\r\n\t\t\t\t\t\texamnewstatus = \"start\";\r\n\t\t\t\t\t\tquestionpo.setExam_status(examnewstatus);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\texamnewstatus = \"Finish\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tquestionlist.add(questionpo);\r\n\t\t\tmodel.addAttribute(\"examstatus\", examnewstatus);\r\n\t\t}\r\n\r\n\t\t\r\n\t\tmodel.addAttribute(\"examdata\", examdata);\r\n\t\tmodel.addAttribute(\"questionlist\", questionlist);\r\n\r\n\t\treturn \"userExamDashboard\";\r\n\r\n\t}", "private static void LessonDAO() {\n PersonDAO personDAO = new PersonDAOImpl(); //amend in next lesson\n List<Person> personList = personDAO.getPersonList();\n\n System.out.println(\"===============================\");\n for(Person person: personList) {\n System.out.println(person.getPersonId() + \": \" + person.getFirstName() + \" \" + person.getLastName());\n }\n System.out.println(\"===============================\");\n //endregion\n\n //region Prompt User\n Scanner reader = new Scanner(System.in);\n System.out.println(\"Please Select a Person from the list: \");\n String personId = reader.nextLine();\n //endregion\n\n //region Get Person Details\n Person personDetail = personDAO.getPersonById(Integer.parseInt(personId));\n\n System.out.println(\"---Person Details---\");\n System.out.println(\"Full Name: \" + personDetail.GetFullName());\n //endregion\n }", "@Override\n\t\tpublic oep_ResponseInfo getfacultylistforreport() {\n\t\t\tString facultyquery=\"SELECT a.faculty_id, CONCAT(a.`username`,' - ',a.`email`) faculty_firstname FROM `faculty_master` a \"\n\t\t\t\t\t+ \" JOIN `course_master` c ON a.`main_subject`=c.`course_id` JOIN `course_scheduling` d ON d.`program_name`=c.`course_id` \"\n\t\t\t\t\t+ \" JOIN `test_schedule` e ON e.`batch`=d.`cs_id` GROUP BY a.`faculty_id`\";\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tList<Object> facultyList = jdbcTemplate.query(facultyquery, new RowMapper() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic Object mapRow(ResultSet rs, int arg1) throws SQLException {\n\t\t\t\t\n\t\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"facultyid\", rs.getString(\"faculty_id\"));\n\t\t\t\t\tmap.put(\"facultyname\", rs.getString(\"faculty_firstname\"));\n\t\t\t\t \n\t\t\t\t\treturn map;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tresponse.setResponseType(\"S\");\n\t\t\tresponse.setResponseObj(facultyList);\n\t\t\tresponseInfo.setInventoryResponse(response);\n\t\t\treturn responseInfo;\n\t\t}", "public College()\r\n {\r\n students = new ArrayList<Student>();\r\n }", "private void printStudListByCourse() throws Exception {\n String courseID = null;\n ArrayList<Student> studentList = new ArrayList<Student>();\n\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"\\nPlease enter course ID\");\n courseID = sc.nextLine();\n while(!courseID.matches(\"^[a-zA-Z]{2}[0-9]{4}$\")){\n System.out.println(\"Invalid input! Please enter a valid index number!\");\n courseID = sc.nextLine();\n }\n\n studentList= this.adminManager.getStudentByCourse(courseID);\n if(studentList == null){\n System.out.println(\"\\nThere is no such a course index\\n\\n\");\n System.exit(1);\n }\n if (studentList.isEmpty()){\n System.out.println(\"\\nThere is no student registered for this course ID\\n\\n\");\n return;\n }\n else{\n System.out.println(\"Hang on a moment while we load database.\\n\\n\");\n System.out.println(\"------------------------------------------------------\");\n System.out.println(\" STUDENT NAME GENDER NATIONALITY\");\n System.out.println(\"------------------------------------------------------\");\n //\n for(Student student:studentList){\n System.out.println(String.format(\"%20s %6s %s\",student.getName(),student.getGender(),student.getNationality()));\n }\n\n System.out.println(\"------------------------------------------------------\\n\");\n }\n }", "public void setFaculty(Faculty faculty) {\n this.faculty = faculty;\n }", "public void showHealthCarePersonaledata(){\n }", "void viewStudents(Professor professor);", "@RequestMapping(method = RequestMethod.GET)\n public List<User> start()\n {\n userService.addUser(new User(rightService.getByName(\"USER\"),userGroupService.getByName(\"STUDENTS\"),login,password,token,mail));\n login=login+\" \"+inc;\n password=password+\" \"+inc;\n token=token+\" \"+inc;\n mail=mail+\" \"+inc;\n inc++;\n userService.addUser(new User(rightService.getByName(\"MODERATOR\"),userGroupService.getByName(\"TEACHERS\"),login,password,token,mail));\n login=login+\" \"+inc;\n password=password+\" \"+inc;\n token=token+\" \"+inc;\n mail=mail+\" \"+inc;\n inc++;\n userService.addUser(new User(rightService.getByName(\"USER\"),userGroupService.getByName(\"STUDENTS\"),login,password,token,mail));\n\n return userService.getAll();\n }", "public static void main_printList(){\n\n table.printApplicantTable();\n\n }", "@SkipValidation\r\n\tpublic String invokeTerritoryList() throws Exception{\r\n\t\t\r\n\t\t //territoryList=dao_impl.fetchTerritory(); ------>>>>>Written in prepare method, so commented\r\n\t\t dsgnList = dao_impl.fetchDesignation();\r\n\t\t bloodGrpList = dao_impl.fetchBloodGroup();\r\n\t\t stateList = dao_impl.fetchState();\r\n\t\t cityList = dao_impl.fetchCity();\r\n\t\t regionList = dao_impl.fetchRegion();\r\n\t\t stateList = dao_impl.fetchState();\r\n\t\t \r\n\t\t System.out.println(\"size of bloodGrpList in AddMRAction class --->> \"+bloodGrpList.size());\r\n\t\t \r\n\t\t return \"SUCCESS\";\r\n\t\t\r\n\t}", "public List display(FeedbackVO vo1) {\nList l1 = new ArrayList();\r\n\t\t\r\n\t\ttry{\r\n\t\tSessionFactory sessionFactory=new Configuration().configure().buildSessionFactory();\r\n\t\tSession session =sessionFactory.openSession();\r\n\t\t\r\n\t\tQuery q=session.createQuery(\"from FeedbackVO\");\r\n\t\tl1=q.list();\r\n\t\t\r\n\t\tSystem.out.println(\"done??\");\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn l1;\r\n\t}", "public List<User> GetAllUsers() {\n/* 38 */ return this.userDal.GetAllUsers();\n/* */ }", "public void setList() \n\t\t{\n\t\t\tVector<Course> items = client.ProfessorCourseList(prof.getID());\n\t\t\tmodel.removeAllElements();\n\t\t\tif(items == null)return;\n\t\t\tString s;\n\t\t\tfor(int i = 0; i < items.size(); i++)\n\t\t\t{\n\t\t\t\ts = items.get(i).getName();\n\t\t\t\tmodel.addElement(items.get(i));\n\t\t\t}\n\t\t}", "@Override\r\npublic void addUserToCourse(User user, Course course) {\n\tSystem.out.println(\"Student \"+user.getName()+ \" has joined the \"+course.getCourseName()+\".\");\r\n\t\t\r\n}", "public String toString()\n\t{\n\t\treturn \"Faculty \"+super.toString()+\" exp in yrs \"+expInYears+\" expert in \"+sme;\n\t}", "public Faculty() {\n\t\tsuper();\n\t\tlevel = \" \";\n\t}", "public static void main(String[] args) {\n\r\n\t\tPerson person = new Person(\"Kali\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\");\r\n\t\tSystem.out.println(person.toString());\r\n\t\tStudent student = new Student(\"Sofi\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", ClassStatus.FRESHMAN);\r\n\t\tSystem.out.println(student.toString());\r\n\t\tEmployee employee = new Employee(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\");\r\n\t\tSystem.out.println(employee.toString());\r\n\t\tFaculty faculty = new Faculty(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\", 8, \"Professor\");\r\n\t\tSystem.out.println(faculty.toString());\r\n\t\tStaff staff = new Staff(\"George\", \"Sofia\", \"+359 88 0000000\", \"[email protected]\", \"Office 1\", 3000, \"02.10.2018\", \"Manager\");\r\n\t\tSystem.out.println(staff.toString());\r\n\t\t\r\n\t}", "void insertfacultydata(Faculty fac_insert);", "public String getFaculty() {\n return this.faculty;\n }", "public Faculty getFaculty() {\n return faculty;\n }", "@RequestMapping(method = RequestMethod.GET, path = \"/allUsers\")\n\t\tpublic List<leaderBoard> getAllUsers(){\n\t\t\t logger.info(\"Entered into Controller Layer\");\n\t\t List<leaderBoard> results = leaderboardrepository.findAll();\n\t\t logger.info(\"Number of Records Fetched:\" + results.size());\n\t\t \n\t\t return results;\n\t\t //this works\n\t\t \n\t\t \n\t\t}", "PersonalDetailsController(){\n hrDB=new HRDatabase();\n }", "@GetMapping(\"/showStudents\")\n public String showStudents(HttpSession session, Model model) {\n //Get a list of students from the controller\n List<Student_gra_84> students = studentDaoImpl.getAllStudents();\n\n\n //Add the results to the model\n model.addAttribute(\"students\", students);\n return \"showStudents\";\n }", "private void CreateStudentList() {\r\n\t\tStudentList=new ArrayList<Student>();\t\r\n}", "private static void showStudentDB () {\n for (Student s : studentDB) {\n System.out.println(\"ID: \" + s.getID() + \"\\n\" + \"Student: \" + s.getName());\n }\n }", "@Test\r\n public void testGetAllFestivities() {\r\n System.out.println(\"getAllFestivities\");\r\n List<Festivity> result = Database.getAllFestivities();\r\n assertTrue(result.size() > 0 );\r\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult result = mFacePlus.getAllPersonListInfo();\n\t\t\t\tif(result.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + result.data);\n\t\t\t\t\tLog.e(TAG,\"false\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tList<Person> personlist = (List<Person>) result.data;\n\t\t\t\tfor (int i = 0; i < personlist.size(); i++) {\n\t\t\t\t\tPerson person = personlist.get(i);\n\t\t\t\t\tLog.e(TAG,person.getName());\n\t\t\t\t\tLog.e(TAG,person.getId());\n\t\t\t\t}\n\t\t\t}", "public Faculty() {\n initComponents();\n Show_Facultyc_In_JTable();\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<TimeTableBean> getFacultyName() {\n\t\treturn sessionFactory.openSession().createQuery(\"from TimeTableBean\").list();\r\n\t}", "public List<UserGroup> GetActiveGroups() {\n/* 44 */ return this.userDal.GetActiveGroups();\n/* */ }", "@Override\n\tpublic List<JSONObject> studsWaiting(Map<String, Object> param) {\n\t\tString name = param.containsKey(\"name\") && param.get(\"name\") != null\n\t\t\t\t&& !param.get(\"name\").toString().isEmpty() ? param.get(\"name\")\n\t\t\t\t.toString() : \"\";\n\t\tExamManagement em = examManagementDao.getExamManagementListById(param,\n\t\t\t\tparam.get(\"termInfo\").toString());\n\t\tif (em == null) {\n\t\t\tthrow new CommonRunException(0, \"没有查询到相应的考试信息,请刷新页面!\");\n\t\t}\n\t\tInteger autoIncr = em.getAutoIncr();\n\t\tparam.put(\"autoIncr\", autoIncr);\n\t\tList<ExamPlan> eplist = examManagementDao.getExamPlanList(param, param\n\t\t\t\t.get(\"termInfo\").toString(), autoIncr);\n\t\tList<String> gralist = new ArrayList<String>();\n\t\tfor (ExamPlan ep : eplist) {\n\t\t\tgralist.add(ep.getUsedGrade());\n\t\t}\n\n\t\tHashMap<String, Account> stumap = new HashMap<String, Account>();\n\n\t\tif (!name.isEmpty()) {\n\t\t\tHashMap<String, Object> map = new HashMap<String, Object>();\n\t\t\tmap.put(\"schoolId\", param.get(\"schoolId\"));\n\t\t\tmap.put(\"termInfoId\", param.get(\"termInfo\"));\n\t\t\tmap.put(\"usedGradeId\", StringUtils.join(gralist, \",\"));\n\t\t\tList<Account> allStu = commonDataService.getStudentList(map);\n\n\t\t\tfor (Account a : allStu) {\n\t\t\t\tstumap.put(a.getId() + \"\", a);\n\t\t\t}\n\t\t\tIterator<Entry<String, Account>> it1 = stumap.entrySet().iterator();\n\t\t\tList<String> accountId = new ArrayList<String>();\n\t\t\twhile (it1.hasNext()) {\n\n\t\t\t\tEntry<String, Account> entry = it1.next();\n\n\t\t\t\tAccount ac = entry.getValue();\n\n\t\t\t\tif (ac.getName().contains(name)) {\n\t\t\t\t\taccountId.add(ac.getId() + \"\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tparam.put(\"accountId\", accountId.isEmpty() ? null : accountId);\n\t\t}\n\t\tList<JSONObject> stulist = examManagementSetDao.studsWaiting(param);\n\n\t\tif (name.isEmpty()) {\n\t\t\tList<Long> accountIds = new ArrayList<Long>();\n\t\t\tfor (JSONObject json : stulist) {\n\t\t\t\taccountIds.add(json.getLongValue(\"accountId\"));\n\t\t\t}\n\t\t\tList<Account> allStu = commonDataService.getAccountBatch(\n\t\t\t\t\tLong.valueOf(param.get(\"schoolId\").toString()), accountIds,\n\t\t\t\t\tparam.get(\"termInfo\").toString());\n\n\t\t\tfor (Account a : allStu) {\n\t\t\t\tstumap.put(a.getId() + \"\", a);\n\t\t\t}\n\t\t}\n\t\tString scheduleId = eplist.get(0).getScheduleId();\n\t\tString usedGrade = eplist.get(0).getUsedGrade();\n\t\tList<Long> ids = new ArrayList<Long>();\n\n\t\tif (scheduleId.isEmpty()) {\n\t\t\tfor (JSONObject es : stulist) {\n\t\t\t\tif (stumap.containsKey(es.getString(\"accountId\"))) {\n\t\t\t\t\tes.put(\"studName\", stumap.get(es.getString(\"accountId\"))\n\t\t\t\t\t\t\t.getName());\n\t\t\t\t}\n\t\t\t\tids.add(Long.valueOf(es.getString(\"tClassId\")));\n\t\t\t}\n\t\t\tList<Classroom> classrooms = commonDataService.getClassroomBatch(\n\t\t\t\t\tLong.valueOf(param.get(\"schoolId\").toString()), ids, param\n\t\t\t\t\t\t\t.get(\"termInfo\").toString());\n\t\t\tMap<String, Classroom> classmap = new HashMap<String, Classroom>();\n\t\t\tfor (Classroom c : classrooms) {\n\t\t\t\tclassmap.put(c.getId() + \"\", c);\n\t\t\t}\n\t\t\tfor (JSONObject se : stulist) {\n\t\t\t\tif (classmap.containsKey(se.getString(\"tClassId\"))) {\n\t\t\t\t\tse.put(\"tClassName\", classmap.get(se.getString(\"tClassId\"))\n\t\t\t\t\t\t\t.getClassName());\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tList<TSchTClassInfoExternal> tClassInfoList = scheduleExternalService\n\t\t\t\t\t.getTClassInfoExternalNoAccount(scheduleId,\n\t\t\t\t\t\t\tLong.valueOf(param.get(\"schoolId\").toString()),\n\t\t\t\t\t\t\tparam.get(\"termInfo\").toString(), usedGrade, null);\n\t\t\tMap<String, TSchTClassInfoExternal> classmap = new HashMap<String, TSchTClassInfoExternal>();\n\t\t\tif (CollectionUtils.isNotEmpty(tClassInfoList)) {\n\t\t\t\tfor (TSchTClassInfoExternal classInfo : tClassInfoList) {\n\t\t\t\t\tclassmap.put(classInfo.getTclassId(), classInfo);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (JSONObject se : stulist) {\n\t\t\t\tif (stumap.containsKey(se.getString(\"accountId\"))) {\n\t\t\t\t\tse.put(\"studName\", stumap.get(se.getString(\"accountId\"))\n\t\t\t\t\t\t\t.getName());\n\t\t\t\t}\n\t\t\t\tif (classmap.containsKey(se.getString(\"tClassId\"))) {\n\t\t\t\t\tse.put(\"tClassName\", classmap.get(se.getString(\"tClassId\"))\n\t\t\t\t\t\t\t.getTclassName());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn stulist;\n\t}", "public void list()\n {\n for(Personality objectHolder : pList)\n {\n String toPrint = objectHolder.getDetails();\n System.out.println(toPrint);\n }\n }", "private void getCourseList(){\r\n\r\n CourseDAO courseDAO = new CourseDAO(Statistics.this);\r\n List<Course> courseList= courseDAO.readListofCourses();\r\n for(Course course: courseList) {\r\n courses.add(course.getName());\r\n }\r\n\r\n }", "private void viewAllStudents() {\n Iterable<Student> students = ctrl.getStudentRepo().findAll();\n students.forEach(System.out::println);\n }", "@Override\n\tpublic List<Lecture> getLectureByFacultyId(int facultyId) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\t\n\t\tList<Lecture> LecturesList = session.createQuery(\"from Lecture where user_id=\"+facultyId).list();\n\t\treturn LecturesList;\n\t}", "public void addStudent(Student student) {\t\r\n\t\t//Adds student to list of students taking module\r\n\t\tStudentList.add(student);\r\n\t\t\r\n\t\t// adds module to students list of modules\r\n\t\tstudent.AddModuleList(ModuleName);\r\n}", "void showPatients() {\n\t\t\t\n\t}", "@ResponseBody\n @RequestMapping(value=\"/course/data\", method=RequestMethod.GET)\n public LinkedList<Course> usersCurrent(){\n dbManager.initializeDatabase();\n LinkedList<Course> courseList=dbManager.getCourseList();\n dbManager.closeDatabase();\n return courseList;\n }", "abstract public void showAllStudents();", "@Transactional\n\tpublic List<University> listAllUniversity() {\n\n\t\tCriteriaBuilder builder = getSession().getCriteriaBuilder();\n\t\tCriteriaQuery<University> criteriaQuery = builder.createQuery(University.class);\n\t\tRoot<University> root = criteriaQuery.from(University.class);\n\t\tcriteriaQuery.select(root);\n\t\tQuery<University> query = getSession().createQuery(criteriaQuery);\n\n\t\t// query.setFirstResult((page - 1) * 5);\n\t\t// query.setMaxResults(5);\n\t\treturn query.getResultList();\n\t}", "public void testListClaim(){\n\t}", "@RequestMapping(value=\"/show\",method = RequestMethod.GET)\n\n public List<Student> show_data() \n {\n return srt.findAll();\n }", "public void lectureDetails() {\n\n try {\n String sql = \"SELECT eid as 'Employee ID', lectur_name as 'Lecturer Name', faculty as 'Faculty', department as 'Department', center as 'Center', building as 'Building', lec_level as 'Level', lec_rank as 'Rank' FROM lecturer\";\n pst = con.prepareStatement(sql);\n res = pst.executeQuery();\n\n lectDetails.setModel(DbUtils.resultSetToTableModel(res));\n\n } catch (SQLException ex) {\n Logger.getLogger(lecturers_mgmt.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public ArrayList<Student> studentList()\n {\n ArrayList<Student> studentList = new ArrayList<>();\n try\n {\n DatabaseConnection databaseConnection = new DatabaseConnection();\n String query = \"select * from student\";\n ResultSet rs = databaseConnection.s.executeQuery(query);\n Student student;\n while(rs.next())\n {\n student = new Student(rs.getInt(\"student_id\"), rs.getString(\"student_name\"), rs.getString(\"batch\"), rs.getString(\"student_username\"), rs.getString(\"student_password\"));\n studentList.add(student);\n }\n }\n catch(Exception e)\n {\n JOptionPane.showMessageDialog(null, e);\n }\n return studentList;\n }", "@GetMapping\n public Response<Object> index()\n {\n return Response.ok().setPayload(facultyService.index());\n }", "public ArrayList<User> list() {\n\t\tUserDao ua=new UserDao();\n\t\treturn ua.list();\n\t\t//System.out.println(\"haii\");\n\t\t \n\t}", "public UserList list();", "@SuppressWarnings(\"unchecked\")\n\tpublic static List<Funcionario> displayRecords() {\n\t\tList<Funcionario> studentsList = new ArrayList<Funcionario>();\n\t\ttry {\n\t\t\t// Getting Session Object From SessionFactory\n\t\t\tsessionObj = buildSessionFactory().openSession();\n\t\t\t// Getting Transaction Object From Session Object\n\t\t\tsessionObj.beginTransaction();\n\n\t\t\tstudentsList = sessionObj.createQuery(\"FROM Funcionario\").list();\n\t\t} catch (Exception sqlException) {\n\t\t\tSystem.out.println(sqlException.getMessage());\n\t\t\tif (null != sessionObj.getTransaction()) {\n\t\t\t\tsessionObj.getTransaction().rollback();\n\t\t\t}\n\t\t\tsqlException.printStackTrace();\n\t\t} finally {\n\t\t\tif (sessionObj != null) {\n\t\t\t\tsessionObj.close();\n\t\t\t}\n\t\t}\n\t\treturn studentsList;\n\t}", "public void empDetails() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "public void testPrintStudentDetails() {\n\t System.out.println(\"printStudentDetails\");\n\t Student instance = student1;\n\t student1.addCourse(course1);\n\t student1.addModule(module1);\n\t instance.printStudentDetails();\n\t }", "public static void displayStudentRecords() {\n\t\tSystem.out.println(\"Student records in the database are:\");\n\t\tSelectStudentRecords records = new SelectStudentRecords();\n\t\ttry {\n\t\t\tList<Student> studentList = records.selectStudentRecords();\n\t\t\tstudentList.forEach(System.out::println);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "@Override\n\tpublic List<StudyVO> list(Criteria cri) {\n \n\t\n\t\t \n\tList<StudyVO> list =mapper.list(cri);\n\tlogger.info(\"service계층에서list는\"+mapper.list(cri));\n\t\n\tlogger.info(\"service에서 list값은\"+list);\n\tSystem.out.println(\"service에서 list값은\"+list);\n\t\n\treturn list;\n\t\n\t\n\t}", "public FacultyScreen() {\n initComponents();\n }", "public void printList() {\n userListCtrl.showAll();\n }", "public void educationLoan(){\r\n\t\tSystem.out.println(\"HSBC ----educationLoan method called from HSBCBank class\");\r\n\t}", "public ArrayList<UserDataBean> list() {\n/* 80 */ String firstname = \"\";\n/* 81 */ String lastname = \"\";\n/* 82 */ String email = \"\";\n/* */ \n/* 84 */ Connection conn = null;\n/* 85 */ PreparedStatement pstmt = null;\n/* 86 */ ResultSet rs = null;\n/* */ \n/* 88 */ ArrayList<UserDataBean> list = new ArrayList<UserDataBean>();\n/* 89 */ String sql = \"select * from members\";\n/* */ \n/* */ try {\n/* 92 */ conn = getConn();\n/* 93 */ System.out.println(\"db접속 성공\");\n/* 94 */ pstmt = conn.prepareStatement(sql);\n/* 95 */ rs = pstmt.executeQuery();\n/* */ \n/* 97 */ while (rs.next()) {\n/* 98 */ UserDataBean user = new UserDataBean(firstname, lastname, email);\n/* */ \n/* 100 */ user.setFirstname(rs.getString(\"firstname\"));\n/* 101 */ user.setLastname(rs.getString(\"lastname\"));\n/* 102 */ user.setEmail(rs.getString(\"email\"));\n/* */ \n/* 104 */ list.add(user);\n/* */ }\n/* */ \n/* 107 */ } catch (Exception e) {\n/* 108 */ e.printStackTrace();\n/* */ } finally {\n/* 110 */ closeDB();\n/* */ } \n/* */ \n/* 113 */ return list;\n/* */ }", "public void ShowInTeacherList(){\n \n for (TeacherBean tb : t_list) {\n this.t_model.addElement(tb); \n }\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 }", "public static void facultyExtended(){\n\t\tSystem.out.println(\"Enter 'EXIT' to exit to the Main Menu\");\n\t\tSystem.out.println(\"Enter 'ADD' followed by: faculty ID, name, major, class, and GPA to add a student record\");\n\t\tSystem.out.println(\"Enter 'REMOVE' followed by a faculty ID to remove a student\");\n\t\tSystem.out.println(\"Enter 'FIND' followed by a faculty ID or name to pull up student's information\");\n\t\tSystem.out.println(\"Enter 'SCHEDULE' followed by a faculty ID or name to list all courses person is teaching\");\n\t\tSystem.out.println(\"Enter 'GRANTS' followed by a faculty ID or name to list all grant information\");\n\t}", "public void printCourseInfo() {\r\n\t\r\n\tString temp =CoursesList.get(0);\r\n\tSystem.out.println(temp);\r\n}", "public PatientList()\r\n\t{\r\n\t\treadPatientListFromFile();\r\n\t\t//showPatientList();\r\n\t}", "@Test\n public void addUser(){\n System.out.println(userService.findAllSysUser());\n }", "@Test\n\tvoid testGetDepartmentsByCrit() {\n\t\tDepartmentDAO ddao = new DepartmentDAO();\n\t\tList<Department> ls = ddao.getDepartmentsByCrit();\n\t\tIterator<Department> it = ls.iterator();\n\n\t\twhile (it.hasNext()) {\n\t\t\tDepartment dpt = it.next();\n\t\t\tSystem.out.println(dpt.getDepartment_name() + \" \" + dpt.getLocation_id() + \" \" + dpt.getManager_id());\n\t\t}\n\t\t// assertEquals(203, ls.get(0).getManager_id());\n\t}", "@RequestMapping(value = \"/add/userList\", method = RequestMethod.GET)\r\n\tpublic ModelAndView listUser() {\n\t\t\r\n\t\tSystem.out.println(\"Entering list user method\");\r\n\t\tuserDAO.list();\r\n\t\t\r\n\t\tModelAndView mv = new ModelAndView(\"page\");\r\n\t\tmv.addObject(\"greeting\", \"This is list of value \");\r\n\t\treturn mv;\r\n\t}", "@Test\n\tpublic void testLister() {\n\t\tList<Professeur> list = new ArrayList<Professeur>();\n\t\tlist = professeurServiceEmp.lister();\n\t\tAssert.assertNotNull(list);\n\n\t}", "@Test\n\tpublic void printUsersTest() {\n\t\tsrv.printUsers();\n\t}", "public List search(CourseDTO dto, int pageNo, int pageSize) throws ApplicationException {\n\t\t// TODO Auto-generated method stub\n\t\t log.debug(\"Model search Started\");\n\t\t StringBuffer sql = new StringBuffer(\"SELECT * FROM ST_COURCE WHERE 1=1\");\n\t\tSystem.out.println(\"chalu hua\");\n\n\t\tif(dto.getCourceId()>0){\n\t\tCourseModelJDBCImpl cmod = new CourseModelJDBCImpl();\n\t\tCourseDTO cbe = cmod.findByPK(dto.getCourceId());\n\t\tdto.setName(cbe.getName());\n\t\t}\n\n\t\t if (dto != null) {\n\t\t if (dto.getId() > 0) {\n\t\t sql.append(\" AND ID = \" + dto.getId());\n\t\t }\n\t\t \n\t\t /* if (bean.getName() != null && bean.getName().length() > 0) {\n\t\t sql.append(\" AND NAME like '\" + bean.getName()\n\t\t + \"%'\");\n\t\t }\n\t\t \n\t\t if (bean.getCourceId()>0) {\n\t\t sql.append(\" AND COURCE_ID like '\" + bean.getCourceId() + \"'\");\n\t\t }\n\t\t \n\t\t \n\t\t if (bean.getDuration()>0) {\n\t\t sql.append(\" AND DURATION like '\" + bean.getDuration() + \"%'\");\n\t\t }*/\n\t\t \n\t\t }\n\t\t \n\n\t\t // if page size is greater than zero then apply pagination\n\t\t if (pageSize > 0) {\n\t\t // Calculate start record index\n\t\t pageNo = (pageNo - 1) * pageSize;\n\n\t\t sql.append(\" Limit \" + pageNo + \", \" + pageSize);\n\t\t // sql.append(\" limit \" + pageNo + \",\" + pageSize);\n\t\t }\n\t\tSystem.out.println(\"query==== \"+sql);\n\t\t ArrayList list = new ArrayList();\n\t\t Connection conn = null;\n\t\t System.out.println(\"conn ke par hua\");\n\t\t try {\n\t\t conn = JDBCDataSource.getConnection();\n\t\t System.out.println(\"connection create hua\");\n\t\t PreparedStatement pstmt = conn.prepareStatement(sql.toString());\n\t\t System.out.println(\"preap se bahar hua\");\n\t\t ResultSet rs = pstmt.executeQuery();\n\t\t \n\t\tSystem.out.println(\"result set ke bahar aaya\");\n\t\t while(rs.next()){\n\t\t \tdto = new CourseDTO();\t\n\t\t dto.setId(rs.getLong(1));\n\t\t dto.setName(rs.getString(2));\n\t\t dto.setCourceId(rs.getLong(3));\n\t\t dto.setDuration(rs.getInt(4));\n\t\t dto.setCreatedBy(rs.getString(5));\n\t\t dto.setModifiedBy(rs.getString(6));\n\t\t dto.setCreatedDatetime(rs.getTimestamp(7));\n\t\t dto.setModifiedDatetime(rs.getTimestamp(8));\n\t\t list.add(dto);\n\t\t System.out.println(\"khatam hua\");\n\t\t }\n\t\t rs.close();\n\t\t }\n\t\t catch (Exception e) {\n\t\t log.error(\"Database Exception..\", e);\n\t\t throw new ApplicationException(\n\t\t \"Exception : Exception in search Cource\");\n\t\t } finally {\n\t\t JDBCDataSource.closeConnection(conn);\n\t\t }\n\n\t\t log.debug(\"Model search End\");\n\t\t return list;\n\n\n\t}", "@Override\n\tpublic void execute(Model model) {\n\t\t\n\t\tMDao dao = sqlSession.getMapper(MDao.class);\n\t\tArrayList<MyMember> dtos = dao.memberList();\n\t\tmodel.addAttribute(\"list\", dtos);\n\t\t\n\t}", "@RequestMapping(method = RequestMethod.GET)\n //function to return all students\n public Collection<Student> getAllStudent() {\n return studentService.getAllStudent();\n\n }", "public void viewListofHomes() {\n\t\ttry {\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Failed to get list of homes\");\n\t\t\tSystem.out.println(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to get list of homes\");\n\t\t}\n\t}", "@Test\n public void testFindAllStudents() throws Exception {\n List<Students> list = cs.findAllStudents();\n for (Students stu :\n list) {\n System.out.println(stu);\n }\n }", "@Override\n public void display(){\n System.out.println(\"Student id: \"+getStudentId()+\"\\nName is: \"+getName()+\"\\nAge :\"+getAge()+\"\\nAcademic year: \"+getSchoolYear()\n +\"\\nNationality :\"+getNationality());\n }", "@Transactional\n\t@Override\n\tpublic List<Lesson> showLesson(int qid) throws Exception {\n\t\treturn lessonDao.findAllByQid(qid);\n\t}", "public void getGHUnitList(Model model) throws Exception {\n\t\tHashMap<String, Object> reqMap = (HashMap<String, Object>) model.asMap().get(\"pageMap\");\n\t\tHashMap<String, Object> resultMap = setGridListParamaters(reqMap);\n\t\tList<HashMap<String, Object>> list = workUnitDao.getGHUnitList(reqMap); \n\t\tresultMap.put(\"DATA_LIST\", list);\n\t\tSystem.out.println(\"!!!!!!!!!!!!!!\"+list);\n\t\tmodel.addAttribute(\"DATA_LIST\", list);\n\t\tmodel.addAttribute(\"totalCnt\", list.size());\n\t\tmodel.addAttribute(\"gridData\", getGridDataJson(resultMap, false));\n\t}", "@Override\n\tpublic JSONObject getNonparticipationExamList(Map<String, Object> param) {\n\t\tSet<String> classIdSet = new HashSet<String>();\n\t\tString cid = param.get(\"tClassId\") != null ? param.get(\"tClassId\")\n\t\t\t\t.toString() : \"\";\n\t\tJSONObject result = new JSONObject();\n\t\tSchool sch = (School) param.get(\"school\");\n\t\tparam.put(\"tClassIds\", cid.isEmpty()?\"\":Arrays.asList(cid.split(\",\")));\n\t\tif (!cid.isEmpty()) {\n\t\t\tclassIdSet.addAll(Arrays.asList(cid.split(\",\")));\n\t\t}\n\t\t\n\t\tList<JSONObject> instulist = new ArrayList<JSONObject>();\n\t\tList<JSONObject> nostulist = new ArrayList<JSONObject>();\n\t\tExamManagement em = examManagementDao.getExamManagementListById(param,\n\t\t\t\tparam.get(\"termInfo\").toString());\n\t\tif (em == null) {\n\t\t\tthrow new CommonRunException(0, \"没有查询到相应的考试信息,请刷新页面!\");\n\t\t}\n\t\tInteger autoIncr = em.getAutoIncr();\n\t\tparam.put(\"autoIncr\", autoIncr);\n\n\t\tList<ExamPlan> eplist = examManagementDao.getExamPlanList(param, param\n\t\t\t\t.get(\"termInfo\").toString(), autoIncr);\n\t\tList<String> gralist = new ArrayList<String>();\n\t\tfor (ExamPlan ep : eplist) {\n\t\t\tgralist.add(ep.getUsedGrade());\n\t\t}\n\t\tList<Account> al = new ArrayList<Account>();\n\t\t// al=commonDataService.getStudentList(Long.valueOf(param.get(\"schoolId\").toString()),\n\t\t// param.get(\"termInfo\").toString(), param.get(\"studName\").toString());\n\t\tList<String> noclass=new ArrayList<String>();\n\t\tList<String> inclass=new ArrayList<String>();\n\t\tfor (ExamPlan ep : eplist) {\n\n\t\t\tparam.put(\"examPlanId\", ep.getExamPlanId());\n\t\t\tList<JSONObject> subjectAndLe = examManagementSetDao\n\t\t\t\t\t.getExplantSubject(param);// 查询该次考试计划设置的科目级层次\n\t\t\tMap<String, Account> usermap = new HashMap<String, Account>();\n\n\t\t\tif (!ep.getScheduleId().isEmpty()) { // 从新高考取数据\n\t\t\t\tList<Long> aidlist = new ArrayList<Long>();\n\t\t\t\tList<TSchTClassInfoExternal> stulist = scheduleExternalService\n\t\t\t\t\t\t.getTClassInfoExternal(ep.getScheduleId(), Long\n\t\t\t\t\t\t\t\t.valueOf(param.get(\"schoolId\").toString()),\n\t\t\t\t\t\t\t\tparam.get(\"termInfo\").toString(), ep\n\t\t\t\t\t\t\t\t\t\t.getUsedGrade(),\n\t\t\t\t\t\t\t\tclassIdSet.isEmpty() ? null : classIdSet);\n\n\t\t\t\tif (!param.get(\"studName\").toString().isEmpty()) {\n\t\t\t\t\tal = commonDataService.getStudentList(\n\t\t\t\t\t\t\tLong.valueOf(param.get(\"schoolId\").toString()),\n\t\t\t\t\t\t\tparam.get(\"termInfo\").toString(),\n\t\t\t\t\t\t\tparam.get(\"studName\").toString());\n\t\t\t\t\tfor (Account ac : al) {\n\t\t\t\t\t\taidlist.add(ac.getId());\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (TSchTClassInfoExternal tc : stulist) {\n\t\t\t\t\t\tList<Long> tcsidlist = tc.getStudentIdList();\n\t\t\t\t\t\taidlist.addAll(tcsidlist);\n\t\t\t\t\t}\n\t\t\t\t\tal = commonDataService.getAccountBatch(\n\t\t\t\t\t\t\tLong.valueOf(param.get(\"schoolId\").toString()),\n\t\t\t\t\t\t\taidlist, param.get(\"termInfo\").toString());\n\t\t\t\t}\n\t\t\t\tif(!param.get(\"studName\").toString().isEmpty()&&classIdSet.size()<=1){\n\t\t\t\t\tparam.put(\"accountId\", aidlist.isEmpty() ? \"\" : aidlist);\n\t\t\t\t}\n\n\t\t\t\tif (al.isEmpty()) {\n\t\t\t\t\tthrow new CommonRunException(0, \"没有任何相关的学生信息\");\n\t\t\t\t}\n\t\t\t\tList<JSONObject> nolist = examManagementSetDao\n\t\t\t\t\t\t.getNonparticipationExamList(param);// 未拍考的\n\n\t\t\t\tfor (Account a : al) {\n\t\t\t\t\tusermap.put(a.getId() + \"\", a);\n\t\t\t\t}\n\n\t\t\t\tMap<String, Map<String, String>> nomap = new HashMap<String, Map<String, String>>();\n\t\t\t\tfor (JSONObject j : nolist) {\n\t\t\t\t\tif (nomap.containsKey(j.getString(\"accountId\"))) {\n\t\t\t\t\t\tMap<String, String> smap = nomap.get(j\n\t\t\t\t\t\t\t\t.getString(\"accountId\"));\n\t\t\t\t\t\tsmap.put(j.getString(\"subjectId\"),\n\t\t\t\t\t\t\t\tj.getString(\"subjectId\"));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tMap<String, String> smap = new HashMap<String, String>();\n\t\t\t\t\t\tsmap.put(j.getString(\"subjectId\"),\n\t\t\t\t\t\t\t\tj.getString(\"subjectId\"));\n\t\t\t\t\t\tnomap.put(j.getString(\"accountId\"), smap);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tList<TSchTClassInfoExternal> tClassInfoList = scheduleExternalService\n\t\t\t\t\t\t.getTClassInfoExternalNoAccount(ep.getScheduleId(),\n\t\t\t\t\t\t\t\tLong.valueOf(param.get(\"schoolId\").toString()),\n\t\t\t\t\t\t\t\tparam.get(\"termInfo\").toString(),\n\t\t\t\t\t\t\t\tep.getUsedGrade(), classIdSet);\n\t\t\t\tMap<String, TSchTClassInfoExternal> tclassMap = new HashMap<String, TSchTClassInfoExternal>();\n\t\t\t\tif (CollectionUtils.isNotEmpty(tClassInfoList)) {\n\t\t\t\t\tfor (TSchTClassInfoExternal tce : tClassInfoList) {\n\t\t\t\t\t\ttclassMap.put(tce.getTclassId(), tce);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (JSONObject json : nolist) {\n\t\t\t\t\tif (usermap.containsKey(json.getString(\"accountId\"))) {\n\t\t\t\t\t\tString tcname = tclassMap.containsKey(json\n\t\t\t\t\t\t\t\t.getString(\"tClassId\")) ? tclassMap.get(\n\t\t\t\t\t\t\t\tjson.getString(\"tClassId\")).getTclassName()\n\t\t\t\t\t\t\t\t: \"\";\n\t\t\t\t\t\tjson.put(\"studName\",\n\t\t\t\t\t\t\t\tusermap.get(json.getString(\"accountId\"))\n\t\t\t\t\t\t\t\t\t\t.getName());\n\t\t\t\t\t\tjson.put(\"tClassName\", tcname);\n\t\t\t\t\t\tjson.put(\"examPlanId\", ep.getExamPlanId());\n\t\t\t\t\t\tnoclass.add(tcname);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnostulist.addAll(nolist);\n\n\t\t\t\tfor (TSchTClassInfoExternal tc : stulist) {\n\t\t\t\t\tMap<String, JSONObject> sujmap = new HashMap<String, JSONObject>();// 存放考试需要的科目和层次\n\t\t\t\t\tString tid = tc.getTclassId();\n\t\t\t\t\tString tclaname = tclassMap.containsKey(tid) ? tclassMap\n\t\t\t\t\t\t\t.get(tid).getTclassName() : \"\";\n\t\t\t\t\tList<Long> tcsidlist = tc.getStudentIdList();\n\t\t\t\t\tList<TSchSubjectInfo> tslist = tc.getSubjectList();\n\t\t\t\t\tfor (TSchSubjectInfo ts : tslist) {\n\t\t\t\t\t\tfor (JSONObject sl : subjectAndLe) {\n\t\t\t\t\t\t\tif (sl.getString(\"subjectId\").equals(\n\t\t\t\t\t\t\t\t\tString.valueOf(ts.getSubjectId()))) {\n\t\t\t\t\t\t\t\tif (sl.getString(\"subjectLevel\").equals(\"0\")) {\n\t\t\t\t\t\t\t\t\tsujmap.put(\n\t\t\t\t\t\t\t\t\t\t\tString.valueOf(ts.getSubjectId()),\n\t\t\t\t\t\t\t\t\t\t\tsl);\n\t\t\t\t\t\t\t\t} else if (sl.getString(\"subjectLevel\").equals(\n\t\t\t\t\t\t\t\t\t\tString.valueOf(ts.getSubjectLevel()))) {\n\t\t\t\t\t\t\t\t\tsujmap.put(\n\t\t\t\t\t\t\t\t\t\t\tString.valueOf(ts.getSubjectId()),\n\t\t\t\t\t\t\t\t\t\t\tsl);\n\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\t\t\t\t\t// if(param.get(\"name\")!=null&&!param.get(\"name\").toString().isEmpty()){\n\t\t\t\t\t// Map<String,List<JSONObject>> nomap=new HashMap<String,\n\t\t\t\t\t// List<JSONObject>>();\n\t\t\t\t\t// for(JSONObject no:nolist){\n\t\t\t\t\t// if(nomap.containsKey(no.getString(\"\"))){\n\t\t\t\t\t//\n\t\t\t\t\t// }\n\t\t\t\t\t// }\n\t\t\t\t\tfor (Long tsid : tcsidlist) {// 学生列表\n\t\t\t\t\t\tif (usermap.containsKey(String.valueOf(tsid))) {// 和基础数据比较\n\t\t\t\t\t\t\tfor (Map.Entry<String, JSONObject> entry : sujmap\n\t\t\t\t\t\t\t\t\t.entrySet()) {\n\t\t\t\t\t\t\t\tString sujid = entry.getKey();\n\t\t\t\t\t\t\t\tJSONObject sujle = entry.getValue();\n\t\t\t\t\t\t\t\tString examSubjName = sujle\n\t\t\t\t\t\t\t\t\t\t.getString(\"examSubjName\");\n//\t\t\t\t\t\t\t\tif (sujle.getInteger(\"subjectLevel\") != null\n//\t\t\t\t\t\t\t\t\t\t& !sujle.getInteger(\"subjectLevel\")\n//\t\t\t\t\t\t\t\t\t\t\t\t.equals(\"0\")) {\n//\t\t\t\t\t\t\t\t\texamSubjName += EnumSubjectLevel\n//\t\t\t\t\t\t\t\t\t\t\t.findNameByValueWithBrackets(sujle\n//\t\t\t\t\t\t\t\t\t\t\t\t\t.getInteger(\"subjectLevel\"));\n//\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (!nolist.isEmpty()) {\n\t\t\t\t\t\t\t\t\tif (nomap.containsKey(String.valueOf(tsid))) {// 和不参考学生比较\n\t\t\t\t\t\t\t\t\t\tMap<String, String> sumap = nomap\n\t\t\t\t\t\t\t\t\t\t\t\t.get(String.valueOf(tsid));\n\t\t\t\t\t\t\t\t\t\tif (!sumap.containsKey(sujid)) {\n\t\t\t\t\t\t\t\t\t\t\tJSONObject json = new JSONObject();\n\t\t\t\t\t\t\t\t\t\t\tjson.put(\"accountId\", tsid);\n\t\t\t\t\t\t\t\t\t\t\tjson.put(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"studName\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tusermap.get(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.valueOf(tsid))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getName());\n\t\t\t\t\t\t\t\t\t\t\tjson.put(\"examSubjectId\", sujle\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getString(\"examSubjectId\"));\n\t\t\t\t\t\t\t\t\t\t\tjson.put(\"examSubjectName\",\n\t\t\t\t\t\t\t\t\t\t\t\t\texamSubjName);\n\t\t\t\t\t\t\t\t\t\t\tjson.put(\"tClassId\", tid);\n\t\t\t\t\t\t\t\t\t\t\tjson.put(\"tClassName\", tclaname);\n\t\t\t\t\t\t\t\t\t\t\tjson.put(\"examPlanId\",\n\t\t\t\t\t\t\t\t\t\t\t\t\tep.getExamPlanId());\n\t\t\t\t\t\t\t\t\t\t\tinstulist.add(json);\n\t\t\t\t\t\t\t\t\t\t\tinclass.add(tclaname);\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\tJSONObject json = new JSONObject();\n\t\t\t\t\t\t\t\t\t\tjson.put(\"accountId\", tsid);\n\t\t\t\t\t\t\t\t\t\tjson.put(\n\t\t\t\t\t\t\t\t\t\t\t\t\"studName\",\n\t\t\t\t\t\t\t\t\t\t\t\tusermap.get(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.valueOf(tsid))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getName());\n\t\t\t\t\t\t\t\t\t\tjson.put(\"examSubjectId\", sujle\n\t\t\t\t\t\t\t\t\t\t\t\t.getString(\"examSubjectId\"));\n\t\t\t\t\t\t\t\t\t\tjson.put(\"examSubjectName\",\n\t\t\t\t\t\t\t\t\t\t\t\texamSubjName);\n\t\t\t\t\t\t\t\t\t\tjson.put(\"tClassId\", tid);\n\t\t\t\t\t\t\t\t\t\tjson.put(\"tClassName\", tclaname);\n\t\t\t\t\t\t\t\t\t\tjson.put(\"examPlanId\",\n\t\t\t\t\t\t\t\t\t\t\t\tep.getExamPlanId());\n\t\t\t\t\t\t\t\t\t\tinstulist.add(json);\n\t\t\t\t\t\t\t\t\t\tinclass.add(tclaname);\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\tJSONObject json = new JSONObject();\n\t\t\t\t\t\t\t\t\tjson.put(\"accountId\", tsid);\n\t\t\t\t\t\t\t\t\tjson.put(\"studName\",\n\t\t\t\t\t\t\t\t\t\t\tusermap.get(String.valueOf(tsid))\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getName());\n\t\t\t\t\t\t\t\t\tjson.put(\"examSubjectId\",\n\t\t\t\t\t\t\t\t\t\t\tsujle.getString(\"examSubjectId\"));\n\t\t\t\t\t\t\t\t\tjson.put(\"examSubjectName\", examSubjName);\n\t\t\t\t\t\t\t\t\tjson.put(\"tClassId\", tid);\n\t\t\t\t\t\t\t\t\tjson.put(\"tClassName\", tclaname);\n\t\t\t\t\t\t\t\t\tjson.put(\"examPlanId\", ep.getExamPlanId());\n\t\t\t\t\t\t\t\t\tinstulist.add(json);\n\t\t\t\t\t\t\t\t\tinclass.add(tclaname);\n\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\t\t\t\t\t// }\n\n\t\t\t\t}\n\t\t\t} else if (ep.getScheduleId().isEmpty()) {\n\t\t\t\t// 没有选择课表 从基础数据取数据\n\t\t\t\tList<String> aidlist = new ArrayList<String>();\n\t\t\t\tif (!param.get(\"studName\").toString().isEmpty()) {\n\t\t\t\t\tal = commonDataService.getStudentList(\n\t\t\t\t\t\t\tLong.valueOf(param.get(\"schoolId\").toString()),\n\t\t\t\t\t\t\tparam.get(\"termInfo\").toString(),\n\t\t\t\t\t\t\tparam.get(\"studName\").toString());\n\t\t\t\t} else {\n\t\t\t\t\tHashMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\t\tmap.put(\"schoolId\", param.get(\"schoolId\"));\n\t\t\t\t\tmap.put(\"termInfoId\", param.get(\"termInfo\"));\n\t\t\t\t\tmap.put(\"usedGradeId\", StringUtils.join(gralist, \",\"));\n\t\t\t\t\tif (!cid.isEmpty()) {\n\t\t\t\t\t\tmap.put(\"classId\", cid);\n\t\t\t\t\t}\n\t\t\t\t\tal = commonDataService.getStudentList(map);\n\t\t\t\t}\n\t\t\t\tif (al.isEmpty()) {\n\t\t\t\t\tthrow new CommonRunException(0, \"没有任何相关的学生信息\");\n\t\t\t\t}\n\t\t\t\tfor (Account a : al) {\n\t\t\t\t\tusermap.put(a.getId() + \"\", a);\n\t\t\t\t\taidlist.add(a.getId() + \"\");\n\t\t\t\t}\n\t\t\t\tif(!param.get(\"studName\").toString().isEmpty()&&classIdSet.size()<=1){\n\t\t\t\t\tparam.put(\"accountId\", aidlist.isEmpty() ? \"\" : aidlist);\n\t\t\t\t}\n\t\t\t\t//param.put(\"accountId\", aidlist);\n\n\t\t\t\tList<JSONObject> nolist = examManagementSetDao\n\t\t\t\t\t\t.getNonparticipationExamList(param);// 未拍考的\n\t\t\t\tMap<String, Map<String, String>> nomap = new HashMap<String, Map<String, String>>();\n\t\t\t\tfor (JSONObject j : nolist) {\n\t\t\t\t\tif (nomap.containsKey(j.getString(\"accountId\"))) {\n\t\t\t\t\t\tMap<String, String> smap = nomap.get(j\n\t\t\t\t\t\t\t\t.getString(\"accountId\"));\n\t\t\t\t\t\tsmap.put(j.getString(\"subjectId\"),\n\t\t\t\t\t\t\t\tj.getString(\"subjectId\"));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tMap<String, String> smap = new HashMap<String, String>();\n\t\t\t\t\t\tsmap.put(j.getString(\"subjectId\"),\n\t\t\t\t\t\t\t\tj.getString(\"subjectId\"));\n\t\t\t\t\t\tnomap.put(j.getString(\"accountId\"), smap);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tMap<String, JSONObject> sujmap = new HashMap<String, JSONObject>();// 存放考试需要的科目和层次\n\n\t\t\t\tHashMap<String, Classroom> classMap = new HashMap<String, Classroom>();\n\t\t\t\tList<Classroom> classes = commonDataService.getSimpleClassList(\n\t\t\t\t\t\tsch, null, param.get(\"termInfo\").toString());\n\t\t\t\tfor (Classroom clr : classes) {\n\t\t\t\t\tif (clr.getId() != 0 && clr.getClassName() != null) {\n\t\t\t\t\t\tclassMap.put(clr.getId() + \"\", clr);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor (JSONObject sl : subjectAndLe) {\n\t\t\t\t\tsujmap.put(sl.getString(\"subjectId\"), sl);\n\t\t\t\t}\n\t\t\t\tString claid = \"\";\n\t\t\t\tString clasname = \"\";\n\n\t\t\t\tfor (JSONObject json : nolist) {// 不参考的\n\t\t\t\t\tif (usermap.containsKey(json.getString(\"accountId\"))) {\n\t\t\t\t\t\tString tcname = classMap.containsKey(json\n\t\t\t\t\t\t\t\t.getString(\"tClassId\")) ? classMap.get(\n\t\t\t\t\t\t\t\tjson.getString(\"tClassId\")).getClassName() : \"\";\n\t\t\t\t\t\tjson.put(\"studName\",\n\t\t\t\t\t\t\t\tusermap.get(json.getString(\"accountId\"))\n\t\t\t\t\t\t\t\t\t\t.getName());\n\t\t\t\t\t\tjson.put(\"tClassName\", tcname);\n\t\t\t\t\t\tjson.put(\"examPlanId\", ep.getExamPlanId());\n\t\t\t\t\t\tnoclass.add(tcname);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnostulist.addAll(nolist);\n\t\t\t\tfor (Account a : al) {\n\t\t\t\t\tString tsid = a.getId() + \"\";\n\t\t\t\t\tList<User> users = a.getUsers();\n\t\t\t\t\tfor (User u : users) {\n\t\t\t\t\t\tif (u.getStudentPart() != null) {\n\t\t\t\t\t\t\tclaid = u.getStudentPart().getClassId() + \"\";\n\t\t\t\t\t\t\tclasname = classMap.get(claid) != null ? classMap\n\t\t\t\t\t\t\t\t\t.get(claid).getClassName() : \"\";\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfor (Map.Entry<String, JSONObject> entry : sujmap\n\t\t\t\t\t\t\t.entrySet()) {\n\t\t\t\t\t\tString sujid = entry.getKey();\n\t\t\t\t\t\tJSONObject sujle = entry.getValue();\n\t\t\t\t\t\tString examSubjName = sujle.getString(\"examSubjName\");\n//\t\t\t\t\t\tif (sujle.getInteger(\"subjectLevel\") != null\n//\t\t\t\t\t\t\t\t& !sujle.getInteger(\"subjectLevel\").equals(\"0\")) {\n//\t\t\t\t\t\t\texamSubjName += EnumSubjectLevel\n//\t\t\t\t\t\t\t\t\t.findNameByValueWithBrackets(sujle\n//\t\t\t\t\t\t\t\t\t\t\t.getInteger(\"subjectLevel\"));\n//\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!nolist.isEmpty()) {\n\t\t\t\t\t\t\tif (nomap.containsKey(String.valueOf(tsid))) {// 和不参考学生比较\n\t\t\t\t\t\t\t\tMap<String, String> sumap = nomap.get(String\n\t\t\t\t\t\t\t\t\t\t.valueOf(tsid));\n\t\t\t\t\t\t\t\tif (!sumap.containsKey(sujid)) {\n\t\t\t\t\t\t\t\t\tJSONObject json = new JSONObject();\n\t\t\t\t\t\t\t\t\tjson.put(\"accountId\", tsid);\n\t\t\t\t\t\t\t\t\tjson.put(\"studName\",\n\t\t\t\t\t\t\t\t\t\t\tusermap.get(String.valueOf(tsid))\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getName());\n\t\t\t\t\t\t\t\t\tjson.put(\"examSubjectId\",\n\t\t\t\t\t\t\t\t\t\t\tsujle.getString(\"examSubjectId\"));\n\t\t\t\t\t\t\t\t\tjson.put(\"examSubjectName\", examSubjName);\n\t\t\t\t\t\t\t\t\tjson.put(\"tClassId\", claid);\n\t\t\t\t\t\t\t\t\tjson.put(\"tClassName\", clasname);\n\t\t\t\t\t\t\t\t\tjson.put(\"examPlanId\", ep.getExamPlanId());\n\t\t\t\t\t\t\t\t\tinstulist.add(json);\n\t\t\t\t\t\t\t\t\tinclass.add(clasname);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tJSONObject json = new JSONObject();\n\t\t\t\t\t\t\t\tjson.put(\"accountId\", tsid);\n\t\t\t\t\t\t\t\tjson.put(\"studName\",\n\t\t\t\t\t\t\t\t\t\tusermap.get(String.valueOf(tsid))\n\t\t\t\t\t\t\t\t\t\t\t\t.getName());\n\t\t\t\t\t\t\t\tjson.put(\"examSubjectId\",\n\t\t\t\t\t\t\t\t\t\tsujle.getString(\"examSubjectId\"));\n\t\t\t\t\t\t\t\tjson.put(\"examSubjectName\", examSubjName);\n\t\t\t\t\t\t\t\tjson.put(\"tClassId\", claid);\n\t\t\t\t\t\t\t\tjson.put(\"tClassName\", clasname);\n\t\t\t\t\t\t\t\tjson.put(\"examPlanId\", ep.getExamPlanId());\n\t\t\t\t\t\t\t\tinstulist.add(json);\n\t\t\t\t\t\t\t\tinclass.add(clasname);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tJSONObject json = new JSONObject();\n\t\t\t\t\t\t\tjson.put(\"accountId\", tsid);\n\t\t\t\t\t\t\tjson.put(\"studName\",\n\t\t\t\t\t\t\t\t\tusermap.get(String.valueOf(tsid)).getName());\n\t\t\t\t\t\t\tjson.put(\"examSubjectId\",\n\t\t\t\t\t\t\t\t\tsujle.getString(\"examSubjectId\"));\n\t\t\t\t\t\t\tjson.put(\"examSubjectName\", examSubjName);\n\t\t\t\t\t\t\tjson.put(\"tClassId\", claid);\n\t\t\t\t\t\t\tjson.put(\"tClassName\", clasname);\n\t\t\t\t\t\t\tjson.put(\"examPlanId\", ep.getExamPlanId());\n\t\t\t\t\t\t\tinstulist.add(json);\n\t\t\t\t\t\t\tinclass.add(clasname);\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\t\n\t\tnostulist = SortUtil.sortJsonListByTclassName(nostulist, 0, noclass, \"tClassName\");\n\t\tinstulist = SortUtil.sortJsonListByTclassName(instulist, 0, inclass, \"tClassName\");\n\t\tresult.put(\"studs\", instulist);\n\t\tresult.put(\"studsNotTakingExams\", nostulist);\n\t\treturn result;\n\t}", "public void loadQuestions() \n {\n try{\n ArrayList<QuestionPojo> questionList=QuestionDao.getQuestionByExamId(editExam.getExamId());\n for(QuestionPojo obj:questionList)\n {\n qstore.addQuestion(obj);\n }\n }\n catch(SQLException ex)\n {\n JOptionPane.showMessageDialog(null, \"Error while connecting to DB!\",\"Exception!\",JOptionPane.ERROR_MESSAGE);\n ex.printStackTrace();\n\n }\n }", "public void showstudents(){\n for (int i=0; i<slist.size(); i++){\n System.out.println(slist.get(i).getStudent());\n }\n }", "void onResidentLoadSuccess(List<ResidentModel> residentModelList);", "protected void doGet(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException{\n\t\n\tlog.debug(\"college list do get start\");\n\tint pageNo=1;\n\tint pageSize=DataUtility.getInt(PropertyReader.getValue(\"page.size\"));\n\t\n\tCollegeBean bean=(CollegeBean)populateBean(request);\n\tCollegeModel model=new CollegeModel();\n\tList list;\n\tList next;\n\t\n\ttry{\n\t\tlist=model.search(bean,pageNo,pageSize);\n\t\tnext=model.search(bean, pageNo + 1, pageSize);\n\t\t\n\t\tServletUtility.setList(list, request);\n\t\tif (list == null || list.size() == 0) {\n\t\t\tServletUtility.setErrorMessage(\"No record found \", request);\n\t\t}\n\t\tif (next == null || next.size() == 0) {\n\t\t\trequest.setAttribute(\"nextListSize\", 0);\n\t\t} else {\n\t\t\trequest.setAttribute(\"nextListSize\", next.size());\n\t\t}\n\n\t\tServletUtility.setList(list, request);\n\t\tServletUtility.setPageNo(pageNo, request);\n\t\tServletUtility.setPageSize(pageSize, request);\n\t\tServletUtility.forward(getView(), request, response);\n\n\t\t\n\t}catch(ApplicationException e){\n\t\tlog.error(e);\n\t\tServletUtility.handleException(e, request, response);\n\t\treturn;\n\t} catch (Exception e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\tlog.debug(\"college list do get end\");\n}", "public List<User> list();", "public void empdetails() {\r\n\t\tSystem.out.println(\"name : \"+ name);\r\n\t}", "@Test\n public void testConsultarUsuarios() {\n System.out.println(\"consultarUsuarios\");\n BibliotecarioController instance = new BibliotecarioController();\n List<Usuario> expResult = new UsuariosList().getUsuarios();\n List<Usuario> result = instance.consultarUsuarios();\n assertEquals(expResult, result);\n }", "public void logToConsole(){\n logger.trace(\"Records total: \" + employees.size());\n }", "public faculty() {\n initComponents();\n }", "@RequestMapping(\"/programmers-list\")\n public List<Programmer> getProgrammerListMembers() {\n return programmerService.getProgrammersListMembers();\n\n }", "public void setUserLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n userLog.add(new UserLog(rs.getInt(\"userID\"),\n rs.getInt(2),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public ArrayList<Booking> viewbookingsadmin() {\n\tStudentDAO studentDAO=new StudentDAO();\n\treturn studentDAO.viewbookingsadmin();\n\t\n\t\n}", "public void uptadeDB(){\n //mainDatabase.modifyStaff(this);\n }", "private static void LessonCollections() {\n List<Employee> employeeList = new ArrayList<Employee>();\n\n //Create Employees from Employee objects constructor\n Employee emp1 = new Employee(\"Jordan\", \"Walker\");\n Employee emp2 = new Employee(\"Mark\", \"Tuttle\");\n Employee emp3 = new Employee(\"Wayne\", \"Henderson\");\n\n //Add them to employee list\n employeeList.add(emp1);\n employeeList.add(emp2);\n employeeList.add(emp3);\n\n //Create employee and add to list in one line\n employeeList.add(new Employee(\"Erick\", \"Jensen\"));\n\n //Get info from list\n System.out.println(employeeList.get(3).GetFullName());\n\n //Print all full names from employee list\n for(Employee e : employeeList) {\n System.out.println(e.GetFullName());\n }\n\n }", "private void showStudentCourses()\r\n {\r\n \tString courseResponse = \"\";\r\n \tfor(Course course : this.getDBManager().getStudentCourses(this.studentId))\r\n \t{\r\n \t\tcourseResponse += \"Course Faculty: \" + course.getCourseName() + \", Course Number: \" + String.valueOf(course.getCourseNum()) + \"\\n\";\r\n \t}\r\n \tthis.getClientOut().printf(\"SUCCESS\\n%s\\n\", courseResponse);\r\n \tthis.getClientOut().flush();\r\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n CMRManager cm = new CMRManager();\n FacultyManager facultyManager = new FacultyManager();\n facultyList = facultyManager.getAllFaculty(); \n float percentage = 0;\n int noOfCompletedCMR = cm.getNoOfCompletedCMRByFacultyByYear(\"2016\", \"2017\", \"FPT2016\");\n int noOfAllCMR = cm.getNoOfCMRByFacultyByYear(\"2016\", \"2017\", \"FPT2016\");\n if (noOfAllCMR != 0) {\n percentage = (noOfCompletedCMR * 100) / noOfAllCMR;\n } else {\n percentage = 0;\n }\n CourseManager courseM = new CourseManager();\n int noOfCourseWithoutCLCM = courseM.getNoOfCourseWithoutCLCM();\n int noOfCourseWithoutCMR = courseM.getNoOfCourseWithoutCMR();\n int noOfCourseWithoutCompletedCMR = courseM.getNoOfCourseWithNotCompletedCMR();\n\n request.setAttribute(\"facultyList\", facultyList);\n request.setAttribute(\"facultyTitle\", \"FPT2016\");\n request.setAttribute(\"noOfCourseWithoutCLCM\", noOfCourseWithoutCLCM);\n request.setAttribute(\"noOfCourseWithoutCMR\", noOfCourseWithoutCMR);\n request.setAttribute(\"noOfCourseWithoutCompletedCMR\", noOfCourseWithoutCompletedCMR);\n\n request.setAttribute(\"noOfCompletedCMR\", noOfCompletedCMR);\n request.setAttribute(\"noOfAllCMR\", noOfAllCMR);\n request.setAttribute(\"percentageCompleted\", percentage);\n request.getRequestDispatcher(\"statis_exception_report.jsp\").forward(request, response);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public void listAll(){\n /*\n for(int i=0;i<employeesList.size();i++){\n System.out.println(i);\n Employee employee=(Employee)employeesList.get(i);\n System.out.print(employeesList.get(i));\n */ \n \n \n //for used to traverse employList in order to print all employee's data\n for (int i = 0; i < employeesList.size(); i++) {\n System.out.println(\"Name: \" + employeesList.get(i).getName()); \n System.out.println(\"Salary_complement: \"+employeesList.get(i).getSalary_complement()); \n \n }\n \n \n }", "@Test\n public void queryUserList() {\n\n User user = new User();\n user.setName(\"lin\");\n\n List<User> users = userDao.queryUserList(user, 0, 5);\n assertEquals(1, users.size());\n\n }" ]
[ "0.62826115", "0.61130697", "0.61099815", "0.6105866", "0.5923489", "0.590676", "0.58754104", "0.57944226", "0.5774771", "0.57354385", "0.5710848", "0.56972957", "0.5683103", "0.5677626", "0.56604755", "0.557995", "0.5566526", "0.55657804", "0.55593544", "0.5547579", "0.5536081", "0.5529713", "0.55262285", "0.5525849", "0.55245334", "0.55161434", "0.5511571", "0.55088943", "0.54997855", "0.5491615", "0.5488534", "0.5483545", "0.5479681", "0.5461312", "0.5454368", "0.54533136", "0.54526436", "0.5451985", "0.5450389", "0.54415125", "0.5440434", "0.54332453", "0.5420927", "0.5411445", "0.53994864", "0.539275", "0.5391243", "0.53898597", "0.5381729", "0.5378345", "0.53774804", "0.5365329", "0.5345984", "0.53449935", "0.5337512", "0.5326748", "0.5321061", "0.53188074", "0.5309295", "0.5308368", "0.52994454", "0.5298216", "0.5291295", "0.5285539", "0.5277664", "0.5276817", "0.5276464", "0.527603", "0.5273941", "0.5258652", "0.5257298", "0.5255515", "0.52547956", "0.52540725", "0.52481645", "0.52446836", "0.5243924", "0.5243835", "0.52419955", "0.523459", "0.52331096", "0.5229203", "0.52199644", "0.5211368", "0.52105373", "0.52101666", "0.5209339", "0.52035564", "0.51994777", "0.5194682", "0.5193728", "0.5191902", "0.51890755", "0.5188254", "0.5183636", "0.5180257", "0.51779264", "0.5177349", "0.51765895", "0.5176082" ]
0.63187873
0
OSGiDS life cycle method. Note that due to global initialization calls, this should not be called from unit tests; use the mock activator methods instead.
public void activate(BundleContext context) { // define the global ServiceRegistryAccessFactory for components and GUI code // TODO initialize from another location? ServiceRegistry.setAccessFactory(new OsgiServiceRegistryAccessFactory(context)); bootstrapSettings = BootstrapConfiguration.getInstance(); initializeProfileDirFromBootstrapSettings(); initializeConfigurablePaths(); loadRootConfiguration(false); initializeGeneralSettings(); // initialize parent temp directory root initializeParentTempDirectoryRoot(generalSettings.getTempDirectoryOverride()); initializeInstanceTempDirectoryRoot(); if (PROPERTY_SUBSTITUTION_MECHANISM_ENABLED) { initializePropertySubstitution(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BeforeEach\n\tpublic void setup() throws Exception {\n\t\tGDACoreActivator activator = new GDACoreActivator(); // Make an instance to call method that sets static field!\n\t\tactivator.start(mockContext); // Inject the mock\n\n\t\tosgiServiceBeanHandler = new OsgiServiceBeanHandler();\n\t}", "private void initService() {\r\n\t}", "public void init() {\n\t\tM_log.info(\"initialization...\");\n\t\t\n\t\t// register as an entity producer\n\t\tm_entityManager.registerEntityProducer(this, SakaiGCalendarServiceStaticVariables.REFERENCE_ROOT);\n\t\t\n\t\t// register functions\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_VIEW_ALL);\n\t\tfunctionManager.registerFunction(SakaiGCalendarServiceStaticVariables.SECURE_GCAL_EDIT);\n\t\t\n \t\t//Setup cache. This will create a cache using the default configuration used in the memory service.\n \t\tcache = memoryService.newCache(CACHE_NAME);\n\t}", "@Override\n public void autonomousInit() {\n }", "@Override\n public void autonomousInit() {\n }", "@Override\n public void autonomousInit() {\n \n }", "public BLFacadeImplementation() {\t\t\r\n\t\tSystem.out.println(\"Creating BLFacadeImplementation instance\");\r\n\t\tConfigXML c=ConfigXML.getInstance();\r\n\t\t\r\n\t\tif (c.getDataBaseOpenMode().equals(\"initialize\")) {\r\n\t\t\tDataAccess dbManager=new DataAccess(c.getDataBaseOpenMode().equals(\"initialize\"));\r\n\t\t\tdbManager.initializeDB();\r\n\t\t\tdbManager.close();\r\n\t\t\t}\r\n\t\t\r\n\t}", "public void autonomousInit() {\n \n }", "private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}", "@Override\n\tpublic void autonomousInit() {\n\t}", "private DatabaseContext() {\r\n datastore = createDatastore();\r\n init();\r\n }", "@PostConstruct\n\tpublic void init() {\n\t\ttoolsClient = galaxyApiService.getGalaxyInstance().getToolsClient();\n\t}", "public void autonomousInit() {\n }", "public void autonomousInit() {\n }", "@ServiceInit\n public void init() {\n }", "public static void init() {\n\n\t\tsnapshot = new SnapshotService();\n\t\tlog.info(\"App init...\");\n\t}", "protected void initSingletons()\n {\n Singleton.initInstance();\n }", "public static synchronized void init() {\n String registryClassName = System.getProperty(REGISTRY_CLASS_NAME,\n DefaultServiceRegistry.class.getName());\n String endpointProviderClassName = System.getProperty(ENDPOINT_PROVIDER_CLASS_NAME,\n DefaultEndpointProvider.class.getName());\n\n try {\n registry = getRegistry(registryClassName);\n endpointProvider = getEndpointProvider(endpointProviderClassName);\n transformers = new BaseTransformerRegistry();\n } catch (NullPointerException npe) {\n throw new RuntimeException(npe);\n }\n }", "private void initSingletons() {\n\t\tModel.getInstance();\n\t\tSocialManager.getInstance();\n\t\tMensaDataSource.getInstance();\n\t}", "private OpenSimDB() {\n instance = this;\n }", "@BeforeClass\n public static void beforeClass()\n {\n DatabaseDescriptor.daemonInitialization();\n }", "BundleImpl()\n {\n __m_felix = null;\n m_archive = null;\n m_state = Bundle.INSTALLED;\n m_useDeclaredActivationPolicy = false;\n m_stale = false;\n m_activator = null;\n m_context = null;\n }", "@Override\r\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\r\n\t\tdoBindService();\r\n\t\tinitImageLoaderConfig();\r\n\t}", "@Before\n \tpublic void init() throws SimpleDBException {\n assertNotNull(applicationContext);\n handlerAdapter = applicationContext.getBean(\"handlerAdapter\", HandlerAdapter.class);\n this.testClient = this.createTestClient();\n \t\trefreshRequestAndResponse();\n \t}", "@Inject\n\tprivate DataManager() {\n\t\t// nothing to do\n\t}", "@Override\n protected ObjectFactory initObjectFactory() {\n try {\n BeanManager bm = (BeanManager) new InitialContext().lookup(\"java:comp/BeanManager\");\n Set<Bean<?>> beans = bm.getBeans(CdiObjectFactory.class);\n Bean<CdiObjectFactory> beanType = (Bean<CdiObjectFactory>) beans.iterator().next();\n CreationalContext<CdiObjectFactory> ctx = bm.createCreationalContext(beanType);\n CdiObjectFactory objFactory = (CdiObjectFactory) bm.getReference(beanType, CdiObjectFactory.class, ctx);\n objFactory.init(this);\n return objFactory;\n } catch (Exception ex) {\n throw new RuntimeException(ex);\n }\n }", "@PostConstruct\n public void initPool() {\n SpringHelper.setApplicationContext(applicationContext);\n if (!initialized) {\n try {\n final File configDirectory = ConfigDirectory.setupTestEnvironement(\"OGCRestTest\");\n final File dataDirectory2 = new File(configDirectory, \"dataCsw2\");\n dataDirectory2.mkdir();\n\n try {\n serviceBusiness.delete(\"csw\", \"default\");\n serviceBusiness.delete(\"csw\", \"intern\");\n } catch (ConfigurationException ex) {}\n\n final Automatic config2 = new Automatic(\"filesystem\", dataDirectory2.getPath());\n config2.putParameter(\"shiroAccessible\", \"false\");\n serviceBusiness.create(\"csw\", \"default\", config2, null);\n\n writeProvider(\"meta1.xml\", \"42292_5p_19900609195600\");\n\n Automatic configuration = new Automatic(\"internal\", (String)null);\n configuration.putParameter(\"shiroAccessible\", \"false\");\n serviceBusiness.create(\"csw\", \"intern\", configuration, null);\n\n initServer(null, null, \"api\");\n pool = GenericDatabaseMarshallerPool.getInstance();\n initialized = true;\n } catch (Exception ex) {\n Logger.getLogger(OGCRestTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "@Override\n\tpublic void init(BundleContext context, DependencyManager manager)\n\t\t\tthrows Exception {\n\t\tmanager.add(createComponent()\n\t\t\t\t.setInterface(Object.class.getName(), null)\n\t\t\t\t.setImplementation(ConsoleClient.class)\n\t\t\t\t.add(createServiceDependency().setService(AgendaService.class).setRequired(true))\n\t\t);\n\t\t\n\t}", "public void autonomousInit() {\n\t\t\n\t}", "@Override\r\n\tpublic void onStart(ITestContext arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onStart(ITestContext arg0) {\n\t\t\r\n\t}", "private ModuleServiceImpl(){\n\t\t//initialize local data.\n\t\tfactories = new ConcurrentHashMap<String, IModuleFactory>();\n\t\tstorages = new ConcurrentHashMap<String, IModuleStorage>();\n\t\tcache = new ConcurrentHashMap<String, Module>();\n\t\tmoduleListeners = new ConcurrentHashMap<String, IModuleListener>();\n\n\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\tLOGGER.debug(\"Created new ModuleServiceImplementation\");\n\t\t}\n\n\t\tConfigurationManager.INSTANCE.configure(this);\n\t}", "public DocumentumCoreServicesImpl() {\r\n\r\n\t\tIObjectService iObjService = null;\r\n\r\n\t\tif (this.objectService == null) {\r\n\r\n\t\t\tlogger.info(INFO_INICIANDO_EMC);\r\n\r\n\t\t\ttry {\r\n\r\n\t\t\t\tRepositoryIdentityConstants repositoryIdentityConstants = EMCDocumentumFactory\r\n\t\t\t\t\t\t.getConstants(RepositoryIdentityConstants.class);\r\n\r\n\t\t\t\tthis.setRepositoryIdentityConstants(repositoryIdentityConstants);\r\n\r\n\t\t\t\tContextFactory contextFactory = ContextFactory.getInstance();\r\n\r\n\t\t\t\tIServiceContext serviceContext = contextFactory.getContext();\r\n\t\t\t\tserviceContext.setRuntimeProperty(IServiceContext.USER_TRANSACTION_HINT, IServiceContext.TRANSACTION_REQUIRED);\r\n\t\t\t\tserviceContext.setRuntimeProperty(IServiceContext.PAYLOAD_PROCESSING_POLICY, \"PAYLOAD_FAIL_ON_EXCEPTION\");\r\n\r\n\t\t\t\tsetServiceContext(serviceContext);\r\n\r\n\t\t\t\tRepositoryIdentity repoId = new RepositoryIdentity();\r\n\r\n\t\t\t\trepoId.setRepositoryName(REPOSITORY_NAME);\r\n\r\n\t\t\t\trepoId.setUserName(USER_NAME);\r\n\r\n\t\t\t\trepoId.setPassword(USER_PASSWORD);\r\n\r\n\t\t\t\tgetServiceContext().addIdentity(repoId);\r\n\r\n\t\t\t\t//\t\tcontextFactory.register(getServiceContext());\r\n\r\n\t\t\t\t//iObjectService = ServiceFactory.getInstance().getRemoteService(IObjectService.class, serviceContext, MODULE_NAME, DFS_SERVICE_URL);\r\n\t\t\t\tiObjService = ServiceFactory.getInstance().getLocalService(IObjectService.class, serviceContext);\r\n\r\n\t\t\t\tlogger.info(INFO_CONEXAO_EMC);\r\n\r\n\t\t\t\tthis.objectService = iObjService;\r\n\r\n\t\t\t} catch (ServiceInvocationException e) {\r\n\r\n\t\t\t\tlogger.error(ERROR_CONEXAO_EMC.concat(e.getLocalizedMessage()));\r\n\r\n\t\t\t}\r\n\r\n\t\t\tthis.setObjectService(iObjService);\r\n\t\t}\r\n\r\n\t}", "@BeforeTest()\n\tpublic void initializemanager() {\n\t\tsetDriver(\"chrome\");\n\t\tdriver.get(getApplicationUrl(\"salesforce\"));\n\t\tdriver.manage().window().maximize();\n\t\tWebpageFactory.initializePageObjects(driver);\n\t\tDBUtil.createConnection();\n\t}", "public void init()\n\t{\n\t\ttry\n\t\t{\n\t\t\t// if we are auto-creating our schema, check and create\n\t\t\tif (m_autoDdl)\n\t\t\t{\n\t\t\t\tm_sqlService.ddl(this.getClass().getClassLoader(), \"ctools_dissertation\");\n\t\t\t}\n\n\t\t\tsuper.init();\n\t\t}\n\t\tcatch (Throwable t)\n\t\t{\n\t\t\tm_logger.warn(this +\".init(): \", t);\n\t\t}\n\t}", "public void service_INIT(){\n }", "private ServiceManagerFactory() throws ServiceException {\r\n initialize();\r\n\t}", "@Override\n\tpublic void onStart(ITestContext arg0) {\n\t\t\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 initialize() {\n\n getStartUp();\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tmApplication = null;\n\t\tContext appCtx = getApplicationContext();\n\t\tif (appCtx instanceof DSCApplication) {\n\t\t\tmApplication = (DSCApplication) appCtx;\n\t\t}\n\t\tif (mApplication != null) {\n\t\t\tmApplication.initFolderObserverList(false);\n\t\t}\n\t}", "private void initialize()\n {\n if (null!=cc)\n {\n throw new RuntimeException(\"CorpusServiceI has been initialized already\");\n }\n dataDir = mAdapter.getCommunicator().getProperties().getProperty(\"CVAC.DataDir\");\n logger.log(Level.FINE, \"CorpusService found CVAC.DataDir={0}\", dataDir);\n logger.setLevel(Level.FINEST);\n CorpusI.rootDataDir = dataDir;\n cc = new CorpusConfig();\n corpToImp = new HashMap<String, CorpusI>();\n logger.log(Level.INFO, \"CorpusService initialized\" );\n }", "@Override\n protected void setup() {\n DFAgentDescription dfd = new DFAgentDescription();\n ServiceDescription sd = new ServiceDescription();\n sd.setType(\"ControladorAgent\");\n sd.setName(getName());\n sd.setOwnership(\"soonho\");\n dfd.setName(getAID());\n dfd.addServices(sd);\n try {\n DFService.register(this, dfd);\n ControladorBehaviour comportamento = new ControladorBehaviour(this);\n addBehaviour(comportamento);\n } catch (FIPAException e) {\n myLogger.log(Logger.SEVERE, \"Agent \" + getLocalName() + \" - Cannot register with DF\", e);\n doDelete();\n }\n }", "public void init()\n {\n _appContext = SubAppContext.createOMM(System.out);\n _serviceName = CommandLine.variable(\"serviceName\");\n initGUI();\n }", "public void init() {\r\n\tlog.info(\"OsylManagerServiceImpl service init() \");\r\n\t// register functions\r\n\tfor (Iterator<String> i = functionsToRegister.iterator(); i.hasNext();) {\r\n\t String function = i.next();\r\n\t functionManager.registerFunction(function);\r\n\t}\r\n }", "private void initialize() {\n if (driver == null)\n createNewDriverInstance();\n }", "public AccommodationPledgeServiceImpl()\n {\n \t//Initialise the related Object stores\n \n }", "@Override\n\tpublic void onStart(ITestContext testContext) {\n\t\t\n\t}", "@PostConstruct\n\tpublic void init() {\n\t\tEnvironmentUtils.setEnvironment(env);\n\t}", "@BeforeClass\n protected void initialize() {\n try {\n Class<?> testbedClass = Class.forName(\n MainframeEnvironmentVerification.class.getPackage().getName()\n + \".\" + envProperties.getTestbedPropertyById(\"id\"));\n\n if (!MainframeTestbed.class.isAssignableFrom(testbedClass)) {\n fail(\"This test can only be called on a testbed that implements the \"\n + MainframeTestbed.class.getName() + \" interface\");\n }\n MainframeTestbed testbed = (MainframeTestbed)testbedClass.newInstance();\n\n sysviewConfigs = testbed.getSysviewInstances();\n sysvDb2Configs = testbed.getSysvdb2Instances();\n cicsConfigs = testbed.getCicsRegions();\n mqConfigs = testbed.getMqSubsystems();\n imsConfigs = testbed.getImsRegions();\n datacomConfigs = testbed.getDatacomInstances();\n } catch (Exception e) {\n fail(\"Unable to query testbed for environment configuration values\", e);\n }\n\n if (!sysviewConfigs.isEmpty()) {\n // If the testbed has multiple Sysview instances we use the first for generic queries.\n try {\n sysview = new Sysview(sysviewConfigs.iterator().next().getLoadlib());\n } catch (IOException e) {\n fail(\"Unable to initialize Sysview instance used for generic queries\");\n }\n } else {\n logger.warn(\"Some checks will be skipped as the testbed contains no sysview instance\");\n }\n }", "protected void setup() {\n\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\tdfd.setName(getAID());\n\t\tServiceDescription sd = new ServiceDescription();\n\t\tsd.setType(\"paciente\");\n\t\tsd.setName(getName());\n\t\tdfd.addServices(sd);\n\t\ttry {\n\t\t\tDFService.register(this, dfd);\n\t\t} catch (FIPAException fe) {\n\t\t\tfe.printStackTrace();\n\t\t}\n\t\t\n\t\t// atualiza lista de monitores e atuadores\n\t\taddBehaviour(new UpdateAgentsTempBehaviour(this, INTERVALO_AGENTES));\n\t\t\n\t\t// ouve requisicoes dos atuadores e monitores\n\t\taddBehaviour(new ListenBehaviour());\n\t\t\n\t\t// adiciona comportamento de mudanca de temperatura\n\t\taddBehaviour(new UpdateTemperatureBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de hemoglobina\t\t\n\t\taddBehaviour(new UpdateHemoglobinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de bilirrubina\n\t\taddBehaviour(new UpdateBilirrubinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\n\t\t// adiciona comportamento de mudanca de pressao\t\t\n\t\taddBehaviour(new UpdatePressaoBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t}", "public DepControlar() {\n \n initComponents();\n depservice = new DepService();\n }", "@BeforeEach\n\tpublic void initDbManagerThreadInstance() throws Exception {\n\t\tDbManager.setThreadInstance(dbManager);\n\t}", "protected void initialize() {}", "protected void initialize() {}", "public void initialize() throws Exception{\r\n\t\tfor (Constraint c:constraints){\r\n\t\t\tconstraintMap.put(c.getModel(), c);\r\n\t\t}\r\n\t\tservices.add(this);\r\n\t\t//System.out.println(\"constraints=\"+constraintMap);\r\n\t\tif (LightStr.isEmpty(dsId)){\r\n\t\t\tif (BeanFactory.getBeanFactory().getDataService(\"default\")==null) dsId=\"default\"; else dsId=LightUtil.getHashCode();\r\n\t\t}\r\n\t\tBeanFactory.getBeanFactory().addDataService(dsId, this);\r\n\t}", "@Before\n @Override\n public void init() {\n }", "private void initializeIdGen() {\n try {\n InitialContext context = new InitialContext();\n Object o = context.lookup(\"idgenerator/IdGenEJB\");\n IdGenHome idGenHome = (IdGenHome) PortableRemoteObject.narrow(o, IdGenHome.class);\n idGen = idGenHome.create();\n } catch (Exception ex) {\n throw new DatabaseException(\"Failed to intialize Id Generator.\", ex);\n }\n }", "protected void initialize() {\n \t\n }", "private void initialize() throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\tuserCatalog = CatalogoUsuarios.getInstance();\n\t\tcontactDAO = AdaptadorContacto.getInstance();\n\t\tmessageDAO = AdaptadorMensajes.getInstance();\n\t}", "public static void init() {\n if (initialized) {\n return;\n }\n initialized = true;\n DebugOptions.DEV_ROOT_PATH = \"engine/src/main/resources/\";\n GL20 mockGL = new MockGL();\n Gdx.gl = mockGL;\n Gdx.gl20 = mockGL;\n\n ServiceRegistry serviceRegistry = new ServiceRegistry();\n serviceRegistry\n .with(FacadeModuleConfig.class)\n .lifetime(Lifetime.Singleton)\n .use(TestModuleConfig::new);\n serviceRegistry\n .with(ModulePathScanner.class)\n .lifetime(Lifetime.Singleton);\n\n final HeadlessApplication application = new HeadlessApplication(new SolApplication(100, serviceRegistry), new HeadlessApplicationConfiguration());\n game = ((SolApplication) application.getApplicationListener()).getGame();\n }", "protected void initialize() {\r\n }", "protected void initialize() {\r\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n }", "private void init(){\n if(solicitudEnviadaDAO == null){\n solicitudEnviadaDAO = new SolicitudEnviadaDAO(getApplicationContext());\n }\n if(solicitudRecibidaDAO == null){\n solicitudRecibidaDAO = new SolicitudRecibidaDAO(getApplicationContext());\n }\n if(solicitudContestadaDAO == null){\n solicitudContestadaDAO = new SolicitudContestadaDAO(getApplicationContext());\n }\n if(preguntaEnviadaDAO == null){\n preguntaEnviadaDAO = new PreguntaEnviadaDAO(getApplicationContext());\n }\n if(preguntaRecibidaDAO == null){\n preguntaRecibidaDAO = new PreguntaRecibidaDAO(getApplicationContext());\n }\n if(preguntaContestadaDAO == null){\n preguntaContestadaDAO = new PreguntaContestadaDAO(getApplicationContext());\n }\n if(puntuacionRecibidaDAO == null){\n puntuacionRecibidaDAO = new PuntuacionRecibidaDAO(getApplicationContext());\n }\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "@PostConstruct\n public void init() {\n String[] commandPathPatterns = new String[]{\"classpath*:/commands/**\",\n \"classpath*:/crash/commands/**\"};\n\n // Patterns to use to look for configurations.\n String[] configPathPatterns = new String[]{\"classpath*:/crash/*\"};\n\n // Comma-separated list of commands to disable.\n String[] disabledCommands = new String[]{\"jpa*\", \"jdbc*\", \"jndi*\"};\n\n // Comma-separated list of plugins to disable. Certain plugins are disabled by default\n // based on the environment.\n String[] disabledPlugins = new String[0];\n\n FS commandFileSystem = createFileSystem(\n commandPathPatterns,\n disabledCommands);\n FS configurationFileSystem = createFileSystem(\n configPathPatterns, new String[0]);\n\n PluginDiscovery discovery = new BeanFactoryFilteringPluginDiscovery(\n this.resourceLoader.getClassLoader(), this.beanFactory,\n disabledPlugins);\n\n PluginContext context = new PluginContext(discovery,\n createPluginContextAttributes(), commandFileSystem,\n configurationFileSystem, this.resourceLoader.getClassLoader());\n\n context.refresh();\n start(context);\n }", "private void initInstance() {\n init$Instance(true);\n }", "@Inject\n private DataStore() {\n final StandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n .configure()\n .build();\n try {\n sessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n } catch (Exception e) {\n LOGGER.error(\"Fehler beim initialisieren der Session\", e);\n StandardServiceRegistryBuilder.destroy(registry);\n }\n \n }", "@Before\n public void init() {\n }", "@Override\n public void initialize()\n {\n super.initialize();\n log.info(\"Initialize \" + name);\n Map<String, Collection<?>> beans;\n generator = service.getRandomSeedRepo().\n getRandomSeed(\"EvSocialClass-\" + name, 1, \"initialize\");\n\n Config.recycle();\n config = Config.getInstance();\n config.configure(service.getServerConfiguration());\n\n beans = config.getBeans();\n unpackBeans(beans);\n\n // Create and set up the customer instances\n evCustomers = new ArrayList<EvCustomer>();\n if (null == customerAttributeList) {\n // boot session - dynamic configuration\n configureForBoot(beans);\n }\n else {\n // sim session - restore from boot record\n configureForSim(beans);\n }\n }", "public testDatabaseAppController()\n\t{\n\t\tdataController = new testDatabaseController(this);\n\t\tqueryList = new ArrayList<QueryInfo>();\n\t\tappFrame = new testDatabaseFrame(this);\n\t}", "@Before\n\tpublic void init() {\n\t}", "@Override\n\tpublic void onStart(ITestContext context) {\n\t\t\n\t}", "@Override\n\tpublic void onStart(ITestContext context) {\n\t\t\n\t}", "@Override\n\tpublic void onStart(ITestContext context) {\n\t\t\n\t}", "@Override\n\tpublic void onStart(ITestContext context) {\n\t\t\n\t}", "@Override\n\tpublic void onStart(ITestContext context) {\n\t\t\n\t}", "@Before\n public void init() throws Exception {\n TestObjectGraphSingleton.init();\n TestObjectGraphSingleton.getInstance().inject(this);\n\n mockWebServer.start();\n }" ]
[ "0.67706203", "0.63438314", "0.61753917", "0.61745775", "0.61745775", "0.6123634", "0.6032259", "0.59887356", "0.59725624", "0.5971165", "0.5961975", "0.5929215", "0.5927276", "0.5927276", "0.5906115", "0.58930093", "0.58900523", "0.58715373", "0.58695126", "0.5857276", "0.5851721", "0.5848436", "0.583996", "0.5830187", "0.58093244", "0.58068323", "0.5777433", "0.57691", "0.5762356", "0.57347757", "0.57347757", "0.57336634", "0.5732789", "0.5728534", "0.5725027", "0.5724829", "0.5721791", "0.5721443", "0.57207924", "0.5717985", "0.57097924", "0.57092977", "0.570863", "0.57049847", "0.5702242", "0.5702145", "0.56970215", "0.56930393", "0.5692235", "0.56909615", "0.56909215", "0.5690048", "0.5689022", "0.5688521", "0.5688521", "0.5687714", "0.56820244", "0.5672649", "0.56681865", "0.56634474", "0.56577647", "0.5652561", "0.5652561", "0.5650834", "0.5650834", "0.5650834", "0.5650834", "0.5650834", "0.5650834", "0.5650766", "0.5647139", "0.5647139", "0.5647139", "0.5647139", "0.5647139", "0.5647139", "0.5647139", "0.5647139", "0.5647139", "0.5647139", "0.5647139", "0.5647139", "0.5647139", "0.5647139", "0.5647139", "0.5647139", "0.5647139", "0.5647139", "0.5646839", "0.564681", "0.5644336", "0.56307477", "0.5624818", "0.56243527", "0.5623574", "0.5623093", "0.5623093", "0.5623093", "0.5623093", "0.5623093", "0.5622897" ]
0.0
-1
FIXME 6.0.0 this path will change; adapt
@Override public File getProfileConfigurationFile() { return new File(getConfigurablePath(ConfigurablePathId.PROFILE_ROOT), MAIN_CONFIGURATION_FILENAME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public void method_4270() {}", "private void kk12() {\n\n\t}", "public abstract File mo41087j();", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\r\n protected String getFilePath(String code) {\n return null;\r\n }", "private void init() {\n\n\t}", "static void feladat7() {\n\t}", "static void feladat4() {\n\t}", "static void feladat6() {\n\t}", "abstract protected String getWrapperFileNameBase();", "public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "private CanonizeSource() {}", "private void strin() {\n\n\t}", "protected void mo6255a() {\n }", "private static void cajas() {\n\t\t\n\t}", "zzang mo29839S() throws RemoteException;", "protected boolean func_70814_o() { return true; }", "@Override\n public void func_104112_b() {\n \n }", "public abstract void mo70713b();", "private static void load(){\n }", "@Override\n\tprotected void load() {\n\n\t}", "@Override\n\tprotected void load() {\n\n\t}", "private FileUtil() {\n \t\tsuper();\n \t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public abstract void mo56925d();", "public void mo38117a() {\n }", "@Override\r\n\tprotected void load() {\n\t\t\r\n\t}", "private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "zzafe mo29840Y() throws RemoteException;", "public abstract void mo6549b();", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void mo4359a() {\n }", "public abstract String getFileLocation();", "static void feladat9() {\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private void m50366E() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override protected void pathInit() {\r\n\r\n // place any initialization code here\r\n\r\n }", "public abstract File mo41088k();", "private void level7() {\n }", "abstract protected String getResultFileName();", "public abstract String mo41079d();", "@Override\n protected void init() {\n }", "public void mo6081a() {\n }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void pathGenerated() {\n\n\t}", "private ControlloFile() {\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private Util() { }", "private ReportGenerationUtil() {\n\t\t\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\tprotected void initialize() {\n\n\t}", "static void feladat5() {\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\r\n public String getPath() {\n return null;\r\n }", "private JacobUtils() {}", "void mo57277b();", "public String getPath()\r\n/* 26: */ {\r\n/* 27:57 */ return this.path;\r\n/* 28: */ }", "@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\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "@Override\n protected void initLocation() {\n }", "private char[] getPath() {\n\t\treturn null;\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public abstract String mo13682d();", "private static java.io.File c(java.lang.String r8, java.lang.String r9) {\n /*\n r0 = 0;\n r1 = 0;\n r2 = new java.io.File;\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r2.<init>(r8);\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r8 = r2.exists();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n if (r8 != 0) goto L_0x001d;\n L_0x000d:\n r8 = \"DecryptUtils\";\n r9 = \"unZipSingleFile file don't exist\";\n r3 = new java.lang.Object[r0];\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.d.e(r8, r9, r3);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.b.a(r1);\n r2.delete();\n return r1;\n L_0x001d:\n r8 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.<init>();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = java.io.File.separator;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = \"unzip\";\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8 = r8.toString();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = new java.io.File;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9.<init>(r8);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.b.a(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3 = r9.exists();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n if (r3 != 0) goto L_0x0044;\n L_0x0041:\n r9.mkdirs();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n L_0x0044:\n r9 = new java.util.zip.ZipInputStream;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3 = new java.io.FileInputStream;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3.<init>(r2);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9.<init>(r3);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n L_0x004e:\n r3 = r9.getNextEntry();\t Catch:{ Exception -> 0x00dc }\n if (r3 == 0) goto L_0x00f4;\n L_0x0054:\n r4 = r3.getName();\t Catch:{ Exception -> 0x00dc }\n r3 = r3.isDirectory();\t Catch:{ Exception -> 0x00dc }\n if (r3 == 0) goto L_0x0085;\n L_0x005e:\n r3 = r4.length();\t Catch:{ Exception -> 0x00dc }\n r3 = r3 + -1;\n r3 = r4.substring(r0, r3);\t Catch:{ Exception -> 0x00dc }\n r4 = new java.io.File;\t Catch:{ Exception -> 0x00dc }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00dc }\n r5.<init>();\t Catch:{ Exception -> 0x00dc }\n r5.append(r8);\t Catch:{ Exception -> 0x00dc }\n r6 = java.io.File.separator;\t Catch:{ Exception -> 0x00dc }\n r5.append(r6);\t Catch:{ Exception -> 0x00dc }\n r5.append(r3);\t Catch:{ Exception -> 0x00dc }\n r3 = r5.toString();\t Catch:{ Exception -> 0x00dc }\n r4.<init>(r3);\t Catch:{ Exception -> 0x00dc }\n r4.mkdirs();\t Catch:{ Exception -> 0x00dc }\n goto L_0x004e;\n L_0x0085:\n r3 = new java.io.File;\t Catch:{ Exception -> 0x00dc }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00dc }\n r5.<init>();\t Catch:{ Exception -> 0x00dc }\n r5.append(r8);\t Catch:{ Exception -> 0x00dc }\n r6 = java.io.File.separator;\t Catch:{ Exception -> 0x00dc }\n r5.append(r6);\t Catch:{ Exception -> 0x00dc }\n r5.append(r4);\t Catch:{ Exception -> 0x00dc }\n r4 = r5.toString();\t Catch:{ Exception -> 0x00dc }\n r3.<init>(r4);\t Catch:{ Exception -> 0x00dc }\n r3.createNewFile();\t Catch:{ Exception -> 0x00dc }\n r4 = new java.io.FileOutputStream;\t Catch:{ Exception -> 0x00c7, all -> 0x00c4 }\n r4.<init>(r3);\t Catch:{ Exception -> 0x00c7, all -> 0x00c4 }\n r5 = 1024; // 0x400 float:1.435E-42 double:5.06E-321;\n r5 = new byte[r5];\t Catch:{ Exception -> 0x00c2 }\n L_0x00aa:\n r6 = r9.read(r5);\t Catch:{ Exception -> 0x00c2 }\n r7 = -1;\n if (r6 == r7) goto L_0x00b8;\n L_0x00b1:\n r4.write(r5, r0, r6);\t Catch:{ Exception -> 0x00c2 }\n r4.flush();\t Catch:{ Exception -> 0x00c2 }\n goto L_0x00aa;\n L_0x00b8:\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n return r3;\n L_0x00c2:\n r3 = move-exception;\n goto L_0x00c9;\n L_0x00c4:\n r8 = move-exception;\n r4 = r1;\n goto L_0x00d8;\n L_0x00c7:\n r3 = move-exception;\n r4 = r1;\n L_0x00c9:\n r5 = \"DecryptUtils\";\n r6 = \"unZipSingleFile unZip hotfix patch file error\";\n r7 = new java.lang.Object[r0];\t Catch:{ all -> 0x00d7 }\n com.taobao.sophix.e.d.a(r5, r6, r3, r7);\t Catch:{ all -> 0x00d7 }\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n goto L_0x004e;\n L_0x00d7:\n r8 = move-exception;\n L_0x00d8:\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n throw r8;\t Catch:{ Exception -> 0x00dc }\n L_0x00dc:\n r8 = move-exception;\n goto L_0x00eb;\n L_0x00de:\n r8 = move-exception;\n r9 = r1;\n goto L_0x00fc;\n L_0x00e1:\n r8 = move-exception;\n r9 = r1;\n goto L_0x00eb;\n L_0x00e4:\n r8 = move-exception;\n r9 = r1;\n r2 = r9;\n goto L_0x00fc;\n L_0x00e8:\n r8 = move-exception;\n r9 = r1;\n r2 = r9;\n L_0x00eb:\n r3 = \"DecryptUtils\";\n r4 = \"unZipSingleFile unZip hotfix patch file error\";\n r0 = new java.lang.Object[r0];\t Catch:{ all -> 0x00fb }\n com.taobao.sophix.e.d.a(r3, r4, r8, r0);\t Catch:{ all -> 0x00fb }\n L_0x00f4:\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n return r1;\n L_0x00fb:\n r8 = move-exception;\n L_0x00fc:\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n throw r8;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.taobao.sophix.e.a.c(java.lang.String, java.lang.String):java.io.File\");\n }", "public abstract void mo27386d();", "abstract String getFileRoute() throws IOException;", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\n public int describeContents() { return 0; }", "public static void main(String[] args)\r\t{", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract String mo118046b();", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public abstract void mo27385c();", "java.lang.String getXpath();", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}" ]
[ "0.53145975", "0.5274806", "0.5160706", "0.51349765", "0.5060573", "0.50536174", "0.50536174", "0.50536174", "0.50361264", "0.50274646", "0.49980992", "0.49835008", "0.49828252", "0.49826193", "0.49806786", "0.49785206", "0.4972129", "0.4967122", "0.49601513", "0.49592134", "0.4952532", "0.4945739", "0.49435872", "0.49429384", "0.49418053", "0.49418053", "0.49349576", "0.4926293", "0.49241227", "0.49235812", "0.4922614", "0.491103", "0.4906759", "0.49048215", "0.49040368", "0.4901105", "0.4899432", "0.4899432", "0.48985505", "0.48969308", "0.48969278", "0.48943087", "0.48941025", "0.4891401", "0.4887118", "0.4887008", "0.48869807", "0.48828998", "0.48758218", "0.48725167", "0.48714095", "0.4869645", "0.48691186", "0.48688883", "0.48652995", "0.4865119", "0.48650607", "0.48640347", "0.48592022", "0.48423588", "0.48423588", "0.48380974", "0.48373365", "0.48226988", "0.48226988", "0.48226988", "0.48226988", "0.48226988", "0.48226988", "0.48171818", "0.48053902", "0.4802048", "0.47988686", "0.4797692", "0.4797692", "0.4797692", "0.4797692", "0.4797692", "0.47956294", "0.4793778", "0.47898164", "0.4788771", "0.47866312", "0.47854742", "0.47828695", "0.47809464", "0.47766122", "0.47753412", "0.4770678", "0.47701505", "0.47700378", "0.47689322", "0.4768905", "0.4768685", "0.4768473", "0.4764439", "0.4764256", "0.476083", "0.47592503", "0.47525916", "0.47466666" ]
0.0
-1
Unit test initialization method.
protected void mockActivate() { this.bootstrapSettings = BootstrapConfiguration.getInstance(); initializeProfileDirFromBootstrapSettings(); initializeConfigurablePaths(); loadRootConfiguration(false); initializeGeneralSettings(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void init() {\n }", "@Test\n\tpublic void testInit() {\n\t\t/*\n\t\t * This test is just use to initialize everything and ensure a better\n\t\t * performance measure for all the other tests.\n\t\t */\n\t}", "@Test\n public void testInitialize() {\n \n \n }", "public SwerveAutoTest() {\n // Initialize base classes.\n // All via self-construction.\n\n // Initialize class members.\n // All via self-construction.\n }", "protected void setUp()\n {\n /* Add any necessary initialization code here (e.g., open a socket). */\n }", "protected void setUp()\r\n {\r\n /* Add any necessary initialization code here (e.g., open a socket). */\r\n }", "@Test\n public void testInitialize() {\n }", "@Test\n public void testInitialize() {\n }", "protected void setUp()\n {\n }", "protected void setUp()\n {\n }", "@Override\n public void setUp() {\n }", "protected void setUp() {\n\n }", "public void setUp()\r\n {\r\n //empty on purpose\r\n }", "@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}", "@Before\n @Override\n public void init() {\n }", "protected void setUp() {\n\t}", "@Before\n public void init() {\n this.testMethodName = this.getTestMethodName();\n this.initialize();\n }", "@Before public void setUp() { }", "@Before\n public void init() {\n }", "public void setUp() {\n\n\t}", "public ApplicationTest() {\n\t\t/*\n\t\t * This constructor should not be modified. Any initialization code should be\n\t\t * placed in the setUp() method instead.\n\t\t */\n\n\t}", "@Override\n public void setUp() throws Exception {}", "@Before\n\tpublic void init() {\n\t}", "public TokenControllerTest() {\n\t\t/*\n\t\t * This constructor should not be modified. Any initialization code\n\t\t * should be placed in the setUp() method instead.\n\t\t */\n\n\t}", "public LoadTestProperties() {\n }", "@Before\n\t public void setUp() {\n\t }", "protected void setUp() throws Exception {\n }", "@Override\r\n protected void setUp() {\r\n // nothing yet\r\n }", "@Override\r\n\tpublic void setUp() {\n\r\n\t}", "protected void setUp() throws Exception {\n \n }", "public StrandUnitTest()\n {\n }", "@BeforeClass\n\t public void setUp() {\n\t }", "private void testInitialization() {\r\n\r\n\r\n\t\tthis.myMapDB = MapDB.getInstance();\r\n\t\tthis.myClumpDB = ClumpDB.getInstance();\r\n\t}", "protected void setUp() throws Exception {\r\n super.setUp();\r\n\r\n testObject = new TestObject(1, \"stringValue\");\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\r\n public void setUp()\r\n {\r\n }", "@Test\n void constructorTest() {\n super.checkConstruction();\n }", "private ProtomakEngineTestHelper() {\r\n\t}", "public UnitTests()\n {\n }", "@Before\r\n\t public void setUp(){\n\t }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "protected void setUp() throws Exception {\n }", "public AcuityTest() {\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 }", "@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 }", "@Before\n public void setUp () {\n }", "@Before\n public void init(){\n }", "public BazaarTests() {\r\n\t\tsuper();\r\n\t}", "@BeforeClass\n public static void setUp() {\n }", "@BeforeAll\n static void init() {\n }", "@Before\r\n public void setupTestCases() {\r\n instance = new ShoppingListArray();\r\n }", "protected void setUp() {\n config = new ContestConfig();\n }", "protected void testInit() {\n this.auths = CitiesDataType.getTestAuths();\n this.documentKey = CityField.EVENT_ID.name();\n }", "protected void testInit() {\n this.auths = CitiesDataType.getTestAuths();\n this.documentKey = CityField.EVENT_ID.name();\n }", "@Before\n\tpublic void setUp() {\n\t}", "public PerezosoTest()\n {\n }", "@Before\n public void setUp() {\n }", "public BookcaseTest () {\n }", "@BeforeClass\n public void setUp() {\n }", "@BeforeClass\n\tpublic static void init() {\n\t\ttestProduct = new Product();\n\t\ttestProduct.setPrice(1000);\n\t\ttestProduct.setName(\"Moto 360\");\n\t\ttestProduct.setDescrip(\"Moto 360 smart watch for smart generation.\");\n\n\t\ttestReview = new Review();\n\t\ttestReview.setHeadline(\"Excellent battery life\");\n\t\ttestReview.setContent(\"Moto 360 has an excellent battery life of 10 days per full charge.\");\n\t}", "private StressTestHelper() {\n // Empty constructor.\n }", "@BeforeClass\n public static void setUpClass() {\n }", "@BeforeClass\n public static void setUpClass() {\n }", "@BeforeTest\n\n public void Initialize() {\n\n\n}", "public AllLaboTest() {\n }", "@Before\n public void setUp() throws Exception {\n }", "@Before\n public void setUp() throws Exception {\n }", "@Before\r\n\tpublic void setUp() {\n\t}", "public abstract void initializeTestSuite();", "@Test\n public void testInitialize() {\n System.out.println(\"initialize\");\n ExecutorService mwp = MY_WORKER_POOL;\n MyStatus status = mystatus;\n Class<?> package4Prefs = SettingTest.class;\n Setting.initialize(mwp, status, package4Prefs);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public TestPrelab2()\n {\n }", "public BookingSystemTest()\n {\n }", "@SuppressWarnings(\"serial\")\n @Before\n public void setUp() throws Exception {\n testInstance = new ClientsPrepopulatingBaseAction() {\n };\n }", "protected void setUp() throws Exception {\n super.setUp();\n }" ]
[ "0.82930803", "0.80786467", "0.79744804", "0.7873395", "0.7868199", "0.7852883", "0.784729", "0.784729", "0.7721653", "0.7721653", "0.76726073", "0.7658946", "0.7632063", "0.76265395", "0.7613769", "0.7611917", "0.7603606", "0.7566607", "0.7565432", "0.75599754", "0.75501966", "0.753693", "0.7527174", "0.7521996", "0.7518826", "0.7496434", "0.747131", "0.7467388", "0.7446556", "0.7444874", "0.7442642", "0.7417192", "0.74158084", "0.73545015", "0.7343958", "0.7343958", "0.7343958", "0.7343958", "0.73363954", "0.7336129", "0.7334819", "0.73149866", "0.73129267", "0.73129267", "0.73129267", "0.73129267", "0.73129267", "0.73085487", "0.7298281", "0.72981405", "0.72981405", "0.72981405", "0.72981405", "0.72981405", "0.72902644", "0.72902644", "0.72902644", "0.72902644", "0.72902644", "0.72902644", "0.72902644", "0.72902644", "0.72902644", "0.72902644", "0.72902644", "0.72902644", "0.72902644", "0.72902644", "0.72902644", "0.72902644", "0.72902644", "0.72902644", "0.72891915", "0.728715", "0.72845083", "0.72768366", "0.7256164", "0.7245547", "0.72429335", "0.7228009", "0.7228009", "0.7223343", "0.7221372", "0.72191316", "0.72137296", "0.72107434", "0.7203474", "0.7198797", "0.71978045", "0.71978045", "0.7192797", "0.71729666", "0.7167735", "0.7167735", "0.716647", "0.7163934", "0.7154093", "0.7135029", "0.71202517", "0.71168876", "0.71113384" ]
0.0
-1
TODO >6.0.0: review, then remove or rework add "platformProperties" as substitution values with a "platform:" prefix this.addSubstitutionProperties("platform", instanceConfiguration.getPlatformProperties()); load the discovery configuration (may use "platform:" substitutions internally); bootstrapping this from the "outside" is necessary to prevent a cyclic dependency while making sure the discovery properties are injected before other bundles activate
private void initializePropertySubstitution() { log.debug("Initializing property substitution"); String discoveryBundleName = discoveryBootstrapService.getSymbolicBundleName(); DiscoveryConfiguration discoveryConfiguration = getConfiguration(discoveryBundleName, DiscoveryConfiguration.class); // initialize discovery; may start a local discovery server and/or query existing servers Map<String, String> discoveryProperties = discoveryBootstrapService.initializeDiscovery(discoveryConfiguration); // register the properties learned from discovery (if any) under the "discovery" namespace this.addSubstitutionProperties("discovery", discoveryProperties); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialiseByHand() {\n Configuration production = new Configuration(\"api.example.com\", false, 2000);\n Configuration staging = new Configuration(\"api-staging.example.com\", false, 2000);\n Configuration debug = new Configuration(\"api-dev.example.com\", true, 1000);\n Map<String, Configuration> baseVariants = new HashMap<>();\n baseVariants.put(PRODUCTION, production);\n baseVariants.put(STAGING, staging);\n baseVariants.put(DEBUG, debug);\n Neanderthal.initialise(this, baseVariants, PRODUCTION);\n }", "@PostConstruct\n public void init() {\n String[] commandPathPatterns = new String[]{\"classpath*:/commands/**\",\n \"classpath*:/crash/commands/**\"};\n\n // Patterns to use to look for configurations.\n String[] configPathPatterns = new String[]{\"classpath*:/crash/*\"};\n\n // Comma-separated list of commands to disable.\n String[] disabledCommands = new String[]{\"jpa*\", \"jdbc*\", \"jndi*\"};\n\n // Comma-separated list of plugins to disable. Certain plugins are disabled by default\n // based on the environment.\n String[] disabledPlugins = new String[0];\n\n FS commandFileSystem = createFileSystem(\n commandPathPatterns,\n disabledCommands);\n FS configurationFileSystem = createFileSystem(\n configPathPatterns, new String[0]);\n\n PluginDiscovery discovery = new BeanFactoryFilteringPluginDiscovery(\n this.resourceLoader.getClassLoader(), this.beanFactory,\n disabledPlugins);\n\n PluginContext context = new PluginContext(discovery,\n createPluginContextAttributes(), commandFileSystem,\n configurationFileSystem, this.resourceLoader.getClassLoader());\n\n context.refresh();\n start(context);\n }", "private void loadCustomConfig() {\r\n ResourceBundle bundle = ResourceLoader.getProperties(DEFAULT_CUSTOM_CONFIG_NAME);\r\n if (bundle != null) {\r\n putAll(bundle);\r\n LOG.info(\"Load custom Scope config from \" + DEFAULT_CUSTOM_CONFIG_NAME + \".properties\");\r\n } else {\r\n LOG.warn(\"Can't load custom Scope config from \" + DEFAULT_CUSTOM_CONFIG_NAME + \".properties\");\r\n }\r\n }", "private void loadRegistratedResources() {\n \t\tFile kbPluginLocation = KbPlugin.getDefault().getLocation();\r\n \t\tif(kbPluginLocation!=null) {\r\n \t IExtensionRegistry registry = Platform.getExtensionRegistry();\r\n \t\t\tIExtensionPoint extensionPoint = registry.getExtensionPoint(\"org.jboss.tools.common.kb.tldResource\");\r\n \t\t\tIExtension[] extensions = extensionPoint.getExtensions();\r\n \t\t\tfor (int i=0; i<extensions.length; i++) {\r\n \t\t\t\tIExtension extension = extensions[i];\r\n \t\t\t\tIConfigurationElement[] elements = extension.getConfigurationElements();\r\n \t\t\t\tfor(int j=0; j<elements.length; j++) {\r\n \t\t\t\t\tString uri = elements[j].getAttribute(\"uri\");\r\n \t\t\t\t\tString location = elements[j].getAttribute(\"schema-location\");\r\n \t\t\t\t\tString version = elements[j].getAttribute(\"version\");\r\n \t\t\t\t\tString jsf = elements[j].getAttribute(\"jsf\");\r\n \t\t\t\t\tif(uri==null || uri.length()==0 || location==null || location.length()==0) {\r\n \t\t\t\t\t\tcontinue;\r\n \t\t\t\t\t}\r\n \t\t\t\t\tFile shemaLocation = new File(kbPluginLocation, location);\r\n \t\t\t\t\tif(shemaLocation.isFile()) {\r\n \t\t\t\t\t\tKbTldResource resource = new KbTldResource(uri, null, null, null);\r\n \t\t\t\t\t\tresource.setSchemaLocation(shemaLocation);\r\n \t\t\t\t\t\tif(version!=null && version.length()>0) {\r\n \t\t\t\t\t\t\tresource.setVersion(version);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tresource.setCustomTld(false);\r\n \t\t\t\t\t\tresource.setJsfResource(\"true\".equals(jsf));\r\n \t\t\t\t\t\tregistratedResources.put(resource, resource);\r\n \t\t\t\t\t} else {\r\n \t\t\t\t\t\tString message = \"Can't load KB schema: \" + shemaLocation;\r\n \t\t\t\t\t\tKbPlugin.getDefault().getLog().log(new Status(IStatus.WARNING, KbPlugin.PLUGIN_ID, IStatus.WARNING, message, null));\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\t// Get custom schemas.\r\n \t\tFile schemaFolder = new File(schemaLocation); \r\n \t\tif(!schemaFolder.exists()) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tFile[] schemas = schemaFolder.listFiles(new FileFilter(){\r\n \t\t\tpublic boolean accept(File file) {\r\n \t\t\t\tif(file.isFile()) {\r\n \t\t\t\t\treturn true;\r\n \t\t\t\t}\r\n \t\t\t\treturn false;\r\n \t\t\t}\r\n \t\t});\r\n \r\n \t\tfor(int i=0; i<schemas.length; i++) {\r\n \t\t\tDocument document = null;\r\n \t\t\ttry {\r\n \t\t\t\tdocument = KbDocumentBuilderFactory.createDocumentBuilder(false).parse(schemas[i]);\r\n \t\t\t} catch (Exception e) {\r\n \t\t\t\tKbPlugin.getDefault().getLog().log(new Status(IStatus.ERROR, KbPlugin.PLUGIN_ID, IStatus.OK, \"Can't parse Schema (location: \" + schemas[i] + \")\", e));\r\n \t\t\t\tcontinue;\r\n \t\t\t}\r\n //\t\t\tString tldLocation = schemas[i].getAbsolutePath();\r\n \t\t\tString tldLocation = document.getDocumentElement().getAttribute(SchemaNodeFactory.LOCATION_ATTRIBUTE);\r\n \t\t\tString tldUri = document.getDocumentElement().getAttribute(SchemaNodeFactory.URI_ATTRIBUTE);\r\n \t\t\tString tldVersion = document.getDocumentElement().getAttribute(SchemaNodeFactory.VERSION_ATTRIBUTE);\r\n \t\t\tString jsf = document.getDocumentElement().getAttribute(SchemaNodeFactory.JSF_ATTRIBUTE);\r\n \t\t\tString tldContent = null; \r\n \t\t\tNodeList children = document.getDocumentElement().getChildNodes();\r\n \t\t\tfor(int j=0; j<children.getLength(); j++) {\r\n \t\t\t\tNode node = children.item(j);\r\n \t\t\t\tif(node.getNodeName().equals(SchemaNodeFactory.TLD_CONTENT_NODE)) {\r\n \t\t\t\t\tNode child = node.getFirstChild();\r\n \t\t\t\t\tif(child instanceof CDATASection) {\r\n \t\t\t\t\t\ttldContent = ((CDATASection)child).getData();\r\n \t\t\t\t\t}\r\n \t\t\t\t\tbreak;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tKbTldResource resource = new KbTldResource(tldUri, tldLocation, null, tldVersion);\r\n \t\t\tresource.setTldContent(tldContent);\r\n \t\t\tresource.setSchemaLocation(schemas[i]);\r\n \t\t\tresource.setCustomTld(true);\r\n \t\t\tresource.setJsfResource(\"true\".equals(jsf));\r\n \t\t\tregistratedResources.put(resource, resource);\r\n \t\t}\r\n \t}", "protected void registerPlatformBeans() {\n Set<String> platformDomains = new HashSet<String>(Arrays.asList(mBeanServer.getDomains()));\n for (Map.Entry<ObjectName, ObjectNode> beanEntry : settings.beans.entrySet()) {\n // check if mBean is registered\n MBeanInfo mBeanInfo = null;\n ObjectName objectName = beanEntry.getKey();\n if (!platformDomains.contains(objectName.getDomain())) {\n continue;\n }\n try {\n mBeanInfo = mBeanServer.getMBeanInfo(objectName);\n } catch (Exception e) {\n log.warn(\"Exception while looking up mbean name {} - {}\",objectName.toString(),e.getMessage());\n continue;\n }\n\n handleAttributes(mBeanInfo, objectName, beanEntry.getValue());\n }\n if (settings.logIgnoredAttributes) {\n Set<ObjectName> objectNames = mBeanServer.queryNames(null, null);\n for (ObjectName objectName : objectNames) {\n ObjectNode jsonNodes = settings.beans.get(objectName);\n if (jsonNodes==null) {\n try {\n logAllAttributes(objectName, mBeanServer.getMBeanInfo(objectName));\n } catch (JMException e) {\n log.warn(\"\",e);\n }\n }\n }\n }\n }", "public void bootstrapped() {\n configStore.createOrUpdate(NamespaceId.SYSTEM.getNamespace(), TYPE,\n new Config(NAME, Collections.emptyMap()));\n }", "void bootPlugins() {\n\t\tList<List<String>>vals = (List<List<String>>)properties.get(\"PlugInConnectors\");\n\t\tif (vals != null && vals.size() > 0) {\n\t\t\tString name, path;\n\t\t\tIPluginConnector pc;\n\t\t\tList<String>cntr;\n\t\t\tIterator<List<String>>itr = vals.iterator();\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tcntr = itr.next();\n\t\t\t\tname = cntr.get(0);\n\t\t\t\tpath = cntr.get(1);\n\t\t\t\ttry {\n\t\t\t\t\tpc = (IPluginConnector)Class.forName(path).newInstance();\n\t\t\t\t\tpc.init(this, name);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlogError(e.getMessage(), e);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@PostConstruct\n\tprivate void init() {\n\t\ttry {\n\t\t\tif (environment.getProperty(\"marathon.uri\") != null)\n\t\t\t\tmarathonUrl = environment.getProperty(\"marathon.uri\");\n\t\t\tif (environment.getProperty(\"quay.url\") != null)\n\t\t\t\tquayHost = environment.getProperty(\"quay.url\");\n\t\t\t{\n\t\t\t\tint slashslash = quayHost.indexOf(\"//\") + 2;\n\t\t\t\tquayHost = quayHost.substring(slashslash, quayHost.indexOf('/', slashslash));\n\t\t\t\t/*\n\t\t\t\t * URL aURL = new URL(\"quayhost\"); quayhost = aURL.getHost();\n\t\t\t\t */\n\t\t\t}\n\t\t\tif (environment.getProperty(\"chronos.uri.prefix\") != null) {\n\t\t\t\tchronosUrlPrefix = environment.getProperty(\"chronos.uri.prefix\");\n\t\t\t}\n\t\t\tif (environment.getProperty(\"docker.uri.prefix\") != null) {\n\t\t\t\tdockerUri = environment.getProperty(\"docker.uri.prefix\");\n\t\t\t}\n\t\t\tif (environment.getProperty(\"websocket.retsapi.server.url\") != null) {\n\t\t\t\twebsocketServerUrl = environment.getProperty(\"websocket.retsapi.server.url\");\n\t\t\t}\n\t\t\tif (environment.getProperty(\"tomcat.url\") != null) {\n\t\t\t\ttomcatUri = environment.getProperty(\"tomcat.url\");\n\t\t\t\t// String myString = tomcatUri;\n\t\t\t\t// tomcatUri = myString.replace(\"http://\",\"\").replace(\"http://\n\t\t\t\t// www.\",\"\").replace(\"www.\",\"\");\n\t\t\t\t// int slashslash = tomcatUri.indexOf(\"//\") + 2;\n\t\t\t\t// tomcatUri = tomcatUri.substring(slashslash,\n\t\t\t\t// tomcatUri.indexOf('/', slashslash));\n\t\t\t\t// System.out.println(a);\n\t\t\t}\n\t\t\tif (environment.getProperty(\"nvidia.host\") != null) {\n\t\t\t\tnvidiaHost = environment.getProperty(\"nvidia.host\");\n\t\t\t}\n\t\t\tif (environment.getProperty(\"mesos.slave.prefix\") != null) {\n\t\t\t\tmesosSlvaePrefix = environment.getProperty(\"mesos.slave.prefix\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Error while reading properties for Marathon\", e);\n\n\t\t}\n\t}", "private void installProcessingBeanProperties() {\n ProcessingBeanUpdater.getInstance();\r\n }", "@Override\n public void initialize(Bootstrap<KafkaExampleConfiguration> bootstrap) {\n bootstrap.addBundle(ConfigurationSubstitutionBundle.builder().build());\n bootstrap.addBundle(kafka);\n }", "@Override\n\tpublic void loadDefaults(String version, SystemConfig config, SystemContext systemContext, RtwsProperties properties) \n\t\t\t\t\t\t\t\t\t\tthrows MarshalException, DefaultConfigurationException {\n\t\ttry{\n\t\t\tthis.properties = properties; //initialize properties\n\t\t\tthis.outDir = config.getOutputConfDir() + confDir;\n\t\t\tSystemBuilderUtil.mkdir(this.outDir); //create directory\n\t\t\tthis.templateDir = RtwsConfig.getInstance().getString(\"sysbuilder.template.dir\");\n\t\t\t\n\t\t\tString templatePipeline = RtwsConfig.getInstance().getString(\"sysbuilder.datasink.pipeline.template\");\n\t\t\t\n\t\t\tfactoryDefinition = serializer.createObject(templatePipeline, FactoryDefinition.class);\n\t\t\t\n\t\t\t//load ingest api json information\n\t\t\tingestApiDatasinks();\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tlogger.error(e.toString(), e);\n\t\t\te.printStackTrace();\n\t\t\tthrow new DefaultConfigurationException(e.toString(), e);\n\t\t}\n\t\t\n\t}", "public synchronized static void load()\n throws Exception\n { \n if (!isBootstrap) {\n String basedir = System.getProperty(JVM_OPT_BOOTSTRAP);\n if (load(basedir, false) == null) {\n throw new ConfiguratorException(\n \"configurator.cannot.bootstrap\");\n }\n SystemProperties.initializeProperties(\"com.iplanet.am.naming.url\",\n SystemProperties.getServerInstanceName() + \"/namingservice\");\n }\n }", "@Config.LoadPolicy(Config.LoadType.MERGE)\[email protected]({\n \"system:properties\",\n \"classpath:application.properties\"\n})\npublic interface ProjectConfig extends Config {\n\n @Key(\"app.hostname\")\n String hostname();\n\n @Key(\"browser.name\")\n @DefaultValue(\"chrome\")\n String browser();\n\n}", "static private synchronized void initServices() {\n if (_eiService == null) {\n try {\n _eiService = (ExtensionInstallerService)ServiceManager.lookup(\"javax.jnlp.ExtensionInstallerService\");\n _basicService = (BasicService)ServiceManager.lookup(\"javax.jnlp.BasicService\");\n _downloadService = (DownloadService)ServiceManager.lookup(\"javax.jnlp.DownloadService\");\n } catch(UnavailableServiceException use) {\n Config.trace(\"Unable to locate service: \" + use);\n }\n }\n\n // We cannot really use this, since it breaks lazy loading. When resources for all locales\n // are in place it should be ok. Or we need another solution.\n //_resources = ResourceBundle.getBundle(\"jnlp/JreInstaller/resources/strings\");\n try {\n URL bundle = (new Config()).getClass().getClassLoader().getResource(\"jnlp/sample/JreInstaller/resources/strings.properties\");\n _resources = new PropertyResourceBundle(bundle.openStream());\n } catch(Throwable t) {\n Config.trace(\"Unable to load resources: \" + t);\n }\n }", "public static synchronized void init() {\n String registryClassName = System.getProperty(REGISTRY_CLASS_NAME,\n DefaultServiceRegistry.class.getName());\n String endpointProviderClassName = System.getProperty(ENDPOINT_PROVIDER_CLASS_NAME,\n DefaultEndpointProvider.class.getName());\n\n try {\n registry = getRegistry(registryClassName);\n endpointProvider = getEndpointProvider(endpointProviderClassName);\n transformers = new BaseTransformerRegistry();\n } catch (NullPointerException npe) {\n throw new RuntimeException(npe);\n }\n }", "private void readEntityDeploymentInitial() {\n for (Class<?> entityClass : bootupClasses.getEntities()) {\n DeployBeanInfo<?> info = createDeployBeanInfo(entityClass);\n deployInfoMap.put(entityClass, info);\n Class<?> embeddedIdType = info.getEmbeddedIdType();\n if (embeddedIdType != null) {\n embeddedIdTypes.add(embeddedIdType);\n }\n }\n for (Class<?> entityClass : bootupClasses.getEmbeddables()) {\n DeployBeanInfo<?> info = createDeployBeanInfo(entityClass);\n deployInfoMap.put(entityClass, info);\n if (embeddedIdTypes.contains(entityClass)) {\n // register embeddedId types early - scalar properties only\n // and needed for creating BeanTables (id properties)\n registerEmbeddedBean(info);\n } else {\n // delay register of other embedded beans until after\n // the BeanTables have been created to support ManyToOne\n embeddedBeans.add(info);\n }\n }\n }", "@Override\n public void initialize(Bootstrap<AppConfig> bootstrap) {\n bootstrap.setConfigurationSourceProvider(\n new SubstitutingSourceProvider(bootstrap.getConfigurationSourceProvider(),\n new EnvironmentVariableSubstitutor(false)\n )\n );\n \n bootstrap.addBundle(new FlywayBundle<AppConfig>() {\n \n @Override\n public DataSourceFactory getDataSourceFactory(AppConfig configuration) {\n return configuration.getDataSourceFactory();\n }\n \n @Override\n public FlywayFactory getFlywayFactory(AppConfig configuration) {\n return configuration.getFlywayFactory();\n }\n });\n }", "@ProviderType\npublic interface SlingSettingsService {\n\n /**\n * The name of the framework property defining the Sling home directory\n * (value is \"sling.home\"). This is a Platform file system directory below\n * which all runtime data, such as the Felix bundle archives, logfiles, the\n * repository, etc., is located.\n * <p>\n * This property is available calling the\n * <code>BundleContext.getProperty(String)</code> method.\n *\n * @see #SLING_HOME_URL\n */\n String SLING_HOME = \"sling.home\";\n\n /**\n * The name of the framework property defining the Sling home directory as\n * an URL (value is \"sling.home.url\").\n * <p>\n * The value of this property is assigned the value of\n * <code>new File(${sling.home}).toURI().toString()</code> before\n * resolving the property variables.\n * <p>\n * This property is available calling the\n * <code>BundleContext.getProperty(String)</code> method.\n *\n * @see #SLING_HOME\n */\n String SLING_HOME_URL = \"sling.home.url\";\n\n /**\n * The name of the framework property defining the set of used\n * run modes.\n * The value is a comma separated list of run modes.\n */\n String RUN_MODES_PROPERTY = \"sling.run.modes\";\n\n /**\n * The name of the framework property defining the list\n * of run mode options\n * The value is a comma separated list of options where each option\n * contains of a set of run modes separated by a | character.\n * @since 1.2.0\n */\n String RUN_MODE_OPTIONS = \"sling.run.mode.options\";\n\n /**\n * The name of the framework property defining the list\n * of run mode options for installation time.\n * The value is a comma separated list of options where each option\n * contains of a set of run modes separated by a | character.\n * @since 1.2.0\n */\n String RUN_MODE_INSTALL_OPTIONS = \"sling.run.mode.install.options\";\n\n String RUN_MODE_SPEC_OR_SEPARATOR = \",\";\n String RUN_MODE_SPEC_AND_SEPARATOR = \".\";\n String RUN_MODE_SPEC_NOT_PREFIX = \"-\";\n\n /**\n * Utility method to generate an absolute path\n * within Sling Home.\n *\n * @return the absolute including the sling home directory.\n * @since 1.1.0\n */\n String getAbsolutePathWithinSlingHome(String relativePath);\n\n /**\n * The identifier of the running Sling instance.\n * @return The unique Sling identifier.\n */\n String getSlingId();\n\n /**\n * Returns the value of the {@link #SLING_HOME}\n * property.\n * @return The sling home.\n */\n String getSlingHomePath();\n\n /**\n * Returns the value of the {@link #SLING_HOME_URL}\n * property.\n * @return Sling home as a URL.\n */\n URL getSlingHome();\n\n /**\n * Return the set of activate run modes.\n * This set might be empty.\n * @return A non modifiable set of run modes.\n */\n Set<String> getRunModes();\n\n /**\n * Checks if a given run mode spec is satisfied by the active run modes.\n * A run mode spec consists out of run modes and operators (AND = \".\", OR = \",\" and NOT = \"-\")\n * and follows the following grammar in EBNF:\n * <pre><code>\n * run mode spec ::= conjunctions { \",\" conjunctions }\n * conjunctions ::= conjunction { '.' conjunction }\n * conjunction ::= notrunmode | runmode\n * notrunmode ::= '-' runmode\n * </code></pre>\n * \n * The operator order is first \"-\" (not), second \".\" (AND), last \",\" (OR).\n * @param spec the run mode spec string to check against\n * @return the number of matching run modes or 0 if no match. If multiple disjunctions match the one with the highest number of matching run modes is returned.\n * @since 1.4.0 (Sling Settings Bundle 1.3.12)\n */\n int getBestRunModeMatchCountFromSpec(String spec);\n\n /**\n * Return the optional name of the instance.\n * @return The name of the instance or <code>null</code>.\n * @since 1.3\n */\n String getSlingName();\n\n /**\n * Return the optional description of the instance.\n * @return The description of the instance or <code>null</code>.\n * @since 1.3\n */\n String getSlingDescription();\n}", "public interface PlatformInjector {\n /**\n * Injects the server connection. This will allow various addons (like getting the Floodgate\n * data and debug mode) to work.\n *\n * @throws Exception if the platform couldn't be injected\n */\n void inject() throws Exception;\n\n /**\n * Some platforms may not be able to remove their injection process. If so, this method will\n * return false.\n *\n * @return true if it is safe to attempt to remove our injection performed in {@link #inject()}.\n */\n default boolean canRemoveInjection() {\n return true;\n }\n\n /**\n * Removes the injection from the server. Please note that this function should only be used\n * internally (on plugin shutdown). This method will also remove every added addon.\n *\n * @throws Exception if the platform injection could not be removed\n */\n void removeInjection() throws Exception;\n\n /**\n * If the server connection is currently injected.\n *\n * @return true if the server connection is currently injected, returns false otherwise\n */\n boolean isInjected();\n\n /**\n * Adds an addon to the addon list of the Floodgate Injector (the addon is called when Floodgate\n * injects a channel). See {@link InjectorAddon} for more info.\n *\n * @param addon the addon to add to the addon list\n * @return true if the addon has been added, false if the addon is already present\n */\n boolean addAddon(InjectorAddon addon);\n\n /**\n * Removes an addon from the addon list of the Floodgate Injector (the addon is called when\n * Floodgate injects a channel). See {@link InjectorAddon} for more info.\n *\n * @param addon the class of the addon to remove from the addon list\n * @param <T> the addon type\n * @return the removed addon instance\n */\n <T extends InjectorAddon> T removeAddon(Class<T> addon);\n}", "protected void registerPreLoad(ConfigurationSection configuration) {\n PreLoadEvent loadEvent = new PreLoadEvent(this);\n Bukkit.getPluginManager().callEvent(loadEvent);\n\n blockBreakManagers.addAll(loadEvent.getBlockBreakManagers());\n blockBuildManagers.addAll(loadEvent.getBlockBuildManagers());\n pvpManagers.addAll(loadEvent.getPVPManagers());\n teamProviders.addAll(loadEvent.getTeamProviders());\n castManagers.addAll(loadEvent.getCastManagers());\n targetingProviders.addAll(loadEvent.getTargetingManagers());\n teamProviders.addAll(loadEvent.getTeamProviders());\n playerWarpManagers.putAll(loadEvent.getWarpManagers());\n\n // Vault currency must be registered after VaultController initialization\n ConfigurationSection currencyConfiguration = configuration.getConfigurationSection(\"builtin_currency\");\n addCurrency(new VaultCurrency(this, currencyConfiguration.getConfigurationSection(\"currency\")));\n\n // Custom currencies can override the defaults\n for (Currency currency : loadEvent.getCurrencies()) {\n addCurrency(currency);\n }\n\n if (aureliumSkillsManager != null) {\n aureliumSkillsManager.register(currencyConfiguration);\n }\n if (tokenManager != null) {\n tokenManager.register(currencyConfiguration);\n }\n\n // Configured currencies override everything else\n currencyConfiguration = configuration.getConfigurationSection(\"custom_currency\");\n Set<String> keys = currencyConfiguration.getKeys(false);\n for (String key : keys) {\n addCurrency(new CustomCurrency(this, key, currencyConfiguration.getConfigurationSection(key)));\n }\n\n log(\"Registered currencies: \" + StringUtils.join(currencies.keySet(), \",\"));\n\n // Register any attribute providers that were in the PreLoadEvent.\n for (AttributeProvider provider : loadEvent.getAttributeProviders()) {\n externalProviders.add(provider);\n }\n\n // Re-register any providers previously registered by external plugins via register()\n for (MagicProvider provider : externalProviders) {\n registerAndUpdate(provider);\n }\n\n // Don't allow overriding Magic requirements\n checkMagicRequirements();\n }", "private void loadSystemConfig() {\r\n try {\r\n Properties systemProperties = System.getProperties();\r\n for (Enumeration e = systemProperties.keys(); e.hasMoreElements(); ) {\r\n String key = (String) e.nextElement();\r\n if (key.startsWith(DEFAULT_PROPERTY_PREFIX)) {\r\n Object value = systemProperties.getProperty(key);\r\n properties.put(key, value);\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"Override Scope property \" + key + \" with \" + value);\r\n }\r\n }\r\n }\r\n } catch (SecurityException e) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"Can't access System properties\", e);\r\n }\r\n }\r\n }", "private static void registerToSystem() {\n Enumeration<?> enumeration = properties.propertyNames();\r\n while (enumeration.hasMoreElements()) {\r\n String name = (String) enumeration.nextElement();\r\n String value = properties.getProperty(name);\r\n if (value != null) {\r\n System.setProperty(name, value);\r\n }\r\n }\r\n\t}", "public void init(Properties props) {\n\t\tString url = props.getProperty(EWARP_CONFIG_URL);\n\t\tif (url != null) {\n\t\t\tInputStream in = null;\n\t\t\ttry {\n\t\t\t\t// TODO consider other loading options, e.g. through WebHelper using ServletContext\n\t\t\t\tin = loadResource(url);\n\t\t\t\tProperties externalProps = new Properties();\n\t\t\t\texternalProps.load(in);\n\t\t\t}\n\t\t\tcatch (Throwable t) {\n\t\t\t\tlog.warn(\"failed to load external runtime configuration from \" + url + \": \" + t.getMessage());\n\t\t\t\t// TODO check another property, whether to bail out, \n\t\t\t\t// if external configuration can not be found\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tif (in != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tin.close();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Throwable t) {\n\t\t\t\t\t\t// ignore\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tcreateLifecycleInterceptor(props);\n\n\t\t// give interceptor a change to modify properties\n\t\truntimeProps = interceptor.configure(props);\n\t\t\n\t\t// log configuration\n\t\tif (log.isDebugEnabled()) {\n\t\t\tList<String> params = new ArrayList<String>();\n\t\t\tfor (Object key : runtimeProps.keySet()) {\n\t\t\t\tparams.add(key.toString());\n\t\t\t}\n\t\t\tif (params.size() > 0) {\n\t\t\t\tCollections.sort(params);\n\t\t\t\tlog.debug(\"=============== configuration ==============\");\n\t\t\t\tfor (String name : params) {\n\t\t\t\t\tString value = runtimeProps.getProperty(name);\n\t\t\t\t\tlog.debug(name + \"=\" + value);\n\t\t\t\t}\n\t\t\t\tlog.debug(\"============================================\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// init from properties\n\t\tList<String> args = new ArrayList<String>();\n\t\tconfigureErjang(runtimeProps, args);\n\t\truntimeArgs = (String[]) args.toArray(new String[args.size()]);\n\t}", "protected abstract void initializeImpl(Map<String,String> configuration);", "public synchronized static void load()\n throws Exception\n { \n if (!isBootstrap) {\n String basedir = System.getProperty(JVM_OPT_BOOTSTRAP);\n load(basedir);\n SystemProperties.initializeProperties(\"com.iplanet.am.naming.url\",\n SystemProperties.getServerInstanceName() + \"/namingservice\");\n }\n }", "public JerseyInitializer() {\n this.register(new JacksonJsonProvider(ObjectMapperFactory.create()));\n this.property(ServerProperties.BV_SEND_ERROR_IN_RESPONSE, true);\n this.property(ServerProperties.BV_DISABLE_VALIDATE_ON_EXECUTABLE_OVERRIDE_CHECK, true);\n this.packages(true, \"com.hh.resources\");\n }", "private void initConfigServices() {\n List<ServiceDTO> customizedConfigServices = getCustomizedConfigService();\n\n if (customizedConfigServices != null) {\n setConfigServices(customizedConfigServices);\n return;\n }\n\n // update from meta service\n this.tryUpdateConfigServices();\n this.schedulePeriodicRefresh();\n }", "private void loadInitializationAttributes() {\n \t\tURL url = BootLoader.getInstallURL();\n \n \t\t// load any initialization attributes. These are the default settings for\n \t\t// key attributes (eg. default primary feature) supplied by the packaging team.\n \t\t// They are always reloaded on startup to pick up any changes due to\n \t\t// \"native\" updates.\n \t\tProperties initProps = new Properties();\n \t\tInputStream is = null;\n \t\ttry {\n \t\t\tURL initURL = new URL(url, CONFIG_FILE_INIT);\n \t\t\tis = initURL.openStream();\n \t\t\tinitProps.load(is);\n \t\t\tif (DEBUG)\n \t\t\t\tdebug(\"Defaults from \" + initURL.toExternalForm()); //$NON-NLS-1$\n \t\t} catch (IOException e) {\n \t\t\treturn; // could not load default settings\n \t\t} finally {\n \t\t\tif (is != null) {\n \t\t\t\ttry {\n \t\t\t\t\tis.close();\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\t// ignore ...\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\t// use default settings if supplied\n \t\tString initId = loadAttribute(initProps, INIT_DEFAULT_FEATURE_ID, null);\n \t\tif (initId != null) {\n \t\t\tString application = loadAttribute(initProps, INIT_DEFAULT_FEATURE_APPLICATION, null);\n \t\t\tString initPluginId = loadAttribute(initProps, INIT_DEFAULT_PLUGIN_ID, null);\n \t\t\tif (initPluginId==null)\n \t\t\t\tinitPluginId = initId;\n \t\t\tIFeatureEntry fe = findConfiguredFeatureEntry(initId);\n \n \t\t\tif (fe == null) {\n \t\t\t\t// bug 26896 : setup optimistic reconciliation if the primary feature has changed or is new\n \t\t\t\tcmdFirstUse = true;\n \t\t\t\t// create entry if not exists\n \t\t\t\tfe = createFeatureEntry(initId, null, initPluginId, null, true, application, null);\n \t\t\t} else\n \t\t\t\t// update existing entry with new info\n \t\t\t\tfe = createFeatureEntry(initId, fe.getFeatureVersion(), fe.getFeaturePluginIdentifier(), fe.getFeaturePluginVersion(), fe.canBePrimary(), application, fe.getFeatureRootURLs());\n \t\t\tconfigureFeatureEntry(fe);\n \t\t\tdefaultFeature = initId;\n \t\t\tif (DEBUG) {\n \t\t\t\tdebug(\" Default primary feature: \" + defaultFeature); //$NON-NLS-1$\n \t\t\t\tif (application != null)\n \t\t\t\t\tdebug(\" Default application : \" + application); //$NON-NLS-1$\n \t\t\t}\n \t\t}\n \t}", "@Override\n protected void configure() {\n bind(EurekaInstanceConfig.class).toProvider(MyDataCenterInstanceConfigProvider.class).in(Scopes.SINGLETON);\n }", "@PostConstruct\n public void init() {\n ApiClient client = Config.fromToken(url, token, validateSSL);\n io.kubernetes.client.Configuration.setDefaultApiClient(client);\n }", "public interface IConfiguration extends ISessionAwareObject {\n\n\tString ENV_SOPECO_HOME = \"SOPECO_HOME\";\n\n\tString CONF_LOGGER_CONFIG_FILE_NAME = \"sopeco.config.loggerConfigFileName\";\n\n\tString CONF_SCENARIO_DESCRIPTION_FILE_NAME = \"sopeco.config.measurementSpecFileName\";\n\n\tString CONF_SCENARIO_DESCRIPTION = \"sopeco.config.measurementSpecification\";\n\n\tString CONF_MEASUREMENT_CONTROLLER_URI = \"sopeco.config.measurementControllerURI\";\n\n\tString CONF_MEASUREMENT_CONTROLLER_CLASS_NAME = \"sopeco.config.measurementControllerClassName\";\n\n\tString CONF_APP_NAME = \"sopeco.config.applicationName\";\n\n\tString CONF_MAIN_CLASS = \"sopeco.config.mainClass\";\n\n\tString CONF_MEC_ACQUISITION_TIMEOUT = \"sopeco.config.MECAcquisitionTimeout\";\n\n\n\tString CONF_MEC_SOCKET_RECONNECT_DELAY = \"sopeco.config.mec.reconnectDelay\";\n\n\tString CONF_HTTP_PROXY_HOST = \"sopeco.config.httpProxyHost\";\n\t\n\tString CONF_HTTP_PROXY_PORT = \"sopeco.config.httpProxyPort\";\n\n\t\n\tString CONF_DEFINITION_CHANGE_HANDLING_MODE = \"sopeco.config.definitionChangeHandlingMode\";\n\tString DCHM_ARCHIVE = \"archive\";\n\tString DCHM_DISCARD = \"discard\";\n\n\tString CONF_SCENARIO_DEFINITION_PACKAGE = \"sopeco.config.xml.scenarioDefinitionPackage\";\n\t/** Holds the path to the root folder of SoPeCo. */\n\tString CONF_APP_ROOT_FOLDER = \"sopeco.config.rootFolder\";\n\tString CONF_EXPERIMENT_EXECUTION_SELECTION = \"sopeco.engine.experimentExecutionSelection\";\n\t/**\n\t * Holds the path to the plugins folder, relative to the root folder of\n\t * SoPeCo.\n\t */\n\tString CONF_PLUGINS_DIRECTORIES = \"sopeco.config.pluginsDirs\";\n\n\tString CLA_EXTENSION_ID = \"org.sopeco.config.commandlinearguments\";\n\n\t/** Folder for configuration files relative to the application root folder */\n\tString DEFAULT_CONFIG_FOLDER_NAME = \"config\";\n\n\tString DEFAULT_CONFIG_FILE_NAME = \"sopeco-defaults.conf\";\n\n\tString DIR_SEPARATOR = \":\";\n\t\n\tString EXPERIMENT_RUN_ABORT = \"org.sopeco.experiment.run.abort\";\n\n\t/**\n\t * Export the configuration as a key-value map. Both, the default ones and the ones in the\n\t * system environment are included.\n\t * \n\t * @return a key-value representation of the configuration\n\t * \n\t * @deprecated Use {@code exportConfiguration()} and {@code exportDefaultConfiguration}.\n\t */\n\t@Deprecated\n\tMap<String, Object> getProperties();\n\t\n\t/**\n\t * Exports the configuration as a key-value map. The default configuration and the ones\n\t * defined in the system environment are not included. \n\t * \n\t * @return a key-value representation of the configuration\n\t */\n\tMap<String, Object> exportConfiguration();\n\t\n\t/**\n\t * Exports the default configuration as a key-value map. The actual configuration and the ones\n\t * defined in the system environment are not included. \n\t * \n\t * @return a key-value representation of the configuration\n\t */\n\tMap<String, Object> exportDefaultConfiguration();\n\t\n\t/**\n\t * Imports the configuration as a key-value map. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid importConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Imports the default configuration as a key-value map. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid importDefaultConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Overwrites the configuration with the given configuration. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid overwriteConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Overwrites the default configuration with the given configuration. \n\t * \n\t * @param config a key-value map representation of the default configuration\n\t */\n\tvoid overwriteDefaultConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Returns the configured value of the given property in SoPeCo.\n\t * \n\t * It first looks up the current SoPeCo configuration, if there is no value\n\t * defined there, looks up the system properties, if no value is defined\n\t * there, then loads it from the default values; in case of no default\n\t * value, returns null.\n\t * \n\t * @param key\n\t * property key\n\t * @return Returns the configured value of the given property in SoPeCo.\n\t */\n\tObject getProperty(String key);\n\n\t/**\n\t * Returns the configured value of the given property as a String.\n\t * \n\t * This method calls the {@link Object#toString()} of the property value and\n\t * is for convenience only. If the given property is not set, it returns\n\t * <code>null</code>.\n\t * \n\t * @param key\n\t * property key\n\t * \n\t * @see #getProperty(String)\n\t * @return Returns the configured value of the given property as a String.\n\t */\n\tString getPropertyAsStr(String key);\n\n\t/**\n\t * Returns the configured value of the given property as a Boolean value.\n\t * \n\t * This method uses the {@link #getPropertyAsStr(String)} and interprets\n\t * values 'yes' and 'true' (case insensitive) as a Boolean <code>true</code>\n\t * value and all other values as <code>false</code>. If the value of the\n\t * given property is <code>null</code> it returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a boolean\n\t * \n\t * @see #getProperty(String)\n\t */\n\tboolean getPropertyAsBoolean(String key, boolean defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as a Long value.\n\t * \n\t * This method uses the {@link Long.#parseLong(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a long\n\t * \n\t * @see #getProperty(String)\n\t */\n\tlong getPropertyAsLong(String key, long defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as a Double value.\n\t * \n\t * This method uses the {@link Double.#parseLong(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a double\n\t * \n\t * @see #getProperty(String)\n\t */\n\tdouble getPropertyAsDouble(String key, double defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as an Integer value.\n\t * \n\t * This method uses the {@link Integer.#parseInt(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as an int\n\t * \n\t * @see #getProperty(String)\n\t */\n\tint getPropertyAsInteger(String key, int defaultValue);\n\n\t/**\n\t * Sets the value of a property for the current run.\n\t * \n\t * @param key\n\t * property key\n\t * @param value\n\t * property value\n\t */\n\tvoid setProperty(String key, Object value);\n\n\t/**\n\t * Clears the value of the given property in all layers of configuration,\n\t * including the system property environment.\n\t * \n\t * @param key the property\n\t */\n\tvoid clearProperty(String key);\n\n\t/**\n\t * Returns the default value (ignoring the current runtime configuration)\n\t * for a given property.\n\t * \n\t * @param key\n\t * porperty key\n\t * \n\t * @return Returns the default value for a given property.\n\t */\n\tObject getDefaultValue(String key);\n\n\t/**\n\t * Processes the given command line arguments, the effects of which will\n\t * reflect in the global property values.\n\t * \n\t * @param args\n\t * command line arguments\n\t * @throws ConfigurationException\n\t * if there is any problem with command line arguments\n\t */\n\tvoid processCommandLineArguments(String[] args) throws ConfigurationException;\n\n\t/**\n\t * Loads default configurations from a file name. If the file name is not an\n\t * absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the system class loader. See\n\t * {@link #loadDefaultConfiguration(ClassLoader, String)} for loading\n\t * default configuration providing a class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t * \n\t */\n\tvoid loadDefaultConfiguration(String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads default configurations from a file name. If the file name is not an\n\t * absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the given class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param classLoader\n\t * an instance of a class loader\n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadDefaultConfiguration(ClassLoader classLoader, String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads user-level configurations from a file name. If the file name is not\n\t * an absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the system class loader. See\n\t * {@link #loadConfiguration(ClassLoader, String)} for loading default\n\t * configuration providing a class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadConfiguration(String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads user-level configurations from a file name. If the file name is not\n\t * an absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finally the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the given class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param classLoader\n\t * an instance of a class loader\n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadConfiguration(ClassLoader classLoader, String fileName) throws ConfigurationException;\n\n\t/**\n\t * Performs any post processing of configuration settings that may be\n\t * required.\n\t * \n\t * This method can be called after manually making changes to the\n\t * configuration values. It should be called automatically after a call to\n\t * {@link IConfiguration#loadConfiguration(String)}.\n\t */\n\tvoid applyConfiguration();\n\n\t/**\n\t * Sets the value of scenario description file name.\n\t * \n\t * @param fileName\n\t * file name\n\t * @see #CONF_SCENARIO_DESCRIPTION_FILE_NAME\n\t */\n\tvoid setScenarioDescriptionFileName(String fileName);\n\n\t/**\n\t * Sets the sceanrio description as the given object. This property in\n\t * effect overrides the value of scenario description file name (\n\t * {@link IConfiguration#CONF_SCENARIO_DESCRIPTION_FILE_NAME}).\n\t * \n\t * @param sceanrioDescription\n\t * an instance of a scenario description\n\t * @see #CONF_SCENARIO_DESCRIPTION\n\t */\n\tvoid setScenarioDescription(Object sceanrioDescription);\n\n\t/**\n\t * Sets the measurement controller URI.\n\t * \n\t * @param uriStr\n\t * a URI as an String\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tvoid setMeasurementControllerURI(String uriStr) throws ConfigurationException;\n\n\t/**\n\t * Sets the measurement controller class name. This also sets the\n\t * measurement controller URI to be '<code>class://[CLASS_NAME]</code>'.\n\t * \n\t * @param className\n\t * the full name of the class\n\t * @see #CONF_MEASUREMENT_CONTROLLER_CLASS_NAME\n\t */\n\tvoid setMeasurementControllerClassName(String className);\n\n\t/**\n\t * Sets the application name for this executable instance.\n\t * \n\t * @param appName\n\t * an application name\n\t */\n\tvoid setApplicationName(String appName);\n\n\t/**\n\t * Sets the main class that runs this thread. This will also be used in\n\t * finding the root folder\n\t * \n\t * @param mainClass\n\t * class to be set as main class\n\t */\n\tvoid setMainClass(Class<?> mainClass);\n\n\t/**\n\t * Sets the logger configuration file name and triggers logger\n\t * configuration.\n\t * \n\t * @param fileName\n\t * a file name\n\t */\n\tvoid setLoggerConfigFileName(String fileName);\n\n\t/**\n\t * @return Returns the application root directory.\n\t */\n\tString getAppRootDirectory();\n\n\t/**\n\t * Sets the application root directory to the given folder.\n\t * \n\t * @param rootDir\n\t * path to a folder\n\t */\n\tvoid setAppRootDirectory(String rootDir);\n\n\t/**\n\t * @return Returns the application's configuration directory.\n\t */\n\tString getAppConfDirectory();\n\n\t/**\n\t * @return Returns the value of scenario description file name.\n\t * \n\t * @see #CONF_SCENARIO_DESCRIPTION_FILE_NAME\n\t */\n\tString getScenarioDescriptionFileName();\n\n\t/**\n\t * @return returns the sceanrio description as the given object.\n\t * \n\t * @see #CONF_SCENARIO_DESCRIPTION\n\t */\n\tObject getScenarioDescription();\n\n\t/**\n\t * @return Returns the measurement controller URI.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tURI getMeasurementControllerURI();\n\n\t/**\n\t * @return Returns the measurement controller URI as a String.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tString getMeasurementControllerURIAsStr();\n\n\t/**\n\t * @return Returns the measurement controller class name.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_CLASS_NAME\n\t */\n\tString getMeasurementControllerClassName();\n\n\t/**\n\t * @return Returns the application name for this executable instance.\n\t */\n\tString getApplicationName();\n\n\t/**\n\t * @return Returns the main class that runs this thread. This value must\n\t * have been set by a call to\n\t * {@link IConfiguration#setMainClass(Class)}.\n\t */\n\tClass<?> getMainClass();\n\n\t/**\n\t * Writes the current configuration values into a file.\n\t * \n\t * @param fileName\n\t * the name of the file\n\t * @throws IOException\n\t * if exporting the configuration fails\n\t */\n\tvoid writeConfiguration(String fileName) throws IOException;\n\n\t/**\n\t * Overrides the values of this configuration with those of the given\n\t * configuration.\n\t * \n\t * @param configuration\n\t * with the new values\n\t */\n\t void overwrite(IConfiguration configuration);\n\n\t /**\n\t * Adds a new command-line extension to the configuration component. \n\t * \n\t * The same extension will not be added twice. \n\t * \n\t * @param extension a command-line extension\n\t */\n\t void addCommandLineExtension(ICommandLineArgumentsExtension extension);\n\t \n\t /**\n\t * Removes a new command-line extension from the configuration component. \n\t * \n\t * @param extension a command-line extension\n\t */\n\t void removeCommandLineExtension(ICommandLineArgumentsExtension extension);\n}", "@ImplementedBy(ServerPropertiesClasspath.class)\npublic interface ServerProperties\n{\n /**\n * Gets an integer property with a default\n * @param key The name of the property to retrieve\n * @param def The default value of the property\n * @return The int value of the property\n */\n int getInt( String key, int def);\n\n /**\n * Gets a string property, returning a default if undefined\n * @param key The name of the property to retrieve\n * @param def The default value of the property\n * @return The retrieved property value\n */\n String getString( String key, String def);\n\n /**\n * Gets the port on which the server should run\n */\n default int getPort()\n {\n return getInt(\"port\", 80);\n }\n\n /**\n * Gets the host on which the server is running\n */\n default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }\n\n /**\n * Gets the version of the current application\n */\n default String getVersion()\n {\n return getString( \"version\", \"Unknown Version\");\n }\n}", "public void injectConfiguration(ComponentConfiguration conf);", "public static void storePlatform (EditableProperties props, UpdateHelper helper, Object platformKey, Object sourceLevelKey) {\n assert platformKey instanceof PlatformKey; \n PlatformKey pk = (PlatformKey) platformKey;\n JavaPlatform platform = getPlatform(pk); \n //null means active broken (unresolved) platform, no need to do anything\n if (platform != null) {\n SpecificationVersion jdk13 = new SpecificationVersion (\"1.3\"); //NOI18N\n String platformAntName = (String) platform.getProperties().get(\"platform.ant.name\"); //NOI18N \n assert platformAntName != null;\n props.put(JbiCompProjectProperties.JAVA_PLATFORM, platformAntName);\n Element root = helper.getPrimaryConfigurationData(true);\n boolean defaultPlatform = pk.isDefaultPlatform();\n boolean changed = false;\n NodeList explicitPlatformNodes = root.getElementsByTagNameNS (JbiCompProjectType.PROJECT_CONFIGURATION_NAMESPACE,\"explicit-platform\"); //NOI18N\n if (defaultPlatform) { \n if (explicitPlatformNodes.getLength()==1) {\n root.removeChild(explicitPlatformNodes.item(0));\n changed = true;\n } \n }\n else {\n Element explicitPlatform;\n switch (explicitPlatformNodes.getLength()) {\n case 0:\n explicitPlatform = root.getOwnerDocument().createElementNS(JbiCompProjectType.PROJECT_CONFIGURATION_NAMESPACE, \"explicit-platform\"); //NOI18N \n NodeList sourceRootNodes = root.getElementsByTagNameNS (JbiCompProjectType.PROJECT_CONFIGURATION_NAMESPACE,\"source-roots\"); //NOI18N\n assert sourceRootNodes.getLength() == 1 : \"Broken project.xml file\"; //NOI18N\n root.insertBefore(explicitPlatform, sourceRootNodes.item(0));\n changed = true;\n break;\n case 1:\n explicitPlatform = (Element)explicitPlatformNodes.item(0);\n break;\n default:\n throw new AssertionError(\"Broken project.xml file\"); //NOI18N\n } \n String explicitSourceAttrValue = explicitPlatform.getAttribute(\"explicit-source-supported\"); //NOI18N\n if (jdk13.compareTo(platform.getSpecification().getVersion())>=0 &&\n !\"false\".equals(explicitSourceAttrValue)) { //NOI18N\n explicitPlatform.setAttribute(\"explicit-source-supported\",\"false\"); //NOI18N\n changed = true;\n }\n else if (jdk13.compareTo(platform.getSpecification().getVersion())<0 &&\n !\"true\".equals(explicitSourceAttrValue)) { //NOI18N\n explicitPlatform.setAttribute(\"explicit-source-supported\",\"true\"); //NOI18N\n changed = true;\n } \n }\n \n SpecificationVersion sourceLevel;\n if (sourceLevelKey == null) {\n sourceLevel = platform.getSpecification().getVersion();\n }\n else {\n assert sourceLevelKey instanceof SourceLevelKey;\n sourceLevel = ((SourceLevelKey)sourceLevelKey).getSourceLevel();\n }\n String javacSource = sourceLevel.toString();\n String javacTarget = jdk13.compareTo(sourceLevel)>=0 ? \"1.1\" : javacSource; //NOI18N\n if (!javacSource.equals(props.getProperty(JbiCompProjectProperties.JAVAC_SOURCE))) {\n props.setProperty (JbiCompProjectProperties.JAVAC_SOURCE, javacSource);\n }\n if (!javacTarget.equals(props.getProperty(JbiCompProjectProperties.JAVAC_TARGET))) {\n props.setProperty (JbiCompProjectProperties.JAVAC_TARGET, javacTarget);\n }\n \n if (changed) {\n helper.putPrimaryConfigurationData(root, true);\n }\n }\n }", "public static void setupServicesAndParameters(){\n\t\t//replace services in use, e.g.:\n\t\t/*\n\t\tMap<String, ArrayList<String>> systemInterviewServicesMap = new HashMap<>();\n\t\t\n\t\t//CONTROL DEVICES\n\t\tArrayList<String> controlDevice = new ArrayList<String>();\n\t\t\tcontrolDevice.add(MyDeviceControlService.class.getCanonicalName());\n\t\tsystemInterviewServicesMap.put(CMD.CONTROL, controlDevice);\n\t\t\n\t\t//BANKING\n\t\tArrayList<String> banking = new ArrayList<String>();\n\t\t\tbanking.add(MyBankingService.class.getCanonicalName());\n\t\tsystemInterviewServicesMap.put(CMD.BANKING, banking);\n\t\t\t\n\t\tInterviewServicesMap.loadCustom(systemInterviewServicesMap);\n\t\t*/\n\t\t\n\t\t//defaults\n\t\tStart.setupServicesAndParameters();\n\t\t\n\t\t//add\n\t\t//e.g.: ParameterConfig.setHandler(PARAMETERS.ALARM_NAME, Config.parentPackage + \".parameters.AlarmName\");\n\t}", "public void initFromResource() {\n String[] hwStrings = Resources.getSystem().getStringArray(17236074);\n if (hwStrings != null) {\n for (String hwString : hwStrings) {\n HardwareConfig hw = new MtkHardwareConfig(hwString);\n if (hw.type == 0) {\n updateOrInsert(hw, mModems);\n } else if (hw.type == 1) {\n updateOrInsert(hw, mSims);\n }\n }\n }\n }", "@Override\n public void initialize(ConfigurableApplicationContext applicationContext) {\n\n System.out.println(\"========ApplicationContextInitializer===================\");\n\n ConfigurableEnvironment environment = applicationContext.getEnvironment();\n\n\n MutablePropertySources propertySources = environment.getPropertySources();\n\n // 模拟远程拉配置信息\n Map<String, Object> config = ConfigServer.getRemoteConfig();\n\n MapPropertySource propertySource = new MapPropertySource(\"test-config\", config);\n propertySources.addFirst(propertySource);\n }", "@PostConstruct\n\tpublic void init() {\n\t\ttry {\n\t\t\tprops = PropertiesLoaderUtils.loadProperties(new ClassPathResource(\"/META-INF/build-info.properties\"));\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Unable to load build.properties\", e);\n\t\t\tprops = new Properties();\n\t\t}\n\t}", "public void activate(BundleContext context) {\r\n\r\n // define the global ServiceRegistryAccessFactory for components and GUI code\r\n // TODO initialize from another location?\r\n ServiceRegistry.setAccessFactory(new OsgiServiceRegistryAccessFactory(context));\r\n\r\n bootstrapSettings = BootstrapConfiguration.getInstance();\r\n\r\n initializeProfileDirFromBootstrapSettings();\r\n initializeConfigurablePaths();\r\n loadRootConfiguration(false);\r\n initializeGeneralSettings();\r\n\r\n // initialize parent temp directory root\r\n initializeParentTempDirectoryRoot(generalSettings.getTempDirectoryOverride());\r\n\r\n initializeInstanceTempDirectoryRoot();\r\n\r\n if (PROPERTY_SUBSTITUTION_MECHANISM_ENABLED) {\r\n initializePropertySubstitution();\r\n }\r\n }", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "@Config.LoadPolicy(Config.LoadType.MERGE)\[email protected]({\n \"classpath:test.properties\",\n \"system:properties\",\n \"system:env\"})\npublic interface UserConfiguration extends Config {\n\n @DefaultValue(\"default_Name\")\n @Key(\"user.name\")\n String name();\n @Key(\"user.email\")\n String email();\n @Key(\"user.password\")\n String password();\n}", "public interface HubConfig {\n\n String HUB_MODULES_DEPLOY_TIMESTAMPS_PROPERTIES = \"hub-modules-deploy-timestamps.properties\";\n String USER_MODULES_DEPLOY_TIMESTAMPS_PROPERTIES = \"user-modules-deploy-timestamps.properties\";\n String USER_CONTENT_DEPLOY_TIMESTAMPS_PROPERTIES = \"user-content-deploy-timestamps.properties\";\n\n String HUB_CONFIG_DIR = \"hub-internal-config\";\n String USER_CONFIG_DIR = \"user-config\";\n String ENTITY_CONFIG_DIR = \"entity-config\";\n String STAGING_ENTITY_SEARCH_OPTIONS_FILE = \"staging-entity-options.xml\";\n String FINAL_ENTITY_SEARCH_OPTIONS_FILE = \"final-entity-options.xml\";\n\n String DEFAULT_STAGING_NAME = \"data-hub-STAGING\";\n String DEFAULT_FINAL_NAME = \"data-hub-FINAL\";\n String DEFAULT_TRACE_NAME = \"data-hub-TRACING\";\n String DEFAULT_JOB_NAME = \"data-hub-JOBS\";\n String DEFAULT_MODULES_DB_NAME = \"data-hub-MODULES\";\n String DEFAULT_TRIGGERS_DB_NAME = \"data-hub-TRIGGERS\";\n String DEFAULT_SCHEMAS_DB_NAME = \"data-hub-SCHEMAS\";\n\n String DEFAULT_ROLE_NAME = \"data-hub-role\";\n String DEFAULT_USER_NAME = \"data-hub-user\";\n\n Integer DEFAULT_STAGING_PORT = 8010;\n Integer DEFAULT_FINAL_PORT = 8011;\n Integer DEFAULT_TRACE_PORT = 8012;\n Integer DEFAULT_JOB_PORT = 8013;\n\n String DEFAULT_AUTH_METHOD = \"digest\";\n\n String DEFAULT_SCHEME = \"http\";\n\n Integer DEFAULT_FORESTS_PER_HOST = 4;\n\n String DEFAULT_CUSTOM_FOREST_PATH = \"forests\";\n\n String getHost();\n\n // staging\n String getStagingDbName();\n void setStagingDbName(String stagingDbName);\n\n String getStagingHttpName();\n void setStagingHttpName(String stagingHttpName);\n\n Integer getStagingForestsPerHost();\n void setStagingForestsPerHost(Integer stagingForestsPerHost);\n\n Integer getStagingPort();\n void setStagingPort(Integer stagingPort);\n\n String getStagingAuthMethod();\n void setStagingAuthMethod(String stagingAuthMethod);\n\n String getStagingScheme();\n void setStagingScheme(String stagingScheme);\n\n boolean getStagingSimpleSsl();\n void setStagingSimpleSsl(boolean stagingSimpleSsl);\n\n @JsonIgnore\n SSLContext getStagingSslContext();\n void setStagingSslContext(SSLContext stagingSslContext);\n\n @JsonIgnore\n DatabaseClientFactory.SSLHostnameVerifier getStagingSslHostnameVerifier();\n void setStagingSslHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier stagingSslHostnameVerifier);\n\n String getStagingCertFile();\n void setStagingCertFile(String stagingCertFile);\n\n String getStagingCertPassword();\n void setStagingCertPassword(String stagingCertPassword);\n\n String getStagingExternalName();\n void setStagingExternalName(String stagingExternalName);\n\n // final\n String getFinalDbName();\n void setFinalDbName(String finalDbName);\n\n String getFinalHttpName();\n void setFinalHttpName(String finalHttpName);\n\n Integer getFinalForestsPerHost();\n void setFinalForestsPerHost(Integer finalForestsPerHost);\n\n Integer getFinalPort();\n void setFinalPort(Integer finalPort);\n\n String getFinalAuthMethod();\n void setFinalAuthMethod(String finalAuthMethod);\n\n String getFinalScheme();\n void setFinalScheme(String finalScheme);\n\n @JsonIgnore\n boolean getFinalSimpleSsl();\n void setFinalSimpleSsl(boolean finalSimpleSsl);\n\n @JsonIgnore\n SSLContext getFinalSslContext();\n void setFinalSslContext(SSLContext finalSslContext);\n\n DatabaseClientFactory.SSLHostnameVerifier getFinalSslHostnameVerifier();\n void setFinalSslHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier finalSslHostnameVerifier);\n\n String getFinalCertFile();\n void setFinalCertFile(String finalCertFile);\n\n String getFinalCertPassword();\n void setFinalCertPassword(String finalCertPassword);\n\n String getFinalExternalName();\n void setFinalExternalName(String finalExternalName);\n\n // traces\n String getTraceDbName();\n void setTraceDbName(String traceDbName);\n\n String getTraceHttpName();\n void setTraceHttpName(String traceHttpName);\n\n Integer getTraceForestsPerHost();\n void setTraceForestsPerHost(Integer traceForestsPerHost);\n\n Integer getTracePort();\n void setTracePort(Integer tracePort);\n\n String getTraceAuthMethod();\n void setTraceAuthMethod(String traceAuthMethod);\n\n String getTraceScheme();\n void setTraceScheme(String traceScheme);\n\n @JsonIgnore\n boolean getTraceSimpleSsl();\n void setTraceSimpleSsl(boolean traceSimpleSsl);\n\n @JsonIgnore\n SSLContext getTraceSslContext();\n void setTraceSslContext(SSLContext traceSslContext);\n\n DatabaseClientFactory.SSLHostnameVerifier getTraceSslHostnameVerifier();\n void setTraceSslHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier traceSslHostnameVerifier);\n\n String getTraceCertFile();\n void setTraceCertFile(String traceCertFile);\n\n String getTraceCertPassword();\n void setTraceCertPassword(String traceCertPassword);\n\n String getTraceExternalName();\n void setTraceExternalName(String traceExternalName);\n\n // jobs\n String getJobDbName();\n void setJobDbName(String jobDbName);\n\n String getJobHttpName();\n void setJobHttpName(String jobHttpName);\n\n Integer getJobForestsPerHost();\n void setJobForestsPerHost(Integer jobForestsPerHost);\n\n Integer getJobPort();\n void setJobPort(Integer jobPort);\n\n String getJobAuthMethod();\n void setJobAuthMethod(String jobAuthMethod);\n\n String getJobScheme();\n void setJobScheme(String jobScheme);\n\n boolean getJobSimpleSsl();\n void setJobSimpleSsl(boolean jobSimpleSsl);\n\n @JsonIgnore\n SSLContext getJobSslContext();\n void setJobSslContext(SSLContext jobSslContext);\n\n @JsonIgnore\n DatabaseClientFactory.SSLHostnameVerifier getJobSslHostnameVerifier();\n void setJobSslHostnameVerifier(DatabaseClientFactory.SSLHostnameVerifier jobSslHostnameVerifier);\n\n String getJobCertFile();\n void setJobCertFile(String jobCertFile);\n\n String getJobCertPassword();\n void setJobCertPassword(String jobCertPassword);\n\n String getJobExternalName();\n void setJobExternalName(String jobExternalName);\n\n String getModulesDbName();\n void setModulesDbName(String modulesDbName);\n\n Integer getModulesForestsPerHost();\n void setModulesForestsPerHost(Integer modulesForestsPerHost);\n\n\n // triggers\n String getTriggersDbName();\n void setTriggersDbName(String triggersDbName);\n\n Integer getTriggersForestsPerHost();\n void setTriggersForestsPerHost(Integer triggersForestsPerHost);\n\n // schemas\n String getSchemasDbName();\n void setSchemasDbName(String schemasDbName);\n\n Integer getSchemasForestsPerHost();\n void setSchemasForestsPerHost(Integer schemasForestsPerHost);\n\n // roles and users\n String getHubRoleName();\n void setHubRoleName(String hubRoleName);\n\n String getHubUserName();\n void setHubUserName(String hubUserName);\n\n\n String[] getLoadBalancerHosts();\n void setLoadBalancerHosts(String[] loadBalancerHosts);\n\n String getCustomForestPath();\n void setCustomForestPath(String customForestPath);\n\n String getModulePermissions();\n void setModulePermissions(String modulePermissions);\n\n String getProjectDir();\n void setProjectDir(String projectDir);\n\n @JsonIgnore\n HubProject getHubProject();\n\n void initHubProject();\n\n @JsonIgnore\n String getHubModulesDeployTimestampFile();\n @JsonIgnore\n String getUserModulesDeployTimestampFile();\n @JsonIgnore\n File getUserContentDeployTimestampFile();\n\n @JsonIgnore\n ManageConfig getManageConfig();\n void setManageConfig(ManageConfig manageConfig);\n @JsonIgnore\n ManageClient getManageClient();\n void setManageClient(ManageClient manageClient);\n\n @JsonIgnore\n AdminConfig getAdminConfig();\n void setAdminConfig(AdminConfig adminConfig);\n @JsonIgnore\n AdminManager getAdminManager();\n void setAdminManager(AdminManager adminManager);\n\n DatabaseClient newAppServicesClient();\n\n /**\n * Creates a new DatabaseClient for accessing the Staging database\n * @return - a DatabaseClient\n */\n DatabaseClient newStagingClient();\n\n DatabaseClient newStagingClient(String databaseName);\n\n /**\n * Creates a new DatabaseClient for accessing the Final database\n * @return - a DatabaseClient\n */\n DatabaseClient newFinalClient();\n\n /**\n * Creates a new DatabaseClient for accessing the Job database\n * @return - a DatabaseClient\n */\n DatabaseClient newJobDbClient();\n\n /**\n * Creates a new DatabaseClient for accessing the Trace database\n * @return - a DatabaseClient\n */\n DatabaseClient newTraceDbClient();\n\n /**\n * Creates a new DatabaseClient for accessing the Hub Modules database\n * @return - a DatabaseClient\n */\n DatabaseClient newModulesDbClient();\n\n @JsonIgnore\n Path getHubPluginsDir();\n @JsonIgnore\n Path getHubEntitiesDir();\n\n @JsonIgnore\n Path getHubConfigDir();\n @JsonIgnore\n Path getHubDatabaseDir();\n @JsonIgnore\n Path getHubServersDir();\n @JsonIgnore\n Path getHubSecurityDir();\n @JsonIgnore\n Path getUserSecurityDir();\n @JsonIgnore\n Path getUserConfigDir();\n @JsonIgnore\n Path getUserDatabaseDir();\n @JsonIgnore\n Path getEntityDatabaseDir();\n @JsonIgnore\n Path getUserServersDir();\n @JsonIgnore\n Path getHubMimetypesDir();\n\n @JsonIgnore\n AppConfig getAppConfig();\n void setAppConfig(AppConfig config);\n\n void setAppConfig(AppConfig config, boolean skipUpdate);\n\n String getJarVersion() throws IOException;\n}", "@PostConstruct\n protected void init() {\n super.init();\n if (screeningService == null) {\n throw new PortalServiceConfigurationException(\"screeningService is not configured correctly.\");\n }\n if (enrollmentService == null) {\n throw new PortalServiceConfigurationException(\"enrollmentService is not configured correctly.\");\n }\n if (helpService == null) {\n throw new PortalServiceConfigurationException(\"helpService must be configured.\");\n }\n\n if (eventService == null) {\n throw new PortalServiceConfigurationException(\"eventService must be configured.\");\n }\n\n if (lookupService == null) {\n throw new PortalServiceConfigurationException(\"lookupService must be configured.\");\n }\n }", "@Override\n public void initialize() {\n for (final PluginInfo<AbstractVolumeManagerPlugin> info : getPlugins()) {\n String name = info.getName();\n if (name == null || name.isEmpty()) {\n name = info.getClassName();\n }\n // Add the plugin to the list of known animals.\n plugins.put(name, info);\n }\n }", "private static Properties loadProperties() {\n Properties properties;\n try (InputStream in = FHIRServerProperties.class.getClassLoader().getResourceAsStream(HAPI_PROPERTIES)) {\n properties = new Properties();\n properties.load(in);\n } catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties\", e);\n }\n\n Properties overrideProps = loadOverrideProperties();\n if (overrideProps != null) {\n properties.putAll(overrideProps);\n }\n return properties;\n }", "public interface RuntimeConfigurationBackend {\n /**\n * @param name the name of the configuration directive.\n * @return the configured value or null.\n */\n Boolean getBoolean(String name);\n\n /**\n * @param name the name of the configuration directive.\n * @param value the configured value.\n */\n void setBoolean(String name, boolean value);\n\n /**\n * @param name the name of the configuration directive.\n * @return the configured value or null.\n */\n Integer getInteger(String name);\n\n /**\n * @param name the name of the configuration directive.\n * @param value the configured value.\n */\n void setInt(String name, int value);\n\n /**\n * @param name the name of the configuration directive.\n * @return the configured value or null.\n */\n Long getLong(String name);\n\n /**\n * @param name the name of the configuration directive.\n * @param value the configured value.\n */\n void setLong(String name, long value);\n\n /**\n * @param name the name of the configuration directive.\n * @return the configured value or null.\n */\n Float getFloat(String name);\n\n /**\n * @param name the name of the configuration directive.\n * @param value the configured value.\n */\n void setFloat(String name, float value);\n\n /**\n * @param name the name of the configuration directive.\n * @return the configured value or null.\n */\n Double getDouble(String name);\n\n /**\n * @param name the name of the configuration directive.\n * @param value the configured value.\n */\n void setDouble(String name, double value);\n\n /**\n * @param name the name of the configuration directive.\n * @return the configured value or null.\n */\n String getString(String name);\n\n /**\n * @param name the name of the configuration directive.\n * @param value the configured value.\n */\n void setString(String name, String value);\n}", "public void loadAndWait()\n {\n injector.addConfigurationInstances(this.configClassInstances);\n\n // load all @Services from @Configuration classes\n injector.activateFailOnNullInstance();\n injector.load();\n\n // detect duplicates and crash on matches\n injector.crashOnDuplicates();\n\n // branch out the dependencies, such that Service A, with dependency B, is\n // aware of all dependencies of B.\n injector.branchOutDependencyTree();\n\n // sort the services, based on dependency requirements\n injector.sortByDependencies();\n\n // instantiate services/clients and crash if any nil instances are detected\n injector.instantiateComponents();\n injector.crashOnNullInstances();\n\n // add the component instances to the ServiceContext\n injector.installServices(ctx);\n\n // instantiate clients\n //injector.instantiateClients();\n\n // invoke DepWire methods with required services & clients\n injector.findDepWireMethodsAndPopulate();\n }", "private void loadConfigValues() throws IOException {\n File propertiesFile = ConfigurationHelper.findConfigurationFile(\"ec2-service.properties\");\n if (null != propertiesFile) {\n logger.info(\"Use EC2 properties file: \" + propertiesFile.getAbsolutePath());\n Properties EC2Prop = new Properties();\n FileInputStream ec2PropFile = null;\n try {\n EC2Prop.load(new FileInputStream(propertiesFile));\n ec2PropFile = new FileInputStream(propertiesFile);\n EC2Prop.load(ec2PropFile);\n\n } catch (FileNotFoundException e) {\n logger.warn(\"Unable to open properties file: \" + propertiesFile.getAbsolutePath(), e);\n } catch (IOException e) {\n logger.warn(\"Unable to read properties file: \" + propertiesFile.getAbsolutePath(), e);\n } finally {\n IOUtils.closeQuietly(ec2PropFile);\n }\n managementServer = EC2Prop.getProperty(\"managementServer\");\n cloudAPIPort = EC2Prop.getProperty(\"cloudAPIPort\", null);\n\n try {\n if (ofDao.getOfferingCount() == 0) {\n String strValue = EC2Prop.getProperty(\"m1.small.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m1.small\", strValue);\n\n strValue = EC2Prop.getProperty(\"m1.large.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m1.large\", strValue);\n\n strValue = EC2Prop.getProperty(\"m1.xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m1.xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"c1.medium.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"c1.medium\", strValue);\n\n strValue = EC2Prop.getProperty(\"c1.xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"c1.xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"m2.xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m2.xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"m2.2xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m2.2xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"m2.4xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m2.4xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"cc1.4xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"cc1.4xlarge\", strValue);\n }\n } catch (Exception e) {\n logger.error(\"Unexpected exception \", e);\n }\n } else\n logger.error(\"ec2-service.properties not found\");\n }", "private void processPropertyPlaceHolders() {\n\t\tMap<String, PropertyResourceConfigurer> prcs = applicationContext.getBeansOfType(PropertyResourceConfigurer.class);\n\n\t\tif (!prcs.isEmpty() && applicationContext instanceof GenericApplicationContext) {\n\t\t\tBeanDefinition mapperScannerBean = ((GenericApplicationContext) applicationContext)\n\t\t\t\t\t.getBeanFactory().getBeanDefinition(beanName);\n\n\t\t\t// PropertyResourceConfigurer does not expose any methods to explicitly perform\n\t\t\t// property placeholder substitution. Instead, create a BeanFactory that just\n\t\t\t// contains this mapper scanner and post process the factory.\n\t\t\tDefaultListableBeanFactory factory = new DefaultListableBeanFactory();\n\t\t\tfactory.registerBeanDefinition(beanName, mapperScannerBean);\n\n\t\t\tfor (PropertyResourceConfigurer prc : prcs.values()) {\n\t\t\t\tprc.postProcessBeanFactory(factory);\n\t\t\t}\n\n\t\t\tPropertyValues values = mapperScannerBean.getPropertyValues();\n\n\t\t\tthis.basePackage = updatePropertyValue(\"basePackage\", values);\n\t\t\tthis.sqlSessionFactoryBeanName = updatePropertyValue(\"sqlSessionFactoryBeanName\", values);\n\t\t\tthis.sqlSessionTemplateBeanName = updatePropertyValue(\"sqlSessionTemplateBeanName\", values);\n\t\t}\n\t}", "public void loadPluginsStartup();", "public static Map<String, DSEMergeConfigurator> initializeConfiguration() {\n try {\n configuratorMapping = Maps.newHashMap();\n IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(CONFIGURATION_POINT);\n for (IExtension ext : extensionPoint.getExtensions()) {\n\n for (IConfigurationElement conf : ext.getConfigurationElements()) {\n String uri = conf.getAttribute(URI_ATTRIBUTE);\n DSEMergeConfigurator configurator;\n configurator = (DSEMergeConfigurator) conf.createExecutableExtension(CLASS_ATTRIBUTE);\n if (uri != null && configurator != null)\n configuratorMapping.put(uri, configurator);\n }\n }\n } catch (InvalidRegistryObjectException | CoreException e) {\n logger.error(e.getMessage(),e);\n }\n return configuratorMapping;\n }", "private void init(RunTimeSingleton glob, I_ServiceManager manager, String type_, String version_,\n ContextNode contextNode) throws ServiceManagerException {\n this.glob = glob;\n\n if (type_ == null) {\n log.debug(\"Service type is null, ignoring Service\");\n return;\n }\n this.type = type_.trim();\n this.version = (version_ == null) ? \"1.0\" : version_.trim();\n\n if (manager == null) return;\n\n propertyName = manager.getName();\n ME = \"ServiceInfo-\"+propertyName;\n\n if (ignoreService()) {\n log.debug(\"Service type set to 'undef', ignoring Service\");\n return;\n }\n\n // propertyKey=\"ProtocolService[IOR][1.0]\"\n propertyKey = manager.createServicePropertyKey(type, version);\n \n // Search for e.g. \"ProtocolService[IOR][1.0]\" or \"/ehrserver/node/heron/ProtocolService[IOR][1.0]\"\n String defaultClass = \"EhrSOABaseService\";\n PropString prop = new PropString(defaultClass);\n /*String usedPropertyKey =*/prop.setFromEnv(glob, contextNode, propertyKey);\n \n log.debug(\"Trying contextNode=\" + ((contextNode==null)?\"null\":contextNode.getRelativeName()) + \" propertyKey=\" + propertyKey);\n\n String rawString = prop.getValue();\n\n if (rawString==null) {\n if (this.type != null) {\n log.debug(\"Service '\" + toString() + \"' not found, giving up.\");\n throw new ServiceManagerException(glob, SysErrorCode.RESOURCE_CONFIGURATION, ME, \"Service '\" + toString() + \"' not found, please check your configuration\");\n }\n rawString = manager.getDefaultServiceName(this.type, this.version);\n }\n\n parsePropertyValue(rawString);\n }", "@Test\n\tvoid thirdPartyConfigurationPropertiesRegisteredWithImportAsConfigurationPropertiesAndNoPrefix() {\n\t\tthis.contextRunner.withUserConfiguration(ImportThirdParty1PropertiesConfiguration.class)\n\t\t\t\t.withPropertyValues(\"name=test\").run((context) -> {\n\t\t\t\t\tThirdParty1Properties properties = context.getBean(ThirdParty1Properties.class);\n\t\t\t\t\tassertThat(properties.getName()).isEqualTo(\"test\");\n\t\t\t\t\tassertThat(properties.getCounter()).isEqualTo(42);\n\t\t\t\t});\n\t}", "private void init()\n {\n SystrayActivator.bundleContext\n .addServiceListener(new ProtocolProviderServiceListener());\n \n ServiceReference[] protocolProviderRefs = null;\n try\n {\n protocolProviderRefs\n = SystrayActivator.bundleContext.getServiceReferences(\n ProtocolProviderService.class.getName(),null);\n }\n catch (InvalidSyntaxException ex)\n {\n // this shouldn't happen since we're providing no parameter string\n // but let's log just in case.\n logger .error(\"Error while retrieving service refs\", ex);\n return;\n }\n \n // in case we found any\n if (protocolProviderRefs != null)\n {\n \n for (int i = 0; i < protocolProviderRefs.length; i++)\n {\n ProtocolProviderService provider\n = (ProtocolProviderService) SystrayActivator.bundleContext\n .getService(protocolProviderRefs[i]);\n \n this.addAccount(provider);\n }\n }\n }", "private static StandardServiceRegistry configureServiceRegistry() {\n return new StandardServiceRegistryBuilder()\n .applySettings(getProperties())\n .build();\n }", "public interface ConfigFileOverrideSubsystemsResource extends Resource<Map<String, SubsystemConfig>> {\n\n void addSubsystemConfig(SubsystemConfig subsystemConfig);\n\n boolean removeSubsystemConfig(SubsystemConfig subsystemConfig);\n\n List<SubsystemConfig> getSubsystemConfigs();\n\n Set<String> getSubsystemsNotAdded();\n\n ConfigFileOverrideResource getParent();\n\n String getProfileName();\n}", "public synchronized static void initConfig() {\n\t\tMap<CatPawConfigProperty, String> initialValues = new HashMap<CatPawConfigProperty, String>();\n\t\tinitConfig(initialValues);\n\t}", "@Override\n protected final void initializeSpecific() {\n initializeSpringSpecific();\n\n // Once the subclasses have had their opportunity, compute configurations belonging to SpringTemplateEngine\n super.initializeSpecific();\n\n final MessageSource messageSource =\n this.templateEngineMessageSource == null ? this.messageSource : this.templateEngineMessageSource;\n\n final IMessageResolver messageResolver;\n if (messageSource != null) {\n final SpringMessageResolver springMessageResolver = new SpringMessageResolver();\n springMessageResolver.setMessageSource(messageSource);\n messageResolver = springMessageResolver;\n } else {\n messageResolver = new StandardMessageResolver();\n }\n\n super.setMessageResolver(messageResolver);\n\n }", "private void init() {\r\n this.configMapping = ChannelConfigHolder.getInstance().getConfigs();\r\n if (!isValid(this.configMapping)) {\r\n SystemExitHelper.exit(\"Cannot load the configuations from the configuration file please check the channelConfig.xml\");\r\n }\r\n }", "static AuditYamlConfigurationLoader withSystemProperties()\n {\n return withProperties(System.getProperties());\n }", "public void loadPlugins() {\n\n ServiceLoader<Pump> serviceLoader = ServiceLoader.load(Pump.class);\n for (Pump pump : serviceLoader) {\n availablePumps.put(pump.getPumpName(), pump);\n }\n\n Pump dummy = new DummyControl();\n availablePumps.put(dummy.getName(), dummy);\n\n Pump lego = new LegoControl();\n availablePumps.put(lego.getName(), lego);\n }", "public abstract void handle(Collection<StartupPropertyEntry> entries);", "protected void initialise() {\r\n loadDefaultConfig();\r\n loadCustomConfig();\r\n loadSystemConfig();\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"--- Scope properties ---\");\r\n for (Iterator i = properties.keySet().iterator(); i.hasNext(); ) {\r\n String key = (String) i.next();\r\n Object value = properties.get(key);\r\n LOG.debug(key + \" = \" + value);\r\n }\r\n LOG.debug(\"------------------------\");\r\n }\r\n }", "private void load() {\n if (loaded) {\n return;\n }\n loaded = true;\n\n if(useDefault){\n ConfigFileLoader.setSource(\n new MhttpdBaseConfigurationSource(\n Bootstrap.getMhttpdBaseFile(), \"server-embed.xml\"));\n }else {\n ConfigFileLoader.setSource(\n new MhttpdBaseConfigurationSource(\n Bootstrap.getMhttpdBaseFile(), getConfigFile()));\n }\n Digester digester = createStartDigester();\n try (ConfigurationSource.Resource resource = ConfigFileLoader.getSource().getServerXml()) {\n InputStream inputStream = resource.getInputStream();\n InputSource inputSource = new InputSource(resource.getUri().toURL().toString());\n inputSource.setByteStream(inputStream);\n digester.push(this);\n digester.parse(inputSource);\n } catch (Exception e) {\n return;\n }\n\n }", "@PostConstruct\n private void init() {\n\n log.info(\"Singleton initialized; properties are: {}\", propertiesToString());\n }", "private void init() {\n\t\tif ( PropertiesConfigurationFilename == null ) {\n\t\t\tlogger.info(\"config.properties is default\");\n\t\t\tconfigProp = createDefaultProperties();\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tlogger.info(\"config.properties is \"+ PropertiesConfigurationFilename.getAbsolutePath());\n\t\t\t\tconfigProp = new PropertiesConfiguration();\n\t\t\t\tconfigProp.load(PropertiesConfigurationFilename);\n\t\t\t} catch (ConfigurationException e) {\n\t\t\t\tlogger.error(\"Unable to open config file: \" + PropertiesConfigurationFilename.getAbsolutePath(), e);\n\t\t\t\tlogger.info(\"config.properties is default\");\n\t\t\t\tconfigProp = createDefaultProperties();\n\t\t\t}\n\t\t}\n\n\n\t\t// Load the locale information\n\t\tString locale = configProp.getString(\"locale\");\n\n\t\tconfigProp.setProperty(\"zmMsg\", ResourceBundle.getBundle(\"ZmMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zhMsg\", ResourceBundle.getBundle(\"ZhMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"ajxMsg\", ResourceBundle.getBundle(\"AjxMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"i18Msg\", ResourceBundle.getBundle(\"I18nMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zsMsg\", ResourceBundle.getBundle(\"ZsMsg\", new Locale(locale)));\n\n\t}", "@Override\n public void init()\n throws InitializationException\n {\n // Create a default configuration.\n String[] def = new String[]\n {\n DEFAULT_RUN_DATA,\n DEFAULT_PARAMETER_PARSER,\n DEFAULT_COOKIE_PARSER\n };\n configurations.put(DEFAULT_CONFIG, def.clone());\n\n // Check other configurations.\n Configuration conf = getConfiguration();\n if (conf != null)\n {\n String key,value;\n String[] config;\n String[] plist = new String[]\n {\n RUN_DATA_KEY,\n PARAMETER_PARSER_KEY,\n COOKIE_PARSER_KEY\n };\n for (Iterator<String> i = conf.getKeys(); i.hasNext();)\n {\n key = i.next();\n value = conf.getString(key);\n int j = 0;\n for (String plistKey : plist)\n {\n if (key.endsWith(plistKey) && key.length() > plistKey.length() + 1)\n {\n key = key.substring(0, key.length() - plistKey.length() - 1);\n config = (String[]) configurations.get(key);\n if (config == null)\n {\n config = def.clone();\n configurations.put(key, config);\n }\n config[j] = value;\n break;\n }\n j++;\n }\n }\n }\n\n\t\tpool = (PoolService)TurbineServices.getInstance().getService(PoolService.ROLE);\n\n if (pool == null)\n {\n throw new InitializationException(\"RunData Service requires\"\n + \" configured Pool Service!\");\n }\n\n parserService = (ParserService)TurbineServices.getInstance().getService(ParserService.ROLE);\n\n if (parserService == null)\n {\n throw new InitializationException(\"RunData Service requires\"\n + \" configured Parser Service!\");\n }\n\n setInit(true);\n }", "private static Properties loadOverrideProperties() {\n String confFile = System.getProperty(HAPI_PROPERTIES);\n if(confFile != null) {\n try {\n Properties props = new Properties();\n props.load(new FileInputStream(confFile));\n return props;\n }\n catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties file: \" + confFile, e);\n }\n }\n\n return null;\n }", "public void selfRegister() {\n builder.factory(Configuration.class, MockConfiguration.class, Scope.SINGLETON);\n LocatableProperties props = new LocatableProperties();\n new StrutsDefaultConfigurationProvider().register(builder, props);\n builder.constant(StrutsConstants.STRUTS_DEVMODE, \"false\");\n builder.constant(StrutsConstants.STRUTS_CONFIGURATION_XML_RELOAD, \"true\");\n builder.constant(StrutsConstants.STRUTS_OGNL_ENABLE_EXPRESSION_CACHE, \"true\");\n builder.constant(StrutsConstants.STRUTS_ENABLE_DYNAMIC_METHOD_INVOCATION, \"false\");\n container = builder.create(true);\n }", "@PostConstruct\n public void init()\n throws RedbackServiceException\n {\n getI18nProperties( \"en\" );\n getI18nProperties( \"fr\" );\n }", "private static Properties getConfiguration(\n String bootstrapInfo,\n boolean reinit\n ) throws Exception {\n Properties properties = null;\n Properties prop = new Properties();\n prop.setProperty(PROP_SECURITY_ENCRYPTOR, DEFAULT_SECURITY_ENCRYPTOR);\n prop.setProperty(Constants.SERVER_MODE, \"true\");\n \n boolean isLdap = false;\n // need to do this because URL class does not understand ldap://\n if (bootstrapInfo.startsWith(\"ldap://\")) {\n bootstrapInfo = \"http://\" + bootstrapInfo.substring(7);\n isLdap = true; \n }\n \n URL url = new URL(bootstrapInfo);\n String instanceName = null;\n String dshost = \"ds.opensso.java.net\";\n String dsport = \"389\";\n String dsbasedn = \"dc=opensso,dc=java,dc=net\";\n String dsmgr = \"cn=dsameuser,ou=DSAME Users,\" + dsbasedn;\n String dspwd = \"11111111\";\n Map mapQuery = queryStringToMap(url.getQuery());\n String pwd = (String)mapQuery.get(PWD);\n boolean proceed = true;\n \n //NOTE: need to add more protocol is we support more of them\n if (!isLdap) {\n prop.setProperty(PROP_SMS_OBJECT, PROP_SMS_OBJECT_FILE);\n prop.setProperty(PROP_SMS_FILE_DIR,\n (String)mapQuery.get(FF_BASE_DIR));\n instanceName = url.getPath();\n int idx = instanceName.lastIndexOf('/');\n if (idx != -1) {\n instanceName = instanceName.substring(idx+1);\n }\n instanceName = URLDecoder.decode(instanceName, \"UTF-8\");\n initializeSystemComponents(prop, dsbasedn, reinit, isLdap, dshost,\n dsport, dsmgr, dspwd, pwd);\n } else {\n prop.setProperty(PROP_SMS_OBJECT, PROP_SMS_OBJECT_LDAP);\n dshost = url.getHost();\n dsport = Integer.toString(url.getPort());\n dsbasedn = (String)mapQuery.get(DS_BASE_DN);\n dsmgr = (String)mapQuery.get(DS_MGR);\n dspwd = (String)mapQuery.get(DS_PWD);\n instanceName = URLDecoder.decode(url.getPath(), \"UTF-8\");\n if (instanceName.startsWith(\"/\")) {\n instanceName = instanceName.substring(1);\n }\n \n initializeSystemComponents(prop, dsbasedn, reinit, isLdap, dshost,\n dsport, dsmgr, dspwd, pwd);\n \n String embeddedDS = (String)mapQuery.get(EMBEDDED_DS);\n if ((embeddedDS != null) && (embeddedDS.length() > 0)) {\n proceed = startEmbeddedDS(embeddedDS);\n }\n }\n \n if (proceed) {\n String dsameUser = \"cn=dsameuser,ou=DSAME Users,\" + dsbasedn;\n SSOToken ssoToken = getSSOToken(dsbasedn, dsameUser,\n Crypt.decode(pwd, Crypt.getHardcodedKeyEncryptor()));\n try {\n properties = ServerConfiguration.getServerInstance(\n ssoToken, instanceName);\n if (properties != null) {\n SystemProperties.initializeProperties(\n properties, true, false);\n String serverConfigXML =\n ServerConfiguration.getServerConfigXML(\n ssoToken, instanceName);\n Crypt.reinitialize();\n loadServerConfigXML(serverConfigXML);\n AdminUtils.initialize();\n SMSAuthModule.initialize();\n SystemProperties.initializeProperties(\n properties, true, true);\n SystemProperties.setServerInstanceName(instanceName);\n \n ServiceConfigManager scm = new ServiceConfigManager(\n Constants.SVC_NAME_PLATFORM, (SSOToken)AccessController.\n doPrivileged(AdminTokenAction.getInstance()));\n scm.addListener(new ConfigurationObserver());\n }\n } catch (SMSException e) {\n //ignore. product is not configured yet.\n properties = null;\n }\n }\n return properties;\n }", "@Override\n\tprotected void customizeRegistration(Dynamic registration) {\n\tsuper.customizeRegistration(registration);\n\t}", "private static synchronized void init() {\n if (CONFIG_VALUES != null) {\n return;\n }\n\n CONFIG_VALUES = new Properties();\n processLocalConfig();\n processIncludedConfig();\n }", "@PostConstruct\n public void startup() {\n org.interledger.link.http.auth.Decryptor linkDecryptor = encryptedConnectorPropertyStringBytes -> decryptor.decrypt(\n EncryptedSecret.fromEncodedValue(new String(encryptedConnectorPropertyStringBytes))\n );\n\n linkFactoryProvider.registerLinkFactory(\n IlpOverHttpLink.LINK_TYPE,\n new IlpOverHttpLinkFactory(\n ilpOverHttpClient, linkDecryptor, objectMapper, InterledgerCodecContextFactory.oer()\n )\n );\n }", "private synchronized void loadProvider() {\n\t\tif (provider != null) {\n\t\t\t// Prevents loading by two thread in parallel\n\t\t\treturn;\n\t\t}\n\t\tfinal IExtensionRegistry xRegistry = Platform.getExtensionRegistry();\n\t\tfinal IExtensionPoint xPoint = xRegistry\n\t\t\t\t.getExtensionPoint(PROVIDERS_ID);\n\t\tfor (IConfigurationElement element : xPoint.getConfigurationElements()) {\n\t\t\ttry {\n\t\t\t\tfinal String id = element.getAttribute(\"id\");\n\t\t\t\tif (provider != null) {\n\t\t\t\t\tlog(null, \"Only one extension provider allowed. Provider\"\n\t\t\t\t\t\t\t+ id + \" ignored\");\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tprovider = (IFormulaExtensionProvider) element\n\t\t\t\t\t\t\t.createExecutableExtension(\"class\");\n\t\t\t\t}\n\t\t\t\tif (DEBUG)\n\t\t\t\t\tSystem.out.println(\"Registered provider extension \" + id);\n\t\t\t} catch (CoreException e) {\n\t\t\t\tlog(e, \"while loading extension provider\");\n\t\t\t}\n\t\t}\n\t}", "public void loadPRIConfiguration()\r\n\t{\r\n\t\tString httpId = (String) globalConfigurationService.getProperty(\"sapproductrecommendation_httpdest\");\t\t\r\n\t\tthis.setHttpDestinationId(httpId);\r\n\t\tloadHTTPDestination();\r\n\t}", "private static void setupOsgi() {\r\n FrameworkStarter.getInstance().start();\r\n }", "private void loadProperties() {\n\t\t\n\t\tString fldr = env.getProperty(\"response.folder\");\n\t\tthis.repo.setRootFolder( new File(fldr));;\n\t\t\n\t\tint nthConfigItem = 1;\n\t\twhile(true) {\n\t\t\tString seq = (\"\"+nthConfigItem++).trim();\n\t\t\t\n\t\t\tString xpathPropName = \"request.\" + seq + \".xpath\";\n\t\t\tString responseTextFilePropName = \"request.\" + seq + \".response.file\";\n\t\t\tString xpath = env.getProperty(xpathPropName);\n\t\t\tString responseTextFileName = env.getProperty(responseTextFilePropName);\n\t\t\tif (xpath!=null && !\"\".equals(xpath.trim())\n\t\t\t\t&& responseTextFileName!=null & !\"\".equals(responseTextFileName.trim())\t) {\n\t\t\t\t\n\t\t\t\trepo.addFile(xpath, responseTextFileName);\n\t\t\t\tController.logAlways(\"Loading config item [\" + seq + \"] xpath: [\" + rpad(xpath, 60) + \"] data file: [\" + rpad(responseTextFileName,25) + \"]\" );\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tController.logAlways(\"End of littleMock initialization. No more properties from application.properties will be loaded because either [\" + xpathPropName + \"] or [\" + responseTextFilePropName + \"] was not found in application.properties.\");\n\t\t\t\t//parameters in application.properties must be\n\t\t\t\t//in sequential order, starting at 1.\n\t\t\t\t//When we discover the first missing one, stop looking for more.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\thumanReadableConfig = PlaybackRepository.SINGLETON.humanReadable();\n\t}", "@Override\n public void lifeCycleStarting(LifeCycle anyLifeCycle) {\n System.getProperties().putAll(toSet);\n }", "@Override\n public synchronized void load(Map<String, Object> parameters) {\n // fill properly the \"forGroups\" and \"forProjects\" fields\n processTargetGroupsAndProjects();\n\n if (!hasPlugin()) {\n LOGGER.log(Level.SEVERE, \"Configured plugin \\\"{0}\\\" has not been loaded into JVM (missing file?). \"\n + \"This can cause the authorization to fail always.\",\n getName());\n setFailed();\n LOGGER.log(Level.INFO, \"[{0}] Plugin \\\"{1}\\\" {2} and is {3}.\",\n new Object[]{\n getFlag().toString().toUpperCase(),\n getName(),\n hasPlugin() ? \"found\" : \"not found\",\n isWorking() ? \"working\" : \"failed\"});\n return;\n }\n\n setCurrentSetup(new TreeMap<>());\n getCurrentSetup().putAll(parameters);\n getCurrentSetup().putAll(getSetup());\n\n try {\n plugin.load(getCurrentSetup());\n setWorking();\n } catch (Throwable ex) {\n LOGGER.log(Level.SEVERE, \"Plugin \\\"\" + getName() + \"\\\" has failed while loading with exception:\", ex);\n setFailed();\n }\n\n LOGGER.log(Level.INFO, \"[{0}] Plugin \\\"{1}\\\" {2} and is {3}.\",\n new Object[]{\n getFlag().toString().toUpperCase(),\n getName(),\n hasPlugin() ? \"found\" : \"not found\",\n isWorking() ? \"working\" : \"failed\"});\n }", "public void addInstantiadedConfigurations(Object... instances) {\n this.configClassInstances.addAll(Arrays.asList(instances));\n }", "@Initializer(after = InitMilestone.EXTENSIONS_AUGMENTED)\r\n public static void onLoaded() {\n\r\n DescriptorImpl descriptor = (DescriptorImpl) Jenkins.get().getDescriptor(SurroundSCMSource.class);\r\n if (descriptor == null) {\r\n logger.severe(\"Jenkins has no registered Descriptor for SurroundSCMSource.\");\r\n }\r\n }", "@ProviderType\npublic interface ServiceUserMapped {\n\n\n /**\n * The name of the osgi property holding the sub service name.\n */\n String SUBSERVICENAME = \"subServiceName\";\n\n}", "public abstract void loaded() throws ConfigurationException;", "private void loadAms2Services() {\n\n // 1st create the spring-bean-loader instance \n // you might consider it as kind of \"bean factory\"\n SpringContextLoader spring = new SpringContextLoader();\n \n // initialize the bean loader\n // with the (spring-beans)config file it should use \n // to lookup the bean definitions\n spring.init(\"spring-ams2-core.xml\");\n \n logger.debug(\"Constants.BEAN_PRINCIPAL_SRV: \" + Constants.BEAN_PRINCIPAL_SRV);\n logger.debug(\"Constants.BEAN_AUTHORIZATION_SRV: \" + Constants.BEAN_AUTHORIZATION_SRV);\n logger.debug(\"Constants.BEAN_FABRIC_SRV: \" + Constants.BEAN_FABRIC_SRV);\n \n \n // load a bean by its id/name:\n // use the service interface as reference!\n pcplSrv = (PrincipalService) spring.getBean(Constants.BEAN_PRINCIPAL_SRV);\n\n // just another ams2 service as example: the \"advanced authorization service\" (managing user-node-rules information)\n authzSrv = (AdvAuthorizationService) spring.getBean(Constants.BEAN_AUTHORIZATION_SRV);\n\n // just another ams2 service as example: the \"rule service\" (providing rules/roles information)\n //RuleService ruleSrv = (RuleService) spring.getBean(Constants.BEAN_RULE_SRV);\n\n // load the needed service: FabricService (designed to wrap further functionality arround corpusstructure api)\n fabricSrv = (FabricService) spring.getBean(Constants.BEAN_FABRIC_SRV);\n\n SpringContextLoader springAuth = new SpringContextLoader();\n springAuth.init(\"spring-ams2-auth.xml\");\n authSrv = (AuthenticationService) springAuth.getBean(Constants.BEAN_INTEGRATED_AUTHENTICATION_SRV);\n \n }", "public void init(Map<String, String> configuration);", "@PostConstruct\n\tpublic void init() {\t\t\n\t\tsql = new String (\"select * from ip_location_mapping order by ip_from_long ASC\");\n\t\tipLocationMappings = jdbcTemplate.query(sql, new IpLocationMappingMapper());\n\t\t\n\t\t//print all beans initiated by container\n\t\t\t\tString[] beanNames = ctx.getBeanDefinitionNames();\n\t\t\t\tSystem.out.println(\"鎵�浠eanNames涓暟锛�\"+beanNames.length);\n\t\t\t\tfor(String bn:beanNames){\n\t\t\t\t\tSystem.out.println(bn);\n\t\t\t\t}\n\n\t}", "private static Properties getConfiguration(\n BootstrapData bootstrapData,\n boolean reinit,\n boolean bStartDS\n ) throws Exception {\n Properties properties = null;\n bootstrapData.initSMS(bStartDS); \n if (reinit) {\n AdminUtils.initialize();\n SMSAuthModule.initialize();\n }\n \n LDAPConnection ld = null;\n DSConfigMgr dsCfg = DSConfigMgr.getDSConfigMgr();\n ServerGroup sg = dsCfg.getServerGroup(\"sms\");\n if (sg != null) {\n try {\n ld = dsCfg.getNewConnection(\"sms\", LDAPUser.Type.AUTH_ADMIN);\n } catch (LDAPServiceException e) {\n // ignore, DS is down\n }\n }\n if (ld == null) {\n return null;\n }\n \n String dsbasedn = bootstrapData.getBaseDN();\n String pwd = bootstrapData.getDsameUserPassword();\n String dsameUser = \"cn=dsameuser,ou=DSAME Users,\" + dsbasedn;\n String instanceName = bootstrapData.getInstanceName();\n \n SSOToken ssoToken = getSSOToken(dsbasedn, dsameUser,\n Crypt.decode(pwd, Crypt.getHardcodedKeyEncryptor()));\n try {\n properties = ServerConfiguration.getServerInstance(\n ssoToken, instanceName);\n if (properties != null) {\n SystemProperties.initializeProperties(\n properties, true, false);\n String serverConfigXML =\n ServerConfiguration.getServerConfigXML(\n ssoToken, instanceName);\n Crypt.reinitialize();\n BootstrapData.loadServerConfigXML(serverConfigXML);\n SMSEntry.initializeClass();\n AdminUtils.initialize();\n SMSAuthModule.initialize();\n SystemProperties.initializeProperties(\n properties, true, true);\n DebugPropertiesObserver.getInstance().notifyChanges();\n SMSPropertiesObserver.getInstance().notifyChanges();\n SystemProperties.setServerInstanceName(instanceName);\n \n // ConfigurationObserver is already added when \n // DebugPropertiesObserver.getInstance().notifyChanges();\n // is called. Adding again causes 2 notification events\n // to be sent.\n // ServiceConfigManager scm = new ServiceConfigManager(\n // Constants.SVC_NAME_PLATFORM, (SSOToken)\n // AccessController.doPrivileged(\n // AdminTokenAction.getInstance()));\n // scm.addListener(ConfigurationObserver.getInstance());\n }\n } catch (SMSException e) {\n //ignore. product is not configured yet.\n properties = null;\n }\n return properties;\n }", "private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }", "public void registerConfigurationEntry(String key, Object entry);", "private void configureServerInstance() {\n final String myUrl = \"http://68.71.213.88/pepinstances/json\";\n final HttpClient client = HttpClientBuilder.create().build();\n final HttpPost httpPost = new HttpPost(myUrl);\n\n httpPost.addHeader(\"Connection\", \"keep-alive\");\n httpPost.addHeader(\"X-Conversation-Id\", \"BeepBeep123456\");\n httpPost.addHeader(\"Content-Type\", \"application/json\");\n httpPost.addHeader(\"X-API-Version\", \"1\");\n httpPost.addHeader(\"Accept\", \"application/json;apiversion=1\");\n httpPost.addHeader(\"Authorization\", \"BEARER \" + token);\n httpPost.addHeader(\"X-Disney-Internal-PoolOverride-WDPROAPI\",\n \"XXXXXXXXXXXXXXXXXXXXXXXXX\");\n\n final String bodyRequest = \"\";\n HttpEntity entity;\n try {\n entity = new ByteArrayEntity(bodyRequest.getBytes(\"UTF-8\"));\n httpPost.setEntity(entity);\n\n final HttpResponse response = client.execute(httpPost);\n final HttpEntity eResponse = response.getEntity();\n final String responseBody = EntityUtils.toString(eResponse);\n final JSONObject lampStack = new JSONObject(responseBody)\n .getJSONObject(\"LAMPSTACK\");\n if (lampStack.getString(\"LIVE INSTANCE\").equals(\"A\")) {\n setServerInstance(\"A\");\n } else if (lampStack.getString(\"LIVE INSTANCE\").equals(\"B\")) {\n setServerInstance(\"B\");\n } else {\n setServerInstance(\"B\");\n }\n\n } catch (final Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n }", "@PostConstruct\r\n\tprivate void init()\r\n\t{\r\n\t\tRegistryFactory.registerDefaults(expressionRegistry);\r\n\t}", "protected static void initRuntimeParameters(Module image, Run run)\n\t\t\tthrows ValidationException, NotFoundException {\n\n\t\tList<String> filter = new ArrayList<String>();\n\t\tfor (ParameterCategory c : ParameterCategory.values()) {\n\t\t\tfilter.add(c.toString());\n\t\t}\n\t\tString cloudService = run.getCloudService();\n\t\tfilter.add(cloudService);\n\n\t\tif (image.getParameters() != null) {\n\t\t\tfor (ModuleParameter param : image.getParameterList()) {\n\t\t\t\tif (filter.contains(param.getCategory())) {\n\t\t\t\t\trun.assignRuntimeParameter(\n\t\t\t\t\t\t\tRun.MACHINE_NAME_PREFIX + param.getName(),\n\t\t\t\t\t\t\tparam.getValue(), param.getDescription());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Add cloud service name to orchestrator and machine\n\t\tString cloudServiceName = run.getCloudService();\n\t\trun.assignRuntimeParameter(Run.MACHINE_NAME_PREFIX\n\t\t\t\t+ RuntimeParameter.CLOUD_SERVICE_NAME, cloudServiceName,\n\t\t\t\tRuntimeParameter.CLOUD_SERVICE_DESCRIPTION);\n\n\t}", "@PostConstruct\n\tpublic void init() {\n\t\tEnvironmentUtils.setEnvironment(env);\n\t}", "public void start(BundleContext context) throws Exception {\n\t\tServiceReference<ConfigurationAdmin> serviceReference = context\n\t\t\t\t.getServiceReference(ConfigurationAdmin.class);\n\t\ttry {\n\t\t\tConfigurationAdmin cm = context\n\t\t\t\t\t.getService(serviceReference);\n\t\t\tConfiguration config = cm\n\t\t\t\t\t.getConfiguration(CMControl.PACKAGE\n\t\t\t\t\t+ \".tb2pid.\"\n\t\t\t\t\t+ ConfigurationListenerImpl.LISTENER_PID_SUFFIX);\n\t\t\tDictionary<String,Object> props = new Hashtable<>();\n\t\t\tprops.put(\"key\", \"value1\");\n\t\t\tconfig.update(props);\n\t\t\tconfig.delete();\n\t\t\tconfig = cm\n\t\t\t\t\t.createFactoryConfiguration(CMControl.PACKAGE\n\t\t\t\t\t+ \".tb2factorypid.\"\n\t\t\t\t\t+ ConfigurationListenerImpl.LISTENER_PID_SUFFIX);\n\t\t\tconfig.update(props);\n\t\t\tconfig.delete();\n\t\t}\n\t\tfinally {\n\t\t\tcontext.ungetService(serviceReference);\n\t\t}\n\t}", "@Override\n public void addConfigurationProperties(Properties properties) {\n }", "private void getExternalConfig()\n {\n String PREFIX = \"getExternalConfig override name [{}] value [{}]\";\n // Check to see if the ldap host has been overridden by a system property:\n String szValue = System.getProperty( EXT_LDAP_HOST );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_HOST, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_HOST, szValue );\n }\n // Check to see if the ldap port has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_PORT );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_PORT, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_PORT, szValue );\n }\n\n // Check to see if the admin pool uid has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_UID );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_UID, szValue );\n // never display ldap admin userid name to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_ADMIN_POOL_UID );\n }\n\n // Check to see if the admin pool pw has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_PW );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_PW, szValue );\n // never display password of any type to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_ADMIN_POOL_PW );\n }\n\n // Check to see if the admin pool min connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_MIN );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_MIN, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_ADMIN_POOL_MIN, szValue );\n }\n\n // Check to see if the admin pool max connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_MAX );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_MAX, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_ADMIN_POOL_MAX, szValue );\n }\n\n // Check to see if the log pool uid has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_UID );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_UID, szValue );\n // never display ldap admin userid name to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_LOG_POOL_UID );\n }\n\n // Check to see if the log pool pw has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_PW );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_PW, szValue );\n // never display password of any type to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_LOG_POOL_PW );\n }\n\n // Check to see if the log pool min connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_MIN );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_MIN, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_LOG_POOL_MIN, szValue );\n }\n\n // Check to see if the log pool max connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_MAX );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_MAX, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_LOG_POOL_MAX, szValue );\n }\n\n // Check to see if ssl enabled parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_ENABLE_LDAP_SSL );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.ENABLE_LDAP_SSL, szValue );\n LOG.info( PREFIX, GlobalIds.ENABLE_LDAP_SSL, szValue );\n }\n \n // Check to see if start tls enabled parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_ENABLE_LDAP_STARTTLS );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.ENABLE_LDAP_STARTTLS, szValue );\n LOG.info( PREFIX, GlobalIds.ENABLE_LDAP_STARTTLS, szValue );\n }\n\n // Check to see if the ssl debug enabled parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_ENABLE_LDAP_SSL_DEBUG );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.ENABLE_LDAP_SSL_DEBUG, szValue );\n LOG.info( PREFIX, GlobalIds.ENABLE_LDAP_SSL_DEBUG, szValue );\n }\n\n // Check to see if the trust store location has been overridden by a system property:\n szValue = System.getProperty( EXT_TRUST_STORE );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.TRUST_STORE, szValue );\n LOG.info( PREFIX, GlobalIds.TRUST_STORE, szValue );\n }\n\n // Check to see if the trust store password has been overridden by a system property:\n szValue = System.getProperty( EXT_TRUST_STORE_PW );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.TRUST_STORE_PW, szValue );\n // never display password value to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.TRUST_STORE_PW );\n }\n\n // Check to see if the trust store onclasspath parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_TRUST_STORE_ONCLASSPATH );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.TRUST_STORE_ON_CLASSPATH, szValue );\n LOG.info( PREFIX, GlobalIds.TRUST_STORE_ON_CLASSPATH, szValue );\n }\n\n // Check to see if the suffix has been overridden by a system property:\n szValue = System.getProperty( EXT_CONFIG_SUFFIX );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.SUFFIX, szValue );\n LOG.info( PREFIX, GlobalIds.SUFFIX, szValue );\n\n }\n\n // Check to see if the config realm name has been overridden by a system property:\n szValue = System.getProperty( EXT_CONFIG_REALM );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.CONFIG_REALM, szValue );\n LOG.info( PREFIX, GlobalIds.CONFIG_REALM, szValue );\n }\n\n // Check to see if the config node dn has been overridden by a system property:\n szValue = System.getProperty( EXT_CONFIG_ROOT_DN );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.CONFIG_ROOT_PARAM, szValue );\n LOG.info( PREFIX, GlobalIds.CONFIG_ROOT_PARAM, szValue );\n }\n\n // Check to see if the ldap server type has been overridden by a system property:\n szValue = System.getProperty( EXT_SERVER_TYPE );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.SERVER_TYPE, szValue );\n LOG.info( PREFIX, GlobalIds.SERVER_TYPE, szValue );\n }\n\n // Check to see if ARBAC02 checking enforced in service layer:\n szValue = System.getProperty( EXT_IS_ARBAC02 );\n if( StringUtils.isNotEmpty( szValue ))\n {\n Boolean isArbac02 = Boolean. valueOf( szValue );\n config.setProperty( GlobalIds.IS_ARBAC02, isArbac02.booleanValue() );\n LOG.info( PREFIX, GlobalIds.IS_ARBAC02, isArbac02.booleanValue() );\n }\n }", "private void loadVariablesFromConfig()\n {\n List<String> spawnNames = (List<String>) spawnConfig.getConfig().getList(\"spawns\");\n for (String spawn : spawnNames) {\n Location location = new Location(\n getServer().getWorld(spawnConfig.getConfig().getString(\"spawn.\" + spawn + \".world\")),\n spawnConfig.getConfig().getDouble(\"spawn.\" + spawn + \".x\"),\n spawnConfig.getConfig().getDouble(\"spawn.\" + spawn + \".y\"),\n spawnConfig.getConfig().getDouble(\"spawn.\" + spawn + \".z\"));\n location.setPitch(spawnConfig.getConfig().getInt(\"spawn.\" + spawn + \".pitch\"));\n location.setYaw(spawnConfig.getConfig().getInt(\"spawn.\" + spawn + \".yaw\"));\n\n spawnLocations.add(location);\n }\n\n // Spectator Spawn\n spectatorSpawn = new Location(\n getServer().getWorld(spawnConfig.getConfig().getString(\"spectatorSpawn.world\")),\n spawnConfig.getConfig().getDouble(\"spectatorSpawn.x\"),\n spawnConfig.getConfig().getDouble(\"spectatorSpawn.y\"),\n spawnConfig.getConfig().getDouble(\"spectatorSpawn.z\"));\n spectatorSpawn.setPitch(spawnConfig.getConfig().getInt(\"spectatorSpawn.pitch\"));\n spectatorSpawn.setYaw(spawnConfig.getConfig().getInt(\"spectatorSpawn.yaw\"));\n }", "@BeforeAll\n public static void configInitialization() {\n System.setProperty(\"VSAC_DRC_URL\", \"https://vsac.nlm.nih.gov/vsac\");\n System.setProperty(\"SERVER_TICKET_URL\", \"https://vsac.nlm.nih.gov/vsac/ws/Ticket\");\n System.setProperty(\"SERVER_SINGLE_VALUESET_URL\", \"https://vsac.nlm.nih.gov/vsac/ws/RetrieveValueSet?\");\n System.setProperty(\"SERVER_MULTIPLE_VALUESET_URL_NEW\", \"https://vsac.nlm.nih.gov/vsac/svs/RetrieveMultipleValueSets?\");\n System.setProperty(\"SERVICE_URL\", \"http://umlsks.nlm.nih.gov\");\n System.setProperty(\"PROFILE_SERVICE\", \"https://vsac.nlm.nih.gov/vsac/profiles\");\n System.setProperty(\"VERSION_SERVICE\", \"https://vsac.nlm.nih.gov/vsac/oid/\");\n }", "@PostConstruct\n\tpublic void loadProperties() {\n\t\tproperties.put(PropertyKey.TRANSLATION_FILE_STORE, \"C:\\\\development\\\\projects\\\\mega-translator\\\\store\");\n\t}" ]
[ "0.5483347", "0.5385969", "0.5304583", "0.52894527", "0.52339923", "0.517878", "0.51764643", "0.51590574", "0.5064353", "0.50577193", "0.50532264", "0.5045921", "0.5036822", "0.50262755", "0.50205237", "0.5011794", "0.49767253", "0.49765086", "0.4947721", "0.49432057", "0.49411198", "0.49082574", "0.49000496", "0.48952132", "0.48950076", "0.489458", "0.489271", "0.48854482", "0.48778197", "0.48764896", "0.48737755", "0.48719347", "0.48692113", "0.48654577", "0.48613635", "0.48281038", "0.48229474", "0.4811522", "0.48018038", "0.47958624", "0.47839165", "0.478323", "0.47825605", "0.47749862", "0.47686285", "0.47570702", "0.47532392", "0.4752443", "0.47405893", "0.47337073", "0.47233078", "0.47098002", "0.4702725", "0.46972924", "0.46952376", "0.46896765", "0.46813744", "0.46805185", "0.4679745", "0.46789894", "0.4664819", "0.46504644", "0.46485305", "0.46219966", "0.46063906", "0.4603001", "0.4595907", "0.45907092", "0.45872554", "0.4579907", "0.45798746", "0.45739946", "0.45733276", "0.45695004", "0.4565663", "0.4560118", "0.4555055", "0.45465177", "0.454539", "0.45351472", "0.4530365", "0.45302215", "0.45292732", "0.45262042", "0.45201996", "0.45197654", "0.4517849", "0.45148385", "0.45050237", "0.4493066", "0.4489582", "0.44874397", "0.44866306", "0.44809878", "0.44764248", "0.44762668", "0.447337", "0.44726393", "0.447152", "0.44709316" ]
0.7155633
0
shortcut if no substitution is configured
private String performSubstitutions(String input, File originFile) { if (substitutionProperties.isEmpty()) { return input; } // construct pattern to detect "${namespace:key}" and extract the "namespace:key" part Pattern pattern = Pattern.compile("\\$\\{(\\w+:\\w+)\\}"); // note: the Matcher class enforces use of StringBuffer (instead of StringBuilder) StringBuffer buffer = new StringBuffer(input.length()); // perform substitution Matcher m = pattern.matcher(input); while (m.find()) { String key = m.group(1); String value = substitutionProperties.get(key); if (value == null) { throw new IllegalArgumentException("Missing configuration value for \"" + key + "\" in file " + originFile.getAbsolutePath()); } m.appendReplacement(buffer, value); } m.appendTail(buffer); return buffer.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSubstitute();", "String getDefaultAlias();", "String getReplacementString();", "@Override\r\n\tpublic String repl() {\n\t\treturn null;\r\n\t}", "abstract public void selfReplace(Command replacement);", "private String substitution(String s) {\r\n\t\t// System.out.println(\"ExPar.substitution() Substitution for: \" + s);\r\n\t\tint i = s.indexOf(substitutionChar);\r\n\t\tif (i < 0) {\r\n\t\t\treturn (s);\r\n\t\t} else {\r\n\t\t\tStringBuffer t = new StringBuffer();\r\n\t\t\tint i0 = 0;\r\n\t\t\tboolean finished = false;\r\n\t\t\twhile (!finished) {\r\n\t\t\t\t// System.out.println(\" Buffer = \" + t);\r\n\t\t\t\tint i1 = s.indexOf(substitutionChar, i0);\r\n\t\t\t\tif (i1 < 0) {\r\n\t\t\t\t\tt.append(s.substring(i0));\r\n\t\t\t\t\t// System.out.println(\" i1 = \" + i1 + \" Buffer = \" + t);\r\n\t\t\t\t\tfinished = true;\r\n\t\t\t\t} else if ((i1 > i0) && (s.charAt(i1 - 1) == escapeChar)) {\r\n\t\t\t\t\tt.append(s.substring(i0, i1 - 1));\r\n\t\t\t\t\tt.append(substitutionChar);\r\n\t\t\t\t\ti0 = i1 + 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// found first substitution character\r\n\t\t\t\t\tint i2 = s.indexOf(substitutionChar, i1 + 2);\r\n\t\t\t\t\tif (i2 < 0) {\r\n\t\t\t\t\t\tt.append(s.substring(i0));\r\n\t\t\t\t\t\t// System.out.println(\" i2 = \" + i2 + \" Buffer = \" +\r\n\t\t\t\t\t\t// t);\r\n\t\t\t\t\t\tfinished = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// found second substitution character\r\n\t\t\t\t\t\tif (i0 < i1) {\r\n\t\t\t\t\t\t\tt.append(s.substring(i0, i1));\r\n\t\t\t\t\t\t\t// System.out.println(\" Buffer = \" + t);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Check for trailing format character\r\n\t\t\t\t\t\tString name = s.substring(i1 + 1, i2);\r\n\t\t\t\t\t\tint n = name.length();\r\n\t\t\t\t\t\tchar fmt = '0';\r\n\t\t\t\t\t\tif ((n > 2) && (name.charAt(n - 2) == formatChar)) {\r\n\t\t\t\t\t\t\tfmt = name.charAt(n - 1);\r\n\t\t\t\t\t\t\tname = name.substring(0, n - 2);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//\r\n\t\t\t\t\t\t// System.out.println(\"ExPar.substitution() Parameter = \"\r\n\t\t\t\t\t\t// + name);\r\n\t\t\t\t\t\tExPar sx = get(name);\r\n\t\t\t\t\t\tif (sx != null) {\r\n\t\t\t\t\t\t\t// Force parameter evaluation\r\n\t\t\t\t\t\t\tExParValue sxv = sx.getValue().getValue();\r\n\t\t\t\t\t\t\t// t.append(sx.getString());\r\n\t\t\t\t\t\t\t// If this is a string then remove the quotes\r\n\t\t\t\t\t\t\tString ss = sxv.toFormattedString(fmt);\r\n\t\t\t\t\t\t\t// System.out.println(\"ExPar.substitution() Value = \"\r\n\t\t\t\t\t\t\t// + ss);\r\n\t\t\t\t\t\t\tif (ss.startsWith(\"\\\"\") && (ss.endsWith(\"\\\"\")))\r\n\t\t\t\t\t\t\t\tss = StringExt.unquote(ss);\r\n\t\t\t\t\t\t\tt.append(ss);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tt.append(s.substring(i1, i2 + 1));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// System.out.println(\" Buffer = \" + t);\r\n\t\t\t\t\t\ti0 = i2 + 1;\r\n\t\t\t\t\t\tfinished = (i0 >= s.length());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn (t.toString());\r\n\t\t}\r\n\t}", "String getPlaceholder();", "public void test() {\r\n PropertiesSubstitutor ps = new PropertiesSubstitutor(MockParametersCallbacks.NAME);\r\n\r\n char[] fillC = new char[1000];\r\n Arrays.fill(fillC, '-');\r\n String fill = new String(fillC);\r\n\r\n String line = \"Text ${subst1} $subst2 \" + fill + \":$end //\";\r\n String exp = \"Text subst1 subst2 \" + fill + \":end //\";\r\n\r\n for (int i = 0; i < 100000; i++) {\r\n String s = ps.substitute(line);\r\n assertEquals(exp, s);\r\n }\r\n }", "@Test\n public void testSubstitute() {\n System.out.println(\"substitute\");\n StringBuilder sb = new StringBuilder();\n String tag = \"__TAG__\";\n String content = \"aa __TAG__ cc\";\n boolean expResult = false;\n boolean result = ConnectionManager.substitute(sb, tag, content);\n assertEquals(expResult, result);\n }", "public Expression substitute(String var, Expression replacement) {\n\treturn \n\t new UnaryPrimitiveApplication(operator, \n\t\t\t\t\t argument.substitute(var, \n\t\t\t\t\t\t\t replacement));\n }", "@Override\n public String visit(PatternExpr n, Object arg) {\n return null;\n }", "String getReplaced();", "public void addSubstitute(String match, String replace) {\n/* 206 */ if (!this.substitutes.containsKey(match))\n/* */ {\n/* 208 */ this.substitutes.put(match, new ArrayList<String>());\n/* */ }\n/* 210 */ ((List<String>)this.substitutes.get(match)).add(replace);\n/* */ }", "boolean hasReplace();", "@Override\n\tpublic void visit(RegExpMatchOperator arg0) {\n\t\t\n\t}", "default boolean isSpecial() { return false; }", "public final void setSup(java.lang.String sup)\n\t{\n\t\tsetSup(getContext(), sup);\n\t}", "private String getSubstitute(String label) {\n\n\t\tassert !compendium_.getIsInvivo();\n\t\tint index = grn_.getIndexOfNode(label);\n\t\t\n\t\t// If the gene is not part of the compendium or is not a TF, randomly choose a TF \n\t\tString substitute = label;\n\t\t\n\t\tif ((index == -1) || !grn_.getGene(index).getIsTf()) {\n\t\t\tLinkedHashMap<String, String> substitutionLookup = ((CompendiumInsilico) compendium_).getSubstitutions();\n\t\t\tsubstitute = substitutionLookup.get(label);\n\t\t\t\n\t\t\tif (substitute == null) {\n\t\t\t\tindex = grn_.getRandomTf();\n\t\t\t\tsubstitute = grn_.getGene(index).getLabel();\n\t\t\t\tsubstitutionLookup.put(label, substitute);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn substitute;\n\t}", "@Override\n\tPieD substFish(SubstV subFn,Object n, Object o) {\n\t\treturn subFn.forBot(n, o);\n\t}", "public String onPlaceholderReplace(PlaceholderReplaceEvent event);", "void onChange_placeholder()\n/* 53: */ {\n/* 54: 89 */ onChange_placeholder_xjal(this.placeholder);\n/* 55: */ }", "public void replaceCurrentInterpolationTerm(String replacement) {\n\t\tMessageInterpolationToken token = new MessageInterpolationToken( replacement );\n\t\ttoken.terminate();\n\t\ttokenList.set( currentPosition - 1, token );\n\t}", "@SuppressWarnings(\"java:S1172\")\n\tprivate NativeInterpolator(String from, String to, String factor, String evalString) {\n\t\t// do nothing\n\t}", "public String replaceFrom(CharSequence sequence, CharSequence replacement) {\n/* 150 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public static void notAlias(Object a, Object b) {\n\t}", "public native final String SRC_REPLACE() /*-{\n\t\treturn this.SRC_REPLACE;\n\t}-*/;", "public static void mayAlias(Object a, Object b) {\n\t}", "@Override\n\tPieD substFish(SubstV subFn,Object n, Object o) {\n\t\treturn subFn.forTop(t, r, n, o);\n\t}", "@Override\n\tpublic void suggestExchange() {\n\t\t\n\t}", "@Nullable\n protected abstract T substituteDefault(@Nullable T value);", "public static String substituteAll(String s, String o, String n) {\n\t\tif (s == null)\n\t\t\treturn null;\n\t\twhile (s.indexOf(o) != -1)\n\t\t\ts = substituteOne(s, o, n);\n\t\treturn s;\n\t}", "public boolean useRegisteredSuffixPatternMatch()\n/* */ {\n/* 610 */ return this.registeredSuffixPatternMatch;\n/* */ }", "@Override\n\tpublic String matchCommand() {\n\t\treturn null;\n\t}", "private void addSubstitution(Map<String, String> substitutionMap, String find, String replace)\n {\n if (find != null && replace != null)\n {\n substitutionMap.put(find.toUpperCase(), replace);\n } \n }", "private List<String> getSubstitutes(String postScriptName) {\n/* 218 */ List<String> subs = this.substitutes.get(postScriptName.replaceAll(\" \", \"\"));\n/* 219 */ if (subs != null)\n/* */ {\n/* 221 */ return subs;\n/* */ }\n/* */ \n/* */ \n/* 225 */ return Collections.emptyList();\n/* */ }", "public String applyInputSubstitutions(String input)\n {\n return Substituter.applySubstitutions(this.inputSubstitutions, input);\n }", "@Override\n public String replace(String s)\n {\n if (this.propertyName.equals(s))\n {\n if (this.parentContext != null)\n {\n return this.parentContext.findProperty(s);\n }\n\n // Property is referencing equally named property from higher context\n // but there is no higher context\n return s;\n }\n\n // Property is referencing NOT equally named property from its context or higher context\n return this.context.findProperty(s);\n }", "@Override\n public String visit(WildcardType n, Object arg) {\n return null;\n }", "default HtmlFormatter replace(Pattern pattern, String replacement) {\n return andThen(s -> pattern.matcher(s).replaceAll(replacement));\n }", "@Override\r\n public String fix(String fixName, PageAnalysis analysis, MWPane textPane) {\r\n return fixUsingAutomaticReplacement(analysis);\r\n }", "@Override\n public Expression substitute(String id, Expression e) {\n return new Or(this.e1.substitute(id, e), this.e2.substitute(id, e));\n }", "public void setReplacement(String pReplacement) {\n replacement = pReplacement;\n }", "@Override\n public void highlightPattern(Optional<Pattern> newPattern) {\n update();\n }", "private List<String> copySubstitutes(String postScriptName) {\n/* 195 */ return new ArrayList<String>(this.substitutes.get(postScriptName));\n/* */ }", "public String getJustOverwriteGameTemplate() {\r\n\t\treturn \"%1$2s\";\r\n\t}", "private static String replaceAll(Matcher matcher, String rep) {\n try {\n StringBuffer sb = null ; // Delay until needed\n while(matcher.find()) {\n if ( sb == null )\n sb = new StringBuffer() ;\n else {\n // Do one match of zerolength string otherwise filter out.\n if (matcher.start() == matcher.end() )\n continue ;\n }\n matcher.appendReplacement(sb, rep);\n }\n if ( sb == null )\n return null ;\n matcher.appendTail(sb);\n return sb.toString();\n } catch (IndexOutOfBoundsException ex) {\n throw new ExprEvalException(\"IndexOutOfBounds\", ex) ;\n }\n }", "public void setRegisteredSuffixPatternMatch(boolean registeredSuffixPatternMatch)\n/* */ {\n/* 601 */ this.registeredSuffixPatternMatch = registeredSuffixPatternMatch;\n/* 602 */ this.suffixPatternMatch = ((registeredSuffixPatternMatch) || (this.suffixPatternMatch));\n/* */ }", "@Override\r\n protected String internalAutomaticFix(PageAnalysis analysis) {\r\n return fixUsingAutomaticReplacement(analysis);\r\n }", "@Override\n public String visit(SuperExpr n, Object arg) {\n return null;\n }", "private void superSuffix(Operation base, Scope scope, Vector queue)\r\n {\r\n if (nextSymbol == Keyword.LPARSY)\r\n base.left.left = arguments(scope, null, queue);\r\n else\r\n {\r\n matchKeyword(Keyword.DOTSY);\r\n\r\n base = base.right = new Operation();\r\n base.left = new Operation();\r\n base.left.name = nextToken;\r\n matchKeyword(Keyword.IDENTSY);\r\n\r\n base.left.left = argumentsOpt(scope, null, queue);\r\n }\r\n }", "@Override\n public void setTplPath(String arg0) {\n\n }", "String resolve(String placeholder, AddressTemplate template);", "private AliasAction() {\n\n\t}", "public String expand(String param);", "public void o_() {}", "void applyLocalizedPattern(String pattern) {\n applyPattern(pattern, true);\n }", "public static String substituteOne(String s, String o, String n) {\n\t\tif (s == null)\n\t\t\treturn null;\n\t\tint begin = s.indexOf(o);\n\t\tif (begin == -1)\n\t\t\treturn s;\n\t\tint end = begin + o.length();\n\t\treturn (new StringBuffer(s)).replace(begin, end, n).toString();\n\t}", "@Override\n protected Object doSetInterpolationHint(GGraphics2D g3,\n boolean needsInterpolationRenderingHint) {\n\t return null;\n }", "public abstract String resolve();", "@Test\n\t\tpublic void applyOnceHyp() {\n\t\t\tassertSuccess(\" ;H; ;S; x⊆ℤ |- ⊥\", ri(\"\", empty));\n\t\t}", "public void markOverloadStartSentReplace() throws JNCException {\n markLeafReplace(\"overloadStartSent\");\n }", "public static String variableSubstitution(String target, String prefix, String suffix,\n Function<String, Optional<CharSequence>> replacements) {\n if (target.contains(prefix)) {\n StringBuilder result = null;\n int ix = target.indexOf(\"${\");\n int lastEnd = 0;\n while (ix >= 0 && ix < target.length() - prefix.length()) {\n int endIx = target.indexOf(suffix, ix + prefix.length());\n if (endIx < ix) {\n break;\n }\n String toResolve = target.substring(ix + prefix.length(), endIx);\n Optional<CharSequence> maybeResolved = replacements.apply(toResolve);\n if (maybeResolved.isPresent()) {\n if (result == null) {\n result = new StringBuilder();\n }\n result.append(target.substring(lastEnd, ix));\n result.append(maybeResolved.get());\n }\n lastEnd = endIx + 1;\n ix = target.indexOf(prefix, endIx);\n }\n if (result != null) {\n if (lastEnd < target.length() - 1) {\n result.append(target.substring(lastEnd));\n }\n return result.toString();\n }\n }\n return target;\n }", "public interface VariableExpander {\n /**\n * Return the input string with any variables replaced by their\n * corresponding value. If there are no variables in the string,\n * then the input parameter is returned unaltered.\n */\n public String expand(String param);\n }", "private static int coutSubst(char c1, char c2)\n {\n if (c1 == c2) return 0;\n return 1;\n }", "@Override\n\tpublic String strreplace(String str, int start, int end, String with) {\n\t\treturn null;\n\t}", "@Test\n\tpublic void testInterpolationSearch() {\n\t}", "public native final HistoryClass SRC_REPLACE(String val) /*-{\nthis.SRC_REPLACE = val; \nreturn this; \n}-*/;", "@Override\n public String visit(StringLiteralExpr n, Object arg) {\n return null;\n }", "public T caseConcatenation(Concatenation object)\n {\n return null;\n }", "public interface StringUtil$StringProcessor {\n String m3918a(Object obj);\n}", "public void applySubstitutions() throws Exception {\n\t\tStringBuffer sql = new StringBuffer();\n\t\t\n\t\tPattern p = Pattern.compile(Pattern.quote(LM_PARAM_PREFIX) + \"<([^>]+)>\");\n\t\tMatcher m = p.matcher(sqlText);\n\t\t\n\t\twhile(m.find()) {\n\t\t\tlog.debug(\"matcher: \"+m.toString());\n\t\t\tlog.debug(\"SQL Subst: \"+m.group(1)+\" --> \" + subs.get(m.group(1)));\n\t\t\t\n\t\t\tm.appendReplacement(sql, subs.get(m.group(1)));\n\t\t}\n\t\tm.appendTail(sql);\n\t\tlog.debug(\"Expanded SQL: \"+ sql.toString());\n\t\tsqlText = sql.toString();\n\t}", "public interface BiGULReplace extends BiGULStatement\n{\n}", "public static void main(String[] args) {\n String one= \"semiha\";\n String two= \"h\";\n if(one.contains(two)){\n one=one.replaceAll(two, \"[\"+two+\"]\");\n }else{\n one=\"[\"+one+\"]\";\n }\n\n }", "public int getVarConvIfNotAsterisk()\n {\n return getDefaultVarConv();\n }", "public boolean useSuffixPatternMatch()\n/* */ {\n/* 590 */ return this.suffixPatternMatch;\n/* */ }", "public String replace(String input);", "@Override\n public boolean visit(JsPrefixOperation x, JsContext<JsExpression> ctx) {\n return !(x.getArg() instanceof JsStringLiteral);\n }", "private void setThis(RegularMethodInvocation mi, Element replacee, Stack<Variable> variables) throws LookupException {\n NormalMethod method = mi.getElement();\n Type type = method.nearestAncestor(Type.class);\n replacee.replaceWith(eFactory().createNeioNameExpression(getPrefix(type, variables)));\n }", "BSubstitution createBSubstitution();", "@Override\n public String translate(Function function) {\n throw new UnsupportedOperationException();\n }", "public String aliases(String s){\n\t\treturn null;\n\t}", "public abstract void substitute(LambdaTerm N, Variable x);", "@Override\n public void replace(FilterBypass fb, int offset, int length, String text, AttributeSet attrs)\n throws BadLocationException {\n if (text.equals(last) && last.equals(\"^\")) {\n text = \"\";\n }\n last = text;\n super.replace(fb, offset, length, text, attrs);\n }", "public static final String alt(String text) {\n return \"%\" + text; /*I18nOK:LINE*/\n }", "private void fixStringConcats(Element element) throws LookupException {\n for (InfixOperatorInvocation ioi : element.descendants(InfixOperatorInvocation.class)) {\n // args == right\n // target == left\n Type rightType = ioi.getActualParameters().get(0).getType();\n if (ioi.name().equals(\"+\") &&\n subtypeOf(rightType, TEXT) | subtypeOf(rightType, STRING)) {\n if (ioi.getTarget() instanceof Literal) {\n Literal lit = (Literal) ioi.getTarget();\n if (lit.text().isEmpty()) {\n ioi.replaceWith(ioi.getActualParameters().get(0));\n }\n }\n }\n }\n }", "public T caseExpression_String(Expression_String object)\r\n {\r\n return null;\r\n }", "public String getReplacement() {\n return replacement;\n }", "private void processSpecialOption(ASpaceCopyUtil ascopy, String option) {\n if(option.contains(\"-refid_\")) {\n ascopy.setRefIdOption(option);\n } else if(option.contains(\"-term_\")) {\n ascopy.setTermTypeOption(option);\n }\n }", "protected Object needsAnAlias(Object original)\n {\n return JMXObjectNameFix.needsAnAlias(original);\n }", "@Override\n\tpublic Expression replacedVar(Map<Variable, Variable> replacement) {\n\t\tList<Tuple<String, Variable>> newVars = new ArrayList<Tuple<String, Variable>>(this.variables);\n\t\tnewVars.replaceAll(itm -> {\n\t\t\tif (itm.second() != null && replacement.containsKey(itm.second())) {\n\t\t\t\treturn new Tuple<String, Variable>(itm.first(), replacement.get(itm.second()));\n\t\t\t}\n\t\t\treturn itm;\n\t\t});\n\t\treturn new Expression(this.desc, newVars);\n\t}", "default void method3(String string)\n {\n System.out.println(string);\n }", "public static DefaultExpression default_() { throw Extensions.todo(); }", "public void setSuffixPatternMatch(boolean suffixPatternMatch)\n/* */ {\n/* 583 */ this.suffixPatternMatch = suffixPatternMatch;\n/* */ }", "@Override\n public String visit(SwitchExpr n, Object arg) {\n return null;\n }", "private void filterUniversalSelector(String part)\n\t{\n\t\t//first escape the selectorText (which will be used as a regular expression below)\n\t\tpart = part.replaceAll(\"\\\\*\", \"\\\\\\\\*\");\n\t\tString replacement = part.replaceAll(\"\\\\*\", \"\");\n\n\t\t//replace part of the original selector sequence, by a string without an asterisk\n\t\t_selectorText = _selectorText.replaceAll(part, replacement);\n\t}", "@Test\n public void test() {\n final Template reference = TemplateReference.instance(\"reference\", \"value\");\n Assert.assertEquals(reference.apply(s -> null), reference.toString());\n Assert.assertEquals(reference.apply(s -> \"symbol\"), \"symbol\");\n Assert.assertEquals(reference.apply(s -> \"value\".equals(s) ? \"symbol\" : \"failed\"), \"symbol\");\n Assert.assertEquals(reference.toString(), \"reference\");\n }", "public void renderBefore(String alias);", "public T caseTemplateParameterAssignment(TemplateParameterAssignment object)\n {\n return null;\n }", "public T caseStringLiteralExpCS(StringLiteralExpCS object) {\r\n return null;\r\n }", "@Override\n public String visit(LambdaExpr n, Object arg) {\n return null;\n }", "public void wild(){\n\t}" ]
[ "0.5935257", "0.5630753", "0.56200325", "0.5474814", "0.5432351", "0.5359774", "0.5335295", "0.5245522", "0.52439255", "0.524144", "0.5239102", "0.52238274", "0.5124494", "0.5094491", "0.5013053", "0.5005021", "0.4982827", "0.4975464", "0.496001", "0.49345657", "0.491442", "0.48861253", "0.48838603", "0.48812866", "0.48789993", "0.48777115", "0.48757428", "0.48601222", "0.4850384", "0.48455", "0.4843875", "0.48436013", "0.48426798", "0.4822359", "0.48138654", "0.4793945", "0.47923315", "0.47899893", "0.4767971", "0.47639376", "0.47631162", "0.47558972", "0.47378877", "0.47336656", "0.47237715", "0.4717701", "0.4716459", "0.47133604", "0.4713149", "0.47054842", "0.47041348", "0.47005633", "0.46997452", "0.4691812", "0.46723995", "0.4670015", "0.46495506", "0.46487942", "0.4630016", "0.46200675", "0.4617197", "0.4616793", "0.46151096", "0.46049598", "0.46037826", "0.46025982", "0.45974287", "0.45969832", "0.45924556", "0.45789406", "0.4563846", "0.45530203", "0.4551807", "0.45449188", "0.45420185", "0.45354745", "0.4529059", "0.45283154", "0.45254594", "0.4518917", "0.4518722", "0.4515692", "0.45064986", "0.45052892", "0.45047948", "0.45021433", "0.44969997", "0.44956163", "0.44919", "0.44909295", "0.44873944", "0.44859356", "0.4484929", "0.44837263", "0.4483673", "0.4481845", "0.44812503", "0.4466769", "0.44662377", "0.44660872", "0.44633964" ]
0.0
-1
Creates new form LogPrompt
public LogPrompt() { initComponents(); this.setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LogForm(String title) {\r\n\t\tsuper(title);\r\n\t\tthis.addCommand(clearLogCommand);\r\n\t\tthis.addCommand(previuosScreenCommand);\r\n\t\tthis.setCommandListener(new CommandHandler());\r\n\t}", "public CommandNew(LogsPanel logsWindow) {\n super(logsWindow);\n }", "public DialogPrompt(String title)\n {\n value = new PromptValueString(\"\",\"\");\n initUI(title,10);\n }", "@Override\r\n\t\tpublic void create() {\n\t\t\tsuper.create();\r\n\t\t\tsuper.getOKButton().setEnabled(false);\r\n\t\t\tsuper.setTitle(Messages.MoveUnitsWizardPage1_Topolog__2);\r\n\t\t\tsuper.setMessage(Messages.MoveUnitsWizardPage1_Select_a_name_source_folder_and_a_);\r\n\t\t\tsuper.getShell().setText(Messages.MoveUnitsWizardPage1_Topolog__2);\r\n\t\t}", "public ProgramGUI(String type, String logged) {\n\t\tProgramGUI.type = type;\n\t\tProgramGUI.logged = logged;\n\t\tsetTitle(\"Till Closed\");\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new GridLayout(1, 2));\n\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 10));\n\t\tpanel.add(new JLabel(\"Enter Command: \"));\n\t\tcmd = new JTextField();\n\t\tpanel.add(cmd);\n\t\tadd(panel, BorderLayout.NORTH);\n\t\tJPanel button = new JPanel();\n\t\tJButton ok = new JButton(\"Confirm Command\");\n\t\tJButton logout = new JButton(\"Log Out\");\n\t\tok.addActionListener(new OKListener());\n\t\tlogout.addActionListener(new LogoutListener());\n\t\tbutton.add(ok);\n\t\tbutton.add(logout);\n\t\tadd(button, BorderLayout.SOUTH);\n\t\tsetVisible(true);\n\t\t\n\t}", "public EditLogRecordDialog(java.awt.Frame parent, boolean modal, RecoveryLog log)\n {\n super(parent, modal);\n \n this.log = log;\n //this.transactions = log.getTransactions();\n this.items = log.getItems();\n this.parent = parent;\n\n initComponents();\n\n }", "protected abstract JTextComponent createPromptComponent();", "private void promptNewIndexFile()\n {\n JPanel message = new JPanel(new GridLayout(2, 1));\n JLabel messageLabel = new JLabel(\"Enter name for new index database\");\n JPanel defaultWrapper = new JPanel();\n JLabel defaultLabel = new JLabel(\"Make this the default index? \");\n JCheckBox makeDefault = new JCheckBox(); \n \n defaultWrapper.add(defaultLabel);\n defaultWrapper.add(makeDefault);\n message.add(defaultWrapper);\n message.add(messageLabel);\n \n String fileName = JOptionPane.showInputDialog(null, message, \"Create new index file\", JOptionPane.OK_CANCEL_OPTION);\n if(fileName != null && !fileName.equalsIgnoreCase(\"\"))\n {\n spider.setIndexer(Indexer.createIndexer(\"data/\" + fileName + \".db\"));\n searchEngine.setIndexer(spider.getIndexer());\n \n if(makeDefault.isSelected())\n {\n spider.getConfig().setDatabaseFile(\"data/\" + fileName + \".db\");\n spider.updateConfig();\n }\n }\n }", "private void aplicarTextPrompt() {\n TextPrompt textPrompt = new TextPrompt(\"jdbc:mysql://localhost:3306/mydb\", urlJTF);\n TextPrompt textPrompt1 = new TextPrompt(\"root\", usernameJTF);\n TextPrompt textPrompt2 = new TextPrompt(\"*********\", passwordJPF);\n }", "private void setPromptFields()\n\t{\n\t\tpromptFields = new JTextField[promptNum];\n\t\tfor(int i = 0; i < promptFields.length; i++)\n\t\t{\n\t\t\tpromptFields[i] = new JTextField(20);\n\t\t}\n\t}", "private void newLabButton(){\n NewLabNameTextfield.setText(\"\");\n NewLabDialog.setVisible(true);\n NewLabNameTextfield.requestFocusInWindow();\n }", "FORM createFORM();", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "public IOHandlerDialog()\n {\n panel = new JOptionPane();\n }", "public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }", "private void createAndShowDialog(final String message, final String title) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setMessage(message);\n builder.setTitle(title);\n builder.create().show();\n }", "private JPanel createPanel(String prompt) {\n\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\n\n\t\tlabel = new GDLabel(prompt);\n\t\tnumberInputField = new IntegerTextField(12);\n\t\tnumberInputField.addChangeListener(e -> updateOKButtonEnablement());\n\n\t\t// Actually assemble the parts into a status panel.\n\t\tpanel.add(label, BorderLayout.WEST);\n\t\tpanel.add(numberInputField.getComponent(), BorderLayout.CENTER);\n\n\t\treturn panel;\n\t}", "void add(String prompt, UIFormTest test);", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "private void createAndShowDialog(final String message, final String title) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity ());\n\n builder.setMessage(message);\n builder.setTitle(title);\n builder.create().show();\n }", "public Dialog createAddPersonDialog(String title, String msg) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getMyAcitivty());\n builder.setTitle(title);\n builder.setMessage(msg);\n\n // Use an EditText view to get user input.\n final EditText input = new EditText(getMyAcitivty());\n input.setText(\"\");\n builder.setView(input);\n\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int whichButton) {\n String value = input.getText().toString();\n Log.d(TAG, \"user input: \" + value);\n inputDialogResult = value;\n launchTrainingActivity();\n// AlertDialog dg =\n// SelectServerAlertDialog.createDialog(\n// getContext(),\n// \"Pick a Server\",\n// getAllIps(),\n// launchTrainingActivityAction,\n// cancelAction,\n// true);\n// dg.show();\n }\n });\n builder.setNegativeButton(\"Cancel\", SelectServerAlertDialog.cancelAction);\n return builder.create();\n }", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public CreateTremaDbDialogForm(AnActionEvent event) {\n this.event = event;\n this.windowTitle = \"New Trema XML database file\";\n init();\n }", "private void newTodo() {\r\n String myTodoName = \"Unknown\";\r\n for (Component component : panelSelectFile.getComponents()) {\r\n if (component instanceof JTextField) {\r\n if (component.getName().equals(\"Name\")) {\r\n JTextField textFieldName = (JTextField) component;\r\n myTodoName = textFieldName.getText();\r\n }\r\n }\r\n }\r\n if (myTodoName == null || myTodoName.isEmpty()) {\r\n JOptionPane.showMessageDialog(null, \"New Todo List name not entered!\");\r\n return;\r\n }\r\n myTodo = new MyTodoList(myTodoName);\r\n int reply = JOptionPane.showConfirmDialog(null, \"Do you want to save this todoList?\",\r\n \"Save New Todolist\", JOptionPane.YES_NO_OPTION);\r\n if (reply == JOptionPane.YES_OPTION) {\r\n saveTodo();\r\n }\r\n fileName = null;\r\n todoListGui();\r\n }", "void startTA() {\r\n ta_employeeAccount.appendText(\"Are you an employee with the shelter? \\n\" +\r\n \"enter your Last name and First Name \\n\" +\r\n \"Then enter a Password to create an account \\n\\n\" +\r\n \"P.S dont forget the employee code given \\n\" +\r\n \"by the shelter\");\r\n }", "public FieldPrompt(Shell parentShell, String title, String prompt, String initialValue) {\r\n\t\tthis(parentShell, title, prompt,initialValue, null);\r\n\t}", "public HomePage() {\n this.tp7 = new TextPrompt( \"I'm Looking To Borrow...\", jTextField1);\n this.tp7.setShow(TextPrompt.Show.FOCUS_LOST);\n initComponents();\n }", "private void generateScreen(String form,String text) throws IOException {\r\n \r\n MainScreenController.formName = text;\r\n Stage stage = new Stage();\r\n Parent root = FXMLLoader.load(getClass().getResource(form));\r\n stage.setScene(new Scene(root));\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.initOwner(partAddBtn.getScene().getWindow());\r\n stage.showAndWait();\r\n \r\n }", "@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}", "private void genLoginGui(){\n loginFrame = new JFrame(\"Log in\");\n\n // login panel, inputs name\n loginPanel = new JPanel();\n loginPanel.setLayout(new FlowLayout());\n nameLabel = new JLabel(\"Name\");\n nameTextFiled = new JTextField();\n nameTextFiled.setPreferredSize(new Dimension(100, 20));\n nameTextFiled.addActionListener(clientAction);\n nameTextFiled.setActionCommand(\"ENTERROOM\");\n\n btnEnterRoom = new JButton(\"Enter Room\");\n btnEnterRoom.addActionListener(clientAction);\n btnEnterRoom.setActionCommand(\"ENTERROOM\");\n\n loginPanel.add(nameLabel);\n loginPanel.add(nameTextFiled);\n loginPanel.add(btnEnterRoom);\n\n loginFrame.add(loginPanel, BorderLayout.CENTER);\n\n loginFrame.setSize(700, 500);\n loginFrame.setLocation(0, 200);\n loginFrame.add(loginPanel);\n loginFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n loginFrame.setVisible(true);\n }", "public void input_details_log()\r\n {\r\n System.out.print(\"\\n Enter your email id: \");\r\n Email=sc.nextLine();\r\n\r\n System.out.print(\" Enter your password: \");\r\n check_passwrd=sc.nextLine();\r\n }", "public String printNewUsernamePrompt() {\n return \"Please enter new username: \";\n }", "public AuditFunctionForm() {\n initComponents();\n init();\n }", "public LoggingPanel() {\n initComponents();\n\n }", "public String printNewEmailPrompt() {\n return \"Please enter new email: \";\n }", "private void newDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.addmark));\n\t\tfinal EditText input = new EditText(this);\n\t\tinput.setHint(getString(R.string.pleasemark));\n\t\tbuilder.setView(input);\n\t\tbuilder.setPositiveButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tif (input.getText().toString().trim().length() > 0) {\n\t\t\t\t\t\t\taddTag(input.getText().toString());\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.successaddmark),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.pleasemark),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tnewDialog();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.setNegativeButton(getString(R.string.no),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}", "private void showInputDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"App info\");\n builder.setMessage(message);\n builder.setPositiveButton(\" Done \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n builder.show();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0){\n\t\t String username = userLogInput.getText();\n\t\t String password = passLogInput.getText();\n\t\t if (username.contains(\"\\n\")){\n\t\t\tlogMessage.setText(\"Messages: username cannot contain the new line character.\");\n\t\t\tpanelLog.add(logMessage);\n\t\t\treturn;\n\t\t }\n\t\t for (int i = 0; i < username.length(); i++){\n\t\t\tif (username.charAt(i) == 44){\n\t\t\t logMessage.setText(\"Messages: username cannot contain the comma character.\");\n\t\t\t panelLog.add(logMessage);\n\t\t\t return;\n\t\t\t}\n\t\t }\n\t\t if (password.contains(\"\\n\")){\n\t\t\tlogMessage.setText(\"Messages: password cannot contain the new line character.\");\n\t\t\tpanelLog.add(logMessage);\n\t\t\treturn;\n\t\t }\n\t\t for (int i = 0; i < password.length(); i++){\n\t\t\tif (password.charAt(i) == 44){\n\t\t\t logMessage.setText(\"Messages: password cannot contain the comma character.\");\n\t\t\t panelLog.add(logMessage);\n\t\t\t return;\n\t\t\t}\n\t\t }\n\t\t /**int i = 0;\n\t\t String password = \"\";\n\t\t while(i < passLogInput.length){\n\t\t\tpassword += passLogInput[i];\n\t\t\t}*/\n\t\t /**if (username.length() == 0){\n\t\t\tlogMessage.setText(\"Input username\");\n\t\t }\n\t\t if (password.length() == 0){\n\t\t\tlogMessage.setText(\"Input password\");\n\t\t\t}*/\n\t\t \n\t\t Login backend = new Login(username, password);\n\t\t String results = backend.readFile(\"Example.csv\");\n\n\t\t //Username and password match those in Example.csv\n\t\t if (results.equals(\"Success\")){\n\t\t\tlogMessage.setText(\"Messages: Success!\");\n\t\t\tpanelLog.add(logMessage);\n\t\t\tdispose();\n\t\t\t//new LoginGUI();\n\t\t\t//new LoginGUI();\n\t\t\t//new LoginGUI();\n\n\t\t\tnew GUI(\"Example.csv\", username);\n\t\t }\n\n\t\t //Username or password do not match those in Example.csv\n\t\t else if (results.equals(\"Bad Pass\")){\n\t\t\tlogMessage.setText(\"Messages: The password inputted does not match this username.\");\n\t\t\tpanelLog.add(logMessage);\n\t\t }\n\t\t else if (results.equals(\"Bad User\")){\n\t\t\tlogMessage.setText(\"Messages: There is no such user.\");\n\t\t\tpanelLog.add(logMessage);\n\n\t\t }\n\n\t\t //No username or password inputted\n\t\t else if (results.equals(\"Empty User\")){\n\t\t\tlogMessage.setText(\"Messages: Input your username.\");\n\t\t\tpanelLog.add(logMessage);\n\t\t }\n\t\t else if (results.equals(\"Empty Pass\")){\n\t\t\tlogMessage.setText(\"Messages: Input your password.\");\n\t\t\tpanelLog.add(logMessage);\n\t\t }\n\t\t else{\n\t\t\tlogMessage.setText(\"Messages: Error. Please input your username and password.\");\n\t\t\tpanelLog.add(logMessage);\n\t\t }\n\t\t /**String apple = userLogInput.getText();\n\t\t userSignInput.setText(apple);\n\t\t dispose();//this should close the window, but that's a minor technicality\n\t\t new LoginGUI();//this shoudl actually be nwhatever Janice chooses to be her main GUI.*/\n\n\t\t}", "private void buildTransactionLogPane() // buildTransactionLogPane method start\n\t{\n\t\t// creating object\n\t\tlogOutput = new JTextArea();\n\t\t\n\t\t// object settings\n\t\tlogOutput.setText(log.logReport());\n\t\tlogOutput.setEditable(false);\n\t\tlogOutput.setFont(font);\n\t\tlogOutput.setRows(20);\n\t\t\n\t\t// adding object and scroll bar to panel\n\t\ttransactionLogPane.add(logOutput);\n\t\ttransactionLogPane.add(new JScrollPane(logOutput));\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(410, 210, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setBounds(262, 83, 86, 20);\r\n\t\tframe.getContentPane().add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\tJLabel lbl1 = new JLabel(\"UserName\");\r\n\t\tlbl1.setBounds(103, 86, 60, 14);\r\n\t\tframe.getContentPane().add(lbl1);\r\n\t\tJLabel err = new JLabel(\"\");\r\n\t\terr.setBounds(71, 23, 277, 14);\r\n\t\tframe.getContentPane().add(err);\r\n\t\t\r\n\t\tJLabel lNewLabel_1 = new JLabel(\"Password\");\r\n\t\tlNewLabel_1.setBounds(103, 139, 92, 14);\r\n\t\tframe.getContentPane().add(lNewLabel_1);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Login\");\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tString uname = textField.getText();\r\n\t\t\t\t\tString password = new String(passwordField.getPassword());\r\n\t\t\t\t\tint num = ConnectDB.Login(uname,password);\r\n\t\t\t\t\r\n\t\t\t\tif(num==0)\r\n\t\t\t\t{\r\n\t\t\t\t\tDialogMessage.showInfoDialog(\"Employee Login\");\r\n\t\t\t\t\tMenu m = new Menu();\r\n\t\t\t\t\tm.Newscreen();\r\n\t\t\t\t\tframe.setVisible(false);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\telse if(num==2)\r\n\t\t\t\t{\r\n\t\t\t\t\tDialogMessage.showInfoDialog(\"Employee Login\");\r\n\t\t\t\t\tMenu m = new Menu();\r\n\t\t\t\t\tm.Newscreen();\r\n\t\t\t\t\tframe.setVisible(false);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tDialogMessage.showWarningDialog(\"ERROR\");\r\n\t\t\t\t}\r\n\t\t\t\t} catch (SQLException e2) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t} catch (NoSuchAlgorithmException 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\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(106, 196, 89, 23);\r\n\t\tframe.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\tJButton btnNewButton_1 = new JButton(\"Exit\");\r\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_1.setBounds(262, 196, 89, 23);\r\n\t\tframe.getContentPane().add(btnNewButton_1);\r\n\t\t\r\n\t\tpasswordField = new JPasswordField();\r\n\t\tpasswordField.setBounds(262, 136, 86, 20);\r\n\t\tframe.getContentPane().add(passwordField);\r\n\t\t\r\n\t\r\n\t}", "private void initiateAccountPrintEnter(JFrame frame, JTextField account) {\r\n JButton enter = new JButton(\"Confirm\");\r\n new Confirm(enter);\r\n// enter.setPreferredSize(new Dimension(100, 100));\r\n// enter.setFont(new Font(\"Arial\", Font.PLAIN, 20));\r\n enter.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent actionEvent) {\r\n try {\r\n displayMessage(printLeagueOfLegendsAccountDetails(selectLeagueOfLegendsAccount(account.getText())));\r\n } catch (Exception e) {\r\n displayMessage(\"Account not printed, invalid input.\");\r\n }\r\n frame.setVisible(false);\r\n }\r\n });\r\n frame.add(enter);\r\n }", "private void createFormCalls(){\n\t\t\tJFrame error = new JFrame();\n\t\t\ttry {\n\t\t\t\tcreateForm();\n\t\t\t} catch (IOException e) {\n\t\t\t\tJOptionPane.showMessageDialog(error, \"An error occured\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tcreateFormTwo();\n\t\t\t} catch (IOException e) {\n\t\t\t\tJOptionPane.showMessageDialog(error, \"An error occured\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tcreateFormThree();\n\t\t\t} catch (IOException e) {\n\t\t\t\tJOptionPane.showMessageDialog(error, \"An error occured\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tcreateFormMars();\n\t\t\t} catch (IOException e) {\n\t\t\t\tJOptionPane.showMessageDialog(error, \"An error occured\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}", "protected abstract void fillPromptText();", "public void newTask() {\r\n\r\n todoTaskGui(\"Create\", null);\r\n }", "public void buildAndShowMenuForm() {\n SimpleForm.Builder builder =\n SimpleForm.builder()\n .translator(MinecraftLocale::getLocaleString, session.locale())\n .title(\"gui.advancements\");\n\n List<String> rootAdvancementIds = new ArrayList<>();\n for (Map.Entry<String, GeyserAdvancement> advancement : storedAdvancements.entrySet()) {\n if (advancement.getValue().getParentId() == null) { // No parent means this is a root advancement\n builder.button(MessageTranslator.convertMessage(advancement.getValue().getDisplayData().getTitle(), session.locale()));\n rootAdvancementIds.add(advancement.getKey());\n }\n }\n\n if (rootAdvancementIds.isEmpty()) {\n builder.content(\"advancements.empty\");\n }\n\n builder.validResultHandler((response) -> {\n String id = rootAdvancementIds.get(response.clickedButtonId());\n if (!id.equals(\"\")) {\n if (id.equals(currentAdvancementCategoryId)) {\n // The server thinks we are already on this tab\n buildAndShowListForm();\n } else {\n // Send a packet indicating that we intend to open this particular advancement window\n ServerboundSeenAdvancementsPacket packet = new ServerboundSeenAdvancementsPacket(id);\n session.sendDownstreamPacket(packet);\n // Wait for a response there\n }\n }\n });\n\n session.sendForm(builder);\n }", "@Override protected void cadastroAction() {\n try {\n // JOptionPane.showMessageDialog(this, codigoTxtField.getText() +\n // descricaoTextArea.getText() + capacidadeTxtField.getText(),\n // \"teste\", JOptionPane.INFORMATION_MESSAGE, null);\n MaintainRoom.getInstance().insertRooms(codigoTxtField.getText(), descricaoTextArea.getText(), capacidadeTxtField.getText());\n\n JOptionPane.showMessageDialog(this, \"Sala Cadastrada com sucesso\", \"Sucesso\", JOptionPane.INFORMATION_MESSAGE, null);\n this.setVisible(false);\n\n } catch (PatrimonyException ex) {\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"Erro\", JOptionPane.ERROR_MESSAGE, null);\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(this, ex.getSQLState() + \"\\n\" + ex.getMessage(), \"Erro\", JOptionPane.ERROR_MESSAGE, null);\n }\n\n }", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t\tMySQLConnect dal = new MySQLConnect();\r\n\t\t\ttry {\r\n\t\t\t\tString name;\r\n\t\t\t\tString date;\r\n\t\t\t\tString desc;\r\n\t\t\t\tString course;\r\n\t\t\t\tString type;\r\n\t\t\t\tString prior;\r\n\t\t\t\tScanner scan = new Scanner(System.in);\r\n\t\t\t\tSystem.out.println(\"Name: \");\r\n\t\t\t\tname = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Due Date(YYYY-MM-DD): \");\r\n\t\t\t\tdate = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Description: \");\r\n\t\t\t\tdesc = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Course: \");\r\n\t\t\t\tcourse = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Type: \");\r\n\t\t\t\ttype = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"Priority: \");\r\n\t\t\t\tprior = scan.nextLine();\r\n\t\t\t\tSystem.out.println(\"The following form was added to the database:\");\r\n\t\t\t\tString[] check = dal.addForm(name.toString(),\"admin\",date.toString(),desc.toString(),course.toString(),type.toString(),prior.toString());\r\n\t\t\t\tfor(int i=0; i<check.length; i++){\r\n\t\t\t\t\tSystem.out.print(check[i] + \" \");\r\n\t\t\t\t}\r\n\t\t\t\t//test confirmation that button works\r\n\t\t\t\ttextArea.append(\"Form Submitted!\\n\");\r\n\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}", "public void generatePrompt(View view) {\n String prompt;\n\n int i = generator.nextInt(prompts.size());\n prompt = prompts.get(i);\n\n displayPrompt(prompt);\n }", "public LMSHome() {\n setTitle(\"Home - [Logged In: \"+name+\"]\");\n setResizable(false);\n initComponents();\n date = getDate();\n jLabel5.setText(\"\"+acc_id);\n jLabel6.setText(name);\n jLabel13.setText(date);\n \n }", "public static TextField makeTextArea (String prompt) {\n TextField field = new TextField();\n field.setPromptText(prompt);\n return field;\n }", "public CreateAccountGUI() throws Exception{\n\r\n\t\tsuper();\r\n\r\n\t\tsetTitle(\"Create an account\");\r\n\t\tsetSize(600, 400);\r\n\t\tsetBackground(Color.CYAN);\r\n\t\tsetResizable(false);\r\n\t\tsetDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\r\n\t\tsetLocationRelativeTo(null);\r\n\r\n\t\tString[] labels = {\"Username: \", \"First Name: \", \"Surname: \",\r\n \"Mobile Number: \", \"Date Of Birth: \", \"City: \",\n \"Profile Pic (e.g. pic.png): \"};\n\t\tint input = labels.length;\n\n ArrayList<JTextField> fields = new ArrayList<JTextField>();\n\n\t\tJPanel create = new JPanel(new SpringLayout());\r\n\t\tfor (int i = 0; i < input; i++) {\r\n\t\t\tJLabel para = new JLabel(labels[i], JLabel.TRAILING);\r\n\t\t\tcreate.add(para);\r\n\t\t\tJTextField form = new JTextField(10);\n fields.add(form);\n\t\t\tpara.setLabelFor(form);\r\n\t\t\tcreate.add(form);\r\n\t\t\tsuper.add(create);\r\n\t\t}\r\n\t\tJButton fin = new JButton(\"Create\");\r\n\t\tfin.addActionListener(new ActionListener(){\r\n\t\t\tpublic void actionPerformed(ActionEvent sendMessage){\n try\n {\n String username = fields.get(0).getText();\n String firstname = fields.get(1).getText();\n String surname = fields.get(2).getText();\n String mobnum = fields.get(3).getText();\n String dob = fields.get(4).getText();\n String city = fields.get(5).getText();\n String imgpath = fields.get(6).getText();\n Account acc = new Account(username, firstname, surname,\n mobnum, dob, city, 0, null, imgpath);\n ReadWriteAccount rwa = new ReadWriteAccount(\"data.db\");\n rwa.write(acc);\n get_main().set_home(acc);\n dispose();\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n\t\t\t}\r\n\t\t});\r\n\t\tsuper.add(fin, BorderLayout.SOUTH);\r\n\t\tCreateAccountGUI.makeForm(create,\r\n\t\t\t\tinput, 2,\r\n\t\t\t\t6, 6,\r\n\t\t\t\t20, 20);\n\n setVisible(true);\n\r\n\t}", "public Logs() {\n initComponents();\n }", "public String printNewPasswordPrompt() {\n return \"Please enter new password: \";\n }", "public PLGSingleLogSetup(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "protected void do_mntmStartNewForm_actionPerformed(ActionEvent arg0) {\n\t\tthis.dispose();\n\t\tmain(null);\n\t}", "private void createFrame(){\n JPanel jPanelID = new JPanel();\n jPanelID.setLayout(new GridBagLayout());\n JLabel labelText = new JLabel(this.dialogName);\n labelText.setHorizontalAlignment(JLabel.CENTER);\n AddComponent.add(jPanelID,labelText, 0, 0, 2, 1);\n for (int field = 0; field < labelString.length; field++) {\n labelText = new JLabel(labelString[field]);\n AddComponent.add(jPanelID, labelText, 0, field + 1, 1, 1);\n AddComponent.add(jPanelID, fieldID.get(labelString[field]), 1, field + 1, 1, 1);\n }\n int offset = labelString.length + 1;\n labelText = new JLabel(DATE_OF_BIRTH);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, jDateChooser, 1, offset, 1, 1);\n offset++;\n labelText = new JLabel(GROUP);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, group, 1, offset, 1, 1);\n dialog.add(jPanelID, BorderLayout.NORTH);\n JButton okButton = new JButton(dialogName);\n okButton.addActionListener(actionEvent -> checkAndSave());\n dialog.add(okButton, BorderLayout.SOUTH);\n }", "private void create() {\n\t\tGridLayout grid = new GridLayout(3,2);\n\t\tthis.setLayout(grid);\n\t\tthis.setBackground(Color.WHITE);\n\t\t\n\t\tadd(new JLabel(\"Username/Library Card #:\", SwingConstants.LEFT), grid);\n\t\tusername.setPreferredSize(new Dimension(1, 12));\n\t\tadd(username,grid);\n\t\t\n\t\tadd(new JLabel(\"Password:\", SwingConstants.LEFT), grid);\n\t\tadd(password, grid);\n\t\t\n\t\tLoginAction();\n\t\tadd(submit, grid);\n\t}", "private void showOldSavedForm() {\n List distinctEntrys = BaseActivity.appDatabase.getAnswerDao().getDistinctEntries(userID, 0);\n List partiallyPushed = BaseActivity.appDatabase.getAnswerDao().getDistinctEntries(userID, 1);\n if (partiallyPushed.size() > 0) {\n distinctEntrys.addAll(partiallyPushed);\n }\n\n if (distinctEntrys != null && distinctEntrys.size() > 0) {\n title.setText(\"Saved forms\");\n LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n params.setMargins(20, 10, 20, 10);\n LinearLayout.LayoutParams paramsLeft = new LinearLayout.LayoutParams(0, LinearLayout.LayoutParams.FILL_PARENT, 6);\n LinearLayout.LayoutParams paramsRight = new LinearLayout.LayoutParams(0, LinearLayout.LayoutParams.WRAP_CONTENT, 2);\n LinearLayout.LayoutParams textViewParam = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, 0, 1);\n LinearLayout.LayoutParams imageViewParam = new LinearLayout.LayoutParams(0, LinearLayout.LayoutParams.WRAP_CONTENT, 1);\n AnswersSingleForm answersSingleForm;\n for (int entryID = 0; distinctEntrys.size() > entryID; entryID++) {\n answersSingleForm = (AnswersSingleForm) distinctEntrys.get(entryID);\n /*OUTER lINEAR LAYOUT*/\n final LinearLayout linLayoutSingleEntry = new LinearLayout(getActivity());\n linLayoutSingleEntry.setOrientation(LinearLayout.HORIZONTAL);\n linLayoutSingleEntry.setBackground(getResources().getDrawable(R.drawable.roundedcornertext));\n linLayoutSingleEntry.setPadding(20, 10, 20, 10);\n linLayoutSingleEntry.setLayoutParams(params);\n /*INNER LEFT SIDE FORM INFO*/\n LinearLayout left = new LinearLayout(getActivity());\n left.setOrientation(LinearLayout.VERTICAL);\n left.setLayoutParams(paramsLeft);\n /*SET FORM NAME*/\n TextView formName = new TextView(getActivity());\n formName.setLayoutParams(textViewParam);\n formName.setTextSize(1, 15);\n formName.setAllCaps(true);\n formName.setTypeface(null, Typeface.BOLD_ITALIC);\n String formNameText = BaseActivity.appDatabase.getDDE_FormsDao().getFormName(answersSingleForm.getFormId());\n if (formNameText == null) {\n formName.setText(\"Form deleted from server\");\n }\n else\n formName.setText(formNameText);\n /*SET FORM DATE*/\n TextView formDate = new TextView(getActivity());\n formDate.setLayoutParams(textViewParam);\n formDate.setText(answersSingleForm.getDate());\n left.addView(formName);\n left.addView(formDate);\n\n /*INNER RIGHT LINEAR LAYOUT*/\n final LinearLayout right = new LinearLayout(getActivity());\n right.setOrientation(LinearLayout.HORIZONTAL);\n right.setLayoutParams(paramsRight);\n right.setTag(answersSingleForm.getEntryId());\n /*SET EDIT FORM OPTION*/\n if (answersSingleForm.getPushStatus() == 0) {\n final ImageView editForm = new ImageView(getActivity());\n editForm.setImageResource(R.drawable.edit_green);\n editForm.setLayoutParams(imageViewParam);\n editForm.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(getActivity());\n alertDialogBuilder.setTitle(\"Alert\");\n alertDialogBuilder.setCancelable(false);\n alertDialogBuilder.setMessage(\"Do You Want To Edit Form ?\");\n\n alertDialogBuilder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n String tagEntyId = right.getTag().toString();\n Intent intent = new Intent(getActivity(), DisplayQuestions.class);\n intent.putExtra(\"formId\", BaseActivity.appDatabase.getAnswerDao().getFormIDByEntryID(tagEntyId));\n intent.putExtra(\"userId\", BaseActivity.appDatabase.getAnswerDao().getUserIDByEntryID(tagEntyId));\n intent.putExtra(\"entryId\", tagEntyId);\n intent.putExtra(\"formEdit\", \"true\");\n startActivity(intent);\n\n }\n });\n\n alertDialogBuilder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialogBuilder.show();\n }\n });\n /*SET DELETE FORM OPTION*/\n ImageView deleteForm = new ImageView(getActivity());\n deleteForm.setImageResource(R.drawable.delete_red);\n deleteForm.setLayoutParams(imageViewParam);\n deleteForm.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(getActivity());\n alertDialogBuilder.setTitle(\"Alert\");\n alertDialogBuilder.setCancelable(false);\n alertDialogBuilder.setMessage(\"Do You Want To Delete Form ?\");\n\n alertDialogBuilder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n BaseActivity.appDatabase.getAnswerDao().deleteAnswerEntryByEntryID(right.getTag().toString());\n Animation slide = AnimationUtils.loadAnimation(getActivity(), R.anim.slide);\n linLayoutSingleEntry.startAnimation(slide);\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n linLayoutSingleEntry.setVisibility(View.GONE);\n }\n }, 1000);\n }\n });\n\n alertDialogBuilder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialogBuilder.show();\n }\n });\n right.addView(editForm);\n right.addView(deleteForm);\n } else {\n TextView uploading = new TextView(getActivity());\n uploading.setText(\"In Uploading Queue\");\n uploading.setLayoutParams(imageViewParam);\n uploading.setTextSize(1, 20);\n uploading.setTypeface(null, Typeface.ITALIC);\n uploading.setTextColor(Color.parseColor(\"#FF5733\"));\n // right.setBackgroundColor(Color.parseColor(\"#DAF7A6\"));\n right.addView(uploading);\n }\n linLayoutSingleEntry.addView(left);\n linLayoutSingleEntry.addView(right);\n linearlayout.addView(linLayoutSingleEntry);\n }\n } else {\n title.setText(\"No saved forms\");\n }\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}", "private void usernameTakenDialog() {\n Dialog dialog = new Dialog(\"Username taken\", cloudSkin, \"dialog\") {\n public void result(Object obj) {\n System.out.println(\"result \" + obj);\n }\n };\n dialog.text(\"This username has already been taken, try a new one.\");\n dialog.button(\"OK\", true);\n dialog.show(stage);\n }", "public Add_Lecture_Form() {\n initComponents();\n \n this.setVisible(true);\n this.pack();\n this.setLocationRelativeTo(null);\n }", "private void sendMessageToPrompt(String txt){\n\t\tMessage msg = new Message();\n\t\tmsg.obj = \"UDPReceiver: \" + txt;\n\t\tthis.msgPromptHandler.sendMessage(msg);\n\t}", "private AlertDialog createDialog(){\n final LayoutInflater inflater = QuizViewActivity.this.getLayoutInflater();\n View v = inflater.inflate(R.layout.add_new_quiz, null);\n\n final EditText et = (v.findViewById(R.id.enter_new_name));\n Toolbar toolbar = v.findViewById(R.id.enter_new_name_toolbar);\n toolbar.setTitle(R.string.new_name_dialog);\n\n if(et.getText().toString().compareTo(\"\")==0){\n et.setError(\"Quiz name can't be empty or same as any other quiz!\");\n }//sets the warning for the edit text in case it's empty\n\n AlertDialog.Builder builder = new AlertDialog.Builder(QuizViewActivity.this);\n builder.setView(v)\n // Add action buttons\n .setPositiveButton(\"Done\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n //add a quiz.\n String name = et.getText().toString();\n try {\n if (quizManager.saveQuiz(new Quiz(name, Services.getQuizPersistence().incrementQuizID(), CurrentUser.getCurrentUser()))) {\n adapter.clear();\n adapter.addAll(quizManager.getQuizList());\n adapter.notifyDataSetChanged();//notify changes to the adapter\n et.getText().clear();\n Toast.makeText(QuizViewActivity.this, \"New Quiz Added. Click To Edit\", Toast.LENGTH_LONG).show();\n }\n }catch(InvalidQuizException e){\n createDialog().show();//show the new name dialog again until a valid name is enterer\n //or the dialog is canceled\n e.printStackTrace();\n }\n }\n })//set positive button to add the quiz\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });//set negative button to cancel\n return builder.create();\n }", "@Override\n\tprotected BaseProcesoForm devuelveFormProceso() throws Exception {\n\t\tProcesoBASLoggerForm objForm = new ProcesoBASLoggerForm();\n\t\treturn objForm;\n\t}", "public abstract void newPromptType(long ms, PromptType type);", "private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened\njam(); \nJOptionPane.showMessageDialog(rootPane, \"Welcome to REMINDER'S NOTE\");\n \n }", "public void setPrompt(Prompt prmpt) {\n this.prompt = prmpt;\n }", "public form_login(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n setLocationRelativeTo(null);\n log=new login();\n }", "public void startInfo() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Enter your name:\");\n\t\tString name = this.getInputString();\n\t\tSystem.out.println(\"Enter your mobile number:\");\n\t\tint number = this.getInputInteger();\n\t\tSystem.out.println(\"Enter your email:\");\n\t\tString email = this.getInputString();\n\t}", "private void basicInfoDialogPrompt() {\n if(!prefBool){\n BasicInfoDialog dialog = new BasicInfoDialog();\n dialog.show(getFragmentManager(), \"info_dialog_prompt\");\n }\n }", "private void setupMessagePanel() {\n\t\tJPanel messagePanel = new JPanel();\n\t\tthis.message = new JTextArea();\n\t\tthis.message.setText(\"Registration Phase Completed. \\n\\nClick on the Log Off button below to \\nreturn to the main menu\");\n\t\tthis.message.setEditable(false);\n\t\tthis.message.setColumns(20);\n\t\tthis.message.setLineWrap(true);\n\t\tmessagePanel.add(message);\n\t\tthis.add(messagePanel, BorderLayout.CENTER);\n\t}", "public AdminJP() {\n initComponents();\n aplicarTextPrompt();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public NewDialog() {\n\t\t\t// super((java.awt.Frame)null, \"New Document\");\n\t\t\tsuper(\"JFLAP 7.0\");\n\t\t\tgetContentPane().setLayout(new GridLayout(0, 1));\n\t\t\tinitMenu();\n\t\t\tinitComponents();\n\t\t\tsetResizable(false);\n\t\t\tpack();\n\t\t\tthis.setLocation(50, 50);\n\n\t\t\taddWindowListener(new WindowAdapter() {\n\t\t\t\t@Override\n\t\t\t\tpublic void windowClosing(final WindowEvent event) {\n\t\t\t\t\tif (Universe.numberOfFrames() > 0) {\n\t\t\t\t\t\tNewDialog.this.setVisible(false);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tQuitAction.beginQuit();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}", "public void createFrame() {\r\n System.out.println(\"Framing: Adding the log walls.\");\r\n }", "public FieldPrompt(Shell parentShell, String title, String prompt, String initialValue, ImageDescriptor dialogImageDescriptor) {\r\n\t\tsuper(parentShell);\r\n\t\tthis.title = title;\r\n\t\tthis.prompt = prompt;\r\n\t\tvalue = initialValue != null ? initialValue : \"\";\r\n\t\tif (dialogImageDescriptor != null) {\r\n\t\t\tdialogImage = dialogImageDescriptor.createImage();\r\n\t\t\tparentShell.addDisposeListener(new DisposeListener(){\r\n // Dispose of image\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void widgetDisposed(DisposeEvent e) {\r\n\t\t\t\t\tdispose();\r\n\t\t\t\t}});\r\n\t\t\tsetTitleImage(dialogImage);\r\n\t\t}\r\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJLabel lblLogin = new JLabel(\"Login:\");\r\n\t\tlblLogin.setBounds(89, 80, 61, 14);\r\n\t\tframe.getContentPane().add(lblLogin);\r\n\t\t\r\n\t\tJLabel lblSenha = new JLabel(\"Senha:\");\r\n\t\tlblSenha.setBounds(89, 123, 48, 14);\r\n\t\tframe.getContentPane().add(lblSenha);\r\n\t\t\r\n\t\tlogin = new JTextField();\r\n\t\tlogin.setBounds(232, 77, 96, 20);\r\n\t\tframe.getContentPane().add(login);\r\n\t\tlogin.setColumns(10);\r\n\t\t\r\n\t\tsenha = new JTextField();\r\n\t\tsenha.setBounds(232, 120, 96, 20);\r\n\t\tframe.getContentPane().add(senha);\r\n\t\tsenha.setColumns(10);\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Entrar\");\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tString l=login.getText();\r\n\t\t\t\tString s=senha.getText();\r\n\t\t\t\tif(l.equals(\"admin\") && s.equals(\"admin\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Acesso liberado\");\r\n\t\t\t\t Menu menu = new Menu();\r\n\t\t\t\t menu.setVisible(true);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Acesso negado\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(171, 192, 89, 23);\r\n\t\tframe.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\tJLabel lblLogin_1 = new JLabel(\"Login\");\r\n\t\tlblLogin_1.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblLogin_1.setBounds(192, 30, 48, 23);\r\n\t\tframe.getContentPane().add(lblLogin_1);\r\n\t}", "private void createAccountButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_createAccountButtonActionPerformed\n na.setVisible(true);\n boolean isLoggedInNew = uL.isLoggedIn();\n boolean isLoggedIn = na.isLoggedIn();\n if (isLoggedInNew || isLoggedIn) {\n dm.messageMustLogOut();\n na.dispose();\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n txtDate = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n txtName = new javax.swing.JTextField();\n btnCancel = new javax.swing.JButton();\n btnPost = new javax.swing.JButton();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n txtMessage = new javax.swing.JTextArea();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Create your entry\");\n\n txtDate.setEditable(false);\n txtDate.setBackground(new java.awt.Color(255, 255, 255));\n txtDate.setText(df.format(dateobj));\n txtDate.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n txtDateActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Today's Date: \");\n\n jLabel2.setText(\"What's your name: \");\n\n btnCancel.setText(\"Cancel\");\n btnCancel.setToolTipText(\"\");\n btnCancel.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n btnCancelActionPerformed(evt);\n }\n });\n\n btnPost.setText(\"Post to Book\");\n btnPost.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n btnPostActionPerformed(evt);\n }\n });\n\n jLabel3.setText(\"Enter your message:\");\n\n jLabel4.setText(\"Leave a message here for others to see!\");\n\n txtMessage.setColumns(20);\n txtMessage.setLineWrap(true);\n txtMessage.setRows(5);\n jScrollPane1.setViewportView(txtMessage);\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 .addComponent(jScrollPane1)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 24, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtDate, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnCancel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnPost))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel3))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1)\n .addComponent(jLabel4))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 172, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnCancel)\n .addComponent(btnPost))\n .addContainerGap())\n );\n\n pack();\n }", "public void createNewSoundBoard() {\n\n dialogCreateSoundBoard = new Dialog(this);\n dialogCreateSoundBoard.setContentView(R.layout.soundboard_create);\n dialogCreateSoundBoard.setTitle(\"Create board\");\n dialogCreateSoundBoard.setCancelable(true);\n\n\n sbName = (EditText) dialogCreateSoundBoard.findViewById(R.id.textfieldcreatesoundboardname);\n sbName.setHint(\"Name\");\n Button createOkButton = (Button) dialogCreateSoundBoard.findViewById(R.id.createSoundBoardButton);\n createOkButton.setOnClickListener(createSoundBoardListener);\n\n Button createCancelButton = (Button) dialogCreateSoundBoard.findViewById(R.id.cancelSoundBoardButton);\n createCancelButton.setOnClickListener(cancelButtonCreateSoundBoardListener);\n\n dialogCreateSoundBoard.show();\n }", "public void popupAdd() {\n builder = new AlertDialog.Builder(getView().getContext());\n View views = getLayoutInflater().inflate(R.layout.departmentpopup, (ViewGroup) null);\n DepartmentName = (EditText) views.findViewById(R.id.department_name);\n DepartmentId = (EditText) views.findViewById(R.id.department_id);\n pbar =views.findViewById(R.id.departmentProgress);\n Button button =views.findViewById(R.id.save_depart);\n saveButton = button;\n button.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n addDeparatments();\n }\n });\n builder.setView(views);\n AlertDialog create =builder.create();\n dialog = create;\n create.show();\n }", "public void onClick(DialogInterface dialog, int id) {\n promptName = (userInput.getText()).toString();\n if(promptName==null || promptName.equals(\"\"))\n {\n starterPrompt();\n }\n }", "public static void showPrompt() {\r\n \r\n System.out.print(\"> \");\r\n \r\n }", "private String promptLoadOrNew(){\r\n Object[] options = {\"Start A New Game!\", \"Load A Previous Game.\"};\r\n String result = (String) JOptionPane.showInputDialog(\r\n null,\r\n \"What would you like to do?\",\r\n \"Welcome!\",\r\n JOptionPane.PLAIN_MESSAGE,\r\n null,\r\n options,\r\n 1);\r\n return result;\r\n \r\n }", "public EditTokenDialog() {\r\n \t\tsuper(\"net/rptools/maptool/client/ui/forms/tokenPropertiesDialog.jfrm\");\r\n \r\n \t\tpanelInit();\r\n \t}", "private void setAddVisitDialogUI(Frame parent, Point loc) {\n dialog = new JDialog(parent);\n dialog.setLocation(loc.x + 80, loc.y + 80);\n panel = new JPanel();\n panel.setBackground(new Color(248, 248, 251));\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n panel.add(Box.createVerticalStrut(20));\n\n message = new JPanel();\n text = new JLabel(\"Add visit\");\n\n text.setFont(new Font(\"Nunito\", Font.PLAIN, 14));\n\n message.setBackground(null);\n message.add(text);\n panel.add(message);\n panel.add(Box.createVerticalStrut(20));\n }", "public void newFile() {\n\t\tString filename = \"untitled\";\n\t\tfilename = JOptionPane.showInputDialog(null,\n\t\t\t\t\"Enter the new file name\");\n\t\taddTab(filename+\".minl\");\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0){\n\t\t String username = userSignInput.getText();\n\t\t String password = passSignInput.getText();\n\t\t if (username.contains(\"\\n\")){\n\t\t\tsignMessage.setText(\"Messages: username cannot contain the new line character.\");\n\t\t\tpanelSign.add(signMessage);\n\t\t\treturn;\n\t\t }\n\t\t for (int i = 0; i < username.length(); i++){\n\t\t\tif (username.charAt(i) == 44){\n\t\t\t signMessage.setText(\"Messages: username cannot contain the comma character.\");\n\t\t\t panelSign.add(signMessage);\n\t\t\t return;\n\t\t\t}\n\t\t }\n\t\t if (password.contains(\"\\n\")){\n\t\t\tsignMessage.setText(\"Messages: password cannot contain the new line character.\");\n\t\t\tpanelSign.add(signMessage);\n\t\t\treturn;\n\t\t }\n\t\t for (int i = 0; i < password.length(); i++){\n\t\t\tif (password.charAt(i) == 44){\n\t\t\t signMessage.setText(\"Messages: password cannot contain the comma character.\");\n\t\t\t panelSign.add(signMessage);\n\t\t\t return;\n\t\t\t}\n\t\t }\n\t\t /**if (username.contains(\",\")){\n\t\t signMessage.setText(\"Messages: */\n\t\t CreateAcc create = new CreateAcc(username, password);\n\t\t String results = create.writeFile(\"Example.csv\");\n\n\t\t //Username is acceptable\n\t\t if (results.equals(\"Success\")){\n\t\t\tsignMessage.setText(\"Messages: Success!\");\n\t\t\tpanelSign.add(signMessage);\n\t\t\tdispose();\n\n\t\t\tnew LoginGUI();//temporary\n\t\t\t//new GUI(\"Example.csv\", username);\n\n\t\t\n\n\t\t }\n\n\t\t //No username or password inputted\n\t\t else if (results.equals(\"Empty User\")){\n\t\t\tsignMessage.setText(\"Messages: Input a username.\");\n\t\t\tpanelSign.add(signMessage);\n\t\t }\n\t\t else if (results.equals(\"Empty Pass\")){\n\t\t\tsignMessage.setText(\"Messages: Input a password.\");\n\t\t\tpanelSign.add(signMessage);\n\t\t }\n\n\t\t //Inputted username already in use\n\t\t else if (results.equals(\"User Used\")){\n\t\t\tsignMessage.setText(\"Messages: Sorry, that username is already in use.\");\n\t\t\tpanelSign.add(signMessage);\n\t\t }\n\t\t else{\n\t\t\tsignMessage.setText(\"Messages: Error. Please input a username and password.\");\n\t\t\tpanelSign.add(signMessage);\n\t\t }\n\t\t //cl.show(panelBoth, \"1\");\n\t\t //this.show(panelBoth, \"1\");\n\t\t}", "private void create_btnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_create_btnActionPerformed\n //loadDataFromFile(); ///do not use this call!!!\n boolean isLoggedInNew = na.isLoggedIn();\n boolean isLoggedIn = uL.isLoggedIn();\n if (!isLoggedIn && !isLoggedInNew) {\n JOptionPane.showMessageDialog(null, \"Error \", \"Please login or create a new account\", JOptionPane.ERROR_MESSAGE);\n } else {\n // error test used before form data cleared\n boolean caught = false;\n try {\n // isIncome --> true if radio selected\n boolean isIncome = income_Rad.isSelected();\n\n // dueDate --> converted from: Date => String value\n Date dateDue = dueDate_date.getDate();\n String dueDate = DateFormat.getDateInstance().format(dateDue);\n\n // title --> String var\n String title = ToFrom_Txt.getText();\n\n // amount --> cast to Double; round to 2 places\n double amountRaw = Double.parseDouble(Amount_Txt.getText());\n String rounded = String.format(\"%.2f\", amountRaw);\n double amount = Double.parseDouble(rounded);\n\n // amount converted to negative value in isIncome is false\n if (!isIncome == true) {\n amount = (abs(amount) * (-1));\n } else {\n amount = abs(amount);\n }\n // category --> cast to String value of of box selected\n String category = (String) category_comb.getSelectedItem();\n\n // freuency --> cast to String value of of box selected\n String frequency = (String) frequency_comb.getSelectedItem();\n\n // dateEnd --> converted from: Date => String value\n Date dateEnd = endBy_date.getDate();\n String endBy = DateFormat.getDateInstance().format(dateEnd);\n\n // Transaction id\n int id;\n getLastId();\n if (maxId == 0) {\n id = 1;\n } else {\n id = maxId + 1;\n }\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n if (!title.equals(\"\")) {\n model.addRow(new Object[]{ // add reminder object to table as row\n isIncome, dueDate, title, amount, category, frequency, endBy, id\n });\n } else {\n dm.messageFieldsIncomplete();\n }\n } catch (NullPointerException e) {\n dm.messageFieldsIncomplete();\n caught = true;\n } catch (NumberFormatException e) {\n dm.messageNumberFormat();\n caught = true;\n }\n // clear form afer Reminder is created sucsessfully\n if (!caught) {\n dm.messageReminderCreated();// user message\n clearReminderForm();// Method to clear form data\n saveDataToFile();// Save changes to file\n getSum(); // Update projected balance\n }\n }\n }", "public static AddNewScheduleDialog createInstance(int quantity){\n AddNewScheduleDialog frag = new AddNewScheduleDialog();\n frag.quantity = quantity;\n return frag;\n }", "public void prompt(String newType, String newTarget, String newPrompt)\n\t{\n\t\tpromptTarget = newTarget;\n\t\tpromptType = newType;\n\t\ttempPrompt = newPrompt;\n\t\tshowPrompt = true;\n\t}", "private void initiateAccountPrintFields(JFrame frame) {\r\n JLabel q5 = new JLabel(\"Print details for mainAccount or altAccount?\");\r\n new Label(q5);\r\n// q5.setPreferredSize(new Dimension(1000, 100));\r\n// q5.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(q5);\r\n\r\n JTextField account = new JTextField();\r\n new TextField(account);\r\n// account.setPreferredSize(new Dimension(1000, 100));\r\n// account.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(account);\r\n\r\n ImageIcon icon = new ImageIcon(\"./data/printicon.JPG\");\r\n JLabel label = new JLabel(icon);\r\n label.setPreferredSize(new Dimension(1000, 100));\r\n frame.add(label);\r\n\r\n initiateAccountPrintEnter(frame, account);\r\n }", "@Override\n\tpublic void actionPerformed(final ActionEvent event) {\n\t\tshowNew();\n\t}", "public Login() {\n initComponents();\n txtAccountStatus.setVisible(false); \n showDate(); // Class para sa Date\n showTime(); // Class para sa Time\n }", "private void createGame() {\n String[] options = { \"2\", \"3\", \"4\" };\n String result = (String) JOptionPane.showInputDialog(frame, \"Please enter the max player amount (must be between 2-4\", \"Create game\", JOptionPane.QUESTION_MESSAGE, null, options, options[2]);\n if (result == null) {\n System.out.println(\"[Client] Cancelled game creation\");\n } else {\n connectedServer.writeMessage(client.create(Integer.parseInt(result)));\n gameWindow();\n }\n }", "@Override\r\n\tprotected Control createDialogArea(Composite parent) {\r\n\t\tComposite container = (Composite) super.createDialogArea(parent);\r\n\t\tcontainer.setLayout(new FormLayout());\r\n\t\t\r\n\t\tLabel lblNewLabel = new Label(container, SWT.NONE);\r\n\t\tFormData fd_lblNewLabel = new FormData();\r\n\t\tlblNewLabel.setLayoutData(fd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"Username :\");\r\n\t\t\r\n\t\ttext = new Text(container, SWT.BORDER);\r\n\t\tfd_lblNewLabel.top = new FormAttachment(text, 3, SWT.TOP);\r\n\t\tfd_lblNewLabel.right = new FormAttachment(text, -30);\r\n\t\tFormData fd_text = new FormData();\r\n\t\tfd_text.top = new FormAttachment(0, 92);\r\n\t\tfd_text.right = new FormAttachment(100, -107);\r\n\t\ttext.setLayoutData(fd_text);\r\n\t\t\r\n\t\tLabel lblPassword = new Label(container, SWT.NONE);\r\n\t\tfd_lblNewLabel.bottom = new FormAttachment(lblPassword, -20);\r\n\t\tfd_lblNewLabel.left = new FormAttachment(0, 151);\r\n\t\tlblPassword.setText(\"Password :\");\r\n\t\tlblPassword.setAlignment(SWT.CENTER);\r\n\t\tFormData fd_lblPassword = new FormData();\r\n\t\tfd_lblPassword.left = new FormAttachment(lblNewLabel, 0, SWT.LEFT);\r\n\t\tfd_lblPassword.bottom = new FormAttachment(100, -75);\r\n\t\tlblPassword.setLayoutData(fd_lblPassword);\r\n\t\t\r\n\t\ttext_1 = new Text(container, SWT.BORDER);\r\n\t\tFormData fd_text_1 = new FormData();\r\n\t\tfd_text_1.top = new FormAttachment(text, 14);\r\n\t\tfd_text_1.left = new FormAttachment(text, 0, SWT.LEFT);\r\n\t\ttext_1.setLayoutData(fd_text_1);\r\n\t\t\r\n\t\tCLabel lblNewLabel_1 = new CLabel(container, SWT.NONE);\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(LoginDialog.class, \"/com/acme/rcp/app/logo.png\"));\r\n\t\tFormData fd_lblNewLabel_1 = new FormData();\r\n\t\tfd_lblNewLabel_1.bottom = new FormAttachment(text, -14);\r\n\t\tfd_lblNewLabel_1.right = new FormAttachment(100, -140);\r\n\t\tlblNewLabel_1.setLayoutData(fd_lblNewLabel_1);\r\n\t\tlblNewLabel_1.setText(\"\");\r\n\r\n\t\treturn container;\r\n\t}", "public AcideLogTab() {\r\n\r\n\t\t// Gets the file content\r\n\t\t_logFileContent = AcideFileManager.getInstance().load(LOG_FILE_PATH);\r\n\r\n\t\tif (_logFileContent != null) {\r\n\r\n\t\t\t// Creates the lexicon configuration\r\n\t\t\tAcideLexiconConfiguration lexiconConfiguration = new AcideLexiconConfiguration();\r\n\r\n\t\t\t// Loads the lexicon configuration by default\r\n\t\t\tlexiconConfiguration.load(AcideLexiconConfiguration.DEFAULT_PATH\r\n\t\t\t\t\t+ AcideLexiconConfiguration.DEFAULT_NAME);\r\n\r\n\t\t\t// Creates the current grammar configuration\r\n\t\t\tAcideGrammarConfiguration currentGrammarConfiguration = new AcideGrammarConfiguration();\r\n\r\n\t\t\t// Sets the current grammar configuration path\r\n\t\t\tcurrentGrammarConfiguration\r\n\t\t\t\t\t.setPath(AcideGrammarConfiguration.DEFAULT_FILE);\r\n\r\n\t\t\t// Creates the previous grammar configuration\r\n\t\t\tAcideGrammarConfiguration previousGrammarConfiguration = new AcideGrammarConfiguration();\r\n\r\n\t\t\t// Sets the previous grammar configuration path\r\n\t\t\tpreviousGrammarConfiguration\r\n\t\t\t\t\t.setPath(AcideGrammarConfiguration.DEFAULT_FILE);\r\n\r\n\t\t\t// Updates the tabbed pane in the file editor manager\r\n\t\t\tAcideMainWindow\r\n\t\t\t\t\t.getInstance()\r\n\t\t\t\t\t.getFileEditorManager()\r\n\t\t\t\t\t.updateTabbedPane(\"Log\", _logFileContent, false,\r\n\t\t\t\t\t\t\tAcideProjectFileType.NORMAL, 0, 0, 1,\r\n\t\t\t\t\t\t\tlexiconConfiguration, currentGrammarConfiguration,\r\n\t\t\t\t\t\t\tpreviousGrammarConfiguration);\r\n\t\t}\r\n\t}", "public ParkingTerminalGarageOwnerStartupWindow() {\n this.feeList = new Vector<>();\n this.outputList = new Vector<>();\n outputList.add(consoleO);\n outputList.add(JOptionPaneO);\n feeList.add(minMax);\n feeList.add(minNoMax);\n initComponents();\n\n }", "public ChangeLog() {\n initComponents();\n }" ]
[ "0.6570573", "0.5885266", "0.57411426", "0.57394403", "0.5733582", "0.56738573", "0.5666179", "0.55974907", "0.55902565", "0.5585869", "0.5509214", "0.54909456", "0.5473314", "0.5440148", "0.5435301", "0.543404", "0.5429923", "0.54196405", "0.5404032", "0.53981394", "0.53647256", "0.53281754", "0.5313292", "0.52946305", "0.5286", "0.5270345", "0.526895", "0.52672017", "0.5267074", "0.5263435", "0.5257722", "0.52391225", "0.52165157", "0.52066654", "0.518903", "0.5166305", "0.51583123", "0.51549125", "0.51468736", "0.5141069", "0.5139479", "0.5137839", "0.5133444", "0.51302785", "0.513005", "0.51289016", "0.5125989", "0.5102773", "0.5097327", "0.5082326", "0.50785804", "0.5076952", "0.5073542", "0.50673276", "0.5066487", "0.5065771", "0.5057837", "0.50569713", "0.5051392", "0.50495964", "0.5049481", "0.50466686", "0.5033603", "0.50318235", "0.5029903", "0.50293386", "0.5024405", "0.50201046", "0.50143826", "0.50054586", "0.50030804", "0.5002385", "0.5001862", "0.49971905", "0.4997064", "0.49941888", "0.49882907", "0.49776918", "0.49712986", "0.49694982", "0.49638802", "0.49573725", "0.49540484", "0.49536481", "0.49519384", "0.49505287", "0.4949191", "0.49477398", "0.49410516", "0.4939776", "0.49369547", "0.4935431", "0.49346805", "0.49319747", "0.49205083", "0.4919185", "0.49191526", "0.49150375", "0.49137637", "0.49125877" ]
0.68053836
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jLabel5 = new javax.swing.JLabel(); jbtnBack2 = new javax.swing.JButton(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setPreferredSize(new java.awt.Dimension(500, 300)); getContentPane().setLayout(null); jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N jLabel1.setText("Thank you for using this application"); getContentPane().add(jLabel1); jLabel1.setBounds(140, 90, 231, 26); jLabel2.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N jLabel2.setText("Press \"OK\" to Logout, \"Back\" to resume."); getContentPane().add(jLabel2); jLabel2.setBounds(160, 190, 240, 34); jButton1.setText("OK"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); getContentPane().add(jButton1); jButton1.setBounds(150, 220, 95, 36); jLabel5.setFont(new java.awt.Font("Lucida Grande", 1, 48)); // NOI18N jLabel5.setText("NCI Group Bank"); getContentPane().add(jLabel5); jLabel5.setBounds(70, 10, 410, 62); jbtnBack2.setText("Back"); jbtnBack2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jbtnBack2ActionPerformed(evt); } }); getContentPane().add(jbtnBack2); jbtnBack2.setBounds(260, 220, 96, 36); jLabel3.setText("Are you sure you wish to Logout?"); getContentPane().add(jLabel3); jLabel3.setBounds(160, 150, 161, 14); jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/met2.jpg"))); // NOI18N getContentPane().add(jLabel4); jLabel4.setBounds(0, 0, 540, 330); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\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 .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.7321233", "0.72922724", "0.72922724", "0.72922724", "0.7287021", "0.7250113", "0.7214902", "0.7209478", "0.71973455", "0.71915394", "0.71855843", "0.71602577", "0.7149222", "0.70949143", "0.70813066", "0.70579875", "0.6988272", "0.6978623", "0.6956488", "0.6954857", "0.69464177", "0.6943629", "0.69367987", "0.6933018", "0.6929331", "0.69254756", "0.6925112", "0.6913102", "0.69126385", "0.6894097", "0.6893964", "0.68917936", "0.6891495", "0.68895847", "0.68845505", "0.688321", "0.6882532", "0.6878455", "0.68770224", "0.68752515", "0.6872487", "0.6861657", "0.6857395", "0.68569964", "0.6856607", "0.68555", "0.6854448", "0.6854003", "0.6854003", "0.68440473", "0.6838224", "0.6837637", "0.6829588", "0.6829244", "0.68277496", "0.68251204", "0.68236995", "0.68180907", "0.6817601", "0.681135", "0.680981", "0.680977", "0.68097097", "0.6807759", "0.6803703", "0.6795666", "0.67947936", "0.6793619", "0.6790796", "0.67902565", "0.67899716", "0.67888206", "0.67829174", "0.67670804", "0.6766693", "0.67661726", "0.6757112", "0.67564726", "0.67534983", "0.6751943", "0.67434925", "0.6739915", "0.6737868", "0.6737343", "0.673493", "0.6728943", "0.67285377", "0.672136", "0.6716568", "0.671613", "0.67153496", "0.67092025", "0.67079633", "0.6704689", "0.67022705", "0.6701755", "0.6700168", "0.66992295", "0.669491", "0.6692837", "0.6690047" ]
0.0
-1
/ This method checks for contenttype based on which, it processes and fetches the content of the message
public void writePart(Part p) throws Exception { System.out.println("CONTENT-TYPE: " + p.getContentType()); // check if the content is plain text if (p.isMimeType("text/plain")) { System.out.println("This is plain text"); System.out.println("---------------------------"); System.out.println((String) p.getContent()); } // check if the content has attachment else if (p.isMimeType("multipart/*")) { System.out.println("This is a Multipart"); System.out.println("---------------------------"); Multipart mp = (Multipart) p.getContent(); int count = mp.getCount(); for (int i = 0; i < count; i++) writePart(mp.getBodyPart(i)); } // check if the content is a nested message else if (p.isMimeType("message/rfc822")) { System.out.println("This is a Nested Message"); System.out.println("---------------------------"); writePart((Part) p.getContent()); } // check if the content is an inline image else if (p.isMimeType("image/jpeg")) { System.out.println("--------> image/jpeg"); Object o = p.getContent(); InputStream x = (InputStream) o; // Construct the required byte array System.out.println("x.length = " + x.available()); int i = 0; byte[] bArray = new byte[x.available()]; while ((i = x.available()) > 0) { int result = (x.read(bArray)); if (result == -1) break; } FileOutputStream f2 = new FileOutputStream("/tmp/image.jpg"); f2.write(bArray); } else if (p.getContentType().contains("image/")) { System.out.println("content type" + p.getContentType()); File f = new File("image" + new Date().getTime() + ".jpg"); DataOutputStream output = new DataOutputStream( new BufferedOutputStream(new FileOutputStream(f))); com.sun.mail.util.BASE64DecoderStream test = (com.sun.mail.util.BASE64DecoderStream) p .getContent(); byte[] buffer = new byte[1024]; int bytesRead; while ((bytesRead = test.read(buffer)) != -1) { output.write(buffer, 0, bytesRead); } } else { Object o = p.getContent(); if (o instanceof String) { System.out.println("This is a string"); System.out.println("---------------------------"); System.out.println((String) o); } else if (o instanceof InputStream) { System.out.println("This is just an input stream"); System.out.println("---------------------------"); InputStream is = (InputStream) o; is = (InputStream) o; int c; while ((c = is.read()) != -1) System.out.write(c); } else { System.out.println("This is an unknown type"); System.out.println("---------------------------"); System.out.println(o.toString()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public @Nullable T getContent() {\n logger.trace(\"Get Content of Message, content type : \" + contentType + \" / Content : \" + content);\n try {\n Class type = Class.forName(contentType);\n return (T) gson.fromJson(content, type);\n } catch (ClassNotFoundException e) {\n logger.error(\"Problem when change message content (json) in object\", e);\n }\n return null;\n }", "public String getContent(ContentType type) throws IOException {\n String charset = type.getCharset();\n \n if(charset == null) {\n charset = \"UTF-8\";\n }\n return body.getContent(charset);\n }", "public String getContent() throws IOException {\n ContentType type = getContentType();\n \n if(type == null) {\n return body.getContent(\"UTF-8\");\n } \n return getContent(type);\n }", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "public byte[] getRawContent() {\n try {\n if (this.messageContent == null &&\n this.messageContentBytes == null &&\n this.messageContentObject == null) {\n return null;\n } else if (this.messageContentObject != null ) {\n String messageContent = this.messageContentObject.toString();\n byte[] messageContentBytes;\n ContentType contentTypeHeader =\n (ContentType)this.nameTable.get\n (ContentTypeHeader.NAME.toLowerCase());\n if (contentTypeHeader != null) {\n String charset = contentTypeHeader.getCharset();\n if (charset != null) {\n messageContentBytes = messageContent.getBytes(charset);\n } else {\n messageContentBytes =\n messageContent.getBytes(DEFAULT_ENCODING);\n }\n } else messageContentBytes =\n messageContent.getBytes(DEFAULT_ENCODING);\n return messageContentBytes;\n } else if ( this.messageContent != null ) {\n byte[] messageContentBytes;\n ContentType contentTypeHeader =\n (ContentType)this.nameTable.get\n (ContentTypeHeader.NAME.toLowerCase());\n if (contentTypeHeader != null) {\n String charset = contentTypeHeader.getCharset();\n if (charset != null) {\n messageContentBytes =\n this.messageContent.getBytes(charset);\n } else {\n messageContentBytes =\n this.messageContent.getBytes(DEFAULT_ENCODING);\n }\n } else messageContentBytes =\n this.messageContent.getBytes(DEFAULT_ENCODING);\n return messageContentBytes;\n } else {\n return messageContentBytes;\n }\n } catch (UnsupportedEncodingException ex) {\n InternalErrorHandler.handleException(ex);\n return null;\n }\n }", "public void readContent()\n {\n if (headerFields.containsKey(\"Content-Length\") && !headerFields.get(\"Content-Length\").equals(\"0\"))\n {\n Utilities.debugLine(\"WebServer.readContent(): it did contain Content-Length and it wasn't equal to 0.\", DEBUG);\n int contentLength = Integer.parseInt((String) headerFields.get(\"Content-Length\"));\n Utilities.debugLine(\"WebServer.readContent(): content-Length = \" + contentLength, DEBUG);\n byte[] contentBytes = new byte[contentLength];\n try\n {\n int read = in.read(contentBytes);\n while (read < contentLength)\n {\n read += in.read(contentBytes, read, contentLength - read);\n }\n content = new String(contentBytes);\n }\n catch (Exception e)\n {\n Utilities.debugLine(\"ConnectionHandler.readContent():\"\n + \" there was a problem reading the content of length \" + contentLength, DEBUG);\n sendError();\n }\n }\n else\n {\n Utilities.debugLine(\"WebServer.readContent(): contains Content-Length = \"\n + headerFields.containsKey(\"Content-Length\")\n + \"\\nContent-Length = \" + headerFields.get(\"Content-Length\"), DEBUG);\n }\n }", "String getContentType();", "String getContentType();", "String getContentType();", "public String getMessageContent()\n throws UnsupportedEncodingException {\n if ( this.messageContent == null && this.messageContentBytes == null )\n return null;\n else if (this.messageContent == null) {\n ContentType contentTypeHeader =\n (ContentType) this.nameTable.get(ContentType.NAME.toLowerCase());\n if (contentTypeHeader != null) {\n String charset = contentTypeHeader.getCharset();\n if (charset != null) {\n this.messageContent =\n new String(messageContentBytes,charset);\n } else {\n this.messageContent =\n new String(messageContentBytes,DEFAULT_ENCODING);\n }\n } else this.messageContent =\n new String(messageContentBytes,DEFAULT_ENCODING);\n }\n return this.messageContent;\n }", "com.yoti.api.client.spi.remote.proto.ContentTypeProto.ContentType getContentType();", "private String getTextFromMessage(Message message) throws Exception {\r\n\t\tString result = \"\";\r\n\t\tif (message.isMimeType(\"text/plain\")) {\r\n\t\t\tresult = message.getContent().toString();\r\n\t\t} else if (message.isMimeType(\"multipart/*\")) {\r\n\t\t\tMimeMultipart mimeMultipart = (MimeMultipart) message.getContent();\r\n\t\t\tresult = getTextFromMimeMultipart(mimeMultipart);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public Object getContent() {\n if (this.messageContentObject != null) return messageContentObject;\n else if (this.messageContentBytes != null)\n return this.messageContentBytes;\n else if (this.messageContent != null) return this.messageContent;\n else return null;\n }", "public String getContenttype() {\n return contenttype;\n }", "public String getContenttype() {\n return contenttype;\n }", "abstract ContentType getContnentType();", "public boolean handles(String contentType, String packaging);", "String getContent() throws IOException;", "public String getContentType();", "public String getContentType();", "public String[] getContent(String agentMessage){\n\t\t\t\t\n\t\tString[] messageContentSplited = null;\n\n\t\t\n\t\tif(this.messageType == 0){ //if 0 is a simple string with message from Agent\n\t\t\t\n\t\t\tmessageContentSplited = agentMessage.split(\" \");\n\n\t\t}\n\t\t\n\t\tif(this.messageType == 1){ //if 1 the message of agent is from a txt file and in a KQML format\n\t\t\t\n\t\t\tAgentMsgConversion msg = new AgentMsgConversion(agentMessage);\t\t\t\t\t\t\n\t\t\tString[][] msgArray = msg.getMessageArray();\n\t\t\tint size = msgArray.length;\n\t\t\tint i,j;\n\t\t\t\n\t\t\tString msgContent = null;\t\n\t\t\tint stopSearch = 0; //provides a simple way to stop second loop before a null occur\n\t\t\tfor(i=0; i<size; i++){\t\t\t\n\t\t\t\tfor(j=0; j<2; j++){\t\n\t\t\t\t\t//System.out.println(\"COISA \"+msgArray[i][j]);\n\t\t\t\t\tif(msgArray[i][j].contains(\":content\")){\t\t\t\t\t\n\t\t\t\t\t\tmsgContent = msgArray[i][j+1];\n\t\t\t\t\t\t//System.out.println(\"agent message: \"+msgContent);\n\t\t\t\t\t\tstopSearch++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(stopSearch > 0){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmessageContentSplited = msgContent.split(\" \");\n\t\t}\n\t\treturn messageContentSplited;\n\t}", "public String getContenttype() {\n\t\treturn contenttype;\n\t}", "byte[] getContent() throws IOException;", "com.google.protobuf.ByteString getContent();", "com.google.protobuf.ByteString getContent();", "@Override\n public int getContentType() {\n return 0;\n }", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "@Override\n\tpublic String getContentType() {\n\t\treturn CONTENT_TYPE;\n\t}", "public MediaType getContentType()\r\n/* 193: */ {\r\n/* 194:289 */ String value = getFirst(\"Content-Type\");\r\n/* 195:290 */ return value != null ? MediaType.parseMediaType(value) : null;\r\n/* 196: */ }", "abstract String getContent();", "com.google.protobuf.ByteString getContentBytes();", "protected synchronized InputStream getContentStream() throws MessagingException {\n/* 268 */ if (this.contentStream != null) {\n/* 269 */ return ((SharedInputStream)this.contentStream).newStream(0L, -1L);\n/* */ }\n/* 271 */ InputStream cstream = getRawStream(true);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 277 */ TempFile cache = this.folder.getFileCache();\n/* 278 */ if (cache != null || ((POP3Store)this.folder.getStore()).keepMessageContent)\n/* */ {\n/* 280 */ this.contentStream = ((SharedInputStream)cstream).newStream(0L, -1L); } \n/* 281 */ return cstream;\n/* */ }", "protected synchronized void parse() throws MessagingException {\n/* 481 */ if (this.parsed) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 487 */ this.ignoreMissingEndBoundary = PropUtil.getBooleanSystemProperty(\"mail.mime.multipart.ignoremissingendboundary\", true);\n/* */ \n/* */ \n/* 490 */ this.ignoreMissingBoundaryParameter = PropUtil.getBooleanSystemProperty(\"mail.mime.multipart.ignoremissingboundaryparameter\", true);\n/* */ \n/* */ \n/* 493 */ this.ignoreExistingBoundaryParameter = PropUtil.getBooleanSystemProperty(\"mail.mime.multipart.ignoreexistingboundaryparameter\", false);\n/* */ \n/* */ \n/* 496 */ this.allowEmpty = PropUtil.getBooleanSystemProperty(\"mail.mime.multipart.allowempty\", false);\n/* */ \n/* */ \n/* 499 */ this.bmparse = PropUtil.getBooleanSystemProperty(\"mail.mime.multipart.bmparse\", true);\n/* */ \n/* */ \n/* 502 */ if (this.bmparse) {\n/* 503 */ parsebm();\n/* */ \n/* */ return;\n/* */ } \n/* 507 */ InputStream in = null;\n/* 508 */ SharedInputStream sin = null;\n/* 509 */ long start = 0L, end = 0L;\n/* */ \n/* */ try {\n/* 512 */ in = this.ds.getInputStream();\n/* 513 */ if (!(in instanceof java.io.ByteArrayInputStream) && !(in instanceof BufferedInputStream) && !(in instanceof SharedInputStream))\n/* */ {\n/* */ \n/* 516 */ in = new BufferedInputStream(in); } \n/* 517 */ } catch (Exception ex) {\n/* 518 */ throw new MessagingException(\"No inputstream from datasource\", ex);\n/* */ } \n/* 520 */ if (in instanceof SharedInputStream) {\n/* 521 */ sin = (SharedInputStream)in;\n/* */ }\n/* 523 */ ContentType cType = new ContentType(this.contentType);\n/* 524 */ String boundary = null;\n/* 525 */ if (!this.ignoreExistingBoundaryParameter) {\n/* 526 */ String bp = cType.getParameter(\"boundary\");\n/* 527 */ if (bp != null)\n/* 528 */ boundary = \"--\" + bp; \n/* */ } \n/* 530 */ if (boundary == null && !this.ignoreMissingBoundaryParameter && !this.ignoreExistingBoundaryParameter)\n/* */ {\n/* 532 */ throw new MessagingException(\"Missing boundary parameter\");\n/* */ }\n/* */ \n/* */ try {\n/* 536 */ LineInputStream lin = new LineInputStream(in);\n/* 537 */ StringBuffer preamblesb = null;\n/* */ \n/* 539 */ String lineSeparator = null; String line;\n/* 540 */ while ((line = lin.readLine()) != null) {\n/* */ int i;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 548 */ for (i = line.length() - 1; i >= 0; i--) {\n/* 549 */ char c = line.charAt(i);\n/* 550 */ if (c != ' ' && c != '\\t')\n/* */ break; \n/* */ } \n/* 553 */ line = line.substring(0, i + 1);\n/* 554 */ if (boundary != null) {\n/* 555 */ if (line.equals(boundary))\n/* */ break; \n/* 557 */ if (line.length() == boundary.length() + 2 && line.startsWith(boundary) && line.endsWith(\"--\")) {\n/* */ \n/* 559 */ line = null;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ break;\n/* */ } \n/* 568 */ } else if (line.length() > 2 && line.startsWith(\"--\") && (\n/* 569 */ line.length() <= 4 || !allDashes(line))) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 577 */ boundary = line;\n/* */ \n/* */ \n/* */ break;\n/* */ } \n/* */ \n/* */ \n/* 584 */ if (line.length() > 0) {\n/* */ \n/* */ \n/* 587 */ if (lineSeparator == null) {\n/* */ try {\n/* 589 */ lineSeparator = System.getProperty(\"line.separator\", \"\\n\");\n/* */ }\n/* 591 */ catch (SecurityException ex) {\n/* 592 */ lineSeparator = \"\\n\";\n/* */ } \n/* */ }\n/* */ \n/* 596 */ if (preamblesb == null)\n/* 597 */ preamblesb = new StringBuffer(line.length() + 2); \n/* 598 */ preamblesb.append(line).append(lineSeparator);\n/* */ } \n/* */ } \n/* */ \n/* 602 */ if (preamblesb != null) {\n/* 603 */ this.preamble = preamblesb.toString();\n/* */ }\n/* 605 */ if (line == null) {\n/* 606 */ if (this.allowEmpty) {\n/* */ return;\n/* */ }\n/* 609 */ throw new MessagingException(\"Missing start boundary\");\n/* */ } \n/* */ \n/* */ \n/* 613 */ byte[] bndbytes = ASCIIUtility.getBytes(boundary);\n/* 614 */ int bl = bndbytes.length;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 620 */ boolean done = false;\n/* */ \n/* 622 */ while (!done) {\n/* 623 */ MimeBodyPart part; InternetHeaders headers = null;\n/* 624 */ if (sin != null) {\n/* 625 */ start = sin.getPosition();\n/* */ \n/* 627 */ while ((line = lin.readLine()) != null && line.length() > 0);\n/* */ \n/* 629 */ if (line == null) {\n/* 630 */ if (!this.ignoreMissingEndBoundary) {\n/* 631 */ throw new MessagingException(\"missing multipart end boundary\");\n/* */ }\n/* */ \n/* 634 */ this.complete = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } else {\n/* 639 */ headers = createInternetHeaders(in);\n/* */ } \n/* */ \n/* 642 */ if (!in.markSupported()) {\n/* 643 */ throw new MessagingException(\"Stream doesn't support mark\");\n/* */ }\n/* 645 */ ByteArrayOutputStream buf = null;\n/* */ \n/* 647 */ if (sin == null) {\n/* 648 */ buf = new ByteArrayOutputStream();\n/* */ } else {\n/* 650 */ end = sin.getPosition();\n/* */ } \n/* 652 */ boolean bol = true;\n/* */ \n/* 654 */ int eol1 = -1, eol2 = -1;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ while (true) {\n/* 660 */ if (bol) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 666 */ in.mark(bl + 4 + 1000);\n/* */ int i;\n/* 668 */ for (i = 0; i < bl && \n/* 669 */ in.read() == (bndbytes[i] & 0xFF); i++);\n/* */ \n/* 671 */ if (i == bl) {\n/* */ \n/* 673 */ int b2 = in.read();\n/* 674 */ if (b2 == 45 && \n/* 675 */ in.read() == 45) {\n/* 676 */ this.complete = true;\n/* 677 */ done = true;\n/* */ \n/* */ break;\n/* */ } \n/* */ \n/* 682 */ while (b2 == 32 || b2 == 9) {\n/* 683 */ b2 = in.read();\n/* */ }\n/* 685 */ if (b2 == 10)\n/* */ break; \n/* 687 */ if (b2 == 13) {\n/* 688 */ in.mark(1);\n/* 689 */ if (in.read() != 10) {\n/* 690 */ in.reset();\n/* */ }\n/* */ break;\n/* */ } \n/* */ } \n/* 695 */ in.reset();\n/* */ \n/* */ \n/* */ \n/* 699 */ if (buf != null && eol1 != -1) {\n/* 700 */ buf.write(eol1);\n/* 701 */ if (eol2 != -1)\n/* 702 */ buf.write(eol2); \n/* 703 */ eol1 = eol2 = -1;\n/* */ } \n/* */ } \n/* */ \n/* */ int b;\n/* 708 */ if ((b = in.read()) < 0) {\n/* 709 */ if (!this.ignoreMissingEndBoundary) {\n/* 710 */ throw new MessagingException(\"missing multipart end boundary\");\n/* */ }\n/* 712 */ this.complete = false;\n/* 713 */ done = true;\n/* */ \n/* */ \n/* */ \n/* */ break;\n/* */ } \n/* */ \n/* */ \n/* 721 */ if (b == 13 || b == 10) {\n/* 722 */ bol = true;\n/* 723 */ if (sin != null)\n/* 724 */ end = sin.getPosition() - 1L; \n/* 725 */ eol1 = b;\n/* 726 */ if (b == 13) {\n/* 727 */ in.mark(1);\n/* 728 */ if ((b = in.read()) == 10) {\n/* 729 */ eol2 = b; continue;\n/* */ } \n/* 731 */ in.reset();\n/* */ } continue;\n/* */ } \n/* 734 */ bol = false;\n/* 735 */ if (buf != null) {\n/* 736 */ buf.write(b);\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 744 */ if (sin != null) {\n/* 745 */ part = createMimeBodyPartIs(sin.newStream(start, end));\n/* */ } else {\n/* 747 */ part = createMimeBodyPart(headers, buf.toByteArray());\n/* 748 */ } super.addBodyPart(part);\n/* */ } \n/* 750 */ } catch (IOException ioex) {\n/* 751 */ throw new MessagingException(\"IO Error\", ioex);\n/* */ } finally {\n/* */ try {\n/* 754 */ in.close();\n/* 755 */ } catch (IOException cex) {}\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 760 */ this.parsed = true;\n/* */ }", "public synchronized String read() {\n\t\tString message = \"\";\n\n\t\tif(content.size() > 0 )\n\t\t\tmessage = content.get(0);\n\t\tnotify();\n\n\t\treturn message;\n }", "@Override\n\tpublic String getContentType()\n\t{\n\t\treturn contentType;\n\t}", "public java.lang.String getContent() {\n java.lang.Object ref = content_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n content_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getContent()\n/* */ {\n/* 1329 */ return this.content;\n/* */ }", "@java.lang.Override\n public java.lang.String getContent() {\n java.lang.Object ref = content_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n content_ = s;\n return s;\n }\n }", "private void setContent (Message message) {\n String content = \"\";\n try {\n if (message.getContent() instanceof String) {\n content = (String) message.getContent();\n msgContent.setText(content);\n } else if (message.isMimeType(\"multipart/*\")) {\n Multipart multipart = (Multipart) message.getContent();\n if (multipart.getCount() > 0) {\n int i;\n for (i = 0; i < multipart.getCount(); i++) {\n content += multipart.getBodyPart(i).getContent().toString();\n }\n msgContent.setText(content);\n }\n } else {\n msgContent.setText(\"This message is in an unsupported format.\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (MessagingException e) {\n e.printStackTrace();\n }\n\n }", "public java.lang.String getContent() {\n java.lang.Object ref = content_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n content_ = s;\n }\n return s;\n }\n }", "public java.lang.String getContent() {\n java.lang.Object ref = content_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n content_ = s;\n }\n return s;\n }\n }", "public String getContentType() {\n return this.contentType;\n }", "public String getContentType() {\r\n try {\r\n ContentType newCtype = new ContentType(super.getContentType());\r\n ContentType retCtype = new ContentType(cType.toString());\r\n retCtype.setParameter(\"boundary\", newCtype.getParameter(\"boundary\"));\r\n return retCtype.toString();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return \"null\";\r\n }", "public ParsedMessage parseMessageContents(Message message, boolean openImages) {\n\n\tString messageContents = \"\";\n\tList<OpenImageWorker> imageWorkers = new LinkedList<>();\n\t\n\ttry {\n\t if (message.getContentType().contains(\"TEXT/PLAIN\")) {\n\t\tmessageContents = (message.getContent().toString());\n\t } else {\n\t\t//Message type is multipart\n\t\tMultipart multipart = (Multipart) message.getContent();\n\t\t\n\t\t\n\t\tfor (int i = 0; i < multipart.getCount(); i++) {\n\t\t //For each part of the message if it's plain text then add that to the text area otherwise log an unrecongized part.\n\t\t BodyPart bodyPart = multipart.getBodyPart(i);\n\t\t if (bodyPart.getContentType().contains(\"TEXT/PLAIN\")) {\n\t\t\tmessageContents += bodyPart.getContent().toString();\n\t\t } else if(bodyPart.getContentType().contains(\"IMAGE/JPEG\")){\n\t\t\t\n\t\t\tif(openImages){\n\t\t\t OpenImageWorker openImageWorker = new OpenImageWorker(bodyPart.getContent());\n\t\t\t imageWorkers.add(openImageWorker);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t }\n\t\t else {\n\t\t\tSystem.out.println(\"Unrecognised content type \" + bodyPart.getContentType());\n\t\t }\n\t\t}\n\t }\n\t} catch (MessagingException | IOException e) {\n\t messageContents = (e.toString());\n\t}\n\t\n\treturn new ParsedMessage(messageContents, imageWorkers);\n }", "com.google.protobuf.Any getContent();", "public static String getContentType(InputStream is) throws IOException {\n\n String encoding = \"UTF-8\"; //default\n\n\n // cerca se il documento specifica un altro encoding\n if (is != null) {\n StringBuilder sb = new StringBuilder();\n String line;\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));//\"UTF-8\"));\n while ((line = reader.readLine()) != null) { //CRASHA\n sb.append(line).append(\"\\n\");\n if ((sb.toString().contains(\"<?\") && sb.toString().contains(\"?>\")) && sb.toString().contains(\"encoding=\")) {\n\n Pattern p = Pattern.compile(\".*<\\\\?.*encoding=.(.*).\\\\?>.*\", Pattern.DOTALL);\n\n Matcher matcher = p.matcher(sb.toString());\n\n if (matcher.matches()) {\n encoding = matcher.group(1);\n }\n\n break;\n }\n }\n\n }\n\n return encoding;\n }", "private String getText(Part p) throws MessagingException, IOException {\r\n\t if (p.isMimeType(\"text/*\")) {\r\n\t String s = (String)p.getContent();\r\n\t textIsHtml = p.isMimeType(\"text/html\");\r\n\t return s;\r\n\t }\r\n\r\n\t if (p.isMimeType(\"multipart/alternative\")) {\r\n\t // prefer html text over plain text\r\n\t Multipart mp = (Multipart)p.getContent();\r\n\t String text = null;\r\n\t for (int i = 0; i < mp.getCount(); i++) {\r\n\t Part bp = mp.getBodyPart(i);\r\n\t if (bp.isMimeType(\"text\")) {\r\n\t if (text == null)\r\n\t text = getText(bp);\r\n\t continue;\r\n\t } else if (bp.isMimeType(\"text/html\")) {\r\n\t String s = getText(bp);\r\n\t if (s != null)\r\n\t return s;\r\n\t } else {\r\n\t return getText(bp);\r\n\t }\r\n\t }\r\n\t return text;\r\n\t } else if (p.isMimeType(\"multipart/*\")) {\r\n\t Multipart mp = (Multipart)p.getContent();\r\n\t for (int i = 0; i < mp.getCount(); i++) {\r\n\t String s = getText(mp.getBodyPart(i));\r\n\t if (s != null)\r\n\t return s;\r\n\t }\r\n\t }\r\n\r\n\t return null;\r\n\t }", "public void createContentList(String body) throws ParseException {\n try {\n HeaderFactoryExt headerFactory = new HeaderFactoryImpl();\n String delimiter = this.getContentTypeHeader().getParameter(BOUNDARY);\n\n if (delimiter == null) {\n this.contentList = new LinkedList();\n ContentImpl content = new ContentImpl(body, delimiter);\n content.setContentTypeHeader(this.getContentTypeHeader());\n this.contentList.add(content);\n return;\n }\n\n String[] fragments = body.split(\"--\" + delimiter + \"\\r\\n\");\n\n if (logger.isDebugEnabled()) {\n logger.debug(\"nFragments = \" + fragments.length);\n logger.debug(\"delimiter = \" + delimiter);\n logger.debug(\"body = \" + body);\n }\n \n for (int i = 0; i < fragments.length; i++) \n {\n \tString nextPart = fragments[i];\n\n // NOTE - we are not hanlding line folding for the sip header here.\n\n if (nextPart == null) {\n return;\n }\n StringBuffer strbuf = new StringBuffer(nextPart);\n while (strbuf.length() > 0\n && (strbuf.charAt(0) == '\\r' || strbuf.charAt(0) == '\\n'))\n strbuf.deleteCharAt(0);\n\n if (strbuf.length() == 0)\n continue;\n nextPart = strbuf.toString();\n int position = nextPart.indexOf(\"\\r\\n\\r\\n\");\n int off = 4;\n if (position == -1) {\n position = nextPart.indexOf(\"\\n\");\n off = 2;\n }\n if (position == -1)\n throw new ParseException(\"no content type header found in \" + nextPart, 0);\n String rest = nextPart.substring(position + off);\n\n if (rest == null)\n throw new ParseException(\"No content [\" + nextPart + \"]\", 0);\n // logger.debug(\"rest = [[\" + rest + \"]]\");\n String headers = nextPart.substring(0, position);\n ContentImpl content = new ContentImpl(rest, boundary);\n\n String[] headerArray = headers.split(\"\\r\\n\");\n for (int j = 0; j < headerArray.length; j++) \n {\n \tString hdr = headerArray[j];\n\n Header header = headerFactory.createHeader(hdr);\n if (header instanceof ContentTypeHeader) {\n content.setContentTypeHeader((ContentTypeHeader) header);\n } else if (header instanceof ContentDispositionHeader) {\n content.setContentDispositionHeader((ContentDispositionHeader) header);\n } else {\n throw new ParseException(\"Unexpected header type \" + header.getName(), 0);\n }\n contentList.add(content); \n\t\t\t\t} \n\t\t\t} \n } catch (StringIndexOutOfBoundsException ex) {\n throw new ParseException(\"Invalid Multipart mime format\", 0);\n }\n }", "@Override\n\t\tprotected void onRead(int mark, int type, String content) {\n\t\t\tswitch (type) {\n\t\t\tcase 5003:\n\t\t\t\ttry {\n\t\t\t\t\tJSONObject jsonObject = new JSONObject(content);\n\t\t\t\t\tif (0 == jsonObject.getInt(\"result\")) {\n\t\t\t\t\t\tshowToast(\"获取成功\");\n\t\t\t\t\t\tmuserJsonArray = jsonObject.getJSONObject(\"msg\").getJSONArray(\"security_phone_numbers\");\n\t\t\t\t\t\tsetViews();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowToast(jsonObject.getString(\"msg\"));\n\t\t\t\t\t}\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tshowToast(getString(R.string.error_protocol));\n\t\t\t\t}\n\t\t\t\tmProgressDialog.dismiss();\n\t\t\t\tbreak;\n\t\t\tcase 5004:\n\t\t\t\ttry {\n\t\t\t\t\tJSONObject jsonObject = new JSONObject(content);\n\t\t\t\t\tif (0 == jsonObject.getInt(\"result\")) {\n\t\t\t\t\t\tshowToast(jsonObject.getString(\"msg\"));\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowToast(jsonObject.getString(\"msg\"));\n\t\t\t\t\t}\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tshowToast(getString(R.string.error_protocol));\n\t\t\t\t}\n\t\t\t\tmProgressDialog.dismiss();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "public String getContent() { return this.content; }", "byte[] getContent();", "@java.lang.Override\n public com.google.protobuf.ByteString getContentBytes() {\n java.lang.Object ref = content_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n content_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getContent() {\n java.lang.Object ref = content_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n content_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getContent();", "@Override\r\n public String getContent() {\r\n return content;\r\n }", "public boolean hasContent() {\n return messageContent != null || messageContentBytes != null;\n }", "private byte[] extractContent(EmbeddedXMLType embeddedXMLType) {\n\t\tbyte[] content;\n\t\ttry {\n\t\t\tTransformerFactory tf = TransformerFactory.newInstance();\n\t\t\tTransformer t = tf.newTransformer();\n\t\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\tResult result = new StreamResult(baos);\n\t\t\tt.transform(embeddedXMLType.getContent(), result);\n\t\t\tcontent = baos.toByteArray();\n\t\t} catch (TransformerException te) {\n\t\t\tthrow new BusinessException(ErroreCore.ERRORE_DI_SISTEMA.getErrore(\"Errore di trasformazionew della fattura elettronica\" + (te != null ? \" (\" + te.getMessage() + \")\" : \"\")));\n\t\t}\n\t\treturn content;\n\t}", "default String getContentType() {\n return \"application/octet-stream\";\n }", "public com.google.protobuf.ByteString getContentBytes() {\n java.lang.Object ref = content_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n content_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public abstract String getContentString();", "public java.lang.String getContent() {\n return content;\n }", "@Nullable\n public abstract byte[] getContent() throws IOException;", "public com.google.protobuf.ByteString getContent() {\n return content_;\n }", "public com.google.protobuf.ByteString getContent() {\n return content_;\n }", "public java.lang.String getContent() {\n java.lang.Object ref = content_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n content_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public CharSequence getContentType() {\n return contentType;\n }", "protected String getContentType()\n {\n if (fullAttachmentFilename == null)\n {\n return null;\n }\n String ext = FilenameUtils.getExtension(fullAttachmentFilename);\n if (ext == null)\n {\n return null;\n }\n if (ext.equalsIgnoreCase(\"pdf\"))\n {\n return \"application/pdf\";\n } else if (ext.equalsIgnoreCase(\"zip\"))\n {\n return \"application/zip\";\n } else if (ext.equalsIgnoreCase(\"jpg\"))\n {\n return \"image/jpeg\";\n\n } else if (ext.equalsIgnoreCase(\"jpeg\"))\n {\n return \"image/jpeg\";\n\n } else if (ext.equalsIgnoreCase(\"html\"))\n {\n return \"text/html\";\n\n } else if (ext.equalsIgnoreCase(\"png\"))\n {\n return \"image/png\";\n\n } else if (ext.equalsIgnoreCase(\"gif\"))\n {\n return \"image/gif\";\n\n }\n log.warn(\"Content type not found for file extension: \" + ext);\n return null;\n }", "int getContentTypeValue();", "public String messageContentType() {\n return this.messageContentType;\n }", "public java.lang.String getContent() {\n return content;\n }", "public java.lang.Object getContentType() {\r\n return contentType;\r\n }", "@Override\n\tprotected void channelRead0(ChannelHandlerContext ctx, HttpObject msg) throws Exception {\n\t\t\n\t\t// This is all debugging...\n\t\tif (msg instanceof HttpResponse) {\n\t\t\tHttpResponse response = (HttpResponse) msg;\n\n\t\t\tlogger.debug(\"STATUS: \" + response.status());\n\t\t\tlogger.debug(\"VERSION: \" + response.protocolVersion());\n\n\t\t\tif (!response.headers().isEmpty()) {\n\t\t\t\tfor (CharSequence name : response.headers().names()) {\n\t\t\t\t\tfor (CharSequence value : response.headers().getAll(name)) {\n\t\t\t\t\t\tlogger.debug(\"HEADER: \" + name + \" = \" + value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (HttpUtil.isTransferEncodingChunked(response)) {\n\t\t\t\tlogger.debug(\"CHUNKED CONTENT {\");\n\t\t\t} else {\n\t\t\t\tlogger.debug(\"CONTENT {\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t// This is where the work happens. This handler gets called MULTIPLE times.\n\t\tif (msg instanceof HttpContent) {\n\t\t\t// The data from the server\n\t\t\tHttpContent content = (HttpContent) msg;\n\n\t\t\t// Gather all the chunks.\n\t\t\tif (null == chunks) {\n\t\t\t\tlogger.debug(\"Chunks initialized.\");\n\t\t\t\tchunks = copiedBuffer(content.content());\n\t\t\t} else {\n\t\t\t\tlogger.debug(\"Adding chunks\");\n\t\t\t\tchunks = copiedBuffer(chunks, content.content());\n\t\t\t}\n\n\t\t\tlogger.debug(content.content().toString(CharsetUtil.UTF_8));\n\n\t\t\tif (content instanceof LastHttpContent) {\n\t\t\t\tlogger.debug(\"} END OF CONTENT\");\n\t\t\t\tlogger.debug(\"Subscriber in handler: {}\", this.subscriber);\n\t\t\t\tlogger.debug(\"Chunks: {}\", this.chunks);\n\t\t\t\tsubscriber.onNext(chunks.toString(CharsetUtil.UTF_8));\n\t\t\t\tctx.close();\n\t\t\t}\n\t\t}\n\t}", "private void validateContentType(ODataRequest request) throws BatchDeserializerException {\n BatchParserCommon.parseContentType(request.getHeader(CONTENT_TYPE), ContentType.MULTIPART_MIXED, 0);\n }", "com.google.protobuf.ByteString\n getContentBytes();", "com.google.protobuf.ByteString\n getContentBytes();", "protected void initializeContent() throws PiaRuntimeException{\n InputStream in;\n String ztype = null;\n\n try{\n in = fromMachine().inputStream();\n\n if( (ztype = contentType()) == null )\n\tztype = \"text/html\";\n\n contentObj = cf.createContent( ztype, in );\n if( contentObj != null )\n\tcontentObj.setHeaders( headers() );\n else{\n\tPia.debug(this, \"Unknown header type...\");\n\tString msg = \"Unknown header type...\\n\";\n\tthrow new PiaRuntimeException (this\n\t\t\t\t , \"initializeContent\"\n\t\t\t\t , msg) ;\n }\n\n }catch(IOException e){\n Pia.debug( e.toString() );\n }\n }", "public String parserResultFromContent(InputStream is) throws IOException {\n String result = \"\";\n BufferedReader reader = new BufferedReader(\n new InputStreamReader(is, Constants.CHARSET_NAME_UTF8));\n String line = \"\";\n while ((line = reader.readLine()) != null) {\n result += line;\n }\n is.close();\n return result;\n }", "public com.google.protobuf.ByteString\n getContentBytes() {\n java.lang.Object ref = content_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n content_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getContentBytes() {\n java.lang.Object ref = content_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n content_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getContentType() {\n return this.contentType;\n }", "public String getContentType() {\n return this.contentType;\n }", "public String getContentType() {\n return this.contentType;\n }", "String content();", "com.google.protobuf.AnyOrBuilder getContentOrBuilder();", "protected String getReplyContentType() {\n\t\treturn this.replyContentType;\n\t}", "public abstract Object getContent();", "private void processContentCn() {\n if (this.content == null || this.content.equals(\"\")) {\r\n _logger.error(\"{} - The sentence is null or empty\", this.traceId);\r\n }\r\n\r\n // process input using ltp(Segmentation, POS, DP, SRL)\r\n this.ltp = new LTP(this.content, this.traceId, this.setting);\r\n }", "public com.google.protobuf.ByteString getContent() {\n return content_;\n }", "public com.google.protobuf.ByteString getContent() {\n return content_;\n }" ]
[ "0.6906348", "0.6419838", "0.636646", "0.6238924", "0.6238924", "0.6238924", "0.6238924", "0.6238924", "0.6238924", "0.61910486", "0.61830074", "0.6115517", "0.6115517", "0.6115517", "0.6109182", "0.60680443", "0.59883577", "0.5950034", "0.59236467", "0.59236467", "0.590367", "0.58996", "0.5897393", "0.588682", "0.588682", "0.58841074", "0.572628", "0.5725506", "0.57103807", "0.57103807", "0.56691754", "0.56422246", "0.56422246", "0.56422246", "0.56422246", "0.56422246", "0.56422246", "0.56422246", "0.56422246", "0.5628301", "0.56237817", "0.5606192", "0.55626804", "0.55374736", "0.5533951", "0.5522954", "0.5512659", "0.55089873", "0.5505955", "0.549962", "0.5494658", "0.5492247", "0.5492247", "0.5488671", "0.54835576", "0.54653984", "0.5464817", "0.546362", "0.5461482", "0.5461175", "0.5452844", "0.54373175", "0.543723", "0.54348326", "0.5425275", "0.54204273", "0.5415566", "0.54127103", "0.54124117", "0.5390377", "0.53787494", "0.53633225", "0.53614354", "0.5359198", "0.53582853", "0.53582853", "0.5357294", "0.53570676", "0.5356056", "0.53530306", "0.53527325", "0.5349857", "0.5342158", "0.534093", "0.53408563", "0.5338671", "0.5338671", "0.53337216", "0.5332569", "0.5327064", "0.5327064", "0.5319273", "0.5319273", "0.5319273", "0.5315733", "0.5313918", "0.5305905", "0.53043646", "0.52941203", "0.5288811", "0.5288811" ]
0.0
-1
String host = "pop.gmail.com"; String mailStoreType = "pop3";
public static void main(String[] args) { String host ="imap.gmail.com"; String mailStoreType ="imap"; String username = "[email protected]"; String password = "asit,s9!"; CheckMailUtil cmUtil = CheckMailUtil.getInstance(); cmUtil.checkMail(host, mailStoreType, username, password); // cmUtil.fetchMail(host, mailStoreType, username, password); // System.out.println("IMAP"); // cmUtil.checkMail("imap.gmail.com","imap",username, password); //cmUtil.fetchMail(host, mailStoreType, username, password); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Session setUpEmailSession() throws MessagingException {\n Authenticator auth = new SimpleAuthenticator(mailUsername, mailPassword);\r\n Properties props = System.getProperties();\r\n props.put(\"mail.smtp.host\", mailHost);\r\n Session session = Session.getDefaultInstance(props, auth);\r\n Store store = session.getStore(\"pop3\");\r\n store.connect(mailHost, mailUsername, mailPassword); \r\n return session;\r\n }", "private static Properties init(){\n // Get a Properties object\n Properties props = System.getProperties();\n props.setProperty(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.setProperty(\"mail.smtp.socketFactory.class\", SSL_FACTORY);\n props.setProperty(\"mail.smtp.socketFactory.fallback\", \"false\");\n props.setProperty(\"mail.smtp.port\", \"465\");\n props.setProperty(\"mail.smtp.socketFactory.port\", \"465\");\n props.put(\"mail.smtp.auth\", \"true\");\n //props.put(\"mail.debug\", \"true\");\n props.put(\"mail.store.protocol\", \"pop3\");\n props.put(\"mail.transport.protocol\", \"smtp\");\n\n return props;\n }", "@Override\r\n\tpublic void downloadEmailAttachments(String host, String port, String userName, String password) {\r\n\t\tProperties properties = new Properties();\r\n\r\n\t\t// server setting\r\n\t\tproperties.put(\"mail.pop3.host\", host);\r\n\t\tproperties.put(\"mail.pop3.port\", port);\r\n\r\n\t\t// SSL setting\r\n\t\tproperties.setProperty(\"mail.pop3.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\r\n\t\tproperties.setProperty(\"mail.pop3.socketFactory.fallback\", \"false\");\r\n\t\tproperties.setProperty(\"mail.pop3.socketFactory.port\", String.valueOf(port));\r\n\r\n\t\tSession session = Session.getDefaultInstance(properties);\r\n\r\n\t\ttry {\r\n\t\t\t// connects to the message store\r\n\t\t\tStore store = session.getStore(\"pop3\");\r\n\t\t\tstore.connect(userName, password);\r\n\r\n\t\t\t// opens the inbox folder\r\n\t\t\tFolder folderInbox = store.getFolder(\"INBOX\");\r\n\t\t\tfolderInbox.open(Folder.READ_ONLY);\r\n\r\n\t\t\t// fetches new messages from server\r\n\t\t\tMessage[] arrayMessages = folderInbox.getMessages();\r\n\r\n\t\t\tfor (int i = 0; i < arrayMessages.length; i++) {\r\n\t\t\t\tMessage message = arrayMessages[i];\r\n\t\t\t\tAddress[] fromAddress = message.getFrom();\r\n\t\t\t\tString from = fromAddress[0].toString();\r\n\t\t\t\tString subject = message.getSubject();\r\n\t\t\t\tString sentDate = message.getSentDate().toString();\r\n\r\n\t\t\t\tString contentType = message.getContentType();\r\n\t\t\t\tString messageContent = \"\";\r\n\r\n\t\t\t\t// store attachment file name, separated by comma\r\n\t\t\t\tString attachFiles = \"\";\r\n\r\n\t\t\t\tif (contentType.contains(\"multipart\")) {\r\n\t\t\t\t\t// content may contain attachments\r\n\t\t\t\t\tMultipart multiPart = (Multipart) message.getContent();\r\n\t\t\t\t\tint numberOfParts = multiPart.getCount();\r\n\t\t\t\t\tfor (int partCount = 0; partCount < numberOfParts; partCount++) {\r\n\t\t\t\t\t\tMimeBodyPart part = (MimeBodyPart) multiPart.getBodyPart(partCount);\r\n\t\t\t\t\t\tif (Part.ATTACHMENT.equalsIgnoreCase(part.getDisposition())) {\r\n\t\t\t\t\t\t\t// this part is attachment\r\n\t\t\t\t\t\t\tString fileName = part.getFileName();\r\n\t\t\t\t\t\t\tattachFiles += fileName + \", \";\r\n\t\t\t\t\t\t\tpart.saveFile(saveDirectory + File.separator + fileName);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// this part may be the message content\r\n\t\t\t\t\t\t\tmessageContent = part.getContent().toString();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (attachFiles.length() > 1) {\r\n\t\t\t\t\t\tattachFiles = attachFiles.substring(0, attachFiles.length() - 2);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (contentType.contains(\"text/plain\") || contentType.contains(\"text/html\")) {\r\n\t\t\t\t\tObject content = message.getContent();\r\n\t\t\t\t\tif (content != null) {\r\n\t\t\t\t\t\tmessageContent = content.toString();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t//print out details of each message\r\n\t\t\t\t System.out.println(\"Message #\" + (i + 1) + \":\");\r\n\t System.out.println(\"\\t From: \" + from);\r\n\t System.out.println(\"\\t Subject: \" + subject);\r\n\t System.out.println(\"\\t Sent Date: \" + sentDate);\r\n\t System.out.println(\"\\t Message: \" + messageContent);\r\n\t System.out.println(\"\\t Attachments: \" + attachFiles);\r\n\t\t\t}\r\n\r\n\t\t\t// disconnect\r\n\t\t\tfolderInbox.close(false);\r\n\t\t\tstore.close();\r\n\t\t} catch (NoSuchProviderException ex) {\r\n\t\t\tSystem.out.println(\"No provider for pop3.\");\r\n\t\t\tex.printStackTrace();\r\n\t\t\tlog.error(ex);\r\n\t\t} catch (MessagingException ex) {\r\n\t\t\tSystem.out.println(\"Could not connect to the message store\");\r\n\t\t\tex.printStackTrace();\r\n\t\t\tlog.error(ex);\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\tlog.error(ex);\r\n\t\t}\r\n\t}", "Object getMailhost();", "public static void main (String args[]) throws Exception {\n\n String host = \"triggeremails.com\";\n String username = \"test\";\n String password = \"tr1ggertr1gger\";\n\n // Get session\n Session session = Session.getInstance(System.getProperties(), null);\n\n // Get the store\n Store store = session.getStore(\"pop3\");\n store.connect(host, username, password);\n\n // Get folder\n Folder folder = store.getFolder(\"INBOX\");\n folder.open(Folder.READ_WRITE);\n\n BufferedReader reader = new BufferedReader (\n new InputStreamReader(System.in));\n\n // Get directory\n Message message[] = folder.getMessages();\n for (int i=0, n=message.length; i<n; i++) {\n System.out.println(i + \": \" + message[i].getFrom()[0] \n + \"\\t\" + message[i].getSubject());\n\n System.out.println(\"Do you want to delete message? [YES to delete]\");\n String line = reader.readLine();\n // Mark as deleted if appropriate\n if (\"YES\".equals(line)) {\n message[i].setFlag(Flags.Flag.DELETED, true);\n }\n }\n\n // Close connection \n folder.close(true);\n store.close();\n }", "GmailClient getGmailClient(Credential credential);", "private static Properties getMailServerConfig() {\n\n Properties properties = new Properties();\n properties.put(\"mail.smtp.host\", host);\n properties.put(\"mail.smtp.port\", \"2525\");\n\n return properties;\n }", "public String downloadEmails(String protocol, String host, String port,\n String userName, String password) {\n\n Properties properties = getServerProperties(protocol, host, port);\n Properties props = getServerProperties(protocol, host, port);\n\n\n\n Session session = Session.getDefaultInstance(properties);\n\n try {\n\n\n //Setting IMAP session\n Session imapSession = Session.getInstance(props);\n\n Store store = imapSession.getStore(\"imap\");\n\n\n//Connect to server by sending username and password.\n//Example mailServer = imap.gmail.com, username = abc, password = abc\n //store.connect(mailServer, account.username, account.password);\n//Get all mails in Inbox Forlder\n //inbox = store.getFolder(\"Inbox\");\n //inbox.open(Folder.READ_ONLY);\n //Return result to array of message\n //Message[] result = inbox.getMessages();\n\n\n // connects to the message store\n //Store store = session.getStore(protocol);\n store.connect(\"imap.gmail.com\", 993, userName, password);\n\n // opens the inbox folder\n Folder folderInbox = store.getFolder(\"INBOX\");\n folderInbox.open(Folder.READ_ONLY);\n\n // fetches new messages from server\n Message[] messages = folderInbox.getMessages();\n\n for (int i = 0; i < messages.length; i++) {\n Message msg = messages[i];\n Address[] fromAddress = msg.getFrom();\n String from = fromAddress[0].toString();\n String subject = msg.getSubject();\n String toList = parseAddresses(msg\n .getRecipients(Message.RecipientType.TO));\n String ccList = parseAddresses(msg\n .getRecipients(Message.RecipientType.CC));\n String sentDate = msg.getSentDate().toString();\n\n String contentType = msg.getContentType();\n String messageContent = \"\";\n\n if (contentType.contains(\"text/plain\")\n || contentType.contains(\"text/html\")) {\n try {\n Object content = msg.getContent();\n if (content != null) {\n messageContent = content.toString();\n }\n } catch (Exception ex) {\n messageContent = \"[Error downloading content]\";\n ex.printStackTrace();\n }\n }\n\n // print out details of each message\n System.out.println(\"Message #\" + (i + 1) + \":\");\n System.out.println(\"\\t From: \" + from);\n System.out.println(\"\\t To: \" + toList);\n System.out.println(\"\\t CC: \" + ccList);\n System.out.println(\"\\t Subject: \" + subject);\n System.out.println(\"\\t Sent Date: \" + sentDate);\n System.out.println(\"\\t Message: \" + messageContent);\n\n return \"lista messaggi\";\n }\n\n // disconnect\n folderInbox.close(false);\n store.close();\n\n } catch (NoSuchProviderException ex) {\n System.out.println(\"No provider for protocol: \" + protocol);\n ex.printStackTrace();\n } catch (MessagingException ex) {\n System.out.println(\"Could not connect to the message store\");\n ex.printStackTrace();\n return ex.getMessage();\n }\n return \"default\";\n }", "public static URL getEmailServer()\n {\n return emailServer;\n }", "public void setMailShareholder(String mailShareholder);", "String getUserMail();", "public void setMailing(String mail) {\n mailing = mail;\n }", "public void setEmailServer(String host) {\n emailProperties = System.getProperties();\n emailProperties.put(\"mail.smtp.host\", host);\n emailProperties.put(\"mail.smtp.port\", 25);\n // emailProperties.put(\"mail.smtp.auth\", \"false\");\n // emailProperties.put(\"mail.smtp.starttls.enable\", \"true\");\n }", "public void initialize()\n throws EmailApplicationException {\n final String temp = null;\n emailConfig.clear();\n\n /**\n * Required by JavaMail in order to determine the message delivery\n * protocol for the session.\n */\n emailConfig.setProperty(\"mail.transport.protocol\", \"smtp\");\n \n \n\n setHostSend(\"\");\n setPortSend(25);\n setUserSend(\"\");\n setUseSSL(false);\n\n try {\n setPasswordSend(\"\");\n }\n catch (final Exception ex) {\n final String str =\n \"EmailConfiguration.initialize(): \" +\n \"Wrong UserSend=\" + getUserSend() + \" or PasswordSend=\" + temp + \",\\n\" +\n \"Exception info: \" + ex.toString();\n mLogger.severe(str);\n throw new EmailApplicationException (str);\n }\n\n /**\n * Required by JavaMail in order to determine the message retrieval\n * protocol for the session.\n */\n emailConfig.setProperty(\"mail.store.protocol\", \"pop3\");\n\n setHostRecv(\"\");\n setPortRecv(110);\n setUserRecv(\"\");\n try {\n setPasswordRecv(\"\");\n }\n catch (final Exception ex) {\n final String str =\n \"EmailConfiguration.initialize(): \" +\n \"Wrong UserRecv=\" + getUserRecv() + \" or PasswordRecv=\" + temp + \",\\n\" +\n \"Exception info:\" + ex.toString();\n mLogger.severe(str);\n throw new EmailApplicationException (str);\n }\n\n /**\n * Determine whether to perform POP3 authentication before attempting\n * SMTP transfer.\n */\n setSessionAuth(false);\n\n /**\n * Prepare for SSL\n */\n// aConfiguration.setSubSection(\"SSL\");\n// try {\n// boolean recvSSL = aConfiguration.getStringParameterValue(\"Receive/UseSSL\", \"NO\").equalsIgnoreCase(\"YES\");\n// boolean sendSSL = aConfiguration.getStringParameterValue(\"Send/UseSSL\", \"NO\").equalsIgnoreCase(\"YES\");\n\n// // Set up the TrustStore\n// if (recvSSL || sendSSL) {\n\n// if (mLogger.isDebugEnabled()) {\n// System.setProperty(\"javax.net.debug\", \"all\");\n// }\n\n// // Set up the trustore\n// aConfiguration.setSubSection(\"SSL/CACerts\");\n// String trustStore = aConfiguration.getStringParameterValue(\"TrustStore\", null);\n// if (trustStore == null || trustStore.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStore is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// String trustStoreType = aConfiguration.getStringParameterValue(\"TrustStoreType\", null);\n// if (trustStoreType == null || trustStoreType.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStoreType is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// String trustStorePass = aConfiguration.getStringParameterValue(\"TrustStorePassword\", null);\n// if (trustStorePass == null || trustStorePass.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStorePassword is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// mLogger.info (\"Using TrustStore \" + trustStore + \" of type \" + trustStoreType);\n// EmailSystemProperties.setTrustStore(trustStore);\n// EmailSystemProperties.setTrustStoreType(trustStoreType);\n// EmailSystemProperties.setTrustStorePassword(trustStorePass);\n\n// // Setup receive\n// if (recvSSL) {\n// mLogger.info (\"SSL is enabled for RECEIVE; using \" + SSL_FACTORY + \" for creating ssl sockets.\");\n// // POP3 provider\n// this.emailConfig.setProperty( \"mail.pop3.socketFactory.class\", SSL_FACTORY);\n\n// // POP3 provider - no fallback.\n// this.emailConfig.setProperty( \"mail.pop3.socketFactory.fallback\", \"false\");\n// } else {\n// mLogger.debug (\"SSL is NOT enabled for RECEIVE.\");\n// }\n\n// // Setup send\n// if (sendSSL) {\n// mLogger.info (\"SSL is enabled for SEND; using \" + SSL_FACTORY + \" for creating ssl sockets.\");\n// // SMTP provider\n// this.emailConfig.setProperty( \"mail.smtp.socketFactory.class\", SSL_FACTORY);\n\n// // SMTP provider - no fallback.\n// this.emailConfig.setProperty( \"mail.smtp.socketFactory.fallback\", \"false\");\n// } else {\n// mLogger.debug (\"SSL is NOT enabled for SEND.\");\n// }\n\n// } else {\n// mLogger.debug (\"SSL is NOT enabled.\");\n// }\n\n mLogger.fine(\"EmailConfiguration.initialize() completed successfully.\");\n }", "public void sendWithDefaultMessage() {\r\n String _from = \"A78B347F656\";\r\n String _password = \"55EE29A8C\";\r\n //Get properties object\r\n Properties props = new Properties();\r\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n props.put(\"mail.smtp.socketFactory.port\", \"465\");\r\n props.put(\"mail.smtp.socketFactory.class\",\r\n \"javax.net.ssl.SSLSocketFactory\");\r\n props.put(\"mail.smtp.auth\", \"true\");\r\n props.put(\"mail.smtp.port\", \"465\");\r\n //get Session \r\n Session session = Session.getInstance(props,\r\n new javax.mail.Authenticator() {\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(_from, _password);\r\n }\r\n });\r\n //compose message \r\n try {\r\n MimeMessage message = new MimeMessage(session);\r\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(_to));\r\n message.setSubject(\"WELCOME TO TAHDIG\");\r\n message.setContent(\"<body>\"\r\n + \"<h1>TAHDIG</h1>\"\r\n + \"<h3>Dear \" + firstName + \" \" + lastName\r\n + \"</h3><h2>Thank you for Registering on TAHDIG,</h2>\"\r\n + \"<h3>The First Meal Sharing Platform</h3>\"\r\n + \"<em>Your Username: \" + username\r\n + \"</em><br/><em>Your Password: \" + userpass\r\n + \"</em><br/><a href='http://localhost:8080/msabouri-fp/'>Click here to go to the TAHDIG service</a></body>\",\r\n \"text/html; charset=utf8\");\r\n Transport.send(message);\r\n LOG.info(\"The email was sent successfully\");\r\n } catch (MessagingException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }", "public String getMailServer()\n {\n return _mailServer;\n }", "public void sendMail(String to) throws URISyntaxException, IOException {\n final String username = \"kicsikacsacodecool\";//change accordingly\n final String password = \"codecool\";//change accordingly\n\n // Assuming you are sending email through relay.jangosmtp.net\n String host = \"relay.jangosmtp.net\";\n\n Properties props = new Properties();\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n // Get the Session object.\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n\n try {\n // Create a default MimeMessage object.\n Message message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(\"[email protected]\"));\n\n // Set To: header field of the header.\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(to));\n\n // Set Subject: header field\n message.setSubject(\"Webshop Registration\");\n\n // Now set the actual message\n message.setText(\"Welcome to the codecool webshop !!\");\n\n // Send message\n try {\n Transport.send(message);\n } catch (Exception e) {\n System.out.println(e);\n }\n\n System.out.println(\"Sent message successfully....\");\n\n } catch (MessagingException e) {\n throw new RuntimeException(e);\n }\n }", "public interface GoMailAgent {\n\n public int sendMessage(GoMailMessage mail, Properties properties, GoMailContext mailContext, Map<String, Object> vars) throws IOException;\n}", "public void setMailGeneralManager(String mailGeneralManager);", "public void gotoGmail(){\n }", "String getXmppAddress();", "@Override\n protected Void doInBackground(Void... params) {\n Properties prop = new Properties();\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n prop.put(\"mail.smtp.socketFactory.port\", \"465\");\n prop.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\n prop.put(\"mail.smtp.auth\", \"true\");\n prop.put(\"mail.smtp.port\", \"465\");\n //creating a new session\n getSession = Session.getDefaultInstance(prop,\n new javax.mail.Authenticator() {\n //checks password against the specific romeomailbot email and password we created\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(Utils.EMAIL, Utils.PASSWORD);\n }\n });\n try {\n //using mimemessage to send email\n MimeMessage mime = new MimeMessage(getSession);\n //set romaileobot address\n mime.setFrom(new InternetAddress(Utils.EMAIL));\n //set secret admirer adress\n mime.addRecipient(Message.RecipientType.TO, new InternetAddress(getEmail));\n //set subject of message\n mime.setSubject(getSubject);\n //set message\n mime.setText(getMessage);\n //send message\n Transport.send(mime);\n } catch (MessagingException e) {\n e.printStackTrace();\n }\n return null;\n }", "private Properties getMailProperties() {\n Properties properties = new Properties();\n properties.setProperty(\"mail.transport.protocol\", \"smtp\");\n properties.setProperty(\"mail.smtps.auth\", \"true\");\n properties.setProperty(\"mail.smtp.starttls.required\", \"true\");\n properties.setProperty(\"mail.smpt.starttls.enable\", \"true\");\n properties.setProperty(\"mail.debug\", \"false\"); // set to true for debugging information\n \n return properties;\n }", "private Session createMailingSession() {\n final String username = \"EMAIL\";\r\n final String password = \"PASSWORD\";\r\n Properties prop = new Properties();\r\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n prop.put(\"mail.smtp.port\", \"587\");\r\n prop.put(\"mail.smtp.auth\", \"true\");\r\n prop.put(\"mail.smtp.starttls.enable\", \"true\");\r\n return Session.getInstance(prop,\r\n new Authenticator() {\r\n @Override\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(username, password);\r\n }\r\n });\r\n }", "private Properties getProtocolProporties(String protocol) {\n\t\tProperties properties = new Properties();\n\t\tswitch (getProperty(protocol)) {\n\t\tcase POP3:\n\t\t\tproperties.put(\"mail.pop3.host\", getProperty(\"POP3_HOST\"));\n\t\t\tproperties.put(\"mail.pop3.port\", getProperty(\"POP3_PORT\"));\n\t\t\tproperties.put(\"mail.pop3.starttls.enable\", \"true\");\n\t\t\tbreak;\n\t\tcase SMTP:\n\t\t\tproperties.put(\"mail.smtp.port\", getProperty(\"SMTP_PORT\"));\n\t\t\tproperties.put(\"mail.smtp.host\", getProperty(\"SMTP_HOST\"));\n\t\t\t// properties.put(\"mail.smtp.ssl.enable\", \"true\");\n\t\t\tproperties.put(\"mail.smtp.auth\", \"true\");\n\t\t\tproperties.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\t\tbreak;\n\t\tcase IMAP:\n\t\t\tproperties.put(\"mail.imap.user\", getProperty(\"username\"));\n\t\t\tproperties.put(\"mail.imap.host\", getProperty(\"IMAP4_HOST\"));\n\t\t\tproperties.put(\"mail.imap.port\", getProperty(\"IMAP4_PORT\"));\n\t\t\tproperties.put(\"mail.imap.ssl.enable\", \"true\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\t\treturn properties;\n\t}", "public boolean connect() throws MessagingException {\r\n\r\n // check if authentication is needed\r\n MailAuthenticator authenticator = null;\r\n\r\n // if authentication needed, create an authenticator\r\n if (mReceiverInfo.isValidate()) {\r\n authenticator = new MailAuthenticator(mReceiverInfo.getUserName(), mReceiverInfo.getPassword());\r\n }\r\n\r\n // create a session\r\n Session session = Session.getInstance(mReceiverInfo.getProperties(), authenticator);\r\n\r\n // create a store, establish the connection\r\n try {\r\n mStore = session.getStore(mReceiverInfo.getProtocal());\r\n }\r\n catch (NoSuchProviderException e) {\r\n return false;\r\n }\r\n\r\n try {\r\n mStore.connect();\r\n }\r\n catch (MessagingException e) {\r\n // Connect to pop3 server failed!\r\n throw e;\r\n }\r\n\r\n return true;\r\n }", "private Store connectMailServer(String sslConnection) {\r\n\r\n\t\t// connect to mail server\r\n\t\tStore store;\r\n\t\ttry {\r\n\t\t\tProperties props = System.getProperties();\r\n\t\t\tprops.setProperty(\"mail.store.protocol\", \"imap\");\r\n\t\t\tif (sslConnection.equalsIgnoreCase(\"true\")) {\r\n\t\t\t\tprops.setProperty(\"mail.imap.socketFactory.class\",\r\n\t\t\t\t\t\t\"javax.net.ssl.SSLSocketFactory\");\r\n\t\t\t\tprops.setProperty(\"mail.imap.socketFactory.fallback\", \"false\");\r\n\t\t\t\tprops.setProperty(\"mail.imap.socketFactory.port\", sslPort);\r\n\t\t\t}\r\n\t\t\tSession session = Session.getDefaultInstance(props);\r\n\t\t\tstore = session.getStore(\"imap\");\r\n\r\n\t\t\tif (port != 0)\r\n\t\t\t\tstore.connect(mailServer, port, userName, password);\r\n\t\t\telse\r\n\t\t\t\tstore.connect(mailServer, userName, password);\r\n\r\n\t\t} catch (NoSuchProviderException e) {\r\n\t\t\tthrow new IQserRuntimeException(e);\r\n\t\t} catch (MessagingException e) {\r\n\t\t\tthrow new IQserRuntimeException(e);\r\n\t\t}\r\n\t\treturn store;\r\n\t}", "public static void main(String [] args) throws Throwable, MessagingException {\n String to = \"[email protected]\";\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n Properties prop = new Properties();\n\n prop.put(\"mail.smtp.auth\", true);\n prop.put(\"mail.smtp.starttls.enable\", \"true\");\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n prop.put(\"mail.smtp.port\", \"587\");\n Session session = Session.getInstance(prop, new Authenticator() {\n \t @Override\n \t protected PasswordAuthentication getPasswordAuthentication() {\n \t return new PasswordAuthentication(\"sarowerhome\", \"tanvirj9\");\n \t }\n \t});\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(\n Message.RecipientType.TO, InternetAddress.parse(\"[email protected]\"));\n message.setSubject(\"Mail Subject\");\n\n String msg = \"This is my first email using JavaMailer\";\n\n MimeBodyPart mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(msg, \"text/html\");\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(mimeBodyPart);\n\n message.setContent(multipart);\n\n Transport.send(message);\n }", "@Category({Major.class})\n @Test\n public void gmailSendAndReceive(){\n SignInPage signInPage = WebUtil.goToSignInPage(driver);\n\n //2.Enter Username\n signInPage.enterUsername(driver, \"[email protected]\");\n\n //3. Go to next page\n SignInPage2 signInPage2 = signInPage.clickNextButton(driver);\n\n //4. Enter Password\n signInPage2.enterPassword(driver, \"testingrocks\");\n\n //5. Uncheck \"Stay signed in\" -- dont save cookies\n signInPage2.uncheckRemeberMe(driver);\n\n //6. Click Sign In Button\n EmailHomePage emailHomePage = signInPage2.clickSignIn(driver);\n\n //7. Verify login was successful\n Assert.assertTrue(\"Inbox should be present!!\",emailHomePage.inboxIsPresent(driver));\n\n //Click Compose\n emailHomePage.clickOnCompose(driver);\n\n //Fill in Recipient\n emailHomePage.enterRecipient(driver, \"[email protected]\");\n\n //Fill in Subject\n final String subjectMatter = \"Test email to self\";\n emailHomePage.enterSubject(driver, subjectMatter);\n\n //Fill in email body\n final String emailMatter = \"Hello, \"+ \"\\n\" + \"This is a test email to self\";\n emailHomePage.enterEmailBody(driver, emailMatter);\n\n //Click send\n emailHomePage.clickOnSendButton(driver);\n\n //Click inbox again\n emailHomePage.clickOnInbox(driver);\n\n //Click email\n EmailViewPage emailViewPage = emailHomePage.goToEmailViewPage(driver);\n\n //Verify the email subject and email body is correct\n String actualSubject = emailViewPage.getEmailSubjectText(driver);\n Assert.assertEquals(\"Title should match\", subjectMatter, actualSubject);\n\n String actualEmailContent = emailViewPage.getEmailContent(driver);\n Assert.assertEquals(\"Email body content should match\", emailMatter, actualEmailContent);\n\n //Sign out\n signInPage = emailHomePage.signOut(driver);\n\n //Verify user signed out successfully\n Assert.assertTrue(\"Sign In button should exist\", signInPage.signInButtonIsPresent(driver));\n\n }", "public String getMailServer() {\r\n\t\treturn mailServer;\r\n\t}", "public void send() {\r\n String _from = \"[email protected]\";\r\n String _password = \"Ng101840\";\r\n //Get properties object\r\n Properties props = new Properties();\r\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\r\n props.put(\"mail.smtp.socketFactory.port\", \"465\");\r\n props.put(\"mail.smtp.socketFactory.class\",\r\n \"javax.net.ssl.SSLSocketFactory\");\r\n props.put(\"mail.smtp.auth\", \"true\");\r\n props.put(\"mail.smtp.port\", \"465\");\r\n //get Session \r\n Session session = Session.getInstance(props,\r\n new javax.mail.Authenticator() {\r\n protected PasswordAuthentication getPasswordAuthentication() {\r\n return new PasswordAuthentication(_from, _password);\r\n }\r\n });\r\n //compose message \r\n try {\r\n MimeMessage message = new MimeMessage(session);\r\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(_to));\r\n message.setSubject(subject);\r\n message.setText(this.message);\r\n Transport.send(message);\r\n LOG.info(\"The email was sent successfully\");\r\n } catch (MessagingException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }", "public void setMailServer(String mailServer)\n {\n _mailServer = mailServer;\n }", "String getEmail(int type);", "public static void main(String[] args) {\n\t\t//DEFINE SETTINGS HERE\n\t\tString host = \"smtp.gmail.com\";\n\t\tint port = 587;\n\t\t\n BufferedReader sysIn = new BufferedReader(new InputStreamReader(System.in)); //Read from console\n PrintStream sysOut = System.out; //Print to console\n\t\t\n SSLSocketFactory mainFactory = (SSLSocketFactory) SSLSocketFactory.getDefault(); //Get default SSL socket factory\n try {\n\t\t\t//Regular connection\n\t\t\tSocket plainSocket = new Socket(host, port);\n\t\t\tSSLSocket clientSocket = null;\n\t\t\tBufferedWriter serverWriter = new BufferedWriter(new OutputStreamWriter(plainSocket.getOutputStream())); //Write to unsec server\n BufferedReader serverReader = new BufferedReader(new InputStreamReader(plainSocket.getInputStream())); //Read from unsec server\n\t\t\t\n\t\t\tString serverInput = null; //Stores latest line from server\n String userInput = \"\"; //Stores lastest input line from user\n\t\t\tboolean connSuccess = true; //Stores connection attempt state\n\t\t\t\n\t\t\t//Check for good greeting\n\t\t\tif ((serverInput = serverReader.readLine()) == null || ! serverInput.substring(0,3).equals(\"220\")) {\n\t\t\t\t//Check if server gave 220 code\n\t\t\t\tsysOut.println(\"Secure connection to server failed. Server did not greet.\");\n\t\t\t\tconnSuccess = false;\n\t\t\t}\n\t\t\t\n\t\t\t//Send helo to server\n\t\t\tif (connSuccess) {\n\t\t\t\tuserInput = \"HELO \" + host;\n\t\t\t\tserverWriter.write(userInput, 0, userInput.length()); //Writing to server\n\t\t\t\tserverWriter.newLine();\n\t\t\t\tserverWriter.flush();\n\t\t\t}\n\t\t\t\n\t\t\t//Check for good helo response\n\t\t\tif (connSuccess && ((serverInput = serverReader.readLine()) == null || ! serverInput.substring(0,3).equals(\"250\"))) {\n\t\t\t\t//If HELO failed\n\t\t\t\tsysOut.println(\"Secure connection to server failed. Bad HELO response.\");\n\t\t\t\tconnSuccess = false;\n\t\t\t}\n\t\t\t\n\t\t\t//Send starttls to server\n\t\t\tif (connSuccess) {\n\t\t\t\tuserInput = \"STARTTLS\";\n\t\t\t\tserverWriter.write(userInput, 0, userInput.length()); //Writing to server\n\t\t\t\tserverWriter.newLine();\n\t\t\t\tserverWriter.flush();\n\t\t\t}\n\t\t\t\n\t\t\t//Check for good starttls response\n\t\t\tif (connSuccess && ((serverInput = serverReader.readLine()) == null || ! serverInput.substring(0,3).equals(\"220\"))) {\n\t\t\t\t//If STARTTLS failed\n\t\t\t\tsysOut.println(\"Secure connection to server failed. Bad STARTTLS response.\");\n\t\t\t\tconnSuccess = false;\n\t\t\t}\n\t\t\t\n\t\t\t//Upgrade if good starttls response\n\t\t\tif (connSuccess) {\n\t\t\t\t//create, connect, start handshake\n\t\t\t\tclientSocket = (SSLSocket) mainFactory.createSocket(plainSocket, plainSocket.getInetAddress().getHostAddress(), plainSocket.getPort(), true); \n\t\t\t\tprintSocketInfo(clientSocket); //Print connection info\n\t\t\t\t\n\t\t\t\tserverWriter = new BufferedWriter(new OutputStreamWriter(clientSocket.getOutputStream())); //Write to server\n\t\t\t\tserverReader = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); //Read from server\n\t\t\t\t\n\t\t\t\tboolean tryRead = true; //Whether to read next line from serverReader (prevents blocking on multiline SMTP responses)\n\n\t\t\t\t//The below booleans, used to successully close the connection, might be unnecessary\n\t\t\t\tboolean quitUser = false; //Whether the user has entered quit, might be unnecessary\n\t\t\t\tboolean openRead = true; //Whether serverReader is still open (serverInput != null)\n\t\t\t\tboolean openSocket = true; //Whether clientSocket is still open (clientSocket != null)\n\n\t\t\t\t//SMTP input variables\n\t\t\t\tboolean sendingData = false;\n\t\t\t\tString cmdMode = \"regular\";\n\n\t\t\t\t//Main connection loop\n\t\t\t\twhile (openSocket && openRead && !quitUser) {\n\t\t\t\t\tif (clientSocket == null) { //Break if socket is closed\n\t\t\t\t\t\topenSocket = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t//Display server response/message\n\t\t\t\t\twhile (tryRead) {\n\t\t\t\t\t\tserverInput = serverReader.readLine();\n\t\t\t\t\t\tif (serverInput == null) { //If serverReader gets closed/connection broken\n\t\t\t\t\t\t\topenRead = false;\n\t\t\t\t\t\t\ttryRead = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsysOut.println(serverInput);\n\t\t\t\t\t\tif (serverInput.substring(3, 4).equals(\"-\")) { //Check if multiline response\n\t\t\t\t\t\t\ttryRead = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttryRead = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//Exit client if 221 stream close msg received\n\t\t\t\t\tif (serverInput != null && serverInput.substring(0, 3).equals(\"221\")) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t//Exit client if connection lost/closed prematurely\n\t\t\t\t\tif (openSocket == false || openRead == false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t//Enter data mode if data command sent and 354 confirmation received\n\t\t\t\t\tif (userInput.equalsIgnoreCase(\"data\") && serverInput.substring(0, 3).equals(\"354\")) {\n\t\t\t\t\t\tsendingData = true;\n\t\t\t\t\t\tcmdMode = \"data\";\n\t\t\t\t\t}\n\t\t\t\t\t//In data mode (multi-line) and sending data (. not entered)\n\t\t\t\t\twhile (sendingData && cmdMode.equals(\"data\")) {\n\t\t\t\t\t\tuserInput = sysIn.readLine();\n\t\t\t\t\t\tserverWriter.write(userInput, 0, userInput.length()); //Writing to server\n\t\t\t\t\t\tserverWriter.newLine();\n\t\t\t\t\t\tserverWriter.flush();\n\t\t\t\t\t\tif (userInput.equals(\".\")) { //End of message\n\t\t\t\t\t\t\tsendingData = false;\n\t\t\t\t\t\t\ttryRead = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//In regular command mode (single-line)\n\t\t\t\t\tif (cmdMode.equals(\"regular\")) {\n\t\t\t\t\t\tuserInput = \"\"; //Reset userInput to show prompt\n\t\t\t\t\t\t//Read user input, display prompt if blank enter, otherwise send to server\n\t\t\t\t\t\twhile (userInput.equals(\"\")) {\n\t\t\t\t\t\t\tsysOut.print(\"C: \");\n\t\t\t\t\t\t\tuserInput = sysIn.readLine();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tserverWriter.write(userInput, 0, userInput.length()); //Writing to server\n\t\t\t\t\t\tserverWriter.newLine();\n\t\t\t\t\t\tserverWriter.flush();\n\t\t\t\t\t\ttryRead = true;\n\t\t\t\t\t}\n\t\t\t\t\tcmdMode = \"regular\"; //Force reset to regular mode after response-command cycle ends\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n //Clean up all connection objects\n serverWriter.close();\n serverReader.close();\n\t\t\tplainSocket.close();\n\t\t\tif (connSuccess) {\n\t\t\t\t\tclientSocket.close();\n\t\t\t}\n sysIn.close();\n sysOut.close();\n } catch (IOException e) {\n System.err.println(e.toString());\n }\n }", "public void sendEmail(String recipient,String password);", "public static boolean sendMailTLS(String from, String[] to, String host, String subject, String content) throws Exception{\n\t\tif(from == null || from.trim() == \"\"){\n\t\t\tthrow new Exception(\"Please set \\\"from\\\" properly\");\n\t\t}\n\t\t\n\t\tif(to == null || to.length == 0){\n\t\t\tthrow new Exception(\"Please set \\\"to\\\" properly\");\n\t\t}\n\t\t\n\t\tif(host == null || host.trim() == \"\"){\n\t\t\tthrow new Exception(\"Please set \\\"host\\\" properly\");\n\t\t}\n\t\t// User name and Password are needed when using Gmail SMTP mail server.\n\t\t// And this practice will ignore the from option set in the message.\n\t\tfinal String username = \"[email protected]\";\n\t\tfinal String pwd = \"\";\n\t\t\n\t\tProperties props = System.getProperties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", host);\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\t\t\n\t\t\n\t\tSession session = Session.getDefaultInstance(props,\n\t\t\tnew javax.mail.Authenticator() {\n\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\treturn new PasswordAuthentication(username, pwd);\n\t\t\t}\n\t\t });\n\t\t\n\t\tMimeMessage message = new MimeMessage(session);\n\t\t\n\t\ttry {\n\t\t\t// Set From: header field of the heard\n\t\t\tmessage.setFrom(new InternetAddress(\"[email protected]\"));\n\t\t\tAddress[] tos = new InternetAddress[to.length];\n\t\t\tfor(int i = 0; i < to.length; i ++){\n\t\t\t\ttos[i] = new InternetAddress(to[i]);\n\t\t\t}\n\t\t\t// Set To: header field of the header\n\t\t\tmessage.addRecipients(Message.RecipientType.TO, tos);\n\t\t\t// Set Subject: header field\n\t\t\tmessage.setSubject(subject);\n\t\t\t// Set email body content\n\t\t\tmessage.setText(content);\n\t\t\t// Send message\n\t\t\tTransport.send(message);\n\t\t\t\n\t\t} catch (AddressException e) {\n\t\t\te.printStackTrace();\n\t\t\tLOG.debug(e.getMessage());\n\t\t\treturn false;\n\t\t} catch (MessagingException e) {\n\t\t\te.printStackTrace();\n\t\t\tLOG.debug(e.getMessage());\n\t\t\treturn false;\n\t\t}\n\t\t// Send successfully\n\t\treturn true;\n\t}", "public void sendnotification_emailtome(String sender,String to,String pass,String subject_to_me, String message_to_me,JDialog dialog){\n final String username = sender;\n final String password = pass;\n\n Properties props = new Properties();\n props.put(\"mail.smtp.auth\", true);\n props.put(\"mail.smtp.starttls.enable\", true);\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected javax.mail.PasswordAuthentication getPasswordAuthentication() {\n return new javax.mail.PasswordAuthentication(username, password);\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(to));\n message.setSubject(subject_to_me);//email subject\n message.setText(message_to_me);//email message\n \n System.out.println(\"Sending...\");\n \n Transport.send(message);\n \n System.out.println(\"Done!\");\n } catch (MessagingException e) {\n dialog.dispose();\n JOptionPane.showMessageDialog(null,\" Check on internet connection...Email was unable to be sent...\");\n }\n }", "@Override\n public void fetchFromSource(){\n System.out.println(\"pull the user credential from gmail\");\n }", "public void launchEmail(){\n\t\tIntent sendIntent = new Intent(Intent.ACTION_MAIN); \n \tsendIntent.addCategory(Intent.CATEGORY_APP_EMAIL);\n\n if (sendIntent.resolveActivity(pacman) != null) {\n \tstartActivity(sendIntent);\n \treturn;\n } else {\n \tToast.makeText(context, \"No Email App Availible\", Toast.LENGTH_SHORT).show();\n \treturn;\n }\n\t}", "private Store getStore() throws MessagingException {\n\t\t// create properties field\n\t\tProperties properties = getProtocolProporties(PROTOCOL_RECEIVE);\n\t\tSession emailSession = Session.getDefaultInstance(properties);\n\t\treturn connectSessionStore(emailSession);\n\t}", "public void send() {\n\t\tfinal String username = \"[email protected]\";\n\t\tfinal String password = \"Oneplanner2017*\";\n\n\t\tProperties props = new Properties();\n\t\tprops.put(\"mail.smtp.auth\", \"true\");\n\t\tprops.put(\"mail.smtp.starttls.enable\", \"true\");\n\t\tprops.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n\t\tprops.put(\"mail.smtp.port\", \"587\");\n\n\t\ttry {\n\t\t\tSession session = Session.getInstance(props,\n\t\t\t\t\t new javax.mail.Authenticator() {\n\t\t\t\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t\t\t\t}\n\t\t\t\t\t });\n\n\t\t\t\t\tMessage message = new MimeMessage(session);\n\t\t\t\t\tmessage.setFrom(new InternetAddress(\"[email protected]\"));\n\t\t\t\t\tmessage.setRecipients(Message.RecipientType.TO,\n\t\t\t\t\t\tInternetAddress.parse(\"[email protected]\"));\n\t\t\tmessage.setSubject(\"test\");\n\t\t\tmessage.setText(\"test\");\n\t\t\t\n\t\t\tTransport.send(message);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n }", "public interface MailPropertiesProvider\n{\n /**获取Mail参数\n * @return\n */\n MailProperties getMailProperties();\n}", "SendEmail() {\t\n\t}", "private void sendEmail() {\n String to = \"[email protected]\";\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n\n // Get the default Session object.\n Session session = Session.getDefaultInstance(properties);\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject(\"This is the Subject Line!\");\n\n // Now set the actual message\n message.setText(\"This is actual message\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }", "private Store connectSessionStore(Session emailSession) throws MessagingException {\n\t\tStore store = null;\n\t\tswitch (getProperty(PROTOCOL_RECEIVE)) {\n\t\tcase POP3:\n\t\t\t// create the POP3 store object and connect with the pop server\n\t\t\tstore = emailSession.getStore(POP3);\n\t\t\t// Connect to the store\n\t\t\tstore.connect(getProperty(\"POP3_HOST\"), getProperty(\"username\"), getPassword());\n\t\t\tbreak;\n\t\tcase IMAP:\n\t\t\t// create the IMAP store object and connect with the imap server\n\t\t\tstore = emailSession.getStore(IMAP);\n\t\t\t// Connect to the store\n\t\t\tstore.connect(getProperty(\"IMAP4_HOST\"), getProperty(\"username\"), getPassword());\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn null;\t\n\t\t}\n\t\treturn store;\n\t}", "public void launchYopmail() throws Exception {\n\t\twdriver.get(WebData.urlOfYopmail);\n\t}", "private void createStore() {\n\n try {\n\n MailboxProtocolEnum curMbPrtcl = this.loginData.getMailboxProtocol();\n\n // Get a Properties and Session object\n Properties props = JavamailUtils.getProperties();\n\n // Trustmanager needed?\n if(curMbPrtcl.isUseOfSsl()) {\n\n MailSSLSocketFactory socketFactory = new MailSSLSocketFactory();\n socketFactory.setTrustManagers(new TrustManager[]\n { this.trustManager });\n\n props.put((\"mail.\" + curMbPrtcl.getProtocolId() + \".ssl.socketFactory\"),\n socketFactory);\n }\n\n Session session = Session.getInstance(props, null);\n session.setDebug(false);\n\n this.store = session.getStore(curMbPrtcl.getProtocolId());\n }\n catch(NoSuchProviderException e) {\n\n throw(new RuntimeException((\"Unknown Protocol: \" +\n this.loginData.getMailboxProtocol()), e));\n }\n catch(GeneralSecurityException gse) {\n\n throw(new RuntimeException((\"Security-problem: \" + gse.getMessage()),\n gse));\n }\n }", "private static void sendAttachment(String message, String subject, String to, String from) {\r\n\t\t// //variable for gmail\r\n\t\tString host = \"smtp.gmail.com\";\r\n\t\t\r\n\t\t//get the system properties \r\n\t\tProperties properties = System.getProperties();\r\n\t\tSystem.out.println(properties);\r\n\t\t //setting important information to properties object\r\n\t\t \r\n\t\t //host set \r\n\t\t properties.put(\"mail.smtp.host\",host);\r\n\t\t properties.put(\"mail.smtp.port\",465);\r\n\t\t properties.put(\"mail.smtp.ssl.enable\",\"true\");\r\n\t\t properties.put(\"mail.smtp.auth\",\"true\");\r\n\t\t \r\n\t\t //step:1 to get the session object\r\n\t\t Session session = Session.getInstance(properties, new Authenticator() {\r\n\r\n\t\t\t@Override\r\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn new PasswordAuthentication(\"[email protected]\",\"scm#2021\");\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t }); \r\n\t\t session.setDebug(true);\r\n\t\t \r\n\t\t //step:2 compose the message [text, multi media]\r\n\t\t MimeMessage mimeMessage = new MimeMessage(session);\r\n\t\t try \r\n\t\t {\r\n\t\t\t //from mail\r\n\t\t\t mimeMessage.setFrom(from);\r\n\t\t\t \r\n\t\t\t //adding recipient\r\n\t\t\t mimeMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\r\n\t\t\t \r\n\t\t\t //adding subject to message\r\n\t\t\t mimeMessage.setSubject(subject);\r\n\t\t\t \r\n\t\t\t //adding attachment to message \r\n\t\t\t String path = \"C:\\\\Users\\\\Krishna\\\\Desktop\\\\GID-6.pdf\";\r\n//\t\t\t String path = \"H:\\\\PHOTOS\\\\COLLEGE\\\\24-7-18\\\\IMG_20180724_161749_HDR.jpg\";\r\n\t\t\t \r\n\t\t\t MimeMultipart part = new MimeMultipart();\r\n\t\t\t\r\n\t\t\t MimeBodyPart fortext = new MimeBodyPart();\r\n\t\t\t MimeBodyPart forfile = new MimeBodyPart();\r\n\t\t\t \r\n\t\t\t try \r\n\t\t\t {\r\n\t\t\t\t fortext.setText(message);\r\n\t\t\t\t \r\n\t\t\t\t File file = new File(path);\r\n\t\t\t\t forfile.attachFile(file);\r\n\t\t\t\t part.addBodyPart(fortext);\r\n\t\t\t\t part.addBodyPart(forfile);\r\n\t\t\t }\r\n\t\t\t catch (Exception e) \r\n\t\t\t {\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t mimeMessage.setContent(part);\r\n\t\t\t \r\n\t\t\t //step:3 send the message using transport class\r\n\t\t\t Transport.send(mimeMessage);\r\n\t\t\t \r\n\t\t\t System.out.println(\"send message successfully..\");\r\n\t\t }\r\n\t\t catch (Exception e) \r\n\t\t {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\n public void sendingGcm() throws Exception {\n\n\n }", "public String getHostSend() {\n return emailConfig.getProperty(\"mail.smtp.host\", \"\");\n }", "@Override\n public Properties settingProperties(MailSettings mailSettings) {\n Properties props = new Properties();\n props.put(\"mail.smtp.host\", mailSettings.getAddressSmtp());\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.port\", mailSettings.getPortSmtp());\n props.put(\"mail.smtp.socketFactory.port\", mailSettings.getPortSmtp());\n props.put(\"mail.smtp.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\n props.put(\"mail.smtp.socketFactory.fallback\", \"false\");\n return props;\n }", "public POP3 parse(String s) {\n\n\n POP3 msg = new POP3();\n msg.setData(s);\n if (s.getBytes().length > 255) {\n if (s.contains(\"\\r\\n.\\r\\n\")) {\n msg.setDone();\n }\n } else if (!s.equals(\"+OK\\r\\n\")) {\n msg.setDone();\n }\n\n\n return msg;\n }", "public static void main(String[] args) {\n\n\t\tPolyMorphismExample polyMorphism = new PolyMorphismReference();\n\t\tpolyMorphism.loginToGmailApp();\n\t\tpolyMorphism.sendEmail();\n\t\t\n\t}", "public void ConnectToMail(String username, String password, String server, int serverPort)\n {\n Properties props = System.getProperties();\n\n props.setProperty(\"mail.imap.ssl.enable\", \"true\");\n props.put(\"mail.smtp.ssl.trust\",\"true\");\n\n Session session = Session.getInstance(props);\n try {\n store = session.getStore(\"imap\");\n\n store.connect(server, serverPort, username, password);\n } catch (NoSuchProviderException e) {\n e.printStackTrace();\n failStep(e.getMessage());\n } catch (MessagingException e) {\n e.printStackTrace();\n failStep(e.getMessage());\n }\n }", "public interface Connection {\r\n\r\n static final String APP_SERVER_URL = \"http://www.softwaresunleashed.com/iots/sending-push-notifications.php?shareRegId=1\";\r\n static final String GOOGLE_PROJECT_ID = \"769537366212\";\r\n\r\n static final String MESSAGE_KEY = \"m\";\r\n\r\n}", "public void sendMail(String address, String content) {\n }", "public static void main(String[] args) throws IOException, ParseException, MessagingException, ClassNotFoundException {\n Gmail service = getGmailService();\n \n // Fetch all COL Trading Confirmation Messages\n String user = \"me\";\n String pageToken = \"\";\n List<Message> messages = new ArrayList<>();\n do {\n \tif (pageToken == null || pageToken.isEmpty()) {\n ListMessagesResponse listResponse =\n service.users().messages().list(user).setQ(\"subject:COL Trading Confirmation\").setMaxResults(1000L).execute();\n messages.addAll(listResponse.getMessages());\n pageToken = listResponse.getNextPageToken();\n \n \t} else {\n ListMessagesResponse listResponse =\n service.users().messages().list(user).setQ(\"subject:COL Trading Confirmation\").setMaxResults(1000L).setPageToken(pageToken).execute();\n messages.addAll(listResponse.getMessages());\n pageToken = listResponse.getNextPageToken();\n \t}\n } while (pageToken != null && !pageToken.isEmpty());\n \n if (messages.size() == 0) {\n System.out.println(\"No COL Trading Confirmation email found\");\n } else {\n \t\n \t// Read last processed\n \tDate lastProcessed = null;\n \tif (LAST_PROCESSED.exists()) {\n \ttry (ObjectInputStream in = new ObjectInputStream(new FileInputStream(LAST_PROCESSED))) {\n lastProcessed = (Date) in.readObject();\n \t}\n \t}\n \t\n \tDate latest = null;\n \t\n for (Message message : messages) {\n \t// Fetch raw email\n message = service.users().messages().get(\"me\", message.getId()).setFormat(\"raw\").execute();\n \n byte[] emailBytes = Base64.decodeBase64(message.getRaw());\n\n Properties props = new Properties();\n Session session = Session.getDefaultInstance(props, null);\n MimeMessage email = new MimeMessage(session, new ByteArrayInputStream(emailBytes));\n \n \n // Write only if email is COL Trading Confirmation\n if (email.getSubject().startsWith(\"COL Trading Confirmation\")) {\n\n \t// Compose file name\n \tSimpleDateFormat readDf = new SimpleDateFormat(\"MM/dd/yyyy\");\n \treadDf.setLenient(false);\n Date tradeDate = readDf.parse(email.getSubject().substring(email.getSubject().length()-10));\n \n // Skip if current message was previously processed\n if (lastProcessed != null && !tradeDate.after(lastProcessed)) {\n \tbreak;\n }\n \n \tSimpleDateFormat writeDf = new SimpleDateFormat(\"yyyy-MM-dd\");\n \tString fileName = writeDf.format(tradeDate) + \" COL Trading Confirmation\";\n \n \tif (!TRADING_CONFIRMATION.exists()) {\n \t\tTRADING_CONFIRMATION.mkdir();\n \t}\n \t\n \t// Write to file\n \ttry (FileWriter fw = new FileWriter(TRADING_CONFIRMATION.getAbsolutePath()+\"/\"+fileName+\".txt\")) {\n \tfw.write(new String(emailBytes));\n\n \tSystem.out.printf(\"Added %s\\n\", fileName + \".txt\");\n\n \tif (latest == null || latest.before(tradeDate)) {\n \tlatest = tradeDate;\n \t}\n }\n \t\n }\n }\n \n // Store last processed\n if (latest != null) {\n try (ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(LAST_PROCESSED))) {\n out.writeObject(latest);\n }\n }\n System.out.printf(\"Done processing\");\n }\n }", "protected Properties getMailProperties() {\n Properties props = System.getProperties();\n props.put(\"mail.smtp.host\", mailHost);\n props.put(\"mail.smtp.sendpartial\", \"true\");\n if (mailPort != null) {\n props.put(\"mail.smtp.port\", mailPort);\n }\n LOG.debug(\n \"mailHost is \" + mailHost + \", mailPort is \" + mailPort == null ? \"default\" : mailPort);\n if (userName != null && password != null) {\n props.put(\"mail.smtp.auth\", \"true\");\n }\n return props;\n }", "public static void sendEmail ( final String addr, final String subject, final String body )\n throws MessagingException {\n\n InputStream input = null;\n\n final String to = addr;\n final String from;\n final String username;\n final String password;\n final String host;\n\n final File emailFile;\n final String emailPath = System.getProperty( \"user.dir\" ) + \"/src/main/java/email.properties\";\n Scanner emailScan = null;\n\n try {\n emailFile = new File( emailPath );\n emailScan = new Scanner( emailFile );\n }\n catch ( final FileNotFoundException fnfe ) {\n emailScan = null;\n }\n\n if ( null != emailScan ) {\n emailScan.next(); // from\n from = emailScan.next();\n emailScan.next(); // username\n username = emailScan.next();\n emailScan.next(); // password\n password = emailScan.next();\n emailScan.next(); // host\n host = emailScan.next();\n emailScan.close();\n }\n else {\n final Properties properties = new Properties();\n final String filename = \"email.properties\";\n input = DBUtil.class.getClassLoader().getResourceAsStream( filename );\n if ( null != input ) {\n try {\n properties.load( input );\n }\n catch ( final IOException e ) {\n e.printStackTrace();\n }\n }\n from = properties.getProperty( \"from\" );\n username = properties.getProperty( \"username\" );\n password = properties.getProperty( \"password\" );\n host = properties.getProperty( \"host\" );\n }\n\n /*\n * Source for java mail code:\n * https://www.tutorialspoint.com/javamail_api/\n * javamail_api_gmail_smtp_server.htm\n */\n\n final Properties props = new Properties();\n props.put( \"mail.smtp.auth\", \"true\" );\n props.put( \"mail.smtp.starttls.enable\", \"true\" );\n props.put( \"mail.smtp.host\", host );\n props.put( \"mail.smtp.port\", \"587\" );\n\n final Session session = Session.getInstance( props, new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication () {\n return new PasswordAuthentication( username, password );\n }\n } );\n\n try {\n final Message message = new MimeMessage( session );\n message.setFrom( new InternetAddress( from ) );\n message.setRecipients( Message.RecipientType.TO, InternetAddress.parse( to ) );\n message.setSubject( subject );\n message.setText( body );\n Transport.send( message );\n }\n catch ( final MessagingException e ) {\n e.printStackTrace();\n throw e;\n }\n }", "private static void sendMail(String text) {\n Properties properties = System.getProperties();\n Session session = Session.getDefaultInstance(properties);\n\n //compose the message\n try{\n MimeMessage message = new MimeMessage(session);\n message.setFrom(new InternetAddress(from));\n message.addRecipient(Message.RecipientType.TO,new InternetAddress(to));\n message.setSubject(\"RAZER - AVAILABILITYT\");\n message.setText(text);\n\n // Send message\n Transport t = session.getTransport(\"smtps\");\n t.connect(\"smtp.gmail.com\", from, \"Shutting123\");\n t.sendMessage(message, message.getAllRecipients());\n log.error(\"message sent successfully....\");\n\n }catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }", "private Properties getSettings(String username, String password) {\n\t\tProperties p = new Properties();\n\t\n\t\tp.setProperty(\"mail.user\", username);\n\t\tp.setProperty(\"mail.address\", username + \"@bham.ac.uk\");\n\t\tp.setProperty(\"mail.password\", password);\n\t\tp.setProperty(\"mail.smtp.host\", \"auth-smtp.bham.ac.uk\");\n\t\tp.setProperty(\"mail.smtp.auth\", \"true\");\n\t\tp.setProperty(\"mail.smtp.port\", \"465\");\n\t\tp.setProperty(\"mail.smtp.socketFactory.port\", \"465\");\n\t\tp.setProperty(\"mail.smtp.socketFactory.class\",\n\t \"javax.net.ssl.SSLSocketFactory\");\n\t\treturn p;\n\t}", "public String syncEmail() throws MessagingException, IOException, InterruptedException {\n int num = 0;\n String folderName = \"inbox\";\n List<String> listEmailUIDDatabase = emailDao.getAllUIDByUserID(getUserId(), folderName);\n // get all UID from mail server storing in a list\n\n List<String> listEmailUIDServer = new ArrayList<String>();\n\n Store store = getStore();\n if (store != null) {\n POP3Folder fol = (POP3Folder) store.getFolder(folderName);\n fol.open(Folder.READ_WRITE);\n FetchProfile profile = new FetchProfile();\n profile.add(UIDFolder.FetchProfileItem.UID);\n Message[] messages = fol.getMessages();\n fol.fetch(messages, profile);\n int messNum = fol.getMessageCount();\n for (int i = 1; i <= messNum; i++) {\n// if ((i % 30) == 0) {\n// fol.close(true);\n// store.close();\n// // Thread.sleep(2000);\n// store = getStore();\n// fol = (POP3Folder) store.getFolder(folderName);\n// fol.open(Folder.READ_WRITE);\n// fol.fetch(fol.getMessages(), profile);\n// }\n try {\n Message me = fol.getMessage(i);\n String uid = fol.getUID(me);\n if (uid != null) {\n listEmailUIDServer.add(uid);\n if (!listEmailUIDDatabase.contains(uid)) {\n emailDao.insert(transformEmail(me, uid, null));\n num++;\n }\n }\n } catch (Exception ex) {\n LogUtil.addLog(ex);//binhnt sonar a160901\n //System.out.println(en.getMessage());\n// log.error(ex.getMessage());\n }\n if (i != messNum) {\n jsonDataGrid.setCustomInfo(\"still have\");\n } else {\n jsonDataGrid.setCustomInfo(\"finish\");\n }\n if (num == 5) {\n break;\n }\n }\n// for (int i = 0; i < messages.length; i++) {\n// String uid = fol.getUID(messages[i]);\n// listEmailUIDServer.add(uid);\n// //find a new mail\n// if (!listEmailUIDDatabase.contains(uid)) {\n//\n// emailDao.insert(transformEmail(messages[i], uid));\n//\n// }\n// }\n // find deleted mail\n for (int i = 0; i < listEmailUIDDatabase.size(); i++) {\n String st = listEmailUIDDatabase.get(i);\n if (!listEmailUIDServer.contains(st)) {\n // neu uid ko co tren server --> deleted\n emailDao.deleteByUid(getUserId(), st, folderName);\n }\n }\n fol.close(true);\n store.close();\n } else {\n jsonDataGrid.setCustomInfo(\"fail connect to server\");\n }\n onSearch();\n return GRID_DATA;\n }", "@Test\n public void checkNonBlockingAccess() throws MessagingException {\n Store pop = connect();\n // start an SMTP session\n Session smtp = connectSMTP();\n Transport smtpTrans = null;\n try {\n // send a message -- if we didn't do the servers right, this could deadlock\n MimeMessage msg = new MimeMessage(smtp);\n msg.setFrom(new InternetAddress(\"tester@localhost\"));\n msg.setSubject(\"simple message\");\n msg.setSentDate(new Date());\n msg.setText(\"body of a message\");\n final String address = \"dumbster@localhost\";\n msg.setRecipient(Message.RecipientType.TO, new InternetAddress(address));\n smtpTrans = smtp.getTransport(\"smtp\");\n smtpTrans.connect(\"localhost\", PORT_SMTP, \"dumbster\", \"\");\n smtpTrans.sendMessage(msg, InternetAddress.parse(address));\n\n // check for message -- if the mail store isn't shared, this won't show any new messages\n Folder inbox = pop.getFolder(\"INBOX\");\n inbox.open(Folder.READ_WRITE);\n int messageCount = inbox.getMessageCount();\n Assert.assertEquals(\"mail store seems not to be shared\", 1, messageCount);\n\n } finally {\n // close SMTP session -- clean up afterward\n if (smtpTrans != null) {\n smtpTrans.close();\n }\n // close POP session -- clean up afterward\n pop.close();\n }\n }", "public String enviarcorreo(String receptor, String asunto, String mensaje, String telefono, String nombre){\ntry {final String username = \"[email protected]\";\n final String password = \"32sky4951m\";\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n\n Properties props = new Properties();\n props.put(\"mail.smtp.auth\", \"true\");\n props.put(\"mail.smtp.ssl.trust\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.starttls.enable\", \"true\");\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n /*Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });*/\n\n Session session = Session.getInstance(props, new GMailAuthenticator(username, password));\n\n try {\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(\"[email protected]\"));\n message.setSubject(asunto);\n mensaje = \"Nombre y Apellido:\" + \"<br>\" + nombre+ \"<br>\" + \"<br>\" +\n \"Correo Electronico:\" + \"<br>\" + receptor + \"<br>\" +\"<br>\" +\n \"N° de Teléfono:\" + \"<br>\" + telefono+ \"<br>\" + \"<br>\" +\n \"ASUNTO DEL MENSAE:\" +\"<br>\" + mensaje;\n message.setContent(mensaje,\"text/html; charset=utf-8\");\n\n Transport.send(message);\n\n System.out.println(\"Done\");\n respuesta=\"Su mensaje ha sido enviado\";\n } catch (MessagingException e) {\n respuesta=\"Error al enviar\";\n throw new RuntimeException(e);\n\n }\n\n} catch (Exception e) {\n respuesta=\"Error al enviar, verifique su conexión\";\n throw new RuntimeException(e);\n\n }\n\n\n return respuesta;\n }", "public MailSendObj() {\n\t\t// TODO Auto-generated constructor stub\n\t\tprops.setProperty(\"mail.transport.protocol\", \"smtp\"); // 使用的协议(JavaMail规范要求) \n props.put(\"mail.smtp.host\", \"smtp.office365.com\");\n props.put(\"mail.smtp.port\", \"587\");\n props.put(\"mail.smtp.starttls.enable\",\"true\");\n props.put(\"mail.smtp.auth\", \"true\"); \n\t\t\n\t}", "public String getMailing() {\n return mailing;\n }", "public void establishConnection() {\r\n\t\t// Load IMAP-Account credentials from the property file\r\n\t\tProperties prop = new Properties();\r\n\t\tInputStream in = this.getClass().getClassLoader().getResourceAsStream(\"server_resources/IMAPAccountCredentials.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tin.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\thost = prop.getProperty(\"imapHost\");\r\n\t\tuser = prop.getProperty(\"imapUsername\");\r\n\t\tpassword = prop.getProperty(\"imapPassword\");\r\n\t\tuseSSL = Boolean.parseBoolean(prop.getProperty(\"useSSL\"));\r\n\r\n\t\t// Create session for account\r\n\t\tProperties props = new Properties();\r\n\t\tprops.put(\"mail.imap.host\", host);\r\n\t\tif (useSSL) {\r\n\t\t\tprops.put(\"mail.imap.socketFactory.port\", \"993\");\r\n\t\t\tprops.put(\"mail.imap.socketFactory.class\", \"javax.net.ssl.SSLSocketFactory\");\r\n\t\t\tprops.put(\"mail.imap.auth\", \"true\");\r\n\t\t\tprops.put(\"mail.imap.port\", \"993\");\r\n\t\t}\r\n\t\tSession session = Session.getDefaultInstance(props, new javax.mail.Authenticator() {\r\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\r\n\t\t\t\treturn new PasswordAuthentication(user, password);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tfinal URLName unusedUrlName = null;\r\n\t\tif (useSSL) {\r\n\t\t\tstore = new IMAPSSLStore(session, unusedUrlName);\r\n\t\t} else {\r\n\t\t\tstore = new IMAPStore(session, unusedUrlName);\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tstore.connect(host, user, password);\r\n\t\t} catch (MessagingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void sendBookingConfirmMailWithMailtrapProvider(String userEmail, String token) throws MessagingException {\n String to = userEmail;//change accordingly \n// Gmail’s SMTP account,\n\n String userName = \"91c28c9b77f112\";//from mailtrap\n String password = \"9d4d7fbf411267\";\n\n //Get the session object \n //1. sets SMTP server properties\n Properties properties = new Properties();\n properties.put(\"mail.smtp.auth\", true);\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\n properties.put(\"mail.smtp.host\", \"smtp.mailtrap.io\");\n properties.put(\"mail.smtp.port\", \"25\");\n properties.put(\"mail.smtp.ssl.trust\", \"smtp.mailtrap.io\");\n //2. creates a new session with an authenticator\n Authenticator auth = new Authenticator() {\n @Override\n public PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(userName, password);\n }\n };\n\n Session session = Session.getInstance(properties, auth);\n\n //3. Creates a new e-mail message\n Message msg = new MimeMessage(session);\n\n msg.setFrom(new InternetAddress(\"[email protected]\"));\n InternetAddress[] toAddresses = {new InternetAddress(to)};\n msg.setRecipients(Message.RecipientType.TO, toAddresses);\n msg.setSubject(\"Test send mail\");\n msg.setSentDate(new Date());\n msg.setText(\"Hello, this is example of sending email. ?token=\" + token);\n\n// MimeMessage message = new MimeMessage(session);\n// message.setFrom(new InternetAddress(from));\n// message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));\n //4. Send the message\n Transport.send(msg);\n System.out.println(\"message sent successfully....\");\n\n }", "public static void main(String[] args) throws UnknownHostException, AddressException, MessagingException {\n\t\tSystem.out.println(InetAddress.getLocalHost().getHostAddress());\n\t\tMonitoringMail mail = new MonitoringMail();\n\t\tString messageBody=\"https://\"+InetAddress.getLocalHost().getHostAddress()+ \":8080/C:/work/Selenium/LiveProjects/PageObjectModelBasics/target/surefire-reports/html/extent.html\";\n\t\tSystem.out.println(messageBody);\n\t\tmail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, messageBody,TestConfig.attachmentPath, TestConfig.attachmentName);\n\t}", "public String getGmailAddress() {\r\n return GmailAddress;\r\n }", "private void composeEmail() {\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:[email protected]\"));\n if (intent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(intent);\n }\n }", "public void processMail() {\n\t\tmessageList.clear();\n\t\tSession session = null;\n\t\tStore store = null;\n\t\tMessage message = null;\n\t\tMessage[] messages = null;\n\t\tObject messagecontentObject = null;\n\t\tString sender = null;\n\t\tString replyTo = null;\n\t\tString subject = null;\n\t\tMultipart multipart = null;\n\t\tPart part = null;\n\t\tString contentType = null;\n\t\tProperties properties = System.getProperties();\n\t\tsession = Session.getDefaultInstance(properties, new javax.mail.Authenticator(){\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication(){\n\t\t\t\t\treturn new PasswordAuthentication(username, password);\n\t\t\t}\n\t\t});\n\t\t\n\t\ttry {\n\t\t\tstore = session.getStore(\"imaps\");\n\t\t\t\n\t\t\tstore.connect(\"imap.gmail.com\", username,\n\t\t\t\t\tpassword);\n\t\t\tSystem.out.println(\"Login Successful\");\n\n\t\t\t// Get a handle on the default folder\n\t\t\tfolder = store.getDefaultFolder();\n\n\t\t\t//printData(\"Getting the Inbox folder.\");\n\n\t\t\t// Retrieve the \"Inbox\"\n\t\t\tfolder = folder.getFolder(\"inbox\");\n\n\t\t\t// Reading the Email Index in Read / Write Mode\n\t\t\tfolder.open(Folder.READ_WRITE);\n\n\t\t\t// Retrieve the messages\n\t\t\tmessages = folder.getMessages();\n\n\t\t\t// Loop over all of the messages\n\t\t\tfor (int messageNumber = 0; messageNumber < messages.length; messageNumber++) {\n\t\t\t\t// Retrieve the next message to be read\n\t\t\t\tmessage = messages[messageNumber];\n\n\t\t\t\t// Retrieve the message content\n\t\t\t\tmessagecontentObject = message.getContent();\n\t\t\t\tDate messageDate = message.getReceivedDate();\n\n\t\t\t\t// Determine email type\n\t\t\t\tif (messagecontentObject instanceof Multipart) {\n\t\t\t\t\t//printData(\"Found Email with Attachment\");\n\t\t\t\t\tsender = ((InternetAddress) message.getFrom()[0])\n\t\t\t\t\t\t\t.getPersonal();\n\t\t\t\t\treplyTo = ((InternetAddress)message.getReplyTo()[0]).getAddress();\n\n\t\t\t\t\t// If the \"personal\" information has no entry, check the\n\t\t\t\t\t// address for the sender information\n\t\t\t\t\t//printData(\"If the personal information has no entry, check the address for the sender information.\");\n\n\t\t\t\t\tif (sender == null) {\n\t\t\t\t\t\tsender = ((InternetAddress) message.getFrom()[0])\n\t\t\t\t\t\t\t\t.getAddress();\n\t\t\t\t\t\treplyTo = ((InternetAddress)message.getReplyTo()[0]).getAddress();\n\t\t\t\t\t\t//printData(\"sender in NULL. Printing Address:\" + sender);\n\t\t\t\t\t}\n\t\t\t\t\t//printData(\"Sender:\" + sender);\n\n\t\t\t\t\t// Get the subject information\n\t\t\t\t\tsubject = message.getSubject();\n\n\t\t\t\t\t//printData(\"Subject:\" + subject);\n\n\t\t\t\t\t// Retrieve the Multipart object from the message\n\t\t\t\t\tmultipart = (Multipart) message.getContent();\n\n\t\t\t\t\t// printData(\"Retrieve the Multipart object from the message\");\n\t\t\t\t\tString text = \"\";\n\t\t\t\t\t// Loop over the parts of the email\n\t\t\t\t\tfor (int i = 0; i < multipart.getCount(); i++) {\n\t\t\t\t\t\t// Retrieve the next part\n\t\t\t\t\t\tpart = multipart.getBodyPart(i);\n\n\t\t\t\t\t\t// Get the content type\n\t\t\t\t\t\tcontentType = part.getContentType();\n\n\t\t\t\t\t\t// Display the content type\n\t\t\t\t\t\t// printData(\"Content: \" + contentType);\n\n\t\t\t\t\t\tif (contentType.startsWith(\"TEXT/PLAIN\")) {\n\t\t\t\t\t\t\ttext = part.getContent().toString();\n\t\t\t\t\t\t\t// printData(\"---------reading content type text/plain mail -------------\");\n\t\t\t\t\t\t\tSystem.out.println(text);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Retrieve the file name\n\t\t\t\t\t\t\tString fileName = part.getFileName();\n\t\t\t\t\t\t\t// printData(\"retrive the fileName=\"+ fileName);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tmessageList.add(new MyMessage(message, sender, replyTo, subject, text, messageDate));\n\t\t\t\t} else {\n\t\t\t\t\t//printData(\"Found Mail Without Attachment\");\n\t\t\t\t\tsender = ((InternetAddress) message.getFrom()[0])\n\t\t\t\t\t\t\t.getPersonal();\n\t\t\t\t\treplyTo = ((InternetAddress)message.getReplyTo()[0]).getAddress();\n\n\t\t\t\t\t// If the \"personal\" information has no entry, check the\n\t\t\t\t\t// address for the sender information\n\t\t\t\t\t//printData(\"If the personal information has no entry, check the address for the sender information.\");\n\n\t\t\t\t\tif (sender == null) {\n\t\t\t\t\t\tsender = ((InternetAddress) message.getFrom()[0])\n\t\t\t\t\t\t\t\t.getAddress();\n\t\t\t\t\t\treplyTo = ((InternetAddress)message.getReplyTo()[0]).getAddress();\n\t\t\t\t\t\t//printData(\"sender in NULL. Printing Address:\" + sender);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Get the subject information\n\t\t\t\t\tsubject = message.getSubject();\n\t\t\t\t\t//printData(\"subject=\" + subject);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Close the folder\n\t\t\tfolder.close(true);\n\n\t\t\t// Close the message store\n\t\t\tstore.close();\n\t\t} catch (AuthenticationFailedException e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t} catch (FolderClosedException e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t} catch (FolderNotFoundException e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t} catch (NoSuchProviderException e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t} catch (ReadOnlyFolderException e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t} catch (StoreClosedException e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Not able to process the mail reading.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void send(Email email);", "public static void main(String[] args) {\n\t\tEmail email1 = new Email(\"Monis\",\"Saeed\");\r\n\t\temail1.SetAlternateEmail(\"[email protected]\");\r\n\t\temail1.SetMailBoxCapacity(500);\r\n\t\t\r\n\t\tSystem.out.println(email1.ShowInfo());\r\n\t}", "public void AuthenticatorPinGen(String To,int pin,String name) {\n String to = To;\n String from = \"Your mailing Id\";\n Properties properties= new Properties();\n properties.put(\"mail.smtp.auth\", \"true\");\n properties.put(\"mail.smtp.starttls.enable\", \"true\");\n properties.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n properties.put(\"mail.smtp.port\", 587);\n\n //write your email id and password here(from where you want to send mails to your clients)\n Session session=Session.getDefaultInstance(properties,new javax.mail.Authenticator(){\n protected PasswordAuthentication getPasswordAuthentication(){\n return new PasswordAuthentication(\"Your Email Id\", \"Your Password\");\n }\n });\n try{\n MimeMessage message = new MimeMessage(session);\n message.setFrom(new InternetAddress(from));\n message.addRecipient(Message.RecipientType.TO,new InternetAddress(to));\n //Subject\n message.setSubject(\"Authentication Pin Number\");\n //Body\n message.setText(\"Hello MR.\"+name+\",\\nYour pin number is \"+pin);\n Transport.send(message);\n System.out.println(\"sending\");\n }\n catch (MessagingException e) {\n e.printStackTrace();\n }\n }", "public void mailPromo(String fname, String customerEmail, String promo, double discount){\n\t Properties props = makeProps();\r\n\t \r\n\t final String username = \"[email protected]\";\r\n\t final String password = \"movie4050\";\r\n\t \r\n\t try{\r\n\t Session session = Session.getDefaultInstance(props, \r\n\t new Authenticator(){\r\n\t protected PasswordAuthentication getPasswordAuthentication() {\r\n\t return new PasswordAuthentication(username,password);}});\r\n\t // -- Create a new message --\r\n\t Message msg = new MimeMessage(session);\r\n\t \r\n\t /* from */\r\n\t msg.setFrom(new InternetAddress(username));\r\n\t \r\n\t /* to */\r\n\t msg.setRecipients(Message.RecipientType.TO, \r\n\t InternetAddress.parse(customerEmail,false));\r\n\t /* title */\r\n\t msg.setSubject(\"New Promotion!\");\r\n\t \r\n\t /* text field */ \r\n\t String sendThis = \"Hello \"+fname + \"!\\n\\n\"\r\n\t + \"We are emailing you to inform you that there is a new promotion.\\n\"\r\n\t + \"Use code -- \"+promo+\" -- to save $\" + discount + \"0 on your next purchase on CINEMA4050!\\n\"\r\n\t + \"Thank you for using our service!\\n\";\r\n\t msg.setText(sendThis);\r\n\t msg.setSentDate(new Date());\r\n\t Transport.send(msg);\r\n\t \r\n\t System.out.println(\"Message sent.\");\r\n\t }catch (MessagingException e){ \r\n\t System.out.println(\"Error: \" + e);\r\n\t }\r\n\t \r\n\t }", "public void sendOtp(String medium) {\n\r\n }", "public void sendemail(String sender,String to,String pass,String companyname){\n final String username = sender;\n final String password = pass;\n\n Properties props = new Properties();\n props.put(\"mail.smtp.auth\", true);\n props.put(\"mail.smtp.starttls.enable\", true);\n props.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n props.put(\"mail.smtp.port\", \"587\");\n\n Session session = Session.getInstance(props,\n new javax.mail.Authenticator() {\n protected javax.mail.PasswordAuthentication getPasswordAuthentication() {\n return new javax.mail.PasswordAuthentication(username, password);\n }\n });\n\n try {\n\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(Message.RecipientType.TO,\n InternetAddress.parse(to));\n message.setSubject(companyname+\" Db Backup\");\n message.setText(\"Security system at \"+companyname+\" database attached...\");\n\n MimeBodyPart messageBodyPart = new MimeBodyPart();\n\n Multipart multipart = new MimeMultipart();\n\n messageBodyPart = new MimeBodyPart();\n String file = path;\n //String fileName = companyname+\" Database Backup\";\n DataSource source = new FileDataSource(file);\n messageBodyPart.setDataHandler(new DataHandler(source));\n messageBodyPart.setFileName(path);\n multipart.addBodyPart(messageBodyPart);\n\n message.setContent(multipart);\n\n System.out.println(\"Sending...\");\n\n Transport.send(message);\n\n System.out.println(\"Done\");\n\n } catch (MessagingException e) {\n \n }\n }", "public interface GmailClientFactory {\n /**\n * Creates a GmailClient instance\n *\n * @param credential a valid Google credential object\n * @return a GmailClient instance that contains the user's credentials\n */\n GmailClient getGmailClient(Credential credential);\n}", "private void retrieveAndCheck(GreenMailRule greenMail, InternetAddress addr) throws MessagingException {\n String address = addr.getAddress();\n retrieveAndCheck(greenMail.getPop3(), address);\n retrieveAndCheck(greenMail.getImap(), address);\n }", "void send(String email, Locale locale);", "private void sendPush1(){\n ParseQuery pushQuery = ParseInstallation.getQuery();\n pushQuery.whereEqualTo(\"injuryReports\", true);\n\n// Send push notification to query\n ParsePush push = new ParsePush();\n push.setQuery(pushQuery); // Set our Installation query\n push.setMessage(\"Willie Hayes injured by own pop fly.\");\n push.sendInBackground();\n }", "public Gmail getGmailService() throws IOException {\n\t\tCredential credential = this.googleCred;\n\t\treturn new Gmail.Builder(HTTP_TRANSPORT, JSON_FACTORY, credential)\n\t\t\t\t.setApplicationName(APP_NAME)\n\t\t\t\t.build();\n\t}", "private Session createSession(final String protocol, final Properties additionalProperties, final boolean isGmail,\n final boolean autoTrustSsl)\n {\n Properties props = new Properties(additionalProperties);\n // necessary to work with Gmail\n if (isGmail && !props.containsKey(\"mail.imap.partialfetch\") && !props.containsKey(\"mail.imaps.partialfetch\")) {\n props.put(\"mail.imap.partialfetch\", \"false\");\n props.put(\"mail.imaps.partialfetch\", \"false\");\n }\n props.put(\"mail.store.protocol\", protocol);\n // TODO set this as an option (auto-trust certificates for SSL)\n props.put(\"mail.imap.ssl.checkserveridentity\", \"false\");\n props.put(\"mail.imaps.ssl.trust\", \"*\");\n /*\n * MailSSLSocketFactory socketFactory = new MailSSLSocketFactory(); socketFactory.setTrustAllHosts(true);\n * props.put(\"mail.imaps.ssl.socketFactory\", socketFactory);\n */\n Session session = Session.getInstance(props, null);\n session.setDebug(true);\n\n return session;\n }", "@Bean\n public JavaMailSender javaMailService() {\n JavaMailSenderImpl javaMailSender = new JavaMailSenderImpl();\n \n javaMailSender.setHost(\"smtp.gmail.com\");\n javaMailSender.setPort(587);\n javaMailSender.setUsername(\"\");\n javaMailSender.setPassword(\"\");\n javaMailSender.setJavaMailProperties(getMailProperties());\n \n return javaMailSender;\n }", "@Override\n public void onClick(View view) {\n Intent i = new Intent(Intent.ACTION_SEND);\n i.setType(\"message/rfc822\");\n i.putExtra(Intent.EXTRA_EMAIL , new String[]{\"\"});\n i.putExtra(Intent.EXTRA_SUBJECT, \"\");\n i.putExtra(Intent.EXTRA_TEXT , \"\");\n try {\n startActivity(Intent.createChooser(i, \"Envoyer un mail\"));\n } catch (android.content.ActivityNotFoundException ex) {\n Toast.makeText(MainActivity.this, \"There are no email clients installed.\", Toast.LENGTH_SHORT).show();\n }\n }", "public String getMail() {\r\n\t\treturn mail;\r\n\t}", "public void signUpNew(String mail,String password){\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n String dateTime = simpleDateFormat.format(Calendar.getInstance().getTime());\n\n //device ID\n String deviceId = Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID);\n\n headers = new HashMap<>();\n headers.put(\"mail\",mail);\n headers.put(\"password\",password);\n headers.put(\"subscriptionDateTime\",dateTime);\n headers.put(\"deviceId\",deviceId);\n\n String url = serverUrl + \"/sign_up\";\n sendRequestNew(url,headers);\n }", "public void getSendEmail() {\n driver.get(getBASE_URL() + getSendMailURL);\n }", "public void setGmailAddress(String gmailAddress) {\r\n GmailAddress = gmailAddress;\r\n }", "public Message[] readUnseenMessages(EmailReceivingParameters emailReceivingParameters)\r\n\t{\r\n\t\t Message[] messages=null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t Properties properties = new Properties();\r\n\r\n\t properties.put(\"mail.pop3.host\", emailReceivingParameters.getHostName());\r\n\t properties.put(\"mail.pop3.port\", \"995\");\r\n\t properties.put(\"mail.pop3.starttls.enable\", \"true\");\r\n\t Session emailSession = Session.getDefaultInstance(properties);\r\n\t \r\n\t //create the POP3 store object and connect with the pop server\r\n\t Store store = emailSession.getStore(\"pop3s\");\r\n\r\n\t store.connect(emailReceivingParameters.getHostName(), emailReceivingParameters.getUserName(), emailReceivingParameters.getPassword());\r\n\r\n\t //create the folder object and open it\r\n\t Folder emailFolder = store.getFolder(\"INBOX\");\r\n\t emailFolder.open(Folder.READ_ONLY);\r\n\r\n\t // retrieve the messages from the folder in an array and print it\r\n\t messages = emailFolder.getMessages();\r\n\t System.out.println(\"messages.length---\" + messages.length);\r\n\r\n\t for (int i = 0, n = messages.length; i < n; i++) \r\n\t {\r\n\t Message message = messages[i];\r\n\t System.out.println(\"---------------------------------\");\r\n\t System.out.println(\"Email Number \" + (i + 1));\r\n\t System.out.println(\"Subject: \" + message.getSubject());\r\n\t System.out.println(\"From: \" + message.getFrom()[0]);\r\n\t System.out.println(\"Text: \" + message.getContent().toString());\r\n\r\n\t }\r\n\r\n\t emailFolder.close(false);\r\n\t store.close();\r\n\r\n\t } \r\n\t\t catch (NoSuchProviderException e) \r\n\t\t {\r\n\t e.printStackTrace();\r\n\t } \r\n\t\t catch (MessagingException e) \r\n\t\t {\r\n\t e.printStackTrace();\r\n\t } \r\n\t\t catch (Exception e) \r\n\t\t {\r\n\t e.printStackTrace();\r\n\t }\r\n\t\treturn messages;\r\n\t}", "public void sendPasswordEmail(String myEmail) {\n String to = myEmail;\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from this host\n String host = \"smtp.gmail.com\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n properties.setProperty(\"mail.smtp.starttls.enable\", \"true\");\n properties.setProperty(\"mail.smtp.auth\", \"true\");\n properties.setProperty(\"mail.smtp.port\", \"587\");\n // Get the default Session object.\n Session session = Session.getInstance(properties, new javax.mail.Authenticator() {\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(\"[email protected]\", \"itkstuadmin\");\n }\n });\n\n try {\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO,\n new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject(\"Password\");\n\n // Send the actual HTML message, as big as you like\n message.setContent(\"<p>Hello \" + theModel.getEmail() + \", your password is: \" + theModel.getPassword() + \"</p>\", \"text/html;charset=UTF-8\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n } catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }", "public POP3Pane() {\n startedProperty.setValue(MailServer.getInstance().isPOP3Started());\n portField.setText(Integer.toString(MailServer.getInstance().getPop3Port()));\n }", "void send(String emailName);", "public static void main(String[] args) throws EmailException {\n\n\t\tString text= \"<table><tr><td>EmpId</td><td>Emp name</td><td>age</td></tr><tr><td>value</td><td>value</td><td>value</td></tr></table>\";\n\t\tEmail email=new SimpleEmail();\n\t\t//MailMessage mail = new MailMessage();\n\t\t\n\t\temail.setHostName(\"smtp.googlemail.com\");\n\t\temail.setSmtpPort(465);\n\t\temail.setAuthenticator(new DefaultAuthenticator(\"[email protected]\", \"\"));\n\t\temail.setSSL(true);\n\t\temail.setFrom(\"[email protected]\");\n\t\temail.setSubject(\"TestMail\");\n\t\temail.setMsg(text);\n\t\t\n\t\temail.addTo(\"[email protected]\");\n\t\temail.send();\n\t\t\n\t\tSystem.out.println(\"Email Sent Sucessfully\");\n\t\t\n}", "public static Gmail getGmailService() throws IOException {\n\t\tCredential credential = authorize();\n\t\treturn new Gmail.Builder(HTTP_TRANSPORT, JSON_FACTORY, credential).setApplicationName(APPLICATION_NAME).build();\n\t}", "public void getMessages(String hostname, String username, String password)\r\n\t\t\tthrows PopException, MimeException, IOException {\r\n\t\t// ensure that messages directory is valid\r\n\t\tif (!messagesDir.exists()) {\r\n\t\t\tmessagesDir.mkdir();\r\n\t\t}\r\n\r\n\t\t// ensure that attachments directory is valid\r\n\t\tif (!attachmentsDir.exists()) {\r\n\t\t\tattachmentsDir.mkdir();\r\n\t\t}\r\n\r\n\t\t// connect and login\r\n//\t\tPop pop = new Pop(hostname, username, password);\r\n//\t\tpop.setDelete(false);\r\n//\t\tpop.connect();\r\n\t\tPopSsl ssl = new PopSsl(hostname,995,username,password);\r\n\t\tssl.setDebug(true);\r\n\t\tssl.setDelete(false);\r\n\t\tssl.connect();\r\n\r\n\t\tSystem.out.println(\"Retrieving messsages...\");\r\n\r\n\t\t// get messages\r\n\t\tEnumeration<EmailMessage> messages = ssl.getMessages();\r\n\t\tif (!messages.hasMoreElements()) {\r\n\t\t\tSystem.out.println(\"No messages found\");\r\n\t\t}\r\n\r\n\t\t// write messages to disk\r\n\t\tint msgnum = 0;\r\n\t\twhile (messages.hasMoreElements()) {\r\n\t\t\t++msgnum;\r\n\t\t\tEmailMessage msg = (EmailMessage) messages.nextElement();\r\n\t\t\tFile f = new File(messagesDir, \"msg\" + msgnum + \".txt\");\r\n\t\t\tFileOutputStream fout = new FileOutputStream(f);\r\n//\t\t\tfout.write(msg.getMessage());\r\n\t\t\tfout.write(msg.getBodyData());\r\n\t\t\tfout.close();\r\n\t\t\tSystem.out.println(\"Retrieved message: \" + f.getAbsoluteFile());\r\n\r\n\t\t\t// write attachments to disk\r\n\t\t\tint attachnum = 0;\r\n\t\t\tEnumeration<Attachment> attachments = msg.getAttachments();\r\n\t\t\twhile (attachments.hasMoreElements()) {\r\n\t\t\t\t++attachnum;\r\n\t\t\t\tAttachment attach = (Attachment) attachments.nextElement();\r\n\t\t\t\tString attachmentFileName = attach.getFilename();\r\n\t\t\t\tif (attachmentFileName == null) {\r\n\t\t\t\t\tattachmentFileName = \"attachment\" + msgnum + \"-\"\r\n\t\t\t\t\t\t\t+ attachnum;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tString fileName = attach.getFilename();\r\n\t\t\t\tif (fileName == null) {\r\n\t\t\t\t\tfileName = System.currentTimeMillis() + \".txt\";\r\n\t\t\t\t}\r\n\t\t\t\tFile attFile = new File(attachmentsDir, fileName);\r\n\t\t\t\tFileOutputStream attOut = new FileOutputStream(attFile);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tattOut.write(attach.getFileData());\r\n\t\t\t\t\tattOut.close();\r\n\t\t\t\t\tSystem.out.println(\"Retrieved attachment: \"\r\n\t\t\t\t\t\t\t+ attFile.getAbsoluteFile());\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tthrow new PopException(\"unable to decode file attachment\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tssl.disconnect();\r\n\t}", "private void SendEmail(String password, String emailTo, String staffNames)\n {\n String to = emailTo;\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"smtp.upcmail.ie\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n properties.setProperty(\"mail.smtp.host\", host);\n \n // Get the default Session object.\n Session session = Session.getDefaultInstance(properties);\n\n try{\n // Create a default MimeMessage object.\n MimeMessage message = new MimeMessage(session);\n\n // Set From: header field of the header.\n message.setFrom(new InternetAddress(from));\n\n // Set To: header field of the header.\n message.addRecipient(Message.RecipientType.TO,\n new InternetAddress(to));\n\n // Set Subject: header field\n message.setSubject(\"Password Change From Help Manager\");\n\n // Now set the actual message\n message.setText(\"Hello \"+staffNames +\", \\n\\n Your new Password is: \"+ password +\".\\n\\n Regards \\n Help Manager Team\");\n\n // Send message\n Transport.send(message);\n System.out.println(\"Sent message successfully....\");\n }catch (MessagingException mex) {\n mex.printStackTrace();\n }\n }", "String getEmailLocation();", "@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 }" ]
[ "0.64161384", "0.6160705", "0.6100918", "0.6019106", "0.58074325", "0.5728614", "0.5710896", "0.55323786", "0.55291986", "0.53907263", "0.5355508", "0.5345905", "0.5336207", "0.53240544", "0.52784896", "0.52777845", "0.5232567", "0.52186143", "0.5218046", "0.5184782", "0.51699734", "0.5169901", "0.5159657", "0.5152303", "0.5138913", "0.509823", "0.5086803", "0.5064933", "0.5057454", "0.50163084", "0.49900877", "0.4969515", "0.49655345", "0.49646983", "0.49575663", "0.49395394", "0.49248987", "0.49209", "0.49171972", "0.49161845", "0.49089608", "0.490599", "0.489082", "0.48904905", "0.48790795", "0.4877857", "0.487682", "0.48747954", "0.48746526", "0.48734683", "0.48715833", "0.4868274", "0.48629203", "0.4860316", "0.48587266", "0.48514158", "0.4839589", "0.4838548", "0.4832214", "0.48275137", "0.48265913", "0.48145384", "0.48068875", "0.4806254", "0.48019928", "0.4799985", "0.478886", "0.47787803", "0.47743812", "0.47738665", "0.47732198", "0.47626832", "0.47586992", "0.4754447", "0.4750082", "0.47476357", "0.47399315", "0.47270215", "0.4722059", "0.4719941", "0.47113213", "0.4710005", "0.47085425", "0.47071722", "0.47009474", "0.4692001", "0.46874973", "0.46868446", "0.46764934", "0.4676248", "0.46726283", "0.46719036", "0.46702698", "0.46636564", "0.46612975", "0.46602818", "0.465914", "0.46568838", "0.4641963", "0.46389773" ]
0.5820695
4
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_power_list, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246451", "0.7201833", "0.7195169", "0.7176824", "0.71071094", "0.7039687", "0.70379424", "0.7011622", "0.70095545", "0.69799995", "0.6945173", "0.69389343", "0.6933555", "0.69172555", "0.69172555", "0.68906796", "0.688355", "0.687496", "0.6874772", "0.68613136", "0.68613136", "0.68613136", "0.68613136", "0.6852252", "0.6846455", "0.6818823", "0.6816676", "0.68122935", "0.68119055", "0.68119055", "0.6805087", "0.68003947", "0.6797015", "0.67904633", "0.6789411", "0.67871827", "0.6782913", "0.67593676", "0.6756442", "0.6747255", "0.6742987", "0.6742987", "0.6740183", "0.67392707", "0.67249876", "0.67237884", "0.67217875", "0.67217875", "0.6719964", "0.6711429", "0.6706682", "0.67035955", "0.6699167", "0.66980296", "0.6696009", "0.6694031", "0.66855574", "0.66825926", "0.66825926", "0.6682556", "0.66795844", "0.6678825", "0.6676161", "0.66680866", "0.66665506", "0.66625977", "0.6657122", "0.6657122", "0.6657122", "0.6656225", "0.6653723", "0.6653723", "0.6653723", "0.66520125", "0.6651581", "0.6649255", "0.6648212", "0.6646545", "0.6646233", "0.66460145", "0.6645477", "0.6644324", "0.66441935", "0.6642723", "0.66420346", "0.66412085", "0.6638387", "0.6633755", "0.66334134", "0.66321", "0.663127", "0.663127", "0.663127", "0.6628276", "0.6627496", "0.6626989", "0.6625628", "0.6623483", "0.6620039", "0.66181844", "0.66181844" ]
0.0
-1
FROM POWER LIST CONTRACT INTERFACE
@Override public void showPowerDetailsUI(String itemId, String itemName, String powerListId, View transitioningView, String powerListName) { if (transitioningView != null){ Intent i = new Intent(PowerListActivity.this, PowerDetailsActivity.class); String transitionName = getString(R.string.transition_powerDetails_name); ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation( PowerListActivity.this, transitioningView, transitionName); Bundle bundle = options.toBundle(); i.putExtra(PowerDetailsActivity.EXTRA_POWER_DETAIL_ID, itemId); i.putExtra(PowerDetailsActivity.EXTRA_POWER_LIST_ID, powerListId); i.putExtra(PowerDetailsActivity.EXTRA_POWER_DETAIL_NAME, itemName); i.putExtra(PowerDetailsActivity.EXTRA_POWER_LIST_NAME, powerListName); ActivityCompat.startActivity(PowerListActivity.this, i, bundle); } else this.openPowerDetailsActivity(itemId, powerListId, powerListName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ListService {\n\n public String showListCmd();\n\n}", "void mo29842a(IObjectWrapper iObjectWrapper, zzatk zzatk, List<String> list) throws RemoteException;", "void mo29841a(IObjectWrapper iObjectWrapper, zzaiq zzaiq, List<zzaiw> list) throws RemoteException;", "public interface Ops extends OpsOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}", "public interface MyCallbacl_refresherlist {\n\n void addtolist(GPScoords_price obj);\n void removefromlist(String obj);\n\n\n}", "public interface C0435b {\n void m2121a(Intent intent, List list, List list2);\n }", "void list()\n\t{\n\t\toperation.list();\n\t\t\n\t}", "public abstract interface LinphoneFriend\n/* 6: */ {\n/* 7: */ public abstract void setAddress(LinphoneAddress paramLinphoneAddress);\n/* 8: */ \n/* 9: */ public abstract LinphoneAddress getAddress();\n/* 10: */ \n/* 11: */ public abstract void setIncSubscribePolicy(SubscribePolicy paramSubscribePolicy);\n/* 12: */ \n/* 13: */ public abstract SubscribePolicy getIncSubscribePolicy();\n/* 14: */ \n/* 15: */ public abstract void enableSubscribes(boolean paramBoolean);\n/* 16: */ \n/* 17: */ public abstract boolean isSubscribesEnabled();\n/* 18: */ \n/* 19: */\n/* 22: */ public abstract OnlineStatus getStatus();\n/* 23: */ \n/* 24: */ public abstract PresenceModel getPresenceModel();\n/* 25: */ \n/* 26: */ public abstract void edit();\n/* 27: */ \n/* 28: */ public abstract void done();\n/* 29: */ \n/* 30: */ public abstract String toString();\n/* 31: */ \n/* 32: */ public abstract long getNativePtr();\n/* 33: */ \n/* 34: */ public abstract void setRefKey(String paramString);\n/* 35: */ \n/* 36: */ public abstract String getRefKey();\n/* 37: */ \n/* 38: */ public static class SubscribePolicy\n/* 39: */ {\n/* 40:40 */ private static Vector<SubscribePolicy> values = new Vector();\n/* 41: */ protected final int mValue;\n/* 42: */ private final String mStringValue;\n/* 43:47 */ public static final SubscribePolicy SPWait = new SubscribePolicy(0, \"SPWait\");\n/* 44:51 */ public static final SubscribePolicy SPDeny = new SubscribePolicy(1, \"SPDeny\");\n/* 45:55 */ public static final SubscribePolicy SPAccept = new SubscribePolicy(2, \"SPAccept\");\n/* 46: */ \n/* 47: */ private SubscribePolicy(int value, String stringValue)\n/* 48: */ {\n/* 49:59 */ this.mValue = value;\n/* 50:60 */ values.addElement(this);\n/* 51:61 */ this.mStringValue = stringValue;\n/* 52: */ }\n/* 53: */ \n/* 54: */ public static SubscribePolicy fromInt(int value)\n/* 55: */ {\n/* 56:65 */ for (int i = 0; i < values.size(); i++)\n/* 57: */ {\n/* 58:66 */ SubscribePolicy policy = (SubscribePolicy)values.elementAt(i);\n/* 59:67 */ if (policy.mValue == value) {\n/* 60:67 */ return policy;\n/* 61: */ }\n/* 62: */ }\n/* 63:69 */ throw new RuntimeException(\"Policy not found [\" + value + \"]\");\n/* 64: */ }\n/* 65: */ \n/* 66: */ public String toString()\n/* 67: */ {\n/* 68:72 */ return this.mStringValue;\n/* 69: */ }\n/* 70: */ }\n/* 71: */ }", "public interface DList {\n}", "public interface FlyWeight {\n\n List<Item> getList();\n}", "public interface CurrentMaintenanceOperationIterator_I extends CurrentMaintenanceOperationIterator_IOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}", "@Override public void notifyMusic(java.util.List<com.jancar.media.data.Music> list) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\n_data.writeTypedList(list);\nmRemote.transact(Stub.TRANSACTION_notifyMusic, _data, _reply, 0);\n_reply.readException();\n_reply.readTypedList(list, com.jancar.media.data.Music.CREATOR);\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\n}", "public interface IGuiLogic extends IJcowsLogic {\n \n /**\n * Invokes the web service with the specified parameter list.\n * \n * @param paramList a list of {@link org.jcows.model.vc.ParamListItem ParamListItem}s.\n * @param attachments the paths of the attachments for the request.\n * @return a {@link java.util.List List} representing the response \n * parameter list containing the values.\n * @throws JCowsException\n */\n public List<ParamListItem> invoke(List<ParamListItem> paramList, String[] attachments) throws JCowsException;\n \n /**\n * Returns a {@link java.util.List List} containing all \n * {@link org.jcows.model.vc.ParamListItem ParamListItem}s needed \n * to invoke the current operation of the web service.\n * \n * @return an array of String containing the type names\n * @throws JCowsException\n */\n public List<ParamListItem> getParamList();\n}", "interface CodeList149 {\n}", "public interface ChargesListResult {\n /**\n * Gets the value property: The list of charge summary.\n *\n * @return the value value.\n */\n List<ChargeSummary> value();\n\n /**\n * Gets the inner com.azure.resourcemanager.consumption.fluent.models.ChargesListResultInner object.\n *\n * @return the inner object.\n */\n ChargesListResultInner innerModel();\n}", "public interface IListActivity {\n public void showList(List<ListBean.DataBean> list);\n}", "abstract void makeList();", "@Override\n public void a(b object, List<String> list) throws RemoteException {\n Parcel parcel = Parcel.obtain();\n Parcel parcel2 = Parcel.obtain();\n try {\n parcel.writeInterfaceToken(\"com.google.android.gms.plus.internal.IPlusService\");\n object = object != null ? object.asBinder() : null;\n parcel.writeStrongBinder((IBinder)object);\n parcel.writeStringList(list);\n this.lb.transact(34, parcel, parcel2, 0);\n parcel2.readException();\n parcel2.recycle();\n parcel.recycle();\n return;\n }\n catch (Throwable var1_2) {\n parcel2.recycle();\n parcel.recycle();\n throw var1_2;\n }\n }", "public interface Loan {\n\n\t@Gateway(requestChannel = \"readChannel\")\n\tvoid getCust(List<Customer> customers);\n\n}", "public abstract void mo56923b(List<C4122e> list);", "public interface ChannelType1 {\n void loadChannelType1(boolean execute, List<ChannelType1Info> channelType1InfoList);\n}", "List<IInboundAdapter> getInboundAdapterList();", "public interface IGetUpdatedSlotTime {\r\n\r\n void getTimeSlotList(List<TimeVo> timeSlotListData);\r\n}", "public interface StructuredPushConsumer extends StructuredPushConsumerOperations, CosNotifyComm.NotifyPublish, org.omg.CORBA.portable.IDLEntity \n{\n}", "interface List extends Follow {\n @Out Network[] networks();\n\n /**\n * Sets the maximum number of networks to return. If not specified all the networks are returned.\n */\n @In Integer max();\n\n /**\n * A query string used to restrict the returned networks.\n */\n @In String search();\n\n /**\n * Indicates if the search performed using the `search` parameter should be performed taking case into\n * account. The default value is `true`, which means that case is taken into account. If you want to search\n * ignoring case set it to `false`.\n */\n @In Boolean caseSensitive();\n }", "void mo7380a(C1320b bVar, List<String> list) throws RemoteException;", "public interface ChannelListType\n {\n /**\n * not show\n */\n String SYSTEM_CHANNEL = \"1\";\n\n /**\n * show\n */\n String CUSTOMIZE_CHANNEL = \"2\";\n }", "public interface RegionalRecordManipulator extends RegionalRecordManipulatorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}", "public interface IngredientList {\r\n\r\n}", "public abstract void mo56920a(List<C4122e> list);", "public interface ServConstrainsManagement {\n /**\n * Obtien la lista de componentes visuales a los cuales no tendra accesso\n * el rol (perfil) que esta operando el sistema\n * @return Lista de componentes visuales que no tiene acceso\n */\n public List<ViewConstrainsEnum> getViewConstrainsUIComponent();\n \n}", "@objid (\"5451d474-f72f-46a9-b8b5-35997413d584\")\npublic interface CommunicationChannel extends UmlModelElement {\n /**\n * The metaclass simple name.\n */\n @objid (\"6e808325-1178-4f5a-9ca8-269f71745b8d\")\n public static final String MNAME = \"CommunicationChannel\";\n\n /**\n * The metaclass qualified name.\n */\n @objid (\"20f1621a-db2d-4fb3-8e34-8502c8d522e0\")\n public static final String MQNAME = \"Standard.CommunicationChannel\";\n\n /**\n * Getter for relation 'CommunicationChannel->StartToEndMessage'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"d089f797-963a-472b-9102-e08e9087b6cd\")\n EList<CommunicationMessage> getStartToEndMessage();\n\n /**\n * Filtered Getter for relation 'CommunicationChannel->StartToEndMessage'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"066dba33-47f2-4d51-911f-d869593b015d\")\n <T extends CommunicationMessage> List<T> getStartToEndMessage(java.lang.Class<T> filterClass);\n\n /**\n * Getter for relation 'CommunicationChannel->Channel'\n * \n * Metamodel description:\n * <i>References the Link the communication channel represents.</i>\n */\n @objid (\"1bb2731c-131f-497d-9749-1f4f1e705acb\")\n Link getChannel();\n\n /**\n * Setter for relation 'CommunicationChannel->Channel'\n * \n * Metamodel description:\n * <i>References the Link the communication channel represents.</i>\n */\n @objid (\"590a2bf3-2953-41dc-8b02-1f07ac23249c\")\n void setChannel(Link value);\n\n /**\n * Getter for relation 'CommunicationChannel->Start'\n * \n * Metamodel description:\n * <i>Node starting the channel.</i>\n */\n @objid (\"afa7354b-88c4-40d5-b8dd-215055f8955c\")\n CommunicationNode getStart();\n\n /**\n * Setter for relation 'CommunicationChannel->Start'\n * \n * Metamodel description:\n * <i>Node starting the channel.</i>\n */\n @objid (\"c3f1412d-ca73-479b-8bf7-561601b3f34c\")\n void setStart(CommunicationNode value);\n\n /**\n * Getter for relation 'CommunicationChannel->NaryChannel'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"42f8450d-1aca-4f83-a91e-9f7e7fc3c5c7\")\n NaryLink getNaryChannel();\n\n /**\n * Setter for relation 'CommunicationChannel->NaryChannel'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"92b2c0f0-fd35-4625-a34a-228b33b2cc4d\")\n void setNaryChannel(NaryLink value);\n\n /**\n * Getter for relation 'CommunicationChannel->EndToStartMessage'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"20dbaa0c-b05b-4a47-a12e-306a021a47aa\")\n EList<CommunicationMessage> getEndToStartMessage();\n\n /**\n * Filtered Getter for relation 'CommunicationChannel->EndToStartMessage'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"1842961e-730c-46db-8ef2-47e5d4f8ba30\")\n <T extends CommunicationMessage> List<T> getEndToStartMessage(java.lang.Class<T> filterClass);\n\n /**\n * Getter for relation 'CommunicationChannel->End'\n * \n * Metamodel description:\n * <i>Node at the end of the channel.</i>\n */\n @objid (\"a401b5aa-a324-4104-b9f3-8aa6e8adc133\")\n CommunicationNode getEnd();\n\n /**\n * Setter for relation 'CommunicationChannel->End'\n * \n * Metamodel description:\n * <i>Node at the end of the channel.</i>\n */\n @objid (\"cfed1cf5-bd4d-45f7-9acf-65e9e11fac88\")\n void setEnd(CommunicationNode value);\n\n}", "public interface C27442s {\n /* renamed from: d */\n List<EffectPointModel> mo70331d();\n}", "public interface ChatList extends Remote {\r\n\r\n Chat newChat(String s) throws RemoteException;\r\n\r\n Vector allChats() throws RemoteException;\r\n\r\n int getVersion() throws RemoteException;\r\n\r\n boolean newName(String s) throws RemoteException;\r\n \r\n boolean deleteName(String s) throws RemoteException;\r\n\r\n void print() throws RemoteException;\r\n\r\n void registration(ChatList l) throws RemoteException;\r\n}", "public interface COPSPdpOSDataProcess extends COPSDataProcess {\r\n\r\n /**\r\n * Gets the policies to be uninstalled\r\n * @param man The associated request state manager\r\n * @return A <tt>Vector</tt> holding the policies to be uninstalled\r\n */\r\n public List<COPSDecision> getRemovePolicy(COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Gets the policies to be installed\r\n * @param man The associated request state manager\r\n * @return A <tt>Vector</tt> holding the policies to be uninstalled\r\n */\r\n public List<COPSDecision> getInstallPolicy(COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Makes a decision from the supplied request data\r\n * @param man The associated request state manager\r\n * @param reqSIs Client specific data suppplied in the COPS request\r\n */\r\n public void setClientData(COPSPdpOSReqStateMan man, List<COPSClientSI> reqSIs);\r\n\r\n /**\r\n * Builds a failure report\r\n * @param man The associated request state manager\r\n * @param reportSIs Report data\r\n */\r\n public void failReport (COPSPdpOSReqStateMan man, List<COPSClientSI> reportSIs);\r\n\r\n /**\r\n * Builds a success report\r\n * @param man The associated request state manager\r\n * @param reportSIs Report data\r\n */\r\n public void successReport (COPSPdpOSReqStateMan man, List<COPSClientSI> reportSIs);\r\n\r\n /**\r\n * Builds an accounting report\r\n * @param man The associated request state manager\r\n * @param reportSIs Report data\r\n */\r\n public void acctReport (COPSPdpOSReqStateMan man, List<COPSClientSI> reportSIs);\r\n\r\n /**\r\n * Notifies that no accounting report has been received\r\n * @param man The associated request state manager\r\n */\r\n public void notifyNoAcctReport (COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Notifies a keep-alive timeout\r\n * @param man The associated request state manager\r\n */\r\n public void notifyNoKAliveReceived (COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Notifies that the connection has been closed\r\n * @param man The associated request state manager\r\n * @param error Reason\r\n */\r\n public void notifyClosedConnection (COPSPdpOSReqStateMan man, COPSError error);\r\n\r\n /**\r\n * Notifies that a request state has been deleted\r\n * @param man The associated request state manager\r\n */\r\n public void notifyDeleteRequestState (COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Notifies that a request state has been closed\r\n * @param man The associated request state manager\r\n */\r\n public void closeRequestState(COPSPdpOSReqStateMan man);\r\n\r\n}", "protected List getList() {\n/* 88 */ return (List)getCollection();\n/* */ }", "public interface ConsumerAdminOperations\n{\n\t/* constants */\n\t/* operations */\n\torg.omg.CosEventChannelAdmin.ProxyPushSupplier obtain_push_supplier();\n\torg.omg.CosEventChannelAdmin.ProxyPullSupplier obtain_pull_supplier();\n}", "public interface XulLine extends XulComponent {\n\n}", "@Override\n\tpublic void acheter(List<Object> la) {\n\t\t\n\t}", "public interface CurrentOperations\n\textends org.omg.CORBA.CurrentOperations\n{\n\t/* constants */\n\t/* operations */\n\torg.omg.CORBA.Any get_slot(int id) throws org.omg.PortableInterceptor.InvalidSlot;\n\tvoid set_slot(int id, org.omg.CORBA.Any data) throws org.omg.PortableInterceptor.InvalidSlot;\n}", "interface ISampleStoreForwardClient\n{\n /**\n * Service PID for Spillway service\n */\n public final static String SERVICE_PID = \"com.ge.dspmicro.sample.storeforwardclient\"; //$NON-NLS-1$\n\n /** Required Property key for storeforward name */\n public final static String STOREFORWARD = SERVICE_PID + \".storeforward\"; //$NON-NLS-1$\n\n}", "@Override\n public String getName() {\n return \"list\";\n }", "public interface SslClient {\n List<SupplierSelectionResponse> getSupplierSelectionResponse(List<SupplierSelectionRequest> requests);\n}", "public interface getDes {\n\tpublic String getDescription(ArrayList<StockPO> array) throws IOException;\n}", "void mo29846a(IObjectWrapper iObjectWrapper, zzxz zzxz, String str, String str2, zzamv zzamv, zzady zzady, List<String> list) throws RemoteException;", "private void getItemList(){\n sendPacket(Item_stocksTableAccess.getConnection().getItemList());\n \n }", "public interface DirectPreApprovalPaymentOrdersList {\n\n /**\n * Pre Approval Code\n *\n * @return Code\n */\n String getCode();\n\n /**\n * Status of the payment order\n *\n * @return Status\n */\n Integer getStatus();\n\n /**\n * Number of the page desired to see the result\n *\n * @return Page number\n */\n Integer getPage();\n\n /**\n * Max number os registers by page\n *\n * @return Max Page Results\n */\n Integer getMaxPageResults();\n}", "void mo100444b(List<C40429b> list);", "public interface IListViewRecord {\r\n\r\n /**\r\n * element : columns of type {urn:partner.soap.sforce.com}ListViewRecordColumn\r\n * java type: com.sforce.soap.partner.ListViewRecordColumn[]\r\n */\r\n\r\n public com.sforce.soap.partner.IListViewRecordColumn[] getColumns();\r\n\r\n public void setColumns(com.sforce.soap.partner.IListViewRecordColumn[] columns);\r\n\r\n\r\n}", "@Override\n public void a(String string, nm nm, List<ni> list) throws RemoteException {\n Parcel parcel = Parcel.obtain();\n try {\n parcel.writeInterfaceToken(\"com.google.android.gms.playlog.internal.IPlayLogService\");\n parcel.writeString(string);\n if (nm != null) {\n parcel.writeInt(1);\n nm.writeToParcel(parcel, 0);\n } else {\n parcel.writeInt(0);\n }\n parcel.writeTypedList(list);\n this.lb.transact(3, parcel, null, 1);\n return;\n }\n finally {\n parcel.recycle();\n }\n }", "public void getShowRecord(List<MentalShowStruct> list) {\n/* 55 */ this.component.getRevertShowList(list);\n/* */ }", "public interface IWlanElement {\n\n\t/**\n\t * retrieve element id\n\t * \n\t * @return\n\t */\n\tpublic byte getElementId();\n\t\n\t/**\n\t * data \n\t * @return\n\t */\n\tpublic byte[] getData();\n\t\n}", "public interface IListCreditInteractor extends ILogedInteractor{\n public void LoadCreditsRequest();\n\n\n public interface CallBack extends ILogedInteractor.CallBack\n {\n public void LoadCreditsReponse(ArrayList<CreditView> credits);\n\n }\n}", "public interface V5Power {\n\n int providerV5Power();\n}", "public List<MExampleCall> getExampleCalls();", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface CatalogueClient {\n\n\tList<Exoplanet> getCatalogue();\n\n}", "public interface IEuipItemOperator extends IBaseOperator<EquipItemBean> {\n\n List getAllEquipInfo();\n List getAllEquipInfo(String keyword);\n}", "@WebService(name = \"ListSubscriptions\", targetNamespace = \"http://soap/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ListSubscriptions {\n\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getList\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetList\")\n @ResponseWrapper(localName = \"getListResponse\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetListResponse\")\n public String getList();\n\n}", "public interface FunctionalSignificanceTypeRemoteBusiness {\n int getFstid() throws java.rmi.RemoteException;\n\n String getName() throws java.rmi.RemoteException;\n\n void setName(java.lang.String name) throws java.rmi.RemoteException;\n\n String getComm() throws java.rmi.RemoteException;\n\n void setComm(java.lang.String comm) throws java.rmi.RemoteException;\n\n java.sql.Date getTs() throws java.rmi.RemoteException;\n\n UserRemote getUser() throws java.rmi.RemoteException;\n\n ProjectRemote getProject() throws java.rmi.RemoteException;\n\n Collection getFunctionalSignificances() throws ApplicationException, java.rmi.RemoteException;\n\n /**\n * Sets the caller for the functional significance\n * @param caller The caller\n */\n void setCaller(com.arexis.mugen.MugenCaller caller) throws java.rmi.RemoteException;\n \n}", "public interface CtlService {\n\n\tList<Map<String, Object>> getCtlInfByEquNum(Map<String, Object> map) throws Exception;\n\n\n\n}", "public interface PropertyAccess extends FeatureCall\n{\n}", "public interface SongMenuInfoListView extends MvpLceView<List<SongMenuInfo.ContentBean>>{\n}", "public interface ACPowerSource {\n void provideACPower();\n}", "@IID(\"{18C04A97-2141-4852-8E02-0E79D3CAEAD3}\")\npublic interface ICustomizationListNode extends Com4jObject {\n\t// Methods:\n\t/**\n\t * <p>\n\t * Adds a new sub-node to the current node.\n\t * </p>\n\t * \n\t * @param node\n\t * Mandatory java.lang.Object parameter.\n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@DISPID(1)\n\t// = 0x1. The runtime will prefer the VTID if present\n\t@VTID(7)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject addChild(\n\t\t\t@MarshalAs(NativeType.VARIANT) java.lang.Object node);\n\n\t/**\n\t * <p>\n\t * Removes the specified sub-node from the current node.\n\t * </p>\n\t * \n\t * @param node\n\t * Mandatory java.lang.Object parameter.\n\t */\n\n\t@DISPID(2)\n\t// = 0x2. The runtime will prefer the VTID if present\n\t@VTID(8)\n\tvoid removeChild(@MarshalAs(NativeType.VARIANT) java.lang.Object node);\n\n\t/**\n\t * <p>\n\t * Gets the specified sub-node.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"Child\"\n\t * </p>\n\t * \n\t * @param nodeName\n\t * Mandatory java.lang.String parameter.\n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@DISPID(3)\n\t// = 0x3. The runtime will prefer the VTID if present\n\t@VTID(9)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject child(java.lang.String nodeName);\n\n\t/**\n\t * <p>\n\t * The list of CustomizationListNode objects that are sub-nodes of the\n\t * current node.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"Children\"\n\t * </p>\n\t * \n\t * @return Returns a value of type com.gc.IList\n\t */\n\n\t@DISPID(4)\n\t// = 0x4. The runtime will prefer the VTID if present\n\t@VTID(10)\n\tcom.gc.IList children();\n\n\t@VTID(10)\n\t@ReturnValue(type = NativeType.VARIANT, defaultPropertyThrough = { com.gc.IList.class })\n\tjava.lang.Object children(int index);\n\n\t/**\n\t * <p>\n\t * The current node name.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"Name\"\n\t * </p>\n\t * \n\t * @return Returns a value of type java.lang.String\n\t */\n\n\t@DISPID(5)\n\t// = 0x5. The runtime will prefer the VTID if present\n\t@VTID(11)\n\tjava.lang.String name();\n\n\t/**\n\t * <p>\n\t * The current node name.\n\t * </p>\n\t * <p>\n\t * Setter method for the COM property \"Name\"\n\t * </p>\n\t * \n\t * @param pVal\n\t * Mandatory java.lang.String parameter.\n\t */\n\n\t@DISPID(5)\n\t// = 0x5. The runtime will prefer the VTID if present\n\t@VTID(12)\n\tvoid name(java.lang.String pVal);\n\n\t/**\n\t * <p>\n\t * For HP use. The current node ID.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"ID\"\n\t * </p>\n\t * \n\t * @return Returns a value of type int\n\t */\n\n\t@DISPID(6)\n\t// = 0x6. The runtime will prefer the VTID if present\n\t@VTID(13)\n\tint id();\n\n\t/**\n\t * <p>\n\t * For HP use. The current node ID.\n\t * </p>\n\t * <p>\n\t * Setter method for the COM property \"ID\"\n\t * </p>\n\t * \n\t * @param pVal\n\t * Mandatory int parameter.\n\t */\n\n\t@DISPID(6)\n\t// = 0x6. The runtime will prefer the VTID if present\n\t@VTID(14)\n\tvoid id(int pVal);\n\n\t/**\n\t * <p>\n\t * Gets the CustomizationListNode object representing the current node's\n\t * parent node, or sets a new father, thereby moving the node.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"Father\"\n\t * </p>\n\t * \n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@DISPID(7)\n\t// = 0x7. The runtime will prefer the VTID if present\n\t@VTID(15)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject father();\n\n\t/**\n\t * <p>\n\t * Gets the CustomizationListNode object representing the current node's\n\t * parent node, or sets a new father, thereby moving the node.\n\t * </p>\n\t * <p>\n\t * Setter method for the COM property \"Father\"\n\t * </p>\n\t * \n\t * @param pVal\n\t * Mandatory com4j.Com4jObject parameter.\n\t */\n\n\t@DISPID(7)\n\t// = 0x7. The runtime will prefer the VTID if present\n\t@VTID(16)\n\tvoid father(@MarshalAs(NativeType.Dispatch) com4j.Com4jObject pVal);\n\n\t/**\n\t * <p>\n\t * Checks if sub-nodes can be added to the current node.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"CanAddChild\"\n\t * </p>\n\t * \n\t * @return Returns a value of type boolean\n\t */\n\n\t@DISPID(8)\n\t// = 0x8. The runtime will prefer the VTID if present\n\t@VTID(17)\n\tboolean canAddChild();\n\n\t/**\n\t * <p>\n\t * Checks if the current node is read-only.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"ReadOnly\"\n\t * </p>\n\t * \n\t * @return Returns a value of type boolean\n\t */\n\n\t@DISPID(9)\n\t// = 0x9. The runtime will prefer the VTID if present\n\t@VTID(18)\n\tboolean readOnly();\n\n\t/**\n\t * <p>\n\t * The CustomizationList object that contains the current node.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"List\"\n\t * </p>\n\t * \n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@DISPID(10)\n\t// = 0xa. The runtime will prefer the VTID if present\n\t@VTID(19)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject list();\n\n\t/**\n\t * <p>\n\t * The number of sub-nodes under the node.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"ChildrenCount\"\n\t * </p>\n\t * \n\t * @return Returns a value of type int\n\t */\n\n\t@DISPID(11)\n\t// = 0xb. The runtime will prefer the VTID if present\n\t@VTID(20)\n\tint childrenCount();\n\n\t/**\n\t * <p>\n\t * Indicates if the node was modified since it was loaded from the server.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"Updated\"\n\t * </p>\n\t * \n\t * @return Returns a value of type boolean\n\t */\n\n\t@DISPID(12)\n\t// = 0xc. The runtime will prefer the VTID if present\n\t@VTID(21)\n\tboolean updated();\n\n\t/**\n\t * <p>\n\t * Indicates if the node was modified since it was loaded from the server.\n\t * </p>\n\t * <p>\n\t * Setter method for the COM property \"Updated\"\n\t * </p>\n\t * \n\t * @param pVal\n\t * Mandatory boolean parameter.\n\t */\n\n\t@DISPID(12)\n\t// = 0xc. The runtime will prefer the VTID if present\n\t@VTID(22)\n\tvoid updated(boolean pVal);\n\n\t/**\n\t * <p>\n\t * If true, the node is marked for deletion, but the deletion is not yet\n\t * committed.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"Deleted\"\n\t * </p>\n\t * \n\t * @return Returns a value of type boolean\n\t */\n\n\t@DISPID(13)\n\t// = 0xd. The runtime will prefer the VTID if present\n\t@VTID(23)\n\tboolean deleted();\n\n\t/**\n\t * <p>\n\t * If true, the node is marked for deletion, but the deletion is not yet\n\t * committed.\n\t * </p>\n\t * <p>\n\t * Setter method for the COM property \"Deleted\"\n\t * </p>\n\t * \n\t * @param pVal\n\t * Mandatory boolean parameter.\n\t */\n\n\t@DISPID(13)\n\t// = 0xd. The runtime will prefer the VTID if present\n\t@VTID(24)\n\tvoid deleted(boolean pVal);\n\n\t/**\n\t * <p>\n\t * The order number of the node within its siblings.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"Order\"\n\t * </p>\n\t * \n\t * @return Returns a value of type int\n\t */\n\n\t@DISPID(14)\n\t// = 0xe. The runtime will prefer the VTID if present\n\t@VTID(25)\n\tint order();\n\n\t/**\n\t * <p>\n\t * The order number of the node within its siblings.\n\t * </p>\n\t * <p>\n\t * Setter method for the COM property \"Order\"\n\t * </p>\n\t * \n\t * @param pVal\n\t * Mandatory int parameter.\n\t */\n\n\t@DISPID(14)\n\t// = 0xe. The runtime will prefer the VTID if present\n\t@VTID(26)\n\tvoid order(int pVal);\n\n\t// Properties:\n}", "public interface ListDataOverflowInterface {\n public void update(Object object);\n public void delete(Object object);\n public void detail(Object object);\n}", "public abstract List<T> delegate();", "com.google.protobuf.ProtocolStringList\n getWpaList();", "public interface IAccountReader {\n List<IAccountOperator> read();\n\n}", "public interface Message {\n public OptionsImpl getConfirm();\n\n public List<SystemImpl> getAddressees();\n\n}", "public interface SppCommandData {\n\n }", "Object getTolist();", "public List(ObjectProvider ownerOP, AbstractMemberMetaData mmd)\r\n {\r\n super(ownerOP, mmd);\r\n }", "public interface IBaseActivityListEvent {\n\n /**\n * Creates a new fragment with the listentries of the given ShoppingList item.\n *\n * @param _ShoppingList of the list that the content should be shown.\n */\n void selectList(ShoppingList _ShoppingList);\n}", "public interface Product_introduceService {\n\n public List<Product_introduce> sellistpibypd_id(int pd_id);\n}", "OpFList createOpFList();", "public interface Plan extends List<Task> {\n\n public Plan getReadOnly();\n}", "private List<SimpleComponent> list() {\n\t\treturn this.list(null);\n\t}", "public interface IContactAddView extends IBaseView {\n\n void showApplyVoList(List<ApplyVo> applyVoList);\n\n}", "public interface CwmSlot extends org.pentaho.pms.cwm.pentaho.meta.core.CwmModelElement {\n /**\n * Returns the value of reference object.\n * \n * @return Value of reference object.\n */\n public org.pentaho.pms.cwm.pentaho.meta.instance.CwmObject getObject();\n\n /**\n * Sets the value of reference object. See {@link #getObject} for description on the reference.\n * \n * @param newValue\n * New value to be set.\n */\n public void setObject( org.pentaho.pms.cwm.pentaho.meta.instance.CwmObject newValue );\n\n /**\n * Returns the value of reference value.\n * \n * @return Value of reference value.\n */\n public org.pentaho.pms.cwm.pentaho.meta.instance.CwmInstance getValue();\n\n /**\n * Sets the value of reference value. See {@link #getValue} for description on the reference.\n * \n * @param newValue\n * New value to be set.\n */\n public void setValue( org.pentaho.pms.cwm.pentaho.meta.instance.CwmInstance newValue );\n\n /**\n * Returns the value of reference feature.\n * \n * @return Value of reference feature.\n */\n public org.pentaho.pms.cwm.pentaho.meta.core.CwmStructuralFeature getFeature();\n\n /**\n * Sets the value of reference feature. See {@link #getFeature} for description on the reference.\n * \n * @param newValue\n * New value to be set.\n */\n public void setFeature( org.pentaho.pms.cwm.pentaho.meta.core.CwmStructuralFeature newValue );\n}", "public interface SmsListModel {\n void requestSmsList(String pageNumber );\n}", "public interface StockFactory extends StockFactoryOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity\n{\n}", "public interface Vehiculos extends VehiculosOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}", "public interface IDealerListIntractor {\r\n void getDealerList(OnDealerListLoaded listener);\r\n\r\n interface OnDealerListLoaded {\r\n void setDealerList(List<Dealer> mDealerList);\r\n }\r\n}", "com.google.protobuf.ProtocolStringList\n getListList();", "public interface choreListResponse {\n void choresListFinish(ArrayList<Chore> output);\n}", "public interface iLL11Ll1 {\n C6860liLi OooO00o(C6773llLi v) throws IOException;\n}", "public interface RecordValidator_2_IF extends HomeHealthRecordValidatorIF{\n \n /**\n * adds a Item validator to the list of validators\n * @param itemValidator \n */\n void add(RecordItemValidatorIF itemValidator);\n\n /**\n * returns a non-mutable list of the item validator\n * @return \n */\n List<RecordItemValidatorIF> getItemValidators();\n\n /**\n * removes an item validator from this validation\n * @param itemValidator \n */\n void remove(RecordItemValidatorIF itemValidator);\n \n}", "public interface ResourceService {\n public List<ResourceItemBean> getResourceItems();\n}", "public interface StepperTransportSolution {\n public List<StepperTransportSegment> getTransportSegment();\n}", "public interface InterFace2 extends InterFace2Operations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}", "@BusInterface(name = \"org.allseen.LSF.ControllerService.LampGroup\")\npublic interface LampGroup {\n\n class BaseReturnValue {\n @Position(0)\n public int responseCode = 0;\n @Position(1)\n public String lampGroupID;\n }\n\n class GetAllLampGroupIDs_return_value_uas {\n @Position(0)\n public int responseCode = 0;\n @Position(1)\n public String[] lampGroupIDs;\n }\n\n class GetLampGroupName_return_value_usss extends BaseReturnValue {\n @Position(2)\n public String language;\n @Position(3)\n public String lampGroupName;\n }\n\n class SetLampGroupName_return_value_uss {\n @Position(0)\n public int responseCode = 0;\n @Position(1)\n public String lampID;\n @Position(2)\n public String language;\n }\n\n class CreateLampGroup_return_value_us extends BaseReturnValue {\n }\n\n class UpdateLampGroup_return_value_us extends BaseReturnValue {\n }\n\n class DeleteLampGroup_return_value_us extends BaseReturnValue {\n }\n\n class GetLampGroup_return_value_usasas extends BaseReturnValue {\n @Position(2)\n public String[] lampID;\n @Position(3)\n public String[] lampGroupIDs;\n }\n\n class TransitionLampGroupState_return_value_us extends BaseReturnValue {\n }\n\n class PulseLampGroupWithState_return_value_us extends BaseReturnValue {\n }\n\n class PulseLampGroupWithPreset_return_value_us extends BaseReturnValue {\n }\n\n class TransitionLampGroupStateToPreset_return_value_us extends BaseReturnValue {\n }\n\n class TransitionLampGroupStateField_return_value_uss extends BaseReturnValue {\n @Position(2)\n public String lampGroupStateFieldName;\n }\n\n class ResetLampGroupState_return_value_us extends BaseReturnValue {\n }\n\n class ResetLampGroupStateField_return_value_uss extends BaseReturnValue {\n @Position(2)\n public String lampGroupStateFieldName;\n }\n\n /*\n * The BusMethod annotation signifies this function should be used as part of the AllJoyn\n * interface. The runtime is smart enough to figure out what the input and output of the\n * method is based on the input/output arguments of the method.\n *\n * All methods that use the BusMethod annotation can throw a BusException and should indicate\n * this fact.\n */\n @BusMethod(name = \"GetAllLampGroupIDs\", replySignature = \"uas\")\n GetAllLampGroupIDs_return_value_uas getAllLampGroupIDs() throws BusException;\n\n @BusMethod(name = \"GetLampGroupName\", signature = \"ss\", replySignature = \"usss\")\n GetLampGroupName_return_value_usss getLampGroupName(String lampGroupID, String language) throws BusException;\n\n @BusMethod(name = \"SetLampGroupName\", signature = \"sss\", replySignature = \"uss\")\n SetLampGroupName_return_value_uss setLampGroupName(String lampGroupID, String lampName, String language) throws BusException;\n\n @BusMethod(name = \"CreateLampGroup\", signature = \"asasss\", replySignature = \"us\")\n CreateLampGroup_return_value_us createLampGroup(String[] lampIDs, String[] lampGroupIDs, String lampGroupName, String language) throws BusException;\n\n @BusMethod(name = \"UpdateLampGroup\", signature = \"sasas\", replySignature = \"us\")\n UpdateLampGroup_return_value_us updateLampGroup(String lampGroupID, String[] lampIDs, String[] lampGroupIDs) throws BusException;\n\n @BusMethod(name = \"DeleteLampGroup\", signature = \"s\", replySignature = \"us\")\n DeleteLampGroup_return_value_us deleteLampGroup(String lampGroupID) throws BusException;\n\n @BusMethod(name = \"GetLampGroup\", signature = \"s\", replySignature = \"usasas\")\n GetLampGroup_return_value_usasas getLampGroup(String lampGroupID) throws BusException;\n\n @BusMethod(name = \"TransitionLampGroupState\", signature = \"sa{sv}u\", replySignature = \"us\")\n TransitionLampGroupState_return_value_us transitionLampGroupState(String lampGroupID, Map<String, Variant> lampState, int transitionPeriod) throws BusException;\n\n @BusMethod(name = \"PulseLampGroupWithState\", signature = \"sa{sv}a{sv}uuu\", replySignature = \"us\")\n PulseLampGroupWithState_return_value_us pulseLampGroupWithState(String lampGroupID, Map<String, Variant> fromLampState, Map<String, Variant> toLampState, int period, int duration, int numPulses) throws BusException;\n\n @BusMethod(name = \"PulseLampGroupWithPreset\", signature = \"suuuuu\", replySignature = \"us\")\n PulseLampGroupWithPreset_return_value_us pulseLampGroupWithPreset(String lampGroupID, int fromPresetID, int toPresetID, int period, int duration, int numPulses) throws BusException;\n\n @BusMethod(name = \"TransitionLampGroupStateToPreset\", signature = \"suu\", replySignature = \"us\")\n TransitionLampGroupStateToPreset_return_value_us transitionLampGroupStateToPreset(String lampGroupID, int presetID, int transitionPeriod) throws BusException;\n\n @BusMethod(name = \"TransitionLampGroupStateField\", signature = \"sssu\", replySignature = \"uss\")\n TransitionLampGroupStateField_return_value_uss transitionLampGroupStateField(String lampGroupID, String lampGroupStateFieldName, String lampGroupStateFieldValue, int transitionPeriod) throws BusException;\n\n @BusMethod(name = \"ResetLampGroupState\", signature = \"s\", replySignature = \"us\")\n ResetLampGroupState_return_value_us resetLampGroupState(String lampGroupID) throws BusException;\n\n @BusMethod(name = \"ResetLampGroupStateField\", signature = \"ss\", replySignature = \"uss\")\n ResetLampGroupStateField_return_value_uss resetLampGroupStateField(String lampGroupID, String lampGroupStateFieldName) throws BusException;\n\n /*\n * The BusProperty annotation signifies this property should be used as part of the\n * AllJoyn interface. The runtime is smart enough to figure out what the input and output of\n * the property is based on the input/output arguments of the property.\n *\n * All properties that use the BusProperty annotation can throw a BusException and should\n * indicate this fact.\n */\n @BusProperty(name = \"Version\", signature = \"u\")\n int getVersion() throws BusException;\n\n /*\n * The BusSignal annotation signifies this signal should be used as part of the\n * AllJoyn interface.\n *\n * All signals that use the BusSignal annotation can throw a BusException and should\n * indicate this fact.\n */\n @BusSignal(name = \"LampGroupsNameChanged\", replySignature = \"as\", sessionless = true)\n void lampGroupsNameChanged(String lampGroupsIDs) throws BusException;\n\n @BusSignal(name = \"LampGroupsCreated\", replySignature = \"as\", sessionless = true)\n void lampGroupsCreated(String lampGroupsIDs) throws BusException;\n\n @BusSignal(name = \"LampGroupsUpdated\", replySignature = \"as\", sessionless = true)\n void lampGroupsUpdated(String lampGroupsIDs) throws BusException;\n\n @BusSignal(name = \"LampGroupsDeleted\", replySignature = \"as\", sessionless = true)\n void lampGroupsDeleted(String[] lampGroupsIDs) throws BusException;\n}", "private static interface T {@Symbolic Term.List t();}", "public interface Phoneextensions extends GeneratedPhoneextensions {\n \n \n}", "public interface IProtocol {\r\n int ADD_ELEMENT = 2100; // parent, 0, Elements.Extra\r\n\r\n int CLEAR_CHILDREN = 2005; // parent\r\n\r\n int CONTROL_ABOUT = 3001;\r\n\r\n int CONTROL_DELETE_SAVE = 3003;\r\n\r\n // int CONTROL_RESTART = 3004;\r\n int CONTROL_FORCE_CLICK = 3005;\r\n\r\n int CONTROL_HELP = 3002;\r\n\r\n // int UPDATE_SCROLL = 5;\r\n int DISPLAY_TOAST = 2001; // OBJ = text\r\n\r\n int ON_CLICK = 1101; // OBJ = view\r\n\r\n int ON_CREATE = 1001; // OBJ = bundle\r\n\r\n int ON_DESTROY = 1006;\r\n\r\n int ON_PAUSE = 1004;\r\n\r\n int ON_RESUME = 1003;\r\n\r\n int ON_START = 1002;\r\n\r\n int ON_STOP = 1005;\r\n\r\n int ON_TOUCH_EVENT = 1103;\r\n\r\n int SET_THEME = 5001;\r\n\r\n int SHOW_HELP_PAGE = 4001;\r\n\r\n int SHOW_LICENSE = 4002;\r\n\r\n int UPDATE_COLOR = 2;\r\n\r\n int UPDATE_ENABLED = 3;\r\n\r\n int UPDATE_INFLATE = 4;\r\n\r\n int UPDATE_TEXT = 1;\r\n\r\n int UPDATE_VIEW = 0;\r\n}", "@ImplementedBy(AWSIPConverter.class)\npublic interface IPConverter {\n Optional<String> getPublicIP(PriamInstance instance);\n}", "public interface CarListService {\n\n public List<Transportation> getLocal();\n public List<Transportation> getLuxery();\n public List<Transportation> getExotic();\n}", "public interface ListListiener {\n void PeopleList(List<People> list);\n}", "@Override\n protected List<Invoker<T>> doList(Invocation invocation) throws RpcException {\n if (forbidden){\n throw new RpcException(RpcException.FORBIDDEN_EXCEPTION, \"No provider available from registry \"\n + getUrl().getAddress() + \" for service \" + getConsumerUrl().getServiceKey()\n + \" on consumer \" + NetUtils.getLocalHost() + \" use mandal version is \"\n + Version.getVersion() + \", may be provider disabled or not registerd\");\n }\n List<Invoker<T>> invokers = null;\n Map<String, List<Invoker<T>>> localMethodInvokerMap = this.methodsInvokerMap;\n if (!CollectionUtils.isEmpty(localMethodInvokerMap)){\n String methodName = RpcUtils.getMethodName(invocation);\n Object[] args = RpcUtils.getArgument(invocation);\n if (!Objects.isNull(args) && args.length > 0 && !Objects.isNull(args[0]) && (args[0] instanceof String || args[0].getClass().isEnum())){\n invokers = localMethodInvokerMap.get(methodName + \".\" + args[0]);\n }\n if (Objects.isNull(invokers)){\n invokers = localMethodInvokerMap.get(methodName);\n }\n if (Objects.isNull(invokers)){\n invokers = localMethodInvokerMap.get(Constants.ANY_VALUE);\n }\n if (Objects.isNull(invokers)){\n Iterator<List<Invoker<T>>> iterator = localMethodInvokerMap.values().iterator();\n if (iterator.hasNext()){\n invokers = iterator.next();\n }\n }\n }\n return Objects.isNull(invokers) ? new ArrayList<Invoker<T>>(0) : invokers;\n }", "public DList2 list(){\r\n return this.list;\r\n }", "OpList createOpList();" ]
[ "0.63303286", "0.61051494", "0.6019787", "0.6017525", "0.60000783", "0.59865606", "0.5980876", "0.59742475", "0.59438294", "0.58929396", "0.5888472", "0.58315223", "0.57588017", "0.57532406", "0.57136685", "0.5706316", "0.5681433", "0.56788766", "0.56652516", "0.56614697", "0.56587255", "0.5657171", "0.5649098", "0.5647965", "0.5642162", "0.5641371", "0.5634809", "0.56200385", "0.56189394", "0.56152356", "0.5612859", "0.5608199", "0.5603316", "0.56032735", "0.56019235", "0.55842704", "0.55732787", "0.5568751", "0.55600405", "0.5551405", "0.5536821", "0.55359423", "0.5529714", "0.5528376", "0.5527117", "0.551244", "0.55080533", "0.5487747", "0.54787505", "0.54768956", "0.5470633", "0.5469954", "0.54659015", "0.5458441", "0.5453646", "0.5440713", "0.5434835", "0.54262495", "0.54232264", "0.5417742", "0.5408367", "0.5403816", "0.5400956", "0.539978", "0.5398556", "0.53969574", "0.53936505", "0.5382249", "0.53790885", "0.53765744", "0.5375455", "0.53751606", "0.537443", "0.53743017", "0.5361846", "0.5361505", "0.5358053", "0.5356319", "0.5355769", "0.5355467", "0.53520936", "0.5351819", "0.5346639", "0.53435975", "0.53431946", "0.53430855", "0.5342778", "0.5342218", "0.5340676", "0.5333283", "0.5333036", "0.5332757", "0.5331848", "0.53299993", "0.53257173", "0.53241926", "0.5324041", "0.53205216", "0.53141767", "0.53120315", "0.5310538" ]
0.0
-1
first hide the loading icon
@Override public void addSpellToList(Spell power) { progressBar.setVisibility(View.GONE); recyclerView.setVisibility(View.VISIBLE); Log.d(TAG, "addSpellToList: Got a spell to be added to adapter: " + power.getName()); String powerGroupName = power.getGroupName(); Log.d(TAG, "addSpellToList: power group name " + powerGroupName); //see if spellgroups already has the group this spell belongs to if(!spellGroups.contains(new SpellGroup(powerGroupName, power))) { //add the power group, pass the power for SpellGroups in constructor spellGroups.add(new SpellGroup(powerGroupName, power)); //notify adapter that new parent was added so it is added to list adapter.notifyParentItemInserted( spellGroups.size()-1 ); } //otherwise just add the spell to the existing spell group else { //get index of the group with a "dummy group", a needless object allocation here tbh int parentIndex = spellGroups.indexOf(new SpellGroup(powerGroupName, power)); //power might already be in the list, check for that if(!spellGroups.get(parentIndex).containsSpell(power)) { //add the spell to the SpellGroup's list of powers int spellIndex = spellGroups.get(parentIndex).addSpell(power); //notify adapter that new child was added so it can animate it in Log.d(TAG, "addSpellToList: parent index " + parentIndex); Log.d(TAG, "addSpellToList: parent list size: " + spellGroups.get(parentIndex).getListSize()); adapter.notifyChildItemInserted( parentIndex, spellIndex //spellGroups.get(parentIndex).getListSize() - 1 ); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void hideLoadingAndUpdate() {\n image.setVisibility(View.VISIBLE);\n loadingBar.setVisibility(View.INVISIBLE);\n shareBtn.setVisibility(shareBtnVisibility);\n\n }", "private void hideLoading()\n {\n relLoadingPanel.setVisibility(View.GONE);\n ViewHelper.setViewGroupEnabled(scrMainContainer, true);\n }", "private void showLoading() {\n hideNoNetwork();\n mRecipesBinding.fragmentRecipesProgressBar.setVisibility(View.VISIBLE);\n }", "private void showLoading()\n {\n relLoadingPanel.setVisibility(View.VISIBLE);\n ViewHelper.setViewGroupEnabled(scrMainContainer, false);\n }", "private void showLoading() {\n mRecycleView.setVisibility(View.INVISIBLE);\n /* Finally, show the loading indicator */\n mLoadingIndicator.setVisibility(View.VISIBLE);\n }", "@Override\n public void hiddenLoading() {\n Log.i(Tag, \"hiddenLoading\");\n }", "public void showLoading() {\n }", "protected void hideLoader() {\n\n if (progressBar != null) {\n progressBar.setVisibility(View.INVISIBLE);\n }\n if(getActivity()!=null) {\n getActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n }\n\n }", "void hideMainLoadingWheel();", "@Override\n public void hideLoading() {\n if (progressDialog!=null && progressDialog.isShowing()){\n progressDialog.dismiss();\n }\n }", "void showLoading(boolean isLoading);", "public void showLoading() {\n loadingLayout.setVisibility(View.VISIBLE);\n mapView.setVisibility(View.GONE);\n errorLayout.setVisibility(View.GONE);\n }", "void showLoading(boolean visible);", "@Override\r\n\t\tpublic void onLoadingCancelled(String arg0, View arg1) {\n\t\t\tholder.app_icon.setVisibility(View.VISIBLE);\r\n\t\t}", "@Override\r\n\tpublic void showLoading(boolean isLoading) {\r\n\t\tsetSupportProgressBarIndeterminateVisibility(isLoading);\r\n\t}", "public void stopLoadAnim() {\n avi.smoothToHide();\n loadTv.setVisibility(View.INVISIBLE);\n loginContainer.setVisibility(View.VISIBLE);\n }", "public final void showLoadingIndicator(boolean z) {\n if (z) {\n ProgressBar progressBar = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbLoadingAuctionSaleList);\n Intrinsics.checkExpressionValueIsNotNull(progressBar, \"pbLoadingAuctionSaleList\");\n progressBar.setVisibility(0);\n return;\n }\n ProgressBar progressBar2 = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbLoadingAuctionSaleList);\n Intrinsics.checkExpressionValueIsNotNull(progressBar2, \"pbLoadingAuctionSaleList\");\n progressBar2.setVisibility(8);\n }", "private void setLoadingDisplay() {\n if (swipeRefreshing) {\n footer.clear();\n setRefreshing(true);\n } else if (loading) {\n footer.setLoading();\n }\n }", "public void hideProgress() {\n search_progress.setVisibility(View.GONE);\n img_left_action.setAlpha(0.0f);\n img_left_action.setVisibility(View.VISIBLE);\n ObjectAnimator.ofFloat(img_left_action, \"alpha\", 0.0f, 1.0f).start();\n }", "@Override\r\n\t\tpublic void onLoadingComplete(String arg0, View arg1, Bitmap arg2) {\n\t\t\tholder.app_icon.setVisibility(View.VISIBLE);\r\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tloadingView.setVisibility(View.VISIBLE);\n\t\t}", "@Override\n protected void onPreExecute() {\n mLytContainerLayout.setVisibility(View.GONE);\n mToolbar.setVisibility(View.GONE);\n mPrgLoading.setVisibility(View.VISIBLE);\n }", "@Override\n public void showLoading() {\n setRefresh(true);\n }", "private void hideProgressIndicator() {\n setProgressBarIndeterminateVisibility(false);\n setProgressBarIndeterminate(false);\n }", "public void showProgress(){\n loadMainActivity.setVisibility(View.VISIBLE);\n recyclerView.setVisibility(View.INVISIBLE);\n }", "public final void showLoadingIndicator(boolean z) {\n if (z) {\n ProgressBar progressBar = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbLogin);\n if (progressBar != null) {\n progressBar.setVisibility(0);\n return;\n }\n return;\n }\n ProgressBar progressBar2 = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbLogin);\n if (progressBar2 != null) {\n progressBar2.setVisibility(8);\n }\n }", "public final void showLoadingIndicator(boolean z) {\n if (z) {\n ProgressBar progressBar = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(progressBar, \"pbReviewPayment\");\n progressBar.setVisibility(0);\n return;\n }\n ProgressBar progressBar2 = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(progressBar2, \"pbReviewPayment\");\n progressBar2.setVisibility(8);\n }", "void hideNextEventsLoadingWheel();", "protected void showLoader() {\n if (progressBar != null) {\n progressBar.setVisibility(View.VISIBLE);\n }\n if(getActivity()!=null) {\n getActivity().getWindow().setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE,\n WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n }\n }", "public void hideLoadingScreen() {\n setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\n getSelectGameScreenIfActive().ifPresent((gameScreen) -> gameScreen.setEnabled());\n }", "@Override\n protected void onStartLoading() {\n progressBar.setVisibility(View.VISIBLE);\n forceLoad();\n }", "private void startProgressBar() {\n\t b_buscar.setVisibility(View.GONE);\n\t // wi_progreso.setVisibility(View.VISIBLE);\n\t ly_progreso.setVisibility(View.VISIBLE);\n\t}", "public void infoProgressOff (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourInfoBinding.tourInfoProgress.getVisibility() != View.GONE) {\n tabTourInfoBinding.tourInfoProgress.setVisibility(View.GONE);\n }\n if (tabTourInfoBinding.tourInfoLayout.getVisibility() != View.VISIBLE) {\n tabTourInfoBinding.tourInfoLayout.setVisibility(View.VISIBLE);\n }\n }\n });\n }", "protected final void showLoadingDialog() {\n }", "public void showLoadingView() {\n handleLoadingContainer(false /* showContent */, false /* showEmpty */, false /* animate */);\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n settLoadingScr.setVisibility(View.VISIBLE);\n\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n settLoadingScr.setVisibility(View.VISIBLE);\n\n }", "public void hideLoadingDialog() {\n if (isDestroyingActivity())\n return;\n if (mProgressDialog != null && mProgressDialog.isShowing()) {\n mProgressDialog.dismiss();\n mProgressDialog = null;\n }\n }", "@Override\r\n\t\tpublic void onLoadingFailed(String arg0, View arg1, FailReason arg2) {\n\t\t\tholder.app_icon.setVisibility(View.VISIBLE);\r\n\t\t}", "@Override\r\n public void onPreResponse() {\r\n findViewById(R.id.loader).setVisibility(View.VISIBLE);\r\n findViewById(R.id.mainContainer).setVisibility(View.GONE);\r\n findViewById(R.id.errorText).setVisibility(View.GONE);\r\n\r\n }", "private void hideProgress() {\n\n if(null != mErrorTextView) {\n mErrorTextView.setVisibility(View.GONE);\n }\n }", "@Override\n public void showLoading() {\n Log.i(Tag, \"showLoading\");\n }", "public void startLoading() {\r\n\t\tgetDisplay().setRowCount(0, true);\r\n\t\tlabel1.setHTML(\"\");\r\n\t\tlabel2.setHTML(\"\");\r\n\t}", "private void showNothing(){\n errorTextView.setVisibility(View.INVISIBLE);\n errorButton.setVisibility(View.INVISIBLE);\n errorButton.setEnabled(false);\n recyclerView.setVisibility(View.INVISIBLE);\n progressBar.setVisibility(View.INVISIBLE);\n noFavoriteMoviesTextView.setVisibility(View.INVISIBLE);\n }", "private void displayLoader() {\n pDialog = new ProgressDialog(DangKyActivity.this);\n pDialog.setMessage(\"Vui lòng đợi trong giây lát...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }", "private void setLoading(boolean isLoading) {\n if (isLoading) {\n getWindow().setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE,\n WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n layoutLoading.setVisibility(View.VISIBLE);\n } else {\n getWindow().clearFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE);\n layoutLoading.setVisibility(View.INVISIBLE);\n }\n }", "void hideProgress() {\n removeProgressView();\n removeScreenshotView();\n }", "void hidePreviousEventsLoadingWheel();", "@Override\n public void onLoadingStarted(String arg0, View arg1) {\n holder.imageView.setVisibility(View.GONE);\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tlinlaHeaderProgress.setVisibility(View.VISIBLE);\n\t\t}", "public void startLoading() {\n projects.clear();\n processContainer.setVisibility(View.VISIBLE);\n progressSpinner.setVisibility(View.VISIBLE);\n progressText.setVisibility(View.VISIBLE);\n progressText.setText(\"Getting Items...\"); // Text updated using SetProgress()\n listView.setVisibility(View.GONE);\n }", "protected void showLoading()\n {\n progressBar = new ProgressDialog(this);\n progressBar.setTitle(\"Loading\");\n progressBar.setMessage(\"Wait while loading...\");\n progressBar.setCancelable(false); // disable dismiss by tapping outside of the dialog\n progressBar.show();\n }", "public void showProgress() {\n img_left_action.setVisibility(View.GONE);\n search_progress.setAlpha(0.0f);\n search_progress.setVisibility(View.VISIBLE);\n ObjectAnimator.ofFloat(search_progress, \"alpha\", 0.0f, 1.0f).start();\n }", "private void showIndicator() {\n mProgressBarHolder.setVisibility(View.VISIBLE);\n mEmailView.setFocusableInTouchMode(false);\n mEmailView.setFocusable(false);\n mEmailView.setEnabled(false);\n mPasswordView.setFocusableInTouchMode(false);\n mPasswordView.setFocusable(false);\n mPasswordView.setEnabled(false);\n mRegister.setEnabled(false);\n mEmailSignInButton.setEnabled(false);\n }", "void hideProgress();", "@Override\n\t\t\tpublic void onLoadingCancelled(String imageUri, View view) {\n\t\t\t\tif (progressbar != null)\n\t\t\t\t\tprogressbar.setVisibility(View.GONE);\n\t\t\t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n mLoadingIndicator.setVisibility(View.VISIBLE);\n }", "@Override public void showLoading() {\n LoginViewState vs = (LoginViewState) viewState;\n vs.setShowLoading();\n\n errorView.setVisibility(View.GONE);\n setFormEnabled(false);\n }", "private void hideSplash() {\n \t\tthis.splashInfoContainer.startAnimation( this.splashFadeOut );\n \t}", "public void onFinish() {\n\n imageView_gif_confeti.setVisibility(View.INVISIBLE);\n }", "public void mapImageProgressOff (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourMapImageBinding.tourMapImageProgress.getVisibility() != View.GONE) {\n tabTourMapImageBinding.tourMapImageProgress.setVisibility(View.GONE);\n }\n if (tabTourMapImageBinding.tourMapImageLayout.getVisibility() != View.VISIBLE) {\n tabTourMapImageBinding.tourMapImageLayout.setVisibility(View.VISIBLE);\n }\n }\n });\n }", "void showMainLoadingWheel();", "public void displayLoadingWindowServerDown()\r\n\t{\r\n\t\tloadingWindow.hideLoadingBar();\r\n\t\tloadingWindow.setDescription(\"The HVMK server is down. Please try again later.\");\r\n\t}", "public void showLoadingScreen() {\n setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n getSelectGameScreenIfActive().ifPresent(new Consumer<SelectGameScreen>() {\n @Override\n public void accept(SelectGameScreen gameScreen) {\n gameScreen.setDisabled();\n }\n });\n }", "@Override\n\t\t\tpublic void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n\t\t\t\tif (progressbar != null)\n\t\t\t\t\tprogressbar.setVisibility(View.GONE);\n\t\t\t}", "public void setUploading()\n {\n jPanel4.setVisible(false);\n th.start();\n }", "private void showProgressIndicator() {\n setProgressBarIndeterminateVisibility(true);\n setProgressBarIndeterminate(true);\n }", "public void showLoadingError() {\n showError(MESSAGE_LOADING_ERROR);\n }", "private void displayLoadingIndicator(Boolean displayIndicator){\n Log.d(LOG_TAG, \"displayLoadingIndicator() => \" + displayIndicator);\n if (displayIndicator){\n /* Display the loading indicator */\n mLoadingIndicator.setVisibility(View.VISIBLE);\n } else {\n /* Hide the loading indicator */\n mLoadingIndicator.setVisibility(View.INVISIBLE);\n }\n }", "@Override\n protected void onStartLoading() {\n super.onStartLoading();\n\n mLoadingIndicator.setVisibility(View.VISIBLE);\n\n forceLoad();\n }", "public void onStopLoading() {\n boolean cancelLoad = cancelLoad();\n }", "public void onStopLoading() {\n boolean cancelLoad = cancelLoad();\n }", "@Override\n public void hideProgressBar() {\n MainActivity.sInstance.hideProgressBar();\n }", "@Override\r\n\t\tprotected void onPreExecute() {\r\n\t\t\tsuper.onPreExecute();\r\n\t\t\tshowLoading();\r\n\t\t}", "public boolean isBusyLoading() {\n\t\treturn false; // return (AppStatusLine.isBusyLoading());\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t\t\t}", "@Override\n\tpublic void hideProgress() {\n\t\twaitDialog(false);\n\t}", "public void showLoadingView() {\n mStateView.showViewLoading();\n }", "void hideQueuingBuildProgress();", "public void hideProgressDialog() {\r\n\t\trunOnUiThread(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (progress.isShowing())\r\n\t\t\t\t\t\tprogress.dismiss();\r\n\t\t\t\t} catch (Throwable e) {\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "protected void dismissLoading()\n {\n progressBar.dismiss();\n }", "public void clearLoadingPanel(){\n this.loadingPanel.clear();\n }", "private void hideProgressDialogWithTitle() {\n progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progressDialog.dismiss();\n }", "@Override\n public void onLoadingCancelled(String arg0, View arg1) {\n holder.imageView.setVisibility(View.GONE);\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t}", "private void displayLoader() {\n pDialog = new ProgressDialog(AddReviewActivity.this);\n pDialog.setMessage(\"Adding Review...Please wait...\");\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.show();\n\n }", "private void showSplash() {\n \t\tthis.splashInfoContainer.setVisibility( View.VISIBLE );\n \t}", "void setLoading(boolean isLoading);", "public boolean loadProgress() {\n return false;\n }", "@Override\n public void onLoadingComplete(String arg0, View arg1, Bitmap arg2) {\n holder.imageView.setVisibility(View.VISIBLE);\n }", "private void uploadingProgressBarInit() {\n uploadingProgressBar.setVisibility(VISIBLE);\n uploadingProgressBar.setProgress(0);\n }", "public void onStopLoading() {\n cancelLoad();\n }", "public void infoProgressOn (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourInfoBinding.tourInfoProgress.getVisibility() != View.VISIBLE) {\n tabTourInfoBinding.tourInfoProgress.setVisibility(View.VISIBLE);\n }\n if (tabTourInfoBinding.tourInfoLayout.getVisibility() != View.GONE) {\n tabTourInfoBinding.tourInfoLayout.setVisibility(View.GONE);\n }\n }\n });\n }", "@Override\n public void esconderBarraProgresso(){\n progressbar.setVisibility(View.GONE);\n listView.setVisibility(View.VISIBLE);\n }", "public void goneProgress(){\n mProgressBar.setVisibility(View.GONE);\n }", "@Override\n public void setLoadingIndicator(boolean active) {\n\n if (active) {\n mBusyIndicator.setVisibility(View.VISIBLE);\n } else {\n mBusyIndicator.setVisibility(View.GONE);\n }\n }", "@Override\n\tpublic void hide() {\n\t\tmDismissed = true;\n\t\tremoveShowCallback();\n\t\tlong diff = System.currentTimeMillis() - mStartTime;\n\t\tif (diff >= mShowTime || mStartTime == -1) {\n\t\t\t// The progress spinner has been shown long enough\n\t\t\t// OR was not shown yet. If it wasn't shown yet,\n\t\t\t// it will just never be shown.\n\t\t\tsuper.hide();\n\t\t} else {\n\t\t\t// The progress spinner is shown, but not long enough,\n\t\t\t// so put a delayed message in to hide it when its been\n\t\t\t// shown long enough.\n\t\t\tif (!mPostedHide) {\n\t\t\t\tpostDelayed(mDelayedHide, mShowTime - diff);\n\t\t\t\tmPostedHide = true;\n\t\t\t}\n\t\t}\n\t}", "public void mapProgressOff (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourMapBinding.mapProgress.getVisibility() != View.GONE) {\n tabTourMapBinding.mapProgress.setVisibility(View.GONE);\n }\n if (tabTourMapBinding.mapLayout.getVisibility() != View.VISIBLE) {\n tabTourMapBinding.mapLayout.setVisibility(View.VISIBLE);\n }\n }\n });\n }", "@Override\n public void showProgress() {\n mCircleProgressThemeDetail.setVisibility(View.VISIBLE);\n mCircleProgressThemeDetail.spin();\n mRecyclerThemeDaily.setVisibility(View.GONE);\n }", "private void hideProgress() {\n \tif(mProgress!=null){\n \t\tmProgress.dismiss();\n \tmProgress=null;\n \t}\n }", "private void animateIcon(final boolean enable) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n ImageView myImageView = findViewById(R.id.loading_image);\n if (enable) {\n Animation myFadeInAnimation = AnimationUtils.loadAnimation(LoadingActivity.this, R.anim.loading_animation);\n myImageView.startAnimation(myFadeInAnimation);\n } else {\n myImageView.clearAnimation();\n //Show the icon in distress since we aren't fully loaded.\n }\n }\n });\n }" ]
[ "0.8036217", "0.7866935", "0.767634", "0.7547576", "0.7469078", "0.74645495", "0.7435171", "0.74327534", "0.7424623", "0.7379296", "0.7369461", "0.73687005", "0.7337071", "0.7307024", "0.72414654", "0.7224726", "0.7162484", "0.7146622", "0.7047853", "0.70181483", "0.701705", "0.6998568", "0.6980595", "0.6978706", "0.6889902", "0.68704927", "0.686065", "0.6845717", "0.6832662", "0.6803288", "0.6773892", "0.6770281", "0.67459995", "0.672026", "0.6702262", "0.6686862", "0.6686862", "0.6677809", "0.66760874", "0.6665498", "0.66551167", "0.6646661", "0.6592638", "0.6592433", "0.6571578", "0.656863", "0.6559327", "0.65558225", "0.6542096", "0.6537563", "0.6530408", "0.6515745", "0.651294", "0.6510492", "0.65018046", "0.6495333", "0.6487931", "0.64858633", "0.64761233", "0.64719415", "0.6465381", "0.6459639", "0.64538985", "0.6445572", "0.64244485", "0.64230305", "0.64192873", "0.64090633", "0.64086527", "0.6402915", "0.6386079", "0.6386079", "0.63621616", "0.6360766", "0.6355826", "0.6347483", "0.63468504", "0.63466376", "0.6325537", "0.6323237", "0.6322113", "0.6313081", "0.63092977", "0.63082325", "0.62903863", "0.62733316", "0.6268173", "0.62662405", "0.6263094", "0.62617713", "0.6261267", "0.62498635", "0.6237966", "0.6224023", "0.62181586", "0.6214699", "0.62100536", "0.62034535", "0.62025774", "0.6201633", "0.61940855" ]
0.0
-1