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 |
|---|---|---|---|---|---|---|
if value is null will return null current. | public static Object getPathValue(DynamicMessage originMessage,
FieldPathUtils.PathInfo pathInfo,
FeatureContext ctx) {
if (Objects.isNull(pathInfo) || Objects.isNull(originMessage)) {
return null;
}
Object pathMessage = originMe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object currValue();",
"public T getCurrent(){\r\n if(curr != null){\r\n return curr.data;\r\n }\r\n return null;\r\n }",
"String getCurrentValue();",
"public String getCurrentEntry() {\n if (entries.size() > 0) {\n int index = Math.round(offsetValue... | [
"0.6508744",
"0.64726686",
"0.6217685",
"0.6177916",
"0.6172153",
"0.6060735",
"0.6025973",
"0.6025973",
"0.6005301",
"0.60003",
"0.597561",
"0.5967476",
"0.59291905",
"0.589232",
"0.5875579",
"0.5861634",
"0.58264244",
"0.58166295",
"0.57984823",
"0.5778446",
"0.5777373",
... | 0.0 | -1 |
Protobuf repeated message stored as list, and every dynamic message contain key field and value field, which key field's value stored user properties key, value field's value stored user properties value. | private static Pair<Descriptors.FieldDescriptor, Object> getDescriptorAndMessageByName(Object pathValue, FieldPathUtils.PathInfo pathInfo) {
Descriptors.FieldDescriptor targetDescriptor = null;
Object targetMessage = null;
if (pathValue instanceof DynamicMessage) {
targetDescriptor = ((DynamicMessage... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RepeatedMessage() {\n\t\tsuper(\"repeated_message\", com.instalogger.entities.generated.Public.PUBLIC);\n\t}",
"java.util.List<com.google.protobuf.ByteString> getRepeatedBytesFieldList();",
"java.util.List<? extends io.dstore.engine.MessageOrBuilder> \n getMessageOrBuilderList();",
"java.util.L... | [
"0.61882037",
"0.5747719",
"0.54666704",
"0.54666704",
"0.54666704",
"0.54666704",
"0.54666704",
"0.5351597",
"0.5228586",
"0.52277267",
"0.5210267",
"0.51898485",
"0.512042",
"0.5094895",
"0.5068061",
"0.5066786",
"0.5013135",
"0.4989758",
"0.49739736",
"0.49739736",
"0.4973... | 0.0 | -1 |
Find path message field from raw message. | public static Object getPathMessage(Descriptors.FieldDescriptor fieldDescriptor,
DynamicMessage message,
FieldPathUtils.PathInfo pathInfo,
FeatureContext ctx) {
if (FieldPathUtils.PathType.ARRAY.equals(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MessageField getCorrespondingField();",
"public static Object getPathValue(DynamicMessage originMessage,\n FieldPathUtils.PathInfo pathInfo,\n FeatureContext ctx) {\n if (Objects.isNull(pathInfo) || Objects.isNull(originMessage)) {\n... | [
"0.60274434",
"0.59718025",
"0.55247384",
"0.55221057",
"0.53758204",
"0.5372971",
"0.53606564",
"0.5290374",
"0.5240718",
"0.51980877",
"0.51736563",
"0.51162213",
"0.51077175",
"0.50927156",
"0.5081503",
"0.50730693",
"0.5067045",
"0.5062822",
"0.50394374",
"0.5027188",
"0.... | 0.70529073 | 0 |
Create a fake Java runtime using the class names loaded from the given resource. | private JavaRuntimeMock(String resource) {
// open test resource for reading
try (InputStream is = TestUtils.getResourceAsStream(resource)) {
DataInputStream dis = new DataInputStream(new GZIPInputStream(is));
// read compressed class definitions
int numClassDefs = dis.readInt();
for (int c = 0; c < n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ITaskFactory<?> load(String classname);",
"private static Object createStandaloneTester() {\n List<URL> urls = new ArrayList<>();\n for (String path : Splitter.on(':').split(System.getProperty(\"java.class.path\"))) {\n\n // A small hack is needed since we didn't make example application under differe... | [
"0.63929224",
"0.6144889",
"0.5728908",
"0.56968856",
"0.5646337",
"0.56107616",
"0.5531011",
"0.55257213",
"0.54828364",
"0.5469556",
"0.54501396",
"0.5422869",
"0.5397772",
"0.53825974",
"0.5379704",
"0.53761876",
"0.53567183",
"0.5303817",
"0.52956605",
"0.52948225",
"0.52... | 0.62855303 | 1 |
check if class has been excluded during resource generation | @Override
protected ClassDef findClassDef(String className) {
if (excludedClassNames.contains(className)) {
String message = String.format("Class definition not found in test data: %s", className);
throw new TestDataException(message);
}
return classDefs.get(className);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean shouldSkipClass(Class<?> classe) {\n\t\t\n\t\t \n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean classIsMissing() {\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic boolean shouldSkipClass(Class<?> clazz)\r\n\t{\n\t\treturn false;\r\n\t}",
"@Test\n\tpublic void testExcludeGe... | [
"0.67293674",
"0.6444671",
"0.63859147",
"0.6350117",
"0.633326",
"0.6224639",
"0.61606044",
"0.606255",
"0.60095596",
"0.59194434",
"0.5918723",
"0.5857064",
"0.5851676",
"0.5850003",
"0.57022005",
"0.56979406",
"0.56908643",
"0.56752694",
"0.5652516",
"0.5583704",
"0.557622... | 0.0 | -1 |
Small Java application to generate the test resource "classesoraclejdk1.8.0_144.dat.gz", given the path to the rt.jar file of an Oracle JDK/JRE 1.8.0_144. | public static void main(String[] args) throws IOException {
// get path to rt.jar file
String rtPath = args[0];
File rtFile = new File(rtPath);
if (!rtFile.isFile()) {
System.err.println("File not found: " + rtFile.getAbsolutePath());
System.exit(1);
}
// load all classes from rt.jar file into memor... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n public void exportOracleDatabaseScriptFromAnnotations() throws Exception\r\n {\r\n Properties props = PropertyLoader.loadProperties(\"./build.properties\");\r\n String classesDirPath = props.getProperty(\"classes.dir\");\r\n SchemaGenerator sgen = new SchemaGenerator(new String[] {\"uk.co.util... | [
"0.52682334",
"0.5211287",
"0.51999533",
"0.49297616",
"0.47531202",
"0.47464347",
"0.47239047",
"0.47009984",
"0.46977624",
"0.46855178",
"0.4651404",
"0.464598",
"0.46374074",
"0.4620888",
"0.46183404",
"0.46145707",
"0.46144655",
"0.46057466",
"0.46014246",
"0.45887578",
"... | 0.5852141 | 0 |
0 is create new, 1 is update claim limit of player, 2 is update player claims total. | public void postUD(String UUID, int updateOrNew, long newLimit, int oldClaims) throws Exception{
if(updateOrNew ==0){
try{
Connection con = getConnection();
PreparedStatement posted = con.prepareStatement("INSERT INTO userClaimData(UUID, claimMax, totalClaims) VALUES... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}",
"@Override\r\n\tpublic int update(SpUser t) {\n\t\treturn 0;\r\n\t}",
"public abstract void onContribution(int amount, Player player);",
"protected void apply() {\r\n\t\tplayer.setAutoRoll(aut... | [
"0.594796",
"0.59243125",
"0.5921912",
"0.58194697",
"0.58061284",
"0.5799634",
"0.57426214",
"0.57333493",
"0.5707991",
"0.5653585",
"0.56324047",
"0.5606045",
"0.55981475",
"0.5587892",
"0.5576321",
"0.55492014",
"0.5534344",
"0.5533565",
"0.5514982",
"0.5492016",
"0.545707... | 0.63328975 | 0 |
2, 1, 2, 3, 2, 4, 2, 5 | public List<Integer> crateSecond(int size) {
int[] arr = {2, 1, 2, 3, 2, 4, 2, 5};
int arrSize = 8;
List<Integer> secondAnswer = new ArrayList<>(size);
for (int i = 0; i < size; i++) {
int index = i%arrSize;
secondAnswer.add(arr[index]);
}
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n void first() {\n int[] answers = {1,2,3,4,5,1,2,3,4,5};\n int[] first = {1,2,3,4,5};\n int collect = 0;\n for (int i=0; i < answers.length ; i++) {\n if (answers[i] == first[i % 5]) {\n //0 0\n //1 1\n //2 2\n //3 3\n //4 4\n //5 0\n //6 1\... | [
"0.59160846",
"0.58387023",
"0.5816487",
"0.56862026",
"0.5576033",
"0.55192864",
"0.54783005",
"0.5467676",
"0.54412645",
"0.5436561",
"0.5412211",
"0.5403908",
"0.5389534",
"0.5383537",
"0.5376291",
"0.5353839",
"0.5348272",
"0.5345564",
"0.53436744",
"0.5339477",
"0.533816... | 0.0 | -1 |
Creates a new instance of DefaultCommand. | public DefaultCommand(com.netflix.hystrix.HystrixCommand.Setter setter) {
super(setter);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initDefaultCommand() {\n \n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefaultCommand() {\n }",
"public void initDefault... | [
"0.7460105",
"0.73746735",
"0.73746735",
"0.73746735",
"0.73746735",
"0.73746735",
"0.73746735",
"0.73746735",
"0.73746735",
"0.73746735",
"0.73746735",
"0.73746735",
"0.73746735",
"0.73746735",
"0.73746735",
"0.73746735",
"0.73746735",
"0.73746735",
"0.73746735",
"0.73746735",... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
ListeF liste = new ListeF(8);
liste.sortedInsert("MiniEL");
liste.sortedInsert("Dorf");
liste.sortedInsert("Bahn");
liste.sortedInsert("Turbodiesel");
liste.sortedInsert("Auto");
liste.sortedInsert("Chemiker");
liste.sortedInsert("Brot mit Brot");
liste.sorted... | {
"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 onClick(View v) {
if(v.getId() == R.id.data_ok_btn){
saveData();
}else if(v.getId() == R.id.data_image){
doPickPhotoAction();
}else if(v.getId() == R.id.data_user_change){
m_editor.putBoolean(Config.SHARED_FLAG, false);
m_editor.commit();
Intent intent = new Intent(ge... | {
"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 |
/ renamed from: a | public static boolean m121746a(Context context, Intent intent) {
List<ResolveInfo> queryIntentActivities = context.getPackageManager().queryIntentActivities(intent, 0);
if (queryIntentActivities == null || queryIntentActivities.size() <= 0) {
return true;
}
return false;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | public static void m121745a(Context context, String str) {
Intent intent = new Intent(C6969H.m41409d("G688DD108B039AF67EF00844DFCF18DD66A97DC15B17E980CC82A"));
intent.putExtra(C6969H.m41409d("G688DD108B039AF67EF00844DFCF18DD27197C71BF1048E11D2"), str);
intent.setType("text/plain");
conte... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.6249595",
"0.6242955",
"0.61393225",
"0.6117684",
"0.61140615",
"0.60893875",
"0.6046927",
"0.60248226",
"0.60201806",
"0.59753186",
"0.5947817",
"0.5912414",
"0.5883872",
"0.5878469",
"0.587005",
"0.58678955",
"0.58651674",
"0.5857262",
"0.58311176",
"0.58279663",
"0.5827... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int hashFunction(int key) {
return key%M;
} | {
"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 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_add_info, container, false);
//Initialise UI elements
saveButton = view.findViewById(R.id.save_button);
... | {
"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 |
default YES use LRU cache | public MLNKVMemoryCache(String name) {
this.name = name;
LRUCountLimit = 10000;
FIFOCountLimit = 1000;
memorySizeLimit = 100 << 20;
releaseOnMainThread = false;
useFIFO = true;
useLRU = true;
weakMap = new HashMap<>();
LRUCache = new MLNKVCache()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean isCaching() {\n return false;\n }",
"@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\n\t}",
"boolean isCachingEnabled();",
"public boolean isCached() {\n return true;\n }",
"public boolean useCache() {\n return !pathRepositoryCache.isEmpty();\n ... | [
"0.68489814",
"0.68051225",
"0.6782455",
"0.6635582",
"0.66135657",
"0.65620786",
"0.6557986",
"0.63974714",
"0.6383542",
"0.6346436",
"0.63394135",
"0.63124007",
"0.63110787",
"0.62732375",
"0.62566775",
"0.6242181",
"0.6241801",
"0.62042457",
"0.61918133",
"0.6184366",
"0.6... | 0.58911055 | 32 |
Get the subnet property: The subnet. | public ApiEntityReference subnet() {
return this.subnet;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Required\n public String getSubnet() {\n return subnet;\n }",
"public SubnetInner subnet() {\n return this.subnet;\n }",
"public String subnetId() {\n return this.subnetId;\n }",
"public String getSubnetArn() {\n return this.subnetArn;\n }",
"com.google.protobuf.... | [
"0.8440771",
"0.8432556",
"0.8066457",
"0.802757",
"0.80229586",
"0.8002602",
"0.7835706",
"0.7835706",
"0.7834121",
"0.77873826",
"0.7781745",
"0.7781004",
"0.7781004",
"0.77715605",
"0.7500888",
"0.73398113",
"0.7163004",
"0.7096574",
"0.70370996",
"0.7036774",
"0.7036774",... | 0.8447743 | 0 |
Set the subnet property: The subnet. | public VirtualMachineScaleSetUpdateIpConfigurationProperties withSubnet(ApiEntityReference subnet) {
this.subnet = subnet;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Required\n public String getSubnet() {\n return subnet;\n }",
"public Builder setSubnetId(int value) {\n\n subnetId_ = value;\n onChanged();\n return this;\n }",
"public Builder setSubnetId(int value) {\n\n subnetId_ = value;\... | [
"0.7387464",
"0.6797755",
"0.6797755",
"0.6797755",
"0.6689258",
"0.66176116",
"0.66172415",
"0.66172415",
"0.6549346",
"0.6547719",
"0.65374297",
"0.6521088",
"0.6521088",
"0.65191364",
"0.63733417",
"0.63375473",
"0.62170386",
"0.62105143",
"0.6188936",
"0.61839455",
"0.612... | 0.63385284 | 15 |
Get the primary property: Specifies the primary IP Configuration in case the network interface has more than one IP Configuration. | public Boolean primary() {
return this.primary;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final int get_configured_primary () {\n\t\treturn configured_primary;\n\t}",
"public NetworkInterfaceIpConfigurationInner ipConfiguration() {\n return this.ipConfiguration;\n }",
"public final String get_configured_primary_as_string () {\n\t\treturn \"P\" + configured_primary;\n\t}",
"public... | [
"0.7072067",
"0.64150184",
"0.6394411",
"0.6183878",
"0.6143763",
"0.61335295",
"0.59934026",
"0.59798706",
"0.5969049",
"0.5968652",
"0.59357834",
"0.59328616",
"0.59290826",
"0.5888499",
"0.586913",
"0.58305806",
"0.5806146",
"0.5803221",
"0.57546717",
"0.5735184",
"0.56953... | 0.6076136 | 6 |
Set the primary property: Specifies the primary IP Configuration in case the network interface has more than one IP Configuration. | public VirtualMachineScaleSetUpdateIpConfigurationProperties withPrimary(Boolean primary) {
this.primary = primary;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setPrimary(boolean primary)\r\n\t{\tthis.primary = primary;\t}",
"public final int get_configured_primary () {\n\t\treturn configured_primary;\n\t}",
"public void setIsPrimary(boolean value) {\r\n this.isPrimary = value;\r\n }",
"public void set_force_primary (int the_force_primary) ... | [
"0.65360683",
"0.6082789",
"0.58468705",
"0.5812838",
"0.57156307",
"0.56146777",
"0.5594981",
"0.544699",
"0.5415773",
"0.53885037",
"0.53812003",
"0.5365484",
"0.5365484",
"0.5354696",
"0.53490186",
"0.53134793",
"0.52996135",
"0.5291685",
"0.52908677",
"0.52821004",
"0.523... | 0.6599882 | 0 |
Get the publicIpAddressConfiguration property: The publicIPAddressConfiguration. | public VirtualMachineScaleSetUpdatePublicIpAddressConfiguration publicIpAddressConfiguration() {
return this.publicIpAddressConfiguration;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPublicIpAddress() {\n return publicIpAddress;\n }",
"@Required\n public PublicIpAddressResource getPublicIpAddress() {\n return publicIpAddress;\n }",
"public NetworkInterfaceIpConfigurationInner ipConfiguration() {\n return this.ipConfiguration;\n }",
"publi... | [
"0.75118023",
"0.73542756",
"0.69383585",
"0.65093833",
"0.6338129",
"0.6307799",
"0.6307799",
"0.62551504",
"0.62458694",
"0.62326473",
"0.61220384",
"0.61026245",
"0.60937375",
"0.6054516",
"0.6028024",
"0.59364617",
"0.5914083",
"0.59122205",
"0.58797854",
"0.5838753",
"0.... | 0.82207 | 0 |
Set the publicIpAddressConfiguration property: The publicIPAddressConfiguration. | public VirtualMachineScaleSetUpdateIpConfigurationProperties withPublicIpAddressConfiguration(
VirtualMachineScaleSetUpdatePublicIpAddressConfiguration publicIpAddressConfiguration) {
this.publicIpAddressConfiguration = publicIpAddressConfiguration;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPublicIpAddress(String publicIpAddress) {\n this.publicIpAddress = publicIpAddress;\n }",
"public VirtualMachineScaleSetUpdatePublicIpAddressConfiguration publicIpAddressConfiguration() {\n return this.publicIpAddressConfiguration;\n }",
"public String getPublicIpAddress() {\... | [
"0.73913395",
"0.6840056",
"0.6336792",
"0.6079276",
"0.607174",
"0.60481405",
"0.60034513",
"0.5886453",
"0.584008",
"0.58003134",
"0.55160826",
"0.54729986",
"0.53605384",
"0.52981144",
"0.5284474",
"0.5252749",
"0.5249501",
"0.5249501",
"0.52403384",
"0.5189208",
"0.515093... | 0.6975615 | 1 |
Get the privateIpAddressVersion property: Available from ApiVersion 20170330 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. | public IpVersion privateIpAddressVersion() {
return this.privateIpAddressVersion;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public VirtualMachineScaleSetUpdateIpConfigurationProperties withPrivateIpAddressVersion(\n IpVersion privateIpAddressVersion) {\n this.privateIpAddressVersion = privateIpAddressVersion;\n return this;\n }",
"public void setPrivateIpAddress(String PrivateIpAddress) {\n this.Private... | [
"0.7570029",
"0.66717756",
"0.66652817",
"0.5113756",
"0.50924474",
"0.50924474",
"0.50924474",
"0.504539",
"0.49125168",
"0.4823726",
"0.47955003",
"0.47800934",
"0.47800934",
"0.47800934",
"0.47493306",
"0.47219583",
"0.4713083",
"0.4691235",
"0.4579547",
"0.4523756",
"0.44... | 0.8100624 | 0 |
Set the privateIpAddressVersion property: Available from ApiVersion 20170330 onwards, it represents whether the specific ipconfiguration is IPv4 or IPv6. Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'. | public VirtualMachineScaleSetUpdateIpConfigurationProperties withPrivateIpAddressVersion(
IpVersion privateIpAddressVersion) {
this.privateIpAddressVersion = privateIpAddressVersion;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPrivateIpAddress(String PrivateIpAddress) {\n this.PrivateIpAddress = PrivateIpAddress;\n }",
"public IpVersion privateIpAddressVersion() {\n return this.privateIpAddressVersion;\n }",
"public void setPrivateKey(String privateKey) {\n this.privateKey = privateKey;\n ... | [
"0.6966355",
"0.68630373",
"0.5485252",
"0.5485252",
"0.5485252",
"0.54711217",
"0.5462656",
"0.54368126",
"0.5356326",
"0.5338895",
"0.52811664",
"0.5251071",
"0.51148504",
"0.50835574",
"0.507316",
"0.507316",
"0.4774014",
"0.47185966",
"0.47136068",
"0.45449105",
"0.452595... | 0.8059813 | 0 |
Get the applicationGatewayBackendAddressPools property: The application gateway backend address pools. | public List<SubResource> applicationGatewayBackendAddressPools() {
return this.applicationGatewayBackendAddressPools;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<SubResource> loadBalancerBackendAddressPools() {\n return this.loadBalancerBackendAddressPools;\n }",
"public VirtualMachineScaleSetUpdateIpConfigurationProperties withApplicationGatewayBackendAddressPools(\n List<SubResource> applicationGatewayBackendAddressPools) {\n this.ap... | [
"0.78320825",
"0.68846214",
"0.65599656",
"0.603366",
"0.6020726",
"0.60125124",
"0.58616173",
"0.57120794",
"0.56486374",
"0.54208666",
"0.53500766",
"0.52340496",
"0.51550305",
"0.5106186",
"0.5104928",
"0.50841814",
"0.50558424",
"0.5054913",
"0.5016005",
"0.5016005",
"0.4... | 0.880859 | 0 |
Set the applicationGatewayBackendAddressPools property: The application gateway backend address pools. | public VirtualMachineScaleSetUpdateIpConfigurationProperties withApplicationGatewayBackendAddressPools(
List<SubResource> applicationGatewayBackendAddressPools) {
this.applicationGatewayBackendAddressPools = applicationGatewayBackendAddressPools;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<SubResource> applicationGatewayBackendAddressPools() {\n return this.applicationGatewayBackendAddressPools;\n }",
"public VirtualMachineScaleSetUpdateIpConfigurationProperties withLoadBalancerBackendAddressPools(\n List<SubResource> loadBalancerBackendAddressPools) {\n this.lo... | [
"0.7416894",
"0.66031295",
"0.6568029",
"0.53379464",
"0.53353024",
"0.52540857",
"0.50483215",
"0.5038345",
"0.48238063",
"0.47900406",
"0.47834972",
"0.45677167",
"0.45264587",
"0.44870356",
"0.435428",
"0.4328196",
"0.43269044",
"0.4291328",
"0.42882583",
"0.42806223",
"0.... | 0.7630904 | 0 |
Get the applicationSecurityGroups property: Specifies an array of references to application security group. | public List<SubResource> applicationSecurityGroups() {
return this.applicationSecurityGroups;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Required\n @Updatable\n public Set<SecurityGroupResource> getSecurityGroups() {\n if (securityGroups == null) {\n securityGroups = new HashSet<>();\n }\n\n return securityGroups;\n }",
"public String [] getSecurityGroupSet() {\n return this.SecurityGroupSet;\n ... | [
"0.7121816",
"0.66912264",
"0.6155129",
"0.5777681",
"0.564326",
"0.56322855",
"0.5574587",
"0.51819676",
"0.5128822",
"0.50217193",
"0.5000372",
"0.4968736",
"0.494431",
"0.49440408",
"0.48493025",
"0.47640702",
"0.47187316",
"0.4663128",
"0.4649249",
"0.464418",
"0.464405",... | 0.81132877 | 0 |
Set the applicationSecurityGroups property: Specifies an array of references to application security group. | public VirtualMachineScaleSetUpdateIpConfigurationProperties withApplicationSecurityGroups(
List<SubResource> applicationSecurityGroups) {
this.applicationSecurityGroups = applicationSecurityGroups;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<SubResource> applicationSecurityGroups() {\n return this.applicationSecurityGroups;\n }",
"public void setSecurityGroupSet(String [] SecurityGroupSet) {\n this.SecurityGroupSet = SecurityGroupSet;\n }",
"@Required\n @Updatable\n public Set<SecurityGroupResource> getSecurit... | [
"0.6756967",
"0.62530214",
"0.5857713",
"0.5817528",
"0.52058095",
"0.49124518",
"0.48068815",
"0.47634447",
"0.4709885",
"0.47090352",
"0.4660233",
"0.46413702",
"0.46258035",
"0.45469102",
"0.45399493",
"0.4526431",
"0.45091063",
"0.44569024",
"0.44083974",
"0.43797612",
"0... | 0.6836741 | 0 |
Get the loadBalancerBackendAddressPools property: The load balancer backend address pools. | public List<SubResource> loadBalancerBackendAddressPools() {
return this.loadBalancerBackendAddressPools;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<SubResource> applicationGatewayBackendAddressPools() {\n return this.applicationGatewayBackendAddressPools;\n }",
"public List<LoadBalancerConfiguration> loadBalancerConfigurations() {\n return this.loadBalancerConfigurations;\n }",
"public VirtualMachineScaleSetUpdateIpConfigur... | [
"0.82282376",
"0.67892176",
"0.677831",
"0.6503486",
"0.64955246",
"0.6376161",
"0.6376161",
"0.62766427",
"0.60353446",
"0.5927158",
"0.5726213",
"0.54560256",
"0.53838915",
"0.5318606",
"0.5283448",
"0.52663827",
"0.51346403",
"0.49701616",
"0.49523976",
"0.49193016",
"0.49... | 0.88511217 | 0 |
Set the loadBalancerBackendAddressPools property: The load balancer backend address pools. | public VirtualMachineScaleSetUpdateIpConfigurationProperties withLoadBalancerBackendAddressPools(
List<SubResource> loadBalancerBackendAddressPools) {
this.loadBalancerBackendAddressPools = loadBalancerBackendAddressPools;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<SubResource> loadBalancerBackendAddressPools() {\n return this.loadBalancerBackendAddressPools;\n }",
"public VirtualMachineScaleSetUpdateIpConfigurationProperties withApplicationGatewayBackendAddressPools(\n List<SubResource> applicationGatewayBackendAddressPools) {\n this.ap... | [
"0.7519155",
"0.701474",
"0.68140095",
"0.5518795",
"0.53208685",
"0.5187719",
"0.5187719",
"0.50504434",
"0.49763614",
"0.49019727",
"0.4780005",
"0.47765923",
"0.4772279",
"0.474529",
"0.47101465",
"0.4682306",
"0.46792114",
"0.46610463",
"0.46049038",
"0.4599004",
"0.45671... | 0.75398403 | 0 |
Get the loadBalancerInboundNatPools property: The load balancer inbound nat pools. | public List<SubResource> loadBalancerInboundNatPools() {
return this.loadBalancerInboundNatPools;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public VirtualMachineScaleSetUpdateIpConfigurationProperties withLoadBalancerInboundNatPools(\n List<SubResource> loadBalancerInboundNatPools) {\n this.loadBalancerInboundNatPools = loadBalancerInboundNatPools;\n return this;\n }",
"public List<InboundIpRule> inboundIpRules() {\n r... | [
"0.67636406",
"0.5819022",
"0.5623608",
"0.55612093",
"0.5090921",
"0.5090921",
"0.48300853",
"0.48269176",
"0.4824993",
"0.47700948",
"0.4730515",
"0.47075418",
"0.4681029",
"0.46199256",
"0.45846343",
"0.45680764",
"0.4508551",
"0.4453001",
"0.44396135",
"0.43715024",
"0.43... | 0.8393503 | 0 |
Set the loadBalancerInboundNatPools property: The load balancer inbound nat pools. | public VirtualMachineScaleSetUpdateIpConfigurationProperties withLoadBalancerInboundNatPools(
List<SubResource> loadBalancerInboundNatPools) {
this.loadBalancerInboundNatPools = loadBalancerInboundNatPools;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<SubResource> loadBalancerInboundNatPools() {\n return this.loadBalancerInboundNatPools;\n }",
"public DomainInner withInboundIpRules(List<InboundIpRule> inboundIpRules) {\n this.inboundIpRules = inboundIpRules;\n return this;\n }",
"private void setPersonsInPool(ArrayList... | [
"0.71241194",
"0.49296463",
"0.49100107",
"0.48033315",
"0.4736173",
"0.45289642",
"0.45257294",
"0.4512688",
"0.45123005",
"0.4505636",
"0.44228032",
"0.44228032",
"0.44031176",
"0.4377823",
"0.43407938",
"0.42855635",
"0.4163741",
"0.41108853",
"0.40954673",
"0.40520114",
"... | 0.7328622 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void print() {
super.print();
System.out.println("album=" + album + ", year=" + year);
} | {
"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 |
/ renamed from: a | static String m13919a(Context context, C6924p paymentStateHandler) {
JSONObject deviceInfo = new JSONObject();
try {
String androidId = Secure.getString(context.getContentResolver(), "android_id");
deviceInfo.put("deviceFingerprintVersion", "1.0");
deviceInfo.put("pla... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/Metodos setters y getters | public void setOponente(Jugador oponente) {
this.oponente = oponente;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Set method_1559();",
"@Override\n public void get() {}",
"public Punto getCentro() {\r\n\treturn centro;\r\n}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"public void setNombre(String nombre) {this.nombre = nombre;}",
"public void get() {\n }",
"public void setNombre(Str... | [
"0.6494834",
"0.64928263",
"0.6400483",
"0.6331098",
"0.625753",
"0.6231761",
"0.612818",
"0.6118461",
"0.6106001",
"0.609014",
"0.60853887",
"0.6071667",
"0.60514694",
"0.6025997",
"0.6025229",
"0.6024262",
"0.6024209",
"0.60050267",
"0.60016465",
"0.5992898",
"0.5984944",
... | 0.0 | -1 |
/Metodos de Arma de Asedio | public void montarArma(ArmaDeAsedio arma) {
this.esUnidadPropia(arma);
arma.montarArma();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAvi... | [
"0.63050175",
"0.62364984",
"0.6215398",
"0.6078568",
"0.60404074",
"0.6000607",
"0.59953177",
"0.5994458",
"0.5993937",
"0.5988766",
"0.58866113",
"0.5873422",
"0.586855",
"0.58663654",
"0.58426565",
"0.5830035",
"0.58271104",
"0.58215886",
"0.5791905",
"0.5791506",
"0.57892... | 0.0 | -1 |
TODO Autogenerated method stub | public Map<String, String> getArgList() {
return argMap;
} | {
"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 Map<String, String> getHeaderList() {
return headerMap;
} | {
"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 String getTestData(RequestTestDataType testData) {
return testDataMap.get(testData);
} | {
"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 String getOriginalRequestData() {
return originalRequestData;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
method: getAllVariants Zwraca wszystkie warianty | public List<VariantDto> getAllVariants() {
return variantRepository.findAll()
.stream()
.map(q -> mapper.toDto(q))
.collect(Collectors.toList());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public QueryResult<Variant> getAllVariants(QueryOptions options);",
"public List<TileVariant> getVariants() {\r\n\t\treturn this.variants;\r\n\t}",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response findVariantInstances(@PathParam(\"variantID\") String variantId){\n MobileVariant mobi... | [
"0.7685769",
"0.6596213",
"0.6530714",
"0.6467713",
"0.6307461",
"0.62140036",
"0.6003501",
"0.5850714",
"0.5825898",
"0.5746464",
"0.5683518",
"0.5659054",
"0.5649835",
"0.5643907",
"0.5637265",
"0.56167424",
"0.56027406",
"0.55684674",
"0.5557564",
"0.5544574",
"0.5505413",... | 0.74786264 | 1 |
method: getVariantById Zwraca wariant po ID | public VariantDto getVariantById(String id) throws VariantNotFound {
return variantRepository.findById(id)
.map(q -> mapper.toDto(q)).orElseThrow(() -> new VariantNotFound());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ItemVariant getItemVariant(Integer itemVariantId);",
"public int getVariantId() {\n return variantId_;\n }",
"@NotNull\n @JsonProperty(\"variantId\")\n public Integer getVariantId();",
"public int getVariantId() {\n return variantId_;\n }",
"public void setVariantId(final Integer variantI... | [
"0.74531573",
"0.72391653",
"0.7100471",
"0.7099598",
"0.6819085",
"0.67017716",
"0.64853907",
"0.6387455",
"0.63616747",
"0.6269869",
"0.6250986",
"0.6209902",
"0.6198072",
"0.6185068",
"0.61027503",
"0.60932815",
"0.6069636",
"0.6045915",
"0.60333043",
"0.60240614",
"0.6022... | 0.7158779 | 2 |
method: deleteVariantById Usuwa wariant po ID | public VariantDto deleteVariantById(String id) throws VariantNotFound {
Variant variant = variantRepository.findById(id).orElseThrow(() -> new VariantNotFound());
variantRepository.delete(variant);
return mapper.toDto(variant);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Avistamiento : {}\", id);\n avistamientoRepository.deleteById(id);\n }",
"public void deleteByVaiTroID(long vaiTroId);",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Sintoma : {... | [
"0.6570798",
"0.6536426",
"0.64729863",
"0.64326125",
"0.63978136",
"0.6375414",
"0.6375414",
"0.63285154",
"0.6311697",
"0.63111997",
"0.62982714",
"0.6297828",
"0.628427",
"0.62710947",
"0.6257726",
"0.62257737",
"0.622321",
"0.62207633",
"0.6220725",
"0.62154096",
"0.62099... | 0.7195591 | 0 |
method: createVariant Tworzy wariant | public VariantDto createVariant(CreateUpdateVariantDto dto) throws VariantDataInvalid {
if(dto.getVariant().isEmpty()) {
throw new VariantDataInvalid();
}
Variant variantToSave = mapper.toModel(dto);
Variant savedVariant = variantRepository.save(variantToSave);
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected IVariant createVariant(IMachineRoot mch, String expression)\n\t\t\tthrows RodinDBException {\n\t\tIVariant variant = mch.createChild(IVariant.ELEMENT_TYPE, null, null);\n\t\tvariant.setExpressionString(expression, null);\n\t\treturn variant;\n\t}",
"private Variant setVariantsFromApi(VariantsModel vari... | [
"0.67645264",
"0.62290543",
"0.615314",
"0.6022129",
"0.60093653",
"0.59885645",
"0.5865447",
"0.5853629",
"0.579842",
"0.5747096",
"0.5732234",
"0.5668693",
"0.55685145",
"0.5464474",
"0.54471874",
"0.54431427",
"0.5426205",
"0.542245",
"0.53919595",
"0.5382653",
"0.53579277... | 0.6349902 | 1 |
method: updateVariant Aktualizuje wariant | public VariantDto updateVariant(CreateUpdateVariantDto dto, String id) throws VariantNotFound {
Variant variant = variantRepository.findById(id).orElseThrow(() -> new VariantNotFound());
variant.setQuestion(dto.getQuestion());
variant.setVariant(dto.getVariant());
return mapper.toDto(v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void updateProduct(ProductVO vo) {\n\n\t}",
"void editAssetValue(int newVal);",
"@Override\n\tpublic Item update() {\n\t\t\n\t\treadAll();\n\t\n\t\tLOGGER.info(\"State the shoe name you wish to update\");\n\t\tString name = util.getString().toLowerCase();;\n\t\tLOGGER.info(\"State the size ... | [
"0.5711477",
"0.5689982",
"0.56026167",
"0.5594273",
"0.5579967",
"0.5557158",
"0.5548517",
"0.5548517",
"0.5548257",
"0.5517538",
"0.5498158",
"0.54871225",
"0.54709435",
"0.5452811",
"0.5446268",
"0.54424196",
"0.5412065",
"0.53974164",
"0.53974164",
"0.53974164",
"0.538030... | 0.62433624 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) throws IOException, InterruptedException {
System.setProperty("webdriver.chrome.driver", "C:\\webdriver\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.manage().window().maximize();
driver.manage().deleteAllCookies();
// driver.manage().deleteCookieName... | {
"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: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof MateriasHasEspacioHasHorariosPK)) {
return false;
}
MateriasHasEspacioHasHorariosPK other = (MateriasHasEspacioHasHorariosPK) object;
if (this.materiasIdmaterias != other.materiasIdmaterias) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void se... | [
"0.68954784",
"0.68378097",
"0.6704338",
"0.66405046",
"0.66405046",
"0.6591173",
"0.6577649",
"0.6577649",
"0.657354",
"0.657354",
"0.657354",
"0.657354",
"0.657354",
"0.657354",
"0.65609664",
"0.65609664",
"0.6543523",
"0.65234846",
"0.6514877",
"0.6486739",
"0.64767367",
... | 0.0 | -1 |
shorter names actually reduce chance of misspelling | public ResourcePortfolio(String inputs) {
Gson gson = new Gson();
Map<String, Object> map = gson.fromJson(inputs,Map.class);
//check for typos anyway
for(String key: map.keySet()) {
if(!keys.contains(key)) {
System.err.println("Key "+key+" Is not a resource!!!");
}
}
this.labor = MiscUti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String shortPrefix(String name) {\r\n StringBuilder b = new StringBuilder();\r\n String[] splits = name.split(\"_\");\r\n for (int i = 0; i < splits.length; ++i) {\r\n if (splits[i].length() > 0) {\r\n b.append(splits[i].charAt(0));\r\n }\r\n }\r\n if (b.length() < 3) {\r\n ... | [
"0.73851174",
"0.6965663",
"0.67642134",
"0.67472625",
"0.66932565",
"0.66932565",
"0.66932565",
"0.65873194",
"0.648276",
"0.6440352",
"0.6376657",
"0.6331058",
"0.6321047",
"0.6286892",
"0.62635434",
"0.62483776",
"0.62373286",
"0.6233535",
"0.62111163",
"0.6189592",
"0.618... | 0.0 | -1 |
Constructs a BucketHash using keys and values from a map. | public BucketHash(Map<K, V> m) {
numBuckets = 101;
buckets = new Object[numBuckets];
for (int i = 0; i < numBuckets; i++) {
buckets[i] = new Bucket();
}
putAll(m);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MyHashMapImpl(int nr_buckets) {\n\t\tthis.b = new ArrayList<Bucket<K, V>>();\n\t\tfor (int i = 0; i < nr_buckets; i++) {\n\t\t\tb.add(new Bucket<K, V>());\n\t\t}\n\t\tnrb = nr_buckets;\n\t}",
"public BOHMap(int partitionCount) {\n this(partitionCount, Arrays::hashCode);\n }",
"public HashMapVa... | [
"0.5768361",
"0.56596017",
"0.5585285",
"0.5522974",
"0.5435657",
"0.5412215",
"0.5369761",
"0.53239906",
"0.53053427",
"0.52622044",
"0.52358806",
"0.5207817",
"0.5198613",
"0.51766187",
"0.5175048",
"0.5156111",
"0.5111232",
"0.50700915",
"0.50642556",
"0.50398105",
"0.4965... | 0.7273365 | 0 |
Determines equality by attempting to match all contained keys and values. | @Override
public boolean equals(Object o){
if(!(o instanceof Map)) return false;
Map m = (Map)o;
if (m.hashCode() != hashCode()) return false;
if (m.keySet().size() != keySet().size()) return false;
for (K key : ((Map<K, V>) m).keySet()) {
if (!containsKey(key)) return false;
if (!get(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract boolean equalityTest(Object key, Object key2);",
"@Test\n public void testEquals() {\n Term t1 = structure(\"abc\", atom(\"a\"), atom(\"b\"), atom(\"c\"));\n Term t2 = structure(\"abc\", integerNumber(), decimalFraction(), variable());\n PredicateKey k1 = PredicateKey.createFo... | [
"0.68409306",
"0.6423775",
"0.61794955",
"0.61086315",
"0.60694647",
"0.5974079",
"0.59072465",
"0.585627",
"0.5828888",
"0.57746637",
"0.575872",
"0.57469785",
"0.5723516",
"0.5709931",
"0.5664425",
"0.5653906",
"0.5653443",
"0.5647291",
"0.5617984",
"0.56052077",
"0.5593966... | 0.5329427 | 46 |
Determines this hash code. | @Override
public int hashCode() {
int hashCode = 0;
for (K key : keySet()) {
hashCode += (key.hashCode() ^ get(key).hashCode());
}
return hashCode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int hashcode();",
"public int hashCode() {\n int hash = 104473;\n if (token_ != null) {\n // Obtain unencrypted form as common base for comparison\n byte[] tkn = getToken();\n for (int i=0; i<tkn.length; i++)\n hash ^= (int)tkn[i];\n }\n... | [
"0.7399931",
"0.7393573",
"0.7145971",
"0.70913786",
"0.70639855",
"0.6991574",
"0.6968992",
"0.69326025",
"0.69286466",
"0.692426",
"0.6918578",
"0.6913596",
"0.68916476",
"0.688311",
"0.6862128",
"0.68474114",
"0.6839031",
"0.6826935",
"0.6823269",
"0.68195957",
"0.6819165"... | 0.0 | -1 |
Returns the corresponding bucket given a key. | Bucket getBucket(K key) {
return (Bucket) buckets[key.hashCode() % numBuckets];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private LinkedList<Entry> chooseBucket(Object key) { \t\n // hint: use key.hashCode() to calculate the key's hashCode using its built in hash function\n // then use % to choose which bucket to return.\n return buckets[key.hashCode() % buckets.length];\n }",
"@Override\r\n\tpublic V get... | [
"0.73848176",
"0.69796586",
"0.6804244",
"0.65171015",
"0.64414144",
"0.6339926",
"0.63351536",
"0.63011265",
"0.62668824",
"0.6253987",
"0.6251333",
"0.62068796",
"0.6194083",
"0.6159306",
"0.6159277",
"0.6124958",
"0.61209404",
"0.5901637",
"0.588089",
"0.57817596",
"0.5667... | 0.8247835 | 0 |
Removes all keys and values. | @Override
public void clear() {
buckets = new Object[numBuckets];
for (int i = 0; i < numBuckets; i++) {
buckets[i] = new Bucket();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void removeAllValues() {\n Map<String, ?> map = preferences.getAll();\n Iterator<String> iterator = map.keySet().iterator();\n while (iterator.hasNext()) {\n removeValue(iterator.next());\n }\n }",
"public void clear()\r\n {\r\n for (int i... | [
"0.7569418",
"0.7521248",
"0.7470056",
"0.7151985",
"0.7074772",
"0.7010767",
"0.69908935",
"0.6956742",
"0.6924501",
"0.68234503",
"0.6809266",
"0.67925626",
"0.67306876",
"0.6708226",
"0.6667731",
"0.6659687",
"0.66568416",
"0.6634487",
"0.659026",
"0.6588527",
"0.65711343"... | 0.0 | -1 |
Returns whether the given key is contained in the appropriate bucket. | @Override
public boolean containsKey(Object key) {
if (key == null) throw new NullPointerException();
return get(key) != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean containsKey(K key)\n {\n AssociationList<K, V> bucket = this.get(this.find(key));\n return (bucket != null) && (bucket.containsKey(key));\n }",
"@Override\n public boolean containsKey(Object key) {\n LinkedList<Entry> tempBucket = chooseBucket(key);\n \n for(int i=0... | [
"0.7961443",
"0.79114634",
"0.7721487",
"0.76784724",
"0.766318",
"0.7650097",
"0.7635705",
"0.75839686",
"0.7558545",
"0.75425327",
"0.75034064",
"0.7425892",
"0.74028784",
"0.7363361",
"0.73188466",
"0.73188466",
"0.73098433",
"0.7287628",
"0.7276773",
"0.7260074",
"0.72599... | 0.7007016 | 37 |
Returns whether the given value is found. | @Override
public boolean containsValue(Object value) {
if (value == null) throw new NullPointerException();
for (K key : keySet()) {
if (get(key).equals(value)) return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean containsValue(Object value);",
"boolean hasSearchValue();",
"boolean containsValue(Object value) throws NullPointerException;",
"public boolean containsValue(Object value) {\n return map.containsValue(value);\n }",
"public boolean find(int value) {\n return set.contains(value);... | [
"0.75446135",
"0.73969924",
"0.7103074",
"0.7097138",
"0.7076631",
"0.7042045",
"0.7038133",
"0.6985306",
"0.6985306",
"0.6985306",
"0.6985306",
"0.6985306",
"0.6985306",
"0.6985306",
"0.6985306",
"0.6985306",
"0.6985306",
"0.6985306",
"0.6985306",
"0.6985306",
"0.6985306",
... | 0.63697577 | 65 |
Returns the value for a given key, if found. Otherwise, returns null. | @Override
public V get(Object key) {
Bucket bucket = (Bucket) buckets[key.hashCode() % numBuckets];
return bucket.get((K) key);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public V searchValue (K key) {\n\t\tfor (Map.Entry<K, V> entry : this.entrySet()) {\n\t\t\tif (entry.getKey() == key) {\n\t\t\t\treturn entry.getValue();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public V get(K key) {\r\n\t\t\tif (key == null) {\r\n\t\t\t\tthrow new NullPointerException();\r\n\t\t\t} else if (fi... | [
"0.8029057",
"0.80050087",
"0.7829919",
"0.7676984",
"0.7620152",
"0.7595851",
"0.7579914",
"0.75049",
"0.75019467",
"0.74891675",
"0.747304",
"0.7450114",
"0.7425914",
"0.74234194",
"0.74088705",
"0.739702",
"0.7377195",
"0.7344222",
"0.7341397",
"0.733144",
"0.7323489",
"... | 0.0 | -1 |
Verifies if there are no keys contained in buckets. | @Override
public boolean isEmpty() {
return size() == 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isEmpty() {\r\n for (int i = 0, tot = buckets.length; i < tot; i++) {\r\n CacheData<K, V> entry = getCacheData(i);\r\n // if we find a key that is valid it's not empty\r\n if (entry != null && entry.validateKey() != null) {\r\n return false;\r\n... | [
"0.72115374",
"0.614234",
"0.612891",
"0.6123454",
"0.5982889",
"0.5981522",
"0.58725935",
"0.5832814",
"0.5822863",
"0.5791275",
"0.5766736",
"0.5748957",
"0.5679341",
"0.56665844",
"0.5647814",
"0.56390667",
"0.55950665",
"0.5571225",
"0.5568435",
"0.5504325",
"0.5486157",
... | 0.0 | -1 |
Returns a set of all the keys contained in buckets. | @Override
public Set<K> keySet() {
Set<K> keySet = new HashSet<K>();
for (Object o : buckets) {
Bucket b = (Bucket) o;
keySet.addAll(b.keySet());
}
return keySet;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Set<K> keySet() {\n Set<K> keys = new HashSet<>();\n if (bucket.length != 0) {\n for (int i = 0; i < bucket.length; i++) {\n keys.add(bucket[i].getKey());\n }\n }\n return keys;\n }",
"Set<K> keys();",
"Set<String> getKeys();",
"publi... | [
"0.8344881",
"0.74599195",
"0.71700686",
"0.7136291",
"0.7047054",
"0.702282",
"0.70150465",
"0.7007429",
"0.69907826",
"0.69537604",
"0.6921017",
"0.6910448",
"0.68634176",
"0.68452793",
"0.68452793",
"0.6833504",
"0.68324643",
"0.6832357",
"0.68309826",
"0.6788847",
"0.6785... | 0.8550902 | 0 |
Adds a key and value to the appropriate bucket. | @Override
public V put(K key, V value) {
int index = key.hashCode() % numBuckets;
return ((Bucket) buckets[index]).put(key, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void add(K key, V value);",
"void addEntry(K key, V value);",
"public void add(Object key, Object value){\n\t\tint bucketLoc = key.hashCode() % _numBuckets;\r\n\t\tif(_locate(key) == null){\r\n\t\t\tNode newNode = new Node(key,value,_buckets[bucketLoc]);\r\n\t\t\t_buckets[bucketLoc] = newNode;\r\n\t\t\t_count... | [
"0.75051516",
"0.74782103",
"0.74247223",
"0.73266655",
"0.72109324",
"0.71876794",
"0.7117537",
"0.7036808",
"0.6974171",
"0.695932",
"0.6811056",
"0.68005425",
"0.67956233",
"0.6779096",
"0.67689574",
"0.67538667",
"0.6736049",
"0.67337036",
"0.6694038",
"0.66847724",
"0.66... | 0.69483685 | 10 |
Adds all keys and values from a map. | @Override
public void putAll(Map<? extends K, ? extends V> m) {
for (K key : m.keySet()) {
put(key, m.get(key));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void putAll(Map<? extends K, ? extends V> m) {\n for(Map.Entry<? extends K, ? extends V> entry : m.entrySet()) {\n put(entry.getKey(), entry.getValue());\n }\n }",
"@Override\n\tpublic void putAll(Map<? extends K, ? extends V> m) {\n for (Map.Entry<? exten... | [
"0.7171017",
"0.7127653",
"0.68779844",
"0.6829634",
"0.6709451",
"0.65939337",
"0.65515614",
"0.65229315",
"0.6517672",
"0.63783145",
"0.6373159",
"0.63682264",
"0.6352318",
"0.62353873",
"0.62003994",
"0.6164468",
"0.61641294",
"0.6144237",
"0.60911655",
"0.6002666",
"0.599... | 0.7088567 | 2 |
Removes the key and corresponding value from its bucket, if found. | @Override
public V remove(Object key) {
int index = key.hashCode() % numBuckets;
return ((Bucket) buckets[index]).remove((K) key);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public V remove(K key, V value) {\n if (key == null || !keySet.contains(key))\n return null;\n int index = reduce(key, buckets.size());\n ArrayList<Entry> items = buckets.get(index);\n for (Entry e : items) {\n if (e.key.equals(key)) {\n if (e.value.... | [
"0.7452562",
"0.69302005",
"0.69225097",
"0.6875168",
"0.6870545",
"0.6864116",
"0.6752615",
"0.67368793",
"0.67368793",
"0.67368793",
"0.67312294",
"0.6633304",
"0.6633304",
"0.65977395",
"0.65881383",
"0.6569475",
"0.65511876",
"0.6506473",
"0.647282",
"0.6463389",
"0.64380... | 0.71176267 | 1 |
Determines the total number of keys contained in buckets. | @Override
public int size() {
return keySet().size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public int size() {\n int count = 0;\n for (Counter c : map.values())\n count += c.value();\n return count;\n }",
"int getClusteringKeyCount();",
"public int numberOfEntries();",
"int getPartitionKeyCount();",
"protected final long storedPagesCount(int buck... | [
"0.68037444",
"0.6782575",
"0.6767797",
"0.67551064",
"0.6749506",
"0.6724406",
"0.67027014",
"0.6593513",
"0.6584498",
"0.65783465",
"0.6571228",
"0.65578264",
"0.6522794",
"0.64888954",
"0.64565116",
"0.6428196",
"0.6427191",
"0.63974017",
"0.6378927",
"0.63615656",
"0.6357... | 0.6176626 | 42 |
Returns all values contained in the buckets. | @Override
public Collection<V> values() {
Collection<V> valueList = new ArrayList<V>();
for (Object o : buckets) {
Bucket b = (Bucket) o;
valueList.addAll(b.values());
}
return valueList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic List<? extends MyHashMap.Bucket<K, V>> getBuckets() {\n\t\treturn (ArrayList<? extends MyHashMap.Bucket<K, V>>) b;\n\t}",
"public Set<v> getValues(k key) {\n\t\tint b = hash(key);\n\t\tNode<k,v> curr = buckets[b];\n\t\tSet<v> resultSet = new HashSet<v>();\n\t\t\n\t\twhile (curr != null) {\n\t... | [
"0.6996106",
"0.6843082",
"0.6798997",
"0.67824084",
"0.6700322",
"0.6521565",
"0.6501521",
"0.64637756",
"0.6290933",
"0.62905186",
"0.622509",
"0.6204145",
"0.6190673",
"0.6186875",
"0.6172538",
"0.6172458",
"0.61434877",
"0.6081644",
"0.6035694",
"0.60325265",
"0.60325265"... | 0.8221849 | 0 |
Determines the number of keys contained in a bucket. | public int size() {
int size = 0;
ListNode counter = header;
while (counter != null) {
size++;
counter = counter.next;
}
return size;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getPartitionKeyCount();",
"protected final long storedPagesCount(int bucket) throws IgniteCheckedException {\n long res = 0;\n\n Stripe[] tails = getBucket(bucket);\n\n if (tails != null) {\n for (Stripe tail : tails) {\n long tailId = tail.tailId;\n\n ... | [
"0.6937524",
"0.68666935",
"0.6547081",
"0.6508844",
"0.64828223",
"0.6472038",
"0.64362025",
"0.6422877",
"0.64127064",
"0.6411061",
"0.64046174",
"0.6401413",
"0.639468",
"0.63443184",
"0.63190556",
"0.6312366",
"0.6300519",
"0.62933886",
"0.6276462",
"0.62698567",
"0.62418... | 0.0 | -1 |
Finds the value corresponding to a key, if the key is found. | public V get(K key) {
if (key == null) {
throw new NullPointerException();
} else if (find(key) == null) {
return null;
} else {
return find(key).value;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public V searchValue (K key) {\n\t\tfor (Map.Entry<K, V> entry : this.entrySet()) {\n\t\t\tif (entry.getKey() == key) {\n\t\t\t\treturn entry.getValue();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public TValue find(TKey key) {\n Node n = bstFind(key, mRoot); // find the Node containing the key if any\n ... | [
"0.81715804",
"0.77513564",
"0.75408",
"0.7421049",
"0.74131507",
"0.7287435",
"0.7246234",
"0.7239584",
"0.71872",
"0.7176467",
"0.71146595",
"0.7109573",
"0.7106113",
"0.709649",
"0.7075914",
"0.70461464",
"0.7018037",
"0.6979808",
"0.6916048",
"0.69135016",
"0.69111687",
... | 0.7189415 | 8 |
Finds the ListNode corresponding to a key, if the key is found. | private ListNode find(K key) {
if (key == null) throw new NullPointerException();
ListNode current = header;
while (current != null) {
if (current.key.equals(key)) return current;
current = current.next;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Node<Pair<K, V>> search(\n BiDirectionalNullTerminatedTailedLinkedList<Pair<K, V>> list,\n K key) {\n\n for (Node<Pair<K, V>> i = list.getHead().getNext(); i != list.getTail();\n i = i.getNext()) {\n if (i.getData().key.equals(key)) {\n ret... | [
"0.7818203",
"0.751344",
"0.7428782",
"0.7401015",
"0.73738927",
"0.7180469",
"0.7161027",
"0.7108143",
"0.71056616",
"0.6957263",
"0.68518305",
"0.6821049",
"0.6780944",
"0.6741486",
"0.6719827",
"0.6675935",
"0.6621432",
"0.6606937",
"0.6588971",
"0.657287",
"0.6523282",
... | 0.8312371 | 0 |
Adds a key and value to the bucket if the key is not yet present, or replaces the value if the key is already there. | public V put(K key, V value) {
if (key == null || value == null) {
throw new NullPointerException();
} else if (find(key) == null) {
ListNode newNode = new ListNode(key, value, header);
header = newNode;
return null;
} else {
ListNode current = find(key);
V previous = current.v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void put(Object key, Object value) {\n\t\tint index = key.hashCode() % SLOTS;\n\t\t// check if key is already present in that slot/bucket.\n\t\tfor(Pair p:table[index]) {\n\t\t\tif(key.equals(p.key)) {\n\t\t\t\tp.value = value; // overwrite value if key already present.\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\... | [
"0.73072803",
"0.7020025",
"0.6987747",
"0.6947511",
"0.6934364",
"0.687771",
"0.68651354",
"0.68630725",
"0.68583107",
"0.68374985",
"0.6791075",
"0.6790003",
"0.67618674",
"0.67406833",
"0.6736137",
"0.67259896",
"0.6704002",
"0.66950464",
"0.6684485",
"0.66685915",
"0.6651... | 0.0 | -1 |
Removes a key and corresponding value from the bucket if found. | public V remove(K key) {
if(key == null) throw new NullPointerException();
ListNode remove = find(key);
if (remove == null) return null;
V valueToRemove = remove.value;
if (remove.key == header.key) {
header = header.next;
return valueToRemove;
}
ListNode cu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public V remove(K key, V value) {\n if (key == null || !keySet.contains(key))\n return null;\n int index = reduce(key, buckets.size());\n ArrayList<Entry> items = buckets.get(index);\n for (Entry e : items) {\n if (e.key.equals(key)) {\n if (e.value.... | [
"0.7641107",
"0.7310931",
"0.72746",
"0.7144835",
"0.7144835",
"0.7144835",
"0.7126804",
"0.71152025",
"0.71152025",
"0.7085807",
"0.70347285",
"0.69987005",
"0.6937301",
"0.6927691",
"0.69189495",
"0.6905965",
"0.68947315",
"0.6875713",
"0.68457294",
"0.6843652",
"0.6843652"... | 0.0 | -1 |
Provides a set of all keys contained in the bucket. | public Set<K> keySet() {
Set<K> keySet = new HashSet<K>();
ListNode current = header;
while (current != null) {
keySet.add(current.key);
current = current.next;
}
return keySet;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Set<K> keySet() {\n Set<K> keys = new HashSet<>();\n if (bucket.length != 0) {\n for (int i = 0; i < bucket.length; i++) {\n keys.add(bucket[i].getKey());\n }\n }\n return keys;\n }",
"@Override\r\n\tpublic Set<K> keySet() {\r\n\t\tSet<K>... | [
"0.85698164",
"0.8185319",
"0.7719435",
"0.7579599",
"0.7573634",
"0.75205785",
"0.7499233",
"0.7448717",
"0.7445021",
"0.7445021",
"0.7381167",
"0.7351736",
"0.7333692",
"0.731095",
"0.7264405",
"0.72536826",
"0.7246181",
"0.7231487",
"0.72274256",
"0.72272176",
"0.7148142",... | 0.66735333 | 68 |
Privates a list of all values contained in the bucket. | public Collection<V> values() {
Collection<V> valueList = new ArrayList<V>();
ListNode current = header;
while (current != null) {
valueList.add(current.value);
current = current.next;
}
return valueList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic Collection<V> values() {\r\n\t\tCollection<V> valueList = new ArrayList<V>();\r\n\t\tfor (Object o : buckets) {\r\n\t\t\tBucket b = (Bucket) o;\r\n\t\t\tvalueList.addAll(b.values());\r\n\t\t}\r\n\t\treturn valueList;\r\n\t}",
"@Override\n List<? extends Bucket> getBuckets();",
"List ge... | [
"0.6577156",
"0.65287614",
"0.62543446",
"0.6126814",
"0.6079767",
"0.6072175",
"0.5996793",
"0.5978716",
"0.59389824",
"0.58657146",
"0.5838272",
"0.58352315",
"0.5804007",
"0.5785687",
"0.57763416",
"0.5760821",
"0.57478327",
"0.5711912",
"0.5690049",
"0.56837875",
"0.56722... | 0.0 | -1 |
Produces a string of all key and value pairings in the bucket. | public String toString() {
ListNode current = header;
String s = "";
while (current != null) {
s += "k: " + current.key + " v: " + current.value + "\n";
current = current.next;
}
return s;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String toString() {\n\t\treturn \"{\" + Strings.join(\",\", keyValuePair) + \"}\";\n\t}",
"public String toString()\r\n\t\t{\r\n\t\t\treturn \"|Key: \" + key + \", Value: \" + value + \"|\";\r\n\t\t}",
"public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i ... | [
"0.68147296",
"0.6641993",
"0.6545558",
"0.6545336",
"0.63838375",
"0.63714826",
"0.63588536",
"0.63296485",
"0.63182974",
"0.62721723",
"0.62574655",
"0.6236638",
"0.62248456",
"0.6222746",
"0.62154937",
"0.6057987",
"0.6056323",
"0.6053461",
"0.5989458",
"0.5954911",
"0.594... | 0.0 | -1 |
constructor Construct an instance. | public MethodBundle (Identifier name, boolean isStatic, Coercer[] coercers)
{
if (name == null)
{
throw new NullPointerException ("name == null");
}
if (coercers == null)
{
throw new NullPointerException ("coercers == null");
}
for (int i = 0; i < coercers.length; i++)
{
if (coercers[i] == ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Instantiation(){}",
"public Instance() {\n }",
"public Constructor(){\n\t\t\n\t}",
"Instance createInstance();",
"Reproducible newInstance();",
"Constructor() {\r\n\t\t \r\n\t }",
"protected abstract void construct();",
"public CyanSus() {\n\n }",
"public Factory() {\n\t\tsuper();\n\t}"... | [
"0.7955689",
"0.7719086",
"0.72786164",
"0.727691",
"0.7172946",
"0.71132696",
"0.70270604",
"0.6690422",
"0.66870165",
"0.6676217",
"0.6675733",
"0.6664561",
"0.6661337",
"0.6648412",
"0.6640993",
"0.6640194",
"0.66214937",
"0.66163135",
"0.6609274",
"0.657741",
"0.65504056"... | 0.0 | -1 |
public instance methods superclass's comment suffices | final public boolean equals (Object other)
{
return compareTo (other) == 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_6349() {\r\n super.method_6349();\r\n }",
"@Override\n\tpublic void comment() {\n\t\t\n\t}",
"@Override\n protected void prot() {\n }",
"public Methods() {\n // what is this doing? -PMC\n }",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"public void met... | [
"0.6945664",
"0.68528",
"0.67796254",
"0.6677456",
"0.66734374",
"0.66051733",
"0.66051733",
"0.66051733",
"0.65788144",
"0.6576658",
"0.65287566",
"0.65257096",
"0.6511702",
"0.65061945",
"0.64668953",
"0.6433815",
"0.6428434",
"0.64147544",
"0.6405452",
"0.6400151",
"0.6396... | 0.0 | -1 |
Get the name of the method. | final public Identifier getName ()
{
return myName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getName() {\n return method.getName();\n }",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"String getMethodName();",
"String getMethodName();",
"public String getNam... | [
"0.86343306",
"0.85352015",
"0.85352015",
"0.85352015",
"0.85352015",
"0.82752687",
"0.82752687",
"0.82279235",
"0.81863385",
"0.80447763",
"0.80447763",
"0.80403686",
"0.8034489",
"0.8034148",
"0.8003049",
"0.8003049",
"0.79904836",
"0.79498655",
"0.79498655",
"0.78922963",
... | 0.0 | -1 |
Get whether or not this is a static method. | final public boolean isStatic ()
{
return myIsStatic;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isStatic() {\n return staticMethod;\n }",
"public boolean isStatic() {\n return ReflectionHelper.isStatic(method);\n }",
"boolean getIsStatic();",
"public static void isStatic() {\n\n }",
"boolean isStatic();",
"boolean isStatic();",
"public boolean isStatic() {\n\... | [
"0.8640435",
"0.83422136",
"0.78385407",
"0.7686743",
"0.7651392",
"0.7651392",
"0.7278767",
"0.72399306",
"0.7230954",
"0.7073426",
"0.6986399",
"0.695157",
"0.6913579",
"0.6798554",
"0.6698397",
"0.6698397",
"0.6698397",
"0.65836257",
"0.6481684",
"0.63822633",
"0.6372264",... | 0.73668885 | 6 |
Return whether or not this instance's method is applicable to the given arguments. | final public boolean canApplyTo (Object[] args)
{
if (args.length != myCoercers.length)
{
// easy out
return false;
}
for (int i = 0; i < myCoercers.length; i++)
{
if (! myCoercers[i].canCoerce (args[i]))
{
return false;
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasMethod();",
"boolean hasMethod();",
"boolean hasMethod();",
"boolean isMoreSpecific (MethodType type) throws OverloadingAmbiguous {\r\n boolean status = false;\r\n\r\n try {\r\n for (int i = 0, size = arguments.size (); i < size; i++) {\r\n\tIdentifier this_arg = (Identifier) arguments.... | [
"0.6397908",
"0.6397908",
"0.6397908",
"0.620492",
"0.6167359",
"0.6090489",
"0.6082089",
"0.60649914",
"0.6014102",
"0.60088664",
"0.59026295",
"0.5897598",
"0.5897598",
"0.5897598",
"0.58648044",
"0.5861158",
"0.58589137",
"0.58421856",
"0.58327353",
"0.58290654",
"0.581775... | 0.59820706 | 10 |
Invoke the method on the given object with the given arguments. The arguments may be modified in order to coerce them appropriately. | public Object invoke (Object obj, Object[] args)
{
for (int i = 0; i < myCoercers.length; i++)
{
args[i] = myCoercers[i].coerce (args[i]);
}
return invoke0 (obj, args);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object invokeMethod(Object object, String methodName, Object arguments) {\n /*\n System\n .out\n .println(\n \"Invoker - Invoking method on object: \"\n + object\n + \" method: \"\n + methodNa... | [
"0.7687019",
"0.7224113",
"0.71510035",
"0.7075386",
"0.7048172",
"0.7021007",
"0.696874",
"0.68920064",
"0.68045366",
"0.67227",
"0.6683737",
"0.659773",
"0.6548591",
"0.6541591",
"0.6501486",
"0.6445027",
"0.64031446",
"0.63649315",
"0.630399",
"0.6276054",
"0.6214025",
"... | 0.7199244 | 2 |
protected instance methods Invoke the method on the given object with the given arguments. The arguments will have already been coerced to appropriate values. | abstract protected Object invoke0 (Object obj, Object[] args); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object invoke (Object obj, Object[] args)\n {\n\tfor (int i = 0; i < myCoercers.length; i++)\n\t{\n\t args[i] = myCoercers[i].coerce (args[i]);\n\t}\n\n\treturn invoke0 (obj, args);\n }",
"public Object invokeMethod(Object object, String methodName, Object arguments) {\n /*\n Syst... | [
"0.7336068",
"0.72032773",
"0.71906817",
"0.6947508",
"0.6841266",
"0.6827934",
"0.68218666",
"0.67962635",
"0.6679865",
"0.6566415",
"0.65591806",
"0.64903104",
"0.6464097",
"0.6424559",
"0.63317055",
"0.6290706",
"0.6246831",
"0.6231713",
"0.6227459",
"0.61617434",
"0.61533... | 0.73160434 | 1 |
TODO: parse this from the user or generate randomly | public static void main(String[] args) {
int[] a = { 63, 92, 51, 92, 39, 15, 43, 89, 36, 69, 40, 16, 23, 2, 29, 91, 57, 43, 55, 22 };
computeSubarray(a);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getRandomName(){\n return rndString.nextString();\n }",
"private static String genString(){\n final String ALPHA_NUMERIC_STRING =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n int pwLength = 14; //The longer the password, the mo... | [
"0.68984455",
"0.6715882",
"0.6673125",
"0.6644144",
"0.65995276",
"0.6565454",
"0.64369005",
"0.64265394",
"0.6389413",
"0.6386433",
"0.6310042",
"0.6261815",
"0.6259879",
"0.623206",
"0.6228623",
"0.622705",
"0.6197454",
"0.6174711",
"0.61533576",
"0.61469394",
"0.613673",
... | 0.0 | -1 |
File epubFile = new File("/home/matt/test/pg64454images.epub"); File epubFile = new File("/home/matt/test/test.epub"); | public static void main(final String[] args) throws Exception {
File epubFile = new File("/home/matt/test/1984.epub");
File targetDir = new File("/home/matt/test/target6");
List<EpubDocument> docs =
parse(epubFile, targetDir, file -> System.out.println("Processing " + file.getAbsolutePat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testGetFile() {\n System.out.println(\"getFile with valid path of existing folder with 2 subfiles\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"+fSeparator+\"Users\"+fSeparator+\n \"Panagiwtis Georgiadis\"+fSeparator+\"Entries\"+f... | [
"0.5814825",
"0.556683",
"0.5496437",
"0.5496437",
"0.5496437",
"0.54317325",
"0.54243726",
"0.54138285",
"0.54138285",
"0.54042304",
"0.53847575",
"0.5350566",
"0.5339468",
"0.5314561",
"0.5274307",
"0.52667457",
"0.52667457",
"0.5259312",
"0.5251535",
"0.52440983",
"0.52383... | 0.50579953 | 43 |
Parse an epub file. | public static List<EpubDocument> parse(final File epubFile,
final File targetDir,
final Consumer<File> fileConsumer,
final boolean writeCombinedFile) throws IOException {
unzip(epubFile, t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Document parseFile() throws IOException {\n\tString contents = instream_to_contents();\n\tDocument doc = Jsoup.parse(contents);\n\treturn doc;\n }",
"ReleaseFile parse( InputStream is ) throws IOException;",
"public static Document parse(String filename) throws ParserException {\n\t\tif (filename ==... | [
"0.67139304",
"0.63763946",
"0.6140581",
"0.6003945",
"0.59999573",
"0.5900554",
"0.5833397",
"0.5713595",
"0.57113564",
"0.5707755",
"0.56647444",
"0.55292314",
"0.5520886",
"0.5503243",
"0.5472538",
"0.5425389",
"0.542218",
"0.5396502",
"0.5317876",
"0.5317643",
"0.5296849"... | 0.5529447 | 11 |
Extract the root files. | private static List<File> rootFiles(final File metaDir) throws IOException {
File containerFile = new File(metaDir, "container.xml");
if(!containerFile.exists()) {
throw new IOException("Missing 'META-INF/container.xml'");
}
List<File> rootFiles = Lists.newArrayListWithExpectedSize(2);... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected File[] getFiles() {\r\n DirectoryScanner scanner = new DirectoryScanner(rootDir,true,\"*.xml\");\r\n List<File> files = scanner.list();\r\n return files.toArray(new File[files.size()]);\r\n }",
"public PublishFileSet(Path root) throws IOException {\n this.root = root;\n th... | [
"0.58061266",
"0.5774967",
"0.5763738",
"0.57424563",
"0.5714022",
"0.5683727",
"0.56550324",
"0.5646114",
"0.5609453",
"0.55572295",
"0.549731",
"0.53557265",
"0.53550476",
"0.532681",
"0.528907",
"0.5279828",
"0.52750045",
"0.5242236",
"0.5241654",
"0.52041155",
"0.5200706"... | 0.68496376 | 0 |
Write a cleaned, merged document to an output stream. | public void writeCleanDocument(final OutputStream os, final boolean pretty) throws IOException {
Document doc = mergedDocument();
doc.outputSettings().escapeMode(Entities.EscapeMode.xhtml);
doc.outputSettings().syntax(Document.OutputSettings.Syntax.xml);
doc.quirksMode(Document.Quirk... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void writeSout(Document document) throws IOException\r\n {\n OutputFormat format = OutputFormat.createCompactFormat();\r\n XMLWriter writer = new XMLWriter( System.out, format );\r\n writer.write( document );\r\n }",
"public void writeDocumentToOutput() {\n log.deb... | [
"0.6000838",
"0.58153266",
"0.5749061",
"0.5585831",
"0.5434067",
"0.54223055",
"0.53028023",
"0.51971924",
"0.51913905",
"0.51355135",
"0.5124818",
"0.50659",
"0.49901608",
"0.4983569",
"0.49394435",
"0.4912118",
"0.48737895",
"0.4846218",
"0.48275146",
"0.48137608",
"0.4790... | 0.6879032 | 0 |
Creates metadata from the package doc. | private Metadata(final Document packageDoc) throws IOException {
Element packageElem = packageDoc.selectFirst("package");
if(packageElem == null) {
throw new IOException("The package document must contain a 'package' element");
}
String uniqueIdentifierId = packageElem.at... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmetadataEClass = createEClass(METADATA);\n\t\tcreateEAttribute(metadataEClass, METADATA__GAMENAME);\n\t\tcreateEAttribute(metadataEClass, METADATA__SHORTNAME);\n\t\tcreateEAttri... | [
"0.6427908",
"0.62970304",
"0.62213856",
"0.6206541",
"0.6164856",
"0.6164856",
"0.60433507",
"0.6031446",
"0.5953341",
"0.58867383",
"0.5808649",
"0.57930684",
"0.572104",
"0.57173496",
"0.5715269",
"0.57107776",
"0.5705811",
"0.5705503",
"0.5684943",
"0.568388",
"0.5679351"... | 0.6740146 | 0 |
Merge all the linear XHTML into a single document. | public Document mergeLinearXHTML() throws IOException {
Iterator<ManifestItem> items = linearXHTML().iterator();
if(!items.hasNext()) {
return null;
}
Document doc = checkNotNull(items.next().document());
Element body = doc.body();
while(items.hasNext()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Document doMerge(Document[] docs) throws AbstractXmlMergeException\n {\n Document originalDoc = docs[0];\n\n for (int i = 1; i < docs.length; i++)\n {\n\n if (!m_rootMatcher.matches(originalDoc.getRootElement(), docs[i].getRootElement()))\n {\n t... | [
"0.5544877",
"0.54115516",
"0.5362269",
"0.53566444",
"0.51794136",
"0.5161853",
"0.5088291",
"0.50684035",
"0.5037779",
"0.49782428",
"0.49710268",
"0.49448493",
"0.49201673",
"0.4896299",
"0.48789006",
"0.48095316",
"0.48038176",
"0.47958454",
"0.47432107",
"0.4731832",
"0.... | 0.7616231 | 0 |
Gets the raw bytes for this item. | public byte[] bytes() throws IOException {
try(FileInputStream fis = new FileInputStream(file)) {
return ByteStreams.toByteArray(fis);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public byte[] getAsBytes() {\n\t\treturn m_RawContent;\n\t}",
"public byte[] getBytes() {\n return baos.toByteArray();\n }",
"public byte[] getBytes()\n {\n try { return getRepo().newObjectReader().open(_entry.getObjectId()).getBytes(); }\n catch(Exception e) { throw new ... | [
"0.7382581",
"0.7215406",
"0.7146673",
"0.70268303",
"0.7005073",
"0.6991081",
"0.6985129",
"0.69832647",
"0.6936978",
"0.69274044",
"0.69245625",
"0.6923333",
"0.6887467",
"0.6870625",
"0.68666285",
"0.68588215",
"0.6754337",
"0.6721338",
"0.6682804",
"0.66761535",
"0.665949... | 0.62000835 | 48 |
Externally process the bytes for this item supplied as a stream. | public void processByteStream(final Consumer<InputStream> processor) throws IOException {
try(BufferedInputStream bis = new BufferedInputStream(new FileInputStream(file))) {
processor.accept(bis);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void onBinaryData(InputStream is) throws IOException {\n }",
"public void processStreamInput() {\n }",
"@Override\n public void extendStream(byte[] bytes) {\n try {\n ByteArrayOutputStream outStream = new ByteArrayOutputStream();\n stream.transferT... | [
"0.6275447",
"0.60319275",
"0.58591557",
"0.56729615",
"0.5494292",
"0.5490886",
"0.5468852",
"0.5456359",
"0.54314446",
"0.53837126",
"0.5368489",
"0.53588027",
"0.52780586",
"0.52780586",
"0.52684206",
"0.52611953",
"0.52603585",
"0.5251401",
"0.52484816",
"0.5214687",
"0.5... | 0.5670777 | 4 |
Gets the size of this item in bytes. | public long size() {
return file.length();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long sizeInKB() {\n return this.sizeInKB;\n }",
"public long getSize() {\n return size.get();\n }",
"public int getSizeBytes() {\n if (getDataType() == DataType.SEQUENCE)\n return getDataType().getSize();\n else if (getDataType() == DataType.STRING)\n return g... | [
"0.78038675",
"0.7703986",
"0.769477",
"0.7692874",
"0.7596061",
"0.75872934",
"0.7583282",
"0.7579769",
"0.7575892",
"0.7555777",
"0.7555777",
"0.7555777",
"0.7555777",
"0.7539284",
"0.7520762",
"0.7505902",
"0.7505862",
"0.74894434",
"0.7469699",
"0.7466726",
"0.7458119",
... | 0.0 | -1 |
Create a map of manifest items vs id. | private static Map<String, ManifestItem> manifestItems(final File rootDir, final Document opfDoc) throws IOException {
Map<String, ManifestItem> files = Maps.newLinkedHashMap();
for(Element element : opfDoc.select("manifest > item")) {
String href = element.attr("href").trim();
if(href.i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Map<String, Integer> m589m(Context context) {\r\n Map<String, Integer> hashMap = new HashMap();\r\n try {\r\n List<PackageInfo> installedPackages = context.getPackageManager().getInstalledPackages(0);\r\n if (installedPackages != null && installedPackages.size() > ... | [
"0.60797495",
"0.60226804",
"0.5672419",
"0.54026794",
"0.5291946",
"0.5290537",
"0.528109",
"0.5261683",
"0.5247034",
"0.52331024",
"0.5211069",
"0.51978725",
"0.5164194",
"0.5128916",
"0.51202977",
"0.50804806",
"0.50518245",
"0.50441986",
"0.50416225",
"0.5001806",
"0.4990... | 0.6414323 | 0 |
save the best model with testing data | public Option() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveModel() {\n\t}",
"@Override\n\tpublic void saveTestingData() {\n\t\t\n\t}",
"public boolean save(Data model);",
"@Test\n\tpublic void saveTest(){\n\t\t\n\t}",
"public void saveModel(ModelClass model) throws StorageIOException {\n try {\n Dao<ModelDB, String> modelDao = thi... | [
"0.62034345",
"0.6159235",
"0.6073614",
"0.59663814",
"0.5913385",
"0.58684814",
"0.5856101",
"0.58527213",
"0.58446556",
"0.5835124",
"0.58181036",
"0.5806366",
"0.57946825",
"0.5788842",
"0.57641095",
"0.5750063",
"0.574543",
"0.56807095",
"0.56446564",
"0.5637885",
"0.5632... | 0.0 | -1 |
/ Nel caso si debba eliminare un prodotto in base al suo codice, basta istanziare un VideogameBean dandogli solo il valore codice prodotto salva VideogameBean nel database | public void doSave(VideogameBean prod) throws SQLException {
DatabaseConnector connector = new DatabaseConnector();
connector.startConnection();
PreparedStatement state = null;
state = connector.getJdbcConnection()
.prepareStatement("insert into Videogioco values (?, ?, ?, ?, ?, ?, ?, ?)");
state.setInt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void eliminar() {\n try {\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n\n ... | [
"0.6892025",
"0.66842717",
"0.66104037",
"0.64864916",
"0.6486229",
"0.6483629",
"0.64688885",
"0.64270097",
"0.641055",
"0.63981605",
"0.6395952",
"0.6358972",
"0.63546926",
"0.6346585",
"0.63019204",
"0.6294622",
"0.629078",
"0.6263366",
"0.6252668",
"0.6245625",
"0.6243576... | 0.0 | -1 |
restituisce tutti gli VideogameBean del database | public ArrayList<VideogameBean> doRetrieveAll() throws SQLException{
DatabaseConnector connector = new DatabaseConnector();
connector.startConnection();
PreparedStatement stateAll = connector.getJdbcConnection()
.prepareStatement("SELECT * FROM Videogioco");
ResultSet container = stateAll.executeQuery();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public libroBean() throws SQLException\r\n {\r\n variables = new VariablesConexion();\r\n variables.iniciarConexion();\r\n conexion=variables.getConexion();\r\n \r\n }",
"Tablero consultarTablero();",
"public void listarProvincia() {\n provincias = JPAFactoryDAO.getFact... | [
"0.6069413",
"0.5984916",
"0.5950583",
"0.5946782",
"0.58430064",
"0.5831752",
"0.5827547",
"0.58250177",
"0.581153",
"0.5801556",
"0.57783884",
"0.57265455",
"0.572614",
"0.56784606",
"0.5677129",
"0.5676781",
"0.5670268",
"0.5668276",
"0.5660085",
"0.56574005",
"0.56490797"... | 0.6108446 | 0 |
behaviors/methods as general rule, public constructor: public method that creates the instance whats called when the new keyword is used with the class 1. visibility modifier: usually public 2.never static 3.NO RETURN TYPE 4. name =name of the class (capitalize the same) 5. arguments vary might take 1 arguments for eac... | public Student(){
firstName = "";
lastName = "";
bootcamp = "";
id = 42;
grade = 1.0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Reproducible newInstance();",
"private void __sep__Constructors__() {}",
"private Instantiation(){}",
"void DefaultConstructor(){}",
"defaultConstructor(){}",
"public OOP_207(){\n\n }",
"ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}",
"ConstructorPractic... | [
"0.73043716",
"0.6993893",
"0.6936117",
"0.68956894",
"0.6851174",
"0.68466437",
"0.68141395",
"0.65477264",
"0.650662",
"0.6483717",
"0.6478671",
"0.6468273",
"0.6463892",
"0.63513476",
"0.6320203",
"0.63002837",
"0.62941307",
"0.629399",
"0.62923646",
"0.62894404",
"0.62767... | 0.0 | -1 |
getters (accessors) provide public view access private instance variables 1.visibility modifier: public 2. 3. 4. name is usually get 5. usuually no arguments method body | public String getFirstName() {
return firstName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Get() {}",
"private Get() {}",
"public void get() {\n }",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\t\t\tpublic void visit(MethodDeclaration arg0, Object arg1) {\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\t\tif(arg0.getName().substring... | [
"0.6859873",
"0.6859873",
"0.63682884",
"0.6290094",
"0.62896574",
"0.6146902",
"0.6117921",
"0.60795534",
"0.60674095",
"0.6013252",
"0.60130763",
"0.6012886",
"0.59876794",
"0.597987",
"0.5963731",
"0.59556645",
"0.5922758",
"0.59174365",
"0.5892543",
"0.58877194",
"0.58864... | 0.0 | -1 |
setters (mutators) provide public write access to private instance variables //getters (accesors) provide public view access private instance variables 1.visibility modifier: public 2. 3. 4. name is usually get 5. usuually no arguments method body | public void setFirstName(String fn) {
//I need to capture the value from the argument
//which is going to scope out soon
//
//
firstName = fn;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}",
"private Prope... | [
"0.65317917",
"0.61464244",
"0.61447173",
"0.6143708",
"0.61065185",
"0.61065185",
"0.6106013",
"0.6060651",
"0.5994559",
"0.59939545",
"0.5913083",
"0.58980757",
"0.5847231",
"0.58397406",
"0.5837217",
"0.5836808",
"0.5817325",
"0.57754034",
"0.5771487",
"0.5768305",
"0.5765... | 0.0 | -1 |
the other way to name the argument | public void setLastName(String lastName){
//this keyword refers to the instance
//is the local variable/argument
//this is called shadowing
lastName = this.lastName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"java.lang.String getArg();",
"Argument createArgument();",
"@Override\n protected String getName() {return _parms.name;}",
"@Override\n\tpublic void traverseArg(UniArg node) {\n\t}",
"private static @NonNull String resolv... | [
"0.76177484",
"0.7264819",
"0.67038184",
"0.64115417",
"0.6268017",
"0.6215327",
"0.6203062",
"0.61829484",
"0.6144266",
"0.6137354",
"0.6104387",
"0.6094005",
"0.6061555",
"0.60468155",
"0.60058475",
"0.59965795",
"0.59859335",
"0.5975918",
"0.5944221",
"0.5944221",
"0.59143... | 0.0 | -1 |
there is intentionally no setID ID is locked in after the instance is created | public void setGrade (double grade){
this.grade = grade;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setID() {\n\t\tthis.ID = UUID.randomUUID().toString();\n\t}",
"private Locks() {\n\t\tlockId = ObjectId.get().toString();\n\t}",
"private void AutoID() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }... | [
"0.67976",
"0.6777397",
"0.67608005",
"0.6757326",
"0.66151273",
"0.66145843",
"0.66051245",
"0.6589708",
"0.6506359",
"0.64836377",
"0.64805746",
"0.64779544",
"0.6439864",
"0.640966",
"0.64020056",
"0.6387507",
"0.6379884",
"0.6358096",
"0.63557035",
"0.63497746",
"0.634647... | 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.72473437",
"0.7202402",
"0.71960324",
"0.7177793",
"0.7108265",
"0.7040525",
"0.70388484",
"0.70126176",
"0.70101976",
"0.6981143",
"0.69461405",
"0.694",
"0.69346833",
"0.69183874",
"0.69183874",
"0.6891571",
"0.6884306",
"0.68758994",
"0.687534",
"0.68627334",
"0.6862733... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Loader<Cursor> onCreateLoader(int id, Bundle args) {
String[] projection = { BooksDatabaseHelper.COLUMN_ID, BooksDatabaseHelper.COLUMN_TITLE};
CursorLoader cursorLoader = new CursorLoader(this,
BooksContentProvider.CONTENT_URI, projection, null, null, null);
return cursorLoader;
... | {
"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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.