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 |
|---|---|---|---|---|---|---|
Write data into the EEPROM user area | public void writeEEPROMUserArea(byte[] data) throws FTD2XXException {
Memory source = new Memory(data.length);
source.write(0, data, 0, data.length);
ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeEEPROMUserArea(String data) throws FTD2XXException {\n Memory source = new Memory(data.length());\n source.setString(0, data);\n ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length()));\n }",
"public void writeEEPROM(EEPROMData programData) throws FTD2XXExce... | [
"0.78525543",
"0.672499",
"0.6327859",
"0.60783595",
"0.58349353",
"0.579472",
"0.56224227",
"0.5617363",
"0.55781245",
"0.55541164",
"0.55467296",
"0.5506329",
"0.5467428",
"0.5459998",
"0.54518855",
"0.54213244",
"0.54054666",
"0.5402348",
"0.5368188",
"0.53468937",
"0.5341... | 0.81055474 | 0 |
Write string into the EEPROM user area | public void writeEEPROMUserArea(String data) throws FTD2XXException {
Memory source = new Memory(data.length());
source.setString(0, data);
ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void writeString(String value);",
"public void writeEEPROMUserArea(byte[] data) throws FTD2XXException {\n Memory source = new Memory(data.length);\n source.write(0, data, 0, data.length);\n ensureFTStatus(ftd2xx.FT_EE_UAWrite(ftHandle, source, data.length));\n }",
"public void writeStr... | [
"0.655414",
"0.6329707",
"0.616741",
"0.6068491",
"0.6046205",
"0.6040662",
"0.5989426",
"0.5854057",
"0.5840559",
"0.5833291",
"0.582969",
"0.57992744",
"0.57419467",
"0.56440496",
"0.5570622",
"0.55533755",
"0.5532244",
"0.5511355",
"0.55093366",
"0.55059046",
"0.5495296",
... | 0.72008765 | 0 |
Write bytes to device. | public int write(byte[] bytes, int offset, int length) throws FTD2XXException {
Memory memory = new Memory(length);
memory.write(0, bytes, offset, length);
IntByReference wrote = new IntByReference();
ensureFTStatus(ftd2xx.FT_Write(ftHandle, memory, length, wrote));
return wrote.getValue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void write(byte[] bytes) {\n try {\n mmOutStream.write(bytes);\n\n // Share the sent message with the UI activity.\n /*Message writtenMsg = handler.obtainMessage(\n MessageConstants.MESSAGE_WRITE, -1, -1, mmBuffer);\n ... | [
"0.73606163",
"0.7146971",
"0.70517725",
"0.6966562",
"0.6966562",
"0.6966562",
"0.6933864",
"0.69000864",
"0.6883062",
"0.68706495",
"0.686819",
"0.6854445",
"0.68499374",
"0.6836097",
"0.67911667",
"0.677479",
"0.67418504",
"0.6701696",
"0.66626906",
"0.6655668",
"0.6641898... | 0.5874504 | 85 |
Write bytes to device. | public int write(byte[] bytes) throws FTD2XXException {
return write(bytes, 0, bytes.length);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void write(byte[] bytes) {\n try {\n mmOutStream.write(bytes);\n\n // Share the sent message with the UI activity.\n /*Message writtenMsg = handler.obtainMessage(\n MessageConstants.MESSAGE_WRITE, -1, -1, mmBuffer);\n ... | [
"0.73606163",
"0.7146971",
"0.70517725",
"0.6966562",
"0.6966562",
"0.6966562",
"0.6933864",
"0.69000864",
"0.6883062",
"0.68706495",
"0.686819",
"0.6854445",
"0.68499374",
"0.6836097",
"0.67911667",
"0.677479",
"0.67418504",
"0.6701696",
"0.66626906",
"0.6655668",
"0.6641898... | 0.65188974 | 24 |
Write byte to device. | public boolean write(int b) throws FTD2XXException {
byte[] c = new byte[1];
c[0] = (byte) b;
return (write(c) == 1) ? true : false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void writeByte(byte value);",
"@Override\n public void write(final int byteVal) throws IOException {\n write(new byte[] { (byte) (byteVal & 0xFF) });\n }",
"void writeByte(int v) throws IOException;",
"public abstract void writeByte(byte b) throws IOException;",
"private void writeByte(int val) {\n ... | [
"0.78392035",
"0.7375439",
"0.72490066",
"0.72250485",
"0.70232403",
"0.6921951",
"0.6833386",
"0.682126",
"0.6756965",
"0.6687971",
"0.6681538",
"0.66577315",
"0.66106004",
"0.65923584",
"0.6583172",
"0.65546095",
"0.6545553",
"0.6544684",
"0.65298724",
"0.652668",
"0.649146... | 0.0 | -1 |
Read bytes from device. | public int read(byte[] bytes, int offset, int lenght) throws FTD2XXException {
Memory memory = new Memory(lenght);
IntByReference read = new IntByReference();
ensureFTStatus(ftd2xx.FT_Read(ftHandle, memory, lenght, read));
memory.read(0, bytes, offset, lenght);
return read.getValue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public byte[] read();",
"public byte[] readBytes() {\n try {\n int len = available();\n if (len > 0) {\n byte bytes[] = new byte[len];\n m_DataInputStream.read(bytes);\n\n return bytes;\n }\n else {\n ... | [
"0.7169526",
"0.71375245",
"0.6979293",
"0.6801586",
"0.678593",
"0.67720264",
"0.66610336",
"0.65501696",
"0.6539517",
"0.64246726",
"0.6423467",
"0.6419992",
"0.63656574",
"0.6351531",
"0.6350876",
"0.6345735",
"0.633467",
"0.6304066",
"0.6271189",
"0.6270446",
"0.6252252",... | 0.0 | -1 |
Read bytes from device. | public int read(byte[] bytes) throws FTD2XXException {
return read(bytes, 0, bytes.length);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public byte[] read();",
"public byte[] readBytes() {\n try {\n int len = available();\n if (len > 0) {\n byte bytes[] = new byte[len];\n m_DataInputStream.read(bytes);\n\n return bytes;\n }\n else {\n ... | [
"0.7169608",
"0.71375805",
"0.69793785",
"0.6801597",
"0.67860234",
"0.6772104",
"0.6661117",
"0.6550225",
"0.6539615",
"0.64247817",
"0.6423547",
"0.64200693",
"0.63657755",
"0.6351583",
"0.6350983",
"0.6345774",
"0.6334697",
"0.630416",
"0.6271326",
"0.62705445",
"0.62523",... | 0.57940155 | 57 |
Read a byte from device. | public int read() throws FTD2XXException {
byte[] c = new byte[1];
int ret = read(c);
return (ret == 1) ? (c[0] & 0xFF) : -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic byte readByte() throws IOException {\n\t\treturn (byte) (_buff.get() & 0xFF);\n\t}",
"public byte readByte() throws IOException {\n return in.readByte();\n }",
"byte readByte();",
"public byte readByte() throws SerialPortException {\n\t\tif (this.available()) {\n\t\t\tbyte [] byteRead... | [
"0.774722",
"0.7703511",
"0.7664928",
"0.7610027",
"0.7593587",
"0.75607425",
"0.7548158",
"0.7483211",
"0.7402012",
"0.7316877",
"0.7154806",
"0.7039784",
"0.6985628",
"0.6966188",
"0.683422",
"0.67879856",
"0.67461586",
"0.67049974",
"0.6688117",
"0.6661571",
"0.6642518",
... | 0.6163515 | 38 |
Read given bytes from device. | public byte[] read(int number) throws FTD2XXException {
byte[] ret = new byte[number];
int actually = read(ret);
if (actually != number) {
byte[] shrink = new byte[actually];
System.arraycopy(ret, 0, shrink, 0, actually);
return shrink;
}
else {
return ret;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int read(byte[] p_bytes, int p_offset, int p_length);",
"public byte[] read();",
"public void readBytes(byte[] buffer, int offset, int length) throws IOException;",
"@Override\n public void read(byte[] bytes) {\n }",
"byte[] readBytes();",
"public void readBytes(byte[] buffer) throws IOExcep... | [
"0.7322327",
"0.7125725",
"0.7042645",
"0.6986399",
"0.6920751",
"0.68705267",
"0.6815358",
"0.6806707",
"0.67573345",
"0.6602922",
"0.6419424",
"0.63870096",
"0.63657236",
"0.633444",
"0.6318094",
"0.62770814",
"0.62508065",
"0.6241035",
"0.623218",
"0.62141937",
"0.6202442"... | 0.0 | -1 |
Get an InputStream to device. | public InputStream getInputStream() {
if (fTDeviceInputStream == null) {
fTDeviceInputStream = new FTDeviceInputStream(this);
}
return fTDeviceInputStream;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Stream<In> getInputStream();",
"public InputStream getInputStream();",
"public InputStream getInputStream();",
"public InputStream getStream();",
"public InputStream getInputStream() throws IOException;",
"public InputStream getInputStream() throws IOException;",
"InputStream getInputStream() throws IO... | [
"0.71604186",
"0.7117004",
"0.7117004",
"0.7080453",
"0.70517683",
"0.70517683",
"0.7023147",
"0.7023147",
"0.7023147",
"0.6868548",
"0.6868548",
"0.68290305",
"0.6791084",
"0.6552878",
"0.65524274",
"0.6487275",
"0.64778274",
"0.64510846",
"0.64510846",
"0.644954",
"0.640943... | 0.7105769 | 3 |
Get an OutputStream to device. | public OutputStream getOutputStream() {
if (fTDeviceOutputStream == null) {
fTDeviceOutputStream = new FTDeviceOutputStream(this);
}
return fTDeviceOutputStream;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OutputStream getOutputStream();",
"public OutputStream getOutputStream() throws IOException;",
"public final OutputStream getOutputStream() {\n return outputStream;\n }",
"OutputStream getOutputStream();",
"public OutputStream getOutputStream() {\n return new BufferedOutputStream(new OutputSt... | [
"0.7655439",
"0.7360581",
"0.7178585",
"0.70365626",
"0.69924086",
"0.6981908",
"0.6954461",
"0.6934102",
"0.6881661",
"0.686609",
"0.6849162",
"0.68179476",
"0.681225",
"0.6805431",
"0.67953646",
"0.67912465",
"0.670212",
"0.66688514",
"0.66403246",
"0.6605369",
"0.6534974",... | 0.72561824 | 2 |
Returns the value of the 'Device Identifier' containment reference. The device identifier (DI) is a mandatory, fixed portion of a UDI that identifies the labeler and the specific version or model of a device. | org.hl7.fhir.String getDeviceIdentifier(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BigDecimal getDeviceIdentifier() {\n return deviceIdentifier;\n }",
"public String getTextDeviceIdentifier() {\r\n\t\tString DeviceIdentifier = safeGetText(addVehiclesHeader.replace(\"Add Vehicle\", \"Please Enter Device IMEI Number\"), SHORTWAIT);\r\n\t\treturn DeviceIdentifier;\r\n\t}",
"pub... | [
"0.63795996",
"0.63688374",
"0.6361491",
"0.63094825",
"0.6266268",
"0.6203789",
"0.61573523",
"0.614482",
"0.6074049",
"0.60291815",
"0.602318",
"0.5962493",
"0.5931342",
"0.59074944",
"0.58932894",
"0.586702",
"0.5821593",
"0.5821593",
"0.581687",
"0.5806451",
"0.57959133",... | 0.7262915 | 0 |
Returns the value of the 'Issuer' containment reference. Organization that is charged with issuing UDIs for devices. For example, the US FDA issuers include : 1) GS1: 2) HIBCC: 3) ICCBBA for blood containers: 4) ICCBA for other devices: | Uri getIssuer(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public com.google.protobuf.ByteString\n getIssuerBytes() {\n java.lang.Object ref = issuer_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n issuer... | [
"0.7936586",
"0.79127",
"0.7844704",
"0.7821667",
"0.77556735",
"0.7663012",
"0.7590398",
"0.7423644",
"0.7346785",
"0.73246646",
"0.72038484",
"0.7133536",
"0.7103951",
"0.70983666",
"0.70681703",
"0.6818494",
"0.6724366",
"0.6681513",
"0.6615254",
"0.6563099",
"0.6338167",
... | 0.6964672 | 15 |
Returns the value of the 'Jurisdiction' containment reference. The identity of the authoritative source for UDI generation within a jurisdiction. All UDIs are globally unique within a single namespace with the appropriate repository uri as the system. For example, UDIs of devices managed in the U.S. by the FDA, the value is | Uri getJurisdiction(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getJurisdiction() {\n return jurisdiction;\n }",
"public String getJurisdiction() {\n return jurisdiction;\n }",
"public String getJurisdictionCd() {\n\t\treturn null;\n\t}",
"public Long getProgramJurisdictionOid() {\n\t\treturn null;\n\t}",
"@gw.internal.gosu.parser.ExtendedPr... | [
"0.6928031",
"0.6886201",
"0.65678847",
"0.5723647",
"0.54871154",
"0.52766186",
"0.5115079",
"0.50412774",
"0.50317866",
"0.50215733",
"0.4992802",
"0.49897274",
"0.4983032",
"0.49581566",
"0.49506012",
"0.49384156",
"0.49270284",
"0.49073568",
"0.49048984",
"0.4893399",
"0.... | 0.5792023 | 3 |
Returns the value of the 'Carrier AIDC' containment reference. The full UDI carrier of the Automatic Identification and Data Capture (AIDC) technology representation of the barcode string as printed on the packaging of the device e.g., a barcode or RFID. Because of limitations on character sets in XML and the need to roundtrip JSON data through XML, AIDC Formats SHALL be base64 encoded. | Base64Binary getCarrierAIDC(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getReturnedACI() {\n return returnedACI;\n }",
"public String getATA_CD() {\n return ATA_CD;\n }",
"public String getCardValue() {\n return Cvalue;\n }",
"public String getAgcData ()\n\t{\n\t\tString agcData = getContent().substring(OFF_ID27_AGC_DATA, OFF_ID... | [
"0.60940903",
"0.6055975",
"0.57841855",
"0.5775355",
"0.57275796",
"0.5626172",
"0.5588502",
"0.55805683",
"0.5460208",
"0.5453491",
"0.54341125",
"0.54299986",
"0.54278827",
"0.5346587",
"0.53379613",
"0.5332345",
"0.53114635",
"0.527626",
"0.5261636",
"0.5220884",
"0.52148... | 0.7690327 | 0 |
Returns the value of the 'Carrier HRF' containment reference. The full UDI carrier as the human readable form (HRF) representation of the barcode string as printed on the packaging of the device. | org.hl7.fhir.String getCarrierHRF(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getHCAR() {\r\n return HCAR;\r\n }",
"java.lang.String getFlightCarrier();",
"public java.lang.String getFlightCarrier() {\n java.lang.Object ref = flightCarrier_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n ... | [
"0.6991702",
"0.6509874",
"0.64160323",
"0.6406358",
"0.6321308",
"0.6320404",
"0.63025516",
"0.6161451",
"0.6142513",
"0.60945684",
"0.60327864",
"0.6018987",
"0.5968731",
"0.5876385",
"0.5851816",
"0.5839543",
"0.5784224",
"0.5726185",
"0.5700613",
"0.56328326",
"0.5569317"... | 0.81040865 | 0 |
Returns the value of the 'Entry Type' containment reference. A coded entry to indicate how the data was entered. | UDIEntryType getEntryType(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public EntryType getType() {\n return type;\n }",
"public abstract QCEntryType getType();",
"public XActRelationshipEntry getTypeCode() {\n\t\treturn typeCode;\n\t}",
"public String getType() {\n return m_Type;\n }",
"public String getMainType() {\n\t\treturn Material.getMaterial(this.propert... | [
"0.79062563",
"0.67405784",
"0.66608506",
"0.6290507",
"0.62639076",
"0.62614584",
"0.62375",
"0.62323093",
"0.6232038",
"0.6219196",
"0.62114644",
"0.6209008",
"0.6204052",
"0.6203554",
"0.6197679",
"0.6184763",
"0.6184763",
"0.6183716",
"0.6178193",
"0.6177618",
"0.6161657"... | 0.62861484 | 4 |
Computes the value of the Jacobi symbol (A|B). The following properties hold for the Jacobi symbol which makes it a very efficient way to evaluate the Legendre symbol (A|B) = 0 IF gcd(A,B) > 1 (1|B) = 1 IF n = 1 (mod 1) (1|B) = 1 IF n = 3 (mod 4) (A|B) (C|B) = (AC|B) (A|B) (A|C) = (A|CB) (A|B) = (C|B) IF A = C (mod B) (2|B) = 1 IF N = 1 OR 7 (mod 8) (2|B) = 1 IF N = 3 OR 5 (mod 8) | public static int jacobi(BigInteger A, BigInteger B)
{
BigInteger a, b, v;
long k = 1;
k = 1;
// test trivial cases
if (B.equals(ZERO))
{
a = A.abs();
return a.equals(ONE) ? 1 : 0;
}
if (!A.testBit(0) && !B.testBit(0))
{
return 0;
}
a = A;
b = B;
if (b.signum() == -1)
{ // b < 0
b = b.negate(); // b = -b
if (a.signum() == -1)
{
k = -1;
}
}
v = ZERO;
while (!b.testBit(0))
{
v = v.add(ONE); // v = v + 1
b = b.divide(BigInteger.valueOf(2)); // b = b/2
}
if (v.testBit(0))
{
k = k * jacobiTable[a.intValue() & 7];
}
if (a.signum() < 0)
{ // a < 0
if (b.testBit(1))
{
k = -k; // k = -k
}
a = a.negate(); // a = -a
}
// main loop
while (a.signum() != 0)
{
v = ZERO;
while (!a.testBit(0))
{ // a is even
v = v.add(ONE);
a = a.divide(BigInteger.valueOf(2));
}
if (v.testBit(0))
{
k = k * jacobiTable[b.intValue() & 7];
}
if (a.compareTo(b) < 0)
{ // a < b
// swap and correct intermediate result
BigInteger x = a;
a = b;
b = x;
if (a.testBit(1) && b.testBit(1))
{
k = -k;
}
}
a = a.subtract(b);
}
return b.equals(ONE) ? (int)k : 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int jacobiSymbol(int p, BigInteger n) {\n if (p == 0)\n return 0;\n\n // Algorithm and comments adapted from Colin Plumb's C library.\n int j = 1;\n int u = n.mag[n.mag.length-1];\n\n // Make p positive\n if (p < 0) {\n p = -p;\n ... | [
"0.7143219",
"0.6020742",
"0.5836768",
"0.5760703",
"0.5647076",
"0.5546762",
"0.5536775",
"0.5534882",
"0.5528507",
"0.55081093",
"0.5459519",
"0.5454129",
"0.5446616",
"0.5429544",
"0.54181916",
"0.54044175",
"0.537915",
"0.5356336",
"0.5315425",
"0.5303489",
"0.52828604",
... | 0.70129824 | 1 |
Converts a DhcpMessage object into a byte buffer. | public void encode( ByteBuffer byteBuffer, DhcpMessage message )
{
byteBuffer.put( message.getOp() );
HardwareAddress hardwareAddress = message.getHardwareAddress();
byteBuffer.put( ( byte ) ( null != hardwareAddress ? hardwareAddress.getType() : 0 ) );
byteBuffer.put( ( byte ) ( null != hardwareAddress ? hardwareAddress.getLength() : 0 ) );
byteBuffer.put( ( byte ) message.getHopCount() );
byteBuffer.putInt( message.getTransactionId() );
byteBuffer.putShort( ( short ) message.getSeconds() );
byteBuffer.putShort( message.getFlags() );
writeAddress( byteBuffer, message.getCurrentClientAddress() );
writeAddress( byteBuffer, message.getAssignedClientAddress() );
writeAddress( byteBuffer, message.getNextServerAddress() );
writeAddress( byteBuffer, message.getRelayAgentAddress() );
writeBytes( byteBuffer, ( null != hardwareAddress ? hardwareAddress.getAddress() : new byte[]
{} ), 16 );
writeString( byteBuffer, message.getServerHostname(), 64 );
writeString( byteBuffer, message.getBootFileName(), 128 );
OptionsField options = message.getOptions();
// update message type option (if set)
if ( null != message.getMessageType() )
{
options.add( new DhcpMessageType( message.getMessageType() ) );
}
encodeOptions( options, byteBuffer );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ByteBuffer Pack(Message message) {\n ByteBuffer byteBuffer = ByteBuffer.allocate(message.GetMessageLen()+1);\n byteBuffer.put((byte) message.GetMessageLen());\n byteBuffer.put((byte) (message.getDataLen()>>8));\n byteBuffer.put((byte) message.getDataLen());\n byteBuffer.pu... | [
"0.66233677",
"0.6550239",
"0.63486224",
"0.61982435",
"0.6059769",
"0.5865542",
"0.5771283",
"0.5733688",
"0.5712377",
"0.5697199",
"0.5667743",
"0.56487143",
"0.56487143",
"0.56487143",
"0.56487143",
"0.56487143",
"0.56487143",
"0.56487143",
"0.56487143",
"0.56487143",
"0.5... | 0.615068 | 4 |
Write a zeroterminated string to a field of len bytes. | private void writeString( ByteBuffer byteBuffer, String string, int len )
{
if ( null == string )
{
string = "";
}
try
{
byte[] sbytes = string.getBytes( "ASCII" );
// writeBytes will automatically zero-pad and thus terminate the
// string.
writeBytes( byteBuffer, sbytes, len );
}
catch ( UnsupportedEncodingException e )
{
// should not happen
throw new RuntimeException( I18n.err( I18n.ERR_635 ), e );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void writeLength( ObjectOutput out, int len ) throws IOException\n {\n\t\tif (len <= 31)\n\t\t{\n\t\t\tout.write((byte) (0x80 | (len & 0xff)));\n\t\t}\n\t\telse if (len <= 0xFFFF)\n\t\t{\n\t\t\tout.write((byte) 0xA0);\n\t\t\tout.writeShort((short) len);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tout.write((byte) 0x... | [
"0.537133",
"0.5177488",
"0.50926054",
"0.50559783",
"0.5005903",
"0.4944003",
"0.49249136",
"0.48429793",
"0.48406678",
"0.47973317",
"0.479167",
"0.47778115",
"0.47044307",
"0.46990663",
"0.4695884",
"0.46848845",
"0.46337292",
"0.4615111",
"0.45952982",
"0.4593216",
"0.458... | 0.48141164 | 9 |
Write an InetAddress to the byte buffer. | private void writeAddress( ByteBuffer byteBuffer, InetAddress currentClientAddress )
{
if ( null == currentClientAddress )
{
byte[] emptyAddress =
{ 0, 0, 0, 0 };
byteBuffer.put( emptyAddress );
}
else
{
byte[] addressBytes = currentClientAddress.getAddress();
byteBuffer.put( addressBytes );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sendPacket(InetAddress address, byte[] data) {\n try {\n send.setAddress(address);\n send.setData(Encryption.encrypt(data));\n socket.send(send);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"void write(ByteBuffer b, i... | [
"0.5999407",
"0.5898823",
"0.5647703",
"0.5596544",
"0.55485874",
"0.5537581",
"0.54651356",
"0.53645116",
"0.5335428",
"0.5261419",
"0.5245758",
"0.5236583",
"0.5213254",
"0.52099776",
"0.5162608",
"0.5150487",
"0.5145661",
"0.5110857",
"0.51078165",
"0.5095057",
"0.50893456... | 0.67003024 | 0 |
Write an array of bytes to the buffer. Write exactly len bytes, truncating if more than len, padding if less than len bytes are available. | private void writeBytes( ByteBuffer byteBuffer, byte[] bytes, int len )
{
if ( null == bytes )
{
bytes = new byte[]
{};
}
byteBuffer.put( bytes, 0, Math.min( len, bytes.length ) );
// pad as necessary
int remain = len - bytes.length;
while ( remain-- > 0 )
{
byteBuffer.put( ( byte ) 0 );
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public synchronized void write(byte b[], int off, int len ) throws IOException {\r\n \tint avail = buf.length - count;\r\n\r\n \tif ( len <= avail ) {\r\n \t\tSystem.arraycopy( b, off, buf, count, len );\r\n \t\tcount += len;\r\n \t\treturn; // Over step to do flush()\r\n\t } els... | [
"0.6952137",
"0.69038314",
"0.6709573",
"0.6667403",
"0.6624111",
"0.6554517",
"0.6479188",
"0.6473357",
"0.6365996",
"0.6245579",
"0.6240747",
"0.6239652",
"0.6179705",
"0.61636394",
"0.6157568",
"0.6132421",
"0.60786635",
"0.6068881",
"0.598958",
"0.59876645",
"0.59838",
... | 0.707366 | 0 |
Empty constructor needed for Colony > ServerColony. | protected Settlement() {
// empty constructor
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ServerDef() {}",
"public TargetServerChromattic() {}",
"public Server() {}",
"private Server()\n\t{\n\t}",
"protected Server() {\n super(\"Ublu Server\");\n }",
"public RentRPCServer() {\n\t\tsuper(null, null);\n\t\t// mocking purpose\n\t}",
"private CassandraServer() {\n }",
"pro... | [
"0.7016534",
"0.688605",
"0.678313",
"0.67368937",
"0.66833764",
"0.6682446",
"0.66650116",
"0.66116947",
"0.65943456",
"0.6572057",
"0.6479265",
"0.64454067",
"0.6398779",
"0.6324927",
"0.63009036",
"0.6294317",
"0.6264157",
"0.6223294",
"0.6217912",
"0.618832",
"0.6166932",... | 0.0 | -1 |
Creates a new Settlement. | public Settlement(Game game, Player owner, String name, Tile tile) {
super(game);
this.owner = owner;
this.name = name;
this.tile = tile;
setType(owner.getNationType().getSettlementType(false));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSettlement(Settlement set);",
"protected Settlement() {\n // empty constructor\n }",
"private Tx createTransaction(BitCoinResponseDTO btcDTO, SellerBitcoinInfo sbi) {\n\t\t\n\t\tTx tx = new Tx();\n\t\t\n\t\t\n\t\ttx.setDate(new Date());\n\t\ttx.setAmountOfMoney(btcDTO.getPrice_amount... | [
"0.6811938",
"0.6558436",
"0.5962071",
"0.5913578",
"0.5891369",
"0.57747775",
"0.56856513",
"0.5670114",
"0.5663655",
"0.5640582",
"0.5623753",
"0.5596491",
"0.55913323",
"0.5585403",
"0.5581995",
"0.5543421",
"0.5540953",
"0.5504001",
"0.54570377",
"0.54451233",
"0.54392433... | 0.61980677 | 2 |
Initiates a new Settlement from an Element. | public Settlement(Game game, XMLStreamReader in) throws XMLStreamException {
super(game, in);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSettlement(Settlement set);",
"protected Settlement() {\n // empty constructor\n }",
"private void buildSettlement() {\r\n\t\t// client.setCurrentPhase(Constants.PHASE_3);\r\n\t\tlastSettlementNode = clickedNode;\r\n\t\tMessage message = new Message(clickedNode, true, null);\r\n\t\ts... | [
"0.6340883",
"0.6156559",
"0.5934371",
"0.5770392",
"0.55455893",
"0.5381667",
"0.53056246",
"0.5229684",
"0.51957214",
"0.51929146",
"0.5187814",
"0.5174564",
"0.5158662",
"0.51444894",
"0.51357865",
"0.51062757",
"0.5103934",
"0.5090377",
"0.5089412",
"0.5083522",
"0.508221... | 0.5861774 | 3 |
Get the Type value. | public final SettlementType getType() {
return type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Class getType() {\n Object value = getValue();\n if (value == null)\n return null;\n\n Class type = value.getClass();\n if (type == Integer.class)\n return int.class;\n if (type == Float.class)\n return float.class;\n if (type == Dou... | [
"0.81663626",
"0.81093305",
"0.8108208",
"0.8066424",
"0.8066424",
"0.8049838",
"0.8049838",
"0.8049838",
"0.8049838",
"0.8049838",
"0.8044613",
"0.80346006",
"0.80346006",
"0.80346006",
"0.8031619",
"0.8031619",
"0.8031619",
"0.8031619",
"0.8031619",
"0.8006257",
"0.79639304... | 0.0 | -1 |
Set the Type value. | public final void setType(final SettlementType newType) {
if (type != null) removeFeatures(type);
this.type = newType;
if (newType != null) addFeatures(newType);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setType(Type t) {\n type = t;\n }",
"public void setType(Type t) {\n\t\ttype = t;\n\t}",
"public void setType(String value) {\n this.type = value;\n }",
"public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}",
"public Builder setType(Type value) {\n if ... | [
"0.82659453",
"0.81620073",
"0.8029099",
"0.7803738",
"0.77851284",
"0.7721031",
"0.7660745",
"0.76567817",
"0.7647423",
"0.7634834",
"0.7634834",
"0.7634834",
"0.7628931",
"0.7625795",
"0.7598892",
"0.759806",
"0.75339913",
"0.75075346",
"0.7478593",
"0.7476812",
"0.7466154"... | 0.0 | -1 |
TODO: remove this again | public String getNameKey() {
return getName();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n ... | [
"0.57608825",
"0.56927633",
"0.56409836",
"0.56380314",
"0.5601615",
"0.5593928",
"0.5578397",
"0.554326",
"0.55002713",
"0.54223406",
"0.5418913",
"0.540406",
"0.5401042",
"0.53939986",
"0.53873765",
"0.5386811",
"0.5380606",
"0.53665835",
"0.53362465",
"0.53311366",
"0.5331... | 0.0 | -1 |
Gets the name of this Settlement. | public String getName() {
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getName() {\n return name.get();\n }",
"@Override\n\t\tfinal public String getName() {\n\t\t\treturn this.Name;\n\t\t}",
"public String getName() {\n\t\treturn this.toString();\n\t}",
"public String getName() {\r\n\t\treturn name.get();\r\n\t}",
"public String getName() {\r\n ... | [
"0.69783515",
"0.6917586",
"0.6917375",
"0.6915065",
"0.688097",
"0.6879",
"0.68715066",
"0.6862538",
"0.6862538",
"0.6862538",
"0.6862538",
"0.6862538",
"0.6857924",
"0.6848373",
"0.6844706",
"0.6840481",
"0.6840481",
"0.6840481",
"0.6839778",
"0.6832391",
"0.6832391",
"0.... | 0.0 | -1 |
Gets the name of this Settlement for a particular player. | abstract public String getNameFor(Player player); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getName(Player p) {\n\t\treturn name;\n\t}",
"public String getName()\r\n\t{\r\n\t\treturn this.playerName;\r\n\t}",
"public String getPlayerName() {\n\t\tString name = super.getPlayerName();\n\t\treturn name;\n\t}",
"public String getName(){\r\n\t\treturn playerName;\r\n\t}",
"public String ... | [
"0.72830796",
"0.71833366",
"0.7182348",
"0.71486115",
"0.7093042",
"0.7062151",
"0.7040527",
"0.70252234",
"0.69806737",
"0.69805604",
"0.6973779",
"0.69707096",
"0.6947584",
"0.69330764",
"0.69330764",
"0.6893118",
"0.6862368",
"0.6855769",
"0.6771632",
"0.67489463",
"0.674... | 0.68100864 | 18 |
Sets the name of this Settlement. | public void setName(String newName) {
this.name = newName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name) {\n if (!name.isEmpty()) {\n this.name = name;\n }\n }",
"public void setName(String name) {\r\n this._name = name;\r\n }",
"public final void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) ... | [
"0.7862114",
"0.7850941",
"0.78484625",
"0.7840823",
"0.782347",
"0.782347",
"0.782187",
"0.7816212",
"0.7815605",
"0.7815605",
"0.7815605",
"0.7815605",
"0.78041947",
"0.78041947",
"0.7796373",
"0.7796373",
"0.7796373",
"0.7796373",
"0.7796279",
"0.7778811",
"0.77775234",
... | 0.0 | -1 |
Gets an image key for this settlement. | abstract public String getImageKey(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getImgKey() {\n return imgKey;\n }",
"public final String getInternalKey() {\n return CloudImageLoader.generateKey(getInternalUri(), getInternalDownloadType());\n }",
"public Key getKey() {\n return Key.of(getTone(), getQuality());\n }",
"public static String get... | [
"0.7004048",
"0.63995355",
"0.6323925",
"0.6253939",
"0.6248837",
"0.6239712",
"0.62049294",
"0.6191212",
"0.6150887",
"0.60774934",
"0.60768044",
"0.6075401",
"0.6059617",
"0.6055356",
"0.60366786",
"0.60314536",
"0.6024674",
"0.60246295",
"0.60246295",
"0.60246295",
"0.6024... | 0.68167955 | 1 |
Returns true if this is the Nation's capital. | public boolean isCapital() {
return getType().isCapital();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isSetCapital();",
"public boolean isUpperCase()\n\t{\n\t\treturn upperCase;\n\t}",
"boolean isSetCapitalInKind();",
"public boolean hasUpper(){\n return (alg.hasUpper(input.getText().toString()));\n }",
"public static boolean isCapitalized(String word) {\n \treturn (word.length() > 0 &... | [
"0.76796865",
"0.7176735",
"0.71322024",
"0.7072419",
"0.700131",
"0.6904946",
"0.6732333",
"0.66437507",
"0.6622239",
"0.63736904",
"0.6298774",
"0.6256335",
"0.6219747",
"0.6152976",
"0.61506724",
"0.61207086",
"0.60979015",
"0.5955175",
"0.58935934",
"0.5849054",
"0.579579... | 0.77645713 | 0 |
Sets the capital value. | public void setCapital(boolean isCapital) {
if (isCapital() != isCapital) {
setType(owner.getNationType().getSettlementType(isCapital));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCapital(int capital) {\n\n this.capital = capital;\n }",
"void setCapital(ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount capital);",
"public void setUpper(int value) {\n this.upper = value;\n }",
"public String getCapital() {\n return capital;\n }",
... | [
"0.8066763",
"0.76134044",
"0.7407304",
"0.7272771",
"0.7035897",
"0.6790146",
"0.6790146",
"0.6629107",
"0.6620419",
"0.6604536",
"0.6535495",
"0.64146554",
"0.64121807",
"0.6374065",
"0.6304711",
"0.62821686",
"0.6256615",
"0.6239825",
"0.62367696",
"0.6233698",
"0.62291646... | 0.64938265 | 11 |
Get this settlement's feature container. | @Override
public FeatureContainer getFeatureContainer() {
return featureContainer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getUnderlyingObject() {\n return feature;\n }",
"public FeatureSet getFeatures() {\n\treturn features;\n }",
"public FeatureCollection<SimpleFeatureType,SimpleFeature> getCollection() {\n return (SimpleFeatureCollection) collection;\n }",
"public final native GEFe... | [
"0.6653996",
"0.6543979",
"0.6399908",
"0.6397356",
"0.6381805",
"0.63762367",
"0.63416535",
"0.6274176",
"0.6243491",
"0.6157177",
"0.6154697",
"0.61002785",
"0.60912764",
"0.6090789",
"0.6086515",
"0.60807437",
"0.6026685",
"0.59840804",
"0.59398943",
"0.5931528",
"0.588268... | 0.75746095 | 0 |
Gets this colony's line of sight. | public int getLineOfSight() {
return (int)applyModifier((float)getType().getVisibleRadius(),
"model.modifier.lineOfSightBonus");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Line getLine ()\r\n {\r\n if (line == null) {\r\n computeLine();\r\n }\r\n\r\n return line;\r\n }",
"public String getLine() {\n \treturn this.lineColor;\n }",
"public Line getRightLine() {\n\n return new Line(this.getupperRigth(), this.getdownRigth());... | [
"0.7112935",
"0.69568837",
"0.69118184",
"0.6903939",
"0.6875035",
"0.6847974",
"0.67634875",
"0.6739189",
"0.6739189",
"0.6685962",
"0.66819364",
"0.66526216",
"0.6632901",
"0.6586255",
"0.65827787",
"0.65209913",
"0.6506188",
"0.64971715",
"0.6480431",
"0.64758545",
"0.6463... | 0.7088546 | 1 |
Gets the Unit that is currently defending this Settlement. | abstract public Unit getDefendingUnit(Unit attacker); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final Unit getUnit()\n { \n return Unit.forValue(m_Unit);\n }",
"public Unit<?> getUnit() {\n return _unit;\n }",
"public gov.weather.graphical.xml.dwmlgen.schema.dwml_xsd.UnitType.Enum getUnit()\n {\n synchronized (monitor())\n {\n ... | [
"0.64363855",
"0.6099102",
"0.6069703",
"0.6067926",
"0.6008989",
"0.59473014",
"0.58876747",
"0.5887054",
"0.58073056",
"0.5756014",
"0.569787",
"0.5697638",
"0.5695022",
"0.55309093",
"0.5417217",
"0.54158837",
"0.540114",
"0.53997296",
"0.538616",
"0.53544366",
"0.5348103"... | 0.7157959 | 0 |
Gets the range of gold plunderable when this settlement is captured. | abstract public RandomRange getPlunderRange(Unit attacker); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getRange(){\n\n double range = fuelRemaining * fuelEconomy;\n return range;\n }",
"public double getLethalRange()\n {\n return this.lethal_range;\n }",
"public Integer getGold() {\n\t\treturn gold;\n\t}",
"int getAttackRange();",
"int range() {\n\t\treturn mpg * fuelcap;... | [
"0.6376715",
"0.6339109",
"0.6173729",
"0.61593956",
"0.6133902",
"0.6074361",
"0.6067393",
"0.59990543",
"0.5989658",
"0.5917186",
"0.5899067",
"0.5774022",
"0.5750719",
"0.57506275",
"0.57428384",
"0.5733769",
"0.57024044",
"0.56246346",
"0.5623543",
"0.5622912",
"0.5621853... | 0.6698166 | 0 |
Gets an amount of plunder when this settlement is taken. | public int getPlunder(Unit attacker, Random random) {
RandomRange range = getPlunderRange(attacker);
return (range == null) ? 0
: range.getAmount("Plunder " + getName(), random, false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getUnpaidAmount();",
"public double getUnpaidBalance() \r\n\t{\r\n\t\t\r\n\t\treturn unpaidBalance;\r\n\t\t\r\n\t}",
"public static int totalSupply() {\n return totalSupplyGet();\n }",
"public double getmoneyremainingtoSave()\n\t{\n\t\treturn this.getIdealAmount()-this.moneySaved();\n\t}",
... | [
"0.64368314",
"0.6394126",
"0.6300869",
"0.6195545",
"0.6143352",
"0.6110848",
"0.60826105",
"0.6065446",
"0.60360307",
"0.5968639",
"0.59494394",
"0.5943599",
"0.5890573",
"0.5883707",
"0.58788735",
"0.58753234",
"0.5869811",
"0.58451426",
"0.58427775",
"0.5835488",
"0.58288... | 0.6559063 | 0 |
Gets the Tile where this Settlement is located. | public Tile getTile() {
return tile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Tile getTile() {\n\t\treturn tile;\n\t}",
"public Tile getTile()\r\n\t{\r\n\t\tif(this.hasTiles())\r\n\t\t\treturn _tiles.remove(0);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"public Tile getTile(){\n\t\treturn currentTile;\n\t}",
"public Tile getTile() {\n return _tile;\n }",
"Tile getTile() {... | [
"0.76218086",
"0.74922115",
"0.73653716",
"0.72272027",
"0.7157457",
"0.70209795",
"0.68599033",
"0.6714734",
"0.66735333",
"0.66359544",
"0.65455085",
"0.6498958",
"0.6492656",
"0.64882636",
"0.64583975",
"0.64080966",
"0.63901526",
"0.6365932",
"0.635112",
"0.634407",
"0.63... | 0.67859375 | 8 |
Put a prepared settlement onto the map. | public void placeSettlement(boolean maximal) {
List<Tile> tiles;
if (maximal) {
tiles = getGame().getMap()
.getClaimableTiles(owner, tile, getRadius());
} else {
tiles = new ArrayList<Tile>();
tiles.add(tile);
}
tile.setSettlement(this);
for (Tile t : tiles) {
t.changeOwnership(owner, this);
}
for (Tile t : tile.getSurroundingTiles(getLineOfSight())) {
owner.setExplored(t);
}
owner.invalidateCanSeeTiles();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSettlement(Settlement set);",
"public void placeSettlement(int playerID, VertexLocation loc) {\n\t\tVertex vert = verticies.get(loc.getNormalizedLocation());\n\t\tvert.setPiece(new Piece(PieceType.SETTLEMENT, null, null, playerID));\n\t}",
"public void placeSettlement(Player p, Corner c){\r\n ... | [
"0.6545362",
"0.60838467",
"0.5977649",
"0.5832452",
"0.5584178",
"0.5573024",
"0.5442977",
"0.5350193",
"0.5233797",
"0.52231336",
"0.5210402",
"0.51339406",
"0.5084827",
"0.508161",
"0.5005493",
"0.5003847",
"0.49940535",
"0.49340826",
"0.49242863",
"0.49160025",
"0.4823241... | 0.55709255 | 6 |
Gets the owner of this Settlement. | public Player getOwner() {
return owner;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AccountEntity getOwner() {\n\t\treturn owner;\n\t}",
"public T getOwner() {\n return owner;\n }",
"public long getOwner() {\n\t\treturn owner;\n\t}",
"public String getOwner() {\n\n return Owner;\n }",
"public Owner getOwner() {\n return owner;\n }",
"public User getO... | [
"0.7865665",
"0.78454405",
"0.7837095",
"0.7835557",
"0.77934873",
"0.777694",
"0.7768881",
"0.7750905",
"0.7750905",
"0.7750905",
"0.7750905",
"0.7750905",
"0.7750905",
"0.7737515",
"0.7737515",
"0.7729409",
"0.771254",
"0.76948434",
"0.76623166",
"0.7639405",
"0.7639362",
... | 0.0 | -1 |
Sets the owner of this Settlement. | public void setOwner(Player player) {
owner = player;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setOwner(Owner owner) {\n this.owner = owner;\n }",
"public void setOwner(User owner) {\n this.owner = owner;\n }",
"protected void setOwner(T owner) {\n this.owner = owner;\n }",
"public void setOwner(Person owner)\n {\n this.owner = owner;\n }",
"pub... | [
"0.7993402",
"0.78742254",
"0.76314104",
"0.76244015",
"0.7573011",
"0.75713575",
"0.7495881",
"0.7481964",
"0.7407797",
"0.7407797",
"0.7407797",
"0.7407797",
"0.73939824",
"0.73471004",
"0.7320899",
"0.7299099",
"0.72724295",
"0.71631604",
"0.71418285",
"0.7060334",
"0.7058... | 0.6665231 | 35 |
Change the owner of this Settlement. | public void changeOwner(Player newOwner) {
Player oldOwner = this.owner;
setOwner(newOwner);
if (oldOwner.hasSettlement(this)) {
oldOwner.removeSettlement(this);
}
if (!newOwner.hasSettlement(this)) {
newOwner.addSettlement(this);
}
List<Unit> units = getUnitList();
units.addAll(getTile().getUnitList());
while (!units.isEmpty()) {
Unit u = units.remove(0);
units.addAll(u.getUnitList());
u.setState(Unit.UnitState.ACTIVE);
UnitType type = u.getTypeChange((newOwner.isUndead())
? ChangeType.UNDEAD
: ChangeType.CAPTURE, newOwner);
if (type != null) u.setType(type);
u.setOwner(newOwner);
}
for (Tile t : getOwnedTiles()) {
t.changeOwnership(newOwner, this);
}
oldOwner.invalidateCanSeeTiles();
newOwner.invalidateCanSeeTiles();
if (getGame().getFreeColGameObjectListener() != null) {
getGame().getFreeColGameObjectListener()
.ownerChanged(this, oldOwner, newOwner);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setOwner(Owner owner) {\n this.owner = owner;\n }",
"public void setOwner(User owner) {\n this.owner = owner;\n }",
"public void setOwner(Person owner)\n {\n this.owner = owner;\n }",
"void setOwner(String owner);",
"public void changeOwner(String o){\n owner... | [
"0.7771577",
"0.77136546",
"0.7548644",
"0.7544719",
"0.7509333",
"0.74753356",
"0.7416652",
"0.7381032",
"0.7381032",
"0.7381032",
"0.7381032",
"0.7378892",
"0.73455286",
"0.73306465",
"0.73262036",
"0.73112386",
"0.73042387",
"0.7227302",
"0.7170772",
"0.71485573",
"0.71284... | 0.6923807 | 27 |
Get the tiles this settlement owns. | public List<Tile> getOwnedTiles() {
return new ArrayList<Tile>(ownedTiles);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Tile[][] getTiles() {\n return tiles;\n }",
"public Tile[][] getTiles() {\n return tiles;\n }",
"public Tiles getTiles() {\n return tiles;\n }",
"public ArrayList<TileSet> getTilesets() {\r\n return this.tileSets;\r\n }",
"public SetOfTiles getSetOfTiles();",
"pub... | [
"0.70721257",
"0.7026069",
"0.70063746",
"0.6891966",
"0.6684008",
"0.6648693",
"0.65306646",
"0.6527866",
"0.6485517",
"0.63901377",
"0.6379884",
"0.6268618",
"0.62245744",
"0.6191424",
"0.61160254",
"0.6084927",
"0.6002401",
"0.59902567",
"0.5927714",
"0.59052783",
"0.5897"... | 0.7391751 | 0 |
Adds a tile to this settlement. | public void addTile(Tile tile) {
ownedTiles.add(tile);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addTile(Tile tile)\r\n\t{\r\n\t\ttiles.add(tile);\r\n\t}",
"public Map add(Tile tile) {\n this.tiles.add(tile);\n return this;\n }",
"private void add(Tile t) {\n tileBag.add(t);\n shuffleBag();\n }",
"public boolean addTile(Tile tile) {\n\n\t\tboolean isSuccess = false;\n... | [
"0.80244946",
"0.73001546",
"0.7175381",
"0.6980122",
"0.67792976",
"0.6697644",
"0.6648346",
"0.6604731",
"0.66004825",
"0.6541681",
"0.6312504",
"0.61593443",
"0.61320126",
"0.6035099",
"0.6004167",
"0.59652907",
"0.5951756",
"0.5879208",
"0.56951153",
"0.5660035",
"0.55837... | 0.777819 | 1 |
Removes a tile from this settlement. | public void removeTile(Tile tile) {
ownedTiles.remove(tile);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeTile(Tile tile) {\r\n frame.remove(tile);\r\n }",
"public void removeTile(){\n\t\toccupied = false;\n\t\tcurrentTile = null;\n\t}",
"public Tile removeTile() {\n if (tileBag.size() == 0) {\n return null;\n }\n return tileBag.remove(0);\n }",
"pub... | [
"0.8224019",
"0.8126429",
"0.7513353",
"0.7216741",
"0.6970994",
"0.64534014",
"0.60431236",
"0.60008353",
"0.59549576",
"0.59456104",
"0.5909282",
"0.5851598",
"0.57922393",
"0.56859386",
"0.5681262",
"0.5669108",
"0.56543344",
"0.5651928",
"0.5527136",
"0.54800093",
"0.5426... | 0.8141086 | 1 |
Dispose of this settlement. | public List<FreeColGameObject> disposeList() {
List<FreeColGameObject> objects = new ArrayList<FreeColGameObject>();
if (owner != null
&& getTile() != null
&& getTile().getSettlement() != null) {
// Defensive tests to handle transition from calling dispose()
// on both sides to when it is only called on server-side.
// Get off the map
Tile settlementTile = getTile();
List<Tile> lostTiles = getOwnedTiles();
for (Tile tile : lostTiles) {
tile.changeOwnership(null, null);
}
settlementTile.setSettlement(null);
// The owner forgets about the settlement.
Player oldOwner = owner;
oldOwner.removeSettlement(this);
oldOwner.invalidateCanSeeTiles();
// It is not safe to setOwner(null). When a settlement is
// destroyed there is a race between this code and some
// display routines that still need to know who owned the
// dead settlement.
}
objects.addAll(super.disposeList());
return objects;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void close() {\n HashMap<String, Transaction> map = instance.getTransactions();\n for (Transaction transaction : map.values()) {\n transaction.destroy();\n }\n map.clear();\n instance.transactions.remove();\n }",
"public void dispose() {\n ... | [
"0.64782614",
"0.64079875",
"0.6389795",
"0.6383296",
"0.63570464",
"0.6267753",
"0.6265851",
"0.62532127",
"0.62532127",
"0.62138736",
"0.62137824",
"0.6185995",
"0.61738217",
"0.61380315",
"0.61380315",
"0.61380315",
"0.61245185",
"0.6119912",
"0.6113854",
"0.6073327",
"0.6... | 0.0 | -1 |
Gets the radius of what the Settlement considers as it's own land. | public int getRadius() {
return getType().getClaimableRadius();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int radius()\n\t{\n\t\treturn radius;\n\t}",
"public double getRadius() {\n return getCenter().distance(new Coord3d(xmin, ymin, zmin));\n }",
"long getRadius();",
"public float radius() {\n\t\treturn radius;\n\t}",
"public double getRadius() { return radius.get(); }",
"public double getCentral... | [
"0.7037572",
"0.7007221",
"0.682734",
"0.680731",
"0.6770202",
"0.67199796",
"0.6652669",
"0.66176975",
"0.6612402",
"0.65996164",
"0.65860546",
"0.65851814",
"0.65416664",
"0.65388",
"0.6522839",
"0.6522839",
"0.6522839",
"0.6522839",
"0.6522839",
"0.6522839",
"0.6522839",
... | 0.6997472 | 2 |
Gets whether this settlement is connected to the high seas. This is more than merely nonlandlocked, because the settlement could be on an inland lake. | public boolean isConnectedPort() {
for (Tile t : getTile().getSurroundingTiles(1)) {
if (!t.isLand() && t.isHighSeasConnected()) return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isConnected() {\n if (skylinkConnection != null) {\n return skylinkConnection.isConnected();\n }\n return false;\n }",
"public boolean isConnected() {\n return (chord != null);\n }",
"public boolean percolates() {\n return mainObject.connected... | [
"0.58231753",
"0.573707",
"0.56349033",
"0.5633081",
"0.5620339",
"0.55967987",
"0.5596185",
"0.55751914",
"0.5555918",
"0.55444765",
"0.55377495",
"0.55238384",
"0.5518179",
"0.5498071",
"0.5498071",
"0.54829323",
"0.54829323",
"0.54590523",
"0.5448706",
"0.54355067",
"0.543... | 0.66411877 | 0 |
Gets the current Sons of Liberty in this settlement. | public abstract int getSoL(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<LdsSpouseSealing> getLdsSpouseSealings() {\n return ldsSpouseSealings;\n }",
"public ArrayList<Station> getStations() {\n\t\treturn stations;\n\t}",
"public List<String> getLampStations() {\n\t\treturn this.lampStations;\n\t}",
"public LinkedList<Station> getStations() {\n return... | [
"0.67664117",
"0.61074215",
"0.60926116",
"0.59464663",
"0.59117144",
"0.588049",
"0.5861256",
"0.58402526",
"0.58198476",
"0.5792932",
"0.574573",
"0.5691962",
"0.5677461",
"0.56713396",
"0.56686217",
"0.5604409",
"0.55868095",
"0.5568445",
"0.5555591",
"0.55426234",
"0.5529... | 0.0 | -1 |
Returns the amount of money necessary to maintain all of the settlement's buildings. | public abstract int getUpkeep(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTotalbuildings() {\n\t\treturn totalbuildings;\n\t}",
"Money getCashSettlementAmount();",
"public int houseCost() {\n\t\treturn houses;\n\t}",
"public Long getSettlementmoney() {\n return settlementmoney;\n }",
"public int totalCostOfComponents()\n\t{\n\t\tint total = 0;\n\t\tfor (C... | [
"0.6279729",
"0.60444814",
"0.60194296",
"0.59497905",
"0.5851538",
"0.58417606",
"0.58361506",
"0.5812234",
"0.5788804",
"0.57769835",
"0.57609874",
"0.57587713",
"0.5726394",
"0.5691",
"0.56789064",
"0.5669882",
"0.56186885",
"0.56126565",
"0.56100893",
"0.5607708",
"0.5604... | 0.0 | -1 |
Propagates a global change in tension down to a settlement. Only apply the change if the settlement is aware of the player causing alarm. | public abstract boolean propagateAlarm(Player player, int addToAlarm); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sharplyChange(){\r\n\t\t\tgovernmentLegitimacy -= 0.3;\r\n\t\t}",
"public static void decreaseDifficaulty() {\r\n\t\tif (Enemy._timerTicker < 70)\r\n\t\t\tEnemy._timerTicker += 3;\r\n\t\tif (Player._timerTicker > 4)\r\n\t\t\tPlayer._timerTicker -= 2;\r\n\t}",
"public void liftDown() {\n set... | [
"0.56732553",
"0.5656096",
"0.55807835",
"0.55327225",
"0.54940265",
"0.5454604",
"0.5445345",
"0.5428469",
"0.5415448",
"0.5396757",
"0.539066",
"0.5384753",
"0.5372698",
"0.5352566",
"0.5326693",
"0.5310642",
"0.5301019",
"0.5259621",
"0.524771",
"0.52285206",
"0.5225769",
... | 0.49269998 | 61 |
Returns the production of the given type of goods. | public abstract int getProductionOf(GoodsType goodsType); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNetProductionOf(GoodsType type) {\n update();\n return netProduction.getCount(type);\n }",
"private double generateSellPrice(ShipType type) {\n return type.getPrice();\n }",
"public Salvageable getSalvageable(Material type);",
"public double getSellPrice(ShipType type... | [
"0.6818445",
"0.614643",
"0.5990897",
"0.59859866",
"0.5819758",
"0.5815037",
"0.5735413",
"0.5729303",
"0.57225996",
"0.57138306",
"0.56664276",
"0.5647266",
"0.5628806",
"0.5628093",
"0.56254905",
"0.56174034",
"0.5587417",
"0.55586964",
"0.5546112",
"0.5526011",
"0.5484923... | 0.7061541 | 0 |
Returns the number of goods of a given type used by the settlement each turn. | public int getConsumptionOf(GoodsType goodsType) {
int result = 0;
for (Unit unit : getUnitList()) {
result += unit.getType().getConsumptionOf(goodsType);
}
return Math.max(0, result);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int getGoodsCount(GoodsType type) {\n return colony.getGoodsCount(type);\n }",
"public int numberSeatsUsed(FlightEntity flight, int type);",
"@SuppressWarnings(BookFlowConstants.BOXING)\r\n private int getCount(final Collection<String> types, final String type)\r\n {\r\n int paxCount... | [
"0.8073928",
"0.7068639",
"0.6642843",
"0.6636602",
"0.6535373",
"0.65104234",
"0.64347166",
"0.6407017",
"0.63997996",
"0.6379779",
"0.63688993",
"0.6336564",
"0.6299976",
"0.6209367",
"0.617198",
"0.6128459",
"0.612088",
"0.6114059",
"0.610018",
"0.6099765",
"0.60742843",
... | 0.6227407 | 13 |
Returns the number of goods of all given types used by the settlement each turn. | public int getConsumptionOf(List<GoodsType> goodsTypes) {
int result = 0;
if (goodsTypes != null) {
for (GoodsType goodsType : goodsTypes) {
result += getConsumptionOf(goodsType);
}
}
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int getGoodsCount(GoodsType type) {\n return colony.getGoodsCount(type);\n }",
"@SuppressWarnings(BookFlowConstants.BOXING)\r\n private int getCount(final Collection<String> types, final String type)\r\n {\r\n int paxCount = 0;\r\n for (final String passengerType : types)\r\n ... | [
"0.7510643",
"0.7255232",
"0.66344327",
"0.64692974",
"0.63577086",
"0.6274225",
"0.62550443",
"0.6188397",
"0.6081321",
"0.60587186",
"0.60543215",
"0.6039382",
"0.5952471",
"0.58854747",
"0.5881135",
"0.5845717",
"0.5824069",
"0.5821524",
"0.58213943",
"0.57911533",
"0.5765... | 0.66388303 | 2 |
Gives the food needed to keep all units alive in this Settlement. | public int getFoodConsumption() {
return getConsumptionOf(getSpecification().getFoodGoodsTypeList());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void pickupFood() {\r\n\t\tif(this.food > 0){\r\n\t\t\tthis.food--;\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic double foodConsumption() {\n\t\treturn 0;\r\n\t}",
"public List<Food> getAvailableFood() {\n return availableFood;\n }",
"private void findFood() {\n\t\tAgentSpace agentSpace = Bla... | [
"0.628253",
"0.59958637",
"0.5967298",
"0.58936507",
"0.5826284",
"0.58008033",
"0.56535405",
"0.5631056",
"0.5625391",
"0.5560684",
"0.54444647",
"0.5441716",
"0.53903925",
"0.5372863",
"0.5365444",
"0.5359018",
"0.5349804",
"0.53428173",
"0.53056735",
"0.52844375",
"0.52843... | 0.5353291 | 16 |
Return true if this Colony could build at least one item of the given EquipmentType. | public boolean canBuildEquipment(EquipmentType equipmentType) {
for (AbstractGoods requiredGoods : equipmentType.getGoodsRequired()) {
if (getGoodsCount(requiredGoods.getType()) < requiredGoods.getAmount()) {
return false;
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean canProvideEquipment(EquipmentType equipmentType) {\n for (AbstractGoods goods : equipmentType.getGoodsRequired()) {\n int available = getGoodsCount(goods.getType());\n \n int breedingNumber = goods.getType().getBreedingNumber();\n if (breedingNumber != Goo... | [
"0.69180244",
"0.6495542",
"0.64788157",
"0.6393052",
"0.63117146",
"0.6062522",
"0.58066285",
"0.5752179",
"0.5741363",
"0.5636493",
"0.55167395",
"0.5476476",
"0.54711205",
"0.5465039",
"0.5434419",
"0.5422653",
"0.5415306",
"0.54086185",
"0.5405269",
"0.5404619",
"0.539665... | 0.7761379 | 0 |
Determines if this settlement can build the given type of equipment. Unlike canBuildEquipment, this takes goods "reserved" for other purposes into account (e.g. breeding). | public boolean canProvideEquipment(EquipmentType equipmentType) {
for (AbstractGoods goods : equipmentType.getGoodsRequired()) {
int available = getGoodsCount(goods.getType());
int breedingNumber = goods.getType().getBreedingNumber();
if (breedingNumber != GoodsType.INFINITY) {
available -= breedingNumber;
}
if (available < goods.getAmount()) return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean canBuildEquipment(EquipmentType equipmentType) {\n for (AbstractGoods requiredGoods : equipmentType.getGoodsRequired()) {\n if (getGoodsCount(requiredGoods.getType()) < requiredGoods.getAmount()) {\n return false;\n }\n }\n return true;... | [
"0.7366263",
"0.6233333",
"0.6171512",
"0.58911425",
"0.58313537",
"0.58009344",
"0.5713563",
"0.56979",
"0.56370616",
"0.5580236",
"0.5571665",
"0.5460705",
"0.5358265",
"0.52647257",
"0.51785606",
"0.5160746",
"0.5117253",
"0.5108831",
"0.49983355",
"0.4997783",
"0.4984069"... | 0.64798856 | 1 |
Return true if this Settlement could provide at least one item of all the given EquipmentTypes. This is designed specifically to mesh with getRoleEquipment(). | public boolean canProvideEquipment(List<EquipmentType> equipment) {
for (EquipmentType e : equipment) {
if (!canProvideEquipment(e)) return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean canProvideEquipment(EquipmentType equipmentType) {\n for (AbstractGoods goods : equipmentType.getGoodsRequired()) {\n int available = getGoodsCount(goods.getType());\n \n int breedingNumber = goods.getType().getBreedingNumber();\n if (breedingNumber != Goo... | [
"0.6679168",
"0.6582021",
"0.6051764",
"0.599195",
"0.5969245",
"0.59418565",
"0.5884433",
"0.5863795",
"0.57739407",
"0.57219243",
"0.5686139",
"0.56834143",
"0.56832194",
"0.56710744",
"0.5568906",
"0.554333",
"0.5519092",
"0.54957765",
"0.5404363",
"0.53820235",
"0.5377368... | 0.70929945 | 0 |
Write the attributes of this object to a stream. | @Override
protected void writeAttributes(XMLStreamWriter out)
throws XMLStreamException {
super.writeAttributes(out);
out.writeAttribute("name", getName());
out.writeAttribute("owner", owner.getId());
out.writeAttribute("tile", tile.getId());
out.writeAttribute("settlementType", getType().getId());
// TODO: Not owner, it is subject to PlayerExploredTile handling.
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeObject(OutputStream stream, Object object, int format) throws IOException;",
"private void writeObject(\n \t\t ObjectOutputStream aOutputStream\n\t\t ) throws IOException {\n\t\t //perform the default serialization for all non-transient, non-static fields\n \t\t aOutputStream.def... | [
"0.640425",
"0.61439884",
"0.60899377",
"0.60443175",
"0.5999136",
"0.59885156",
"0.5970895",
"0.59568226",
"0.5931245",
"0.5919474",
"0.5887288",
"0.58854675",
"0.58738923",
"0.5867575",
"0.58334637",
"0.5825374",
"0.5759711",
"0.574564",
"0.5739065",
"0.57359",
"0.57017356"... | 0.5987392 | 6 |
Reads the attributes of this object from an XML stream. | @Override
protected void readAttributes(XMLStreamReader in)
throws XMLStreamException {
super.readAttributes(in);
setName(in.getAttributeValue(null, "name"));
owner = getFreeColGameObject(in, "owner", Player.class);
tile = getFreeColGameObject(in, "tile", Tile.class);
// @compat 0.9.x
String typeStr = in.getAttributeValue(null, "settlementType");
SettlementType settlementType;
if (typeStr == null) {
String capital = in.getAttributeValue(null, "isCapital");
settlementType = owner.getNationType()
.getSettlementType("true".equals(capital));
// end compatibility code
} else {
settlementType = owner.getNationType().getSettlementType(typeStr);
}
setType(settlementType);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void readFromXMLImpl(XMLStreamReader in) throws XMLStreamException {\n super.readAttributes(in);\n \n // Remove this when the 0.9.x save hack (in Game.java) is gone.\n ownerId = in.getAttributeValue(null, \"owner\");\n \n messageType = Enum.valueOf(MessageType.class,... | [
"0.6152226",
"0.5904284",
"0.5766346",
"0.5758683",
"0.55893403",
"0.53797585",
"0.53188044",
"0.52594256",
"0.5241908",
"0.5208643",
"0.5205043",
"0.5183871",
"0.517196",
"0.5159378",
"0.5149252",
"0.51341176",
"0.5105189",
"0.50837415",
"0.50824136",
"0.5046331",
"0.5011056... | 0.59730947 | 1 |
TODO Autogenerated method stub | public static void main(String[] args) {
FileUTL fUtl = new FileUTL();
String fileAddres = "C:\\Users\\lenovo\\Desktop\\医嘱和对应路径信息\\";
String filename = fileAddres+"12个病人的医嘱信息-utf8.csv";
String splitSign = ",";
String dateSign = "/";
fUtl.readFile(filename, splitSign, dateSign);
} | {
"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 |
no leading and trailing whitespaces | @Test
public void parse_validArgs_returnsFindActivityTagCommand() {
FindActivityTagCommand expectedFindActivityTagCommand =
new FindActivityTagCommand(new ActivityTagContainsPredicate(Arrays.asList("Cheese", "Japan")));
assertParseSuccess(parser, "Cheese Japan", expectedFindActivityTagCommand);
// multiple whitespaces between keywords
assertParseSuccess(parser, " \n Cheese \n \t Japan \t", expectedFindActivityTagCommand);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void skipBlankSpaces() {\n while (currentIndex < this.data.length) {\n if (!Character.isWhitespace(data[currentIndex])) {\n break;\n }\n currentIndex++;\n }\n }",
"Rule WhiteSpace() {\n return ZeroOrMore(AnyOf(\" \\n\\r\\t\\f\"));\n ... | [
"0.721398",
"0.7167965",
"0.7117635",
"0.70888853",
"0.69413906",
"0.68304145",
"0.68304145",
"0.6778694",
"0.67237246",
"0.66845876",
"0.66776955",
"0.6622409",
"0.6578067",
"0.6558231",
"0.65169185",
"0.6506803",
"0.6466647",
"0.64454937",
"0.6415529",
"0.63983905",
"0.6385... | 0.0 | -1 |
Sets the onRun Runnable | public static OnRun onRun( Runnable run )
{
return new OnRun( run );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRunnable(Runnable runnable) {\n this.runnable = runnable;\n }",
"@Override\n public void run() {\n mRunnable.onPreExecute();\n mExecutor.onPreExecuteCallback(mRunnable);\n }",
"public void setRun(Boolean run){\n runnnig = run;\n }",
"void... | [
"0.7180456",
"0.6447137",
"0.61434054",
"0.5925773",
"0.5883201",
"0.5873181",
"0.57865435",
"0.57847047",
"0.57726187",
"0.577011",
"0.57133174",
"0.5707774",
"0.5694742",
"0.56764096",
"0.56503224",
"0.56459725",
"0.5642047",
"0.56299543",
"0.56182486",
"0.56170356",
"0.559... | 0.74271894 | 0 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
DashboardFragBinding binding = DataBindingUtil.inflate(inflater, R.layout.dashboard_frag, container, false);
return binding.getRoot();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
launch the specified browser | @Parameters({ "browser", "appUrl" })
@BeforeTest
public WebDriver openBrowser(String browser, String appUrl) throws MalformedURLException {
String os = System.getProperty("os.name").toLowerCase();
try {
if (browser.equalsIgnoreCase("firefox")) {
System.setProperty("webdriver.gecko.driver",gecko_driver_linux);
FirefoxProfile fprofile = new FirefoxProfile();
fprofile.setAcceptUntrustedCertificates(true);
fprofile.setAssumeUntrustedCertificateIssuer(false);
// Pass fprofile parameter In webdriver to use preferences to download
// file.
System.setProperty("webdriver.gecko.driver", "/usr/bin/geckodriver");
driver = new FirefoxDriver();
} else if (browser.equalsIgnoreCase("chrome")) {
System.setProperty("webdriver.chrome.driver", chrome_driver);
driver = new ChromeDriver();
} else if (browser.equalsIgnoreCase("safari")){
driver = new SafariDriver();
}else if (browser.equalsIgnoreCase("ie")) {
System.setProperty("webdriver.ie.driver", ie_driver);
driver = new InternetExplorerDriver();
}
driver.manage().window().maximize();
driver.get(appUrl);
return driver;
} catch (Exception e) {
e.getMessage();
}
return driver;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void launchSite(String browser) throws AWTException, IOException, InterruptedException\n\t{\n\t\topenBrowserAndSite(browser);\n\t}",
"@Given(\"^launch the browser \\\"([^\\\"]*)\\\"$\")\n\tpublic void launch_the_browser(String url) throws Throwable {\n\t\tdriver = getDriver();\n\t\tdriver.get(url);... | [
"0.7504187",
"0.7501904",
"0.7501333",
"0.7419062",
"0.7412537",
"0.73403925",
"0.7263311",
"0.7180409",
"0.7149974",
"0.7128746",
"0.7052985",
"0.7006379",
"0.6988482",
"0.6967493",
"0.6947904",
"0.68750596",
"0.6871841",
"0.68322366",
"0.681292",
"0.677402",
"0.67025995",
... | 0.6600081 | 26 |
optional string name = 1; optional string name = 1; | boolean hasName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String name)\n/* */ {\n/* 84 *... | [
"0.6737366",
"0.6550171",
"0.6531222",
"0.6408561",
"0.6352195",
"0.63478094",
"0.6339076",
"0.6264758",
"0.6264758",
"0.6264758",
"0.6264758",
"0.6241472",
"0.6177932",
"0.61779135",
"0.6165531",
"0.6162522",
"0.6131763",
"0.61240315",
"0.61196494",
"0.61147517",
"0.60627025... | 0.0 | -1 |
optional string name = 1; | java.lang.String getName(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void... | [
"0.74156314",
"0.73947275",
"0.72931343",
"0.722587",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71254766",
"0.7042126",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7032075",
"0.69701284",
"0.6963385",
"0.695678",
"0.69470596",
"0.6932955",
"0.69266... | 0.0 | -1 |
optional string name = 1; | com.google.protobuf.ByteString
getNameBytes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void... | [
"0.7415193",
"0.7394258",
"0.729242",
"0.7225616",
"0.7142188",
"0.7142188",
"0.7142188",
"0.7142188",
"0.7124642",
"0.704143",
"0.7035703",
"0.7035703",
"0.7035703",
"0.7035703",
"0.703168",
"0.6969442",
"0.69625455",
"0.69563097",
"0.6946523",
"0.6932603",
"0.69257647",
"... | 0.0 | -1 |
optional int32 id = 2; optional int32 id = 2; In a file of records of type Protein ids will | boolean hasId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void idlize() throws IOException {\r\n\t\t/**give mid who has name a id, for other mid, keep using mid to identify them*/\r\n\t\t//\t\tHashMap<String, Integer> namedmid2name = new HashMap<String, Integer>(20000000);\r\n\t\t//\t\tHashMap<String, Integer> relationname2id = new HashMap<String, Integer>(1000000... | [
"0.599899",
"0.58438325",
"0.56366503",
"0.55939984",
"0.55567765",
"0.5412071",
"0.5383898",
"0.53625983",
"0.5346771",
"0.52589184",
"0.52447003",
"0.52192014",
"0.51957786",
"0.5147815",
"0.5143385",
"0.51330143",
"0.5132791",
"0.5128793",
"0.51287246",
"0.5113718",
"0.509... | 0.0 | -1 |
optional int32 id = 2; In a file of records of type Protein ids will | int getId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void idlize() throws IOException {\r\n\t\t/**give mid who has name a id, for other mid, keep using mid to identify them*/\r\n\t\t//\t\tHashMap<String, Integer> namedmid2name = new HashMap<String, Integer>(20000000);\r\n\t\t//\t\tHashMap<String, Integer> relationname2id = new HashMap<String, Integer>(1000000... | [
"0.6008695",
"0.5880774",
"0.5836637",
"0.5629748",
"0.55493927",
"0.5451436",
"0.5427086",
"0.5412266",
"0.53402615",
"0.5337522",
"0.5337499",
"0.53348273",
"0.5303492",
"0.52798796",
"0.52786607",
"0.5261937",
"0.5235576",
"0.5223284",
"0.52216434",
"0.5214431",
"0.5194037... | 0.0 | -1 |
optional string residues = 3; optional string residues = 3; usually be numbered sequentially. | boolean hasResidues(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getResidues();",
"public Builder setResidues(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String ... | [
"0.6503305",
"0.6320637",
"0.5611154",
"0.55559504",
"0.55280805",
"0.5395395",
"0.53659534",
"0.5141419",
"0.49817008",
"0.48224068",
"0.47537264",
"0.46486726",
"0.4634953",
"0.46222705",
"0.45618212",
"0.4559067",
"0.45572215",
"0.45228228",
"0.45215788",
"0.45136228",
"0.... | 0.50625014 | 8 |
optional string residues = 3; usually be numbered sequentially. | java.lang.String getResidues(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Builder setResidues(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String getResidues() {\n java.lang.Obje... | [
"0.6192523",
"0.54703444",
"0.54320204",
"0.53430146",
"0.5179291",
"0.512601",
"0.49395695",
"0.48429784",
"0.4722289",
"0.47159922",
"0.46766278",
"0.46699157",
"0.46671402",
"0.4631843",
"0.4602065",
"0.45691842",
"0.4545522",
"0.45275655",
"0.4526531",
"0.45224777",
"0.45... | 0.632804 | 0 |
optional string residues = 3; usually be numbered sequentially. | com.google.protobuf.ByteString
getResiduesBytes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getResidues();",
"public Builder setResidues(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String ... | [
"0.6327813",
"0.6192469",
"0.54701954",
"0.54318446",
"0.53435236",
"0.517985",
"0.51273394",
"0.49388522",
"0.4843686",
"0.47237444",
"0.47163254",
"0.4672512",
"0.46661896",
"0.46322954",
"0.46011934",
"0.4569921",
"0.45437083",
"0.45296323",
"0.45279846",
"0.45203218",
"0.... | 0.46710652 | 12 |
optional int32 target_pos = 5; optional int32 target_pos = 5; Index in target protein that this decoy protein is from | boolean hasTargetPos(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getTargetPos();",
"public int getTargetPos() {\n return targetPos_;\n }",
"public int getTargetPos() {\n return targetPos_;\n }",
"@Override\n public int getTargetPosition() {\n return 0;\n }",
"public void setTargetPos(final int target) {\n \n switch(targ... | [
"0.7046045",
"0.67126375",
"0.657286",
"0.643083",
"0.63265824",
"0.62057316",
"0.6194662",
"0.60666156",
"0.60061854",
"0.5889972",
"0.5732122",
"0.57251924",
"0.57086873",
"0.5626416",
"0.5606181",
"0.55972534",
"0.5545642",
"0.5520039",
"0.547091",
"0.5469641",
"0.5441355"... | 0.5474967 | 18 |
optional int32 target_pos = 5; Index in target protein that this decoy protein is from | int getTargetPos(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTargetPos() {\n return targetPos_;\n }",
"public int getTargetPos() {\n return targetPos_;\n }",
"public void setTargetPos(final int target) {\n \n switch(target){\n // Set target position right from current position\n case T_RIGHT:\n ... | [
"0.711838",
"0.7026227",
"0.6587456",
"0.6540184",
"0.63887453",
"0.6240099",
"0.60881144",
"0.60421956",
"0.60260797",
"0.59927416",
"0.5961661",
"0.5951217",
"0.5929538",
"0.5864982",
"0.5806449",
"0.57913244",
"0.5777108",
"0.57526284",
"0.5707325",
"0.56631124",
"0.565960... | 0.7208216 | 0 |
Use Protein.newBuilder() to construct. | private Protein(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Before\r\n\tpublic void constructObj (){\r\n\t\tproteinSeq = new ProteinSequence(new char[]{'A','A','T','G','C','C','A','G','T','C','A','G','C','A','T','A','G','C','G'});\r\n\t}",
"private InTotoProvenance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Primary... | [
"0.61633486",
"0.6119803",
"0.5882147",
"0.5533963",
"0.5445197",
"0.53767276",
"0.52857924",
"0.52823484",
"0.51701105",
"0.5137047",
"0.5111234",
"0.5068884",
"0.50557715",
"0.50557476",
"0.50543547",
"0.50491863",
"0.50389075",
"0.50260675",
"0.50101346",
"0.49996436",
"0.... | 0.71585727 | 0 |
optional string name = 1; | public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void... | [
"0.74141526",
"0.7393322",
"0.7291197",
"0.7224721",
"0.71405584",
"0.71405584",
"0.71405584",
"0.71405584",
"0.7123966",
"0.7040823",
"0.7034966",
"0.7034966",
"0.7034966",
"0.7034966",
"0.70301276",
"0.6968112",
"0.696168",
"0.695565",
"0.6945353",
"0.693079",
"0.6924449",
... | 0.0 | -1 |
optional string name = 1; | public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void... | [
"0.74156314",
"0.73947275",
"0.72931343",
"0.722587",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71254766",
"0.7042126",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7032075",
"0.69701284",
"0.6963385",
"0.695678",
"0.69470596",
"0.6932955",
"0.69266... | 0.0 | -1 |
optional string name = 1; | public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void... | [
"0.74156314",
"0.73947275",
"0.72931343",
"0.722587",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71254766",
"0.7042126",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7032075",
"0.69701284",
"0.6963385",
"0.695678",
"0.69470596",
"0.6932955",
"0.69266... | 0.0 | -1 |
optional int32 id = 2; In a file of records of type Protein ids will | public boolean hasId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void idlize() throws IOException {\r\n\t\t/**give mid who has name a id, for other mid, keep using mid to identify them*/\r\n\t\t//\t\tHashMap<String, Integer> namedmid2name = new HashMap<String, Integer>(20000000);\r\n\t\t//\t\tHashMap<String, Integer> relationname2id = new HashMap<String, Integer>(1000000... | [
"0.60092556",
"0.5881239",
"0.58381104",
"0.56293046",
"0.5548622",
"0.54523504",
"0.54284674",
"0.54136115",
"0.5342356",
"0.53369534",
"0.5336932",
"0.5334068",
"0.53036773",
"0.52810013",
"0.52784264",
"0.5263812",
"0.5237166",
"0.5224378",
"0.5222973",
"0.5215472",
"0.519... | 0.0 | -1 |
optional int32 id = 2; In a file of records of type Protein ids will | public int getId() {
return id_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void idlize() throws IOException {\r\n\t\t/**give mid who has name a id, for other mid, keep using mid to identify them*/\r\n\t\t//\t\tHashMap<String, Integer> namedmid2name = new HashMap<String, Integer>(20000000);\r\n\t\t//\t\tHashMap<String, Integer> relationname2id = new HashMap<String, Integer>(1000000... | [
"0.6010556",
"0.5881097",
"0.5839398",
"0.56289124",
"0.5548525",
"0.5454386",
"0.5428288",
"0.5413728",
"0.5342824",
"0.5338796",
"0.5338127",
"0.5332949",
"0.5302755",
"0.52813387",
"0.5277661",
"0.5264038",
"0.5235287",
"0.52260107",
"0.5222706",
"0.5213473",
"0.5195747",
... | 0.0 | -1 |
optional string residues = 3; usually be numbered sequentially. | public boolean hasResidues() {
return ((bitField0_ & 0x00000004) == 0x00000004);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getResidues();",
"public Builder setResidues(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String ... | [
"0.6329081",
"0.6194227",
"0.54719037",
"0.5433558",
"0.53454846",
"0.518184",
"0.5128492",
"0.49376035",
"0.48442668",
"0.4724605",
"0.47152042",
"0.46729997",
"0.46720904",
"0.46649334",
"0.46318775",
"0.45997924",
"0.45697337",
"0.4542916",
"0.45292935",
"0.4528893",
"0.45... | 0.42030525 | 75 |
optional string residues = 3; usually be numbered sequentially. | public java.lang.String getResidues() {
java.lang.Object ref = residues_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
residues_ = s;
}
return s;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getResidues();",
"public Builder setResidues(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String ... | [
"0.6329081",
"0.6194227",
"0.5433558",
"0.53454846",
"0.518184",
"0.5128492",
"0.49376035",
"0.48442668",
"0.4724605",
"0.47152042",
"0.46729997",
"0.46720904",
"0.46649334",
"0.46318775",
"0.45997924",
"0.45697337",
"0.4542916",
"0.45292935",
"0.4528893",
"0.4520108",
"0.451... | 0.54719037 | 2 |
optional string residues = 3; usually be numbered sequentially. | public com.google.protobuf.ByteString
getResiduesBytes() {
java.lang.Object ref = residues_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
residues_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getResidues();",
"public Builder setResidues(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String ... | [
"0.632804",
"0.6192523",
"0.54703444",
"0.54320204",
"0.53430146",
"0.512601",
"0.49395695",
"0.48429784",
"0.4722289",
"0.47159922",
"0.46766278",
"0.46699157",
"0.46671402",
"0.4631843",
"0.4602065",
"0.45691842",
"0.4545522",
"0.45275655",
"0.4526531",
"0.45224777",
"0.451... | 0.5179291 | 5 |
optional int32 target_pos = 5; Index in target protein that this decoy protein is from | public boolean hasTargetPos() {
return ((bitField0_ & 0x00000008) == 0x00000008);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getTargetPos();",
"public int getTargetPos() {\n return targetPos_;\n }",
"public int getTargetPos() {\n return targetPos_;\n }",
"public void setTargetPos(final int target) {\n \n switch(target){\n // Set target position right from current position\n ... | [
"0.7206571",
"0.7117444",
"0.7025358",
"0.6587333",
"0.654027",
"0.6389806",
"0.6238807",
"0.6088033",
"0.6042456",
"0.6026513",
"0.5990601",
"0.596186",
"0.5950487",
"0.59256035",
"0.58652",
"0.58051986",
"0.5791811",
"0.5778122",
"0.5752512",
"0.5707377",
"0.56628066",
"0... | 0.51410234 | 85 |
optional int32 target_pos = 5; Index in target protein that this decoy protein is from | public int getTargetPos() {
return targetPos_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getTargetPos();",
"public int getTargetPos() {\n return targetPos_;\n }",
"public void setTargetPos(final int target) {\n \n switch(target){\n // Set target position right from current position\n case T_RIGHT:\n if(this.columnT < this.buffer.ge... | [
"0.7208216",
"0.7026227",
"0.6587456",
"0.6540184",
"0.63887453",
"0.6240099",
"0.60881144",
"0.60421956",
"0.60260797",
"0.59927416",
"0.5961661",
"0.5951217",
"0.5929538",
"0.5864982",
"0.5806449",
"0.57913244",
"0.5777108",
"0.57526284",
"0.5707325",
"0.56631124",
"0.56596... | 0.711838 | 1 |
optional string name = 1; | public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void... | [
"0.74156314",
"0.73947275",
"0.72931343",
"0.722587",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71254766",
"0.7042126",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7032075",
"0.69701284",
"0.6963385",
"0.695678",
"0.69470596",
"0.6932955",
"0.69266... | 0.0 | -1 |
optional string name = 1; | public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void... | [
"0.7415193",
"0.7394258",
"0.729242",
"0.7225616",
"0.7142188",
"0.7142188",
"0.7142188",
"0.7142188",
"0.7124642",
"0.704143",
"0.7035703",
"0.7035703",
"0.7035703",
"0.7035703",
"0.703168",
"0.6969442",
"0.69625455",
"0.69563097",
"0.6946523",
"0.6932603",
"0.69257647",
"... | 0.0 | -1 |
optional string name = 1; | public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void... | [
"0.74141526",
"0.7393322",
"0.7291197",
"0.7224721",
"0.71405584",
"0.71405584",
"0.71405584",
"0.71405584",
"0.7123966",
"0.7040823",
"0.7034966",
"0.7034966",
"0.7034966",
"0.7034966",
"0.70301276",
"0.6968112",
"0.696168",
"0.695565",
"0.6945353",
"0.693079",
"0.6924449",
... | 0.0 | -1 |
optional string name = 1; | public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void... | [
"0.74156314",
"0.73947275",
"0.72931343",
"0.722587",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71254766",
"0.7042126",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7032075",
"0.69701284",
"0.6963385",
"0.695678",
"0.69470596",
"0.6932955",
"0.69266... | 0.0 | -1 |
optional string name = 1; | public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void... | [
"0.74156314",
"0.73947275",
"0.72931343",
"0.722587",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71425295",
"0.71254766",
"0.7042126",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7036526",
"0.7032075",
"0.69701284",
"0.6963385",
"0.695678",
"0.69470596",
"0.6932955",
"0.69266... | 0.0 | -1 |
optional string name = 1; | public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name){this.name = name;}",
"public void setName(String name){this.name=name;}",
"public void setName(String n){ name=n; }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void... | [
"0.7415193",
"0.7394258",
"0.729242",
"0.7225616",
"0.7142188",
"0.7142188",
"0.7142188",
"0.7142188",
"0.7124642",
"0.704143",
"0.7035703",
"0.7035703",
"0.7035703",
"0.7035703",
"0.703168",
"0.6969442",
"0.69625455",
"0.69563097",
"0.6946523",
"0.6932603",
"0.69257647",
"... | 0.0 | -1 |
optional int32 id = 2; In a file of records of type Protein ids will | public boolean hasId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void idlize() throws IOException {\r\n\t\t/**give mid who has name a id, for other mid, keep using mid to identify them*/\r\n\t\t//\t\tHashMap<String, Integer> namedmid2name = new HashMap<String, Integer>(20000000);\r\n\t\t//\t\tHashMap<String, Integer> relationname2id = new HashMap<String, Integer>(1000000... | [
"0.6010556",
"0.5881097",
"0.5839398",
"0.56289124",
"0.5548525",
"0.5454386",
"0.5428288",
"0.5413728",
"0.5342824",
"0.5338796",
"0.5338127",
"0.5332949",
"0.5302755",
"0.52813387",
"0.5277661",
"0.5264038",
"0.5235287",
"0.52260107",
"0.5222706",
"0.5213473",
"0.5195747",
... | 0.0 | -1 |
optional int32 id = 2; In a file of records of type Protein ids will | public int getId() {
return id_;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void idlize() throws IOException {\r\n\t\t/**give mid who has name a id, for other mid, keep using mid to identify them*/\r\n\t\t//\t\tHashMap<String, Integer> namedmid2name = new HashMap<String, Integer>(20000000);\r\n\t\t//\t\tHashMap<String, Integer> relationname2id = new HashMap<String, Integer>(1000000... | [
"0.6008695",
"0.5880774",
"0.5836637",
"0.5629748",
"0.55493927",
"0.5451436",
"0.5427086",
"0.5412266",
"0.53402615",
"0.5337522",
"0.5337499",
"0.53348273",
"0.5303492",
"0.52798796",
"0.52786607",
"0.5261937",
"0.5235576",
"0.5223284",
"0.52216434",
"0.5214431",
"0.5194037... | 0.0 | -1 |
optional int32 id = 2; In a file of records of type Protein ids will | public Builder setId(int value) {
bitField0_ |= 0x00000002;
id_ = value;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void idlize() throws IOException {\r\n\t\t/**give mid who has name a id, for other mid, keep using mid to identify them*/\r\n\t\t//\t\tHashMap<String, Integer> namedmid2name = new HashMap<String, Integer>(20000000);\r\n\t\t//\t\tHashMap<String, Integer> relationname2id = new HashMap<String, Integer>(1000000... | [
"0.6008695",
"0.5880774",
"0.5836637",
"0.5629748",
"0.55493927",
"0.5451436",
"0.5427086",
"0.5412266",
"0.53402615",
"0.5337522",
"0.5337499",
"0.53348273",
"0.5303492",
"0.52798796",
"0.52786607",
"0.5261937",
"0.5235576",
"0.5223284",
"0.52216434",
"0.5214431",
"0.5194037... | 0.0 | -1 |
optional int32 id = 2; In a file of records of type Protein ids will | public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000002);
id_ = 0;
onChanged();
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void idlize() throws IOException {\r\n\t\t/**give mid who has name a id, for other mid, keep using mid to identify them*/\r\n\t\t//\t\tHashMap<String, Integer> namedmid2name = new HashMap<String, Integer>(20000000);\r\n\t\t//\t\tHashMap<String, Integer> relationname2id = new HashMap<String, Integer>(1000000... | [
"0.60092556",
"0.5881239",
"0.58381104",
"0.56293046",
"0.5548622",
"0.54523504",
"0.54284674",
"0.54136115",
"0.5342356",
"0.53369534",
"0.5336932",
"0.5334068",
"0.53036773",
"0.52810013",
"0.52784264",
"0.5263812",
"0.5237166",
"0.5224378",
"0.5222973",
"0.5215472",
"0.519... | 0.0 | -1 |
optional string residues = 3; usually be numbered sequentially. | public boolean hasResidues() {
return ((bitField0_ & 0x00000004) == 0x00000004);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getResidues();",
"public Builder setResidues(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String ... | [
"0.6327813",
"0.6192469",
"0.54701954",
"0.54318446",
"0.53435236",
"0.517985",
"0.51273394",
"0.49388522",
"0.4843686",
"0.47237444",
"0.47163254",
"0.4672512",
"0.46710652",
"0.46661896",
"0.46322954",
"0.46011934",
"0.4569921",
"0.45437083",
"0.45296323",
"0.45279846",
"0.... | 0.41846168 | 82 |
optional string residues = 3; usually be numbered sequentially. | public java.lang.String getResidues() {
java.lang.Object ref = residues_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
residues_ = s;
return s;
} else {
return (java.lang.String) ref;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getResidues();",
"public Builder setResidues(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n residues_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String ... | [
"0.6329081",
"0.6194227",
"0.54719037",
"0.53454846",
"0.518184",
"0.5128492",
"0.49376035",
"0.48442668",
"0.4724605",
"0.47152042",
"0.46729997",
"0.46720904",
"0.46649334",
"0.46318775",
"0.45997924",
"0.45697337",
"0.4542916",
"0.45292935",
"0.4528893",
"0.4520108",
"0.45... | 0.5433558 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.