query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Finds name definition across all Haskell files in the project. All definitions are found when name is null.
@NotNull public static List<PsiNamedElement> findDefinitionNode(@NotNull Project project, @Nullable String name, @Nullable PsiNamedElement e) { // Guess where the name could be defined by lookup up potential modules. final Set<String> potentialModules = e == null ? Collections.EMPTY_SET : getPotentialDefinitionModuleNames(e, HaskellPsiUtil.parseImports(e.getContainingFile())); List<PsiNamedElement> result = ContainerUtil.newArrayList(); final String qPrefix = e == null ? null : getQualifiedPrefix(e); final PsiFile psiFile = e == null ? null : e.getContainingFile().getOriginalFile(); if (psiFile instanceof HaskellFile) { findDefinitionNode((HaskellFile)psiFile, name, e, result); } for (String potentialModule : potentialModules) { List<HaskellFile> files = HaskellModuleIndex.getFilesByModuleName(project, potentialModule, GlobalSearchScope.allScope(project)); for (HaskellFile f : files) { final boolean returnAllReferences = name == null; final boolean inLocalModule = f != null && qPrefix == null && f.equals(psiFile); final boolean inImportedModule = f != null && potentialModules.contains(f.getModuleName()); if (returnAllReferences || inLocalModule || inImportedModule) { findDefinitionNode(f, name, e, result); } } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NotNull\n public static List<PsiNamedElement> findDefinitionNodes(@Nullable HaskellFile haskellFile, @Nullable String name) {\n List<PsiNamedElement> ret = ContainerUtil.newArrayList();\n findDefinitionNode(haskellFile, name, null, ret);\n return ret;\n }", "public static void findDef...
[ "0.6222101", "0.59422815", "0.5199183", "0.514883", "0.51262844", "0.51239425", "0.51119816", "0.5101984", "0.50903016", "0.50784135", "0.50488424", "0.49873453", "0.49866933", "0.4972619", "0.49725926", "0.49452084", "0.4935986", "0.48781314", "0.48463112", "0.4843629", "0.4...
0.6599097
0
Finds a name definition inside a Haskell file. All definitions are found when name is null.
public static void findDefinitionNode(@Nullable HaskellFile file, @Nullable String name, @Nullable PsiNamedElement e, @NotNull List<PsiNamedElement> result) { if (file == null) return; // We only want to look for classes that match the element we are resolving (e.g. varid, conid, etc.) final Class<? extends PsiNamedElement> elementClass; if (e instanceof HaskellVarid) { elementClass = HaskellVarid.class; } else if (e instanceof HaskellConid) { elementClass = HaskellConid.class; } else { elementClass = PsiNamedElement.class; } Collection<PsiNamedElement> namedElements = PsiTreeUtil.findChildrenOfType(file, elementClass); for (PsiNamedElement namedElement : namedElements) { if ((name == null || name.equals(namedElement.getName())) && definitionNode(namedElement)) { result.add(namedElement); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Definition lookup(String name, // the name to locate\n int numParams) { // number of params\n // note that the name isn't used... all definitions contained\n // by the MultiDef have the same name\n \n // w...
[ "0.5998122", "0.5996398", "0.59515333", "0.5916102", "0.57006395", "0.5636416", "0.55873257", "0.55669725", "0.5498366", "0.54601216", "0.5434735", "0.5421004", "0.5414634", "0.5380867", "0.53670996", "0.5366993", "0.5354823", "0.53509015", "0.53141606", "0.53002846", "0.5281...
0.6157064
0
Finds a name definition inside a Haskell file. All definitions are found when name is null.
@NotNull public static List<PsiNamedElement> findDefinitionNodes(@Nullable HaskellFile haskellFile, @Nullable String name) { List<PsiNamedElement> ret = ContainerUtil.newArrayList(); findDefinitionNode(haskellFile, name, null, ret); return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void findDefinitionNode(@Nullable HaskellFile file, @Nullable String name, @Nullable PsiNamedElement e, @NotNull List<PsiNamedElement> result) {\n if (file == null) return;\n // We only want to look for classes that match the element we are resolving (e.g. varid, conid, etc.)\n f...
[ "0.6157064", "0.5998122", "0.5996398", "0.5916102", "0.57006395", "0.5636416", "0.55873257", "0.55669725", "0.5498366", "0.54601216", "0.5434735", "0.5421004", "0.5414634", "0.5380867", "0.53670996", "0.5366993", "0.5354823", "0.53509015", "0.53141606", "0.53002846", "0.52815...
0.59515333
3
Finds name definition across all Haskell files in the project. All definitions are found when name is null.
@NotNull public static List<PsiNamedElement> findDefinitionNodes(@NotNull Project project) { return findDefinitionNode(project, null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NotNull\n public static List<PsiNamedElement> findDefinitionNode(@NotNull Project project, @Nullable String name, @Nullable PsiNamedElement e) {\n // Guess where the name could be defined by lookup up potential modules.\n final Set<String> potentialModules =\n e == null ? Collectio...
[ "0.6599461", "0.6221941", "0.5941917", "0.5198786", "0.51498944", "0.5128641", "0.51245576", "0.51139945", "0.5103179", "0.50901735", "0.50796914", "0.504945", "0.49881062", "0.49875844", "0.49743155", "0.4974223", "0.49460375", "0.49369448", "0.487881", "0.4845941", "0.48453...
0.0
-1
Finds name definitions that are within the scope of a file, including imports (to some degree).
@NotNull public static List<PsiNamedElement> findDefinitionNodes(@NotNull HaskellFile psiFile) { List<PsiNamedElement> result = findDefinitionNodes(psiFile, null); result.addAll(findDefinitionNode(psiFile.getProject(), null, null)); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String containsScope(String line) {\n for (int i = 0; i < ApexDoc.rgstrScope.length; i++) {\n String scope = ApexDoc.rgstrScope[i].toLowerCase();\n\n // if line starts with annotations, replace them, so\n // we can accurately use startsWith to match scope.\n ...
[ "0.57710063", "0.57437533", "0.5698861", "0.54617107", "0.5279234", "0.5191475", "0.51206183", "0.5098433", "0.5069624", "0.50564003", "0.50388515", "0.5027518", "0.50200915", "0.5001661", "0.49975646", "0.4989435", "0.49849096", "0.49796516", "0.49668115", "0.4936563", "0.49...
0.48757392
23
Tells whether a named node is a definition node based on its context. Precondition: Element is in a Haskell file.
public static boolean definitionNode(@NotNull PsiNamedElement e) { if (e instanceof HaskellVarid) return definitionNode((HaskellVarid)e); if (e instanceof HaskellConid) return definitionNode((HaskellConid)e); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean definitionNode(@NotNull ASTNode node) {\n final PsiElement element = node.getPsi();\n return element instanceof PsiNamedElement && definitionNode((PsiNamedElement)element);\n }", "boolean hasDef();", "public boolean isElementDefinition()\n {\n return elementDefi...
[ "0.78306264", "0.6809478", "0.65953594", "0.65953594", "0.5948981", "0.5948981", "0.59395176", "0.58700913", "0.570417", "0.57022923", "0.5646378", "0.56395084", "0.5609457", "0.5609457", "0.5609457", "0.5609457", "0.5609457", "0.5609457", "0.5609457", "0.5609457", "0.5609457...
0.7673047
1
Tells whether a node is a definition node based on its context.
public static boolean definitionNode(@NotNull ASTNode node) { final PsiElement element = node.getPsi(); return element instanceof PsiNamedElement && definitionNode((PsiNamedElement)element); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean definitionNode(@NotNull PsiNamedElement e) {\n if (e instanceof HaskellVarid) return definitionNode((HaskellVarid)e);\n if (e instanceof HaskellConid) return definitionNode((HaskellConid)e);\n return false;\n }", "boolean hasDef();", "boolean hasIsNodeOf();", "bo...
[ "0.71623015", "0.6594426", "0.6220007", "0.6219473", "0.6219473", "0.6130456", "0.6130456", "0.61097294", "0.61097294", "0.6101466", "0.5892732", "0.5805209", "0.5775638", "0.57541203", "0.5739854", "0.57175636", "0.5685663", "0.5685663", "0.56774455", "0.5671648", "0.5627482...
0.7588963
0
Creates a new instance of MinaIpFilter.
public MinaIpFilter(IpFilter filter) { this.filter = filter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder setIp(int value) {\n bitField0_ |= 0x00000100;\n ip_ = value;\n onChanged();\n return this;\n }", "public void setVideoMulticastAddr(String ip);", "public Builder setInIp(int value) {\n copyOnWrite();\n instance.setInIp(value);\n return...
[ "0.5371051", "0.51613307", "0.51589453", "0.51589453", "0.511656", "0.511656", "0.49910268", "0.48639455", "0.4860461", "0.48366514", "0.48179728", "0.48053297", "0.47356135", "0.47278917", "0.47179818", "0.4668368", "0.46585378", "0.46585378", "0.465237", "0.46381235", "0.46...
0.8138422
0
Add custom extensions (for now features and plugins) to the current table if they're activated.
public void registerCustomExtensions(HtmlTable table) throws ExtensionLoadingException { if (StringUtils.isNotBlank(table.getTableConfiguration().getBasePackage())) { logger.debug("Scanning custom extensions..."); // Scanning custom extension based on the base.package property List<AbstractExtension> customExtensions = scanCustomExtensions(table.getTableConfiguration() .getBasePackage()); // Load custom extension if enabled if (customExtensions != null && !customExtensions.isEmpty() && table.getTableConfiguration().getExtraCustomExtensions() != null) { for (String extensionToRegister : table.getTableConfiguration().getExtraCustomExtensions()) { for (AbstractExtension customExtension : customExtensions) { if (extensionToRegister.equals(customExtension.getName().toLowerCase())) { table.getTableConfiguration().registerExtension(customExtension); logger.debug("Extension {} (version: {}) registered", customExtension.getName(), customExtension.getVersion()); continue; } } } } else { logger.warn("No custom extension found"); } } else{ logger.debug("The 'base.package' property is blank. Unable to scan any class."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addCustExt() {\n String toAdd = customExt.getText();\n String[] extensions = toAdd.split(\",\");\n ExtensionsAdder.addExtensions(extensions);\n }", "public void registerCoreExtensions() {\n if (extensionsRegistered) {\n throw H2O.fail(\"Extensions already registered\")...
[ "0.6461874", "0.62783843", "0.54955333", "0.5402911", "0.5355572", "0.53361005", "0.53046465", "0.5263702", "0.5257727", "0.52512735", "0.5222978", "0.5219779", "0.52135247", "0.5203311", "0.51322776", "0.511552", "0.5092235", "0.50614053", "0.505111", "0.5035688", "0.5032191...
0.73026884
0
Length of the message
int length();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getFullMessageLength();", "public int getLength() {\r\n\t\treturn messageData.length;\r\n\t}", "public long getLength();", "public long getLength();", "Long payloadLength();", "public int get_length();", "public int getLength()\n\t{\n\t\treturn length;\n\t}", "public int getLength()\n\t{\n\t\tre...
[ "0.8547448", "0.84940356", "0.77184504", "0.77184504", "0.7712888", "0.76430196", "0.76292175", "0.76292175", "0.7621476", "0.7601998", "0.7573837", "0.7573837", "0.7573837", "0.7573837", "0.7573837", "0.7573837", "0.7525709", "0.7523501", "0.7523501", "0.7523501", "0.7507933...
0.0
-1
nonpublic, no parameter constructor
ImageComponent3D() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "private Rekenhulp()\n\t{\n\t}", "private MApi() {}", "public Constructor(){\n\t\t\n\t}", "Reproducible newInstance();", "public Pitonyak_09_02() {\r\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "privat...
[ "0.7433363", "0.7265101", "0.72034687", "0.71762174", "0.7137859", "0.70926625", "0.7075587", "0.70738196", "0.70704186", "0.70232624", "0.70116967", "0.7009138", "0.7002133", "0.6973808", "0.69518936", "0.6868347", "0.68325514", "0.6807074", "0.679055", "0.6788554", "0.67809...
0.0
-1
Constructs a 3D image component object using the specified format, width, height, and depth. Default values are used for all other parameters. The default values are as follows: array of images : null imageClass : ImageClass.BUFFERED_IMAGE
public ImageComponent3D(int format, int width, int height, int depth) { ((ImageComponent3DRetained)this.retained).processParams(format, width, height, depth); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ImageComponent3D(int format, RenderedImage[] images) {\n\n ((ImageComponent3DRetained)this.retained).processParams(format,\n\timages[0].getWidth(), images[0].getHeight(), images.length);\n for (int i=0; i<images.length; i++) {\n ((ImageComponent3DRetained)this.retained).set(i, image...
[ "0.7079169", "0.70469934", "0.68360776", "0.6714423", "0.6563682", "0.6562966", "0.6455756", "0.52635086", "0.5250456", "0.52494353", "0.5217552", "0.5198906", "0.51747066", "0.5169584", "0.5156716", "0.50953186", "0.5088857", "0.50596803", "0.5009067", "0.49761504", "0.49692...
0.7194676
0
Constructs a 3D image component object using the specified format, and the BufferedImage array. The image class is set to ImageClass.BUFFERED_IMAGE. Default values are used for all other parameters.
public ImageComponent3D(int format, BufferedImage[] images) { ((ImageComponent3DRetained)this.retained).processParams(format, images[0].getWidth(null), images[0].getHeight(null), images.length); for (int i=0; i<images.length; i++) { ((ImageComponent3DRetained)this.retained).set(i, images[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ImageComponent3D(int format, RenderedImage[] images) {\n\n ((ImageComponent3DRetained)this.retained).processParams(format,\n\timages[0].getWidth(), images[0].getHeight(), images.length);\n for (int i=0; i<images.length; i++) {\n ((ImageComponent3DRetained)this.retained).set(i, image...
[ "0.7188846", "0.7014678", "0.68379927", "0.6650885", "0.64795285", "0.62980306", "0.5950797", "0.5156751", "0.51553744", "0.51211375", "0.5119534", "0.5112684", "0.5090272", "0.505085", "0.5001335", "0.4992092", "0.4936212", "0.4925317", "0.49194992", "0.4912774", "0.48992345...
0.7321845
0
Constructs a 3D image component object using the specified format, and the RenderedImage array. The image class is set to ImageClass.BUFFERED_IMAGE. Default values are used for all other parameters.
public ImageComponent3D(int format, RenderedImage[] images) { ((ImageComponent3DRetained)this.retained).processParams(format, images[0].getWidth(), images[0].getHeight(), images.length); for (int i=0; i<images.length; i++) { ((ImageComponent3DRetained)this.retained).set(i, images[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ImageComponent3D(int format, BufferedImage[] images) {\n ((ImageComponent3DRetained)this.retained).processParams(format,\n\t\timages[0].getWidth(null), images[0].getHeight(null), images.length);\n for (int i=0; i<images.length; i++) {\n ((ImageComponent3DRetained)this.retained).set(...
[ "0.6697731", "0.66890174", "0.6674275", "0.64998657", "0.6343609", "0.6234746", "0.6106364", "0.5183259", "0.5157768", "0.51433897", "0.51191014", "0.5093659", "0.50932837", "0.5088378", "0.50252396", "0.49921238", "0.4986345", "0.4976685", "0.49629527", "0.49540696", "0.4949...
0.6988363
0
Constructs a 3D image component object using the specified format, width, height, depth, byReference flag, and yUp flag. Default values are used for all other parameters.
public ImageComponent3D(int format, int width, int height, int depth, boolean byReference, boolean yUp) { ((ImageComponentRetained)this.retained).setByReference(byReference); ((ImageComponentRetained)this.retained).setYUp(yUp); ((ImageComponent3DRetained)this.retained).processParams(format, width, height, depth); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ImageComponent3D(int format,\n\t\t\t NioImageBuffer[] images,\n\t\t\t boolean byReference,\n\t\t\t boolean yUp) {\n\n\n \tthrow new UnsupportedOperationException();\n /*\n \t((ImageComponentRetained)this.retained).setByReference(byReference);\n \t((ImageComponentRetained)this.retained).setY...
[ "0.7719624", "0.7604591", "0.75604445", "0.73185223", "0.67073125", "0.63318086", "0.63067234", "0.5592755", "0.53838325", "0.53482175", "0.53385794", "0.5317159", "0.5299075", "0.5188119", "0.5186971", "0.51717544", "0.5164273", "0.51381487", "0.5116339", "0.51150835", "0.50...
0.83104897
0
Constructs a 3D image component object using the specified format, BufferedImage array, byReference flag, and yUp flag. The image class is set to ImageClass.BUFFERED_IMAGE.
public ImageComponent3D(int format, BufferedImage[] images, boolean byReference, boolean yUp) { ((ImageComponentRetained)this.retained).setByReference(byReference); ((ImageComponentRetained)this.retained).setYUp(yUp); ((ImageComponent3DRetained)this.retained).processParams(format, images[0].getWidth(null), images[0].getHeight(null), images.length); for (int i=0; i<images.length; i++) { ((ImageComponent3DRetained)this.retained).set(i, images[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ImageComponent3D(int format,\n\t\t\t NioImageBuffer[] images,\n\t\t\t boolean byReference,\n\t\t\t boolean yUp) {\n\n\n \tthrow new UnsupportedOperationException();\n /*\n \t((ImageComponentRetained)this.retained).setByReference(byReference);\n \t((ImageComponentRetained)this.retained).setY...
[ "0.8258609", "0.80384076", "0.76004875", "0.6629802", "0.65151274", "0.6182161", "0.5963535", "0.5467783", "0.54321337", "0.5274543", "0.5233692", "0.5190846", "0.50438875", "0.49414572", "0.49052185", "0.4875808", "0.48592377", "0.4839053", "0.47967532", "0.4783798", "0.4782...
0.82054603
1
Constructs a 3D image component object using the specified format, RenderedImage array, byReference flag, and yUp flag. The image class is set to ImageClass.RENDERED_IMAGE if the byReference flag is true and any of the specified RenderedImages is not an instance of BufferedImage. In all other cases, the image class is set to ImageClass.BUFFERED_IMAGE.
public ImageComponent3D(int format, RenderedImage[] images, boolean byReference, boolean yUp) { ((ImageComponentRetained)this.retained).setByReference(byReference); ((ImageComponentRetained)this.retained).setYUp(yUp); ((ImageComponent3DRetained)this.retained).processParams(format, images[0].getWidth(), images[0].getHeight(), images.length); for (int i=0; i<images.length; i++) { ((ImageComponent3DRetained)this.retained).set(i, images[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ImageComponent3D(int format,\n\t\t\t BufferedImage[] images,\n\t\t\t boolean byReference,\n\t\t\t boolean yUp) {\n\n\n \t((ImageComponentRetained)this.retained).setByReference(byReference);\n \t((ImageComponentRetained)this.retained).setYUp(yUp);\n \t((ImageComponent3DRetained)this.retained).proces...
[ "0.7989884", "0.7886854", "0.7359223", "0.646569", "0.6241159", "0.57729053", "0.5380852", "0.49043304", "0.48620865", "0.4812905", "0.48116064", "0.48016477", "0.47914812", "0.47338927", "0.47335422", "0.47192088", "0.46476245", "0.4621002", "0.46109033", "0.45861098", "0.45...
0.81416565
0
Constructs a 3D image component object using the specified format, NioImageBuffer array, byReference flag, and yUp flag. The image class is set to ImageClass.NIO_IMAGE_BUFFER.
public ImageComponent3D(int format, NioImageBuffer[] images, boolean byReference, boolean yUp) { throw new UnsupportedOperationException(); /* ((ImageComponentRetained)this.retained).setByReference(byReference); ((ImageComponentRetained)this.retained).setYUp(yUp); ((ImageComponent3DRetained)this.retained).processParams(format, images[0].getWidth(), images[0].getHeight(), images.length); for (int i=0; i<images.length; i++) { ((ImageComponent3DRetained)this.retained).set(i, images[i]); } */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ImageComponent3D(int format,\n\t\t\t BufferedImage[] images,\n\t\t\t boolean byReference,\n\t\t\t boolean yUp) {\n\n\n \t((ImageComponentRetained)this.retained).setByReference(byReference);\n \t((ImageComponentRetained)this.retained).setYUp(yUp);\n \t((ImageComponent3DRetained)this.retained).proces...
[ "0.7567604", "0.74625444", "0.7329122", "0.6182325", "0.60944444", "0.6063514", "0.5841055", "0.5173093", "0.511402", "0.4975364", "0.49658898", "0.4897689", "0.48070765", "0.47787723", "0.47725224", "0.4748502", "0.4748124", "0.4724577", "0.47241828", "0.47204652", "0.467535...
0.8140228
0
Retrieves the depth of this 3D image component object.
public int getDepth() { if (isLiveOrCompiled()) if(!this.getCapability(ImageComponent.ALLOW_SIZE_READ)) throw new CapabilityNotSetException(J3dI18N.getString("ImageComponent3D0")); return ((ImageComponent3DRetained)this.retained).getDepth(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getDepth() {\r\n\t\treturn Float.parseFloat(getProperty(\"depth\").toString());\t\r\n\t}", "public Texture2D getDepthTexture()\n\t{\n\t\treturn mDepthTexture;\n\t}", "public float getDepth() {\n return depth_;\n }", "public float getDepth() {\n return depth_;\n }", "pub...
[ "0.74386144", "0.7429045", "0.7381819", "0.7381819", "0.7342094", "0.7311989", "0.7247861", "0.7236673", "0.7236673", "0.7193481", "0.70888275", "0.7072651", "0.69471174", "0.6910305", "0.6895472", "0.6886994", "0.688488", "0.68635905", "0.68589616", "0.6842619", "0.68388504"...
0.8236142
0
Sets the array of images in this image component to the specified array of BufferedImage objects. If the data access mode is not byreference, then the BufferedImage data is copied into this object. If the data access mode is byreference, then a shallow copy of the array of references to the BufferedImage objects is made, but the BufferedImage data is not necessarily copied. The image class is set to ImageClass.BUFFERED_IMAGE.
public void set(BufferedImage[] images) { checkForLiveOrCompiled(); int depth = ((ImageComponent3DRetained)this.retained).getDepth(); if (depth != images.length) throw new IllegalArgumentException(J3dI18N.getString("ImageComponent3D1")); for (int i=0; i<depth; i++) { ((ImageComponent3DRetained)this.retained).set(i, images[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void set(NioImageBuffer[] images) {\n\n \tthrow new UnsupportedOperationException();\n /*\n checkForLiveOrCompiled();\n\tint depth = ((ImageComponent3DRetained)this.retained).getDepth();\n\n if (depth != images.length)\n\t throw new IllegalArgumentException(J3dI18N.getString(\"ImageC...
[ "0.70050275", "0.6412651", "0.6383642", "0.60540545", "0.5707158", "0.5655328", "0.5630492", "0.55977684", "0.5497106", "0.5496483", "0.5482752", "0.5478314", "0.5478265", "0.5425905", "0.5414572", "0.5390117", "0.53253686", "0.5269805", "0.526949", "0.524221", "0.5241313", ...
0.6895526
1
Sets the array of images in this image component to the specified array of RenderedImage objects. If the data access mode is not byreference, then the RenderedImage data is copied into this object. If the data access mode is byreference, then a shallow copy of the array of references to the RenderedImage objects is made, but the RenderedImage data is not necessarily copied. The image class is set to ImageClass.RENDERED_IMAGE if the data access mode is byreference and any of the specified RenderedImages is not an instance of BufferedImage. In all other cases, the image class is set to ImageClass.BUFFERED_IMAGE.
public void set(RenderedImage[] images) { checkForLiveOrCompiled(); int depth = ((ImageComponent3DRetained)this.retained).getDepth(); if (depth != images.length) throw new IllegalArgumentException(J3dI18N.getString("ImageComponent3D1")); for (int i=0; i<depth; i++) { ((ImageComponent3DRetained)this.retained).set(i, images[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void set(BufferedImage[] images) {\n checkForLiveOrCompiled();\n\tint depth = ((ImageComponent3DRetained)this.retained).getDepth();\n\n if (depth != images.length)\n throw new IllegalArgumentException(J3dI18N.getString(\"ImageComponent3D1\"));\n for (int i=0; i<depth; i++) {\...
[ "0.6523158", "0.64145494", "0.5601952", "0.5595511", "0.5412884", "0.5386066", "0.52859205", "0.5278339", "0.5265303", "0.52304304", "0.5202614", "0.51460874", "0.51001626", "0.50871164", "0.5067583", "0.5029949", "0.50266314", "0.501889", "0.5013671", "0.4977582", "0.4957497...
0.6945114
0
Sets the array of images in this image component to the specified array of NioImageBuffer objects. If the data access mode is not byreference, then the NioImageBuffer data is copied into this object. If the data access mode is byreference, then a shallow copy of the array of references to the NioImageBuffer objects is made, but the NioImageBuffer data is not necessarily copied. The image class is set to ImageClass.NIO_IMAGE_BUFFER.
public void set(NioImageBuffer[] images) { throw new UnsupportedOperationException(); /* checkForLiveOrCompiled(); int depth = ((ImageComponent3DRetained)this.retained).getDepth(); if (depth != images.length) throw new IllegalArgumentException(J3dI18N.getString("ImageComponent3D1")); for (int i=0; i<depth; i++) { ((ImageComponent3DRetained)this.retained).set(i, images[i]); } */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void set(BufferedImage[] images) {\n checkForLiveOrCompiled();\n\tint depth = ((ImageComponent3DRetained)this.retained).getDepth();\n\n if (depth != images.length)\n throw new IllegalArgumentException(J3dI18N.getString(\"ImageComponent3D1\"));\n for (int i=0; i<depth; i++) {\...
[ "0.58576745", "0.57855725", "0.5695185", "0.56076324", "0.5576523", "0.5498689", "0.5452501", "0.52875894", "0.52850133", "0.5050428", "0.5047696", "0.5036664", "0.5029255", "0.5026669", "0.499403", "0.49545625", "0.4891042", "0.487786", "0.4870815", "0.4846821", "0.48051804"...
0.70703876
0
Sets this image component at the specified index to the specified BufferedImage object. If the data access mode is not byreference, then the BufferedImage data is copied into this object. If the data access mode is byreference, then a reference to the BufferedImage is saved, but the data is not necessarily copied.
public void set(int index, BufferedImage image) { checkForLiveOrCompiled(); if (image.getWidth(null) != this.getWidth()) throw new IllegalArgumentException(J3dI18N.getString("ImageComponent3D2")); if (image.getHeight(null) != this.getHeight()) throw new IllegalArgumentException(J3dI18N.getString("ImageComponent3D4")); ((ImageComponent3DRetained)this.retained).set(index, image); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void set(int index, NioImageBuffer image) {\n\n \tthrow new UnsupportedOperationException();\n /*\n checkForLiveOrCompiled();\n // For NioImageBuffer the width and height checking is done in the retained.\n ((ImageComponent3DRetained)this.retained).set(index, image);\n *...
[ "0.7357035", "0.6680164", "0.66478455", "0.60807836", "0.5933417", "0.58314675", "0.5736672", "0.5663915", "0.56099266", "0.5579909", "0.553276", "0.55151445", "0.547573", "0.5467972", "0.5451083", "0.543115", "0.5416996", "0.54049027", "0.53820455", "0.537925", "0.5370989", ...
0.71577203
1
Sets this image component at the specified index to the specified RenderedImage object. If the data access mode is not byreference, then the RenderedImage data is copied into this object. If the data access mode is byreference, then a reference to the RenderedImage is saved, but the data is not necessarily copied.
public void set(int index, RenderedImage image) { checkForLiveOrCompiled(); // For RenderedImage the width and height checking is done in the retained. ((ImageComponent3DRetained)this.retained).set(index, image); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void set(int index, NioImageBuffer image) {\n\n \tthrow new UnsupportedOperationException();\n /*\n checkForLiveOrCompiled();\n // For NioImageBuffer the width and height checking is done in the retained.\n ((ImageComponent3DRetained)this.retained).set(index, image);\n *...
[ "0.6903358", "0.67567456", "0.5967602", "0.5909405", "0.5905885", "0.5805421", "0.5794359", "0.5793994", "0.573824", "0.5720985", "0.56860447", "0.5640829", "0.5509794", "0.5364712", "0.5354545", "0.5324177", "0.528705", "0.51893586", "0.5186203", "0.51858246", "0.5085043", ...
0.7624767
0
Sets this image component at the specified index to the specified NioImageBuffer object. If the data access mode is not byreference, then the NioImageBuffer data is copied into this object. If the data access mode is byreference, then a reference to the NioImageBuffer is saved, but the data is not necessarily copied.
public void set(int index, NioImageBuffer image) { throw new UnsupportedOperationException(); /* checkForLiveOrCompiled(); // For NioImageBuffer the width and height checking is done in the retained. ((ImageComponent3DRetained)this.retained).set(index, image); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NioImageBuffer getNioImage(int index) {\n\n \tthrow new UnsupportedOperationException();\n }", "public ByteBuf setBytes(int index, ByteBuffer src)\r\n/* 257: */ {\r\n/* 258:276 */ ensureAccessible();\r\n/* 259:277 */ src.get(this.array, index, src.remaining());\r\n/* 260:278 */ return ...
[ "0.6273577", "0.607364", "0.5930382", "0.59055096", "0.5833876", "0.58118737", "0.5755573", "0.5682504", "0.5599867", "0.5586097", "0.55557674", "0.5540615", "0.55148745", "0.5514669", "0.55110216", "0.55006146", "0.5495586", "0.54899204", "0.5413523", "0.5397833", "0.5397564...
0.75937784
0
Retrieves the images from this ImageComponent3D object. If the data access mode is not byreference, then a copy of the images is made. If the data access mode is byreference, then the references are returned.
public BufferedImage[] getImage() { if (isLiveOrCompiled()) if(!this.getCapability(ImageComponent.ALLOW_IMAGE_READ)) throw new CapabilityNotSetException(J3dI18N.getString("ImageComponent3D3")); return ((ImageComponent3DRetained)this.retained).getImage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Image> getImages() {\r\n\t\treturn immutableImageList;\r\n\t}", "public Image[] getImages() {\n return images;\n }", "public RenderedImage[] getRenderedImage() {\n if (isLiveOrCompiled())\n if(!this.getCapability(ImageComponent.ALLOW_IMAGE_READ))\n throw new Capab...
[ "0.6029264", "0.59378564", "0.5898646", "0.5779092", "0.5770385", "0.57371974", "0.57237893", "0.5708291", "0.56423974", "0.56245524", "0.5608515", "0.55626434", "0.5534968", "0.55137855", "0.5501159", "0.54815096", "0.5478178", "0.54181284", "0.54032737", "0.5359582", "0.535...
0.70325696
0
Retrieves the images from this ImageComponent3D object. If the data access mode is not byreference, then a copy of the images is made. If the data access mode is byreference, then the references are returned.
public RenderedImage[] getRenderedImage() { if (isLiveOrCompiled()) if(!this.getCapability(ImageComponent.ALLOW_IMAGE_READ)) throw new CapabilityNotSetException(J3dI18N.getString("ImageComponent3D3")); return ((ImageComponent3DRetained)this.retained).getRenderedImage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BufferedImage[] getImage() {\n if (isLiveOrCompiled())\n if(!this.getCapability(ImageComponent.ALLOW_IMAGE_READ))\n throw new CapabilityNotSetException(J3dI18N.getString(\"ImageComponent3D3\"));\n\treturn ((ImageComponent3DRetained)this.retained).getImage();\n }", "public...
[ "0.70336044", "0.60281706", "0.5936707", "0.57782835", "0.5769978", "0.5736389", "0.5723085", "0.570654", "0.56440943", "0.5623706", "0.5607293", "0.55626804", "0.55336696", "0.55150324", "0.5500532", "0.5480634", "0.54773444", "0.5417552", "0.54023415", "0.53598154", "0.5354...
0.59000236
3
Retrieves the images from this ImageComponent3D object. If the data access mode is not byreference, then a copy of the images is made. If the data access mode is byreference, then the references are returned.
public NioImageBuffer[] getNioImage() { throw new UnsupportedOperationException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BufferedImage[] getImage() {\n if (isLiveOrCompiled())\n if(!this.getCapability(ImageComponent.ALLOW_IMAGE_READ))\n throw new CapabilityNotSetException(J3dI18N.getString(\"ImageComponent3D3\"));\n\treturn ((ImageComponent3DRetained)this.retained).getImage();\n }", "public...
[ "0.703248", "0.6029943", "0.5938105", "0.5898445", "0.57789624", "0.57700974", "0.57374424", "0.5724316", "0.5708578", "0.56426215", "0.56254566", "0.5608307", "0.55629313", "0.5535373", "0.5512993", "0.5501496", "0.548154", "0.54782706", "0.54182124", "0.5403722", "0.535962"...
0.0
-1
Retrieves one of the images from this ImageComponent3D object. If the data access mode is not byreference, then a copy of the image is made. If the data access mode is byreference, then the reference is returned.
public BufferedImage getImage(int index) { if (isLiveOrCompiled()) if(!this.getCapability(ImageComponent.ALLOW_IMAGE_READ)) throw new CapabilityNotSetException(J3dI18N.getString("ImageComponent3D3")); RenderedImage img = ((ImageComponent3DRetained)this.retained).getImage(index); if ((img != null) && !(img instanceof BufferedImage)) { throw new IllegalStateException(J3dI18N.getString("ImageComponent3D9")); } return (BufferedImage) img; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BufferedImage[] getImage() {\n if (isLiveOrCompiled())\n if(!this.getCapability(ImageComponent.ALLOW_IMAGE_READ))\n throw new CapabilityNotSetException(J3dI18N.getString(\"ImageComponent3D3\"));\n\treturn ((ImageComponent3DRetained)this.retained).getImage();\n }", "final ...
[ "0.7090989", "0.61585504", "0.614816", "0.6134999", "0.60432434", "0.6015029", "0.59839356", "0.59285605", "0.58899605", "0.5869743", "0.5863255", "0.5837111", "0.5828118", "0.58141536", "0.58094555", "0.58094555", "0.5797015", "0.57822925", "0.5774002", "0.57453066", "0.5732...
0.62184554
1
Retrieves one of the images from this ImageComponent3D object. If the data access mode is not byreference, then a copy of the image is made. If the data access mode is byreference, then the reference is returned.
public RenderedImage getRenderedImage(int index) { if (isLiveOrCompiled()) if(!this.getCapability(ImageComponent.ALLOW_IMAGE_READ)) throw new CapabilityNotSetException(J3dI18N.getString("ImageComponent3D3")); return ((ImageComponent3DRetained)this.retained).getImage(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BufferedImage[] getImage() {\n if (isLiveOrCompiled())\n if(!this.getCapability(ImageComponent.ALLOW_IMAGE_READ))\n throw new CapabilityNotSetException(J3dI18N.getString(\"ImageComponent3D3\"));\n\treturn ((ImageComponent3DRetained)this.retained).getImage();\n }", "public...
[ "0.70906514", "0.6218486", "0.615849", "0.6147704", "0.6134895", "0.6042987", "0.60146284", "0.59828335", "0.59280217", "0.5889677", "0.5869646", "0.5863222", "0.58364964", "0.5828702", "0.58135283", "0.58088124", "0.58088124", "0.5796371", "0.5781569", "0.5772981", "0.574455...
0.5683152
29
Retrieves one of the images from this ImageComponent3D object. If the data access mode is not byreference, then a copy of the image is made. If the data access mode is byreference, then the reference is returned.
public NioImageBuffer getNioImage(int index) { throw new UnsupportedOperationException(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BufferedImage[] getImage() {\n if (isLiveOrCompiled())\n if(!this.getCapability(ImageComponent.ALLOW_IMAGE_READ))\n throw new CapabilityNotSetException(J3dI18N.getString(\"ImageComponent3D3\"));\n\treturn ((ImageComponent3DRetained)this.retained).getImage();\n }", "public...
[ "0.7090416", "0.62184423", "0.6159018", "0.61476105", "0.61344814", "0.604382", "0.60146034", "0.59833205", "0.5928762", "0.5889039", "0.5868887", "0.5862638", "0.5836322", "0.5827837", "0.581318", "0.58084846", "0.58084846", "0.57960564", "0.5781221", "0.57726264", "0.574458...
0.0
-1
Modifies a contiguous subregion of a particular slice of image of this ImageComponent3D object. Block of data of dimension (width height) starting at the offset (srcX, srcY) of the specified RenderedImage object will be copied into the particular slice of image component starting at the offset (dstX, dstY) of this ImageComponent3D object. The specified RenderedImage object must be of the same format as the current format of this object. This method can only be used if the data access mode is bycopy. If it is byreference, see updateData().
public void setSubImage(int index, RenderedImage image, int width, int height, int srcX, int srcY, int dstX, int dstY) { if (isLiveOrCompiled() && !this.getCapability(ALLOW_IMAGE_WRITE)) { throw new CapabilityNotSetException( J3dI18N.getString("ImageComponent3D5")); } if (((ImageComponent3DRetained)this.retained).isByReference()) { throw new IllegalStateException( J3dI18N.getString("ImageComponent3D8")); } int w = ((ImageComponent3DRetained)this.retained).getWidth(); int h = ((ImageComponent3DRetained)this.retained).getHeight(); if ((srcX < 0) || (srcY < 0) || ((srcX + width) > w) || ((srcY + height) > h) || (dstX < 0) || (dstY < 0) || ((dstX + width) > w) || ((dstY + height) > h)) { throw new IllegalArgumentException( J3dI18N.getString("ImageComponent3D7")); } ((ImageComponent3DRetained)this.retained).setSubImage( index, image, width, height, srcX, srcY, dstX, dstY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateData(ImageComponent3D imageComponent,\n\t\t\t int index,\n\t\t\t int x, int y,\n\t\t\t int width, int height);", "public AlgorithmPadWithSlices(ModelImage srcImage, ModelImage destImage, int padMode) {\r\n super(destImage, srcImage);\r\n this.padMode = padMode;\r...
[ "0.5459166", "0.51064116", "0.5054761", "0.49898422", "0.49149117", "0.48002547", "0.47638837", "0.4745934", "0.46948427", "0.46269658", "0.4623095", "0.4607551", "0.4595011", "0.45518476", "0.45454565", "0.45410672", "0.45285928", "0.45115203", "0.4437694", "0.44061702", "0....
0.59864956
0
Updates a particular slice of image data that is accessed by reference. This method calls the updateData method of the specified ImageComponent3D.Updater object to synchronize updates to the image data that is referenced by this ImageComponent3D object. Applications that wish to modify such data must perform all updates via this method. The data to be modified has to be within the boundary of the subregion specified by the offset (x, y) and the dimension (widthheight). It is illegal to modify data outside this boundary. If any referenced data is modified outside the updateData method, or any data outside the specified boundary is modified, the results are undefined.
public void updateData(Updater updater, int index, int x, int y, int width, int height) { if (isLiveOrCompiled() && !this.getCapability(ALLOW_IMAGE_WRITE)) { throw new CapabilityNotSetException( J3dI18N.getString("ImageComponent3D5")); } if (!((ImageComponent3DRetained)this.retained).isByReference()) { throw new IllegalStateException( J3dI18N.getString("ImageComponent3D6")); } int w = ((ImageComponent3DRetained)this.retained).getWidth(); int h = ((ImageComponent3DRetained)this.retained).getHeight(); if ((x < 0) || (y < 0) || ((x + width) > w) || ((y + height) > h)) { throw new IllegalArgumentException( J3dI18N.getString("ImageComponent3D7")); } ((ImageComponent3DRetained)this.retained).updateData( updater, index, x, y, width, height); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateData(ImageComponent3D imageComponent,\n\t\t\t int index,\n\t\t\t int x, int y,\n\t\t\t int width, int height);", "public static interface Updater {\n\t/**\n\t * Updates image data that is accessed by reference.\n\t * This method is called by the updateData method of an\n\t * I...
[ "0.7169478", "0.67070466", "0.6043746", "0.5419386", "0.53612196", "0.51907533", "0.5166817", "0.5138923", "0.50920665", "0.5039216", "0.50171757", "0.49662423", "0.49557495", "0.49511752", "0.48887807", "0.48502272", "0.4847328", "0.48057723", "0.48055807", "0.47259003", "0....
0.6808289
1
Creates a retained mode ImageComponent3DRetained object that this ImageComponent3D component object will point to.
@Override void createRetained() { this.retained = new ImageComponent3DRetained(); this.retained.setSource(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ImageComponent3D() {}", "public ImageComponent3D(int\t\tformat,\n\t\t\t int\t\twidth,\n\t\t\t int\t\theight,\n\t\t\t int\t\tdepth) {\n\n ((ImageComponent3DRetained)this.retained).processParams(format, width, height, depth);\n }", "public ImageComponent3D(int\t\tformat,\n\t\t\t int\t\twidt...
[ "0.63390094", "0.5940483", "0.58187854", "0.5685973", "0.5666042", "0.5665862", "0.5639731", "0.5593723", "0.5480853", "0.54594886", "0.54399043", "0.5413866", "0.5388845", "0.5332703", "0.5255686", "0.52371943", "0.5229077", "0.51590765", "0.51573646", "0.51455086", "0.51145...
0.75820357
0
Copies all node information from originalNodeComponent into the current node. This method is called from the duplicateNode method. This routine does the actual duplication of all "local data" (any data defined in this object).
@Override void duplicateAttributes(NodeComponent originalNodeComponent, boolean forceDuplicate) { super.duplicateAttributes(originalNodeComponent, forceDuplicate); // TODO : Handle NioImageBuffer if its supported. RenderedImage imgs[] = ((ImageComponent3DRetained) originalNodeComponent.retained).getImage(); if (imgs != null) { ImageComponent3DRetained rt = (ImageComponent3DRetained) retained; for (int i=rt.depth-1; i>=0; i--) { if (imgs[i] != null) { rt.set(i, imgs[i]); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node(Node cloneNode) {\n\t\tthis.name = cloneNode.getName();\n\t\tthis.type = cloneNode.getType();\n\t\tthis.setX(cloneNode.getX());\n\t\tthis.setY(cloneNode.getY());\n\t\tthis.position = new Vector2(cloneNode.getPosition());\n\t}", "private Node clone(Node node, Node parent, String overrideName) {\n ...
[ "0.63025904", "0.6046168", "0.6043179", "0.5924438", "0.5921631", "0.5914533", "0.582651", "0.57296264", "0.5685582", "0.56267273", "0.5591683", "0.55743116", "0.55664545", "0.5513796", "0.54674745", "0.54610807", "0.5452962", "0.54061246", "0.53888625", "0.5337286", "0.53158...
0.6000468
3
The ImageComponent3D.Updater interface is used in updating image data that is accessed by reference from a live or compiled ImageComponent object. Applications that wish to modify such data must define a class that implements this interface. An instance of that class is then passed to the updateData method of the ImageComponent object to be modified.
public static interface Updater { /** * Updates image data that is accessed by reference. * This method is called by the updateData method of an * ImageComponent object to effect * safe updates to image data that * is referenced by that object. Applications that wish to modify * such data must implement this method and perform all updates * within it. * <br> * NOTE: Applications should <i>not</i> call this method directly. * * @param imageComponent the ImageComponent object being updated. * @param index index of the image to be modified. * @param x starting X offset of the subregion. * @param y starting Y offset of the subregion. * @param width width of the subregion. * @param height height of the subregion. * * @see ImageComponent3D#updateData */ public void updateData(ImageComponent3D imageComponent, int index, int x, int y, int width, int height); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateData(ImageComponent3D imageComponent,\n\t\t\t int index,\n\t\t\t int x, int y,\n\t\t\t int width, int height);", "public void updateData(Updater updater, int index,\n\t\t\t int x, int y,\n\t\t\t int width, int height) {\n if (isLiveOrCompiled() &&\n !...
[ "0.77783227", "0.7247816", "0.6355467", "0.596873", "0.596873", "0.59517115", "0.58496857", "0.581843", "0.581843", "0.581843", "0.581843", "0.581843", "0.581843", "0.581843", "0.581843", "0.581843", "0.581843", "0.581843", "0.581843", "0.5812459", "0.580914", "0.58088464",...
0.85110474
0
Updates image data that is accessed by reference. This method is called by the updateData method of an ImageComponent object to effect safe updates to image data that is referenced by that object. Applications that wish to modify such data must implement this method and perform all updates within it. NOTE: Applications should not call this method directly.
public void updateData(ImageComponent3D imageComponent, int index, int x, int y, int width, int height);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static interface Updater {\n\t/**\n\t * Updates image data that is accessed by reference.\n\t * This method is called by the updateData method of an\n\t * ImageComponent object to effect\n\t * safe updates to image data that\n\t * is referenced by that object. Applications that wish to modify\n\t * such da...
[ "0.6749145", "0.6366678", "0.63331735", "0.6323653", "0.62221634", "0.62221634", "0.62193704", "0.61473596", "0.6076186", "0.6066272", "0.6060531", "0.60558164", "0.6040003", "0.6026968", "0.600866", "0.599326", "0.597466", "0.5945993", "0.5886846", "0.5839015", "0.58067805",...
0.7025244
0
/ init / try to close team who close already result negative
@Test public void temporaryTeamClosingUnavalableOption() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void resetMyTeam();", "void resetMyTeam(Team team);", "private TeamId findWinningTeam(){\n if (state.score().totalPoints(TeamId.TEAM_1)>=Jass.WINNING_POINTS) {\n return TeamId.TEAM_1;\n }\n else {\n return TeamId.TEAM_2;\n }\n }", "public void setUpTheGame...
[ "0.6532244", "0.6358909", "0.6145154", "0.59754825", "0.5923484", "0.58505017", "0.5751722", "0.5746413", "0.57348734", "0.57186466", "0.5715064", "0.56932193", "0.5690648", "0.56886214", "0.56601197", "0.5621189", "0.56156904", "0.560917", "0.55891687", "0.5586289", "0.55605...
0.5737327
8
/ init / try to reopen team who open already result negative
@Test public void reopenClosedTeamUnavalableOption() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void resetMyTeam();", "void resetMyTeam(Team team);", "@Test\n public void toggleTeamStates() {\n Team team = new Team(\"Crvena Zvezda\");\n\n // TODO: open persistence context and create transaction\n\n // TODO: move team to managed state\n\n // TODO: assert that the team is man...
[ "0.6695181", "0.64225006", "0.58520347", "0.563063", "0.5616506", "0.5556241", "0.5543675", "0.5538023", "0.5519238", "0.5496036", "0.54912174", "0.5488317", "0.5477181", "0.54430497", "0.5416156", "0.5403002", "0.53841406", "0.53775483", "0.531727", "0.53125113", "0.53067124...
0.61486906
2
Return the current state of the permissions needed.
private boolean checkPermissions() { int permissionState = ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION); return permissionState == PackageManager.PERMISSION_GRANTED; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean [] getPermissions()\n\t{\n\t\treturn this.permissions;\n\t}", "public Enumeration permissions();", "public ResourceInformation.Permissions getEffectivePermissions() {\n\t\tif (effectivePermissions == null)\n\t\t\tfetchInfo();\n\t\treturn effectivePermissions;\n\t}", "int getPermissionRead();",...
[ "0.7004933", "0.68340963", "0.68264353", "0.6819104", "0.6787857", "0.67850554", "0.6783329", "0.6732336", "0.6705396", "0.6689202", "0.6651053", "0.6596676", "0.65888196", "0.6560666", "0.6551867", "0.655094", "0.6538527", "0.64937675", "0.64818394", "0.6430919", "0.6430471"...
0.0
-1
Callback received when a permissions request has been completed.
@Override public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { Log.i("INFO", "onRequestPermissionResult"); if (requestCode == REQUEST_PERMISSIONS_REQUEST_CODE) { if (grantResults.length <= 0) { // If user interaction was interrupted, the permission request is cancelled and you // receive empty arrays. Log.i("INFO", "User interaction was cancelled."); } else if (grantResults[0] == PackageManager.PERMISSION_GRANTED) { // Permission granted. getLastLocation(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }", "@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }", "@Override\n public void onAction(List<String> permissions) {\n Log.e(TAG, \...
[ "0.7307336", "0.7307336", "0.7267918", "0.6999627", "0.68490314", "0.6796219", "0.67612785", "0.67542094", "0.6754114", "0.6750372", "0.67407227", "0.67374456", "0.67353004", "0.66154015", "0.65923184", "0.65722334", "0.6563058", "0.6555676", "0.6520609", "0.6518065", "0.6514...
0.6362848
34
This interface defines a school DAO.
public interface SchoolDAO extends GenericDAO<School, Integer> { /** * Create a school. * * @param school * the school to save */ void createSchool(School school); /** * Return classes that depends on this school. * * @param id * the school id * @return the classes found * @throws TechnicalException * if the school does not exist */ List<StudentClass> findClassesBySchoolId(int id) throws TechnicalException; /** * Return classes that depends on this school. * * @param schoolName * the school name * @return the classes found * @throws TechnicalException * if the school does not exist */ List<StudentClass> findClassesBySchoolName(String schoolName) throws TechnicalException; /** * Return the school found for this id. * * @param id * the school id * @return the school found * @throws TechnicalException * if the school does not exist */ School findSchoolById(int id) throws TechnicalException; /** * Return the school found for this name. * * @param schoolName * the school name * @return the school found * @throws TechnicalException * if the school does not exist */ School findSchoolByName(String schoolName) throws TechnicalException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface SchoolSubjectDao {\n /**\n * Finds all schoolSubjects in Database\n * @return List of all schoolSubjects\n * @throws DaoException if connection is down, broken or unable to retrieve information for certain reasons\n */\n List<SchoolSubject> findSchoolSubjects() throws DaoExce...
[ "0.76369643", "0.71699095", "0.7084676", "0.6992176", "0.69144595", "0.687675", "0.6846372", "0.683035", "0.6816346", "0.67759645", "0.6765683", "0.66887116", "0.66746366", "0.6643759", "0.65865046", "0.65784615", "0.6540385", "0.6538394", "0.6534778", "0.65138465", "0.651350...
0.8101683
0
Return classes that depends on this school.
List<StudentClass> findClassesBySchoolId(int id) throws TechnicalException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Class<?>[] getCoClasses();", "Collection<String> getRequiredClasses( String id );", "@Override\n public Set<Class<?>> getClasses() {\n\n Set<Class<?>> resources = new java.util.HashSet<>();\n resources.add(CountryResource.class);\n resources.add(DepartmentResource.class)...
[ "0.6060191", "0.598552", "0.59010726", "0.5890378", "0.5885667", "0.58402807", "0.583086", "0.58273816", "0.57727635", "0.57258505", "0.57117236", "0.5621204", "0.5618497", "0.56175363", "0.55906534", "0.55726427", "0.55581355", "0.55184007", "0.5501738", "0.5471335", "0.5451...
0.54189825
23
Return classes that depends on this school.
List<StudentClass> findClassesBySchoolName(String schoolName) throws TechnicalException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Class<?>[] getCoClasses();", "Collection<String> getRequiredClasses( String id );", "@Override\n public Set<Class<?>> getClasses() {\n\n Set<Class<?>> resources = new java.util.HashSet<>();\n resources.add(CountryResource.class);\n resources.add(DepartmentResource.class)...
[ "0.6060191", "0.598552", "0.59010726", "0.5890378", "0.5885667", "0.58402807", "0.583086", "0.58273816", "0.57727635", "0.57258505", "0.57117236", "0.5621204", "0.5618497", "0.56175363", "0.55906534", "0.55726427", "0.55581355", "0.55184007", "0.5471335", "0.5451957", "0.5440...
0.5501738
18
Return the school found for this id.
School findSchoolById(int id) throws TechnicalException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public School getSchool() {\r\n\t\treturn this.school;\r\n\t}", "public String getCourseIdSchool() {\n return courseIdSchool;\n }", "public Long getSchoolId() {\n return schoolId;\n }", "@Override\n\tpublic Map<String, Object> getSchool() {\n\t\treturn getSession().selectOne(getNamespace(...
[ "0.74383754", "0.7372842", "0.72696835", "0.7240147", "0.7015001", "0.70017046", "0.6983456", "0.69620466", "0.68844587", "0.683565", "0.6601629", "0.6403251", "0.6386376", "0.6335556", "0.62567896", "0.6238664", "0.6195306", "0.6195137", "0.61195624", "0.6074301", "0.6048558...
0.7540534
0
Return the school found for this name.
School findSchoolByName(String schoolName) throws TechnicalException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSchoolName();", "public String getSchoolName() {\n\t\treturn schoolName;\n\t}", "public School getSchool() {\r\n\t\treturn this.school;\r\n\t}", "@Override\n\tpublic Map<String, Object> getSchool() {\n\t\treturn getSession().selectOne(getNamespace() + \"getSchool\");\n\t}", "public Arra...
[ "0.77062184", "0.7458505", "0.73648584", "0.71138656", "0.7100302", "0.7076692", "0.69981706", "0.6946305", "0.6750186", "0.65894234", "0.65318555", "0.6530945", "0.6502653", "0.6384766", "0.6324176", "0.6199869", "0.61893964", "0.6148436", "0.6131986", "0.61285895", "0.61035...
0.7383494
2
/ JADX INFO: this call moved to the top of the method (can break code semantics)
public /* synthetic */ PlayerState(boolean z, int i, long j, int i2, j jVar) { this((i2 & 1) != 0 ? true : z, (i2 & 2) != 0 ? 0 : i, (i2 & 4) != 0 ? 0 : j); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "public void smell() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public voi...
[ "0.6829791", "0.66808707", "0.6607996", "0.65238076", "0.6517636", "0.6495291", "0.64646477", "0.64449894", "0.638496", "0.63599247", "0.63236797", "0.6315212", "0.6308609", "0.6267775", "0.62537265", "0.6238882", "0.62220436", "0.6197616", "0.6187926", "0.61756355", "0.61756...
0.0
-1
Parse the command line arguments
public void run(String[] args) throws Exception { ArgParser parser = new ArgParser(args); determineEvalMethod(parser); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void parseArgs(String[] args) {\n int argc = args.length,\n i = 0;\n\n for (; i < argc; i++) {\n if (args[i].equals(\"-d\")) {\n debug = true;\n } \n else if(args[i].equals(\"-m\")) {\n try {\n ...
[ "0.7365107", "0.73370343", "0.73165345", "0.7247158", "0.72371674", "0.72327834", "0.7196367", "0.71360135", "0.7122332", "0.7115695", "0.7110497", "0.70640963", "0.6972416", "0.6907391", "0.6843233", "0.6812715", "0.6792691", "0.6784042", "0.6756454", "0.6745158", "0.6744369...
0.0
-1
When you make a new learning algorithm, you should add a line for it to this method.
public Learner getLearner(ArgParser parser, Random rand) throws Exception { String model = parser.getLearner(); switch (model) { case "baseline": return new BaselineLearner(); case "perceptron": return new Perceptron(rand); case "backpropagation": return new BackPropagation(rand); case "decisiontree": return new DecisionTree(); case "knn": return new NearestNeighbor(); case "kmeans": return new KMeans(Integer.parseInt(parser.getEvalParameter()), rand); // case "hac": // return new HAC(); default: throw new Exception("Unrecognized model: " + model); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void train ()\t{\t}", "public void startTrainingMode() {\n\t\t\r\n\t}", "public void train() throws Exception;", "private void learn() {\n\t\tupdateValues();\n\t\tif(CFG.isUpdatedPerformanceHistory()){\n\t\t\tupdateHistory();\n\t\t}\n\t\tif(CFG.isEvaluated()) evaluate();\n\t}", "public void learn() ...
[ "0.6881185", "0.65707284", "0.649253", "0.6417927", "0.6402243", "0.6340479", "0.6257117", "0.62148905", "0.62109244", "0.62018055", "0.6132328", "0.6107932", "0.6087437", "0.60811776", "0.60791737", "0.6069936", "0.6011769", "0.5990617", "0.5952277", "0.5949773", "0.5939813"...
0.0
-1
/ access modifiers changed from: protected
public final void zza(zzg zzg, TaskCompletionSource<String> taskCompletionSource) throws RemoteException { taskCompletionSource.setResult(zzg.zza(true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
This routine Gets the nickname for employee and formats it in the form acceptable to the legacy system.
private static String fetchNickname(HashMap<String, Object> parameterMap) { String nickname = ""; PsName psName = PsName.findByEmployeeIdAndNameTypeAndEffectiveDate((String)parameterMap.get("employeeId"), "PRF", (Date)parameterMap.get("effectiveDate")); if(psName != null && psName.getFirstName() != null) { nickname = psName.getFirstName().trim().toUpperCase().replaceAll("'", "''"); if(nickname.length() > 20) { nickname.substring(0, 20); } } return nickname; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getEmployeeName();", "java.lang.String getNickname();", "public java.lang.String getEmployeeName() {\n java.lang.Object ref = employeeName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ...
[ "0.7208892", "0.6842712", "0.68378776", "0.6693423", "0.64720565", "0.6428523", "0.64013535", "0.6381893", "0.6371901", "0.63099235", "0.62849724", "0.6280617", "0.626043", "0.6241159", "0.6241159", "0.6241159", "0.6241159", "0.6241159", "0.6241159", "0.6241159", "0.6241159",...
0.71496564
1
This routine gets the driver license number and state and stores them in the legacy system format.
private static HashMap<String, Object> fetchDriversLicenseData(HashMap<String, Object> parameterMap) { PsDriversLicense psDriversLicense = PsDriversLicense.findByEmployeeId((String)parameterMap.get("employeeId")); if(psDriversLicense != null) { if(psDriversLicense.getDriversLicenseNumber() != null) { psDriversLicense.setDriversLicenseNumber(psDriversLicense.getDriversLicenseNumber().trim().toUpperCase().replaceAll("'", "''")); } if(psDriversLicense.getState() != null) { psDriversLicense.setState(psDriversLicense.getState().trim().toUpperCase()); } parameterMap.put("driversLicenseNumber", psDriversLicense.getDriversLicenseNumber()); parameterMap.put("driversLicenseState", psDriversLicense.getState()); } return parameterMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSoftwareDriverVersion();", "@Override\r\n\tpublic String getBind_vehicle_license_ind() {\n\t\treturn super.getBind_vehicle_license_ind();\r\n\t}", "static String getVendor() {return glVendor;}", "@Override\r\n\tpublic String getBind_driving_license_ind() {\n\t\treturn super.getBind_driving_l...
[ "0.58354235", "0.5735563", "0.5494783", "0.549178", "0.54319465", "0.5431522", "0.5304606", "0.5255618", "0.5242721", "0.52354914", "0.51602376", "0.51595783", "0.5148756", "0.51322174", "0.5128805", "0.5098236", "0.50853646", "0.5084388", "0.50810236", "0.50806856", "0.50487...
0.4886094
29
This routine gets the emergency contact information from the PS_EMERGENCY_CNTCT table and converts it to the legacy system format.
private static HashMap<String, Object> fetchEmergencyContactData(HashMap<String, Object> parameterMap) { PsEmergencyContact psEmergencyContact = PsEmergencyContact.findPrimaryByEmployeeId((String)parameterMap.get("employeeId")); if(psEmergencyContact != null) { if(psEmergencyContact.getContactName() != null) { psEmergencyContact.setContactName(psEmergencyContact.getContactName().trim().toUpperCase().replaceAll("'", "''")); } psEmergencyContact.setPhone(psEmergencyContact.getPhone() != null ? psEmergencyContact.getPhone().trim().replaceAll("[^a-zA-Z0-9] ", "") : psEmergencyContact.getPhone()); psEmergencyContact.setRelationship(formatRelationship(psEmergencyContact.getRelationship())); parameterMap.put("emergencyContactName", psEmergencyContact.getContactName()); parameterMap.put("emergencyContactPhone", psEmergencyContact.getPhone()); parameterMap.put("emergencyContactRelation", psEmergencyContact.getRelationship()); } return parameterMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void getEmergencyContact();", "private EmergencyContactInfo persistEmergencyContactInfo(Intent data){\n\t //Declarations\n\t\t\tEmergencyContactInfo emergencyContactInfo;\n\t\t\t\n\t\t\t//Get the contact details\n \tContactProvider contactProvider = ContactProvider.getContactProvider(getActivity())...
[ "0.60359293", "0.5340732", "0.5299916", "0.50239855", "0.49329966", "0.4829148", "0.47530863", "0.4739942", "0.47302985", "0.4685911", "0.46713382", "0.46065208", "0.4560652", "0.45500216", "0.45362163", "0.45241657", "0.45141834", "0.44529936", "0.44276467", "0.44002813", "0...
0.4684864
10
This routine converts referral codes from PeopleSoft to legacy system.
private static HashMap<String, Object> fetchReferralRecruitmentData(HashMap<String, Object> parameterMap) { //BEGIN-PROCEDURE HR05-GET-REFERRAL-SOURCE PsPersonalApplicantReferral psReferralSource = PsPersonalApplicantReferral.findByEmployeeIdAndEffectiveDate((String)parameterMap.get("employeeId"), (Date)parameterMap.get("effectiveDate")); //PS_PERS_APPL_REF BigInteger referralSourceId = psReferralSource.getSourceId(); PsRecruitmentSource psRecruitmentSource = PsRecruitmentSource.findBySourceId(referralSourceId); //PS_HRS_SOURCE_I String referralSourceDescription = psRecruitmentSource.getSourceDescription(); // PsRecruitmentSource psRecruitmentSource = PsRecruitmentSource.findByRecruitmentSourceId(recruitmentSourceId); //PS_HRS_SOURCE_I //LET $PSRecruit_Source_Code = LTRIM(RTRIM(&CHSI2.HRS_SOURCE_NAME,' '),' ') String referralSourceName = psRecruitmentSource.getSourceName(); String psSpecificReferralSource = ""; //DO HR05-FORMAT-REFERRAL-SOURCE //BEGIN-PROCEDURE HR05-FORMAT-REFERRAL-SOURCE //Let $Found = 'N' !Initialize the found indicator //!Based on the value in the PeopleSoft Recruit Source Code assign the //!corresponding legacy system code that will be passed. //Let $PSReferral_Source = &CPT101.ZHRF_LEGRECRUITSRC String referralSource = CrossReferenceReferralSource.findActiveLegacyRecruiterSourceByReferralSource(referralSourceName); //PS_ZHRT_RFSRC_CREF //IF ($Found = 'N') if(referralSource == null) { //LET $PSReferral_Source = ' ' referralSource = ""; //IF $PSRecruit_Source_Code = ' ' !If the Referral Source code was not entered in PS if(referralSourceName == null || referralSourceName.isEmpty()) { parameterMap.put("errorProgram", "ZHRI105A"); //LET $ErrorMessageParm = 'Referral source not selected in PeopleSoft.' parameterMap.put("errorMessage", "Referral source not selected in PeopleSoft."); //DO Prepare-Error-Parms ! JHV 09/11/02 fix Date Mask error ZHR_PRDSPT_INTF_ERROR //DO Call-Error-Routine !From ZHRI100A.SQR Main.doErrorCommand(parameterMap); } //ELSE else { //LET $PSSpecific_Refer_Src = SUBSTR($PSRefSourceDescr,1,35) psSpecificReferralSource = referralSourceDescription; // PSSpecific_Refer_Src = PSRefSourceDescr; //END-IF !$PSRecruit_Source_Code = ' ' } //END-IF !$Found = 'N' } //!Make sure not less than 35 long //LET $PSSpecific_Refer_Src = SUBSTR($PSRefSourceDescr,1,35) //TODO: //LET $PSSpecific_Refer_Src = RPAD($PSSpecific_Refer_Src,35,' ') psSpecificReferralSource = psSpecificReferralSource.substring(0, 35); String recruitmentSourceId = psRecruitmentSource.getSourceDescription(); if(recruitmentSourceId != null) { recruitmentSourceId = recruitmentSourceId.trim(); recruitmentSourceId = String.format("%1$-35s", recruitmentSourceId); } parameterMap.put("recruitmentSourceId", recruitmentSourceId); //END-PROCEDURE HR05-FORMAT-REFERRAL-SOURCE //Let $PSReferralSource = LTRIM(RTRIM(&CHSI2.HRS_SOURCE_NAME,' '),' ') // String PSReferralSource = psRecruitmentSource.getSourceName(); //END-PROCEDURE HR05-GET-REFERRAL-SOURCE referralSource = referralSource != null ? referralSource.trim() : referralSource; parameterMap.put("referralSource", referralSource); return parameterMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String doDrTranslate(String pDrCode) {\n\n byte[] aCode = pDrCode.getBytes();\n String aDrCode = pDrCode;\n\n if (aCode.length == 5 && !mFacility.matches(\"BHH|PJC|MAR|ANG\")) {\n int i;\n for (i = 1; i < aCode.length; i++) {\n if ((i == 1 || i == 2...
[ "0.54626954", "0.5162073", "0.5127206", "0.51003885", "0.50999916", "0.50804603", "0.50710195", "0.5062904", "0.5054172", "0.5052931", "0.50497", "0.5039666", "0.49952257", "0.49029467", "0.48979697", "0.48832974", "0.48812383", "0.484021", "0.48388344", "0.48008436", "0.4788...
0.47845563
22
This routine gets the operator id for the Recruiter.
private static String fetchRecruiterId(HashMap<String, Object> parameterMap) { String responsibleId = PsEmployeeChecklist.findByEmployeeIdAndChecklistDate((String)parameterMap.get("employeeId"), (Date)parameterMap.get("effectiveDate")); String recruiterId = CrossReferenceEmployeeId.findLegacyEmployeeIdByEmployeeId(responsibleId); //BEGIN-PROCEDURE HR05-GET-NEXT-OPID //LET $Found = 'N' //BEGIN-SELECT //COD.ZHRF_LEG_EMPL_ID //COD.Emplid //LET $PSRecruiter_Id = &COD.ZHRF_LEG_EMPL_ID //LET $Found = 'Y' //FROM PS_ZHRT_EMPID_CREF COD //WHERE COD.Emplid = $PSResponsible_Id //END-SELECT //IF ($Found = 'N') if(recruiterId == null) { //LET $Hld_Wrk_Emplid = $Wrk_Emplid //LET $Hld_LegEmplid = $LegEmplid //LET $Wrk_Emplid = $PSResponsible_Id //LET $LegEmplid // //DO Get-Legacy-OprId !From ZHRI100A.SQR recruiterId = Main.fetchNewLegacyEmployeeId(parameterMap); //LET $PSRecruiter_ID = $LegEmplid //LET $Wrk_Emplid = $Hld_Wrk_Emplid //LET $LegEmplid = $Hld_LegEmplid //END-IF !Found = 'N' } //END-PROCEDURE HR05-GET-NEXT-OPID return recruiterId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getOperatorid() {\n return operatorid;\n }", "public long getOperatorId() {\r\n return operatorId;\r\n }", "public Integer getOperatorId() {\n return operatorId;\n }", "public Long getOperatorId() {\n return operatorId;\n }", "public String getSOperator...
[ "0.73206973", "0.72568434", "0.7131252", "0.69961566", "0.6513962", "0.6485203", "0.6455604", "0.64093816", "0.640557", "0.63615257", "0.63432306", "0.6299114", "0.6299114", "0.6299114", "0.6299114", "0.6224817", "0.62239635", "0.6217052", "0.6184436", "0.6166588", "0.6146871...
0.0
-1
This routine will get the Personal Data row for each of the employee numbers entered in the trigger file.
public static HashMap<String, Object> fetchPersonalData (HashMap<String, Object> parameterMap) { //BEGIN-PROCEDURE HR05-GET-PERSONAL-DATA PsPersonalData psPersonalData = PsPersonalData.findByOriginalHireEmployeeId((String)parameterMap.get("employeeId")); if(psPersonalData != null) { //TO_CHAR(COHE.ORIG_HIRE_DT, 'YYYY-MM-DD') &CPD2Orig_Hire_Dt //CPD2.SEX //TO_CHAR(CPD2.Birthdate, 'YYYY-MM-DD') &CPD2Birthdate //LET $PSGender = &CPD2.SEX parameterMap.put("gender", psPersonalData.getSex()); //LET $PSBDate = &CPD2Birthdate //UNSTRING $PSBDate by '-' into $first $second $Third //LET $PSBirthdate = $Second || $Third || $first parameterMap.put("birthDate", new SimpleDateFormat("yyyyMMdd").format(psPersonalData.getBirthdate()).toUpperCase()); } Date originalHireDate = PsEmployeeOriginalHire.findOriginalHireDateByEmployeeId((String)parameterMap.get("employeeId")); //IF &CPD2Orig_Hire_Dt = '' if(originalHireDate != null) { //UNSTRING &CPD2Orig_Hire_dt by '-' into $first $second $Third //LET $PSStart_dt = $First || $Second || $Third parameterMap.put("startDate", new SimpleDateFormat("yyyyMMdd").format(originalHireDate).toUpperCase()); //END-IF } //END-PROCEDURE HR05-GET-PERSONAL-DATA return parameterMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[][] getResearchEmployeeData() {\r\n\t\tint p = 0;\r\n\t\tString [][] employees = new String[companyDirectory.size()][4];\r\n\t\tfor(int i = 0; i < companyDirectory.size(); i++) {\r\n\t\t\tif(companyDirectory.get(i) instanceof ResearchCompany) {\r\n\t\t\t for(int j = 0; j < companyDirectory.get(i).ge...
[ "0.62226224", "0.60380197", "0.59191096", "0.57977575", "0.5746925", "0.57225424", "0.5707953", "0.5668827", "0.5655875", "0.5602238", "0.55872613", "0.55834687", "0.55819255", "0.55659574", "0.55645335", "0.5555054", "0.55452776", "0.5545165", "0.5499072", "0.5476336", "0.54...
0.5845964
3
This routine gets the diversity information about an employee and converts it to the legacy system codes.
private static String fetchLegacyEthnicCode(HashMap<String, Object> parameterMap) { String ethnicGroupCode = PsDiversityEthnicity.findEthnicGroupCodeByEmployeeId((String)parameterMap.get("employeeId")); String ethnicGroup = PsEthnicGroup.findEthnicGroupByEthnicGroupCode(ethnicGroupCode); String legacyEthnicCode = CrossReferenceEthnicGroup.findActiveLegacyEthnicCodeByEthnicGroup(ethnicGroup); if(legacyEthnicCode == null || legacyEthnicCode.isEmpty()) { parameterMap.put("errorProgram", "ZHRI105A"); parameterMap.put("errorMessage", "Ethnic Group is not found in XRef table PS_ZHRT_ETHCD_CREF"); Main.doErrorCommand(parameterMap); } return legacyEthnicCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getEmployeeName();", "public static void main(String[] args) {\n\t\tSalariedEmployee salariedemployee = new SalariedEmployee(\"John\",\"Smith\",\"111-11-1111\",new Date(9,25,1993),800.0);\n\t\tHourlyEmployee hourlyemployee = new HourlyEmployee(\"Karen\",\"Price\",\"222-22-2222\",new Date(10,25,1...
[ "0.5244128", "0.52344257", "0.52283424", "0.51670974", "0.5159103", "0.49800932", "0.49700758", "0.49399385", "0.48815784", "0.48664203", "0.48479512", "0.48284665", "0.48222357", "0.47809848", "0.47627482", "0.4761402", "0.47604734", "0.47534406", "0.47526065", "0.47525865", ...
0.5408394
0
This procedure converts the PeopleSoft relationship codes to legacy system relationship descriptions.
public static String formatRelationship(String relationship) { Date asofToday = ErdUtils.asOfToday(); PsTranslationItem psXlatItem = PsTranslationItem.findByFieldNameAndFieldValueAndEffectiveDate("RELATIONSHIP", relationship, asofToday); relationship = psXlatItem.getXlatLongName(); if(relationship != null) { relationship = relationship.toUpperCase(); if(relationship.length() > 20) { relationship = relationship.substring(0, 20); } } return relationship; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 dom...
[ "0.5441839", "0.5276798", "0.52744883", "0.5207259", "0.5125322", "0.50832695", "0.5068484", "0.49987292", "0.49327505", "0.4856642", "0.47641084", "0.47620124", "0.47469392", "0.46875", "0.46489507", "0.46396762", "0.46357772", "0.46248847", "0.46119407", "0.45852262", "0.45...
0.56031007
0
Construct Sources. Needs to be public for DefaultPacketExtensionProvider to work.
public Sources() { super(NAMESPACE, ELEMENT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Sources(Builder b)\n {\n super(NAMESPACE, ELEMENT);\n\n for (MediaSource ms: b.mediaSources)\n {\n addChildExtension(ms);\n }\n }", "public static PacketSource makePacketSource() {\n\treturn makePacketSource(Env.getenv(\"MOTECOM\"));\n }", "public Network...
[ "0.6561342", "0.6203854", "0.5958677", "0.59452176", "0.5943635", "0.5823983", "0.5693971", "0.5546683", "0.5526907", "0.55046123", "0.5487663", "0.5479826", "0.54680026", "0.54579663", "0.5435493", "0.5413052", "0.54106927", "0.5386237", "0.5361024", "0.52975804", "0.5260163...
0.6191319
2
Construct sources from a builder used by Builderbuild().
private Sources(Builder b) { super(NAMESPACE, ELEMENT); for (MediaSource ms: b.mediaSources) { addChildExtension(ms); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<Pair<String, SourceBuilder>> getSourceBuilders() {\n List<Pair<String, SourceBuilder>> builders =\n new ArrayList<Pair<String, SourceBuilder>>();\n builders.add(new Pair<String, SourceBuilder>(\"helloWorldSource\", builder()));\n return builders;\n }", "public Builder(Object sou...
[ "0.67959094", "0.64067215", "0.6302726", "0.6037068", "0.60147536", "0.5976573", "0.5651023", "0.5586848", "0.5561957", "0.5532498", "0.552098", "0.5457222", "0.5437585", "0.5435264", "0.53773", "0.52933156", "0.5268885", "0.52455163", "0.5234628", "0.5220535", "0.52178055", ...
0.63061774
2
Get the media sources.
public @NotNull List<MediaSource> getMediaSources() { return getChildExtensionsOfType(MediaSource.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LSPSource[] getSources () {\r\n return sources;\r\n }", "public List<String> getSources() {\n\t\treturn this.sources;\n\t}", "public List getAudioFileSources()\n {\n return Collections.unmodifiableList(this.m_audioFileSources);\n }", "public ArrayList<Media> getMediaList(){\r\n ...
[ "0.71737176", "0.70519024", "0.6981579", "0.6824773", "0.6775194", "0.66857815", "0.66387767", "0.65069693", "0.64013153", "0.63397634", "0.63089985", "0.61836207", "0.6144435", "0.6134047", "0.6116459", "0.60558057", "0.60246086", "0.601375", "0.60091144", "0.59944177", "0.5...
0.8266224
0
Get a builder for Sources objects.
@Contract(" -> new") public static @NotNull Builder getBuilder() { return new Builder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<Pair<String, SourceBuilder>> getSourceBuilders() {\n List<Pair<String, SourceBuilder>> builders =\n new ArrayList<Pair<String, SourceBuilder>>();\n builders.add(new Pair<String, SourceBuilder>(\"helloWorldSource\", builder()));\n return builders;\n }", "static Builder builder() ...
[ "0.70794827", "0.66036296", "0.62898254", "0.62452745", "0.6086396", "0.6051807", "0.60114676", "0.5904729", "0.5794105", "0.5786602", "0.56847215", "0.5618108", "0.5570705", "0.55344075", "0.5499739", "0.53471154", "0.5315381", "0.52949256", "0.5237974", "0.52228063", "0.522...
0.4951559
61
Add a payload type to the media being built.
public Builder addMediaSource(MediaSource pt) { mediaSources.add(pt); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Builder addAdditionalType(String value);", "void addMediaContent(String name, byte[] payload);", "public void addMediaType(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), MEDIATYPE, value);\r\n\t}", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type addNewType();", "public voi...
[ "0.65769374", "0.6367739", "0.6231634", "0.61973405", "0.60946137", "0.6008866", "0.5833741", "0.5805591", "0.57342416", "0.56859267", "0.5621534", "0.55690247", "0.5560575", "0.55592835", "0.5531719", "0.54904264", "0.54849464", "0.5465012", "0.54183924", "0.5403887", "0.538...
0.0
-1
/ TODO: add something to set values from higherlevel Jingle structures.
private Builder() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void set(String name, PyObject value) {\n }", "Object setValue(Object value) throws NullPointerException;", "public void setValue(Object value) { this.value = value; }", "public void set(String name, Object value) {\n }", "public void setValue(S s) { value = s; }", "void setValue(Object valu...
[ "0.57481", "0.55294424", "0.54191816", "0.54018354", "0.5387663", "0.53252035", "0.53173447", "0.5310278", "0.52957594", "0.52943707", "0.5274031", "0.5260965", "0.52567774", "0.52479386", "0.52385104", "0.52277166", "0.5197814", "0.5190532", "0.51797044", "0.5179266", "0.517...
0.0
-1
Connect to the PostgreSQL database
public Connection connect() { conn = null; try { conn = DriverManager.getConnection(url, user, password); System.out.println("Connected successfully."); } catch (SQLException e) { System.out.println(e.getMessage()); } return conn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void connectToDB() {\n try {\n Class.forName(\"org.postgresql.Driver\");\n this.conn = DriverManager.getConnection(prs.getProperty(\"url\"),\n prs.getProperty(\"user\"), prs.getProperty(\"password\"));\n } catch (SQLException e1) {\n e1.prin...
[ "0.8320477", "0.7946811", "0.782093", "0.7712681", "0.760295", "0.74873275", "0.7345002", "0.7312029", "0.7106391", "0.71052104", "0.7094716", "0.70188916", "0.7000351", "0.6922005", "0.68645644", "0.684264", "0.6814838", "0.68067926", "0.6701506", "0.6681421", "0.6632856", ...
0.0
-1
make sure ptg has single private constructor because map lookups assume singleton keys
private static void put(Map<OperationPtg, Function> m, OperationPtg ptgKey, Function instance) { Constructor[] cc = ptgKey.getClass().getDeclaredConstructors(); if (cc.length > 1 || !Modifier.isPrivate(cc[0].getModifiers())) { throw new RuntimeException("Failed to verify instance (" + ptgKey.getClass().getName() + ") is a singleton."); } m.put(ptgKey, instance); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected MapImpl() {\n }", "public OwnMap() {\n super();\n keySet = new OwnSet();\n }", "protected ForwardingMapEntry() {}", "public FactoryMapImpl()\n {\n super();\n }", "protected WumpusMap() {\n\t\t\n\t}", "public MapOther() {\n }", "public Map() {\n\n\t\t}", "pr...
[ "0.71415216", "0.70255345", "0.6853533", "0.6788317", "0.67428595", "0.66733485", "0.6642097", "0.6522865", "0.64729726", "0.64143324", "0.6388101", "0.6382879", "0.6376452", "0.6367326", "0.6344858", "0.6327963", "0.6292278", "0.62789464", "0.6243543", "0.62384576", "0.62209...
0.7045956
1
returns the OperationEval concrete impl instance corresponding to the supplied operationPtg
public static ValueEval evaluate(OperationPtg ptg, ValueEval[] args, OperationEvaluationContext ec) { if(ptg == null) { throw new IllegalArgumentException("ptg must not be null"); } //ZSS-933 if (ptg instanceof UnionPtg) { return new UnionEval(args); } //ZSS-852 Function result = ptg instanceof MultiplyPtg ? new MultiplyFunc(((MultiplyPtg)ptg).isOperator()): _instancesByPtgClass.get(ptg); if (result != null) { return result.evaluate(args, ec.getRowIndex(), (short) ec.getColumnIndex()); } if (ptg instanceof AbstractFunctionPtg) { AbstractFunctionPtg fptg = (AbstractFunctionPtg)ptg; int functionIndex = fptg.getFunctionIndex(); switch (functionIndex) { case FunctionMetadataRegistry.FUNCTION_INDEX_INDIRECT: return Indirect.instance.evaluate(args, ec); case FunctionMetadataRegistry.FUNCTION_INDEX_EXTERNAL: return UserDefinedFunction.instance.evaluate(args, ec); } return FunctionEval.getBasicFunction(functionIndex).evaluate(args, ec.getRowIndex(), (short) ec.getColumnIndex()); } throw new RuntimeException("Unexpected operation ptg class (" + ptg.getClass().getName() + ")"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Operation getOperation();", "public Operation getOperation();", "Operator.Type getOperation();", "String getOp();", "String getOp();", "String getOp();", "public Operation getOperation() {\n return operation;\n }", "abstract String getOp();", "public final TestOperation getOperation()\n\...
[ "0.67192227", "0.6472769", "0.641784", "0.59869015", "0.59869015", "0.59869015", "0.59026253", "0.58524406", "0.5794832", "0.57748055", "0.57446474", "0.57227033", "0.5712513", "0.5712513", "0.562407", "0.562407", "0.55956423", "0.5581586", "0.5565161", "0.5527268", "0.551931...
0.61540127
3
/ B D / / A CE \ / \ | S F | \ / | GH
@Test public void dfsRecursiveTest() { Map<String, List<String>> graph = new HashMap<>(); graph.put("A", Lists.newArrayList("B", "S")); graph.put("B", Lists.newArrayList("A")); graph.put("C", Lists.newArrayList("D", "E", "F", "S")); graph.put("D", Lists.newArrayList("C")); graph.put("E", Lists.newArrayList("C", "H")); graph.put("F", Lists.newArrayList("C", "G")); graph.put("G", Lists.newArrayList("F", "H", "S")); graph.put("H", Lists.newArrayList("E", "G")); graph.put("S", Lists.newArrayList("A", "C", "G")); List<String> traversal = new DFSRecursive().runDFS("A", graph); Assert.assertEquals(Lists.newArrayList("A", "B", "S", "C", "D", "E", "H", "G", "F"), traversal); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void dfs(String s, int leftCount, int rightCount, int openCount, int index, StringBuilder sb, Set<String> res) {\n if (index == s.length()) {\n if (leftCount == 0 && rightCount == 0 && openCount == 0) res.add(sb.toString());\n return;\n }\n if (leftCount < 0 || ri...
[ "0.532592", "0.5269255", "0.52543086", "0.52430534", "0.52198815", "0.51502526", "0.51107675", "0.5100605", "0.50534457", "0.5020105", "0.49637234", "0.49553442", "0.49141803", "0.4895675", "0.48652264", "0.48532453", "0.48516974", "0.48338538", "0.48268822", "0.48265526", "0...
0.0
-1
Create a new instance of DetailsFragment, initialized to show the text at 'index'.
public static PurchaseFragment newInstance(int position) { PurchaseFragment f = new PurchaseFragment(); // Supply index input as an argument. Bundle args = new Bundle(); f.setArguments(args); return f; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static DetailsFragment newInstance(String index) {\n DetailsFragment f = new DetailsFragment();\n\n // Supply index input as an argument.\n Bundle args = new Bundle();\n args.putString(\"index\", index);\n f.setArguments(args);\n\n return f;\n }", "public stati...
[ "0.8406688", "0.730538", "0.67258096", "0.65430874", "0.6506996", "0.64904743", "0.64363205", "0.6401514", "0.63580525", "0.6309602", "0.62997186", "0.62475824", "0.62475824", "0.62475824", "0.62475824", "0.6206828", "0.6200963", "0.6174642", "0.6138015", "0.61374855", "0.608...
0.0
-1
/ public List getProfiles(); public ShopperProfile getProfile(long profileId); public Object addProfile(ShopperProfile profileDetails); public ShopperProfile updateProfile(String profileId,ShopperProfile profileDetails); public Object deleteProfile(String profileId);
public List<T> getProfiles();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Profile getProfile( String profileId );", "public List<SmmProfile> getProfiles();", "@Override\r\n public List<Profile> getAllProfiles() {\r\n\r\n return profileDAO.getAllProfiles();\r\n }", "@Override\r\n public Profile getProfileById(int id) {\r\n return profileDAO.getProfileById(id)...
[ "0.78261495", "0.7437546", "0.73022854", "0.7119195", "0.69831717", "0.69695395", "0.69676924", "0.69483477", "0.6942314", "0.69352704", "0.6867158", "0.677299", "0.67410624", "0.6698079", "0.6684304", "0.66434604", "0.66166145", "0.66103566", "0.6609055", "0.65878534", "0.65...
0.70930314
4
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_gank_fuli, container, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
sets file to be written into to a string variable.
public void writeToFile(String user, Double score){ String path = "src/HighScoresFile.txt"; try{//Wrap in try catch for exception handling. //Create FileWriter object. FileWriter fr = new FileWriter(path,true); fr.write( score + " " + user + "\n"); fr.close();//close the fileWriter object. } //File not found Exception Block. catch (FileNotFoundException e){ System.out.println(e); } //IO Exception Block. catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFile(File f) { file = f; }", "private static void writeStringToFile(String string) {\n\t\ttry (BufferedWriter writer = new BufferedWriter(new FileWriter(OUTPUT_FILE_TEMP))) {\n\t\t\twriter.write(string);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static voi...
[ "0.67750585", "0.6601509", "0.6471424", "0.6383421", "0.63378376", "0.6196921", "0.6194981", "0.6130737", "0.6114381", "0.60346985", "0.6001567", "0.5987048", "0.5954357", "0.59404236", "0.5924825", "0.59111106", "0.58934706", "0.5881161", "0.5878644", "0.58705425", "0.586239...
0.0
-1
Creates an ArrayList of type Integer.
public ArrayList<String> readFromFile(){ ArrayList<String> results = new ArrayList<>(); //Wrap code in a try/ catch to help with exception handling. try{ //Create a object of Scanner class Scanner s = new Scanner(new FileReader(path)); //While loop for iterating thru the file. // Reads the data and adds it to the ArrayList. while(s.hasNext()) { String c1 = s.next(); String c2 = s.next(); String w = s.next(); results.add(c1); results.add(c2); results.add(w); }return results; }//File not found exception block. catch(FileNotFoundException e){ System.out.println(e); } return results;//default return. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static ArrayList<Integer> makeListOfInts() {\n ArrayList<Integer> listOfInts = new ArrayList<>(Arrays.asList(7096, 3, 3924, 2404, 4502,\n 4800, 74, 91, 9, 7, 9, 6790, 5, 59, 9, 48, 6345, 88, 73, 88, 956, 94, 665, 7,\n 797, 3978, 1, 3922, 511, 344, 6, 10, 743, 36, 9289, ...
[ "0.7581512", "0.72694826", "0.6925709", "0.6777982", "0.6725875", "0.66727704", "0.66163343", "0.65800905", "0.6578389", "0.65633667", "0.65587413", "0.653404", "0.6481108", "0.6440199", "0.6438081", "0.64366204", "0.64086354", "0.6387915", "0.63776225", "0.6352716", "0.63387...
0.0
-1
write your code here
public static void main(String[] args) { System.out.println("hola la concha de tu madre"); Persona persona1 = new Persona("allan",28,19040012); Persona persona2 = new Persona("federico", 14,40794525); Persona persona3 = new Persona("pablito", 66,56654456); List<Persona> personas= new ArrayList<Persona>(); personas.add(persona1); personas.add(persona2); personas.add(persona3); System.out.println("--------Para imprimir la list completa--------"); System.out.println(String.format("Personas: %s",personas)); System.out.println("----------MAYORES A 21-------------"); // mayores a 21 System.out.println(String.format("Mayores a 21: %s",personas.stream() .filter(persona->persona.getEdad() > 21) .collect(Collectors.toList()))); System.out.println("-----------MENORES A 18-------------------"); // menores 18 System.out.println(String.format("menores 18: %s",personas.stream() .filter(persona->persona.getEdad() < 18) .collect(Collectors.toList()))); System.out.println("---------MAYORES A 21 + DNI >20000000 -------------------"); System.out.println(String.format("MAYORES A 21 + DNI >20000000: %s",personas.stream() .filter(persona->persona.getEdad() > 21 && persona.getDni()>20000000) //.filter( persona->persona.getDni() >20000000) // tambien funciona con este .collect(Collectors.toList()))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpub...
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.5...
0.0
-1
Use this program and set up the uniform variables for binding
protected void begin() { glUseProgram(programID); shadUniLoc.put(UNIFORM_TRANS, glGetUniformLocation(programID, UNIFORM_TRANS)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init () {\n\t\tshaderProgram.addUniform(TEXTURE_UNIFORM_KEY);\n\t\tshaderProgram.addUniform(SCALING_UNIFORM_KEY);\n\t\tshaderProgram.addUniform(TRANSLATION_UNIFORM_KEY);\n\t\tshaderProgram.addUniform(POSITION_UNIFORM_KEY);\n\t}", "protected abstract void initializeUniforms();", "public void init() ...
[ "0.68881005", "0.66150653", "0.65154374", "0.64614856", "0.61125124", "0.5642222", "0.56382376", "0.5623153", "0.5591104", "0.55871207", "0.55651206", "0.5461227", "0.54486847", "0.54422283", "0.5418563", "0.54070747", "0.53997105", "0.53654706", "0.53062093", "0.5284147", "0...
0.5900145
5
Stop using this program
protected void end() { glUseProgram(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void sto...
[ "0.79077584", "0.79077584", "0.79077584", "0.79077584", "0.79077584", "0.79077584", "0.79077584", "0.79077584", "0.79077584", "0.79077584", "0.79077584", "0.79077584", "0.79077584", "0.79077584", "0.79077584", "0.7907684", "0.78985757", "0.78792495", "0.7689122", "0.7689122", ...
0.0
-1
Delete this program so that it doesn't take up memory anymore
protected void delete() { glUseProgram(0); glDetachShader(programID, vShaderID); glDetachShader(programID, fShaderID); glDeleteShader(vShaderID); glDeleteShader(fShaderID); glDeleteProgram(programID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void destroy() {\n \t\ttry {\r\n \t\t\tupKeep.stopRunning();\r\n \t\t} catch (InterruptedException e) {\r\n \t\t}\r\n \r\n \t\t// Kill all running processes.\r\n \t\tfor (MaximaProcess mp : pool) {\r\n \t\t\tmp.kill();\r\n \t\t}\r\n \t\tpool.clear();\r\n \r\n \t\t// Kill all used processes.\r\n \t\tfor (MaximaProc...
[ "0.6513268", "0.6449591", "0.6416124", "0.6406355", "0.63442016", "0.61974895", "0.61931396", "0.61184263", "0.6025858", "0.5982212", "0.59722924", "0.5960927", "0.5885364", "0.58771384", "0.58771384", "0.58771384", "0.58771384", "0.58771384", "0.58771384", "0.58771384", "0.5...
0.6539409
0
A representation of the model object 'Double Type'.
public interface DoubleType extends NumericType { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Class getValueType() {\n return Double.class;\n }", "public Double getDoubleAttribute();", "@java.lang.Override\n public double getRealValue() {\n if (typeCase_ == 4) {\n return (java.lang.Double) type_;\n }\n return 0D;\n }", "public boolean isDouble() {\n...
[ "0.74470466", "0.70673686", "0.70172715", "0.6903323", "0.68667185", "0.68506855", "0.6785051", "0.6719953", "0.6718368", "0.67016774", "0.6677877", "0.66286707", "0.66135794", "0.65770155", "0.65587884", "0.6499583", "0.6455605", "0.6445919", "0.64068496", "0.6298077", "0.62...
0.60763013
32
Add a room to the level
public boolean addRoom(String name, String id, String description, String enterDescription){ for(int i = 0; i < rooms.size(); i++){ Room roomAti = (Room)rooms.get(i); if(roomAti.id.equals(id)){ return false; } } rooms.add(new Room(name, id, description, enterDescription)); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addRoom(){\r\n String enteredRoomNumber = mRoomNumber.getText().toString();\r\n if (!enteredRoomNumber.equals(\"\")){\r\n RoomPojo roomPojo = new RoomPojo(enteredRoomNumber,\r\n mAllergy.getText().toString(),\r\n mPlateType.getText().toStri...
[ "0.73068196", "0.71655333", "0.6956041", "0.68222314", "0.6796601", "0.6787746", "0.6777691", "0.665178", "0.6627407", "0.66250217", "0.6586057", "0.65826166", "0.65425694", "0.653228", "0.65185463", "0.6492423", "0.645511", "0.6411601", "0.63829064", "0.63715655", "0.6363554...
0.6263003
22
Remove a room from this level
public boolean removeRoom(String id){ for(int i = 0; i < rooms.size(); i++){ Room roomAti = (Room)rooms.get(i); if(roomAti.id.equals(id)){ rooms.remove(i); return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeRoom(Room room) {\n rooms.remove(room);\n }", "public void remove() {\n removed = true;\n if (room == null)\n return;\n room.removeEntity(this);\n }", "public void deleteRoom(Room room);", "@Override\n\tpublic void removeRoom(int rid) {\n\t\tfor ...
[ "0.798812", "0.73362315", "0.716577", "0.68484944", "0.6697857", "0.6509087", "0.6449437", "0.6395397", "0.6347737", "0.63388646", "0.62672246", "0.62388915", "0.62321085", "0.6222991", "0.6056267", "0.6015205", "0.6008258", "0.5992015", "0.59828717", "0.5902298", "0.5901871"...
0.60559344
15
Created by luizramos on 15/06/17.
public interface IServicoPrivadoClienteSemPropostaAPI { public static final String PATH = "ServicoPrivadoClienteSemProposta/"; @GET(PATH) Call<List<ServicoOfertaPrivada>> getAll( @Query("idUsuarioCliente") String idUsuarioCliente ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n...
[ "0.6168492", "0.6004799", "0.59600294", "0.5866216", "0.5847442", "0.5847442", "0.5798567", "0.57940876", "0.57803476", "0.57757574", "0.5773553", "0.57656103", "0.576515", "0.5755693", "0.57522386", "0.5746306", "0.57461905", "0.57442087", "0.56975424", "0.5697055", "0.56927...
0.0
-1
Created by zongbo.zhang on 8/20/18.
public interface CommentService { /** * 通过用户Id查询 * @param userId * @return */ List<Comment> getCommentByUserId(Long userId); /** * 通过primaryKey查询 * @param Id * @return */ Comment getCommentById(Long Id); /** * 通过comment_status 筛选 * @param status * @return */ List<Comment> getCommentByStatus(Integer status); /** * 根据id_list更新状态 * @param status * @param commentIds */ void updateCommentByCommentIds(Byte status,List<Long> commentIds); }
{ "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\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...
[ "0.63408613", "0.6319124", "0.62418336", "0.62040377", "0.62040377", "0.6169467", "0.6100179", "0.6075251", "0.60442257", "0.6038491", "0.59923464", "0.59863263", "0.5984704", "0.59801555", "0.5951967", "0.59337366", "0.5891327", "0.58912885", "0.58869857", "0.58821774", "0.5...
0.0
-1
Inflating the actionBar menu
@Override public boolean onCreateOptionsMenu(Menu menu){ MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.order_list_actions,menu); if(isFinalized){ MenuItem item = menu.findItem(R.id.action_finalized); item.setVisible(false); //this.invalidateOptionsMenu(); } return super.onCreateOptionsMenu(menu); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@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 MenuInflater inflater = getMenuInflater();\n ...
[ "0.7411398", "0.7392997", "0.7385258", "0.734674", "0.7297856", "0.72941625", "0.7284181", "0.72557265", "0.7219769", "0.7203154", "0.7158693", "0.7090003", "0.7074503", "0.70730454", "0.7070143", "0.70590556", "0.70527995", "0.70441455", "0.7038666", "0.7016882", "0.70063514...
0.0
-1
Handle presses on the action bar items
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.action_refresh: getOperations(); return true; case R.id.action_qrcode: try{ Intent intent = new Intent("com.google.zxing.client.android.SCAN"); intent.putExtra("SCAN_MODE","QR_CODE_MODE"); startActivityForResult(intent,0); }catch(Exception e){ Uri marketUri = Uri.parse("market://details?id=com.google.zxing.client.android"); Intent marketIntent = new Intent(Intent.ACTION_VIEW,marketUri); startActivity(marketIntent); e.printStackTrace(); } return true; case R.id.action_logout: UserOperations.flush(); updateOrCreateList(); session.logoutUser(); startLoginActivity(); return true; case R.id.action_finalized: seeFinalized(); default: return super.onOptionsItemSelected(item); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@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 ret...
[ "0.7173379", "0.69227743", "0.69227743", "0.69227743", "0.69227743", "0.6911944", "0.6884609", "0.6881586", "0.68243235", "0.68193024", "0.68051094", "0.6801348", "0.678705", "0.678705", "0.67608094", "0.67543995", "0.6754033", "0.674645", "0.67355984", "0.6727317", "0.672570...
0.0
-1
Sends the operations part of the JSONObject to the next activity
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { sendOperationMessage(data.get(+position)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeActionsJson() {\n JsonManager.writeActions(this.getActions());\n }", "@Override\n public void onNext(JSONObject jsonObject) {\n }", "@Override\n public void onClick(View v) {\n\n if (v == button_cancel) {\n\n this.finish();\n\n } else...
[ "0.57606125", "0.5564533", "0.55504525", "0.55285513", "0.53870296", "0.52961034", "0.52672726", "0.52458566", "0.5221693", "0.5211185", "0.5200539", "0.5200539", "0.5169433", "0.51605815", "0.5150749", "0.51409596", "0.5132533", "0.51212484", "0.511792", "0.5100561", "0.5089...
0.0
-1
`invoiceid`, date , `contactId` , `operationType` , `itemId` , suAmount , suPrice, totalPrice
@Override public String[] headers() { return new String[]{"فاکتور", "تاریخ", "شناسه مخاطب", "نام مخاطب", "نوع", "شناسه کالا", "شرح کالا", "مقدار کل", "واحد", "فی", "مقدار جزء", "مبلغ کل", "مانده"}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TotalInvoiceAmountType getTotalInvoiceAmount();", "public List<TblMemorandumInvoiceDetail>getAllMemorandumInvoiceDetail(Date startDate,Date endDate,TblPurchaseOrder po,TblMemorandumInvoice mi,TblItem item,ClassMemorandumInvoiceBonusType bonusType);", "public JSONObject getInvoiceForGSTR3BTaxable(JSONObject req...
[ "0.6194851", "0.6090489", "0.597968", "0.5802026", "0.57701135", "0.573129", "0.5653428", "0.5602208", "0.5595203", "0.555251", "0.55475205", "0.5542057", "0.55168855", "0.55114645", "0.5463676", "0.54626435", "0.54250634", "0.5407149", "0.54027987", "0.5360669", "0.5325589",...
0.0
-1
Conventions: Each execution (both query and nonquery shall return an nonnegative execution ID(execId). Negative execution IDs are reserved for error handling. User shall be able to query the status of an execution even after it's finished, so the executor shall keep record of all the execution unless being asked to remove them ( when removeExecution is called.) IMPORTANT: An executor shall support two ways of supplying data: 1. Say user selects profiles of users who visited LinkedIn in the last 5 mins. There could be millions of rows, but the UI only need to show a small fraction. That's retrieveQueryResult, accepting a row range (startRow and endRow). Note that UI may ask for the same data over and over, like when user switches from page 1 to page 2 and data stream changes at the same time, the two pages may actually have overlapped or even same data. 2. Say user wants to see clicks on a LinkedIn page of certain person from now on. In this mode consumeQueryResult shall be used. UI can keep asking for new rows, and once the rows are consumed, it's no longer necessary for the executor to keep them. If lots of rows come in, the UI may be only interested in the last certain rows (as it's in a logview mode), so all data older can be dropped.
public interface SqlExecutor { /** * SqlExecutor shall be ready to accept all other calls after start() is called. * However, it shall NOT store the ExecutionContext for future use, as each * call will be given an ExecutionContext which may differ from this one. * * @param context The ExecutionContext at the time of the call. * @throws ExecutorException if the Executor encounters an error. */ void start(ExecutionContext context) throws ExecutorException; /** * Indicates no further calls will be made thus it's safe for the executor to clean up. * * @param context The ExecutionContext at the time of the call. * @throws ExecutorException if the Executor encounters an error. */ void stop(ExecutionContext context) throws ExecutorException; /** * * @return An EnvironmentVariableHandler that handles executor specific environment variables */ EnvironmentVariableHandler getEnvironmentVariableHandler(); /** * @param context The ExecutionContext at the time of the call. * @return A list of table names. Could be empty. * @throws ExecutorException if the Executor encounters an error. */ List<String> listTables(ExecutionContext context) throws ExecutorException; /** * @param context The ExecutionContext at the time of the call. * @param tableName Name of the table to get the schema for. * @return Schema of the table. * @throws ExecutorException if the Executor encounters an error. */ SqlSchema getTableSchema(ExecutionContext context, String tableName) throws ExecutorException; /** * @param context The ExecutionContext at the time of the call. * @param statement statement to execute * @return The query result. * @throws ExecutorException if the Executor encounters an error. */ QueryResult executeQuery(ExecutionContext context, String statement) throws ExecutorException; /** * @return how many rows available for reading. * @throws ExecutorException if the Executor encounters an error. */ int getRowCount() throws ExecutorException; /** * Row starts at 0. Executor shall keep the data retrieved. * For now we get strings for display but we might want strong typed values. * * @param context The ExecutionContext at the time of the call. * @param startRow Start row index (inclusive) * @param endRow End row index (inclusive) * @return A list of row data represented by a String array. * @throws ExecutorException if the Executor encounters an error. */ List<String[]> retrieveQueryResult(ExecutionContext context, int startRow, int endRow) throws ExecutorException; /** * Consumes rows from query result. Executor shall drop them, as "consume" indicates. * ALL data before endRow (inclusive, including data before startRow) shall be deleted. * * @param context The ExecutionContext at the time of the call. * @param startRow Start row index (inclusive) * @param endRow End row index (inclusive) * @return available data between startRow and endRow (both are inclusive) * @throws ExecutorException if the Executor encounters an error. */ List<String[]> consumeQueryResult(ExecutionContext context, int startRow, int endRow) throws ExecutorException; /** * Executes all the NON-QUERY statements in the sqlFile. * Query statements are ignored as it won't make sense. * * @param context The ExecutionContext at the time of the call. * @param file A File object to read statements from. * @return Execution result. * @throws ExecutorException if the Executor encounters an error. */ NonQueryResult executeNonQuery(ExecutionContext context, File file) throws ExecutorException; /** * @param context The ExecutionContext at the time of the call. * @param statements A list of non-query sql statements. * @return Execution result. * @throws ExecutorException if the Executor encounters an error. */ NonQueryResult executeNonQuery(ExecutionContext context, List<String> statements) throws ExecutorException; /** * @param context The ExecutionContext at the time of the call. * @param exeId Execution ID. * @throws ExecutorException if the Executor encounters an error. */ void stopExecution(ExecutionContext context, int exeId) throws ExecutorException; /** * Removing an ongoing execution shall result in an error. Stop it first. * * @param context The ExecutionContext at the time of the call * @param exeId Execution ID. * @throws ExecutorException if the Executor encounters an error. */ void removeExecution(ExecutionContext context, int exeId) throws ExecutorException; /** * @param execId Execution ID. * @return ExecutionStatus. * @throws ExecutorException if the Executor encounters an error. */ ExecutionStatus queryExecutionStatus(int execId) throws ExecutorException; /** * @param context The ExecutionContext at the time of the call. * @return A list of SqlFunction. * @throws ExecutorException if the Executor encounters an error. */ List<SqlFunction> listFunctions(ExecutionContext context) throws ExecutorException; /** * Gets the version of this executor. * @return A String representing the version of the executor. This function does NOT throw an * ExecutorException as the caller has nothing to do to "recover" if the function fails. */ String getVersion(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public QueryExecution createQueryExecution(Query qry);", "public interface QueryExecutor<V> {\n\n /**\n * Executes the query represented by a specified expression tree.\n *\n * @param timelyQuery The timely query\n */\n void execute(TimelyQuery timelyQuery, GraphSchema schema, long timeout,...
[ "0.6371646", "0.6357317", "0.6229312", "0.60675365", "0.6026892", "0.5975691", "0.5891391", "0.5861866", "0.5836933", "0.5833849", "0.5789275", "0.5744305", "0.57432276", "0.57174516", "0.5716043", "0.57041496", "0.57041496", "0.57041496", "0.57041496", "0.56761265", "0.56645...
0.65099365
0
SqlExecutor shall be ready to accept all other calls after start() is called. However, it shall NOT store the ExecutionContext for future use, as each call will be given an ExecutionContext which may differ from this one.
void start(ExecutionContext context) throws ExecutorException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface SqlExecutor {\n /**\n * SqlExecutor shall be ready to accept all other calls after start() is called.\n * However, it shall NOT store the ExecutionContext for future use, as each\n * call will be given an ExecutionContext which may differ from this one.\n *\n * @param context The Execut...
[ "0.7614018", "0.57460266", "0.5595664", "0.5412609", "0.5366386", "0.52985746", "0.52799344", "0.52451515", "0.5228137", "0.5227979", "0.51913476", "0.51839423", "0.518289", "0.51668566", "0.51667565", "0.51667565", "0.51667565", "0.51667565", "0.51667565", "0.51667565", "0.5...
0.6337296
1
Indicates no further calls will be made thus it's safe for the executor to clean up.
void stop(ExecutionContext context) throws ExecutorException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tprotected void finalize() throws Throwable {\n\t\t\tif (pool != null) {\n\t\t\t\tdone();\n\t\t\t\tpool = null;\n\t\t\t}\n\t\t}", "@Override\n public void close() {\n executor.shutdown();\n }", "@Override\r\n\tpublic void unexecute() {\n\t\t\r\n\t}", "protected void finalize () throws Thro...
[ "0.69159484", "0.6382258", "0.6356778", "0.6314074", "0.6260665", "0.6251856", "0.6223216", "0.61743075", "0.61630607", "0.61599153", "0.61599153", "0.6127626", "0.61247724", "0.61243147", "0.6112302", "0.61091626", "0.60831964", "0.60670537", "0.6045196", "0.6030364", "0.602...
0.0
-1
Row starts at 0. Executor shall keep the data retrieved. For now we get strings for display but we might want strong typed values.
List<String[]> retrieveQueryResult(ExecutionContext context, int startRow, int endRow) throws ExecutorException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "R getOneRowOrThrow();", "public abstract String getCurrentRow();", "T getRowData(int rowNumber);", "@Override\n public Object getValueAt(int row, int column) {\n return sessionRow.get(row * column);\n }", "io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row ge...
[ "0.66906625", "0.65710175", "0.65613174", "0.65176797", "0.6502886", "0.6450028", "0.6448477", "0.6389881", "0.6352854", "0.63161755", "0.63152486", "0.63049054", "0.6289705", "0.62781036", "0.6273437", "0.6225696", "0.6223106", "0.61970043", "0.618811", "0.61705583", "0.6168...
0.0
-1
Consumes rows from query result. Executor shall drop them, as "consume" indicates. ALL data before endRow (inclusive, including data before startRow) shall be deleted.
List<String[]> consumeQueryResult(ExecutionContext context, int startRow, int endRow) throws ExecutorException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void prepareCursorSelectAllRows() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareCursorSelectAllRows();\n }", "List<String[]> retrieveQueryResult(ExecutionContext context, int startRow, int endRow)...
[ "0.5461806", "0.53794897", "0.53638405", "0.5352731", "0.5342667", "0.52516323", "0.52249074", "0.5199882", "0.5195573", "0.5031139", "0.5004595", "0.49921533", "0.49859163", "0.49807534", "0.49761462", "0.49264637", "0.489054", "0.48706245", "0.48482603", "0.48354873", "0.48...
0.6644871
0
Executes all the NONQUERY statements in the sqlFile. Query statements are ignored as it won't make sense.
NonQueryResult executeNonQuery(ExecutionContext context, File file) throws ExecutorException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void executeSQL(Connection connection, String file)\n\t\t\tthrows Exception {\n\t\tStatement stmt = null;\n\t\ttry {\n\t\t\tstmt = connection.createStatement();\n\n\t\t\tString[] values = readFile(file).split(\";\");\n\n\t\t\tfor (int i = 0; i < values.length; i++) {\n\t\t\t\tString sql = values[i]....
[ "0.6145067", "0.6030607", "0.5491361", "0.54880905", "0.54705566", "0.5445725", "0.5334524", "0.5319735", "0.5293466", "0.52781415", "0.5260744", "0.521047", "0.5176721", "0.5147811", "0.50925255", "0.50883055", "0.5071561", "0.5052833", "0.50499606", "0.50424755", "0.5029682...
0.6598421
0
Removing an ongoing execution shall result in an error. Stop it first.
void removeExecution(ExecutionContext context, int exeId) throws ExecutorException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void killExecution() {\n \n \t\tcancelOrKillExecution(false);\n \t}", "public void cancelExecution() {\n \n \t\tcancelOrKillExecution(true);\n \t}", "@Override\r\n\tpublic void unexecute() {\n\t\t\r\n\t}", "public void stopProcessing() {\n interrupted = true;\n }", "@Override\n public v...
[ "0.63294", "0.62500507", "0.6039168", "0.6033362", "0.5935254", "0.5908857", "0.58420485", "0.5834192", "0.5810043", "0.58095723", "0.579595", "0.5785255", "0.57797295", "0.57764125", "0.57760304", "0.57707363", "0.5769481", "0.5766305", "0.57556045", "0.5749131", "0.57446057...
0.579042
11
Gets the version of this executor.
String getVersion();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Future<String> version() throws DynamicCallException, ExecutionException {\n return call(\"version\");\n }", "public String version() throws DynamicCallException, ExecutionException {\n return (String)call(\"version\").get();\n }", "public String version() throws CallError, Interrupt...
[ "0.7100755", "0.704861", "0.70224184", "0.6908699", "0.6908699", "0.68469733", "0.6839893", "0.68279094", "0.6825932", "0.6793908", "0.6793908", "0.6793908", "0.6793908", "0.67856234", "0.67856234", "0.6776099", "0.6774241", "0.6774241", "0.6743576", "0.6743576", "0.67431146"...
0.0
-1
/ Compares the category value sent in the parameter compareString to the pipe delimited list of categories in the string parameter categoryList. This function returns 'true' if the compareString value sent in the parameter is in the categoryList
public boolean compareCategory(String categoryList, String compareString) { if (categoryList.contains("|" + compareString + "|")) return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean containsCategory(String categoryName);", "private boolean isInCategory(Location location, List<String> choosenCategories) {\n for(String category : choosenCategories) {\n if(location.getSubCategory().equals(category) || location.getSubCategory() == category)\n retu...
[ "0.5935683", "0.5619684", "0.5505688", "0.5413101", "0.52450967", "0.523621", "0.5139202", "0.504099", "0.49995932", "0.49321178", "0.49321178", "0.49321178", "0.49321178", "0.49321178", "0.49321178", "0.49112156", "0.49007612", "0.48791647", "0.4851876", "0.48433164", "0.483...
0.88191396
0
/ Compares the query value sent in the parameter query to the value in the HashMap node that is extracted from the source XML file. The function checks for an exact match based on the parameter value exact_match
public boolean matchNodes(HashMap<String, String> node, HashMap<String, String> query, boolean exact_match) { String value = new String(); String query_value = new String(); boolean match = false; if (query.isEmpty()) { match = true; } if (query.containsKey("type")) { String document_type = node.get("type"); String query_document_type = query.get("type"); if (!query_document_type.contains("|" + document_type + "|")) { return false; } else if (query.keySet().size() == 1) { return true; } } for (String key : query.keySet()) { if (node.containsKey(key) && !key.equals("type")) { value = node.get(key).trim().toLowerCase(); query_value = query.get(key).trim().toLowerCase(); if (value.contains(query_value)) { match = true; } else if (exact_match) { match = false; break; } } } return match; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void test_caselessmatch07() throws Exception {\n String inputFile = \"/TestSources/emptydoc.xml\";\n String xqFile = \"/Queries/XQuery/Functions/AllStringFunc/MatchStringFunc/MatchesFunc/caselessmatch07.xq\";\n String resultFile = \"/ExpectedTestResults/Functions/AllStringFunc/MatchStringF...
[ "0.56665176", "0.5568806", "0.55559605", "0.55549", "0.5445827", "0.5426583", "0.539326", "0.5380633", "0.5371723", "0.53705764", "0.5353068", "0.5313782", "0.5302679", "0.5298944", "0.52938545", "0.52773976", "0.5256809", "0.5248224", "0.52199215", "0.5195118", "0.51895356",...
0.65773094
0
Returns all the attributes of the node passed
public void getAttributes(Iterator<?> attrs, HashMap<String, String> document) throws IOException { while (attrs.hasNext()) { Attribute attr = (Attribute) attrs.next(); String attribute_value = attr.getValue(); String attribute_name = attr.getName().getLocalPart(); if (!attribute_value.isEmpty()) addNode(attribute_name, attribute_value, document); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Iterable<? extends XomNode> attributes();", "public List<Jattr> attributes() {\n NamedNodeMap attributes = node.getAttributes();\n if (attributes == null)\n return new ArrayList<Jattr>();\n List<Jattr> jattrs = new ArrayList<Jattr>();\n for (int i = 0; i < attributes.getLength(); i++)...
[ "0.7980219", "0.75635475", "0.7540011", "0.73922384", "0.7369008", "0.73688376", "0.72310114", "0.7156985", "0.7120728", "0.7057952", "0.7057952", "0.7057952", "0.7050269", "0.6986972", "0.6953669", "0.69430816", "0.69206226", "0.6920584", "0.68986285", "0.68986285", "0.68835...
0.0
-1
Add value to the document hashmap
public void addNode(String node_name, String node_value, HashMap<String, String> document) throws IOException { PropertyValues property = new PropertyValues(); String key = property.getPropValues(node_name); if (key == null) key = node_name; if (!document_types.contains("|" + node_name + "|") && !formatter_nodes.contains("|" + node_name + "|")) { if (document.containsKey(key)) { document.put(key, document.get(key) + ", " + node_value); } else { document.put(key, node_value); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToMap(){\n\t\tInteger hc = currentQuery.hashCode();\n\t\tif (!hmcache.containsKey(hc)) {\n\t\t\thmcache.put(hc, 0);\n\t\t}else{\n\t\t\tInteger val = hmcache.get(hc) + (currentQuery.getWords().size());\n\t\t\thmcache.put(hc, val);\n\t\t}\n\t}", "public void addUserInfo(HashMap<String,Object> map){\...
[ "0.6652187", "0.6496801", "0.6087985", "0.60632354", "0.5989751", "0.59844196", "0.59765214", "0.59467447", "0.5893644", "0.5867365", "0.5844008", "0.5839872", "0.5834596", "0.5833071", "0.5822919", "0.58171326", "0.57970893", "0.57886153", "0.5774513", "0.57643086", "0.57000...
0.578163
18
Retrieves the next node from the XML file
public HashMap<String, String> getNextNode() throws XMLStreamException, IOException { boolean add_elements = false; String node_name = new String(); HashMap<String, String> document = new HashMap<String, String>(); // StringWriter tag_content = new StringWriter(); // Loop over the document while (xmlEventReader.hasNext()) { xmlEvent = xmlEventReader.nextEvent();// get the next event // Start element if (xmlEvent.isStartElement()) { node_name = xmlEvent.asStartElement().getName().getLocalPart(); if (!node_name.equalsIgnoreCase(root_node) && !formatter_nodes.contains("|" + node_name + "|")) { // not 'dblp' and is a document type tag if (document_types.contains("|" + node_name + "|")) { add_elements = true; document.put("type", node_name); // Read the attributes to the document getAttributes( xmlEvent.asStartElement().getAttributes(), document); } else { // xmlWriter = xmlOutputFactory // .createXMLEventWriter(tag_content); } } } else if (add_elements && xmlEvent.isEndElement()) { node_name = xmlEvent.asEndElement().getName().getLocalPart(); if (!formatter_nodes.contains("|" + node_name + "|")) { // Close the XML writer // xmlWriter.close(); // add the node content to the document // String tag_value = tag_content.toString(); // if (tag_value != null) // addNode(node_name, tag_value.trim(), document); // // Refresh the tag content value // tag_content = new StringWriter(); // Stop adding elements if (document_types.contains("|" + node_name + "|")) { add_elements = false; break; } } } else if (xmlEvent.isCharacters()) { // Add the characters to the XMLWriter stream String value = xmlEvent.asCharacters().getData().trim(); if (!value.isEmpty()) addNode(node_name, value, document); } } return document; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getNext() {\n Node currNode = getScreenplayElem().getChildNodes().item(currPos++);\n while (currNode.getNodeType() != Node.ELEMENT_NODE) {\n currNode = getScreenplayElem().getChildNodes().item(currPos++);\n }\n currElem = (Element) currNode;\n }", "public no...
[ "0.6864649", "0.67748135", "0.6644528", "0.6628649", "0.6582724", "0.65794903", "0.6567017", "0.6521269", "0.6507276", "0.6477443", "0.6475293", "0.6475293", "0.6470695", "0.6470695", "0.6468584", "0.64521885", "0.64505786", "0.6443087", "0.6438011", "0.6432394", "0.64017284"...
0.5788442
79
Test Random document pick
public static void main(String[] args) { try { ReadXMLFile xmlReader = new ReadXMLFile(); for (HashMap<String, String> document : xmlReader .getRandomDocuments(12)) { for (String key : document.keySet()) { System.out.println(key + " : " + document.get(key)); } } } catch (XMLStreamException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } // Test - Match // try { // ReadXMLFile xmlReader = new ReadXMLFile(); // String title_query = "parser"; // HashMap<String, String> query = new HashMap<String, String>(); // query.put("title", title_query); // // query.put("year", "1996"); // System.out.println("First-----------------------"); // for (HashMap<String, String> document : xmlReader.getQueryNodes( // query, 20, true)) { // for (String key : document.keySet()) { // System.out.println(key + " : " + document.get(key)); // } // } // // System.out.println("Second-----------------------"); // for (HashMap<String, String> document : xmlReader.getQueryNodes( // query, 10, true)) { // for (String key : document.keySet()) { // System.out.println(key + " : " + document.get(key)); // } // } // // System.out.println("Done"); // } catch (XMLStreamException e) { // // TODO Auto-generated catch block // e.printStackTrace(); // } catch (IOException e) { // // TODO Auto-generated catch block // e.printStackTrace(); // } // String workingDir = System.getProperty("user.dir"); // System.out.println("Current working directory : " + workingDir); // Get node count in extract // try { // ReadXMLFile xmlReader = new ReadXMLFile(); // System.out.println(xmlReader.getNodeCount()); // } catch (XMLStreamException e) { // // TODO Auto-generated catch block // e.printStackTrace(); // } catch (IOException e) { // // TODO Auto-generated catch block // e.printStackTrace(); // } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void chooseRandomTweet() {\n if (random.nextBoolean()) {\n realTweet = true;\n displayRandomTrumpTweet();\n } else {\n realTweet = false;\n displayRandomFakeTweet();\n }\n }", "private void random() {\n\n\t}", "Randomizer getRandomizer...
[ "0.594545", "0.59266573", "0.5787566", "0.57687503", "0.57097787", "0.57045466", "0.56697464", "0.5655354", "0.5650155", "0.5631384", "0.55949986", "0.558011", "0.5567166", "0.5533935", "0.55012155", "0.54953474", "0.546129", "0.5385679", "0.5367777", "0.5323333", "0.5277588"...
0.0
-1