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 |
|---|---|---|---|---|---|---|
used to check if an exception is a Java Card api exception. | public static native boolean isAPIException(Throwable ex); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@objid (\"7652bc7c-103c-4e5a-a8fa-ee4e662fd446\")\n boolean isIsException();",
"boolean hasException();",
"boolean supports(Exception exception);",
"boolean hasErrorCode();",
"public boolean isException(Class paramClass) {\n/* 162 */ if (paramClass == null) {\n/* 163 */ throw new IllegalArgume... | [
"0.66172475",
"0.6560674",
"0.6486734",
"0.6331014",
"0.61422205",
"0.6099843",
"0.60550016",
"0.5942863",
"0.5905849",
"0.5889338",
"0.5883612",
"0.58288825",
"0.58051527",
"0.57874566",
"0.575566",
"0.5660362",
"0.5660362",
"0.5660362",
"0.56600314",
"0.5634497",
"0.5622965... | 0.688672 | 0 |
Copy anticollision string into apdu buffer. | public static native short getAnticollisionString(Remote RemoteObj, byte[] buffer, byte offset); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static byte[] getAPDUBuffer(byte[] buffer) {\n short len = SATAccessor.getAPDUBufferLength();\n \n for (short i = 0; i < len; i++) {\n buffer[i] = SATAccessor.getAPDUBufferByte(i);\n }\n return buffer;\n }",
"Buffer copy();",
"public static void setAPDUBu... | [
"0.562939",
"0.5329233",
"0.515509",
"0.5033615",
"0.49835202",
"0.4965141",
"0.49600825",
"0.49539712",
"0.49449158",
"0.49341106",
"0.49315444",
"0.49298447",
"0.49177733",
"0.4912676",
"0.4904496",
"0.4895909",
"0.48700038",
"0.4863025",
"0.48530096",
"0.47959742",
"0.4788... | 0.52187765 | 2 |
This method is used to obtain the number of remote interfaces of the given remote object. | public static native byte getRemoteInterfaceNumber(Remote RemoteObj); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getNetworkInterfacesCount();",
"int getPeersCount();",
"int getPeerCount();",
"Integer getConnectorCount();",
"public int sizeOfImplementsInterfaceArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().cou... | [
"0.73633695",
"0.62809604",
"0.6074442",
"0.6070314",
"0.600092",
"0.59632295",
"0.5692593",
"0.5685386",
"0.56832784",
"0.5681339",
"0.56583846",
"0.56150395",
"0.55992246",
"0.5591289",
"0.5589876",
"0.5585317",
"0.5582361",
"0.55770206",
"0.5576297",
"0.5575852",
"0.557585... | 0.62214077 | 2 |
Returns the remote interface address from the class structure for the given interface index. | public static native short getRemoteInterfaceAddress(Remote remoteObj, byte interfaceIndex); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static Ip4Address getInterfaceIp(int interfaceIndex) {\n Ip4Address ipAddress = null;\n try {\n NetworkInterface networkInterface = NetworkInterface.getByIndex(interfaceIndex);\n Enumeration ipAddresses = networkInterface.getInetAddresses();\n while (ipAddress... | [
"0.6244376",
"0.6126562",
"0.58469135",
"0.56569153",
"0.55992895",
"0.5594532",
"0.55942756",
"0.5589581",
"0.5540368",
"0.5535372",
"0.53966075",
"0.5391462",
"0.5353746",
"0.5315017",
"0.52908206",
"0.52521497",
"0.5240984",
"0.5206338",
"0.51973283",
"0.51926196",
"0.5100... | 0.77394164 | 0 |
all remaining native methods are used to invoke remote methods. The only difference in them is the return type. Most of the code here is common, but separate methods are needed so that the return type is handled correctly by the VM. | public static native void rmi_invoker_void(short remote_method_info, short objID, byte[] buffer, byte offset); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static native short getReturnType(short remote_method_info);",
"InvocationResult invoke(RemoteService service, MethodInvocation invocation);",
"public static native short getRemoteMethodInfo(short objID, short methodID);",
"<R> Promise<R> invoke(String methodName, Class<R> returnType, Object... argume... | [
"0.6873582",
"0.6326536",
"0.62959284",
"0.62659526",
"0.61654544",
"0.6115947",
"0.61039245",
"0.61039245",
"0.6098019",
"0.6093666",
"0.60020393",
"0.5986897",
"0.5960495",
"0.59368885",
"0.5889749",
"0.5883134",
"0.5854077",
"0.58316743",
"0.579634",
"0.57799697",
"0.57757... | 0.58236736 | 18 |
public static native boolean[] rmi_invoker_boolean_array(short remote_method_info, short objID, byte[] buffer, byte offset); public static native byte[] rmi_invoker_byte_array(short remote_method_info, short objID, byte[] buffer, byte offset); public static native short[] rmi_invoker_short_array(short remote_method_inf... | public static native Object rmi_invoker_array(short remote_method_info, short objID, byte[] buffer, byte offset); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static native void rmi_invoker_void(short remote_method_info, short objID, byte[] buffer, byte offset);",
"public static native short getRemoteMethodInfo(short objID, short methodID);",
"public static native short getReturnType(short remote_method_info);",
"public native boolean[] __booleanArrayMethod... | [
"0.7495081",
"0.6176539",
"0.6018177",
"0.59496564",
"0.5924348",
"0.5584057",
"0.55429286",
"0.55269074",
"0.5455056",
"0.5444472",
"0.5407949",
"0.53949285",
"0.53763956",
"0.5376159",
"0.52855986",
"0.5276247",
"0.52759486",
"0.5275002",
"0.52375525",
"0.5216486",
"0.51673... | 0.86398727 | 0 |
Objects conforming to UIFocusItemScrollableContainer are updated accordingly to ensure the focused item remains visible on the screen. APISince: 12.0 | @Generated
@Library("UIKit")
@Runtime(ObjCRuntime.class)
@ObjCProtocolName("UIFocusItemScrollableContainer")
public interface UIFocusItemScrollableContainer extends UIFocusItemContainer {
/**
* The current content offset of this scrollable container. If the scrollable container has a `bounds` property,
* ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean focus() {\r\n final int size = itemImg.getWidth() / 2;\r\n int focusedPre = focused;\r\n // if mouse pointer is outside of the plot the focused item is set to -1,\r\n // focus may be refreshed, if necessary\r\n if(mouseX < MARGIN[1] || \r\n mouseX > getWidth() - MARGIN[... | [
"0.6329064",
"0.63233566",
"0.63143146",
"0.626241",
"0.6105706",
"0.6052226",
"0.6034023",
"0.5898807",
"0.5763492",
"0.5736623",
"0.57319915",
"0.57173234",
"0.56543463",
"0.56493133",
"0.56493133",
"0.56493133",
"0.56493133",
"0.56417",
"0.5616648",
"0.5616181",
"0.5609754... | 0.7207473 | 0 |
The current content offset of this scrollable container. If the scrollable container has a `bounds` property, `bounds.origin` must be equal to `contentOffset`. | @Generated
@Selector("contentOffset")
@ByValue
CGPoint contentOffset(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getScrollOffset() {\n return visibility.getValue();\n }",
"public KrollDict getContentOffset()\n\t{\n\t\tfinal TiTableView tableView = getTableView();\n\n\t\tif (tableView != null) {\n\t\t\tfinal KrollDict contentOffset = new KrollDict();\n\n\t\t\tfinal int x = (int) new TiDimension(tableVie... | [
"0.66483605",
"0.65738136",
"0.5964546",
"0.5849803",
"0.58194023",
"0.57285666",
"0.5697674",
"0.5678389",
"0.5666635",
"0.564073",
"0.5640212",
"0.5625614",
"0.5620069",
"0.5617602",
"0.5614194",
"0.5600359",
"0.55909187",
"0.5584108",
"0.5583734",
"0.5583734",
"0.55734164"... | 0.7035217 | 0 |
The total size of the content contained by this container. If this size exceeds the size of this container's visible size, then scrolling is possible. | @Generated
@Selector("contentSize")
@ByValue
CGSize contentSize(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}",
"public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}",
"public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\tr... | [
"0.6740522",
"0.6740522",
"0.6740522",
"0.6740522",
"0.6717755",
"0.6680016",
"0.6677368",
"0.6643496",
"0.6611563",
"0.65884924",
"0.6556606",
"0.64634585",
"0.64627963",
"0.6382511",
"0.63794845",
"0.6353018",
"0.63234353",
"0.63128793",
"0.6274417",
"0.6257412",
"0.6254797... | 0.6070738 | 45 |
The current content offset of this scrollable container. If the scrollable container has a `bounds` property, `bounds.origin` must be equal to `contentOffset`. | @Generated
@Selector("setContentOffset:")
void setContentOffset(@ByValue CGPoint value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Generated\n @Selector(\"contentOffset\")\n @ByValue\n CGPoint contentOffset();",
"public int getScrollOffset() {\n return visibility.getValue();\n }",
"public KrollDict getContentOffset()\n\t{\n\t\tfinal TiTableView tableView = getTableView();\n\n\t\tif (tableView != null) {\n\t\t\tfinal Kr... | [
"0.7035217",
"0.66483605",
"0.65738136",
"0.5964546",
"0.5849803",
"0.58194023",
"0.57285666",
"0.5697674",
"0.5678389",
"0.5666635",
"0.564073",
"0.5640212",
"0.5625614",
"0.5620069",
"0.5617602",
"0.5614194",
"0.5600359",
"0.55909187",
"0.5584108",
"0.5583734",
"0.5583734",... | 0.54877955 | 34 |
The visible size of this scrollable container. | @Generated
@Selector("visibleSize")
@ByValue
CGSize visibleSize(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic final int getClientHeight() {\n\t\treturn getViewportElement().getClientHeight();\n\t}",
"public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}",
"public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphCo... | [
"0.66067684",
"0.6562047",
"0.6562047",
"0.6562047",
"0.6562047",
"0.65448326",
"0.6470249",
"0.6452299",
"0.64277256",
"0.63386405",
"0.62584186",
"0.62446976",
"0.61839277",
"0.61839277",
"0.6177969",
"0.6174767",
"0.6170769",
"0.61633694",
"0.61622345",
"0.61622214",
"0.61... | 0.6700295 | 0 |
args give message contents & destination multicast group (e.g. "228.5.6.7") | public static void main(String[] args) throws UnknownHostException, IOException{
InetAddress group = InetAddress.getByName("224.0.0.100");
MulticastSocket s = new MulticastSocket(5000);
try {
s.joinGroup(group);
//Abrimos a interfaz
Interfaz interfaz = new Interfaz(s,group);
in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) throws IOException {\n\r\n\t\tBufferedReader in=new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\r\n\t\tMulticastSocket ms= new MulticastSocket();\r\n\t\t\r\n\t\tint puerto=55557;\r\n\t\tInetAddress grupo=InetAddress.getByName(\"230.0.0.1\");\r\n\t\t\r\n\t\tStrin... | [
"0.70669603",
"0.6746485",
"0.61900043",
"0.61543846",
"0.6103357",
"0.5994417",
"0.5938275",
"0.58727115",
"0.5786351",
"0.5755156",
"0.5660527",
"0.56410563",
"0.5613869",
"0.5604512",
"0.55608934",
"0.55357814",
"0.5506414",
"0.5505781",
"0.548477",
"0.54847366",
"0.541991... | 0.6570521 | 2 |
Is this a valid file? For this GrADS IOSP, the valid file must be: raw binary grid (not GRIB, netCDF, HDF, etc) not a cross section (x and y > 1) not an ensemble definded by EDEF/ENDEDEF (need examples) | public boolean isValidFile(RandomAccessFile raf) throws IOException {
// need a fast failure for non-GRADS files
if (GradsDataDescriptorFile.failFast(raf))
return false;
raf.seek(0);
// we think its a GRADS file, but we have lots of restrictions on what we can handle
try {
gradsDDF = ne... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testModis() throws IOException, InvalidRangeException {\n // GEO (lat//lon)\n testGridExists(testDir + \"modis/MOD17A3.C5.1.GEO.2000.hdf\", \"MOD_Grid_MOD17A3/Data_Fields/Npp_0\\\\.05deg\");\n\n // SINUSOIDAL\n testGridExists(testDir + \"modis/MOD13Q1.A2012321.h00v08.005.2012339011... | [
"0.5663457",
"0.54914653",
"0.547526",
"0.54186267",
"0.5410396",
"0.5390021",
"0.536616",
"0.53584826",
"0.5341536",
"0.5284407",
"0.52810204",
"0.5278248",
"0.52520317",
"0.52365816",
"0.5211544",
"0.520674",
"0.52052426",
"0.51962477",
"0.5181697",
"0.5180266",
"0.5174375"... | 0.6341839 | 0 |
Get the file type id | public String getFileTypeId() {
return "GradsBinaryGrid";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getFileType() {\n return fileType;\n }",
"public java.lang.String getFiletype() {\n return filetype;\n }",
"public String getFileType(){\n\t\treturn type;\n\t}",
"public String getFiletype() {\n return filetype;\n }",
"@XmlElement\n public int getFileTypeId()... | [
"0.72760063",
"0.72273177",
"0.7211387",
"0.7189794",
"0.7099274",
"0.7084016",
"0.6987986",
"0.6971928",
"0.692433",
"0.6758664",
"0.6745428",
"0.6682889",
"0.66399175",
"0.6601561",
"0.6568",
"0.65670943",
"0.6539446",
"0.64997643",
"0.64987266",
"0.64717305",
"0.64411837",... | 0.61359227 | 45 |
Get the file type description | public String getFileTypeDescription() {
return "GrADS Binary Gridded Data";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getTypeDescription(FileObject f)\n {\n return getName(f);\n }",
"public java.lang.String getFiletype() {\n return filetype;\n }",
"public String getFiletype() {\n return filetype;\n }",
"public String getFileType(){\n\t\treturn type;\n\t}",
"public FileDesc ge... | [
"0.80986214",
"0.765102",
"0.76002675",
"0.75506574",
"0.74851924",
"0.74118024",
"0.72482544",
"0.71899885",
"0.7184384",
"0.70751",
"0.69380313",
"0.68870634",
"0.6836817",
"0.68244845",
"0.67707175",
"0.67289454",
"0.67262965",
"0.671642",
"0.6715515",
"0.6666559",
"0.6655... | 0.7175458 | 9 |
Open the service provider for reading. | public void open(RandomAccessFile raf, NetcdfFile ncfile, CancelTask cancelTask) throws IOException {
super.open(raf, ncfile, cancelTask);
this.ncFile = ncfile;
// debugProj = true;
if (gradsDDF == null) {
gradsDDF = new GradsDataDescriptorFile(raf.getLocation(), 1000);
}
xyHeaderBytes = g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public InputStream open() throws IOException {\n return getClass().getClassLoader().getResourceAsStream(name);\n }",
"@Override public void open() throws IOException {\n }",
"@Override\n\tpublic void open() throws IOException {\n\t\t\n\t}",
"@Override\n\tpublic void open() throws ... | [
"0.57875687",
"0.5568355",
"0.5364717",
"0.53482944",
"0.5346404",
"0.52829874",
"0.5280383",
"0.5279001",
"0.52524257",
"0.5227542",
"0.5227542",
"0.5227542",
"0.5227291",
"0.52229846",
"0.52065384",
"0.52065384",
"0.5189012",
"0.51602954",
"0.51419115",
"0.5126294",
"0.5118... | 0.0 | -1 |
Get the byte order from the data descriptor file | private int getByteOrder() {
return (gradsDDF.isBigEndian()) ? RandomAccessFile.BIG_ENDIAN : RandomAccessFile.LITTLE_ENDIAN;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ByteOrder byteOrder();",
"public ByteOrder order()\r\n/* 71: */ {\r\n/* 72:106 */ return ByteOrder.BIG_ENDIAN;\r\n/* 73: */ }",
"protected ByteOrder getByteOrder() {\n return mTiffStream.getByteOrder();\n }",
"public Byte getOrderType() {\n return orderType;\n }",
"publ... | [
"0.7600653",
"0.67268056",
"0.66233534",
"0.62431055",
"0.6138494",
"0.5767082",
"0.57030046",
"0.5690882",
"0.5683563",
"0.564295",
"0.5622248",
"0.55939823",
"0.55831105",
"0.5527065",
"0.5499053",
"0.5413824",
"0.5407962",
"0.5397167",
"0.5378983",
"0.5363929",
"0.53477937... | 0.7142732 | 1 |
Build the netCDF file | protected void buildNCFile() {
ncFile.empty();
fillNCFile();
ncFile.finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void fillNCFile() {\n\n List<GradsVariable> vars = gradsDDF.getVariables();\n List<GradsAttribute> attrs = gradsDDF.getAttributes();\n // TODO: ensembles\n List<GradsDimension> dims = gradsDDF.getDimensions();\n Variable v;\n int numZ = 0;\n HashMap<String, Dimension> zDims = new HashM... | [
"0.6957309",
"0.62569714",
"0.601246",
"0.56134695",
"0.5441768",
"0.5342377",
"0.5250641",
"0.5209909",
"0.5083692",
"0.5078214",
"0.50722903",
"0.503866",
"0.50027335",
"0.49928215",
"0.49288803",
"0.49017742",
"0.48960066",
"0.4891326",
"0.48858228",
"0.48588493",
"0.48207... | 0.7531964 | 0 |
Get the variable name for the given dimension | private String getVarName(GradsDimension dim) {
for (int i = 0; i < dimNames.length; i++) {
if (dim.getName().equalsIgnoreCase(dimNames[i])) {
return dimVarNames[i];
}
}
return dim.getName();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getVarName(String name);",
"public String dimensionName() {\n return this.dimensionName;\n }",
"String getVarName();",
"String getVarName();",
"String getVarName();",
"public Variable getVariable(String name);",
"String getVariable();",
"public StructuredQName getVariableQName();",
... | [
"0.70179486",
"0.6880206",
"0.6832075",
"0.6832075",
"0.6832075",
"0.66590714",
"0.65984845",
"0.6488038",
"0.63694465",
"0.63673013",
"0.62978876",
"0.6259396",
"0.61255425",
"0.61217344",
"0.61183596",
"0.61183596",
"0.611298",
"0.60621214",
"0.60478705",
"0.6010064",
"0.59... | 0.848752 | 0 |
Fill out the netCDF file | private void fillNCFile() {
List<GradsVariable> vars = gradsDDF.getVariables();
List<GradsAttribute> attrs = gradsDDF.getAttributes();
// TODO: ensembles
List<GradsDimension> dims = gradsDDF.getDimensions();
Variable v;
int numZ = 0;
HashMap<String, Dimension> zDims = new HashMap<>();
f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void buildNCFile() {\n ncFile.empty();\n fillNCFile();\n ncFile.finish();\n }",
"public static void main(String args[]) {\n final int NX = 6;\n final int NY = 12;\n\n String filename = \"simple_xy.nc\";\n NetcdfFileWriter dataFile = null;\n\n try {\n dataFile = NetcdfFileW... | [
"0.7134706",
"0.59664744",
"0.5936756",
"0.5452222",
"0.53913635",
"0.5321214",
"0.52657664",
"0.52540547",
"0.52508855",
"0.52281874",
"0.5222588",
"0.51714295",
"0.5050338",
"0.5047455",
"0.5031093",
"0.49937907",
"0.4985066",
"0.48995587",
"0.48908585",
"0.48794648",
"0.48... | 0.72617745 | 0 |
Add the appropriate attributes for a Z dimension | private void addZAttributes(GradsDimension zDim, Variable v) {
if (zDim.getUnit().contains("Pa")) {
v.addAttribute(new Attribute(CF.POSITIVE, CF.POSITIVE_DOWN));
v.addAttribute(new Attribute(_Coordinate.AxisType, AxisType.Pressure.toString()));
} else {
v.addAttribute(new Attribute(CF.POSITIVE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DynamicModelPart setSizeZ(int[] sizeZ) {\n this.sizeZ = sizeZ;\n return this;\n }",
"public DynamicModelPart setZ(float[] z) {\n this.z = z;\n return this;\n }",
"public DynamicCuboid setExtraZ(float z) {\n this.extraZ = z;\n return this;\n ... | [
"0.6171723",
"0.5951413",
"0.58223504",
"0.5744234",
"0.56856143",
"0.56530523",
"0.5643032",
"0.5564367",
"0.5496233",
"0.54805547",
"0.5479064",
"0.53936356",
"0.5360536",
"0.53430116",
"0.5321249",
"0.5315209",
"0.53133243",
"0.5307336",
"0.52812713",
"0.5276988",
"0.52743... | 0.7735883 | 0 |
Close this IOSP and associated files | public void close() throws IOException {
if (dataFile != null)
dataFile.close();
dataFile = null;
super.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void close() throws IOException{\n\t\tcp.close();\n\t\tSuaDB.fileMgr().flushFile(fileName);\n\t}",
"public void close(){\n\t\ttry {\n\t\t\tout.close();\n\t\t\tout = null;\n\t\t}\n\t\tcatch (IOException e){\n\t\t\tSystem.out.println(\"Problem closing file.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public... | [
"0.71427697",
"0.7101269",
"0.69923174",
"0.6991445",
"0.6961323",
"0.69340515",
"0.692596",
"0.6901796",
"0.68649936",
"0.6842381",
"0.68022776",
"0.67998195",
"0.6757593",
"0.67497355",
"0.6741814",
"0.6691534",
"0.66895235",
"0.66647965",
"0.66637754",
"0.6660673",
"0.6660... | 0.6743869 | 14 |
Find the GradsVariable associated with the netCDF variable | private GradsVariable findVar(Variable v2) {
List<GradsVariable> vars = gradsDDF.getVariables();
String varName = v2.getFullName();
for (GradsVariable var : vars) {
if (var.getName().equals(varName)) {
return var;
}
}
return null; // can't happen?
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Double getVariable(Object var) {\n Double val = constraints.get(var);\n if (val == null)\n return 0.0;\n else\n return val;\n }",
"public int findGnetGroup() {\r\n int cr, num = 0;\r\n //TODO\r\n // if (Controls.getInstance().getGnet() ==... | [
"0.6292084",
"0.57246065",
"0.56028587",
"0.55999845",
"0.5512125",
"0.5482322",
"0.5458336",
"0.5448178",
"0.536881",
"0.5364243",
"0.5347308",
"0.5324053",
"0.5291869",
"0.5213322",
"0.5208903",
"0.5181346",
"0.5129383",
"0.5100073",
"0.50937325",
"0.507193",
"0.5065162",
... | 0.53946286 | 8 |
Read the data for the variable | public Array readData(Variable v2, Section section) throws IOException, InvalidRangeException {
Array dataArray = Array.factory(DataType.FLOAT, section.getShape());
GradsVariable gradsVar = findVar(v2);
if (gradsVar == null)
throw new IOException();
// Canonical ordering is ens, time, level, lat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void readData() {\n\t\t\n\t}",
"java.lang.String getData();",
"String getData();",
"public void readParameters()\n {\n readParameters(getData());\n }",
"Object readValue();",
"private void read() {\n\t\tticketint = preticketint.getInt(\"ticketint\", 0);\r\n\t\tLog.d(\"tic... | [
"0.65308434",
"0.6384044",
"0.63588935",
"0.6288786",
"0.624403",
"0.6200059",
"0.61622214",
"0.6118141",
"0.6114681",
"0.6046952",
"0.6010055",
"0.6010055",
"0.60042584",
"0.6003633",
"0.59964824",
"0.59644955",
"0.59644955",
"0.59644955",
"0.5942708",
"0.59237975",
"0.59200... | 0.0 | -1 |
read one YX array | private void readXY(Variable v2, int ensIdx, int timeIdx, int levIdx, Range yRange, Range xRange, IndexIterator ii)
throws IOException {
dataFile = getDataFile(ensIdx, timeIdx);
List<GradsVariable> vars = gradsDDF.getVariables();
// if it's an ensemble template, then all data is in this file
int ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public byte[] getY() {\n return y;\n }",
"@Override\n public int read(int[] coordinates) {\n\n coordinates[0] = (int) x.get();\n coordinates[1] = (int) y.get();\n\n return 1;\n }",
"@Test\n public void testGetY() throws FitsException, IOException{\n ImageData imag... | [
"0.6174858",
"0.5980079",
"0.59004694",
"0.5892766",
"0.583351",
"0.57144386",
"0.5664864",
"0.55846924",
"0.5564323",
"0.5551997",
"0.5551719",
"0.55028796",
"0.54801536",
"0.5398141",
"0.539675",
"0.5381869",
"0.53141826",
"0.5302374",
"0.5301924",
"0.52620757",
"0.5202635"... | 0.4804199 | 98 |
Get the data file to use (if this is a template) | private RandomAccessFile getDataFile(int eIndex, int tIndex) throws IOException {
String dataFilePath = gradsDDF.getFileName(eIndex, tIndex);
if (!gradsDDF.isTemplate()) { // we only have one file
if (dataFile != null) {
return dataFile;
}
}
if (dataFile != null) {
String path... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public File getDataFile();",
"public String getDataFilePath() {\r\n \t\treturn dataFile;\r\n \t}",
"public File getTemplateFile();",
"DatasetFile getDatasetFile();",
"@Override\n protected File getDataFile(String relFilePath) {\n return new File(getDataDir(), relFilePath);\n }",
"public Stri... | [
"0.7425764",
"0.7152133",
"0.68977016",
"0.66793793",
"0.65102166",
"0.64842993",
"0.6455547",
"0.6261768",
"0.62586206",
"0.6244059",
"0.62414587",
"0.6188956",
"0.6178518",
"0.60809135",
"0.6070249",
"0.60442007",
"0.5986449",
"0.59404844",
"0.5931085",
"0.5930776",
"0.5906... | 0.684683 | 3 |
randomizer to randomly compute euler angles | @Test
public void testGetSetEulerAngles() throws WrongSizeException {
UniformRandomizer randomizer = new UniformRandomizer(new Random());
double alphaEuler = randomizer.nextDouble(2.0 * MIN_ANGLE_DEGREES,
2.0 * MAX_ANGLE_DEGREES) * Math.PI / 180.0;
double betaEuler = randomi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private float genY(float x) {\r\n x = Math.abs(x);\r\n if (_rand.nextBoolean()) {\r\n return x * (float)Math.tan(Math.acos(x/20.0));\r\n } else {\r\n return -x * (float)Math.tan(Math.acos(x/20.0));\r\n }\r\n }",
"public int generarDE(){\n int ts;\n ... | [
"0.6147876",
"0.5993052",
"0.5972841",
"0.5968813",
"0.5909992",
"0.57994497",
"0.57869315",
"0.5771957",
"0.5764321",
"0.569913",
"0.56924313",
"0.56846833",
"0.56552035",
"0.56286216",
"0.5624828",
"0.55912405",
"0.5590947",
"0.5577708",
"0.5574202",
"0.5552058",
"0.5551845... | 0.0 | -1 |
randomizer to randomly compute euler angles | @Test
public void testGetSetRollPitchYawAngles() throws WrongSizeException {
UniformRandomizer randomizer = new UniformRandomizer(new Random());
double roll = randomizer.nextDouble(2.0 * MIN_ANGLE_DEGREES,
2.0 * MAX_ANGLE_DEGREES) * Math.PI / 180.0;
double pitch = randomizer... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private float genY(float x) {\r\n x = Math.abs(x);\r\n if (_rand.nextBoolean()) {\r\n return x * (float)Math.tan(Math.acos(x/20.0));\r\n } else {\r\n return -x * (float)Math.tan(Math.acos(x/20.0));\r\n }\r\n }",
"public int generarDE(){\n int ts;\n ... | [
"0.6148888",
"0.59931046",
"0.5972922",
"0.596971",
"0.59106666",
"0.5800231",
"0.57875925",
"0.5772676",
"0.57654244",
"0.570075",
"0.569369",
"0.568507",
"0.5655317",
"0.56290287",
"0.5625681",
"0.55915713",
"0.5591536",
"0.5578395",
"0.55750096",
"0.55535644",
"0.55528384"... | 0.0 | -1 |
ClearData() function is used to clear all the data when logout is pressed. | protected void ClearData() {
// TODO Auto-generated method stub
sharedPreferences = this.getSharedPreferences(MyPREFERENCES, Context.MODE_PRIVATE);
Editor editor = sharedPreferences.edit();
if(sharedPreferences.contains("username")||sharedPreferences.contains("password")){
editor.remove("username"... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void clearData() {}",
"public void clearData()\r\n {\r\n \r\n }",
"void clearData();",
"public void clearData(){\n\r\n\t}",
"public void clearData() {\r\n\t\tdata = null;\r\n\t}",
"@Override\n public void clearData() {\n }",
"public void logout() {\n\n clearData... | [
"0.76324195",
"0.760738",
"0.75634295",
"0.7323314",
"0.7254953",
"0.7197776",
"0.69691503",
"0.68576723",
"0.68366843",
"0.68345785",
"0.6703145",
"0.66635007",
"0.661504",
"0.6581173",
"0.6543784",
"0.65398526",
"0.65207636",
"0.65146923",
"0.65146923",
"0.6493149",
"0.6482... | 0.768397 | 0 |
Actions to be done on button click. | @Override
public void onClick(View v) {
// TODO Auto-generated method stub
int id = v.getId();
switch(id){
case R.id.layout1:
//AboutCustodian layout1 used to navigate to AboutCustodianDirect screen.
myIntent = new Intent(InformationCenterMenuScreen.this,AboutCustodianDirect.class);
startActi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buttonClicked();",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"public void settingBtnClick() {\n\t}",
"public void clickButton()\n {\n fieldChangeNotify( 0 );\n }",
"@Override\n public void onClick() {\n System.out.println(\"Button has been J... | [
"0.75419545",
"0.72332215",
"0.71620715",
"0.7090278",
"0.7088673",
"0.7073562",
"0.6968273",
"0.6966123",
"0.6961179",
"0.69514626",
"0.69514626",
"0.6942318",
"0.6942318",
"0.6942318",
"0.6942318",
"0.6940445",
"0.69175696",
"0.69097626",
"0.68702525",
"0.68534404",
"0.6842... | 0.0 | -1 |
Write your code here to invoke NO event | public void onClick(DialogInterface dialog, int which) {
dialog.cancel();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tno();\n\t\t\t\t}",
"public void onNo();",
"void noResponderFor(Object eventSelector)\n {\n }",
"protected void onDisabled() {\n // Do nothing.\n }",
"public void doNothing(){\n\t}",
"@Override\r\n\tpublic void novo(ActionEvent actionEvent) {\n\t... | [
"0.73222023",
"0.7182645",
"0.6887285",
"0.6774125",
"0.67564994",
"0.6702776",
"0.6625188",
"0.6611923",
"0.66101545",
"0.65630597",
"0.6540474",
"0.65353864",
"0.65335536",
"0.64616835",
"0.64539003",
"0.6332663",
"0.62830794",
"0.62733465",
"0.6267764",
"0.62648916",
"0.62... | 0.0 | -1 |
========================================================================= ========================================================================= Default Constructor | public Potencial() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Constructor() {\r\n\t\t \r\n\t }",
"public Constructor(){\n\t\t\n\t}",
"defaultConstructor(){}",
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"private Default()\n {}",
"public Basic() {}",
"public PSRelation()\n {\n }",
"private Instan... | [
"0.80440885",
"0.77198315",
"0.73056966",
"0.72998697",
"0.72522557",
"0.7217323",
"0.72140557",
"0.7173499",
"0.71301544",
"0.7102542",
"0.709191",
"0.70902705",
"0.7077651",
"0.70759165",
"0.707159",
"0.7036897",
"0.70322984",
"0.70205295",
"0.7019741",
"0.7018782",
"0.6967... | 0.0 | -1 |
todo override using commons | public String toLargeString() {
StringBuilder sb=new StringBuilder();
sb.append("Potencial{");
sb.append("idPotencial" ).append("=").append(idPotencial).append("|");
sb.append("proveedorEstacion" ).append("=").append(proveedorEstacion).append("|");
sb.append("proveedor" ).append("=").append(proveedor).ap... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void initUtils() {\n\n\t}",
"protected CombinatoricsUtils() {\n super();\n }",
"private Util() { }",
"private CommonMethods() {\n }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"private Utils() {}",
"private Utils... | [
"0.6183293",
"0.60264224",
"0.5946887",
"0.5925001",
"0.5770238",
"0.5770238",
"0.5746924",
"0.5746924",
"0.5746924",
"0.5746924",
"0.5744546",
"0.5725862",
"0.57236624",
"0.57173705",
"0.5690278",
"0.5614038",
"0.5603063",
"0.5597035",
"0.5534074",
"0.55108124",
"0.54967356"... | 0.0 | -1 |
Inserts a new key with value 1. Or increments an existing key by 1. | public void inc(String key); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int inc(Object key)\r\n {\r\n return add(key, 1);\r\n }",
"public void inc(String key) {\n int val = 0;\n\n if (!m.containsKey(key)) {\n m.put(key, val + 1);\n } else {\n val = m.get(key);\n m.put(key, val + 1);\n delete(key, va... | [
"0.7293396",
"0.684088",
"0.67017734",
"0.66535145",
"0.65284663",
"0.651261",
"0.6487457",
"0.6451906",
"0.6442185",
"0.64064413",
"0.63879615",
"0.63619584",
"0.63296026",
"0.629719",
"0.626639",
"0.62583476",
"0.61845595",
"0.61708826",
"0.61471164",
"0.6127645",
"0.610390... | 0.6889619 | 1 |
Decrements an existing key by 1. If Key's value is 1, remove it from the data structure. | public void dec(String key); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void dec(String key) {\n if (!m.containsKey(key)) {\n return;\n }\n\n int val = m.get(key);\n delete(key, val);\n\n if (val == 1) {\n m.remove(key);\n } else {\n m.put(key, val - 1);\n insert(key, val - 1);\n }\n ... | [
"0.74398386",
"0.7166753",
"0.675533",
"0.6684946",
"0.6561964",
"0.64973575",
"0.6447649",
"0.6389741",
"0.6258928",
"0.62043756",
"0.6180767",
"0.6174791",
"0.61620414",
"0.61575186",
"0.610019",
"0.6075174",
"0.6058669",
"0.6045881",
"0.6040435",
"0.6027968",
"0.60259634",... | 0.6153878 | 14 |
Returns one of the keys with maximal value. | public String getMaxKey(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getMaxKey() {\n if (list.isEmpty()) {\n return \"\";\n }\n return v.get(list.getFirst()).iterator().next();\n }",
"public abstract Key getLargest();",
"private static Key max(Key... ks) {\n\t\tif (ks == null || ks.length == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\... | [
"0.70575255",
"0.68813056",
"0.68038315",
"0.6700194",
"0.66139954",
"0.65645957",
"0.6553604",
"0.65366715",
"0.6519728",
"0.6504081",
"0.63730186",
"0.63645834",
"0.63561434",
"0.6337226",
"0.6327811",
"0.6327042",
"0.63119465",
"0.6268774",
"0.6258258",
"0.62426233",
"0.61... | 0.7452082 | 0 |
Returns one of the keys with Minimal value. | public String getMinKey(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public T minimum() {\n return min.key;\n }",
"public Key min();",
"int minKey(float key[], Boolean mstSet[]){\n float min = Float.MAX_VALUE;\n int min_index = -1;\n \n for (int v = 0; v < V; v++)\n if (mstSet[v] == false && key[v] < min) {\n min = key[v];\n ... | [
"0.65328",
"0.642346",
"0.61724657",
"0.6138092",
"0.61080194",
"0.6069915",
"0.6040149",
"0.58653736",
"0.5847463",
"0.5792538",
"0.5760105",
"0.5721328",
"0.56989205",
"0.5682914",
"0.56704295",
"0.5665593",
"0.56631356",
"0.56435406",
"0.5619384",
"0.55857563",
"0.55857563... | 0.6847121 | 0 |
if Java's ListIterator supported clone, we could use keyed iterators like | void test1(IAllOne obj) {
assertEquals("", obj.getMaxKey());
assertEquals("", obj.getMinKey());
obj.inc("a");
assertEquals("a", obj.getMaxKey());
assertEquals("a", obj.getMinKey());
obj.inc("a");
obj.inc("b");
obj.inc("b");
obj.inc("b");
ob... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic Iterator<Key> iterator() {\n\t\treturn new ListIterator();\r\n\t}",
"public Iterator<Item> iterator() { return new ListIterator(); }",
"public SimpleDuplicateableIterator(Iterator<E> iterator)\r\n\t{\r\n\t\tthis.currentIndex = 0;\r\n\t\tthis.oldElements = new ArrayList<E>();\r\n\t\tthis... | [
"0.6809052",
"0.6757394",
"0.65072054",
"0.6477253",
"0.64641654",
"0.6333371",
"0.61735314",
"0.6173307",
"0.6114927",
"0.6081244",
"0.6030758",
"0.6003386",
"0.5999541",
"0.59844154",
"0.59833586",
"0.5981252",
"0.5981252",
"0.59750384",
"0.59621304",
"0.59401816",
"0.59352... | 0.0 | -1 |
/ create a method that can print odd numbers between 1~100 in a same line seperated by space | public static void printOddNumbers (int from, int to) {//when we dont know the range
for(int i=from; i<=to; i++){
if(i%2!=0){
System.out.print(i + " ");
}
}
System.out.println();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void printOdd50() {\n\t\tfor(int i = 0; i < 50; i++) {\n\t\t\tif(i % 2 == 1) {\n\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public static void printOddInt() {\n\t\t\n\t\t//For Loop\n\t\tfor(int i=4; i<10; i++) {\n\t\t\tif(i%2!=0) {\n\t\t\t\tSystem.out.pri... | [
"0.775192",
"0.7654596",
"0.751781",
"0.74659944",
"0.7463287",
"0.74516654",
"0.7385771",
"0.7365032",
"0.730509",
"0.72653186",
"0.72585857",
"0.7198527",
"0.7159826",
"0.7153139",
"0.7092308",
"0.6925751",
"0.69003266",
"0.6874055",
"0.6836203",
"0.6822864",
"0.681514",
... | 0.7915833 | 0 |
/ create a method that can print even numbers between any 2 given numbers | public static void printEvenNumbers(int from, int to){
for(int i=from; i<=to; i++){
if(i%2==0){
System.out.print(i + " ");
}
}
System.out.println();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void printOddNumbers (int from, int to) {//when we dont know the range\n for(int i=from; i<=to; i++){\n if(i%2!=0){\n System.out.print(i + \" \");\n }\n\n }\n System.out.println();\n }",
"public static void main(String[] args) {\nint... | [
"0.7796652",
"0.71019775",
"0.70338386",
"0.6938098",
"0.6930478",
"0.6925675",
"0.66929734",
"0.6653954",
"0.66192716",
"0.66096526",
"0.65771586",
"0.6559147",
"0.65295076",
"0.6524326",
"0.65122956",
"0.64647156",
"0.6446936",
"0.64383036",
"0.6431469",
"0.64278936",
"0.64... | 0.7922825 | 0 |
/ create a method that can calculate the age of the person | public static void calculateTheAge (int birthYear){
int age = 2021 - birthYear;
System.out.println("The person is " + age + " years old");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int calculateAge() {\n\t\treturn LocalDate.now().getYear() - this.birthYear;\n\t}",
"int getAgeInYears(Person p);",
"int getFromAge();",
"@SuppressWarnings(\"static-access\")\r\n\tprivate int calculateAge()\r\n\t{\r\n\t\tGregorianCalendar now = new GregorianCalendar();\r\n\t\tnow = new GregorianCale... | [
"0.8226684",
"0.8146043",
"0.80054873",
"0.7989389",
"0.7981336",
"0.7963296",
"0.7963296",
"0.7963296",
"0.79125375",
"0.7787647",
"0.77839655",
"0.77839655",
"0.7696571",
"0.76284045",
"0.75697994",
"0.7563228",
"0.75614935",
"0.75316566",
"0.7494138",
"0.7494138",
"0.74941... | 0.75216454 | 18 |
/ check eligibility to vote | public static void eligibleToVote (int age, boolean isUSCitizen) {
if(age>=21 && isUSCitizen){
System.out.println("Eligible to vote");
}
else{
System.out.println("Not eligible to vote");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void doVote() {\n }",
"@Test(expected= VotingException.class)\n public void VotingMadeByAuthorThrowsException() throws Exception {\n\n bob.upVote(bobPost);\n bob.downVote(bobPost);\n alice.upVote(question);\n alice.downVote(question);\n }",
"public synchronize... | [
"0.64476484",
"0.6062993",
"0.5969022",
"0.59682655",
"0.591025",
"0.58393574",
"0.5791575",
"0.5788976",
"0.5689027",
"0.56767386",
"0.56671864",
"0.5667048",
"0.56666666",
"0.56631035",
"0.56598854",
"0.55943304",
"0.55570364",
"0.5549313",
"0.55472463",
"0.55378354",
"0.55... | 0.59955597 | 2 |
/ method to return the HUGO Symbol and EntrezID for a specified Ensembl ID return object is a Tuple2 containing the HUGO Gene Symbol & the EntrezID an empty tuple is returned if a mapping cannot be completed | public Tuple2<String, String> ensemblToHugoSymbolAndEntrezID(String ensemblID) {
Preconditions.checkArgument(!Strings.isNullOrEmpty(ensemblID));
return (this.gnMap.containsKey(ensemblID)) ? this.gnMap.get(ensemblID) :
new Tuple2<String, String>("", "");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getGeneId();",
"java.lang.String getSymbolId();",
"String gini_GetEntityID(int ent_id) {\n String name;\n switch (ent_id) {\n case 2:\n name = \"Miscellaneous\";\n break;\n case 3:\n name = \"JERS\";\n break;\n case 4:\n name = \"ERS/QuikSCAT/Scattero... | [
"0.60214865",
"0.5676758",
"0.5669948",
"0.5638729",
"0.52951646",
"0.52718747",
"0.5100865",
"0.50673765",
"0.5027277",
"0.49258652",
"0.49229854",
"0.49156556",
"0.49076024",
"0.4870084",
"0.48547906",
"0.48512167",
"0.4844665",
"0.4844665",
"0.4844665",
"0.48393172",
"0.48... | 0.7433248 | 0 |
/ private method to create a rectangle with zero height representing the "area" covered by the genomic entity really just the length n.b. starting and end coordinates are reversed for features on the minus strand | private Optional<Rectangle> resolveGenePosition(String chromosome, String startPos,
String endPos, String strand) {
if (Strings.isNullOrEmpty(strand)) {
strand = "1";
}
Float s = FloatValidator.getInstance().validate(strand);
Float y1;
Float y2;
if (s > 0.0) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"AREA createAREA();",
"void createRectangles();",
"Rectangle() {\r\n\t\tlength = 1.0;\r\n\t\twidth = 1.0;\r\n\t}",
"public Rectangle() {\n this.length = 0;\n this.width = 0;\n\n }",
"public Rectangle(Point center, int length){\n super(4);\n if(length <= 0)\n throw new IllegalArgu... | [
"0.674816",
"0.66371167",
"0.63498366",
"0.6277011",
"0.6247234",
"0.62062275",
"0.6128124",
"0.6104078",
"0.60880816",
"0.6064035",
"0.60527474",
"0.6047263",
"0.60445833",
"0.6036257",
"0.6031838",
"0.6013551",
"0.59798545",
"0.59750855",
"0.59708023",
"0.5961035",
"0.59546... | 0.0 | -1 |
/ public method to create and supply a Map of HUGO Symbols keys and Entrez id as values n.b. the Entrez ID is treated as a numeric String | @Override
public Map<String, String> get() {
Map<String, String> hugoMap = Maps.newHashMap();
try {
final CSVParser parser = new CSVParser(this.reader, CSVFormat.TDF.withHeader());
for (CSVRecord record : parser) {
hugoMap.put(record.get(0), record.get(1));
}
}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IdMap() {\n\t\tthis.add(new TextItems());\n\t\tthis.add(new DateTimeEntity());\n\t\tthis.add(EntityCreator.createJson(false));\n\t\tthis.add(EntityCreator.createJson(true));\n\t\tthis.add(new ObjectMapEntry());\n\t\tthis.add(EntityCreator.createXML());\n\t}",
"public void createIDMap()\n {\n IDM... | [
"0.5660322",
"0.5644905",
"0.56240517",
"0.55993074",
"0.55931866",
"0.55818266",
"0.55240786",
"0.5496671",
"0.5413311",
"0.54040056",
"0.52744603",
"0.5233725",
"0.5205365",
"0.5204889",
"0.519301",
"0.51539093",
"0.5153219",
"0.51168823",
"0.5090985",
"0.5079271",
"0.50690... | 0.0 | -1 |
/ public method to create and supply a Map of Ensemble gene ids as keys and Tuple2s containing Hugo symbol & Entrez id as values | @Override
public Map<String, Tuple2<String, String>> get() {
Map<String, Tuple2<String, String>> ensemblMap = Maps.newHashMap();
try {
final CSVParser parser = new CSVParser(this.reader, CSVFormat.TDF.withHeader());
for (CSVRecord record : parser) {
ensemblMap
.p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Tuple2<String, String> ensemblToHugoSymbolAndEntrezID(String ensemblID) {\n Preconditions.checkArgument(!Strings.isNullOrEmpty(ensemblID));\n return (this.gnMap.containsKey(ensemblID)) ? this.gnMap.get(ensemblID) :\n new Tuple2<String, String>(\"\", \"\");\n }",
"public void createIDMap()\n ... | [
"0.60387707",
"0.57463497",
"0.56766",
"0.5548085",
"0.5485376",
"0.5478949",
"0.53797966",
"0.5371862",
"0.528093",
"0.5272651",
"0.52638024",
"0.5259835",
"0.5250222",
"0.52318966",
"0.5230111",
"0.520873",
"0.51858157",
"0.5171357",
"0.515495",
"0.5141542",
"0.51036525",
... | 0.5180873 | 17 |
Created by hurricup on 21.01.2016. | public interface ClassAccessorElementTypes
{
IElementType RESERVED_MK_RO_ACCESSORS = new ClassAccessorSubElementType("MK_RO_ACCESSORS");
IElementType RESERVED_MK_WO_ACCESSORS = new ClassAccessorSubElementType("MK_WO_ACCESSORS");
IElementType RESERVED_MK_ACCESSORS = new ClassAccessorSubElementType("MK_ACCESSORS");
I... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@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.5908053",
"0.5760213",
"0.5721157",
"0.56241095",
"0.55998105",
"0.55998105",
"0.5545581",
"0.5538133",
"0.550531",
"0.5486578",
"0.5484097",
"0.54817706",
"0.54712534",
"0.54679346",
"0.5462109",
"0.5454844",
"0.5454386",
"0.54341483",
"0.54333246",
"0.54180986",
"0.53990... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_searce, 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.6740675",
"0.6725193",
"0.67224836",
"0.6699259",
"0.6691596",
"0.668896",
"0.6687658",
"0.66861755",
"0.667755",
"0.66756433",
"0.6667425",
"0.66667783",
"0.6665166",
"0.66614723",
"0.66549766",
"0.665031",
"0.6643759",
"0.6639389",
"0.66378653",
"0.66345453",
"0.6626348"... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.button1:
Intent intent = new Intent();
intent.setClass(getActivity(), PlayActivity.class);
startActivity(intent);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
protected ResourceManager resourceManager; ======================================================================== Constuctors/Initializers ======================================================================== Block empty constructor | @SuppressWarnings("unused")
private VNode()
{
vrsContext=null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ResourceManager() {}",
"public ResManager()\n {\n }",
"private ResourceFactory() {\r\n\t}",
"public Resources() {\n }",
"public ConsommersResource() {\r\n }",
"private Resource() {}",
"public JhoveResources() {\n\t\tsuper();\n\t}",
"public Resource() {\n }",
"public Resource(... | [
"0.84319943",
"0.72354776",
"0.71435237",
"0.69941294",
"0.6985278",
"0.69819653",
"0.6963886",
"0.6894734",
"0.6894734",
"0.6803181",
"0.6786143",
"0.6731678",
"0.67063785",
"0.66680753",
"0.6664074",
"0.66619474",
"0.66511303",
"0.6622611",
"0.6617708",
"0.6608335",
"0.6529... | 0.0 | -1 |
======================================================================== Field Methods ======================================================================== | public VNode(VRSContext context,VRL vrl)
{
this.vrsContext=context;
setLocation(vrl);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void comer... | [
"0.64095145",
"0.6354308",
"0.63364977",
"0.6330829",
"0.63146263",
"0.6215001",
"0.6207056",
"0.6154423",
"0.60438347",
"0.60438347",
"0.6026128",
"0.6026128",
"0.5998889",
"0.5976704",
"0.59693706",
"0.5957752",
"0.5950186",
"0.5938788",
"0.5923319",
"0.5920825",
"0.5904721... | 0.0 | -1 |
Returns extension part of VRL | final public String getExtension()
{
return this.getLocation().getExtension();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getExtension();",
"java.lang.String getExtensionText();",
"public String getExtension() {\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif(this.get(this.lenght - 1).contains(\".\"))\n\t\t{\n\t\t\tString temp = this.get(this.lenght - 1);\n\t\t\t\n\t\t\tString[] parts = temp.split(\"\\\\.\");\n\t\t\t\n\t\t... | [
"0.74968123",
"0.741368",
"0.7056865",
"0.70334715",
"0.6885246",
"0.6813734",
"0.6813734",
"0.6742843",
"0.6717158",
"0.67136663",
"0.6709014",
"0.6680067",
"0.6647022",
"0.66063386",
"0.6605565",
"0.65938693",
"0.6578338",
"0.6514811",
"0.65098405",
"0.64956105",
"0.6483526... | 0.6716371 | 9 |
Returns VRSContext which whas used to create this node | final public VRSContext getVRSContext()
{
return this.vrsContext;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Context createContext();",
"Context createContext();",
"public VNode(VRSContext context,VRL vrl)\n\t{\n\t\tthis.vrsContext=context;\n setLocation(vrl); \n\t}",
"public ContextNode getContextNode();",
"public abstract ContextNode getContextNode();",
"Context context();",
"Context context();",
"... | [
"0.6395916",
"0.6395916",
"0.6309454",
"0.6293733",
"0.6124942",
"0.59370977",
"0.59370977",
"0.5876744",
"0.5867173",
"0.5856585",
"0.5704074",
"0.5690439",
"0.5651533",
"0.56430066",
"0.5639491",
"0.55917186",
"0.55689865",
"0.5550355",
"0.5518824",
"0.5510626",
"0.5508937"... | 0.64081913 | 0 |
Returns Virtual Resource Locator (VRL) of this object. This is an URI compatible class but with more (URL like) features. | final public VRL getVRL()
{
return _nodeVRL;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ROLocatorVOImpl getROLocatorVO1() {\n return (ROLocatorVOImpl) findViewObject(\"ROLocatorVO1\");\n }",
"final public URL getURL() throws VlException \n {\n \tif (_nodeVRL==null)\n \t\treturn null;\n \t\n\t\treturn _nodeVRL.toURL();\n }",
"final public URI getURI() throws VlExcep... | [
"0.6223053",
"0.5957332",
"0.59259194",
"0.5650346",
"0.55905604",
"0.5527609",
"0.54869926",
"0.5481428",
"0.54485935",
"0.5340558",
"0.5329412",
"0.5311341",
"0.52950335",
"0.5281715",
"0.5187038",
"0.5166057",
"0.5162059",
"0.5146175",
"0.5142025",
"0.51372474",
"0.5118217... | 0.55748165 | 5 |
Returns URI (java.net.URI) of this object. This method is the same as getVRL().toURI(); | final public URI getURI() throws VlException
{
if (_nodeVRL==null)
return null;
return _nodeVRL.toURI();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public String getURI() {\r\n if (uriString == null) {\r\n uriString = createURI();\r\n }\r\n return uriString;\r\n }",
"URI getUri();",
"java.lang.String getUri();",
"java.lang.String getUri();",
"public java.lang.String getUri() {\n return uri;\n ... | [
"0.7471842",
"0.70818764",
"0.7081178",
"0.7081178",
"0.7028367",
"0.6976422",
"0.6962111",
"0.69119114",
"0.68965685",
"0.68863267",
"0.68821156",
"0.6878976",
"0.6831381",
"0.6819692",
"0.6799602",
"0.6784023",
"0.67533094",
"0.674309",
"0.67406434",
"0.67304456",
"0.67284"... | 0.75647664 | 0 |
Returns URL (java.net.URL) of this object. This method is the same as getVRL().toURL(); | final public URL getURL() throws VlException
{
if (_nodeVRL==null)
return null;
return _nodeVRL.toURL();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getURL() {\n return uRL;\n }",
"URL toURL() throws IOException;",
"public String getURL();",
"private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}",
"public String getURL() {\r\n\t\treturn dURL.toString();\r\n\t}",
"public java.lang.String getURL(... | [
"0.7038135",
"0.68661964",
"0.6850253",
"0.67758363",
"0.67690885",
"0.67139655",
"0.66774875",
"0.65850735",
"0.6583178",
"0.65714353",
"0.655161",
"0.655161",
"0.655161",
"0.6539746",
"0.6535129",
"0.6502075",
"0.64835113",
"0.64835113",
"0.6480303",
"0.6431929",
"0.6403611... | 0.75843036 | 0 |
Get unique VNode id. Currently used for debugging | public long getNodeID()
{
return vnodeid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String myNodeId() {\n\t\tif (nodeId == null) {\n\t\t\tnodeId = UUID.randomUUID();\n\t\t\tLOG.debug(\"My node id=\" + nodeId.toString());\n\t\t}\n\n\t\treturn nodeId.toString();\n\t}",
"private String getMyNodeId() {\n TelephonyManager tel = (TelephonyManager) getContext().getSystemService(Context.T... | [
"0.7303149",
"0.7101205",
"0.7015986",
"0.69975656",
"0.67975837",
"0.6763579",
"0.67568594",
"0.6755012",
"0.67424107",
"0.6710072",
"0.6698094",
"0.6658523",
"0.6614441",
"0.65888745",
"0.65428305",
"0.6524719",
"0.6515207",
"0.650991",
"0.64601165",
"0.6455137",
"0.6412864... | 0.6983537 | 4 |
Returns the short name of the resource. The default is the basename of the resource or the last part of the path part in the URI. To use another name, subclassses must overide this method. | public String getName()
{
if (_nodeVRL==null)
return null;
return _nodeVRL.getBasename(); // default= last part of path
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getName(Resource resource, OgemaLocale locale, boolean useRelativePathAsAlias, boolean useDefaultLanguage);",
"public String getResourceName() {\n return getBaseName() + getNameSuffix();\n }",
"String getShortName() {\n final int lastSlash = name.lastIndexOf('/');\n fina... | [
"0.7165838",
"0.7054633",
"0.6776835",
"0.6642613",
"0.65928817",
"0.65506667",
"0.65473765",
"0.65182513",
"0.64773905",
"0.6468266",
"0.6390897",
"0.63776696",
"0.63679594",
"0.6352685",
"0.6347373",
"0.6309743",
"0.6266915",
"0.6266915",
"0.6266915",
"0.62517947",
"0.62368... | 0.0 | -1 |
Returns logical path of this resource | public String getPath()
{
if (_nodeVRL==null)
return null;
return _nodeVRL.getPath();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPath()\n {\n StringBuilder buff = new StringBuilder();\n Resource r = this;\n while(r != null)\n {\n if(r.getId() != 1)\n {\n buff.insert(0, r.getName());\n }\n r = r.getParent();\n if(r != null ||... | [
"0.7621163",
"0.7183358",
"0.7183358",
"0.7183358",
"0.7183358",
"0.7183358",
"0.7175878",
"0.7175878",
"0.7175878",
"0.70726365",
"0.7006003",
"0.6998437",
"0.69800377",
"0.69335407",
"0.69222355",
"0.69222355",
"0.6836959",
"0.68353486",
"0.682238",
"0.6819891",
"0.6768325"... | 0.0 | -1 |
Returns Port. If the value <=0 then the default port must be used. | public int getPort()
{
return _nodeVRL.getPort();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getPort() {\n\t\treturn Integer.parseInt(String.valueOf(port.getValue()));\n\t}",
"public int getPortIfSpecified() {\n String portAsString = getPropertyAsString(PORT);\n if(portAsString == null || portAsString.isEmpty()) {\n return UNSPECIFIED_PORT;\n }\n \n... | [
"0.79049605",
"0.78858286",
"0.78592914",
"0.7854281",
"0.773465",
"0.7723745",
"0.75588137",
"0.7520496",
"0.7430516",
"0.7430516",
"0.7419096",
"0.7419096",
"0.7415584",
"0.7415584",
"0.74076945",
"0.74076277",
"0.73846585",
"0.73768383",
"0.73565316",
"0.73565316",
"0.7356... | 0.0 | -1 |
Returns basename part of the path of a node. | public String getBasename()
{
// Default implementation: getBasename of path
return _nodeVRL.getBasename();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public String getBaseName() {\r\n if (baseName == null) {\r\n final int idx = getPath().lastIndexOf(SEPARATOR_CHAR);\r\n if (idx == -1) {\r\n baseName = getPath();\r\n } else {\r\n baseName = getPath().substring(idx + 1);\r\n ... | [
"0.6627648",
"0.6255193",
"0.6041426",
"0.6026244",
"0.5987986",
"0.59583175",
"0.5946608",
"0.5946608",
"0.59111804",
"0.5888275",
"0.58262426",
"0.5804786",
"0.57447344",
"0.5736924",
"0.56481797",
"0.56466424",
"0.5616487",
"0.5582436",
"0.55641896",
"0.55597055",
"0.55283... | 0.67476076 | 0 |
Returns Mime Type based upon file filename/extension. For a more robust method, use MimeTypes.getMagicMimeType(). | public String getMimeType() throws VlException
{
return MimeTypes.getDefault().getMimeType(this.getPath());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getContentType(String fileExtension);",
"String getFileMimeType();",
"public static String guessMimeType(String filename) {\n requireNonNull(filename, \"filename with extension can not be null.\");\n return MIMETYPES_FILE_TYPE_MAP.getContentType(filename);\n }",
"private String getMimeType(File... | [
"0.8149539",
"0.79025733",
"0.7856464",
"0.7806295",
"0.7705879",
"0.764591",
"0.7630965",
"0.7620149",
"0.7620149",
"0.74192333",
"0.7401604",
"0.73971087",
"0.7383144",
"0.73365813",
"0.73346364",
"0.7316619",
"0.7299459",
"0.7269377",
"0.7234117",
"0.72262484",
"0.72002906... | 0.69236326 | 24 |
Default charset for text resources | public String getCharSet() throws VlException
{
return ResourceLoader.CHARSET_UTF8;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDefaultCharset() {\n/* 359 */ return this.charset;\n/* */ }",
"public String getDefaultCharset() {\n return this.charset;\n }",
"public default String getCharset() {\n return Constants.CHARSET_UTF8;\n }",
"protected String getDefaultEncoding() {\n retur... | [
"0.67705446",
"0.65248334",
"0.63609064",
"0.6330704",
"0.6177054",
"0.61495537",
"0.6116214",
"0.60104775",
"0.59620875",
"0.58829504",
"0.58684415",
"0.58613807",
"0.5804203",
"0.57940096",
"0.5774997",
"0.5748647",
"0.5721444",
"0.56254476",
"0.5620311",
"0.5620311",
"0.56... | 0.6321263 | 4 |
Check whether this VNode implements the VComposite interface. | public boolean isComposite()
{
return (this instanceof VComposite);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isComposite();",
"public boolean hasCompositeStructure() {\n return (getStructureType() == EquipmentType.T_STRUCTURE_COMPOSITE);\n }",
"boolean isComposite();",
"boolean isComposite();",
"public boolean isComposite() {\n return false;\n }",
"@Test\n public void testIsC... | [
"0.7154789",
"0.7140607",
"0.7001693",
"0.7001693",
"0.6757431",
"0.62577397",
"0.593277",
"0.56669754",
"0.56014144",
"0.55462486",
"0.5501078",
"0.5461416",
"0.54009706",
"0.53653044",
"0.5357615",
"0.5342499",
"0.53397423",
"0.5334382",
"0.52092767",
"0.51392",
"0.5129295"... | 0.85375834 | 0 |
Get the names of the all attributes this resource has. To get the subset of resource specific | public String[] getAttributeNames()
{
return attributeNames;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.util.Collection getAttributes();",
"public String[] getRelevantAttributes();",
"public String [] getNames () { \n return this.listAttributes(); \n }",
"public Set<String> getAttributeNames();",
"public String[] getResourceAttributeNames()\n {\n return null;\n }",
"public Stri... | [
"0.7425787",
"0.72534966",
"0.7191187",
"0.70725036",
"0.6980441",
"0.69499284",
"0.6908219",
"0.6811157",
"0.68044174",
"0.67635375",
"0.6711362",
"0.6683177",
"0.6653215",
"0.6650801",
"0.6638619",
"0.6635488",
"0.66070414",
"0.6600012",
"0.6600012",
"0.6600012",
"0.659886"... | 0.64905095 | 26 |
Get the names of the resource specific attributes leaving out default attributes and optional super class attributes this resource has. This typically is the subset of getAttributeNames() minus super.getAttributeNames(); | public String[] getResourceAttributeNames()
{
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String[] getAttrNames() {\n\t\treturn null;\n\t}",
"public String[] getAttributeNames()\n {\n String superNames[] = super.getAttributeNames();\n\n if (localfs.isUnixFS())\n {\n StringList list = new StringList(superNames);\n list.add(LocalFSFactor... | [
"0.7136982",
"0.7135371",
"0.71166795",
"0.70494056",
"0.7042134",
"0.6972808",
"0.6972808",
"0.6964298",
"0.69562364",
"0.6920496",
"0.68590486",
"0.68202543",
"0.6793111",
"0.6666967",
"0.6648555",
"0.66162694",
"0.652467",
"0.6504015",
"0.6493286",
"0.64395326",
"0.6426722... | 0.77807945 | 0 |
Get all attributes defined by attributeNames | public VAttribute[] getAttributes() throws VlException
{
return getAttributes(getAttributeNames());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[] getAttributeNames()\n {\n return attributeNames;\n }",
"public AttributeList getAttributes(String[] attributeNames) {\n if (attributeNames == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"attributeNames[] cannot be null\"),\n ... | [
"0.71545225",
"0.71105087",
"0.7100384",
"0.70934445",
"0.7064011",
"0.70506394",
"0.70401543",
"0.70285535",
"0.6997939",
"0.69814485",
"0.6970932",
"0.6939855",
"0.6884968",
"0.6878703",
"0.6873581",
"0.6873581",
"0.6873581",
"0.6853402",
"0.6801672",
"0.67917657",
"0.67917... | 0.65933645 | 28 |
Get all attributes defined by names. Elements in the names array may be null! It means do not fetch the attribute. This is to speed up fetching of indexed attributes. Developpers note: Subclasses are encouraged to overide this method to speed up fetching multiple attributes as this method does a getAttribute call per a... | public VAttribute[] getAttributes(String names[]) throws VlException
{
VAttribute[] attrs = new VAttribute[names.length];
for (int i = 0; i < names.length; i++)
{
if (names[i]!=null)
attrs[i] = getAttribute(names[i]);
else
attrs[i]=nu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic String[] getAttributeNames() {\n\t\treturn null;\r\n\t}",
"public AttributeList getAttributes(String[] attributeNames) {\n if (attributeNames == null) {\n throw new RuntimeOperationsException(new IllegalArgumentException(\"attributeNames[] cannot be null\"),\n ... | [
"0.6573497",
"0.6484153",
"0.64812636",
"0.63864183",
"0.63864183",
"0.6376982",
"0.63709384",
"0.6336004",
"0.632488",
"0.63130677",
"0.629881",
"0.62638116",
"0.62318677",
"0.6210267",
"0.6190577",
"0.6147152",
"0.612777",
"0.6119973",
"0.6077387",
"0.6062129",
"0.6025655",... | 0.7506584 | 0 |
Same as getAttributes(), but return the attributes in an (Ordened) Attribute set. | public VAttributeSet getAttributeSet(String names[]) throws VlException
{
return new VAttributeSet(getAttributes(names));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.util.Collection getAttributes();",
"@Override\n public synchronized Set<AttributeType> getAttributes() {\n return attributes = nonNullSet(attributes, AttributeType.class);\n }",
"public List<Attribute<?>> getAttributes() {\r\n\t\treturn Collections.unmodifiableList(attributes);\r\n\t}"... | [
"0.8401442",
"0.82959276",
"0.8162817",
"0.8088257",
"0.80531216",
"0.797409",
"0.7883178",
"0.78679705",
"0.78596413",
"0.7857371",
"0.782118",
"0.78016096",
"0.77997833",
"0.7786898",
"0.7774964",
"0.7755129",
"0.77172977",
"0.76934314",
"0.7684395",
"0.7617384",
"0.757844"... | 0.0 | -1 |
Get Nonmutable attribute. This is an attribute which can be derived from the location or doesn't change during the lifetime of the Object because it is implicit bound to the object class. Even if the object doesn't exist the attribute can be determined, for example the Resource Type of a VFile which doesn't change duri... | public VAttribute getNonmutableAttribute(String name) throws VlException
{
// by prefix values with "", a NULL value will be convert to "NULL".
if (name.compareTo(ATTR_TYPE) == 0)
return new VAttribute(name, ""+getType());
else if (name.compareTo(ATTR_LOCATION) == 0)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public org.python.Object __getattribute__(java.lang.String name);",
"com.google.protobuf.ByteString getAttributeBytes();",
"Object getAttribute( String attrName ) throws FileSystemException;",
"public org.omg.uml.foundation.core.Attribute getAttribute();",
"Attribute getAttribute();",
"@GET\r\n\t@Path(\"... | [
"0.641991",
"0.6197504",
"0.6117247",
"0.6084106",
"0.605285",
"0.6020768",
"0.598629",
"0.5957912",
"0.59512526",
"0.58885473",
"0.588717",
"0.58774287",
"0.5858056",
"0.5855375",
"0.5836051",
"0.5770248",
"0.57692826",
"0.576892",
"0.573303",
"0.5709456",
"0.5652888",
"0.... | 0.6202211 | 1 |
This is the single method a Node has to implement so that attributes can be fetched. subclasses can override this method and do a super.getAttribute first to check whether the superclass provides an attribute name. | public VAttribute getAttribute(String name) throws VlException
{
if (name==null)
return null;
// Check Non-mutable attributes first!
VAttribute attr=this.getNonmutableAttribute(name);
if (attr!=null)
return attr;
// ===
// VAttrib... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getAttribute();",
"Attribute getAttribute();",
"@Override\r\n\t\tpublic Attr getAttributeNode(String name)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"String getAttribute();",
"public String getAttributeValue(Node node, String attributeName) throws Exception;",
"Object getAttribute(St... | [
"0.77273226",
"0.75852716",
"0.75400704",
"0.7434334",
"0.715841",
"0.70986366",
"0.70986366",
"0.70986366",
"0.70937824",
"0.70770305",
"0.70482945",
"0.70009387",
"0.70009387",
"0.6994096",
"0.69850165",
"0.69453",
"0.69206464",
"0.6916808",
"0.6911196",
"0.6858553",
"0.682... | 0.6215889 | 65 |
Return Query part of VRL | public String getQuery()
{
VRL loc=getLocation();
if (loc==null)
return null;
return loc.getQuery();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"IQuery getQuery();",
"public abstract String createQuery();",
"public String getQuery(){\n return this.query;\n }",
"public java.lang.String getQuery() {\r\n return query;\r\n }",
"public String getQuery() {\r\n return query;\r\n }",
"public String query() {\n return ... | [
"0.68536574",
"0.6802747",
"0.67770696",
"0.6732906",
"0.673046",
"0.67198384",
"0.670115",
"0.6681855",
"0.6667373",
"0.66608655",
"0.66505337",
"0.66467625",
"0.66467625",
"0.66444564",
"0.6643476",
"0.663889",
"0.66357833",
"0.66320235",
"0.66320235",
"0.66320235",
"0.6549... | 0.6464853 | 24 |
Return this node's location as String representation. Note that special characters are not encoded. | public String toString()
{
return "("+getType()+")"+getLocation();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic String toString() {\r\n\t\treturn getLocation();\r\n\t}",
"@AutoEscape\n\tpublic String getLocation();",
"public String getLocationString() {\n return getCenter().toString();\n }",
"public java.lang.String getLocation() {\n return location;\n }",
"public Stri... | [
"0.757387",
"0.71715516",
"0.7126665",
"0.7038067",
"0.70257497",
"0.70223576",
"0.70176804",
"0.70078105",
"0.69791967",
"0.6898023",
"0.6891389",
"0.6891389",
"0.6891389",
"0.6891389",
"0.6891389",
"0.6886727",
"0.6875237",
"0.6874056",
"0.6842473",
"0.6827456",
"0.68253434... | 0.6447767 | 69 |
Only subclasses may change the location. Note that the location should be immutable: It may not change during the lifetime of the object! | protected void setVRL(VRL loc)
{
this._nodeVRL=loc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateLocation();",
"private void setLocation(Location newLocation) {\n\t\tif (location != null) {\n\t\t\tfield.clear(location);\n\t\t}\n\t\tlocation = newLocation;\n\t\tfield.place(this, newLocation);\n\t}",
"public void setLocation(Point newLocation) {\r\n this.p = newLocation;\r\n }",
... | [
"0.74046856",
"0.72471434",
"0.7211251",
"0.7188344",
"0.7159499",
"0.7145109",
"0.713432",
"0.7122735",
"0.7122735",
"0.7122735",
"0.7091221",
"0.7076967",
"0.707213",
"0.7043705",
"0.70342845",
"0.70223093",
"0.69962734",
"0.69738173",
"0.69735837",
"0.6963205",
"0.6952102"... | 0.0 | -1 |
Compares whether the nodes represent the same location | public int compareTo(VNode other)
{
if (other==null)
return 1; // this > null
return _nodeVRL.compareTo(other.getLocation());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isEqualNode(int xcoords, int ycoords){ \n boolean ret = false;\n Node N = head;\n for (int i = 1; i < numItems; i++){\n if (xcoords == N.x && ycoords == N.y){\n ret = true;\n }else { \n ... | [
"0.7265831",
"0.67208356",
"0.66885847",
"0.6635483",
"0.6551852",
"0.6543296",
"0.6512582",
"0.64859307",
"0.6474268",
"0.6393142",
"0.63570863",
"0.63063014",
"0.62826943",
"0.62735707",
"0.62588096",
"0.6242877",
"0.6154715",
"0.6141697",
"0.61406064",
"0.6127825",
"0.6125... | 0.0 | -1 |
Returns optional icon URL given the preferred size. Default implementation is to call getIconURL(). This method allows resources to return different icons for different sizes. The actual displayed size in the vbrowser may differ from the given size and the preferredSize should be regarded as an indication. It is recomm... | public String getIconURL(int preferredSize)
{
return getIconURL();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"URL getIconURL(String iconId, IconSize medium);",
"@Override\r\n public ImageIcon getIcon(int size) {\r\n return IconTool.getIcon(ICON_NAME, size);\r\n }",
"public abstract ImageIcon getIcon(int size);",
"java.lang.String getGameIconUrl();",
"public static Image getSearchInfoAppropriateImage() {\n... | [
"0.64802",
"0.6044908",
"0.5763605",
"0.55829203",
"0.55079484",
"0.5453977",
"0.5392117",
"0.5380504",
"0.5323528",
"0.53002095",
"0.5290859",
"0.52833223",
"0.5273993",
"0.5232981",
"0.52067626",
"0.5173565",
"0.5154419",
"0.5149548",
"0.5149548",
"0.5139329",
"0.51375866",... | 0.8200845 | 0 |
Returns optional icon url | public String getIconURL()
{
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getGameIconUrl();",
"public URL getIcon()\r\n {\r\n\treturn icon;\r\n }",
"java.lang.String getIcon();",
"java.lang.String getIcon();",
"String getIcon();",
"String getIcon();",
"public @Nullable IIconData getIcon(@Nullable URL url);",
"@Override\n\tpublic ToolIconURL getIconUR... | [
"0.75914764",
"0.7552396",
"0.748335",
"0.748335",
"0.74220306",
"0.74220306",
"0.7413906",
"0.7363512",
"0.72214276",
"0.72014725",
"0.7181049",
"0.7145804",
"0.71220356",
"0.7077649",
"0.7067374",
"0.70100796",
"0.70044094",
"0.6965437",
"0.6949005",
"0.6946937",
"0.6934802... | 0.75617015 | 1 |
Returns simple text file or complete HTML page. Method should point to installed documentation. Default is to return help about this type. | public VRL getHelp()
{
return Global.getHelpUrl(this.getType());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getHelp();",
"String getDocumentation();",
"String getDocumentation();",
"public abstract String getHelpInfo();",
"String getHelpText();",
"String getHelpString();",
"public String getGenericHelp() {\n return genericHelp;\n }",
"org.hl7.fhir.String getDocumentation();",
"pro... | [
"0.6866155",
"0.67803943",
"0.67803943",
"0.6681773",
"0.66087866",
"0.65017414",
"0.645891",
"0.63195765",
"0.6243688",
"0.6231195",
"0.6180356",
"0.61689115",
"0.61373353",
"0.60669917",
"0.6027284",
"0.60061574",
"0.5979511",
"0.5970032",
"0.5955181",
"0.5947073",
"0.59270... | 0.68545437 | 1 |
public abstract String getType(); // type (File) or class Get Parent Node (if any). Default implementation is to open the location provided by getParentLocation(). Override that method to provide the parent location of this node. Overide this method to provide a more eficient way to return a VNode that is the (logical)... | public VNode getParent() throws VlException
{
VRL pvrl=getParentLocation();
if (pvrl==null)
return null;
return vrsContext.openLocation(getParentLocation());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getParentType() {\n return this.parentType;\n }",
"public int getParentType() {\r\n return parent_type;\r\n }",
"Node<T> parent();",
"public abstract Optional<TypeName> parent();",
"public VisualLexiconNode getParent() {\n \t\treturn parent;\n \t}",
"public FileNode getParent(... | [
"0.7248757",
"0.7087371",
"0.7086569",
"0.6983901",
"0.68419075",
"0.6804705",
"0.67523444",
"0.6660334",
"0.6579327",
"0.6557334",
"0.65153086",
"0.651421",
"0.651189",
"0.6493567",
"0.64843285",
"0.6481301",
"0.6481301",
"0.6481301",
"0.6481301",
"0.6461483",
"0.64453834",
... | 0.69619286 | 4 |
Returns logical parent location of this node. By default this method returns getVRL().getParent(); If an implementation has another 'logical' parent then just the dirname of the current location, override this method. | public VRL getParentLocation()
{
if (this.getVRL()==null)
return null;
return this._nodeVRL.getParent();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public VNode getParent() throws VlException\n {\n VRL pvrl=getParentLocation(); \n \n if (pvrl==null)\n \treturn null; \n \n return vrsContext.openLocation(getParentLocation());\n }",
"public String getParent() {\n Path path = getPathNIO();\n if (path == null... | [
"0.72126514",
"0.69258845",
"0.6767834",
"0.67103195",
"0.6501361",
"0.6426052",
"0.63990253",
"0.63948876",
"0.6354586",
"0.6338415",
"0.6316191",
"0.6310654",
"0.62955105",
"0.6284923",
"0.6199535",
"0.6183821",
"0.6173363",
"0.6162646",
"0.61578155",
"0.6121382",
"0.611846... | 0.78950894 | 0 |
Get Parents if the Node is part of a Graph. Returns one parent if Node is part of a Tree or null if Node has no parents. | public VNode[] getParents() throws VlException // for Graph
{
VNode parent=getParent();
if (parent==null)
return null;
VNode nodes[]=new VNode[1];
nodes[0]=parent;
return nodes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public @Nullable Node<@Nullable T> getParent() {\n return this.parent;\n }",
"public Node getParent();",
"public BSTNode getParentNode() {\n\t\treturn parentNode;\n\t}",
"public RBNode<T> parentOf(RBNode<T> node) {\n return node != null? node.parent : null;\r\n }",
"public Node ... | [
"0.6407246",
"0.637074",
"0.62574285",
"0.620123",
"0.614103",
"0.6138395",
"0.61382294",
"0.60485417",
"0.6046288",
"0.59456253",
"0.5930786",
"0.5930786",
"0.59253675",
"0.59253675",
"0.59209055",
"0.59157705",
"0.5906015",
"0.5905996",
"0.5850748",
"0.5837241",
"0.5814859"... | 0.6275753 | 2 |
Like cloneable, to use this method, implement the VDuplicatable interface and override this method to return a copy. By default the object should create a deep copy of it's contents and it's children. This default behaviour is different then clone(). | public VNode duplicate() throws VlException
{
throw new nl.uva.vlet.exception.NotImplementedException("Duplicate method not implemented");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object clone() {\n // No problems cloning here since private variables are immutable\n return super.clone();\n }",
"Component deepClone();",
"public Object clone() {\n return this.copy();\n }",
"@Override\n public Object clone() {\n return super.clone();\n }",
"pub... | [
"0.74135876",
"0.7396292",
"0.73734075",
"0.735377",
"0.73165715",
"0.73066163",
"0.72423077",
"0.71929204",
"0.71929204",
"0.71467865",
"0.71467865",
"0.71467865",
"0.71467865",
"0.7093066",
"0.7083531",
"0.7079806",
"0.70554537",
"0.7032265",
"0.70062274",
"0.69996715",
"0.... | 0.0 | -1 |
Resolve path against this VRL and return resolved VRL | public VRL resolvePathVRL(String path) throws VRLSyntaxException
{
return getLocation().resolvePath(path);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ResourceLocation resolve(String path);",
"public FilePath resolve(FilePath relPath) {\n return resolve(relPath.toString());\n }",
"public String resolvePath();",
"public FilePath resolve(String relPath) {\n if (path.isEmpty()) {\n return FilePath.of(relPath);\n }\n r... | [
"0.6593263",
"0.6529208",
"0.644498",
"0.6299379",
"0.61400366",
"0.59913445",
"0.5722034",
"0.56224453",
"0.5614843",
"0.55947924",
"0.55029845",
"0.5445785",
"0.54205847",
"0.5407528",
"0.53141904",
"0.5302547",
"0.5276429",
"0.52365845",
"0.52288544",
"0.5180353",
"0.51620... | 0.7248448 | 0 |
Status String for nodes which implemented Status. Returns NULL if not supported. This method is exposed in the toplevel VNode interface even if not supported. | public String getStatus() throws VlException
{
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DISPID(15)\n\t// = 0xf. The runtime will prefer the VTID if present\n\t@VTID(25)\n\tjava.lang.String status();",
"java.lang.String getStatus();",
"java.lang.String getStatus();",
"java.lang.String getStatus();",
"java.lang.String getStatus();",
"public String getStatusString() {\n return status.t... | [
"0.76103956",
"0.75308794",
"0.75308794",
"0.75308794",
"0.75308794",
"0.7180395",
"0.71415406",
"0.71415406",
"0.71415406",
"0.71415406",
"0.71415406",
"0.7115618",
"0.7115618",
"0.7092317",
"0.7035272",
"0.7035272",
"0.7017154",
"0.69966775",
"0.69508386",
"0.69508386",
"0.... | 0.726347 | 5 |
Synchronized cached attributes and/or refresh (optional) cached attributes from remote resource. This is an import method in the case that an resource caches resource attributes, like file attributes. | public boolean sync() throws VlException
{
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface IRemoteCacheServerAttributes\n extends ICommonRemoteCacheAttributes\n{\n /**\n * Gets the localPort attribute of the IRemoteCacheAttributes object.\n * <p>\n * @return The localPort value\n */\n int getServicePort();\n\n /**\n * Sets the localPort attribute of the I... | [
"0.5797115",
"0.5414345",
"0.5188115",
"0.51695263",
"0.5144584",
"0.5064533",
"0.49906752",
"0.49771225",
"0.4969087",
"0.4968677",
"0.4917068",
"0.491131",
"0.4862828",
"0.48608604",
"0.48606247",
"0.48540056",
"0.48531324",
"0.48098418",
"0.48029175",
"0.47871897",
"0.4774... | 0.0 | -1 |
Fire attribute(s) changed event with this resource as even source. | protected void fireAttributesChanged(VAttribute attrs[])
{
ResourceEvent event=ResourceEvent.createAttributesChangedEvent(getVRL(),attrs);
this.vrsContext.getResourceEventNotifier().fire(event);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void fireAttributeChanged(VAttribute attr)\n\t{\n\t\tResourceEvent event=ResourceEvent.createAttributesChangedEvent(getVRL(),\n\t\t\t\tnew VAttribute[]{attr}); \n\t\tthis.vrsContext.getResourceEventNotifier().fire(event); \n\t}",
"public void attributeChanged(Component component, String attr, String ne... | [
"0.69415796",
"0.6479321",
"0.6236709",
"0.61205596",
"0.6098187",
"0.59297687",
"0.5929754",
"0.5917053",
"0.5861294",
"0.5607284",
"0.5587816",
"0.55616707",
"0.549041",
"0.5486147",
"0.54768705",
"0.54727435",
"0.5467215",
"0.54284555",
"0.5394342",
"0.538975",
"0.5343877"... | 0.65223306 | 1 |
Fire attribute changed event with this resource as even source. | protected void fireAttributeChanged(VAttribute attr)
{
ResourceEvent event=ResourceEvent.createAttributesChangedEvent(getVRL(),
new VAttribute[]{attr});
this.vrsContext.getResourceEventNotifier().fire(event);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void attributeChanged(Component component, String attr, String newValue, String oldValue);",
"@Override\n\tpublic void resourceChanged(IResourceChangeEvent arg0) {\n\t\t\n\t}",
"protected void fireAttributesChanged(VAttribute attrs[])\n\t{\n\t\tResourceEvent event=ResourceEvent.createAttributesChangedEv... | [
"0.63751835",
"0.61617273",
"0.6090434",
"0.6056274",
"0.6005552",
"0.5897009",
"0.5656891",
"0.5641263",
"0.56186926",
"0.56091976",
"0.5581274",
"0.55722374",
"0.54873824",
"0.54696584",
"0.5423636",
"0.5413756",
"0.54047143",
"0.53994423",
"0.5375403",
"0.53720486",
"0.533... | 0.69853956 | 0 |
======================================================================== Abstract Interface ======================================================================== Returns resource type, if it has one | public abstract String getType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IResourceType getType();",
"Class<? extends Resource> getResourceType();",
"String getResourceType();",
"public ResourceType getResouceType() {\n return type;\n }",
"public String getResourceType( )\r\n {\r\n return _strResourceType;\r\n }",
"public ResourceType type() {\n ... | [
"0.8195024",
"0.7905391",
"0.78319174",
"0.76634514",
"0.75111586",
"0.74252707",
"0.736782",
"0.73669684",
"0.73517907",
"0.73500156",
"0.7218989",
"0.7188244",
"0.71867704",
"0.70437163",
"0.7032274",
"0.70251256",
"0.7022144",
"0.6982397",
"0.6939535",
"0.6793177",
"0.6741... | 0.6538954 | 60 |
Whether this node (still) exists | public abstract boolean exists() throws VlException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasNode();",
"boolean hasNode();",
"protected boolean Exists()\n\t{\n\t\tif (identity<1) return false;\n\t\tNodeReference nodeReference = getNodeReference();\n\t\treturn (nodeReference.exists() || nodeReference.hasSubnodes());\n\t}",
"@java.lang.Override\n public boolean hasNode() {\n ... | [
"0.8341235",
"0.8341235",
"0.81963867",
"0.8075172",
"0.8075172",
"0.7820318",
"0.7820318",
"0.76047456",
"0.726298",
"0.716617",
"0.7116952",
"0.7108599",
"0.7049105",
"0.7036902",
"0.69726944",
"0.69538087",
"0.694528",
"0.6943193",
"0.69244456",
"0.6914207",
"0.6882389",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onNothingSelected(AdapterView<?> arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
Satisfied if predecessor > successor in graph. | public GraphEdger(IGraph graph, INaturalNumber predecessor, INaturalNumber successor) throws Exception
{
if (graph == null)
throw new GraphEdgerException("Null IGeneralizedGraph passed to constructor.");
ArrayList<IProblem> p = new ArrayList<IProblem>();
for (int i = 0; i < graph.size(); i++)
for... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic boolean hasPredecessor() {\n\t\treturn false;\r\n\t}",
"private boolean check(EdgeWeightedGraph G, int s) {\r\n\r\n // check that edge weights are nonnegative\r\n for (Edge e : G.edges()) {\r\n if (e.weight() < 0) {\r\n System.err.println(\"negative e... | [
"0.5828212",
"0.5258729",
"0.512179",
"0.5110304",
"0.508904",
"0.507316",
"0.5038134",
"0.50110644",
"0.5005468",
"0.5004828",
"0.50026757",
"0.49895215",
"0.49733272",
"0.49703455",
"0.49492577",
"0.4940291",
"0.49366644",
"0.49278176",
"0.49188656",
"0.4912709",
"0.4910402... | 0.5337475 | 1 |
Create a folder with name | public Folder(String name){
super();
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Folder createFolder();",
"public static void CreateFolder(String folderName, String path){\n File file = new File(path+ \"/\" + folderName);\n file.mkdirs ();\n }",
"public void createFolder (String folderName, long parentFolderId, Long userId) throws BookMarkException;",
"private void makeF... | [
"0.8181081",
"0.76542234",
"0.7501485",
"0.74997765",
"0.74929214",
"0.7384701",
"0.7347237",
"0.7303388",
"0.7242711",
"0.71760523",
"0.7175474",
"0.7156356",
"0.71538514",
"0.7038746",
"0.7021713",
"0.69956285",
"0.6948374",
"0.6886076",
"0.68710387",
"0.6852426",
"0.683804... | 0.60195374 | 81 |
Search folder for a list of taginstances of tagtypes | @Override
public List<TagInstance> searchTags(List<TagType> tags) {
List<MarkedUpText> texts = getDescendantTexts();
List<TagInstance> tagInstances = new LinkedList<TagInstance>();
for(MarkedUpText t: texts) {
tagInstances.addAll(t.searchTags(tags));
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<Id> search(String searchTerm){\n\t\treturn tagMap.findTag(searchTerm);\n\t}",
"public List<TagPregunta> findMatchingTags(String parcial);",
"private void getPhotoList(String query){\n for(Photo p : photolist){\n for(String s : p.getLocationTaglist()){\n if(s.to... | [
"0.5741342",
"0.5731157",
"0.5579397",
"0.55338675",
"0.5455529",
"0.53548723",
"0.5254326",
"0.5237234",
"0.52072936",
"0.5167352",
"0.5159624",
"0.5149762",
"0.5140134",
"0.51341325",
"0.5121713",
"0.5116441",
"0.5055672",
"0.5043237",
"0.5042153",
"0.50040317",
"0.5002568"... | 0.66547143 | 0 |
Returns all comments from any user in users in any text in the folder or a subfolder. | @Override
public List<Comment> searchComments(List<User> users) {
List<MarkedUpText> texts = getDescendantTexts();
List<Comment> comments = new LinkedList<Comment>();
for(MarkedUpText t: texts) {
comments.addAll(t.searchComments(users));
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public List<Comment> getCommentsByUser(Long userId ) {\n return userDao.getCommentByUser(userId);\n }",
"@Override\r\n\tpublic List<Comment> findAllComment() {\n\t\treturn commentDao.findAllComment();\r\n\t}",
"@Override\n\tpublic List<Comment> findCommentbyuserId(String userId) {\n\t\... | [
"0.6060205",
"0.58339435",
"0.572604",
"0.5525047",
"0.5437241",
"0.5409192",
"0.53694516",
"0.5320014",
"0.5305435",
"0.52765256",
"0.5272428",
"0.52482456",
"0.52444404",
"0.5236352",
"0.5232204",
"0.52313685",
"0.52234405",
"0.5214163",
"0.5204533",
"0.51728004",
"0.517265... | 0.70748794 | 0 |
Returns the name of the folder. | @Override
public String getName() {
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getFolderName() {\n return folderName;\n }",
"public String getFolderName() {\n return owner.getName();\n }",
"public String getFolder() {\r\n return folder;\r\n }",
"public String getVillageFolderName() {\n\t\treturn folderName;\n\t}",
"String folderPath... | [
"0.7873621",
"0.7275588",
"0.72029155",
"0.69911903",
"0.6962311",
"0.69589084",
"0.6951321",
"0.6921214",
"0.682909",
"0.67493856",
"0.6736953",
"0.6647243",
"0.66279864",
"0.6616062",
"0.6610718",
"0.66024595",
"0.66011465",
"0.65711844",
"0.6553965",
"0.655132",
"0.6545212... | 0.0 | -1 |
(Renaming folders has not been implemented) | @Override
public void rename(String name) {
// TODO Auto-generated method stub
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic boolean renameFolder(String oldDirName, String newDirName) throws FileSystemUtilException {\r\n\t\tthrow new FileSystemUtilException(\"000000\",null,Level.ERROR,null);\r\n\r\n\t}",
"private void prepareFolder(String name, String newFolderName) {\n }",
"@NonNull\n Completable renameF... | [
"0.7551072",
"0.7302292",
"0.6792077",
"0.65723515",
"0.6413081",
"0.6357532",
"0.6347302",
"0.63343877",
"0.6298931",
"0.626178",
"0.624961",
"0.62426364",
"0.61666906",
"0.60878986",
"0.60710496",
"0.6061813",
"0.60512197",
"0.60459745",
"0.6037168",
"0.60010517",
"0.591818... | 0.5361534 | 78 |
Deleting folders has not been implemented. | @Override
public void delete() {
// TODO Auto-generated method stub
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@AfterClass(groups ={\"All\"})\n\tpublic void deleteFolder() {\n\t\ttry {\n\t\t\tUserAccount account = dciFunctions.getUserAccount(suiteData);\n\t\t\tUniversalApi universalApi = dciFunctions.getUniversalApi(suiteData, account);\n\t\t\tif(suiteData.getSaasApp().equalsIgnoreCase(\"Salesforce\")){\n\t\t\t\tfor(String... | [
"0.7301479",
"0.7234672",
"0.70267206",
"0.6894105",
"0.6874993",
"0.676002",
"0.6702022",
"0.6567778",
"0.6384655",
"0.63764673",
"0.6226768",
"0.61867446",
"0.6164529",
"0.6110802",
"0.61105007",
"0.60859567",
"0.6063867",
"0.6063861",
"0.6035123",
"0.602918",
"0.6025917",
... | 0.0 | -1 |
Returns the string representation of a folder. | @Override
public String toString(){
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getFolderId() {\n java.lang.Object ref = folderId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n folderId_ = s;\n ... | [
"0.736436",
"0.72045416",
"0.7100469",
"0.7065784",
"0.69447905",
"0.691368",
"0.690473",
"0.6876221",
"0.6843314",
"0.6768122",
"0.6735763",
"0.6727452",
"0.65917146",
"0.6471616",
"0.6466957",
"0.64078367",
"0.6393836",
"0.6349504",
"0.63331676",
"0.62916714",
"0.62058103",... | 0.0 | -1 |
Return a list of MarkedUpTexts that are directly inside the folder Does NOT return texts in subfolders. | public List<MarkedUpText> getChildrenTexts() {
Enumeration<DefaultMutableTreeNode> children = this.children();
List<MarkedUpText> texts = new LinkedList<MarkedUpText>();
while (children.hasMoreElements()) {
DefaultMutableTreeNode curChild = children.nextE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<MarkedUpText> getDescendantTexts() {\n List<MarkedUpText> texts = this.getChildrenTexts();\n \n Enumeration<DefaultMutableTreeNode> children = this.children();\n while (children.hasMoreElements()) {\n DefaultMutableTreeNode curChild = children.... | [
"0.72231525",
"0.61734253",
"0.6038417",
"0.6002466",
"0.5654865",
"0.56329477",
"0.5600555",
"0.55488247",
"0.5519629",
"0.54979247",
"0.5471581",
"0.54075843",
"0.5400542",
"0.53958976",
"0.5380492",
"0.53333265",
"0.53221166",
"0.52329665",
"0.5227865",
"0.52203596",
"0.52... | 0.64111483 | 1 |
Recursively returns all texts in the folder, its subfolders, their subfolders, etc. | public List<MarkedUpText> getDescendantTexts() {
List<MarkedUpText> texts = this.getChildrenTexts();
Enumeration<DefaultMutableTreeNode> children = this.children();
while (children.hasMoreElements()) {
DefaultMutableTreeNode curChild = children.nextElemen... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void recursiveList(String path) {\n Directory tDir = Directory.getDir(path);\n if (tDir == null) {\n str += \"Error: the input path \" + path + \" does not exist!\\n\";\n } else if (tDir.getSubContent().isEmpty()) {\n str += tDir.getName() + \"\\n\";\n } else {\n str += tDir.getNa... | [
"0.64621687",
"0.6276442",
"0.625571",
"0.6250133",
"0.6181791",
"0.60412633",
"0.5973587",
"0.59670365",
"0.5836498",
"0.57494134",
"0.56564146",
"0.5644163",
"0.561407",
"0.5588581",
"0.5584199",
"0.5576932",
"0.5566631",
"0.5545134",
"0.55451125",
"0.55261457",
"0.54867977... | 0.7195573 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.