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 |
|---|---|---|---|---|---|---|
TODO Autogenerated method stub | @Override
public void validaDatos() {
} | {
"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 |
TODO Autogenerated method stub | @Override
public void validaDatos() {
} | {
"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 |
TODO Autogenerated method stub | @Override
public void validaDatos() {
} | {
"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 |
TODO Autogenerated method stub | @Override
public void validaDatos() {
} | {
"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 |
TODO Autogenerated method stub | @Override
public void validaDatos() {
} | {
"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 |
TODO Autogenerated method stub | @Override
public void validaDatos() {
} | {
"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 |
TODO Autogenerated method stub | @Override
public void validaDatos() {
} | {
"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 |
TODO Autogenerated method stub | @Override
public void validaDatos() {
} | {
"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 |
TODO Autogenerated method stub | @Override
public void validaDatos() {
} | {
"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 |
TODO Autogenerated method stub | @Override
public void validaDatos() {
} | {
"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 |
Java Recursion Example 1: Infinite times | static void p(){
System.out.println("My recursion example 1");
p();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"CalculationResult goInfinite();",
"static long factorialRecurse(int n) {\r\n if (n == 0 || n == 1) {\r\n return 1;\r\n }\r\n return factorialRecurse(n - 1) * n;\r\n }",
"@Test public void selfRecursive() {\n check(\"declare function local:f($i) { if($i eq 12345) then $i el... | [
"0.6597498",
"0.65748894",
"0.637071",
"0.6275312",
"0.62546474",
"0.5989268",
"0.59429896",
"0.5903885",
"0.58287853",
"0.581978",
"0.5812973",
"0.58046967",
"0.5803731",
"0.57857275",
"0.5763948",
"0.5763744",
"0.57520694",
"0.5686441",
"0.56745607",
"0.5652095",
"0.5619538... | 0.6862377 | 0 |
Created by Meiji on 2017/5/9. | public interface IVideoApi {
/**
* 获取视频标题等信息
* http://toutiao.com/api/article/recent/?source=2&category=类型&as=A105177907376A5&cp=5797C7865AD54E1&count=20"
*/
@GET("api/article/recent/?source=2&as=A105177907376A5&cp=5797C7865AD54E1&count=30")
Observable<ResponseBody> getVideoArticle(
@Query("category") String category,
@Query("_") String time);
/**
* 获取视频信息
* Api 生成较复杂 详情查看 {@linkplain com.meiji.toutiao.module.video.content.VideoContentPresenter#doLoadVideoData(String)}
* http://ib.365yg.com/video/urls/v/1/toutiao/mp4/视频ID?r=17位随机数&s=加密结果
*/
@GET
Observable<VideoContentBean> getVideoContent(@Url String url);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpubl... | [
"0.60901225",
"0.5893037",
"0.5886684",
"0.5886684",
"0.5874931",
"0.5860185",
"0.5826849",
"0.5770583",
"0.57614475",
"0.57376254",
"0.5730767",
"0.56984305",
"0.5696308",
"0.5679484",
"0.56670123",
"0.5662964",
"0.5634709",
"0.5628835",
"0.5621745",
"0.5591665",
"0.55794746... | 0.0 | -1 |
Constructs an instance of this object. | public Tag(String key, String value) {
setKey(key);
setValue(value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Instantiation(){}",
"protected abstract void construct();",
"Constructor() {\r\n\t\t \r\n\t }",
"public Instance() {\n }",
"public Constructor(){\n\t\t\n\t}",
"Reproducible newInstance();",
"Instance createInstance();",
"public ObjectFactory() {\n super(grammarInfo);\n }",
"pub... | [
"0.7097721",
"0.6708468",
"0.66993845",
"0.6611118",
"0.6570859",
"0.656304",
"0.6414013",
"0.63846934",
"0.6383381",
"0.6383381",
"0.6383381",
"0.63337547",
"0.63293505",
"0.6329333",
"0.6323472",
"0.6288401",
"0.6288401",
"0.62726927",
"0.62726927",
"0.62425464",
"0.6242546... | 0.0 | -1 |
Set the tag key. | public void setKey(String key) throws ClientException {
Pattern pattern = Pattern.compile(KEY_REGEX);
Matcher matcher = pattern.matcher(key);
if (matcher.matches()) {
this.key = key;
} else {
throw new ClientException("your key is invalid", OSSErrorCode.INVALID_ARGUMENT, null);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTagKey(String tagKey) {\n this.tagKey = tagKey;\n }",
"public void setKey(String key) {\n if (element != null) {\n element.setKey(key);\n }\n }",
"public void setKey(final String key);",
"public void setKey(final String key);",
"void setK... | [
"0.7363941",
"0.6778644",
"0.6772145",
"0.6772145",
"0.67631364",
"0.6754455",
"0.67404366",
"0.67361474",
"0.67164636",
"0.6710416",
"0.6707471",
"0.66893315",
"0.666976",
"0.6664032",
"0.6637805",
"0.6631986",
"0.66311395",
"0.6620801",
"0.6620801",
"0.6620801",
"0.6620033"... | 0.0 | -1 |
Set the tag value. | public void setValue(String value) throws ClientException {
Pattern pattern = Pattern.compile(VALUE_REGEX);
Matcher matcher = pattern.matcher(value);
if (matcher.matches()) {
this.value = value;
} else {
throw new ClientException("your value is invalid", OSSErrorCode.INVALID_ARGUMENT, null);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTag(String tagName, Object value);",
"public void setTag(Object tag)\n {\n fTag = tag;\n }",
"void setTag(java.lang.String tag);",
"public void setToTag(String tag) throws ParseException,NullPointerException;",
"public void setTag(String tag);",
"public static void setTag(Tag ... | [
"0.77587694",
"0.73228353",
"0.69824994",
"0.6930416",
"0.69202733",
"0.68387777",
"0.67361665",
"0.67327994",
"0.67303187",
"0.6727716",
"0.65920866",
"0.65920866",
"0.65885544",
"0.65859467",
"0.65620923",
"0.65308845",
"0.65302527",
"0.6524378",
"0.6519963",
"0.65125227",
... | 0.0 | -1 |
Returns the size of this serialized object in bytes | public int getMarshalledSize()
{
int marshalSize = 0;
marshalSize += recordType.getMarshalledSize();
marshalSize += changeIndicator.getMarshalledSize();
marshalSize += entityType.getMarshalledSize();
marshalSize += 2; // padding
marshalSize += 4; // padding1
return marshalSize;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int serializedSizeInBytes() {\n\t\treturn this.sizeInBytes() + 3 * 4;\n\t}",
"public int getSize() {\n return this.serialize().limit();\n }",
"public int size() {\n\t\tif (baos == null || baos.toByteArray() == null) return 0;\n\t\telse return baos.toByteArray().length;\n\t}",
"public java.la... | [
"0.8364493",
"0.76924604",
"0.76735914",
"0.7638173",
"0.76136434",
"0.75876606",
"0.755861",
"0.74876976",
"0.73612",
"0.7336066",
"0.7331558",
"0.72940975",
"0.7291328",
"0.72901756",
"0.7286639",
"0.7286639",
"0.7286639",
"0.7286639",
"0.72861713",
"0.72647226",
"0.7260993... | 0.72092956 | 26 |
Serializes an object to a DataOutputStream. | public void marshal(DataOutputStream dos) throws Exception
{
try
{
recordType.marshal(dos);
changeIndicator.marshal(dos);
entityType.marshal(dos);
dos.writeShort( (short)padding);
dos.writeInt( (int)padding1);
}
catch(Exception e)
{
System.err.println(e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeObject(OutputStream stream, Object object, int format) throws IOException;",
"void serialize(Object obj, OutputStream stream) throws IOException;",
"public abstract void serialize(DataOutputStream dataOutputStream) throws IOException;",
"public abstract void serialize(OutputStream stream, T ... | [
"0.7594018",
"0.75842583",
"0.7218151",
"0.71532375",
"0.7060227",
"0.6992179",
"0.69737077",
"0.69535524",
"0.6940301",
"0.6932118",
"0.6854399",
"0.6828336",
"0.68141717",
"0.6710562",
"0.66788924",
"0.6626738",
"0.6614246",
"0.6596821",
"0.6591274",
"0.65796953",
"0.657096... | 0.0 | -1 |
Unserializes an object from a DataInputStream. | public int unmarshal(DataInputStream dis) throws Exception
{
int uPosition = 0;
try
{
recordType = VariableParameterRecordType.unmarshalEnum(dis);
uPosition += recordType.getMarshalledSize();
changeIndicator = EntityVPRecordChangeIndicator.unmarshalEnum(dis);
uPosition += changeIndicator.getMarshalledSize();
uPosition += entityType.unmarshal(dis);
padding = (short)dis.readUnsignedShort();
uPosition += 2;
padding1 = dis.readInt();
uPosition += 4;
}
catch(Exception e)
{
System.out.println(e);
}
return getMarshalledSize();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"InputStream deserialize(InputStream toDeserialize);",
"void deserialize(@NotNull InputStream in) throws IOException;",
"Object deserialize(Class objClass, InputStream stream) throws IOException;",
"T deserialize(InputStream stream) throws IOException;",
"private void readObject(java.io.ObjectInputStream in... | [
"0.6753063",
"0.67354083",
"0.6655444",
"0.65200627",
"0.64520156",
"0.6424979",
"0.6395261",
"0.63929725",
"0.6301523",
"0.6263989",
"0.62420833",
"0.6239937",
"0.6233511",
"0.61894494",
"0.6183486",
"0.6175731",
"0.6079519",
"0.60670763",
"0.606004",
"0.60491437",
"0.603065... | 0.0 | -1 |
Packs an object into the ByteBuffer. | public void marshal(java.nio.ByteBuffer buff) throws Exception
{
recordType.marshal(buff);
changeIndicator.marshal(buff);
entityType.marshal(buff);
buff.putShort( (short)padding);
buff.putInt( (int)padding1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private byte[] packObject(ProtocolObject obj) {\n ByteArrayOutputStream bos = new ByteArrayOutputStream(37);\n for (int i = 0; i < 5; i++) {\n \t// write header bytes...\n \tbos.write(0);\n }\n packObject(obj, bos);\n return bos.toByteArray();\n }",
"public voi... | [
"0.708143",
"0.63631797",
"0.61871153",
"0.60500133",
"0.6004228",
"0.5967691",
"0.59532773",
"0.59270024",
"0.58616203",
"0.5803105",
"0.5750658",
"0.571282",
"0.569614",
"0.569614",
"0.569614",
"0.569614",
"0.569614",
"0.569614",
"0.5590557",
"0.55639845",
"0.5560677",
"0... | 0.5671809 | 18 |
Unpacks a Pdu from the underlying data. | public int unmarshal(java.nio.ByteBuffer buff) throws Exception
{
recordType = VariableParameterRecordType.unmarshalEnum(buff);
changeIndicator = EntityVPRecordChangeIndicator.unmarshalEnum(buff);
entityType.unmarshal(buff);
padding = (short)(buff.getShort() & 0xFFFF);
padding1 = buff.getInt();
return getMarshalledSize();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int decompose(long paramLong, DecomposeArgs paramDecomposeArgs)\n/* */ {\n/* 456 */ int i = getExtraDataIndex(paramLong);\n/* 457 */ paramDecomposeArgs.length = extraData[(i++)];\n/* */ \n/* 459 */ if ((paramDecomposeArgs.length & 0x80) > 0)\n/* */ {\n/* 461 ... | [
"0.5172028",
"0.5165741",
"0.5159844",
"0.5123821",
"0.5101708",
"0.50336105",
"0.5012526",
"0.5012526",
"0.49939975",
"0.49759296",
"0.49114653",
"0.48958582",
"0.4890522",
"0.4885149",
"0.48780665",
"0.48691335",
"0.4863678",
"0.48150772",
"0.4805869",
"0.47853902",
"0.4721... | 0.44427913 | 34 |
/ Override of default equals method. Calls equalsImpl() for content comparison. | @Override
public boolean equals(Object obj)
{
if(this == obj)
return true;
if(obj == null)
return false;
if(!getClass().isAssignableFrom(obj.getClass())) //if(getClass() != obj.getClass())
return false;
return equalsImpl(obj);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public final boolean equals(final Object other) {\n return super.equals(other);\n }",
"@Override\n\tpublic abstract boolean equals(Object other);",
"@Override public boolean equals(Object object);",
"@Override\n public abstract boolean equals(Object other);",
"@Override\n pub... | [
"0.79249686",
"0.7828631",
"0.77949375",
"0.7772397",
"0.7772397",
"0.7771628",
"0.7771628",
"0.7768197",
"0.7728093",
"0.76893854",
"0.76612586",
"0.76446354",
"0.7605421",
"0.7578525",
"0.75755996",
"0.75697637",
"0.75558066",
"0.75558066",
"0.75558066",
"0.75558066",
"0.75... | 0.67471313 | 72 |
Compare all fields that contribute to the state, ignoring transient and static fields, for this and the supplied object | public boolean equalsImpl(Object obj)
{
boolean ivarsEqual = true;
final EntityTypeVP rhs = (EntityTypeVP)obj;
if( ! (recordType == rhs.recordType)) ivarsEqual = false;
if( ! (changeIndicator == rhs.changeIndicator)) ivarsEqual = false;
if( ! (entityType.equals( rhs.entityType) )) ivarsEqual = false;
if( ! (padding == rhs.padding)) ivarsEqual = false;
if( ! (padding1 == rhs.padding1)) ivarsEqual = false;
return ivarsEqual;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean haveTwoObjsSameFields(Class classObjects, Object obj1, Object obj2, ArrayList<String> fieldsToExcludeFromCompare) {\n log.info(\"TEST: comparing two objects of class \"+classObjects.getName());\n if (obj1.getClass() != obj2.getClass()) {\n log.error(\"TEST: The two objects... | [
"0.6224978",
"0.5776585",
"0.5627261",
"0.56241596",
"0.5596343",
"0.55433035",
"0.5531606",
"0.5489745",
"0.545598",
"0.53999573",
"0.52864593",
"0.5251711",
"0.52252316",
"0.5219623",
"0.52134746",
"0.52103925",
"0.51997674",
"0.51893634",
"0.5183688",
"0.5171715",
"0.51713... | 0.52330256 | 12 |
private static Map instruments = new HashMap(); | @GET
@Path("/{id}")
@Produces(MediaType.APPLICATION_JSON)
public Tool getInstrument(@PathParam("id") Integer id) {
return dao.findById(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"HashMap<String, Instrument> getInstruments();",
"private void init() {\n UNIGRAM = new HashMap<>();\n }",
"public Q706DesignHashMap() {\n keys = new ArrayList<>();\n values = new ArrayList<>();\n\n }",
"Map<String, String> mo14888a();",
"public void createHashMap() {\n myL... | [
"0.7678389",
"0.613933",
"0.60706455",
"0.60459936",
"0.60112256",
"0.6010524",
"0.5982579",
"0.5867112",
"0.5857842",
"0.58374566",
"0.5811348",
"0.5798941",
"0.5798141",
"0.57801205",
"0.57429737",
"0.57250637",
"0.5723617",
"0.5716901",
"0.5709274",
"0.5670755",
"0.5661435... | 0.0 | -1 |
Set the dir attribute. | public void setDir(File dir) throws Exception
{
this.dir = dir;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@attribute(value = \"\", required = true)\t\r\n\tpublic void setDir(String dir) {\r\n\t\tthis.dir = new File(dir);\r\n\t}",
"@Override\r\n\t\tpublic void setDir(String dir)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"@Raw @Model\r\n\tvoid setDir(Directory dir) {\r\n\t\tthis.dir = dir;\r\n\t\tthis.move(dir);\r\n\t\t\r\n... | [
"0.82695824",
"0.81379056",
"0.7953311",
"0.7918466",
"0.79024017",
"0.7861806",
"0.77994287",
"0.77489245",
"0.77325207",
"0.77291757",
"0.76903576",
"0.719134",
"0.6924452",
"0.6752035",
"0.6673378",
"0.6605579",
"0.6595857",
"0.6595631",
"0.657297",
"0.6563713",
"0.6523881... | 0.6840202 | 13 |
Set the filenames attribute. | public void setFiles(String filenames)
{
if (filenames != null && filenames.length() > 0)
{
StringTokenizer tok = new StringTokenizer(
filenames, ", \t\n\r\f", false);
while (tok.hasMoreTokens())
{
this.filenames.addElement(tok.nextToken());
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setFileName( String fileName );",
"public Builder setFileNames(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFileNamesIsMutable();\n fileNames_.set(index, value);\n onChanged();\n return this;\n }... | [
"0.6687482",
"0.6521481",
"0.6406985",
"0.6380056",
"0.6358311",
"0.6350958",
"0.6350958",
"0.63429004",
"0.6333765",
"0.63320243",
"0.6268558",
"0.62603444",
"0.6247146",
"0.6219685",
"0.6193387",
"0.61666024",
"0.6144598",
"0.6142595",
"0.61258125",
"0.61258125",
"0.6125812... | 0.762196 | 0 |
Returns the list of files represented by this FileList. | public String[] getFiles() throws Exception
{
if (dir == null)
{
throw new Exception("No directory specified for filelist.");
}
if (filenames.size() == 0)
{
throw new Exception("No files specified for filelist.");
}
String[] result = new String[filenames.size()];
filenames.copyInto(result);
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.util.List<entities.Torrent.FileInfo>\n getFilesList();",
"public ArrayList<String> getFiles() {\n\t\t// Sort list\n\t\tCollections.sort(this.files);\n\t\t\n\t\treturn this.files;\n\t}",
"public java.util.List<entities.Torrent.FileInfo> getFilesList() {\n if (filesBuilder_ == null) {\... | [
"0.8162889",
"0.8147558",
"0.7983746",
"0.79808426",
"0.79163986",
"0.787268",
"0.7732454",
"0.77316165",
"0.76197463",
"0.7611418",
"0.7466862",
"0.7459977",
"0.74532413",
"0.7415161",
"0.74079436",
"0.7362591",
"0.73539454",
"0.7353607",
"0.73535025",
"0.7271038",
"0.717907... | 0.7075115 | 23 |
The name attribute of the file element. | public void setName(String name)
{
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getName()\n {\n return( file );\n }",
"public String getName()\n\t{\n\t\treturn _fileName;\n\t}",
"@Override\n\tpublic String getName()\n\t{\n\t\treturn fileName;\n\t}",
"public String getName() {\r\n return mFile.getName();\r\n }",
"public String getName() {\n\t\tretur... | [
"0.7915087",
"0.77948123",
"0.7788666",
"0.77699786",
"0.7755494",
"0.7640525",
"0.763051",
"0.7475566",
"0.73428434",
"0.72752357",
"0.7266253",
"0.72246784",
"0.72246784",
"0.72246784",
"0.71936435",
"0.71722454",
"0.71722454",
"0.7168003",
"0.7168003",
"0.7168003",
"0.7168... | 0.0 | -1 |
Add a nested nested element. | public void addConfiguredFile(FileName name) throws Exception
{
if (name.getName() == null)
{
throw new Exception(
"No name specified in nested file element");
}
filenames.addElement(name.getName());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addNestedTag(HTMLTagComponent tag) { \n nestedTagList.add(tag);\n }",
"public void add(NestedInteger ni){}",
"private void addElement(PEElement element) {\n\t\tif (currentGroups.size() > 0) {\n\t\t\tcurrentGroups.peek().getElements().add(element);\n\t\t} else if (currentLabeledNodeType !=... | [
"0.6214824",
"0.6036896",
"0.60213965",
"0.5934431",
"0.58943826",
"0.588192",
"0.58411366",
"0.5665929",
"0.5658977",
"0.55542994",
"0.5547456",
"0.55176514",
"0.54948133",
"0.54477304",
"0.54124457",
"0.5396575",
"0.5391837",
"0.53479224",
"0.5324105",
"0.5304788",
"0.52643... | 0.0 | -1 |
TODO Autogenerated method stub | public static void CheckApkFiles(String sourceFolder) {
try {
String reportFolderPath = FileHandler.createDirectory(sourceFolder,
"reports");
Collection<File> files = FileHandler.findFiles(sourceFolder,
new String[] { Constants.APK_EXTENSION });
String reportPath = reportFolderPath + File.separator
+ "virustotal_results.tsv";
File reportFile = new File(reportPath);
// FileUtils.deleteQuietly(reportFile);
System.out.print("File Name" + Constants.TAB_CHAR + "SHA256"
+ Constants.TAB_CHAR + "Detected" + Constants.TAB_CHAR
+ "Undetected");
FileUtils.write(reportFile, "File Name" + Constants.TAB_CHAR
+ "SHA256" + Constants.TAB_CHAR + "Detected"
+ Constants.TAB_CHAR + "Undetected", true);
int count = 0;
VirusTotal VT = new VirusTotal(
FileHandler
.readConfigValue(Constants.VIRUS_TOTAL_TOKEN_CONFIG));
for (File file : files) {
String apkReportFilePath = file.getParentFile()
.getAbsolutePath()
+ File.separator
+ "reports"
+ File.separator + file.getName().replace("apk", "tsv");
File apkReportFile = new File(apkReportFilePath);
if (!apkReportFile.exists()) {
int detected = 0;
int undetected = 0;
byte[] data = FileUtils.readFileToByteArray(file);
String sha256Hex = DigestUtils.sha256Hex(data);
try {
count++;
Set<ReportScan> reports = VT.ReportScan(sha256Hex);
FileUtils.write(apkReportFile, "\nAV"
+ Constants.TAB_CHAR + "Detected"
+ Constants.TAB_CHAR + "Malware"
+ Constants.TAB_CHAR + "Update", true);
// Output the details of each scan result from a vendor
for (ReportScan report : reports) {
if (report.getDetected().equals("true"))
detected++;
else
undetected++;
FileUtils.write(
apkReportFile,
"\n" + report.getVendor()
+ Constants.TAB_CHAR
+ report.getDetected()
+ Constants.TAB_CHAR
+ report.getMalwarename()
+ Constants.TAB_CHAR
+ report.getUpdate(), true);
}
} catch (Exception e) {
System.out.print("\n" + file.getName()
+ Constants.TAB_CHAR + "ERROR");
FileUtils.write(reportFile, "\n" + file.getName()
+ Constants.TAB_CHAR + "ERROR", true);
}
if ((detected + undetected) != 0) {
System.out.print("\n" + file.getName()
+ Constants.TAB_CHAR + sha256Hex
+ Constants.TAB_CHAR + detected
+ Constants.TAB_CHAR + undetected);
FileUtils.write(reportFile, "\n" + file.getName()
+ Constants.TAB_CHAR + sha256Hex
+ Constants.TAB_CHAR + detected
+ Constants.TAB_CHAR + undetected, true);
}
}
if (count != 0 && count % 4 == 0)
Thread.sleep(61000);
}
} catch (Exception e) {
e.printStackTrace();
}
} | {
"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 |
TODO Autogenerated method stub | public static void CheckReportWithTopTenAV(String sourceFolder) {
try {
Collection<File> files = FileHandler.findFiles(sourceFolder,
new String[] { "tsv" });
String reportFilePath = sourceFolder + File.separator
+ "malware_list.tsv";
File reportFile = new File(reportFilePath);
FileUtils.deleteQuietly(reportFile);
System.out.print("File Name\tFamily\n");
String malwareName = "";
for (File file : files) {
int detected = 0;
String[] lines = FileHandler.readFileToString(file
.getAbsolutePath()).split("\n");
for (String line:lines)
{
if (line.contains("AntiVir\ttrue"))
detected++;
if (line.contains("AVG\ttrue"))
detected++;
if (line.contains("BitDefender\ttrue"))
{
detected++;
malwareName=line.split("\t")[2];
}
if (line.contains("ClamAV\ttrue"))
{
detected++;
if (malwareName.equals(""))
malwareName=line.split("\t")[2];
}
if (line.contains("ESET-NOD32\ttrue"))
detected++;
if (line.contains("F-Secure\ttrue"))
{
detected++;
if (malwareName.equals(""))
malwareName=line.split("\t")[2];
}
if (line.contains("Kaspersky\ttrue"))
{
detected++;
if (malwareName.equals(""))
malwareName=line.split("\t")[2];
}
if (line.contains("McAfee\ttrue"))
detected++;
if (line.contains("Panda\ttrue"))
detected++;
if (line.contains("Sophos\ttrue"))
{
detected++;
if (malwareName.equals(""))
malwareName=line.split("\t")[2];
}
}
if (detected >= 2) {
FileUtils
.write(reportFile,
file.getName().replace(".tsv", ".apk")
+ "\t"+ malwareName +"\n", true);
System.out.print(file.getName().replace(".tsv", ".apk")
+ "\t"+ malwareName +"\n");
}
}
} catch (Exception e) {
e.printStackTrace();
}
} | {
"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 |
/ Seleciona um vendedor a partir do seu codigo | public Pedido select(Integer codigo) {
try (Connection con = db.getConnection()) {
String sql = "SELECT * FROM pedidos WHERE codigo = ?";
PreparedStatement cmd = con.prepareStatement(sql);
cmd.setInt(1, codigo);
ResultSet rs = cmd.executeQuery();
if (rs.next()) {
Pedido pedido = new Pedido();
pedido.setCodigo(codigo);
pedido.setCod_vend(rs.getInt("cod_vend"));
pedido.setCod_cli(rs.getInt("cod_cli"));
pedido.setData_pedido(rs.getDate("data_pedido"));
pedido.setData_entrega(rs.getDate("data_entrega"));
pedido.setFrete(rs.getDouble("frete"));
pedido.setStatus(Status_ped.valueOf(rs.getString("status")));
List<Item> itens = new ArrayList();
sql = "SELECT * FROM detalhes_pedidos WHERE cod_ped = ?";
cmd = con.prepareStatement(sql);
cmd.setInt(1, codigo);
rs = cmd.executeQuery();
while(rs.next()){
Item item = new Item();
item.setCod_ped(rs.getInt("cod_ped"));
item.setProduto(ProdutoDAO.select(rs.getInt("cod_prod")));
item.setQuantidade(rs.getInt("quantidade"));
itens.add(item);
}
pedido.setItens(itens);
return pedido;
}
return null;
} catch (Exception e) {
throw new RuntimeException(e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vendedor getVendedor(Long id);",
"public Cuenta obtenerCuentaConMasDinero(String codigo_cliente) {\n Cuenta cuenta = new Cuenta();\n try {\n PreparedStatement PrSt;\n ResultSet rs = null;\n String Query = \"SELECT * FROM Cuenta WHERE Codigo_Cliente = ? order ... | [
"0.6219948",
"0.61179525",
"0.5986566",
"0.59772485",
"0.5930886",
"0.5877164",
"0.5849775",
"0.58485836",
"0.58393615",
"0.58170074",
"0.5809072",
"0.577457",
"0.574708",
"0.57447046",
"0.5736797",
"0.57307625",
"0.5715089",
"0.5711433",
"0.5710196",
"0.5709082",
"0.56947356... | 0.6939139 | 0 |
Construct an ADALINE trainer. | public TrainAdaline(final BasicNetwork network,
final NeuralDataSet training, final double learningRate) {
if (network.getStructure().getLayers().size() > 2) {
throw new NeuralNetworkError(
"An ADALINE network only has two layers.");
}
this.network = network;
final Layer input = network.getLayer(BasicNetwork.TAG_INPUT);
this.synapse = input.getNext().get(0);
this.training = training;
this.learningRate = learningRate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Trainer(String tName) {\n this(tName, new ArrayList<>());\n }",
"public void createTrainer(Trainer trainer) {\n\t\ttrainerService.createTrainer(trainer);\n\t}",
"public Trainer()\n\t{\n\t\t//tba = new DualHashBidiMap<>();\n\t\t//fba = new DualHashBidiMap<>();\n\t\t//cba = new DualHashBidiMa... | [
"0.642651",
"0.6113403",
"0.60752416",
"0.5872316",
"0.54701144",
"0.5464807",
"0.52823627",
"0.5246994",
"0.5202787",
"0.5200689",
"0.518075",
"0.516533",
"0.5144581",
"0.51194483",
"0.5118706",
"0.5099095",
"0.509141",
"0.50582397",
"0.500032",
"0.49642915",
"0.49576092",
... | 0.5304621 | 6 |
Perform a training iteration. | public void iteration() {
final ErrorCalculation errorCalculation = new ErrorCalculation();
final Layer inputLayer = this.network.getLayer(BasicNetwork.TAG_INPUT);
final Layer outputLayer = this.network
.getLayer(BasicNetwork.TAG_OUTPUT);
for (final NeuralDataPair pair : this.training) {
// calculate the error
final NeuralData output = this.network.compute(pair.getInput());
for (int currentAdaline = 0; currentAdaline < output.size();
currentAdaline++) {
final double diff = pair.getIdeal().getData(currentAdaline)
- output.getData(currentAdaline);
// weights
for (int i = 0; i < inputLayer.getNeuronCount(); i++) {
final double input = pair.getInput().getData(i);
this.synapse.getMatrix().add(i, currentAdaline,
this.learningRate * diff * input);
}
// threshold (bias)
double t = outputLayer.getThreshold(currentAdaline);
t += this.learningRate * diff;
outputLayer.setThreshold(currentAdaline, t);
}
errorCalculation.updateError(output, pair.getIdeal());
}
// set the global error
setError(errorCalculation.calculateRMS());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void train() {\n\t\tfor (int i = 0; i < numberOfIterations; i++) {\n\t\t\t// for each training record\n\t\t\tfor (int j = 0; j < numberOfRecords; j++) {\n\t\t\t\t// calculate inputs and outputs\n\t\t\t\tforwardCalculation(records.get(j).input);\n\t\t\t\t// compute errors, update weights and thetas\n\t\t\t\t... | [
"0.7975634",
"0.7526341",
"0.7351901",
"0.7165813",
"0.7047927",
"0.70441157",
"0.69781345",
"0.69617563",
"0.68328327",
"0.683082",
"0.6770373",
"0.67523044",
"0.6736362",
"0.66734225",
"0.6575634",
"0.65588886",
"0.6558739",
"0.6532402",
"0.6502738",
"0.64560586",
"0.643227... | 0.6576403 | 14 |
Set the learning rate. | public void setLearningRate(final double rate) {
this.learningRate = rate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLearningRate(double rate);",
"public void setLearningRate(double learningRate) {\n this.learningRate = Math.max(0.0, Math.min(1.0, learningRate));\n }",
"public void setLearningRate(double learningRate) {\r\n\t\tthis.learningRate = learningRate;\r\n\t}",
"public void SetLearnRate (do... | [
"0.89419645",
"0.82831645",
"0.8269814",
"0.7443721",
"0.7273547",
"0.70766133",
"0.6678599",
"0.66767704",
"0.653277",
"0.65291053",
"0.6487356",
"0.6474985",
"0.64729977",
"0.64382714",
"0.6303698",
"0.6254541",
"0.62326276",
"0.6175994",
"0.61758894",
"0.6160891",
"0.61476... | 0.8237422 | 3 |
TODO Autogenerated method stub | public static void main(String[] args) {
int n = 5;
int result = 1000000001;
System.out.println(result);
System.out.println(isPalindrome(result));
} | {
"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 |
/ for(int i= 0 ; i<db.getAllWorks().size();i++) db.deleteWork(db.getAllWorks().get(i).getId()); | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
//getSupportActionBar().setDisplayHomeAsUpEnabled(true);
hours = (EditText) findViewById(R.id.HoursET);
tipBonus = (EditText) findViewById(R.id.TipForsSalET);
travelers = (EditText) findViewById(R.id.HowManyTravelersET);
distance = (EditText) findViewById(R.id.DistanceET);
parking = (EditText) findViewById(R.id.ParkingET);
privateTip = (EditText) findViewById(R.id.PrivateTipET);
waitersTip = (EditText) findViewById(R.id.WaitersTipET);
locationET = (EditText) findViewById(R.id.locationET);
manualSalaryTV = (TextView) findViewById(R.id.ManuallySalC);
dateTV = (TextView) findViewById(R.id.DateTV);
timeStartTV = (TextView) findViewById(R.id.timeStartTV);
timeEndTV = (TextView) findViewById(R.id.timeEndTV);
sumTv = (TextView) findViewById(R.id.sumTV);
sumCashTV = (TextView) findViewById(R.id.sumCash);
drivesP = (TextView) findViewById(R.id.drivesTV);
tipP = (TextView) findViewById(R.id.TipTv);
manualSalaryET = (EditText) findViewById(R.id.ManualSalET);
idForRes=(TextView)findViewById(R.id.IdForRes);
commentsET = (EditText) findViewById(R.id.CommentsET);
drivesP.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (!flagDrive) {
distance.setVisibility(View.VISIBLE);
parking.setVisibility(View.VISIBLE);
flagDrive = true;
} else {
distance.setVisibility(View.GONE);
parking.setVisibility(View.GONE);
flagDrive = false;
}
}
});
tipP.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (!flagTip) {
privateTip.setVisibility(View.VISIBLE);
waitersTip.setVisibility(View.VISIBLE);
tipBonus.setVisibility(View.VISIBLE);
flagTip = true;
} else {
privateTip.setVisibility(View.GONE);
waitersTip.setVisibility(View.GONE);
tipBonus.setVisibility(View.GONE);
flagTip = false;
}
}
});
final Intent intentA = new Intent(this, SetWorksActivity.class);
if (db.getAllWorks().size() == 0) {
startActivity(intentA);
}
else {
spinner = (Spinner) findViewById(R.id.spinnerTE);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, getWorksName());
// Specify the layout to use when the list of choices appears
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
// Apply the adapter to the spinner
spinner.setAdapter(adapter);
spinner.setOnItemSelectedListener(this);
if (db.getAllWorks().get(workIdPosition).getTypeOfDrive() < 2)
distance.setHint(R.string.MainDriveManually);
Intent intent = getIntent();
id = intent.getIntExtra("id", 9999);
if (id != 9999)
flagIsUpdate = true;
if(!flagIsUpdate) {
if (db.getAllWorks().get(workIdPosition).getTypeOfDrive() == 1)
distance.setText(String.valueOf(db.getAllWorks().get(workIdPosition).getPerKilometer()));
if(intent.getStringExtra("date")!=null) {
dateCalender = intent.getStringExtra("date");
dateTV.setText(dateCalender);
date=dateCalender;
}
}
if (flagIsUpdate)
updateShift();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void delete(int work_num) {\n\t\tworkMapper.delete(work_num);\n\t\t\n\t}",
"@Override\n\tpublic void delete(DatabaseHandler db) {\n\t\tdb.deleteWork(this);\n\t\t\n\t}",
"@Override\n\tpublic void deleteWorkout(int id) {\n\n\t}",
"@Override\n\tpublic void deleteWorkItemList(List<HongXunWork... | [
"0.70420617",
"0.6800411",
"0.67022973",
"0.661235",
"0.65371436",
"0.64530903",
"0.6423829",
"0.64021814",
"0.6348063",
"0.63422745",
"0.632973",
"0.632973",
"0.632973",
"0.6287853",
"0.6261338",
"0.62514913",
"0.62450945",
"0.6216968",
"0.6210553",
"0.6201741",
"0.6198803",... | 0.0 | -1 |
function: Adjust the DatePickerDialog | public void showDatePickerDialog(View v) {
DialogFragment newFragment = new DatePickerFragment() {
@Override
public void onDateSet(DatePicker view, int year, int month, int day) {
dayOfWeek=0;
Calendar d = new GregorianCalendar(year,month,day);
dayOfWeek = d.get(Calendar.DAY_OF_WEEK);
Log.d("day",String.valueOf(dayOfWeek));
dateTV = (TextView)findViewById(R.id.DateTV);
date=day+"/"+(month+1)+"/"+year+"";
dateTV.setText(date);
}
};
newFragment.show(getSupportFragmentManager(), "datePicker");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showDateDialog(){\n final Calendar newCalendar = Calendar.getInstance();\n\n /**\n * Initiate DatePicker dialog\n */\n datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateS... | [
"0.75324357",
"0.72958857",
"0.7242857",
"0.7192402",
"0.7178478",
"0.7171247",
"0.7133075",
"0.7066478",
"0.7052679",
"0.7039851",
"0.7028102",
"0.700366",
"0.69927037",
"0.69924545",
"0.698663",
"0.69752604",
"0.6973629",
"0.6969244",
"0.6961597",
"0.6950386",
"0.6926365",
... | 0.0 | -1 |
function: Adjust the TimeStartPickerDialog | public void showTimeStartPickerDialog(View v) {
DialogFragment newFragment = new TimePickerFragment() {
@Override
public void onTimeSet(TimePicker view, int hour, int minute) {
timeStartTV = (TextView)findViewById(R.id.timeStartTV);
hourStart=hour;
minuteStart=minute;
timeStartTV.setText(makeHourFine(hour,minute));
if(hourEnd!=99||minuteEnd!=99) {
if ((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)) >= 0) {
hoursD = Round((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)), 2);
} else
hoursD = Round((hourEnd + (minuteEnd / 60.0)) + 24 - (hourStart + (minuteStart / 60.0)), 2);
hours = (EditText) findViewById(R.id.HoursET);
hours.setText(Double.toString(hoursD));
}
}
};
newFragment.show(getSupportFragmentManager(), "timeStartPicker");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showTimePicker(final EditText editText, final boolean isStartType) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker... | [
"0.7469197",
"0.729034",
"0.69948256",
"0.69903696",
"0.69876385",
"0.6964398",
"0.69452983",
"0.69426054",
"0.6942528",
"0.6936957",
"0.6936717",
"0.6924378",
"0.69236",
"0.6917073",
"0.69153214",
"0.6915077",
"0.6909081",
"0.6906012",
"0.69030005",
"0.6902854",
"0.69027036"... | 0.769388 | 0 |
function: Adjust the TimeEndPickerDialog | public void showTimeEndPickerDialog(View v) {
DialogFragment newFragment = new TimePickerFragment() {
@Override
public void onTimeSet(TimePicker view, int hour, int minute) {
timeEndTV = (TextView)findViewById(R.id.timeEndTV);
timeEndTV.setText(makeHourFine(hour, minute));
hourEnd=hour;
minuteEnd=minute;
if(hourStart!=99||minuteStart!=99) {
if ((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)) >= 0) {
hoursD =Round((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)), 2);
} else
hoursD = Round((hourEnd + (minuteEnd / 60.0)) + 24 - (hourStart + (minuteStart / 60.0)), 2);
hours = (EditText) findViewById(R.id.HoursET);
hours.setText(Double.toString(hoursD));
}
}
};
newFragment.show(getSupportFragmentManager(), "timeStartPicker");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void editMeetEndTime() {\n String startTime = tvStartTime.getText().toString().trim();\n\n Date startDate;\n Calendar calStart = null;\n if (!TextUtils.isEmpty(startTime)) {\n //如果约会开始时间textView不为空,拿到约会开始时间的calender对象\n startDate = TimeUtil.getDateByFormat(... | [
"0.74526393",
"0.71381605",
"0.702023",
"0.68798286",
"0.6816623",
"0.67648035",
"0.6754815",
"0.67518735",
"0.67349726",
"0.67338216",
"0.67236155",
"0.6723452",
"0.6703587",
"0.66949654",
"0.66874695",
"0.6681239",
"0.66800606",
"0.6675689",
"0.6673052",
"0.66546834",
"0.66... | 0.7851412 | 0 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings)
return true;
switch (id) {
case R.id.action_sendShift:
sendEvent();
return true;
case R.id.action_delete:
deleteOrShowMethod();
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.79046476",
"0.7805623",
"0.7766615",
"0.77274555",
"0.7632045",
"0.76220745",
"0.75848633",
"0.7531134",
"0.74884325",
"0.74575055",
"0.74575055",
"0.74388313",
"0.74218154",
"0.7403308",
"0.7391667",
"0.7386889",
"0.73792624",
"0.73705244",
"0.7362704",
"0.7355958",
"0.73... | 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
Intent intent = getIntent();
id = intent.getIntExtra("id", 9999);
Log.d("ss", Locale.getDefault().getLanguage());
if( Locale.getDefault().getLanguage().equals("iw")||Locale.getDefault().getLanguage().equals("he")){
getMenuInflater().inflate(R.menu.menu_main_rtl, menu);}
else
getMenuInflater().inflate(R.menu.menu_main, menu);
if(id!=9999)
getMenuInflater().inflate(R.menu.menu_main_update, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7248419",
"0.7203426",
"0.71970934",
"0.7178769",
"0.71092147",
"0.7040898",
"0.7039756",
"0.70138675",
"0.70115006",
"0.6982194",
"0.694743",
"0.69407934",
"0.6935566",
"0.6919299",
"0.6919299",
"0.68929094",
"0.68849903",
"0.68766844",
"0.6876271",
"0.68636256",
"0.68636... | 0.0 | -1 |
initialize and get the Configuration | public static AppConfig getAppConfig() {
//LOGGER.info("Configurator:getAppConfig(): Configuring the Application credentials .........................");
Properties props = new Properties();
AppConfig appConfig = new AppConfig();
try {
props.load(new FileInputStream("Resilient.properties"));
// SFDC
appConfig.setSfdcEndpoint(props.getProperty("sfdc.sfdcEndpoint"));
appConfig.setSfdcUsername(props.getProperty("sfdc.sfdcUsername"));
appConfig.setSfdcPassword(props.getProperty("sfdc.sfdcPassword"));
appConfig.setSfdcBillToItemQueryFields(props.getProperty("resilient.launchReport.sfdcBillToItemQueryFields"));
} catch (IOException e) {
LOGGER.error("Exception while configuring the Application credentials ..." + e);
}
return appConfig;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Confi... | [
"0.7850166",
"0.76798874",
"0.76038414",
"0.76038414",
"0.76038414",
"0.76038414",
"0.7525568",
"0.74396753",
"0.7396572",
"0.7193542",
"0.71926194",
"0.71774125",
"0.7156669",
"0.71433127",
"0.71238583",
"0.7122116",
"0.7103563",
"0.7082719",
"0.70803285",
"0.70760226",
"0.7... | 0.0 | -1 |
PhotoView photoView = (PhotoView) findViewById(R.id.photo_view); | public MyViewHolder(View view) {
super(view);
mb=(PhotoView) view.findViewById(R.id.imageView);
fullscreen=view.findViewById(R.id.full_screen);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater,\n ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.profile,\n container, false);\n\n profilePicture = rootView.findViewById(R.id.profileImage);\n\n... | [
"0.72283375",
"0.6873771",
"0.6818524",
"0.680933",
"0.67934185",
"0.6755693",
"0.67356676",
"0.6715862",
"0.6631475",
"0.66194063",
"0.65308994",
"0.65246373",
"0.6464601",
"0.6449518",
"0.6448566",
"0.6409919",
"0.6386439",
"0.63812363",
"0.6365174",
"0.6359632",
"0.6347068... | 0.6458185 | 13 |
Return the path to an item relative to the root of this archetyped structure. | public String pathOfItem(Pathable item) {
return null; // todo: implement this method
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getRootItem();",
"public String getPath() {\n\t\treturn getString(\"path\");\n\t}",
"private String getPath(PSItemDefSummary itemDefSummary) throws PSExtensionProcessingException\n {\n Map<IPSGuid, String> itemPaths = new HashMap<>();\n String path = \"\";\n IPSGuid guid =... | [
"0.63066894",
"0.608951",
"0.60801536",
"0.6071211",
"0.60442364",
"0.6008947",
"0.59899956",
"0.5977475",
"0.5945392",
"0.59422356",
"0.5772574",
"0.5764752",
"0.5762674",
"0.5762674",
"0.5762674",
"0.57613856",
"0.5743758",
"0.5729244",
"0.572369",
"0.572369",
"0.5723326",
... | 0.75782514 | 0 |
TODO Autogenerated method stub | @Override
public List<Object> itemsAtPath(String path) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void 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 |
TODO Autogenerated method stub | @Override
public boolean pathExists(String path) {
return false;
} | {
"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 |
TODO Autogenerated method stub | @Override
public boolean pathUnique(String path) {
return false;
} | {
"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 |
llama al DAO para actualizar un procedimiento | public void actualizar(Procedimiento procedimiento) {
IProcedimientoDao dao = new ProcedimientoDaoImpl();
dao.actualizarProcedimiento(procedimiento);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ParqueaderoEntidad actualizar(ParqueaderoEntidad parqueadero);",
"public void actualizar(Dia dia) {\n Session session = sessionFactory.openSession();\n //la transaccion a relizar\n Transaction tx = null;\n try {\n tx = session.beginTransaction();\n //actualizar e... | [
"0.72311306",
"0.71023977",
"0.69868183",
"0.68827474",
"0.67558783",
"0.6734889",
"0.66527027",
"0.6581862",
"0.6574699",
"0.6564275",
"0.65516204",
"0.65480524",
"0.65008897",
"0.6492828",
"0.6473512",
"0.64615244",
"0.64449453",
"0.642957",
"0.64281696",
"0.63876396",
"0.6... | 0.6903216 | 3 |
llama al DAO para eliminar un procedimiento | public void eliminar(Procedimiento procedimiento) {
IProcedimientoDao dao = new ProcedimientoDaoImpl();
dao.eliminarProcedimiento(procedimiento);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void eliminar(final Empleat entitat) throws UtilitatPersistenciaException {\r\n JdbcPreparedDao jdbcDao = new JdbcPreparedDao() {\r\n\r\n @Override\r\n public void setParameter(PreparedStatement pstm) throws SQLException {\r\n int field=0;\r\n ... | [
"0.74532384",
"0.7380384",
"0.7367443",
"0.7342224",
"0.73414147",
"0.7304475",
"0.7284997",
"0.7274049",
"0.72618693",
"0.72498405",
"0.7129883",
"0.7128965",
"0.70307446",
"0.7021315",
"0.7018644",
"0.7015425",
"0.6993231",
"0.6986185",
"0.6981006",
"0.6970517",
"0.6947241"... | 0.7242598 | 10 |
llama al DAO para obtener todos los procedimientos y luego los muestra en la vista | public void verProcedimientos(JTable tabla) {
System.out.println("controladores.ProcedimientoController.verProcedimientos()");
ResultSet procedimientos = null;
IProcedimientoDao dao = new ProcedimientoDaoImpl();
procedimientos = dao.obtenerProcedimientos();
vista.verProcedimientos(procedimientos, tabla);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void pruebas() {\n\t\tResultadosDaoImpl resultadosDao = new ResultadosDaoImpl();\r\n\t\tPartidosDaoImpl partidosDao = new PartidosDaoImpl();\r\n\t\tEquiposDaoImpl equiposDao = new EquiposDaoImpl();\r\n\t\tJornadasDaoImpl jornadasDao = new JornadasDaoImpl();\r\n\t\tEstadisticasDaoImpl estadisticasDao... | [
"0.7121951",
"0.68132323",
"0.67989886",
"0.6741683",
"0.6725322",
"0.6659811",
"0.6601655",
"0.65485764",
"0.65481687",
"0.65368307",
"0.65233755",
"0.6511842",
"0.65036875",
"0.6498691",
"0.6490854",
"0.6478254",
"0.6477065",
"0.64703196",
"0.6463053",
"0.6451622",
"0.64474... | 0.0 | -1 |
get the element in the position of i | int node_size()
{
Node temp =headnode;
int count=0;
while (temp.next!=null)
{
count++;
temp=temp.next;
}
return count;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object get(int i) {\n return elementAt(i);\n }",
"public E get(int i) {\n\n\t if (i < 0 && i > num_elements)\n\t return null;\n\t \n\t return(elements[i]);\n\t }",
"public RTWElementRef getAsElement(int i);",
"public Integer at(int i){\n\t\tint cont = 0;\n\t\tNodo ... | [
"0.77958214",
"0.7718155",
"0.763906",
"0.751747",
"0.735499",
"0.7304212",
"0.7286266",
"0.7132013",
"0.7127494",
"0.71236587",
"0.7115892",
"0.7052007",
"0.70390344",
"0.70289814",
"0.7005412",
"0.6993042",
"0.6973748",
"0.6962232",
"0.69571674",
"0.6953707",
"0.6948176",
... | 0.0 | -1 |
Similar to DP but recursive | public int lastRemaining(int n) {
if(n==1){
return 1;
}
if(n%2==0){
return n-1-2*(lastRemaining(n/2)-1)+1;
} else{
return n-2-2*(lastRemaining(n/2)-1)+1;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int recursion(int steps, int arrLen, int index, int[][] dp) {\n\n if (steps == 0 && index == 0) {\n return 1;\n }\n\n // extra base condition is index> steps , because we cannot return from there at all.\n if (steps == 0 || index < 0 || index >= arrLen || index > steps) return 0;\n\n if ... | [
"0.67684764",
"0.66539025",
"0.65219766",
"0.6483358",
"0.6462934",
"0.6400321",
"0.6380918",
"0.6375925",
"0.6350945",
"0.62298846",
"0.62007",
"0.6178424",
"0.61667097",
"0.6156123",
"0.61481327",
"0.6114105",
"0.6106906",
"0.609622",
"0.60613155",
"0.60263646",
"0.59823465... | 0.0 | -1 |
Fonction permettant de concatener tout les tableaux de ROW en un seul | public ArrayList<MensurationRow> toRow() {
ArrayList<MensurationRow> arr = new ArrayList<MensurationRow>();
arr.addAll(getGenerale().toRow());
arr.addAll(getHaut().toRow());
arr.addAll(getBas().toRow());
arr.addAll(getMain().toRow());
return arr;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String printRow(Result res){\n Iterator<Pair<String ,byte[]>> iter =outList.iterator();\n String row = \"\";\n while(iter.hasNext()){\n Pair<String ,byte[]> col = iter.next();\n String val = appendFromCol(col.getFirst(), res);\n row += val + delim;\n }\n // strip out last del... | [
"0.61774284",
"0.61362976",
"0.59659666",
"0.5934336",
"0.5924109",
"0.5902957",
"0.5855621",
"0.5824955",
"0.574063",
"0.57080144",
"0.5656329",
"0.5638617",
"0.5637436",
"0.56369895",
"0.5604908",
"0.56005174",
"0.5593577",
"0.55499583",
"0.5500826",
"0.5477441",
"0.5465943... | 0.0 | -1 |
Create a new downloader that uses the specified OkHttp instance. A response cache will not be automatically configured. | public OkHttpDownloader(OkHttpClient client) {
this.client = client;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OkHttpDownloader(Context context) {\n\n\t\t// Create cache directory\n\t\tmCacheDir = new File(context.getApplicationContext().getCacheDir(), \"picasso-cache\");\n\t\tif (!mCacheDir.exists()) {\n\t\t\tmCacheDir.mkdirs();\n\t\t}\n\n\t\tmUrlFactory = new OkUrlFactory(MizuuApplication.getOkHttpClient());\n\n\t... | [
"0.67059904",
"0.65461344",
"0.61972487",
"0.5987058",
"0.5843741",
"0.58250666",
"0.5821659",
"0.57126206",
"0.56913126",
"0.56863815",
"0.5556045",
"0.55180097",
"0.54196167",
"0.5414977",
"0.5344403",
"0.5342555",
"0.5333842",
"0.5290404",
"0.5281729",
"0.5266415",
"0.5262... | 0.6054263 | 3 |
End of variables declaration//GENEND:variables | public javax.swing.JLabel getLbl00() {
return lbl00;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n pu... | [
"0.6359434",
"0.6280371",
"0.61868024",
"0.6094568",
"0.60925734",
"0.6071678",
"0.6052686",
"0.60522056",
"0.6003249",
"0.59887564",
"0.59705925",
"0.59680873",
"0.5967989",
"0.5965816",
"0.5962006",
"0.5942372",
"0.5909877",
"0.5896588",
"0.5891321",
"0.5882983",
"0.5881482... | 0.0 | -1 |
we can't get clipboard details especially content size, so we should avoid clipboard processing when it's possible; | @Override
public void applicationActivated(@NotNull IdeFrame ideFrame) {
if (!VcsApplicationSettings.getInstance().DETECT_PATCH_ON_THE_FLY) return;
super.applicationActivated(ideFrame);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Object getClipboardContents()\n\t{\n\t\tObject result = null;\n\t\tfinal Transferable contents = ClipboardHelper.clipboard.getContents(null);\n\t\tif (contents != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (contents.isDataFlavorSupported(DataFlavor.stringFlavor))\n\t\t\t\t{\n\t\t\t\t\tresult = cont... | [
"0.6595808",
"0.63067967",
"0.62678397",
"0.6187287",
"0.6152514",
"0.6107083",
"0.6106957",
"0.6106957",
"0.6082999",
"0.5987866",
"0.5903508",
"0.5863744",
"0.57915616",
"0.57882506",
"0.5768154",
"0.57557213",
"0.57321864",
"0.57240736",
"0.5710386",
"0.5693492",
"0.569194... | 0.0 | -1 |
String formatted = groupName.toLowerCase().replace(" ", "_"); | private String formatGroupName (String groupName) {
return groupName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String formatSpaces(String s) {\n \tString temp = s;\n \tif(s.contains(\"underscores\")) temp = s.replace(\" \", \"_\");\n return temp;\n }",
"public String getGroupName(){\r\n return Validator.unescapeJava(this.groupName);\r\n }",
"public static String formatTitle(Strin... | [
"0.6651386",
"0.6644882",
"0.6585512",
"0.6568921",
"0.6541683",
"0.64409",
"0.6383755",
"0.6353505",
"0.635188",
"0.6336797",
"0.62874156",
"0.6275317",
"0.6251614",
"0.62485075",
"0.623045",
"0.62223977",
"0.6216382",
"0.61485153",
"0.6144321",
"0.6129832",
"0.6064802",
"... | 0.77274394 | 0 |
Created by S.Serkan Cay on 22.09.2019 | @PerActivity
public interface IOrdersPresenter<V extends OrdersView> {
void onLogoutButtonClick();
void doLogout();
void onMyOrdersButtonClick();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private stendhal() {\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Overr... | [
"0.5655422",
"0.54277337",
"0.5401485",
"0.53980327",
"0.5379976",
"0.5346403",
"0.53383726",
"0.53383726",
"0.53380287",
"0.53031665",
"0.5295749",
"0.5292043",
"0.526982",
"0.5207832",
"0.5177153",
"0.5162831",
"0.51578087",
"0.5148308",
"0.51153064",
"0.5113807",
"0.510018... | 0.0 | -1 |
Initializes asteroid objects in the gameWorld, and randoms their attributes to decide where they should be set. Direction is capped by 360, speed by 100, location by the size of the map (can still move out of bounds), color of the asteroid and the size of the asteroid. | public Asteroid()
{
super.setDirection(rn.nextInt(360));
super.setSpeed(rn.nextInt(100));
super.setLocalX(rn.nextFloat() * 1024);
super.setLocalY(rn.nextFloat() * 786);
super.setColor(250);
size = rn.nextInt(10);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Asteroid() {\n\t\t// create, seed random number\n\t\trandomNumber = new Random();\n\n\t\t// random location\n\t\tlocation = new Tuple(\n\t\t\t\t(randomNumber.nextDouble() - 0.5) * FIELD_SIZE, \n\t\t\t\t(randomNumber.nextDouble() - 0.5) * FIELD_SIZE, \n\t\t\t\t(randomNumber.nextDouble() - 0.5) * FIELD_SIZE);... | [
"0.7594092",
"0.72830003",
"0.70364904",
"0.6804202",
"0.6748914",
"0.6748552",
"0.66229147",
"0.6522389",
"0.6499612",
"0.6455686",
"0.64497095",
"0.64453727",
"0.6398425",
"0.63404644",
"0.6334242",
"0.63141423",
"0.62799937",
"0.62650937",
"0.61897814",
"0.61868477",
"0.61... | 0.7212583 | 2 |
toString that prints the size of the asteroid, and calls super.toString to get the toString from MovableObject | public String toString()
{
String parentDesc = super.toString();
String myDesc = "[Size: " + this.size + " ]";
return parentDesc + myDesc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public String toString()\n {\n return \"The square's dimensions are \" + getLength() + \" X \" + getWidth();\n }",
"public String toString(){\n\t\tretu... | [
"0.73701745",
"0.6886278",
"0.68428284",
"0.6834249",
"0.67991716",
"0.66766196",
"0.665719",
"0.6644699",
"0.6642816",
"0.6603371",
"0.65926814",
"0.65920323",
"0.6571418",
"0.65528095",
"0.65202934",
"0.65091294",
"0.6491756",
"0.6483733",
"0.6477782",
"0.647665",
"0.643863... | 0.7250234 | 1 |
look in module sources | private static boolean visitModuleContentEntries(ModuleRootModel rootModel, RootVisitor visitor) {
for (ContentEntry entry : rootModel.getContentEntries()) {
VirtualFile rootFile = entry.getFile();
if (rootFile != null && !visitor.visitRoot(rootFile, null, null, true)) return false;
for (VirtualFile folder : entry.getSourceFolderFiles()) {
if (!visitor.visitRoot(folder, rootModel.getModule(), null, true)) return false;
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void inspect() {\n\t\tFileHandler handler = new FileHandler();\n\t\tIContainer container = handler.findOrCreateContainer(packageBase);\n\t\tIResource[] members = null;\n\t\ttry {\n\t\t\tmembers = container.members();\n\t\t} catch (CoreException e) {\n\t\t\tSystem.out.println(\"Could not access members of t... | [
"0.6044599",
"0.5992122",
"0.59821016",
"0.59348637",
"0.58848643",
"0.58287853",
"0.570214",
"0.56976706",
"0.5641507",
"0.5554895",
"0.55341613",
"0.5523791",
"0.5496373",
"0.54958385",
"0.5477179",
"0.54605204",
"0.5458578",
"0.54440105",
"0.5427399",
"0.5371304",
"0.53660... | 0.0 | -1 |
Creates new form conversionHistory | public conversionHistory() {
initComponents();
project_classes.DBLogic dl = new project_classes.DBLogic();//Initializing a DBLogic Object
dl.GetConnection();//Getting the connection
dl.populateConversionHistory(conversionHistoryTbl);//we populate the table conversionHistoryTbl by calling DBLogic member method populateConversionHistory
this.setTitle("Conversion History");//setting the title of the form
this.setResizable(false);//Setting the resizable option to false
getContentPane().setBackground(Color.decode("#005580"));//changing main panle background
mainPanel.setBackground(Color.decode("#005580"));//changing the secondary panle back-ground
conversionHistoryTbl.setBackground(Color.decode("#33D1B9"));//setting the back-gounrd of the JTable conversionHistoryTbl
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ConversionHistory() {\r\n conversionDate = LocalDate.now();\r\n }",
"private static void addToHistory() {\n\t\tFileInputStream fis = null;\n\t\tFileOutputStream fos = null;\n\t\tFileChannel resultChannel = null;\n\t\tFileChannel historyChannel = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(... | [
"0.7114043",
"0.5847712",
"0.5784925",
"0.5770818",
"0.5715143",
"0.5699796",
"0.5632778",
"0.56212825",
"0.55622375",
"0.5531699",
"0.55149716",
"0.54675144",
"0.52594924",
"0.5231499",
"0.5201039",
"0.51925474",
"0.51893526",
"0.5154048",
"0.51432395",
"0.5115427",
"0.51143... | 0.5668581 | 6 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
mainPanel = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
conversionHistoryTbl = new javax.swing.JTable();
convertMrsCBtn = new javax.swing.JButton();
mainMenuBtn = new javax.swing.JButton();
resourcesBtn = new javax.swing.JButton();
morsealphabetandMachine = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
conversionHistoryTbl.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
},
new String [] {
"English word", "Morse word", "Conversion Date"
}
));
jScrollPane1.setViewportView(conversionHistoryTbl);
convertMrsCBtn.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
convertMrsCBtn.setText("Convert Morse code");
convertMrsCBtn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
convertMrsCBtnActionPerformed(evt);
}
});
mainMenuBtn.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
mainMenuBtn.setText("Main Menu");
mainMenuBtn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
mainMenuBtnActionPerformed(evt);
}
});
resourcesBtn.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
resourcesBtn.setText("Resources");
resourcesBtn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
resourcesBtnActionPerformed(evt);
}
});
morsealphabetandMachine.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
morsealphabetandMachine.setText("Morse Alphabet and Machine");
morsealphabetandMachine.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
morsealphabetandMachineActionPerformed(evt);
}
});
jLabel1.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
jLabel1.setText("Conversion History ");
javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
mainPanel.setLayout(mainPanelLayout);
mainPanelLayout.setHorizontalGroup(
mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(mainPanelLayout.createSequentialGroup()
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 570, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(58, 58, 58)
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(morsealphabetandMachine, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(resourcesBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(mainMenuBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addComponent(convertMrsCBtn, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jLabel1))
.addContainerGap(120, Short.MAX_VALUE))
);
mainPanelLayout.setVerticalGroup(
mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(mainPanelLayout.createSequentialGroup()
.addGap(20, 20, 20)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(mainMenuBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(31, 31, 31)
.addComponent(convertMrsCBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(33, 33, 33)
.addComponent(resourcesBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addComponent(morsealphabetandMachine, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(29, 29, 29))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 562, javax.swing.GroupLayout.PREFERRED_SIZE))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(mainPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(mainPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73208135",
"0.7291972",
"0.7291972",
"0.7291972",
"0.7287118",
"0.72494483",
"0.7214677",
"0.72086734",
"0.7197058",
"0.71912485",
"0.7185818",
"0.71596724",
"0.71489036",
"0.7094215",
"0.7082007",
"0.70579666",
"0.6988024",
"0.6978225",
"0.6955616",
"0.6955434",
"0.694586... | 0.0 | -1 |
This setter is made to inform the company id for this id member. | public void setId(long id) {
this.id = id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(Integer value) {\n this.companyId = value;\n ... | [
"0.783373",
"0.783373",
"0.783373",
"0.783373",
"0.783373",
"0.77698785",
"0.7716471",
"0.7716471",
"0.76546896",
"0.76245445",
"0.7574639",
"0.75732225",
"0.75595266",
"0.75288427",
"0.7516223",
"0.75030833",
"0.75030833",
"0.7468495",
"0.74338436",
"0.74338436",
"0.74338436... | 0.0 | -1 |
Track Product Information on load of this Local Expert Information screen. | @Subscribe
public void onShowActivityDetails(Events.LXShowDetails event) {
OmnitureTracking.trackAppLXProductInformation(event.activityDetails, lxState.searchParams);
activityDetails = event.activityDetails;
buildGallery(activityDetails);
buildSections(activityDetails);
buildOfferDatesSelector(activityDetails.offersDetail, lxState.searchParams.startDate);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void loadDetailProductData() {\n mDetailPresenter.loadDetailProductData();\n }",
"public void displayProduct() {\n\t\tDisplayOutput.getInstance()\n\t\t\t\t.displayOutput(StoreFacade.getInstance());\n\t}",
"@SuppressWarnings(\"unchecked\")\n private void fetchProductInformatio... | [
"0.6323517",
"0.6265436",
"0.6170424",
"0.6065443",
"0.5921952",
"0.591902",
"0.59145296",
"0.57548076",
"0.5730265",
"0.5723956",
"0.57110393",
"0.56537974",
"0.5651798",
"0.5568133",
"0.5554825",
"0.5552577",
"0.55404747",
"0.55226743",
"0.5521807",
"0.55117947",
"0.5494039... | 0.5448311 | 22 |
Display readmore for description and highlights if content is more than 5 lines. | public void buildSections(ActivityDetailsResponse activityDetailsResponse) {
int maxLines = getResources().getInteger(R.integer.lx_detail_content_description_max_lines);
resetSections();
if (Strings.isNotEmpty(activityDetailsResponse.description)) {
String descriptionContent = StrUtils.stripHTMLTags(activityDetailsResponse.description);
description.bindData(getResources().getString(R.string.description_activity_details), descriptionContent,
maxLines);
description.setVisibility(View.VISIBLE);
}
if (Strings.isNotEmpty(activityDetailsResponse.location)) {
String locationContent = StrUtils.stripHTMLTags(activityDetailsResponse.location);
location.bindData(getResources().getString(R.string.location_activity_details), locationContent, 0);
location.setVisibility(View.VISIBLE);
}
if (CollectionUtils.isNotEmpty(activityDetailsResponse.highlights)) {
CharSequence highlightsContent = StrUtils.generateBulletedList(activityDetailsResponse.highlights);
highlights
.bindData(getResources().getString(R.string.highlights_activity_details), highlightsContent, maxLines);
highlights.setVisibility(View.VISIBLE);
}
if (CollectionUtils.isNotEmpty(activityDetailsResponse.inclusions)) {
CharSequence inclusionsContent = StrUtils.generateBulletedList(activityDetailsResponse.inclusions);
inclusions.bindData(getResources().getString(R.string.inclusions_activity_details), inclusionsContent, 0);
inclusions.setVisibility(View.VISIBLE);
}
if (CollectionUtils.isNotEmpty(activityDetailsResponse.exclusions)) {
CharSequence exclusionsContent = StrUtils.generateBulletedList(activityDetailsResponse.exclusions);
exclusions.bindData(getResources().getString(R.string.exclusions_activity_details), exclusionsContent, 0);
exclusions.setVisibility(View.VISIBLE);
}
if (CollectionUtils.isNotEmpty(activityDetailsResponse.knowBeforeYouBook)) {
CharSequence knowBeforeYouBookContent = StrUtils.generateBulletedList(
activityDetailsResponse.knowBeforeYouBook);
knowBeforeYouBook.bindData(getResources().getString(R.string.know_before_you_book_activity_details),
knowBeforeYouBookContent, 0);
knowBeforeYouBook.setVisibility(View.VISIBLE);
}
String cancellationPolicyText = LXDataUtils
.getCancelationPolicyDisplayText(getContext(), activityDetailsResponse.freeCancellationMinHours);
cancellation.bindData(getResources().getString(R.string.cancellation_policy),
cancellationPolicyText, 0);
cancellation.setVisibility(View.VISIBLE);
int datesScrollerDrawable =
CollectionUtils.isNotEmpty(activityDetailsResponse.highlights) ? R.drawable.lx_dates_container_background
: R.drawable.lx_dates_container_background_no_top_border;
offerDatesScrollView.setBackground(getResources().getDrawable(datesScrollerDrawable));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void run() {\n if(body.getLineCount() < 4) {\n more.setVisibility(GONE);\n }\n body.setMaxLines(3);\n }",
"public void readMore5(View view) {\n String re... | [
"0.7181128",
"0.6627325",
"0.65692335",
"0.6442371",
"0.6421225",
"0.6394025",
"0.6369641",
"0.635948",
"0.6340572",
"0.63317716",
"0.6286187",
"0.62358093",
"0.622794",
"0.62162995",
"0.6192278",
"0.6175012",
"0.6164669",
"0.6160705",
"0.6128938",
"0.6122735",
"0.6082603",
... | 0.48898703 | 61 |
Not all activities have all the sections. Reset before building details. | private void resetSections() {
description.setVisibility(View.GONE);
location.setVisibility(View.GONE);
highlights.setVisibility(View.GONE);
inclusions.setVisibility(View.GONE);
exclusions.setVisibility(View.GONE);
knowBeforeYouBook.setVisibility(View.GONE);
cancellation.setVisibility(View.GONE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void resetSections(boolean alwaysAllowEmptySections) {\n removeAllSections();\n\n SuggestionsSource suggestionsSource = mUiDelegate.getSuggestionsSource();\n int[] categories = suggestionsSource.getCategories();\n for (int category : categories) {\n int categoryStatus... | [
"0.5934595",
"0.5671418",
"0.56687963",
"0.55894536",
"0.5588161",
"0.55842674",
"0.5535092",
"0.54771984",
"0.53564966",
"0.53031987",
"0.5235572",
"0.52169645",
"0.51961297",
"0.51680475",
"0.5165925",
"0.5157649",
"0.5155226",
"0.51494074",
"0.51201224",
"0.51124907",
"0.5... | 0.68202686 | 0 |
Setup interpolator for Gallery counterscroll (if needed) | private void galleryCounterscroll(int parentScroll) {
if (mIGalleryScroll == null) {
int screenHeight = getHeight();
PointF p1 = new PointF(0, screenHeight - mGalleryHeight / 2);
PointF p2 = new PointF(mGalleryHeight, screenHeight - mGalleryHeight);
PointF p3 = new PointF(screenHeight, (screenHeight - mGalleryHeight + mIntroOffset) / 2);
mIGalleryScroll = new SegmentedLinearInterpolator(p1, p2, p3);
}
// The number of y-pixels available to the gallery
int availableHeight = getHeight() - parentScroll;
int counterscroll = (int) mIGalleryScroll.get(availableHeight);
galleryContainer.setPivotX(getWidth() / 2);
galleryContainer.setPivotY(counterscroll + mGalleryHeight / 2);
galleryContainer.scrollTo(0, -counterscroll);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setInterpolator(final Interpolator interpolator);",
"SliderListener(Sampler[] samplers,Container pane,int numSampler,char parameter){\n this.samplers = samplers;\n this.pane = pane;\n this.numSampler = numSampler;\n this.parameter = parameter; \n }",
"public void setInterpolator(Interpolator in... | [
"0.5588443",
"0.5494896",
"0.53644055",
"0.53611934",
"0.53611934",
"0.5360198",
"0.53305584",
"0.52784324",
"0.5275012",
"0.5274263",
"0.5264452",
"0.5253014",
"0.5226469",
"0.52227706",
"0.5198882",
"0.5198882",
"0.51879436",
"0.5185906",
"0.51519126",
"0.51519126",
"0.5135... | 0.63225573 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
int value = 1;
} | {
"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 |
TODO Autogenerated method stub | @Override
public boolean step() {
return false;
} | {
"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 |
TODO Autogenerated method stub | @Override
public void mouseDragged(MouseEvent arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.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 |
TODO Autogenerated method stub | @Override
public void mouseMoved(MouseEvent arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.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 |
TODO Autogenerated method stub | @Override
public void mouseClicked(MouseEvent arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.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 |
TODO Autogenerated method stub | @Override
public void mouseEntered(MouseEvent arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.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 |
TODO Autogenerated method stub | @Override
public void mouseExited(MouseEvent arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.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 |
TODO Autogenerated method stub | @Override
public void mousePressed(MouseEvent arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.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 |
Intent intent = getIntent(); String value = intent.getStringExtra("key"); Log.println(1, "Intent value",value); | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_color_change_by_magnet);
//Layout to change the background from the main activity
layout = findViewById(R.id.MagnassoRGB);
// Get a reference to the SensorManager
mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
// Get a reference to the magnetometer
magnetometer = mSensorManager
.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
// Exit unless sensor are available
if (null == magnetometer)
finish();
changeToHome();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getExtraString(Activity context, String key) {\n \tString param = \"\";\n \tBundle bundle = context.getIntent().getExtras();\n \tif(bundle!=null){\n \t\tparam = bundle.getString(key);\n \t}\n \treturn param;\n\t}",
"private void getIntentValues() {\n\n// itemname= g... | [
"0.7639849",
"0.726505",
"0.70740473",
"0.6906844",
"0.69043297",
"0.68314546",
"0.6719572",
"0.6698957",
"0.66099036",
"0.6571819",
"0.64354676",
"0.6402122",
"0.6395963",
"0.6387482",
"0.63814604",
"0.63521385",
"0.6327676",
"0.63237274",
"0.62215483",
"0.62096715",
"0.6195... | 0.0 | -1 |
Acquire magnetometer event data | @Override
public void onSensorChanged(SensorEvent event) {
if (event.sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD) {
mGeomagnetic = new float[3];
System.arraycopy(event.values, 0, mGeomagnetic, 0, 3);
}
// If we have readings from both sensors then
// use the readings to compute the device's orientation
// and then update the display.
if (mGeomagnetic != null) {
int R = (int) mGeomagnetic[0];
int G = (int) mGeomagnetic[1];
int B = (int) mGeomagnetic[2];
setBackgroundColorDisplay(R, G, B);
Log.d(TAG, "mx : "+mGeomagnetic[0]+" my : "+mGeomagnetic[1]+" mz : "+mGeomagnetic[2]);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void magnetometer(int x, int y, int z, int timestamp) {\n }",
"public void onSensorChanged(SensorEvent event) {\n\t\t\tint type = event.sensor.getType();\n\t\t\tif (type == Sensor.TYPE_ACCELEROMETER) {\n\t\t\t\tlong curTime = System.currentTimeMillis();\n\t\t\t\t// only allow one update ... | [
"0.70778173",
"0.64532775",
"0.63299257",
"0.6221094",
"0.6190583",
"0.61350036",
"0.6056669",
"0.60513324",
"0.60488605",
"0.60294634",
"0.594051",
"0.59398735",
"0.5924054",
"0.58744943",
"0.58328",
"0.58141917",
"0.57951766",
"0.57698864",
"0.57658255",
"0.57656264",
"0.57... | 0.5757912 | 21 |
Changing MainActivity backgroundcolor with boundaries for the RGB colors not falling below 0 | private void setBackgroundColorDisplay(int colorR, int colorG, int colorB){
int red = colorR;
int green = colorG;
int blue = colorB;
if(colorR < 0){
red = 0;
}
if (colorG < 0){
green = 0;
}
if (colorB < 0){
blue = 0;
}
int magnassoColor = (255 & 0xff) << 24 | (red & 0xff) << 16 | (green & 0xff) << 8 | (blue & 0xff);
layout.setBackgroundColor(magnassoColor);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateColor() {\n int redShift = red << 16; // red: 0xRR0000 <- 0xRR\n int greenShift = green << 8; // red: 0xGG00 <- 0xGG\n int blueShift = blue; // blue: 0xBB <- 0xBB\n int alphaShift = 0xff << 24; // alpha 0xff000000 <- 0xff // we don't want our color to be transparent.\... | [
"0.67259985",
"0.6595715",
"0.65832627",
"0.6423258",
"0.6289663",
"0.62326545",
"0.6232581",
"0.62237734",
"0.61843187",
"0.6132572",
"0.612847",
"0.6097026",
"0.60552156",
"0.60519785",
"0.6037003",
"0.6036531",
"0.6025955",
"0.6001259",
"0.5991261",
"0.5985455",
"0.5981955... | 0.63209355 | 4 |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AppManager.getInstance().addActivity(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void 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 |
TODO Autogenerated method stub | @Override
public int compare(PackageSubscription o1, PackageSubscription o2) {
return o2.getEndDate().compareTo(o1.getEndDate());
} | {
"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 |
Use the current date as the default date in the picker | @Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
final Calendar c = Calendar.getInstance();
int year = c.get(Calendar.YEAR);
int month = c.get(Calendar.MONTH);
int day = c.get(Calendar.DAY_OF_MONTH);
d_fechaCreacion = getActivity().findViewById(R.id.d_fechaTransectaItem);
DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);
datePickerDialog.updateDate(year, month, day);
// Create a new instance of DatePickerDialog and return it
return datePickerDialog;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTodayDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tmYear = c.get(Calendar.YEAR);\r\n\t\tmMonth = c.get(Calendar.MONTH);\r\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tmaxYear = mYear - 10;\r\n\t\tmaxMonth = mMonth;\r\n\t\tmaxDay = mDay;\r\n\r\n\t\tminYear = mYear - 110;\r\n... | [
"0.7571277",
"0.70525557",
"0.697431",
"0.686381",
"0.6798962",
"0.67890644",
"0.67821634",
"0.6780236",
"0.67048514",
"0.6688095",
"0.6673843",
"0.66645014",
"0.6640542",
"0.66284364",
"0.662271",
"0.6613284",
"0.66120523",
"0.65636647",
"0.65568733",
"0.653814",
"0.6530678"... | 0.0 | -1 |
~ Constructors Creates a new ReduceTransform object. | protected MetricMappingTransform(ValueMapping valueMapping) {
this.valueMapping = valueMapping;
this.defaultScope = valueMapping.name();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ReduceType reduceInit();",
"@Override\n\t\tpublic void reduce() {\n\t\t\t\n\t\t}",
"ASTFoldCombine() { super(null); }",
"public Transform() {\n }",
"public InMemoryCombiningReducer() {\n\n\t\t}",
"public Transform getTransform(){\n switch (this){\n case promote_terminals: return new ... | [
"0.6350373",
"0.6062235",
"0.57367307",
"0.56551266",
"0.5606503",
"0.5567269",
"0.5482259",
"0.54593146",
"0.5372737",
"0.5342808",
"0.5342808",
"0.53044236",
"0.5301201",
"0.52904075",
"0.52286714",
"0.51774",
"0.5164718",
"0.5141613",
"0.5120662",
"0.5110548",
"0.5057661",... | 0.0 | -1 |
Mapping a list of metric, only massage its datapoints. | private List<Metric> mapping(List<Metric> metrics) {
SystemAssert.requireArgument(metrics != null, "Cannot transform empty metric/metrics");
if (metrics.isEmpty()) {
return metrics;
}
List<Metric> newMetricsList = new ArrayList<Metric>();
for (Metric metric : metrics) {
Map<Long, String> cleanDatapoints = cleanDPs(metric.getDatapoints());
metric.setDatapoints(this.valueMapping.mapping(cleanDatapoints));
newMetricsList.add(metric);
}
return newMetricsList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract List<Metric> getMetrics();",
"private void addMetrics(List<MetricDatum> list,\n MetricValues metricValues,\n StandardUnit unit) {\n List<MachineMetric> machineMetrics = metricValues.getMetrics();\n List<Long> values = metricValues.getValues();\n for (int... | [
"0.60332745",
"0.60228306",
"0.5450348",
"0.5424652",
"0.5424079",
"0.538144",
"0.5297616",
"0.5144823",
"0.51224583",
"0.50804263",
"0.5068653",
"0.5044828",
"0.50118273",
"0.4963569",
"0.49626163",
"0.49326453",
"0.48996887",
"0.4883409",
"0.48403046",
"0.48330325",
"0.4832... | 0.7307739 | 0 |
TODO Autogenerated method stub | @Override
public void onClick(View v)
{
if(MAP_SWITCH_FLAG)
{
/* 卫星地图模式 */
MAP_SWITCH_FLAG = false;
//mMapSwitchBtn.setText("地图");
//mMapSwitchBtn.setTextSize(10);
//mMapSwitchBtn.setTextColor(Color.GREEN);
/* mMapSwitchBtn.setCompoundDrawables(null,
getResources().getDrawable(R.drawable.map_switch_button_m), null, null);*/
mMapSwitchBtn.setCompoundDrawablesWithIntrinsicBounds(mDrawableMapNormal, null, null, null);
//设置卫星地图
mBaiduMap.setMapType(BaiduMap.MAP_TYPE_SATELLITE);
}
else
{
/* 普通地图模式 */
MAP_SWITCH_FLAG = true;
//mMapSwitchBtn.setText("卫星");
//mMapSwitchBtn.setTextSize(10);
//mMapSwitchBtn.setTextColor(Color.WHITE);
/*mMapSwitchBtn.setCompoundDrawables(null,
getResources().getDrawable(R.drawable.map_switch_button_m, null), null, null);*/
mMapSwitchBtn.setCompoundDrawablesWithIntrinsicBounds(mDrawableMapSatellite, null, null, null);
mBaiduMap.setMapType(BaiduMap.MAP_TYPE_NORMAL);
}
} | {
"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 |
TODO Autogenerated method stub mDistanceAround = Integer.valueOf(mEditText.getText().toString()); Toast.makeText(mContext, "mSeekBar:mDistanceAround value is " + mDistanceAround, Toast.LENGTH_SHORT).show(); Toast.makeText(mContext, "SeekBar onStopTrackingTouch ", Toast.LENGTH_SHORT).show(); | @Override
public void onStopTrackingTouch(VerticalSeekBar VerticalSeekBar)
{
mDistanceAround = mVerticalSeekBar.getProgress() + MIN_DISTANCE;
mEditText.setAlpha(0.5f);
mVerticalSeekBar.setAlpha(0.4f);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onStopTrackingTouch(SeekBar seekBar);",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n ... | [
"0.6275768",
"0.6185892",
"0.6185892",
"0.6162989",
"0.61608976",
"0.61608976",
"0.6152103",
"0.6146631",
"0.6146631",
"0.6146631",
"0.6146631",
"0.61271304",
"0.6125317",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
... | 0.6727084 | 0 |
TODO Autogenerated method stub Toast.makeText(mContext, "SeekBar onStartTrackingTouch ", Toast.LENGTH_SHORT).show(); | @Override
public void onStartTrackingTouch(VerticalSeekBar VerticalSeekBar)
{
mEditText.setAlpha(0.8f);
mVerticalSeekBar.setAlpha(0.8f);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"public void onStart... | [
"0.88108766",
"0.8768382",
"0.8768382",
"0.8768382",
"0.8768382",
"0.8768382",
"0.8750743",
"0.87474626",
"0.87472314",
"0.87306046",
"0.87200046",
"0.87190896",
"0.87141097",
"0.87141097",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.87056... | 0.0 | -1 |
TODO Autogenerated method stub TODO Autogenerated method stub seekBar.setProgress(progress); mDistanceAround = seekBar.getProgress(); mEditText.setText(progress); Toast.makeText(mContext, "mDistanceAround value is " + mDistanceAround, Toast.LENGTH_SHORT).show(); progress = Integer.valueOf(mEditText.getText().toString()); Toast.makeText(mContext, "SeekBar onProgressChanged ", Toast.LENGTH_SHORT).show(); | @Override
public void onProgressChanged(VerticalSeekBar VerticalSeekBar, int progress, boolean fromUser)
{
mEditText.setText(String.valueOf(progress + MIN_DISTANCE)+"m");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser) {\n progress = progressValue;\n distanceValue.setText(getString(R.string.fullscreen_dialog__value_in_meter,progress));\n }",
"@Override\r\n public void on... | [
"0.7624047",
"0.75022596",
"0.7500587",
"0.7392109",
"0.73446983",
"0.73212713",
"0.7299551",
"0.7278841",
"0.727401",
"0.72151923",
"0.72007936",
"0.719799",
"0.71004385",
"0.707012",
"0.7038548",
"0.7034035",
"0.70207417",
"0.6997881",
"0.6993024",
"0.69729155",
"0.6944505"... | 0.75018036 | 2 |
MyLog.w("location_public", "here " + location.getLongitude() + " " + location.getLatitude()); | private void notifyOnLocationChange(Location location) {
if (listeners != null) {
for (GPSServiceListener listener : listeners) {
if (listener != null) {
listener.onLocationChange(location);
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\tLog.d(\"demo\", \"Lat:\" + location.getLatitude() + \" Long:\"+location.getLongitude());\r\n\t\t\t}",
"@Override\n public void onLocationChanged(Location location) {\n Toast.makeText(getApplicationContext(), location.toStrin... | [
"0.74165004",
"0.7380279",
"0.7371401",
"0.7315793",
"0.7100082",
"0.7081746",
"0.7009303",
"0.69677484",
"0.6856503",
"0.6833042",
"0.67766637",
"0.6765339",
"0.6731211",
"0.66461724",
"0.66142344",
"0.66047966",
"0.6603654",
"0.6598043",
"0.65957665",
"0.65843683",
"0.65740... | 0.0 | -1 |
return true if distance increase more than 200 meters or time more than 5 minutes | private boolean isNotifyLocationChange(Location old, Location update) {
boolean isNotifyLocationChange = false;
isNotifyLocationChange = (old.distanceTo(update) >= MIN_DISTANCE_NOTIFY) && (update.getTime() - old.getTime() >= MIN_TIME_NOTIFY);
return isNotifyLocationChange;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean isFinished() {\n \n boolean thereYet = false;\n\n double time = timer.get();\n\n \n if (Math.abs(targetDistance - distanceTraveled) <= 4){\n\n thereYet = true;\n\n // else if(Math.abs(targetDistance - distanceTraveled) <= 24){\n\n //shifter.shiftDown();\n... | [
"0.6671038",
"0.65811986",
"0.6331327",
"0.62904507",
"0.61218256",
"0.61002195",
"0.592034",
"0.58820254",
"0.58818614",
"0.5839883",
"0.5837194",
"0.58312744",
"0.57940805",
"0.57909656",
"0.577803",
"0.574542",
"0.5722032",
"0.5633868",
"0.5613757",
"0.5611128",
"0.5605132... | 0.5282513 | 65 |
/ access modifiers changed from: protected | public void attach(BaseRecyclerChildViewModel bVar) {
bVar.attachParent(this);
this.mChildSet.add(bVar);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.640... | 0.0 | -1 |
Type your code here | public static void main (String[] args){
Scanner s=new Scanner(System.in);
int n=s.nextInt();
if(n%2==1)
{
n=n/2;
n++;
}
else
{
n=n/2;
}
for(int i=1;i<=n;i++)
{
for(int k=1;k<=i-1;k++)
{
System.out.print(" ");
}
for(int j=1;j<=((2*n-1)-2*(i-1));j++)
{
if(j==1||j==((2*n-1)-2*(i-1)))
System.out.print("*");
else
System.out.print(" ");
}
System.out.println();
}
for(int i=2;i<=n;i++)
{
for(int k=1;k<=n-i;k++)
{
System.out.print(" ");
}
for(int j=1;j<i*2;j++)
{
if(j==1||j==(i*2-1))
System.out.print("*");
else
System.out.print(" ");
}
System.out.println();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void generateCode()\n {\n \n }",
"@Override\r\n\tpublic void code() {\n\t\tus.code();\r\n\t\tSystem.out.println(\"我会java...\");\r\n\t}",
"@Override\r\n\tpublic void code() {\n\t\tSystem.out.println(\"我会C语言....\");\r\n\t}",
"CD withCode();",
"Code getCode();",
"private void sear... | [
"0.67529005",
"0.65678793",
"0.641418",
"0.6334503",
"0.6230944",
"0.62127316",
"0.6207898",
"0.60968196",
"0.6072467",
"0.606349",
"0.606349",
"0.606349",
"0.606349",
"0.606349",
"0.59795964",
"0.58908486",
"0.58157927",
"0.5754923",
"0.57194966",
"0.57184726",
"0.5709211",
... | 0.0 | -1 |
'append()' will append data at last position. | public void append(int data) {
// created object of 'Node' class
Node node = new Node();
// initializing 'node' of the linked-list
node.data = data;
node.next = null; // at the time of node creation, the 'next' not refer to any other node
// if the linked-list is empty which means 'head' is refer to 'null'
if (head == null) {
//Creating a first or head node
head = node;
} else {
Node n = head; // n is our temporary node
while (n.next != null) {
n = n.next; // jumping to next node as 'n.next' contains next node address
}
n.next = node;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void append(int data, int row, int column);",
"Position<T> addLast(T data);",
"public void append(IoBuffer buffer) {\n data.offerLast(buffer);\n updateBufferList();\n }",
"public void append(Object item);",
"public void append(T element);",
"public void append(T element);... | [
"0.6845645",
"0.674864",
"0.674226",
"0.6685855",
"0.66609025",
"0.66609025",
"0.6584389",
"0.6573061",
"0.6372028",
"0.63694084",
"0.63678086",
"0.6362639",
"0.63526016",
"0.62732667",
"0.62391955",
"0.6237168",
"0.62202567",
"0.62088716",
"0.6157042",
"0.61543596",
"0.61476... | 0.5530771 | 83 |
'insertAfter()' will insert data after specific node value | public void insertAfter(int after, int data) {
// variable "after" stores the value after which we want to insert node in the linked-list
Node node = new Node();
node.data = data;
node.next = null;
Node n = head;
while(n != null){
if (n.data == after){
node.next = n.next;
n.next = node;
}
n = n.next;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Node insertAfter(Node node);",
"public void insertAfter( long after, T data){\n Node<T> node = new Node<T>(data);\n if(this.isEmpty()|| after == 0) {\n this.insertFirst(data);\n }\n else if(after >= size) { //if new Node inserted in the end of list\n this.... | [
"0.7880999",
"0.692111",
"0.6881626",
"0.6699208",
"0.6685485",
"0.66037476",
"0.6553272",
"0.65226203",
"0.64800435",
"0.6471049",
"0.64052814",
"0.64028174",
"0.6339794",
"0.6329584",
"0.63259625",
"0.6303488",
"0.6276342",
"0.62330407",
"0.6232637",
"0.62293375",
"0.622466... | 0.6847356 | 3 |
/ SimpleRetryPolicy simpleRetryPolicy = new SimpleRetryPolicy(); simpleRetryPolicy.setMaxAttempts(3); | private RetryPolicy simpleRetryPolicy() {
Map<Class<? extends Throwable>, Boolean> exceptionsMaps = new HashMap<>();
exceptionsMaps.put(RecoverableDataAccessException.class, true);
exceptionsMaps.put(IllegalArgumentException.class, false);
SimpleRetryPolicy simpleRetryPolicy = new SimpleRetryPolicy(3, exceptionsMaps, true);
return simpleRetryPolicy;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public RetryPolicy getRetryPolicy() {\n return super.getRetryPolicy();\n }",
"@Override\n public RetryPolicy getRetryPolicy() {\n return super.getRetryPolicy();\n }",
"protected int retryLimit() {\n return DEFAULT_RETRIES;\n }",
"static RetryPolicy getDefaultRe... | [
"0.73712415",
"0.73712415",
"0.689617",
"0.6896096",
"0.6757981",
"0.66719115",
"0.6525613",
"0.646714",
"0.646714",
"0.646714",
"0.64404476",
"0.64363205",
"0.6386163",
"0.63442826",
"0.63393915",
"0.63393915",
"0.63393915",
"0.63381076",
"0.6328039",
"0.63146305",
"0.626844... | 0.80151874 | 0 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
getActivity().setTitle("Car Status");
v=inflater.inflate(R.layout.fragment_status, container, false);
listView = (ListView) v.findViewById(R.id.obdReadingsList);
arrayList.add("Engine Load: \n"+firebaseManager.L_ENGINE_LOAD);
arrayList.add("RPM: \n"+firebaseManager.L_RPM);
arrayList.add("Speed: \n"+firebaseManager.L_SPEED);
arrayList.add("Throttle Position: \n"+firebaseManager.L_THROTTLE_POS);
arrayList.add("Coolant Temperature: \n"+firebaseManager.L_COOLANT_TEMP);
arrayList.add("Fuel Pressure: \n"+firebaseManager.L_FUEL_PRESSURE);
arrayList.add("Intake Pressure: \n"+firebaseManager.L_INTAKE_PRESSURE);
arrayList.add("Timing Advance: \n"+firebaseManager.L_TIMING_ADVANCE);
arrayList.add("Air Flow Rate: \n"+firebaseManager.L_MAF);
arrayList.add("Fuel Level: \n"+firebaseManager.L_FUEL_LEVEL);
arrayList.add("Fuel Type: \n"+firebaseManager.L_FUEL_TYPE);
arrayList.add("Oil Temperature: \n"+firebaseManager.L_OIL_TEMP);
arrayList.add("Fuel Inject Timing \n"+firebaseManager.L_FUEL_INJECT_TIMING);
arrayList.add("Engine Fuel Rate: \n"+firebaseManager.L_FUEL_RATE);
arrayAdapter = new ArrayAdapter<String>(getContext(), android.R.layout.simple_list_item_1, arrayList);
listView.setAdapter(arrayAdapter);
firebaseManager.L_ReadingsRef.addChildEventListener(new ChildEventListener() {
@Override
public void onChildAdded(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {
arrayList.clear();
arrayList.add("Engine Load: \n"+firebaseManager.L_ENGINE_LOAD);
arrayList.add("RPM: \n"+firebaseManager.L_RPM);
arrayList.add("Speed: \n"+firebaseManager.L_SPEED);
arrayList.add("Throttle Position: \n"+firebaseManager.L_THROTTLE_POS);
arrayList.add("Coolant Temperature: \n"+firebaseManager.L_COOLANT_TEMP);
arrayList.add("Fuel Pressure: \n"+firebaseManager.L_FUEL_PRESSURE);
arrayList.add("Intake Pressure: \n"+firebaseManager.L_INTAKE_PRESSURE);
arrayList.add("Timing Advance: \n"+firebaseManager.L_TIMING_ADVANCE);
arrayList.add("Air Flow Rate: \n"+firebaseManager.L_MAF);
arrayList.add("Fuel Level: \n"+firebaseManager.L_FUEL_LEVEL);
arrayList.add("Fuel Type: \n"+firebaseManager.L_FUEL_TYPE);
arrayList.add("Oil Temperature: \n"+firebaseManager.L_OIL_TEMP);
arrayList.add("Fuel Inject Timing \n"+firebaseManager.L_FUEL_INJECT_TIMING);
arrayList.add("Engine Fuel Rate: \n"+firebaseManager.L_FUEL_RATE);
arrayAdapter = new ArrayAdapter<String>(getContext(), android.R.layout.simple_list_item_1, arrayList);
listView.setAdapter(arrayAdapter);
}
@Override
public void onChildChanged(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {
arrayList.clear();
arrayList.add("Engine Load: \n"+firebaseManager.L_ENGINE_LOAD);
arrayList.add("RPM: \n"+firebaseManager.L_RPM);
arrayList.add("Speed: \n"+firebaseManager.L_SPEED);
arrayList.add("Throttle Position: \n"+firebaseManager.L_THROTTLE_POS);
arrayList.add("Coolant Temperature: \n"+firebaseManager.L_COOLANT_TEMP);
arrayList.add("Fuel Pressure: \n"+firebaseManager.L_FUEL_PRESSURE);
arrayList.add("Intake Pressure: \n"+firebaseManager.L_INTAKE_PRESSURE);
arrayList.add("Timing Advance: \n"+firebaseManager.L_TIMING_ADVANCE);
arrayList.add("Air Flow Rate: \n"+firebaseManager.L_MAF);
arrayList.add("Fuel Level: \n"+firebaseManager.L_FUEL_LEVEL);
arrayList.add("Fuel Type: \n"+firebaseManager.L_FUEL_TYPE);
arrayList.add("Oil Temperature: \n"+firebaseManager.L_OIL_TEMP);
arrayList.add("Fuel Inject Timing \n"+firebaseManager.L_FUEL_INJECT_TIMING);
arrayList.add("Engine Fuel Rate: \n"+firebaseManager.L_FUEL_RATE);
arrayAdapter = new ArrayAdapter<String>(getContext(), android.R.layout.simple_list_item_1, arrayList);
listView.setAdapter(arrayAdapter);
}
@Override
public void onChildRemoved(@NonNull DataSnapshot dataSnapshot) {
arrayList.clear();
arrayList.add("Engine Load: \n"+firebaseManager.L_ENGINE_LOAD);
arrayList.add("RPM: \n"+firebaseManager.L_RPM);
arrayList.add("Speed: \n"+firebaseManager.L_SPEED);
arrayList.add("Throttle Position: \n"+firebaseManager.L_THROTTLE_POS);
arrayList.add("Coolant Temperature: \n"+firebaseManager.L_COOLANT_TEMP);
arrayList.add("Fuel Pressure: \n"+firebaseManager.L_FUEL_PRESSURE);
arrayList.add("Intake Pressure: \n"+firebaseManager.L_INTAKE_PRESSURE);
arrayList.add("Timing Advance: \n"+firebaseManager.L_TIMING_ADVANCE);
arrayList.add("Air Flow Rate: \n"+firebaseManager.L_MAF);
arrayList.add("Fuel Level: \n"+firebaseManager.L_FUEL_LEVEL);
arrayList.add("Fuel Type: \n"+firebaseManager.L_FUEL_TYPE);
arrayList.add("Oil Temperature: \n"+firebaseManager.L_OIL_TEMP);
arrayList.add("Fuel Inject Timing \n"+firebaseManager.L_FUEL_INJECT_TIMING);
arrayList.add("Engine Fuel Rate: \n"+firebaseManager.L_FUEL_RATE);
arrayAdapter = new ArrayAdapter<String>(getContext(), android.R.layout.simple_list_item_1, arrayList);
listView.setAdapter(arrayAdapter);
}
@Override
public void onChildMoved(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {
arrayList.clear();
arrayList.add("Engine Load: \n"+firebaseManager.L_ENGINE_LOAD);
arrayList.add("RPM: \n"+firebaseManager.L_RPM);
arrayList.add("Speed: \n"+firebaseManager.L_SPEED);
arrayList.add("Throttle Position: \n"+firebaseManager.L_THROTTLE_POS);
arrayList.add("Coolant Temperature: \n"+firebaseManager.L_COOLANT_TEMP);
arrayList.add("Fuel Pressure: \n"+firebaseManager.L_FUEL_PRESSURE);
arrayList.add("Intake Pressure: \n"+firebaseManager.L_INTAKE_PRESSURE);
arrayList.add("Timing Advance: \n"+firebaseManager.L_TIMING_ADVANCE);
arrayList.add("Air Flow Rate: \n"+firebaseManager.L_MAF);
arrayList.add("Fuel Level: \n"+firebaseManager.L_FUEL_LEVEL);
arrayList.add("Fuel Type: \n"+firebaseManager.L_FUEL_TYPE);
arrayList.add("Oil Temperature: \n"+firebaseManager.L_OIL_TEMP);
arrayList.add("Fuel Inject Timing \n"+firebaseManager.L_FUEL_INJECT_TIMING);
arrayList.add("Engine Fuel Rate: \n"+firebaseManager.L_FUEL_RATE);
arrayAdapter = new ArrayAdapter<String>(getContext(), android.R.layout.simple_list_item_1, arrayList);
listView.setAdapter(arrayAdapter);
}
@Override
public void onCancelled(@NonNull DatabaseError databaseError) {
}
});
return v;
} | {
"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 |
We always encode/decode utf8 strings | public static byte[] serialize(Packet data) throws InvalidParameterException, UnsupportedEncodingException {
byte[] emitter = data.getEmitter().getBytes(ENCODING);
byte[] text = data.getText().getBytes(ENCODING);
if (emitter.length > Byte.MAX_VALUE) {
throw new InvalidParameterException("Emitter length exceeded");
}
if (text.length > Short.MAX_VALUE) {
throw new InvalidParameterException("Text length exceeded");
}
int size = MIN_SIZE + emitter.length + text.length;
ByteBuffer buffer = ByteBuffer.allocate(size)
.putInt(size)
.put(data.getType().code())
.putShort(data.getId())
.putLong(data.getTimestamp())
.put((byte) emitter.length)
.put(emitter)
.putShort((short) text.length)
.put(text);
return buffer.array();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public EncodeAndDecodeStrings() {}",
"protected String getUTF8Str(String str) throws UnsupportedEncodingException {\n return new String(str.getBytes(\"iso-8859-1\"), \"utf-8\");\r\n }",
"@org.junit.Test\n public void encodeDecode()\n {\n String test = \"just some \\t\\ftes\\rt\\u001B for d... | [
"0.77639776",
"0.7030101",
"0.68993944",
"0.669844",
"0.6686702",
"0.66720676",
"0.6571391",
"0.6489274",
"0.64795554",
"0.64497864",
"0.63815314",
"0.6344598",
"0.6342194",
"0.6339292",
"0.6300659",
"0.62739563",
"0.62560725",
"0.62423503",
"0.622173",
"0.62103844",
"0.62039... | 0.0 | -1 |
Reads string of arbitrary length from input stream | private static String readStr(InputStream stream, int length, boolean allowEof) throws IOException {
byte[] b = new byte[length];
int readBytes = stream.read(b);
if (readBytes != length && !(allowEof && length == 0)) {
throw new EOFException("Unexpected end of steam. Read bytes " + readBytes + "; required " + length);
}
return new String(b, ENCODING);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private synchronized String readString(int len) throws IOException {\n\t\tread(bytes, len);\n\t\treturn readString(bytes, 0, len);\n\t}",
"private String readFixedString(int size, DataInput in) throws IOException\n { \n var b = new StringBuilder(size);\n int i = 0;\n var done = false;\n wh... | [
"0.7415873",
"0.70552886",
"0.70071626",
"0.6936069",
"0.6741941",
"0.66498905",
"0.6645984",
"0.65775114",
"0.6526582",
"0.6526582",
"0.64579695",
"0.64531666",
"0.6417993",
"0.63829494",
"0.6344908",
"0.6290389",
"0.62412226",
"0.6222303",
"0.6217152",
"0.6135029",
"0.61303... | 0.7066524 | 1 |
testPost(); String res = execGet(" String res = execGet(" System.out.println(res); String res = execGet(" | public static void main(String[] args) throws Exception {
testPost();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String execute(HttpServletRequest req, HttpServletResponse res);",
"public String post();",
"private String ExecuteRest(String urlServer,String params){\t\n\t\t\ttry {\t\t\t\n\t\t\t\tURL url = new URL(urlServer);\n\t\t\t\t\n\t\t\t\tHttpURLConnection connection = (HttpURLConnection) url.openConnection();\n\t ... | [
"0.61975735",
"0.60949105",
"0.60933775",
"0.60578597",
"0.60273594",
"0.60251224",
"0.6003008",
"0.6002433",
"0.5994065",
"0.59204036",
"0.5916247",
"0.5894631",
"0.57901365",
"0.5777299",
"0.57758975",
"0.5764719",
"0.57636786",
"0.57593316",
"0.5744008",
"0.5722029",
"0.57... | 0.59151936 | 11 |
Construct a name key | public NameKey(NameAnalyser analyser, NomenclaturalCode code, String scientificName, String scientificNameAuthorship, RankType rank, NameType type, @Nullable Set<NameFlag> flags) {
this.analyser = analyser;
this.code = code;
this.scientificName = scientificName;
this.scientificNameAuthorship = scientificNameAuthorship;
this.rank = rank;
this.type = type;
this.flags = flags;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static String makeKey(String id,\n String for_,\n String attrname,\n String attrtype) {\n return format(KEY_FMT, id, for_, attrname, attrtype);\n }",
"public ABLKey Key(String name) {\r\n\t\treturn new ABLKey(BrickFinder.getDefa... | [
"0.70072097",
"0.6839832",
"0.68136585",
"0.6780729",
"0.67479926",
"0.66400105",
"0.66391146",
"0.64567816",
"0.64498293",
"0.64336383",
"0.64300954",
"0.642539",
"0.64169395",
"0.6414158",
"0.64139146",
"0.63781035",
"0.63385594",
"0.6317915",
"0.62666225",
"0.6263298",
"0.... | 0.59056133 | 55 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.