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 |
|---|---|---|---|---|---|---|
deklaasi arraylist buat tampung data kelas | public ArrayList<KelasDicoding> getListKelas(){ return listKelas; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ArrayList<Entidad> GetArrayItems(){\n // ArrayList<Entidad> listItems = new ArrayList<>();\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n listItems.add(new Entidad(\"... | [
"0.6849132",
"0.6829528",
"0.6806235",
"0.67855036",
"0.6743271",
"0.67236793",
"0.66261804",
"0.65860534",
"0.65663123",
"0.6554254",
"0.6482524",
"0.6479383",
"0.64352864",
"0.64178133",
"0.6417472",
"0.64082223",
"0.63971674",
"0.63812214",
"0.6356374",
"0.63318694",
"0.63... | 0.64353853 | 12 |
buat fungsi holder yg dimasukan ke layout xml | @Override
public CardViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
View view = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.list_kelas,viewGroup, false);
return new CardViewHolder(view);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void iniciarLayout();",
"private void inicComponent() {\n\n\t\tprogres = (LinearLayout) findViewById(R.id.linearLayoutProgres);\n\t\t\n\t\tbuttonKategorije = (Button) findViewById(R.id.buttonKategorije);\n\t\t\n\t}",
"private void intviews() {\n\t\tyanzhengmall=(LinearLayout) findViewById(R.... | [
"0.6702343",
"0.6414452",
"0.6334247",
"0.63259405",
"0.619943",
"0.6191298",
"0.61889684",
"0.61889684",
"0.61889684",
"0.6179825",
"0.6137386",
"0.6066429",
"0.606555",
"0.6056195",
"0.6050512",
"0.6048214",
"0.60349274",
"0.6016359",
"0.60103464",
"0.600864",
"0.59795415",... | 0.0 | -1 |
fungsi ambil ukuran banyaknya list | @Override
public int getItemCount() {
return getListKelas().size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void HienThiDanhSach(List<DienTu> listdienTu) {\n\n }",
"public void ouvrirListe(){\n\t\n}",
"private void listViewPendentes(List<Compra> listAll) {\n\t\t\n\t}",
"public ArrayList<DanhMuc> getListDanhMucCha();",
"void mo100443a(List<String> list);",
"void mo54419a(List<String> li... | [
"0.72264105",
"0.680214",
"0.6692551",
"0.6639855",
"0.66322297",
"0.6590378",
"0.6558315",
"0.6462954",
"0.64094496",
"0.63867867",
"0.63587546",
"0.635784",
"0.6344892",
"0.6334932",
"0.63324445",
"0.6317234",
"0.6277292",
"0.62567705",
"0.62529504",
"0.6245384",
"0.6242348... | 0.0 | -1 |
Resource collection API of FqdnListLocalRulestacks. | public interface FqdnListLocalRulestacks {
/**
* List FqdnListLocalRulestackResource resources by LocalRulestacks.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param localRulestackName LocalRulestack resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a FqdnListLocalRulestackResource list operation as paginated response with {@link
* PagedIterable}.
*/
PagedIterable<FqdnListLocalRulestackResource> listByLocalRulestacks(
String resourceGroupName, String localRulestackName);
/**
* List FqdnListLocalRulestackResource resources by LocalRulestacks.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param localRulestackName LocalRulestack resource name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a FqdnListLocalRulestackResource list operation as paginated response with {@link
* PagedIterable}.
*/
PagedIterable<FqdnListLocalRulestackResource> listByLocalRulestacks(
String resourceGroupName, String localRulestackName, Context context);
/**
* Get a FqdnListLocalRulestackResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param localRulestackName LocalRulestack resource name.
* @param name fqdn list name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a FqdnListLocalRulestackResource along with {@link Response}.
*/
Response<FqdnListLocalRulestackResource> getWithResponse(
String resourceGroupName, String localRulestackName, String name, Context context);
/**
* Get a FqdnListLocalRulestackResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param localRulestackName LocalRulestack resource name.
* @param name fqdn list name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a FqdnListLocalRulestackResource.
*/
FqdnListLocalRulestackResource get(String resourceGroupName, String localRulestackName, String name);
/**
* Delete a FqdnListLocalRulestackResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param localRulestackName LocalRulestack resource name.
* @param name fqdn list name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void delete(String resourceGroupName, String localRulestackName, String name);
/**
* Delete a FqdnListLocalRulestackResource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param localRulestackName LocalRulestack resource name.
* @param name fqdn list name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void delete(String resourceGroupName, String localRulestackName, String name, Context context);
/**
* Get a FqdnListLocalRulestackResource.
*
* @param id the resource ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a FqdnListLocalRulestackResource along with {@link Response}.
*/
FqdnListLocalRulestackResource getById(String id);
/**
* Get a FqdnListLocalRulestackResource.
*
* @param id the resource ID.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a FqdnListLocalRulestackResource along with {@link Response}.
*/
Response<FqdnListLocalRulestackResource> getByIdWithResponse(String id, Context context);
/**
* Delete a FqdnListLocalRulestackResource.
*
* @param id the resource ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void deleteById(String id);
/**
* Delete a FqdnListLocalRulestackResource.
*
* @param id the resource ID.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
void deleteByIdWithResponse(String id, Context context);
/**
* Begins definition for a new FqdnListLocalRulestackResource resource.
*
* @param name resource name.
* @return the first stage of the new FqdnListLocalRulestackResource definition.
*/
FqdnListLocalRulestackResource.DefinitionStages.Blank define(String name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"FqdnListLocalRulestackResource.DefinitionStages.Blank define(String name);",
"LevelStacks() {\n stacks = new ArrayList<>();\n }",
"public List<Taskdef> getLocalTaskdefs()\n {\n return localTaskdefs;\n }",
"public static final SubLObject setup_stacks_file() {\n Structures.register_method(pri... | [
"0.59856373",
"0.45435482",
"0.4456761",
"0.43934718",
"0.43758395",
"0.43752715",
"0.42514962",
"0.42423707",
"0.42423162",
"0.4214718",
"0.42131904",
"0.41238362",
"0.41231498",
"0.4119764",
"0.4116954",
"0.40852258",
"0.4082729",
"0.40805542",
"0.4064039",
"0.40507755",
"0... | 0.703393 | 0 |
Begins definition for a new FqdnListLocalRulestackResource resource. | FqdnListLocalRulestackResource.DefinitionStages.Blank define(String name); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface FqdnListLocalRulestacks {\n /**\n * List FqdnListLocalRulestackResource resources by LocalRulestacks.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param localRulestackName LocalRulestack resource name.\n * @throws Illega... | [
"0.601798",
"0.50841856",
"0.4949224",
"0.48873058",
"0.48856497",
"0.4808853",
"0.47737157",
"0.47399265",
"0.4739233",
"0.47224334",
"0.4720808",
"0.46627524",
"0.46605626",
"0.46538237",
"0.46524295",
"0.46480963",
"0.45963717",
"0.45927787",
"0.45479017",
"0.45285523",
"0... | 0.72292674 | 0 |
search function is embedded in here | public void insert(Node given){
length++;
String retVar = "";
Node curNode = root;
while (!curNode.isLeaf()){
if (curNode.getData() > given.getData()){
curNode = curNode.getLeft();
}
else{
curNode = curNode.getRight();
}
}
if (curNode.getData() > given.getData()){
curNode.setLeft(given);
}
else{
curNode.setRight(given);
}
myLazySearchFunction = curNode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void searchFunction() {\n\t\t\r\n\t}",
"public void search() {\r\n \t\r\n }",
"void search();",
"void search();",
"abstract public void search();",
"public void search() {\n }",
"void searchProbed (Search search);",
"@Override\r\n\tpublic void search() {\n\r\n\t}",
"@Override\n\tpu... | [
"0.9004099",
"0.84016615",
"0.83563405",
"0.83563405",
"0.8329416",
"0.8246383",
"0.79894656",
"0.79706126",
"0.79655015",
"0.7779722",
"0.7506286",
"0.74460727",
"0.7384125",
"0.73240894",
"0.7228349",
"0.7216041",
"0.7201723",
"0.71572626",
"0.71369064",
"0.71324",
"0.71235... | 0.0 | -1 |
Computes an assignment. Unmatched elements should be assigned to 1. | public abstract int[] solve(double[][] costs); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static DecisionOperator<IntVar> assign() {\n return DecisionOperator.int_eq;\n }",
"assign_op getAssign_op();",
"private void assignment() {\n\n\t\t\t}",
"public final void rule__XAssignment__FeatureAssignment_1_1_0_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepS... | [
"0.63890165",
"0.6385579",
"0.6117686",
"0.60810876",
"0.6006668",
"0.5995957",
"0.5983095",
"0.5977374",
"0.59636974",
"0.5897587",
"0.5864542",
"0.5855576",
"0.58548844",
"0.5826845",
"0.5823154",
"0.57933515",
"0.57846296",
"0.57793146",
"0.5778574",
"0.57736355",
"0.57581... | 0.0 | -1 |
The provider of the credentials | @ApiModelProperty(example = "null", value = "The provider of the credentials")
public AuthenticationProviderEnum getAuthenticationProvider() {
return authenticationProvider;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getProvider() {\n return provider;\n }",
"public String getProvider() {\r\n return provider;\r\n }",
"public String getProvider() {\n\t\treturn this.provider;\n\t}",
"public String getProvider() {\n\t\treturn provider;\n\t}",
"public String getProvider() {\n ret... | [
"0.7454891",
"0.7450382",
"0.7409851",
"0.73840946",
"0.71741927",
"0.7117185",
"0.6951301",
"0.6936704",
"0.6925489",
"0.69015396",
"0.68850595",
"0.68818104",
"0.6807517",
"0.675079",
"0.67405105",
"0.67383754",
"0.66881275",
"0.6682986",
"0.6597714",
"0.6548506",
"0.654775... | 0.63599205 | 29 |
The type of backend that is created. This field allows users to create a local backend or with supported 3rd parties. | @ApiModelProperty(example = "null", value = "The type of backend that is created. This field allows users to create a local backend or with supported 3rd parties.")
public BackendTypeEnum getBackendType() {
return backendType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String backend();",
"public static EBackendType getBackendByName(String name) {\n\t\treturn availableBackends().filter(backend -> backend.cc_name.equalsIgnoreCase(name)).findFirst().orElse(EBackendType.DEFAULT);\n\t}",
"public void backend (String backend) {\n if (isRunning ())\n throw new Il... | [
"0.6051457",
"0.6025935",
"0.57976735",
"0.5749181",
"0.5721932",
"0.5701675",
"0.5644082",
"0.56234854",
"0.5587276",
"0.5568128",
"0.5558282",
"0.54831266",
"0.5461849",
"0.5461681",
"0.5433639",
"0.542189",
"0.54205453",
"0.5404202",
"0.53754526",
"0.53200144",
"0.5309298"... | 0.8108634 | 0 |
The API secret for 3rd party backends. | @ApiModelProperty(example = "null", value = "The API secret for 3rd party backends.")
public String getBackendSecret() {
return backendSecret;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSecret();",
"java.lang.String getServerSecret();",
"java.lang.String getSecret();",
"public int getSecret() {\n return secret;\n }",
"String getComponentAppSecret();",
"public String getAppSecret() {\r\n return appSecret;\r\n }",
"public abstract String getSecret();",
"public ... | [
"0.7661615",
"0.7606546",
"0.75922054",
"0.75657994",
"0.7461036",
"0.7438245",
"0.7390463",
"0.7308486",
"0.7279034",
"0.7274237",
"0.70567036",
"0.6960873",
"0.69445384",
"0.6940024",
"0.69308996",
"0.69165856",
"0.6849778",
"0.6809568",
"0.67962915",
"0.67874974",
"0.67725... | 0.74185044 | 6 |
The API key for 3rd party backends. | @ApiModelProperty(example = "null", value = "The API key for 3rd party backends.")
public String getBackendKey() {
return backendKey;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAPIKey()\r\n {\r\n return APIKey;\r\n }",
"protected String getApiKey() {\r\n\t\treturn apiKey;\r\n\t}",
"protected String getApiKey()\n\t{\n\t\treturn apiKey;\n\t}",
"public String getApiKey() {\n return apiKey;\n }",
"String getApiKey() {\n return intercepto... | [
"0.7597696",
"0.72513473",
"0.7221289",
"0.7200736",
"0.7141865",
"0.7137327",
"0.7118843",
"0.7032716",
"0.69137216",
"0.68321735",
"0.6616334",
"0.65218216",
"0.6365619",
"0.6358531",
"0.6200353",
"0.61858946",
"0.6170791",
"0.6169991",
"0.6158798",
"0.6150306",
"0.61335564... | 0.7021664 | 8 |
The backend that is used for when properties are not set. This allows credentials to be set at one backend and used by multiple backends. | @ApiModelProperty(example = "null", value = "The backend that is used for when properties are not set. This allows credentials to be set at one backend and used by multiple backends.")
public String getParentId() {
return parentId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getBackendUrl() {\n\t\treturn backendUrl;\n\t}",
"public BackendConfig getBackendConfiguration() {\n return backendConfiguration;\n }",
"@ApiModelProperty(example = \"null\", value = \"The type of backend that is created. This field allows users to create a local backend or with support... | [
"0.658856",
"0.6428878",
"0.6074119",
"0.60657376",
"0.599837",
"0.59759",
"0.59737325",
"0.5945641",
"0.5771679",
"0.57553095",
"0.5702355",
"0.56463516",
"0.55892825",
"0.54608047",
"0.5368457",
"0.53398085",
"0.5308999",
"0.51923424",
"0.51364577",
"0.51052904",
"0.5098181... | 0.46441552 | 42 |
Convert the given object to string with each line indented by 4 spaces (except the first line). | private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA... | [
"0.7884939",
"0.7549351",
"0.74972624",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
"0.74616987",
... | 0.0 | -1 |
Obtener Historial de Solicitud de Conexion mediante Id de Solicitud de Conexion | public List<HistorialSolicitudConexion> getHistorialByIdSolicitud(SolicitudConexion solicitudConexion) {
try {
Query query = em.createNamedQuery("HistorialSolicitudConexion.findByIdSolicitudConexion").setParameter("idSolicitudConexion", solicitudConexion);
return query.getResultList();
} catch (Exception e) {
UtilLogger.error(this.getClass().getName() + ".getHistorialByIdSolicitud", e);
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Hashtable obtenerHistoricosSolicitud(Long oidPais, Long oidSolicitud) throws MareException {\n UtilidadesLog.info(\"MONHistoricoDTO.obtenerHistoricosSolicitud() - entrada\"); \n BelcorpService belcorpService;\n StringBuffer query = new StringBuffer();\n RecordSet rsHistor... | [
"0.64629054",
"0.604974",
"0.6019108",
"0.5958377",
"0.5815312",
"0.58052725",
"0.56920105",
"0.56821245",
"0.5635125",
"0.55028677",
"0.5495217",
"0.5490588",
"0.5442519",
"0.54074395",
"0.54035795",
"0.5403463",
"0.5392366",
"0.5389729",
"0.53597593",
"0.53479636",
"0.52613... | 0.6342585 | 1 |
Sets the internal fields to the passed values | public FirmClassContainer(ExchangeFirmStruct exchangeFirmStruct, int key) {
this.firmNumber = exchangeFirmStruct.firmNumber;
this.exchange = exchangeFirmStruct.exchange;
this.classKey = key;
hashCode = (firmNumber.hashCode() + exchange.hashCode() + classKey)/3;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }",
"public static void setInternalState(Object object, Object value, Object... additionalValues) {\n setField(object, value,\n findFieldInHierarchy(object, new AssignableFromFieldTypeMatche... | [
"0.79727316",
"0.6344611",
"0.62640107",
"0.6159723",
"0.6157921",
"0.61398065",
"0.6135012",
"0.6128735",
"0.608321",
"0.603791",
"0.60352653",
"0.6023386",
"0.6011819",
"0.5999774",
"0.5943746",
"0.5937445",
"0.5904106",
"0.59016633",
"0.5900697",
"0.58929706",
"0.5863652",... | 0.0 | -1 |
The toString() for the key. | public String toString() {
if (displayString == null)
{
displayString = this.exchange + ':' + this.firmNumber + ':' + classKey;
}
return displayString;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic String toString() {\n\t\treturn key + \"\";\r\n\t}",
"@Override\n public String toString() {\n return String.valueOf(key);\n }",
"public String toString() {\r\n \treturn key;\r\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn this.key;\r\n\t}",
"@Overri... | [
"0.9153218",
"0.9111625",
"0.89982915",
"0.88850605",
"0.8848335",
"0.87593675",
"0.84381384",
"0.8357598",
"0.8263066",
"0.8233514",
"0.818163",
"0.8172892",
"0.81366014",
"0.81342167",
"0.80860865",
"0.80563873",
"0.79153454",
"0.7910152",
"0.78001016",
"0.7527102",
"0.7497... | 0.0 | -1 |
Test case for the remove(Company) method of the CompanyService implementation | @Test
public void testRemove() throws Exception {
String ADMIN_USERNAME = "bjones";
Calendar DEFAULT_START_DATE = Calendar.getInstance();
Calendar DEFAULT_END_DATE = Calendar.getInstance();
DEFAULT_START_DATE.set(Calendar.YEAR, 1900);
DEFAULT_END_DATE.set(Calendar.YEAR, 3000);
logger.debug("\nSTARTED testRemove()\n");
User user1 = userDao.find(TEST_USERNAME);
List<TaskLog> logs = taskLogDao.findByUser(user1, DEFAULT_START_DATE.getTime(), DEFAULT_END_DATE.getTime());
Result<User> ar;
if (logs.isEmpty()) {
ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);
logger.debug(ar.getMsg());
assertTrue("Delete of user should be allowed as no task logs assigned!", ar.isSuccess());
} else {
// this user has task log assigned
ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);
logger.debug(ar.getMsg());
assertTrue("Cascading delete of user to task logs not allowed!", !ar.isSuccess());
}
logs = taskLogDao.findByUser(user1, DEFAULT_START_DATE.getTime(), DEFAULT_END_DATE.getTime());
if (logs.isEmpty()) {
ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);
logger.debug(ar.getMsg());
assertTrue("Delete of user should be allowed as empty task log list!", ar.isSuccess());
} else {
// this user has task log assigned
ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);
logger.debug(ar.getMsg());
assertTrue("Cascading delete of user to task logs not allowed!", !ar.isSuccess());
}
ar = userService.remove(ADMIN_USERNAME, ADMIN_USERNAME);
logger.debug(ar.getMsg());
assertTrue("Should not be able to delete yourself", !ar.isSuccess());
logger.debug("\nFINISHED testRemove()\n");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeByCompanyId(long companyId);",
"public void deleteCompany(Company obj);",
"@Override\n\tpublic void remove(cp_company cp) {\n\t\t\n\t}",
"@Test\n\tpublic void testDeleteCompanyApi() {\n\t\tCompany company = new Company(\"DataSolutionsPvtLtd\",\n\t\t\t\t\"Marthahalli road\", \"Bangalore\", \... | [
"0.7664904",
"0.7464891",
"0.7313516",
"0.72835714",
"0.7213492",
"0.71925235",
"0.71685374",
"0.7000491",
"0.6939989",
"0.6915296",
"0.6871826",
"0.67294014",
"0.66463876",
"0.6609053",
"0.65882194",
"0.65882194",
"0.65882194",
"0.6576584",
"0.6516712",
"0.647538",
"0.646202... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
Utility u=new Utility();
Scanner sc=new Scanner(System.in);
System.out.println("Enter Size ");
int size=sc.nextInt();
int[] arr = new int[size];
System.out.println("Enter Elements");
for(int i=0;i<size;i++)
arr[i]=sc.nextInt();
System.out.println("Before sorting : " + Arrays.toString(arr));
u.bubbleSort(arr);
System.out.println("After sorting : " + Arrays.toString(arr));
sc.close();
} | {
"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: console can have permissions set | @Override
public boolean hasPermission(String string) {
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t\n\tAccesingModifiers.hello();//heryerden accessable \n\tAccesingModifiers.hello1();\n\tAccesingModifiers.hello2();\n\t\n\t//AccesingModifiers.hello3(); not acceptable since permission is set to private\n\t\n}",
"void askForPermissions();",
"AdminConsole createA... | [
"0.6412935",
"0.6243704",
"0.61460185",
"0.6094147",
"0.59404814",
"0.5881127",
"0.5866792",
"0.58032984",
"0.57996076",
"0.57906103",
"0.57853913",
"0.56829274",
"0.56543815",
"0.5601155",
"0.55870974",
"0.558431",
"0.55452126",
"0.55445886",
"0.55242246",
"0.55172014",
"0.5... | 0.0 | -1 |
Apply the action according to the protocol. All actions done by all agents come through this method. The protocol should check here if the agent's action is actually allowed and contains the proper data. | void applyAction(Action action, Session session) throws ActionException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void action() {\n\t\tACLMessage msgRx = myAgent.receive();\n\t\tif (msgRx != null && msgRx.getPerformative() == ACLMessage.REQUEST) {\n\t\t\tContentManager contentManager = myAgent.getContentManager();\n\t\t\tSystem.out.println(\"RECEIVED = \" + msgRx.getContent());\n\t\t\tmsgRx.setLanguage(\"f... | [
"0.7106402",
"0.6757423",
"0.6548902",
"0.63633806",
"0.6271428",
"0.62097305",
"0.6139064",
"0.6133486",
"0.6096722",
"0.60887194",
"0.60062784",
"0.59751564",
"0.59735376",
"0.5948096",
"0.5918909",
"0.5895805",
"0.5885922",
"0.5811174",
"0.5804285",
"0.5786696",
"0.5753412... | 0.61983234 | 6 |
This method should return the current agreement. Some protocols only have an agreement at the negotiation session, make sure that this method returns null until the end of the session in that case, because this method might be queried at intermediary steps. | Bid getCurrentAgreement(Session session, List<NegotiationParty> parties); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Agreement getAgreement() {\n\t\treturn this.agreement;\n\t}",
"public ProtocolResult getAnswer(){\n\t\t\n\t\tif( hasReachedTimeout() ){\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.9\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\tif (isInitiator() && (getState() == RequestProtocolState.WAITING_ANSW... | [
"0.6797984",
"0.5647313",
"0.5275164",
"0.5160992",
"0.5138498",
"0.49938875",
"0.49550202",
"0.4862024",
"0.48536724",
"0.48526824",
"0.4815771",
"0.48031563",
"0.4800227",
"0.47949144",
"0.47420034",
"0.47341686",
"0.47175413",
"0.46877828",
"0.46875545",
"0.46760383",
"0.4... | 0.6148449 | 1 |
Gets the number of parties that currently agree to the offer. For protocols that either have an agreement or not, you can set this number to 0 until an agreement is found, and then set this value to the number of parties. | int getNumberOfAgreeingParties(Session session, List<NegotiationParty> parties); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getTotalAcceptCount();",
"public int getPartyCount()\n\t{\n\t\tint r = 0;\n\t\tfor(int i = 0; i < m_pokemon.length; i++)\n\t\t\tif(m_pokemon[i] != null)\n\t\t\t\tr++;\n\t\treturn r;\n\t}",
"int getPeerCount();",
"public int getF_NumOfMatchesPayed() {\n return f_numOfMatchesPayed;\n }",
"int ... | [
"0.61010444",
"0.6042512",
"0.6030381",
"0.596651",
"0.58945304",
"0.58945304",
"0.5889483",
"0.5809361",
"0.5746119",
"0.5732521",
"0.57113296",
"0.566449",
"0.56619734",
"0.56619734",
"0.5647002",
"0.5642376",
"0.5642376",
"0.5604266",
"0.5597197",
"0.55588126",
"0.5544106"... | 0.6809516 | 0 |
Overwrites the rest of the protocol and sets the protocol state to finish | void endNegotiation(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void endProtocol()\n throws IOException\n {\n try\n {\n boolean fWrite = f_buffEncOut.hasRemaining();\n\n for (SSLSelectionKey key = m_keyFirst; key != null;\n key = key.m_keyNext)\n {\n key.setProtoco... | [
"0.63244444",
"0.6175092",
"0.56199163",
"0.5538314",
"0.5513428",
"0.5511335",
"0.54620427",
"0.54297066",
"0.54052615",
"0.53650796",
"0.52953047",
"0.52832484",
"0.527874",
"0.52553123",
"0.52527136",
"0.52476454",
"0.52465314",
"0.52428085",
"0.52358603",
"0.52323025",
"0... | 0.5492269 | 6 |
Overwrites the rest of the protocol and sets the protocol state to finish | void endNegotiation(String reason); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void endProtocol()\n throws IOException\n {\n try\n {\n boolean fWrite = f_buffEncOut.hasRemaining();\n\n for (SSLSelectionKey key = m_keyFirst; key != null;\n key = key.m_keyNext)\n {\n key.setProtoco... | [
"0.6324738",
"0.6176512",
"0.56206906",
"0.5539019",
"0.5514034",
"0.5511193",
"0.54917765",
"0.54624444",
"0.543098",
"0.5406043",
"0.5365377",
"0.52957964",
"0.5282265",
"0.5277828",
"0.5254034",
"0.52536225",
"0.5248828",
"0.5248526",
"0.52423614",
"0.52362025",
"0.5232",
... | 0.0 | -1 |
Constructor for the delete command. | public DeleteCommand(String afterCommand) {
this.afterCommand = afterCommand;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DeleteCommand(String command) {\n super(command);\n }",
"public DeleteCommand(String commandText) {\n super();\n description = commandText;\n }",
"private Delete() {}",
"private Delete() {}",
"public DeleteCommand(int index) {\n this.index = index;\n }",
"publi... | [
"0.80153906",
"0.7386696",
"0.7310077",
"0.7310077",
"0.6979054",
"0.6979054",
"0.6979054",
"0.6822759",
"0.68051165",
"0.66912377",
"0.66421443",
"0.66375566",
"0.65146905",
"0.6489576",
"0.64695543",
"0.64019877",
"0.6400489",
"0.635328",
"0.62831503",
"0.62831503",
"0.6277... | 0.59898615 | 41 |
needs a valid number | @Override
public String execute(TaskList taskList, Ui ui, DukeStorage storage) {
int taskNo = Integer.parseInt(afterCommand) - 1;
if (taskNo >= taskList.getTasksSize() || taskNo < 0) {
return ui.throwDukeException(new DukeException("Please enter a valid task no!"));
}
Task deletedTask = taskList.get(taskNo);
taskList.delete(taskNo, true);
return ui.displayDeletedTask(deletedTask, taskList.getTasksSize(), false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean validNum (int num) {\n if (num >= 0) return true;\n else return false;\n }",
"public boolean checkNumber() {\n\t\treturn true;\n\t}",
"protected boolean isNumberValid(@NotNull ConversationContext context, @NotNull Number input) {\n/* 30 */ return true;\n/* */ }",
"pu... | [
"0.76418823",
"0.75547",
"0.7227575",
"0.7205388",
"0.7158003",
"0.7123224",
"0.7114375",
"0.70347387",
"0.7032787",
"0.69563246",
"0.6938965",
"0.6919386",
"0.68159914",
"0.6599945",
"0.65813535",
"0.6550864",
"0.65480256",
"0.65439844",
"0.6509824",
"0.6495265",
"0.64593565... | 0.0 | -1 |
Write code here that turns the phrase above into concrete actions | @When("^password$")
public void password() throws Throwable {
System.out.println("input password");
//Assert.assertEquals(34, 40);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected String performAction(String input);",
"@Override\r\n\tpublic void action() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}",
"protected abstract Action stringToAction(String stringAction);",
"@Override\n\tpublic void action() {\n\n\t}",
"priv... | [
"0.6989324",
"0.64658433",
"0.6398834",
"0.6353149",
"0.63501525",
"0.633518",
"0.63232154",
"0.63232154",
"0.63232154",
"0.6317274",
"0.62379014",
"0.61738145",
"0.61690307",
"0.61507595",
"0.6110593",
"0.6071837",
"0.6065073",
"0.6061467",
"0.6035597",
"0.6035597",
"0.60355... | 0.0 | -1 |
Write code here that turns the phrase above into concrete actions | @When("^click the submit button$")
public void click_the_submit_button() throws Throwable {
System.out.println("click the button");
//throw new PendingException();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected String performAction(String input);",
"@Override\r\n\tpublic void action() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}",
"protected abstract Action stringToAction(String stringAction);",
"@Override\n\tpublic void action() {\n\n\t}",
"priv... | [
"0.6989337",
"0.6465871",
"0.6398866",
"0.63531065",
"0.63501644",
"0.63351953",
"0.6323244",
"0.6323244",
"0.6323244",
"0.6317299",
"0.62378716",
"0.6173785",
"0.6169042",
"0.6150738",
"0.6110577",
"0.607182",
"0.6065047",
"0.6061413",
"0.60355884",
"0.60355884",
"0.60355884... | 0.0 | -1 |
Write code here that turns the phrase above into concrete actions | @Then("^display result window$")
public void display_result_window() throws Throwable {
System.out.println("display_result_window");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected String performAction(String input);",
"@Override\r\n\tpublic void action() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}",
"protected abstract Action stringToAction(String stringAction);",
"@Override\n\tpublic void action() {\n\n\t}",
"priv... | [
"0.69913816",
"0.6464981",
"0.6399699",
"0.6356175",
"0.63496184",
"0.63362086",
"0.63226557",
"0.63226557",
"0.63226557",
"0.63172126",
"0.6238861",
"0.6175908",
"0.61712754",
"0.615359",
"0.61122066",
"0.6072982",
"0.60656",
"0.606321",
"0.60358083",
"0.60358083",
"0.603580... | 0.0 | -1 |
Never called. Disable default constructor | protected GEDCOMType() {/* intentionally empty block */} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }",
"defaultConstructor(){}",
"void DefaultConstructor(){}",
"private ATCres() {\r\n // prevent to instantiate this class\r\n }",
"private InterpreterDependencyChecks() {\r\n\t\t// Hides default constru... | [
"0.82636106",
"0.77236",
"0.7686944",
"0.7671532",
"0.73523057",
"0.7352109",
"0.73282",
"0.7325895",
"0.7254914",
"0.724846",
"0.72438735",
"0.72125626",
"0.71687376",
"0.71400064",
"0.7082318",
"0.707305",
"0.7047531",
"0.7007297",
"0.6998448",
"0.6980861",
"0.69777334",
... | 0.0 | -1 |
Internal constructor used by generator | public GEDCOMType(int addr, TOP_Type type) {
super(addr, type);
readObject();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Generator(){}",
"private CandidateGenerator() {\n\t}",
"public BPELGeneratorImpl() {\r\n \t\tsuper(GENERATOR_NAME);\r\n \t}",
"Constructor() {\r\n\t\t \r\n\t }",
"public PARiverDataGenerator() {\n }",
"public Genret() {\r\n }",
"private Sequence() {\n this(\"<Sequence>\", null, nul... | [
"0.77987987",
"0.7218594",
"0.6958574",
"0.6955659",
"0.6951348",
"0.6911357",
"0.690514",
"0.6874964",
"0.6813423",
"0.6786763",
"0.67684776",
"0.6768307",
"0.67625123",
"0.67621654",
"0.67601484",
"0.67517936",
"0.6711886",
"0.6673867",
"0.66636586",
"0.6662397",
"0.6607948... | 0.0 | -1 |
getter for contactRec gets | public FSArray getContactRec() {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)
jcasType.jcas.throwFeatMissing("contactRec", "net.myerichsen.gedcom.GEDCOMType");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getContact() {\r\n return this.contact;\r\n }",
"public String getContact() {\n return contact;\n }",
"public String getContact() {\n return contact;\n }",
"public String getContact() {\n return contact;\n }",
"public String getContact() {\n return con... | [
"0.7241103",
"0.7194531",
"0.7194531",
"0.7194531",
"0.7194531",
"0.7194531",
"0.7057637",
"0.70566",
"0.7021533",
"0.70076907",
"0.6992305",
"0.6977108",
"0.6977108",
"0.69381076",
"0.69221646",
"0.6908357",
"0.68871236",
"0.6871385",
"0.68356776",
"0.666976",
"0.6663433",
... | 0.7482134 | 0 |
indexed getter for contactRec gets an indexed value | public ContactRecType getContactRec(int i) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)
jcasType.jcas.throwFeatMissing("contactRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec), i);
return (ContactRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec), i)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"org.multibit.hd.core.protobuf.MBHDContactsProtos.Contact getContact(int index);",
"public int getIndex() {\r\n\t\treturn personToContact;\r\n\t}",
"int getContactValue();",
"public int getContactValue() {\n return contact_;\n }",
"public int getContactValue() {\n return contact_;\n ... | [
"0.69708234",
"0.6961213",
"0.6832376",
"0.6711267",
"0.6545687",
"0.63397515",
"0.6278416",
"0.616218",
"0.61426663",
"0.6116383",
"0.61051476",
"0.61051476",
"0.61051476",
"0.61051476",
"0.6070834",
"0.60595083",
"0.6022741",
"0.6001166",
"0.5902055",
"0.5899367",
"0.587244... | 0.65017575 | 5 |
Feature: headerRec getter for eventRec gets | public FSArray getEventRec() {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)
jcasType.jcas.throwFeatMissing("eventRec", "net.myerichsen.gedcom.GEDCOMType");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public VCFHeader getHeader();",
"java.lang.String getHeader();",
"public Object getHeader() {\n return header;\n }",
"@Override\n public IRecord procHeader(IRecord r)\n {\n return r;\n }",
"@Override\n public IRecord procHeader(IRecord r) {\n return r;\n }",
"com.walgreens.rxit.ch.cd... | [
"0.6388764",
"0.63424367",
"0.6273967",
"0.62419236",
"0.6212298",
"0.6177799",
"0.6164654",
"0.61249316",
"0.6124051",
"0.60822105",
"0.60432357",
"0.6016238",
"0.600201",
"0.5997179",
"0.59810954",
"0.5957264",
"0.59544146",
"0.59478855",
"0.59194845",
"0.58658576",
"0.5863... | 0.596772 | 15 |
indexed getter for eventRec gets an indexed value | public EventRecType getEventRec(int i) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)
jcasType.jcas.throwFeatMissing("eventRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec), i);
return (EventRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec), i)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return id;\n case 1: return relatedIMEventOriginalID;\n case 2: return userID;\n case 3: return occurredMillis;\n case 4: return validFromMillis;\n case 5: return validToMillis;\n case 6: return role;\n case 7: retur... | [
"0.6467807",
"0.63067025",
"0.63016284",
"0.62927455",
"0.62924105",
"0.6273516",
"0.62735087",
"0.625125",
"0.6243402",
"0.6232981",
"0.62176657",
"0.62030095",
"0.6195487",
"0.6184174",
"0.6183507",
"0.61602074",
"0.61602074",
"0.6155253",
"0.6147143",
"0.6144044",
"0.61338... | 0.6326517 | 1 |
Feature: familyRec getter for familyRec gets | public FSArray getFamilyRec() {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)
jcasType.jcas.throwFeatMissing("familyRec", "net.myerichsen.gedcom.GEDCOMType");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Family getFamily() {\n return family;\n }",
"public java.util.Map<java.lang.CharSequence,java.lang.CharSequence> getFamily2() {\n\t throw new java.lang.UnsupportedOperationException(\"Get is not supported on tombstones\");\n\t }",
"String getFamily();",
"String getFamily();",
"... | [
"0.6839077",
"0.65934926",
"0.6527069",
"0.6527069",
"0.6493213",
"0.636588",
"0.63430727",
"0.63207483",
"0.63071406",
"0.6184922",
"0.61440307",
"0.6116584",
"0.61110103",
"0.6050121",
"0.60463876",
"0.59907407",
"0.59881",
"0.591205",
"0.58990633",
"0.5851159",
"0.5765972"... | 0.6848212 | 0 |
indexed getter for familyRec gets an indexed value | public FamilyRecType getFamilyRec(int i) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)
jcasType.jcas.throwFeatMissing("familyRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i);
return (FamilyRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getIndex();",
"public int getIndex();",
"public int getIndex();",
"@Override\n public Person lookup(final int i) {\n if(i >= size() || i < 0) throw new IndexOutOfBoundsException();\n return mData.get(i);\n }",
"@VTID(10)\n int getIndex();",
"public Object getValue(int inde... | [
"0.6154765",
"0.6154765",
"0.6154765",
"0.6150127",
"0.6128209",
"0.6072555",
"0.6063769",
"0.6018189",
"0.59847665",
"0.5981872",
"0.5976206",
"0.5970076",
"0.5952809",
"0.5950337",
"0.59244657",
"0.59244657",
"0.5923129",
"0.58857673",
"0.5881365",
"0.5872258",
"0.58637184"... | 0.5712325 | 48 |
getter for groupRec gets | public FSArray getGroupRec() {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)
jcasType.jcas.throwFeatMissing("groupRec", "net.myerichsen.gedcom.GEDCOMType");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object getGroup(int groupPosition);",
"public long getGroup()\r\n { return group; }",
"Object getGroupID(String groupName) throws Exception;",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGroup() { return cGroup; }",
"public Group getGr... | [
"0.71911925",
"0.69957453",
"0.6967821",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",
"0.69428545",... | 0.70677215 | 1 |
indexed getter for groupRec gets an indexed value | public GroupRecType getGroupRec(int i) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)
jcasType.jcas.throwFeatMissing("groupRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec), i);
return (GroupRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec), i)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object getGroup(int groupPosition);",
"@java.lang.Override\n public int getGroupIndex() {\n return instance.getGroupIndex();\n }",
"@Override\r\n public Object getGroup(int groupPosition) {\n return mDataList.get(\"\" + groupPosition);\r\n }",
"@java.lang.Override\n p... | [
"0.6785903",
"0.67301166",
"0.66291946",
"0.6555067",
"0.6476363",
"0.6452364",
"0.6443038",
"0.6385858",
"0.6383868",
"0.615866",
"0.61505854",
"0.6108234",
"0.6084879",
"0.6050917",
"0.60340565",
"0.60191005",
"0.5930555",
"0.59115726",
"0.5886939",
"0.5878983",
"0.586296",... | 0.5937266 | 16 |
Feature: individualRec getter for headerRec gets | public HeaderRecType getHeaderRec() {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_headerRec == null)
jcasType.jcas.throwFeatMissing("headerRec", "net.myerichsen.gedcom.GEDCOMType");
return (HeaderRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_headerRec)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.didiyun.base.v1.Header getHeader();",
"java.lang.String getHeader();",
"public VCFHeader getHeader();",
"@Override\n public IRecord procHeader(IRecord r)\n {\n return r;\n }",
"@Override\n public IRecord procHeader(IRecord r) {\n return r;\n }",
"FS2ObjectHeaders getHeaders();",
"String ... | [
"0.6931232",
"0.69125557",
"0.68746036",
"0.6788047",
"0.6767711",
"0.6758982",
"0.67442155",
"0.6671503",
"0.66409564",
"0.66276157",
"0.6513777",
"0.6512467",
"0.64786977",
"0.64418495",
"0.64155984",
"0.63988745",
"0.63912183",
"0.63812643",
"0.6369065",
"0.6354078",
"0.63... | 0.71213853 | 0 |
getter for individualRec gets | public FSArray getIndividualRec() {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_individualRec == null)
jcasType.jcas.throwFeatMissing("individualRec", "net.myerichsen.gedcom.GEDCOMType");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getRecId() {\n return recId;\n }",
"public Integer getREC_ID() {\n return REC_ID;\n }",
"public OpenERPRecord get() {\r\n\t\tif (records == null)\r\n\t\t\treturn null;\r\n\t\tif (records.size() == 0)\r\n\t\t\treturn null;\r\n\t\treturn records.elementAt(0);\r\n\t}",
"public... | [
"0.6676077",
"0.6488878",
"0.6205884",
"0.6185884",
"0.60873514",
"0.60274345",
"0.6012491",
"0.60048735",
"0.60048735",
"0.58966124",
"0.5878544",
"0.58734125",
"0.5861221",
"0.58158696",
"0.5803023",
"0.57806504",
"0.5744848",
"0.5712893",
"0.5692206",
"0.5670022",
"0.56603... | 0.61628634 | 4 |
indexed getter for individualRec gets an indexed value | public IndividualRecType getIndividualRec(int i) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_individualRec == null)
jcasType.jcas.throwFeatMissing("individualRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i);
return (IndividualRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public Object getValue(int index);",
"public Object getValue(int index);",
"@VTID(10)\n int getIndex();",
"public abstract long getIndex();",
"abstract int get(int index);",
"private int getIndex() {\n\t\treturn this.index;\r\n\t}",
"public int getIndex();",
"public int getIndex();",
"pub... | [
"0.6661186",
"0.665734",
"0.663647",
"0.655234",
"0.6498366",
"0.6462844",
"0.64251",
"0.64251",
"0.64251",
"0.6411894",
"0.63963014",
"0.63963014",
"0.6387874",
"0.6377782",
"0.6353067",
"0.6345027",
"0.6341789",
"0.63198644",
"0.63073194",
"0.63073194",
"0.6296823",
"0.62... | 0.0 | -1 |
getter for lDSOrdRec gets | public FSArray getLDSOrdRec() {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)
jcasType.jcas.throwFeatMissing("lDSOrdRec", "net.myerichsen.gedcom.GEDCOMType");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LDSOrdRecType getLDSOrdRec(int i) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)\n jcasType.jcas.throwFeatMissing(\"lDSOrdRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_T... | [
"0.7162016",
"0.6310241",
"0.61570364",
"0.6072755",
"0.60421735",
"0.5942011",
"0.5865049",
"0.57299525",
"0.57206655",
"0.56593674",
"0.5657895",
"0.56479067",
"0.56448007",
"0.563703",
"0.5594025",
"0.5570464",
"0.55417615",
"0.5488691",
"0.54653573",
"0.5464288",
"0.54597... | 0.7671592 | 0 |
Feature: eventRec indexed getter for lDSOrdRec gets an indexed value | public LDSOrdRecType getLDSOrdRec(int i) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)
jcasType.jcas.throwFeatMissing("lDSOrdRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec), i);
return (LDSOrdRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec), i)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VTID(10)\n int getIndex();",
"public FSArray getLDSOrdRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)\n jcasType.jcas.throwFeatMissing(\"lDSOrdRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll... | [
"0.61134064",
"0.60112643",
"0.5683974",
"0.5673571",
"0.5645156",
"0.5628075",
"0.5609071",
"0.55920094",
"0.5554338",
"0.5543229",
"0.54229105",
"0.5412905",
"0.53991926",
"0.5397474",
"0.53762275",
"0.53661287",
"0.53661287",
"0.53661287",
"0.53464586",
"0.5340134",
"0.531... | 0.57905596 | 2 |
getter for repositoryRec gets | public FSArray getRepositoryRec() {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)
jcasType.jcas.throwFeatMissing("repositoryRec", "net.myerichsen.gedcom.GEDCOMType");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RepositoryRecType getRepositoryRec(int i) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)\n jcasType.jcas.throwFeatMissing(\"repositoryRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr... | [
"0.7128849",
"0.65912527",
"0.645456",
"0.6440163",
"0.6307179",
"0.6307179",
"0.6305621",
"0.59846514",
"0.59427",
"0.5938978",
"0.59097934",
"0.5907365",
"0.59009933",
"0.58443624",
"0.58328587",
"0.58051693",
"0.5791317",
"0.5766635",
"0.57318056",
"0.57222915",
"0.5676272... | 0.72961986 | 0 |
indexed getter for repositoryRec gets an indexed value | public RepositoryRecType getRepositoryRec(int i) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)
jcasType.jcas.throwFeatMissing("repositoryRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i);
return (RepositoryRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VTID(10)\n int getIndex();",
"public interface CompanyIndexed {\n\n String getCompanyName();\n\n long getCIK();\n\n}",
"public abstract long getIndex();",
"StorableIndexInfo getIndexInfo();",
"abstract int get(int index);",
"abstract public Object getValue(int index);",
"public Object getValue(... | [
"0.6699744",
"0.63765705",
"0.63504523",
"0.6262587",
"0.62066716",
"0.6194351",
"0.61084723",
"0.6099446",
"0.6090753",
"0.6087525",
"0.604773",
"0.6046021",
"0.6046021",
"0.6046021",
"0.604013",
"0.60364",
"0.5997423",
"0.5981136",
"0.59779805",
"0.5939149",
"0.5932154",
... | 0.60907483 | 9 |
getter for sourceRec gets | public FSArray getSourceRec() {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)
jcasType.jcas.throwFeatMissing("sourceRec", "net.myerichsen.gedcom.GEDCOMType");
return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getSource() {return source;}",
"public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }",
"public SourceRecType getSourceRec(int i) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)\n jcasType.jcas.throwFeatMissing(\... | [
"0.6997312",
"0.6871524",
"0.682278",
"0.6810714",
"0.68093634",
"0.6762419",
"0.6748618",
"0.67142344",
"0.6659936",
"0.6632461",
"0.6632461",
"0.65968335",
"0.6569231",
"0.6568603",
"0.6555643",
"0.6511462",
"0.6480966",
"0.64731205",
"0.6461585",
"0.64611614",
"0.6453715",... | 0.7386607 | 0 |
Feature: lDSOrdRec indexed getter for sourceRec gets an indexed value | public SourceRecType getSourceRec(int i) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)
jcasType.jcas.throwFeatMissing("sourceRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec), i);
return (SourceRecType)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec), i)));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VTID(10)\n int getIndex();",
"@DISPID(-2147417088)\n @PropGet\n int sourceIndex();",
"public abstract int getSourceIndex(int index);",
"@VTID(8)\r\n @DefaultMethod\r\n office.DocumentProperty getItem(\r\n @MarshalAs(NativeType.VARIANT) java.lang.Object index,\r\n @LCID int lcid);",
"public abst... | [
"0.610772",
"0.6055",
"0.5818924",
"0.566941",
"0.56395316",
"0.55989915",
"0.55908585",
"0.5573585",
"0.55010706",
"0.54633236",
"0.5380102",
"0.5368563",
"0.5364194",
"0.53561616",
"0.5331001",
"0.532223",
"0.52962434",
"0.52771926",
"0.52611",
"0.52504957",
"0.52435994",
... | 0.5949867 | 2 |
Write your own initialization here | private void readObject() {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void init() {\n \n }",
"private void init() {\n\n\t}",
"private void init() {\n }",
"protected void initialize() {}",
"protected void initialize() {}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"protected void init() {\n // to override and use this method\n }",
"privat... | [
"0.8046896",
"0.8013116",
"0.79832983",
"0.79692423",
"0.79692423",
"0.7965268",
"0.7936825",
"0.7915556",
"0.7915556",
"0.7915556",
"0.7915556",
"0.7907737",
"0.78831923",
"0.7881762",
"0.78815913",
"0.78537464",
"0.78494436",
"0.78494436",
"0.78494436",
"0.7838897",
"0.7836... | 0.0 | -1 |
setter for contactRec sets | public void setContactRec(FSArray v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)
jcasType.jcas.throwFeatMissing("contactRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@NoProxy\n public void setContact(final BwContact val) {\n Set<BwContact> c = getContacts();\n if ((c != null) && (!c.isEmpty())) {\n c.clear();\n }\n\n if (val != null) {\n addContact(val);\n }\n }",
"protected void setContacts(ArrayList<Contact> contacts){\n this.contacts = co... | [
"0.68528366",
"0.67955214",
"0.66399705",
"0.66039324",
"0.65056205",
"0.6454203",
"0.62513554",
"0.61455125",
"0.6018255",
"0.6018255",
"0.5940031",
"0.5923024",
"0.58422357",
"0.5820748",
"0.5759957",
"0.5732963",
"0.57231504",
"0.56931424",
"0.56480926",
"0.5601903",
"0.56... | 0.7318608 | 0 |
Feature: contactRec indexed setter for contactRec sets an indexed value | public void setContactRec(int i, ContactRecType v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_contactRec == null)
jcasType.jcas.throwFeatMissing("contactRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_contactRec), i, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void SetRecord(int index, Record rec){\n\t}",
"void setIndexed(boolean indexed);",
"public void setABContact(entity.ABContact value);",
"@Override\n\tpublic void setValue(String setContactValue) {\n\n\t}",
"public void set(long index);",
"public Builder setContact(\n int index, org.multib... | [
"0.6680044",
"0.6654548",
"0.6177304",
"0.6119076",
"0.6045356",
"0.6024012",
"0.59170705",
"0.59170705",
"0.58904296",
"0.58676183",
"0.5838935",
"0.578222",
"0.5775439",
"0.5770135",
"0.5755457",
"0.5753623",
"0.5739284",
"0.5718584",
"0.5662755",
"0.5661926",
"0.56577325",... | 0.6437619 | 2 |
setter for eventRec sets | public void setEventRec(FSArray v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)
jcasType.jcas.throwFeatMissing("eventRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setEventRec(int i, EventRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)\n jcasType.jcas.throwFeatMissing(\"eventRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMT... | [
"0.63942003",
"0.6313779",
"0.60043836",
"0.58545196",
"0.5754402",
"0.57400566",
"0.55623156",
"0.55179083",
"0.5459717",
"0.5444678",
"0.5361982",
"0.53486764",
"0.5335217",
"0.5317738",
"0.5286798",
"0.5286739",
"0.5267717",
"0.5244859",
"0.5243523",
"0.52365786",
"0.52137... | 0.69242454 | 0 |
indexed setter for eventRec sets an indexed value | public void setEventRec(int i, EventRecType v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_eventRec == null)
jcasType.jcas.throwFeatMissing("eventRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_eventRec), i, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract E set(int index, E e);",
"public void SetRecord(int index, Record rec){\n\t}",
"@Override\n public final void set(int index, E newValue) {\n array[index] = newValue;\n }",
"void setIndexed(boolean indexed);",
"public void setEventIndex(int index) {\n eventIndex = index;\... | [
"0.6679578",
"0.6643948",
"0.6532302",
"0.64062506",
"0.63903004",
"0.6361289",
"0.63394564",
"0.63277113",
"0.6280693",
"0.6252907",
"0.6191104",
"0.6191104",
"0.61832404",
"0.6170948",
"0.6146438",
"0.6121409",
"0.6081014",
"0.6071448",
"0.6066108",
"0.6013144",
"0.5992419"... | 0.6574894 | 2 |
setter for familyRec sets | public void setFamilyRec(FSArray v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)
jcasType.jcas.throwFeatMissing("familyRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFamily(Vertex family) {\n\t\tthis.family = family;\n\t}",
"protected abstract Set method_1559();",
"public void setFamily2(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {\n\t throw new java.lang.UnsupportedOperationException(\"Set is not supported on tombstones\");\n\t ... | [
"0.5998366",
"0.574861",
"0.5675352",
"0.5669088",
"0.5631978",
"0.5610054",
"0.55110985",
"0.54804707",
"0.54739356",
"0.54187596",
"0.5265184",
"0.5261326",
"0.5186961",
"0.5179253",
"0.5177421",
"0.5169563",
"0.5160973",
"0.51607966",
"0.5099998",
"0.5072262",
"0.505623",
... | 0.61987257 | 0 |
Feature: sourceRec indexed setter for familyRec sets an indexed value | public void setFamilyRec(int i, FamilyRecType v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null)
jcasType.jcas.throwFeatMissing("familyRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec), i, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setIndexed(boolean indexed);",
"public void SetRecord(int index, Record rec){\n\t}",
"public void setTargetValue(int idx, Object value);",
"public abstract E set(int index, E e);",
"void set(int idx, int val);",
"@Override\n public E set(int index, E value) {\n // todo: Students must code\... | [
"0.62829375",
"0.6279383",
"0.62697715",
"0.61555886",
"0.6088088",
"0.59902614",
"0.59132624",
"0.58514947",
"0.58478093",
"0.5818023",
"0.5814284",
"0.57900184",
"0.5771642",
"0.5762299",
"0.5747706",
"0.5733512",
"0.5692393",
"0.56883794",
"0.56883794",
"0.567662",
"0.5655... | 0.5451116 | 36 |
setter for groupRec sets | public void setGroupRec(FSArray v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)
jcasType.jcas.throwFeatMissing("groupRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setGroupSet(final boolean val) {\n groupSet = val;\n }",
"public void setGroup(entity.Group value);",
"public void setGroupRec(int i, GroupRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)\n jcasType.jcas.throwFeatMissing... | [
"0.6935825",
"0.64161366",
"0.6323428",
"0.6251037",
"0.5956906",
"0.5914883",
"0.5810028",
"0.57718194",
"0.57387275",
"0.5594111",
"0.5573192",
"0.55608594",
"0.5500175",
"0.5470491",
"0.5461764",
"0.54516476",
"0.5443237",
"0.537548",
"0.537086",
"0.5364666",
"0.5353811",
... | 0.6633792 | 1 |
indexed setter for groupRec sets an indexed value | public void setGroupRec(int i, GroupRecType v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)
jcasType.jcas.throwFeatMissing("groupRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_groupRec), i, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setGroupIndex(int value) {\n bitField0_ |= 0x00000001;\n groupIndex_ = value;\n }",
"public Builder setGroupIndex(int value) {\n copyOnWrite();\n instance.setGroupIndex(value);\n return this;\n }",
"public void SetRecord(int index, Record re... | [
"0.6878057",
"0.6527909",
"0.649488",
"0.6299633",
"0.6252381",
"0.6115271",
"0.6085507",
"0.6003749",
"0.5874276",
"0.5851839",
"0.5833939",
"0.57945746",
"0.5779892",
"0.5779892",
"0.5776614",
"0.57564276",
"0.56940717",
"0.56830233",
"0.5674549",
"0.5666672",
"0.5651554",
... | 0.65298635 | 1 |
setter for headerRec sets | public void setHeaderRec(HeaderRecType v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_headerRec == null)
jcasType.jcas.throwFeatMissing("headerRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_headerRec, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setHeader(String arg0, String arg1) {\n\n }",
"void setHeader(java.lang.String header);",
"public void setHeader(JMSControl.HeaderType type,Object value);",
"public void setHeader(String _header) {\n\t\tthis.header = _header;\n\t}",
"void setHeader(String headerName, String header... | [
"0.6849452",
"0.6797677",
"0.6688706",
"0.6612498",
"0.65872395",
"0.6566276",
"0.65144604",
"0.65094566",
"0.6499121",
"0.64244175",
"0.6358065",
"0.63396096",
"0.62747175",
"0.622941",
"0.6224547",
"0.6118151",
"0.6110426",
"0.6083347",
"0.60642457",
"0.6033934",
"0.6005909... | 0.729197 | 0 |
Feature: repositoryRec setter for individualRec sets | public void setIndividualRec(FSArray v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_individualRec == null)
jcasType.jcas.throwFeatMissing("individualRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRepositoryRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)\n jcasType.jcas.throwFeatMissing(\"repositoryRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCod... | [
"0.6781627",
"0.65617526",
"0.5800663",
"0.5611917",
"0.5603826",
"0.5568242",
"0.53569144",
"0.5339468",
"0.5332345",
"0.5261632",
"0.5245837",
"0.5210077",
"0.5114542",
"0.5114542",
"0.5113094",
"0.50935113",
"0.50882024",
"0.5057238",
"0.5057216",
"0.5054912",
"0.503435",
... | 0.49632335 | 28 |
indexed setter for individualRec sets an indexed value | public void setIndividualRec(int i, IndividualRecType v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_individualRec == null)
jcasType.jcas.throwFeatMissing("individualRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_individualRec), i, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void SetRecord(int index, Record rec){\n\t}",
"void setIndexed(boolean indexed);",
"public void set(long index);",
"void set(int idx, int val);",
"void setIdx(int i);",
"public abstract <T> void set(int index, T value);",
"public abstract E set(int index, E e);",
"void set(int index, Object el... | [
"0.7354897",
"0.71833515",
"0.68072",
"0.6643363",
"0.6575186",
"0.65282255",
"0.64309007",
"0.64062494",
"0.6398726",
"0.6398726",
"0.63122994",
"0.6275622",
"0.62666047",
"0.6263953",
"0.6246786",
"0.6241945",
"0.6155275",
"0.61448634",
"0.61325073",
"0.6127356",
"0.6125432... | 0.6214531 | 16 |
setter for lDSOrdRec sets | public void setLDSOrdRec(FSArray v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)
jcasType.jcas.throwFeatMissing("lDSOrdRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLDSOrdRec(int i, LDSOrdRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)\n jcasType.jcas.throwFeatMissing(\"lDSOrdRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GED... | [
"0.67938906",
"0.5776134",
"0.56655806",
"0.5583076",
"0.552103",
"0.5400753",
"0.53151244",
"0.5275489",
"0.5259527",
"0.5245968",
"0.5241826",
"0.52282",
"0.52012223",
"0.5181677",
"0.51677847",
"0.5166574",
"0.50515187",
"0.50502074",
"0.50193393",
"0.501355",
"0.49938092"... | 0.7242475 | 0 |
indexed setter for lDSOrdRec sets an indexed value | public void setLDSOrdRec(int i, LDSOrdRecType v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)
jcasType.jcas.throwFeatMissing("lDSOrdRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec), i, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLDSOrdRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_lDSOrdRec == null)\n jcasType.jcas.throwFeatMissing(\"lDSOrdRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_lDSOrdRec,... | [
"0.63510793",
"0.6239522",
"0.6236034",
"0.6087334",
"0.59962606",
"0.58402133",
"0.5761461",
"0.57503545",
"0.5668634",
"0.5667065",
"0.5582312",
"0.55425805",
"0.54804647",
"0.54755914",
"0.54555297",
"0.54515094",
"0.5418374",
"0.5363484",
"0.53322303",
"0.5320528",
"0.525... | 0.70375925 | 0 |
Feature: groupRec setter for repositoryRec sets | public void setRepositoryRec(FSArray v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)
jcasType.jcas.throwFeatMissing("repositoryRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setGroup(entity.Group value);",
"public void setGroupRec(FSArray v) {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_groupRec == null)\n jcasType.jcas.throwFeatMissing(\"groupRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.ll_cas.ll_setRefValue(addr, ((GEDC... | [
"0.6649011",
"0.63148636",
"0.61598235",
"0.5936661",
"0.5782274",
"0.5680748",
"0.5619139",
"0.56182474",
"0.5582123",
"0.54971296",
"0.5457304",
"0.545332",
"0.5451681",
"0.54247916",
"0.5406222",
"0.53778917",
"0.536501",
"0.5333559",
"0.532481",
"0.529516",
"0.52859855",
... | 0.60412115 | 3 |
indexed setter for repositoryRec sets an indexed value | public void setRepositoryRec(int i, RepositoryRecType v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)
jcasType.jcas.throwFeatMissing("repositoryRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec), i, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setIndexed(boolean indexed);",
"public void set(long index);",
"public void SetRecord(int index, Record rec){\n\t}",
"void set(int idx, int val);",
"protected void setIndex(Expression expr)\n {\n index = expr;\n }",
"public void setIndexedVariable() {\n indexed = true;\n ... | [
"0.6969387",
"0.6524013",
"0.6361185",
"0.6358981",
"0.62867945",
"0.62119937",
"0.62104714",
"0.6147054",
"0.6112831",
"0.60677046",
"0.60133976",
"0.59606165",
"0.5948728",
"0.5943598",
"0.5892202",
"0.5881165",
"0.5879705",
"0.5879214",
"0.5863598",
"0.58614516",
"0.583552... | 0.63837886 | 2 |
setter for sourceRec sets | public void setSourceRec(FSArray v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)
jcasType.jcas.throwFeatMissing("sourceRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSourceRec(int i, SourceRecType v) { \n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)\n jcasType.jcas.throwFeatMissing(\"sourceRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GED... | [
"0.649638",
"0.648252",
"0.6150485",
"0.60570955",
"0.6045026",
"0.591306",
"0.58878195",
"0.5867671",
"0.58393335",
"0.5833714",
"0.58249134",
"0.5810026",
"0.5725041",
"0.5671558",
"0.56370395",
"0.5608333",
"0.5572542",
"0.5531246",
"0.54922146",
"0.54786724",
"0.5456411",... | 0.69663066 | 0 |
indexed setter for sourceRec sets an indexed value | public void setSourceRec(int i, SourceRecType v) {
if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_sourceRec == null)
jcasType.jcas.throwFeatMissing("sourceRec", "net.myerichsen.gedcom.GEDCOMType");
jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec), i);
jcasType.ll_cas.ll_setRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_sourceRec), i, jcasType.ll_cas.ll_getFSRef(v));} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void SetRecord(int index, Record rec){\n\t}",
"void setIndexed(boolean indexed);",
"public void setTargetValue(int idx, Object value);",
"void setRenderedSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;",
"void set(int idx, int val);",
"public void setSourceDataArray(int i, org... | [
"0.65912807",
"0.64905083",
"0.6299115",
"0.6287317",
"0.6164025",
"0.611346",
"0.6108824",
"0.6078493",
"0.60666406",
"0.6015644",
"0.5971151",
"0.59098744",
"0.5836164",
"0.5832247",
"0.58244",
"0.5807885",
"0.5806228",
"0.57750857",
"0.5764775",
"0.5748606",
"0.57440525",
... | 0.65972215 | 0 |
Mapper for the entity FdnAanvrager and its DTO FdnAanvragerDTO. | @Mapper(componentModel = "spring", uses = {AanvraagberichtMapper.class})
public interface FdnAanvragerMapper extends EntityMapper<FdnAanvragerDTO, FdnAanvrager> {
@Mapping(source = "aanvraagbericht.id", target = "aanvraagberichtId")
FdnAanvragerDTO toDto(FdnAanvrager fdnAanvrager);
@Mapping(target = "adres", ignore = true)
@Mapping(target = "legitimatiebewijs", ignore = true)
@Mapping(target = "werksituaties", ignore = true)
@Mapping(target = "gezinssituaties", ignore = true)
@Mapping(target = "financieleSituaties", ignore = true)
@Mapping(source = "aanvraagberichtId", target = "aanvraagbericht")
FdnAanvrager toEntity(FdnAanvragerDTO fdnAanvragerDTO);
default FdnAanvrager fromId(Long id) {
if (id == null) {
return null;
}
FdnAanvrager fdnAanvrager = new FdnAanvrager();
fdnAanvrager.setId(id);
return fdnAanvrager;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Mapper(componentModel = \"spring\", uses = {SabegheMapper.class, NoeSabegheMapper.class})\npublic interface AdamKhesaratMapper extends EntityMapper<AdamKhesaratDTO, AdamKhesarat> {\n\n @Mapping(source = \"sabeghe.id\", target = \"sabegheId\")\n @Mapping(source = \"sabeghe.name\", target = \"sabegheName\")\n... | [
"0.6281255",
"0.5926117",
"0.5774229",
"0.572485",
"0.57194364",
"0.5719247",
"0.5686592",
"0.56401265",
"0.5624543",
"0.55178714",
"0.54657274",
"0.5458629",
"0.54429626",
"0.5440113",
"0.54077935",
"0.5405791",
"0.5401397",
"0.53822255",
"0.53705174",
"0.53692144",
"0.53573... | 0.7059163 | 0 |
This is a callback method to inquire of an application which has MonitorAppPermission("registrar") whether the AppDatabase shall update current application information using a new version of the XAIT or not. | public boolean notifyXAITUpdate(OcapAppAttributes[] newApps); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean registerApplication(Application application);",
"protected void onAppsChanged() {\n\t\t\n\t}",
"@Override\n public boolean hasHashedVersionAfterApplication() {\n return hashedVersionAfterApplication != null;\n }",
"boolean isRegistrateChangeListener();",
"private void addApplicationsPer... | [
"0.6122177",
"0.5958072",
"0.57164264",
"0.5549565",
"0.5545222",
"0.5527953",
"0.5358599",
"0.5342438",
"0.5307623",
"0.5292767",
"0.5269109",
"0.51644045",
"0.5162868",
"0.515199",
"0.5143298",
"0.5135883",
"0.5126724",
"0.5113633",
"0.51072305",
"0.5081621",
"0.5061263",
... | 0.60648155 | 1 |
Falta Corrigir erro do Alterar | public void alterar(Edicao edicao) {
conn = Conexao.getConexao();//conecta ao banco de dados
sql = "update edicao set edicaonumero = ?";
try {
ps = conn.prepareStatement(sql);
ps.setInt(1, edicao.getEdicaonumero());
ps.execute(); //executa a acao
JOptionPane.showMessageDialog(null, "Alterado com Sucesso !");
} catch (SQLException e) {
JOptionPane.showMessageDialog(null, "erro no alterar"+e.getMessage());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}",
"@Override\n protected void adicionarLetrasErradas() {\n }",
"public void errorWhenCommitting();",
"protected void failed()\r\n {\r\n //overwrite\r\n }",
"public void rese... | [
"0.6761146",
"0.67306197",
"0.66122335",
"0.65508384",
"0.65500677",
"0.6501937",
"0.6323877",
"0.62784785",
"0.62546855",
"0.6186299",
"0.6170288",
"0.6147708",
"0.61211026",
"0.61017406",
"0.6053821",
"0.6014987",
"0.5971979",
"0.5959151",
"0.5952909",
"0.594895",
"0.593166... | 0.55982995 | 72 |
Verifies, the distributable webapp with FORM authentication supports session replication out of the box. When: HTTP client calls WhoAmIServlet as "admin" (using FORM authn) on first cluster node and then it calls WhoAmIServlet (without authentication needed) on the second cluster node Then: the call to WhoAmIServlet on second node (without authentication) passes and returns "admin" (i.e. SSO works with FORM authentication) | @Test
public void testServletSso() throws Exception {
final URL whoamiUrl = new URL(((((AbstractSecurityContextPropagationTestBase.server1.getApplicationHttpUrl()) + "/") + (SeccontextUtil.WAR_ENTRY_SERVLET_FORM)) + (WhoAmIServlet.SERVLET_PATH)));
final URL whoamiBackupUrl = new URL(((((AbstractHAAuthorizationForwardingTestCase.server1backup.getApplicationHttpUrl()) + "/") + (SeccontextUtil.WAR_ENTRY_SERVLET_FORM)) + (WhoAmIServlet.SERVLET_PATH)));
try (CloseableHttpClient httpClient = HttpClientBuilder.create().setRedirectStrategy(Utils.REDIRECT_STRATEGY).build()) {
Assert.assertEquals("Unexpected result from WhoAmIServlet", "admin", doHttpRequestFormAuthn(httpClient, whoamiUrl, true, "admin", "admin", SC_OK));
Assert.assertEquals("Unexpected result from WhoAmIServlet (backup-server)", "admin", doHttpRequest(httpClient, whoamiBackupUrl, SC_OK));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testServletSsoPropagation() throws Exception {\n final URL entryServletUrl = getEntryServletUrl(SeccontextUtil.WAR_ENTRY_SERVLET_FORM, \"server\", \"server\", ReAuthnType.FORWARDED_AUTHORIZATION);\n final URL whoamiUrl = new URL(((((AbstractHAAuthorizationForwardingTestCase.ser... | [
"0.63892096",
"0.5523067",
"0.52407396",
"0.5140487",
"0.513676",
"0.5109911",
"0.5107098",
"0.50886226",
"0.50677633",
"0.50645155",
"0.50629157",
"0.5047623",
"0.50462466",
"0.5030793",
"0.50223523",
"0.5016257",
"0.5014905",
"0.49964347",
"0.4991132",
"0.49688086",
"0.4958... | 0.6705694 | 0 |
Verifies, the authorization forwarding works within cluster (FORM authn). This simulates failover on distributed web application (e.g. when load balancer is used). When: HTTP client calls WhoAmIServlet as "admin" (using FORM authn) on second cluster node and then it calls EntryServlet (without authentication needed) on the first cluster node; the EntryServlet uses Elytron API to forward authz name to call remote WhoAmIBean Then: the calls pass and WhoAmIBean returns "admin" username | @Test
public void testServletSsoPropagation() throws Exception {
final URL entryServletUrl = getEntryServletUrl(SeccontextUtil.WAR_ENTRY_SERVLET_FORM, "server", "server", ReAuthnType.FORWARDED_AUTHORIZATION);
final URL whoamiUrl = new URL(((((AbstractHAAuthorizationForwardingTestCase.server1backup.getApplicationHttpUrl()) + "/") + (SeccontextUtil.WAR_ENTRY_SERVLET_FORM)) + (WhoAmIServlet.SERVLET_PATH)));
try (CloseableHttpClient httpClient = HttpClientBuilder.create().setRedirectStrategy(Utils.REDIRECT_STRATEGY).build()) {
Assert.assertEquals("Unexpected result from WhoAmIServlet (backup-server)", "admin", doHttpRequestFormAuthn(httpClient, whoamiUrl, true, "admin", "admin", SC_OK));
Assert.assertEquals("Unexpected result from EntryServlet", "admin", doHttpRequest(httpClient, entryServletUrl, SC_OK));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testServletSso() throws Exception {\n final URL whoamiUrl = new URL(((((AbstractSecurityContextPropagationTestBase.server1.getApplicationHttpUrl()) + \"/\") + (SeccontextUtil.WAR_ENTRY_SERVLET_FORM)) + (WhoAmIServlet.SERVLET_PATH)));\n final URL whoamiBackupUrl = new URL(((((Ab... | [
"0.5989833",
"0.54423094",
"0.5306117",
"0.51585865",
"0.50628424",
"0.5030552",
"0.49938327",
"0.49629533",
"0.4962585",
"0.4947487",
"0.49134013",
"0.49116394",
"0.4899277",
"0.48882508",
"0.48858747",
"0.4861957",
"0.4854777",
"0.4848985",
"0.4848406",
"0.4843432",
"0.4840... | 0.6064718 | 0 |
Every time RestAdapter is called, access token is added to header of the request | @Override
public void intercept(RequestFacade request) {
// Add the access_token that we previously obtained to this request as
// the "Authorization" header.
request.addHeader("Authorization", "Bearer " + accessToken);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private HttpEntity<?> setTokenToHeaders() {\n HttpHeaders headers = new HttpHeaders();\n headers.set(\"Authorization\", this.token.getToken_type() + \" \" + this.token.getAccess_token());\n headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\n return new HttpEntity... | [
"0.6935657",
"0.67304766",
"0.65074307",
"0.64578074",
"0.6402581",
"0.633837",
"0.62086046",
"0.61781627",
"0.61781627",
"0.6152298",
"0.6152298",
"0.61476266",
"0.6125927",
"0.6076515",
"0.6075403",
"0.607512",
"0.6062956",
"0.6041384",
"0.60237247",
"0.6018448",
"0.5929696... | 0.74316144 | 0 |
Constuct an account object with noargs (setter methods will be used to set field values | public Account() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Account() { }",
"public Account() {\r\n\t\tthis(\"unknown@billsplit.com\", \"Account\");\r\n\t}",
"public Account() {\n this(null, 0);\n }",
"public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }",
"public Account() {\n ... | [
"0.8005756",
"0.75494987",
"0.75037813",
"0.74854195",
"0.74749345",
"0.74703646",
"0.7460858",
"0.73962605",
"0.7387503",
"0.7351218",
"0.7351218",
"0.73464483",
"0.7333238",
"0.7314175",
"0.72804344",
"0.7262284",
"0.7187691",
"0.7178536",
"0.7161014",
"0.7130897",
"0.71167... | 0.7429463 | 7 |
Construct an account object with specified values | public Account(String newAcctNo, String newCID, String newType, double newBalance) {
acctNo = newAcctNo + "";
cid = newCID;
type = newType;
balance = newBalance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Account() { }",
"Account(int account_number,double balance) //pramiterized constrector\n {\n this.account_number=account_number;\n this.balance=balance;\n }",
"public BankAccount() {\n this(12346, 5.00, \"Default Name\", \"Default Address\", \"default phone\");\n }",
"public acc... | [
"0.7362062",
"0.7292868",
"0.7252182",
"0.7206642",
"0.7191373",
"0.71329755",
"0.70680475",
"0.7055415",
"0.70405453",
"0.70286804",
"0.70148903",
"0.7011033",
"0.7010318",
"0.69891936",
"0.6868989",
"0.686807",
"0.6797147",
"0.67799765",
"0.67427295",
"0.6717322",
"0.670638... | 0.0 | -1 |
Set account number for this account | public void setAcctNo(String acctNo){
this.acctNo = acctNo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void setAccountNumber(int number) {\n this.accountNumber = number;\n }",
"void setAccountNumber(java.lang.String accountNumber);",
"public void setAccountNo(int number){\n\t\taccountNo = number;\n\t}",
"public boolean setAccountNumber(int account) {\n\t\tif (account > 0)\n\t\t\t... | [
"0.8493176",
"0.82830447",
"0.7941265",
"0.7718548",
"0.7692529",
"0.7585162",
"0.7419577",
"0.7213794",
"0.7210272",
"0.72097796",
"0.7038066",
"0.7001816",
"0.69892466",
"0.69095635",
"0.68682176",
"0.68553776",
"0.675665",
"0.6755909",
"0.67437774",
"0.6728769",
"0.6728769... | 0.6022774 | 72 |
Return the account number of this account | public String getAcctNo(){
return acctNo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getAccountNumber();",
"public String getAccountNumber() {\n\t\tthis.setAccountNumber(this.account);\n\t\treturn this.account;\n\t}",
"public int getAccountNumber() {\n\t\treturn accNum;\n\t}",
"public static String getAccountNumber() {\n\t\treturn accountNumber;\n\t}",
"public int getAccou... | [
"0.853438",
"0.8296552",
"0.82521665",
"0.8127251",
"0.8105338",
"0.8080544",
"0.8080544",
"0.8062715",
"0.79993856",
"0.78627884",
"0.78627884",
"0.78627884",
"0.7845955",
"0.78321344",
"0.7797679",
"0.7797679",
"0.779261",
"0.7773454",
"0.77454704",
"0.7690505",
"0.7678437"... | 0.7047453 | 34 |
Set customer id for this account | public void setCID(String cid){
this.cid = cid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCustomerId(Number value) {\n setAttributeInternal(CUSTOMERID, value);\n }",
"public void setCustomerId(long value) {\n this.customerId = value;\n }",
"public void setCustomerId(final Integer customerId)\n {\n this.customerId = customerId;\n }",
"public void setCust... | [
"0.79034567",
"0.7835043",
"0.7641192",
"0.7592252",
"0.7539698",
"0.748205",
"0.7428044",
"0.73992145",
"0.73992145",
"0.73151547",
"0.72321737",
"0.71961606",
"0.7188706",
"0.7185046",
"0.7146715",
"0.70833373",
"0.7046553",
"0.704155",
"0.7041326",
"0.7027429",
"0.69925547... | 0.0 | -1 |
Return the customer id of this account | public String getCID(){
return cid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final String getCustomerId() {\n\t\treturn customerId;\n\t}",
"java.lang.String getCustomerId();",
"java.lang.String getCustomerId();",
"public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}",
"public long getCustomerId() {\n\t\treturn customerId;\n\t}",
"public String getCustomerId()\n\t{... | [
"0.83092034",
"0.82601035",
"0.82601035",
"0.81492174",
"0.81068873",
"0.8074268",
"0.8030202",
"0.80195475",
"0.797001",
"0.797001",
"0.7969667",
"0.7969667",
"0.79448736",
"0.78810674",
"0.78768104",
"0.77957535",
"0.77717555",
"0.7767272",
"0.77505356",
"0.77418435",
"0.77... | 0.0 | -1 |
Set type for this account | public void setType(String type){
this.type = type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}",
"public void setType(String type) {\n m_Type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n this.type = type;\n }",
"public void setType(Type type) {\n ... | [
"0.74190396",
"0.7416265",
"0.74077266",
"0.74077266",
"0.74077266",
"0.74020255",
"0.7381855",
"0.7381785",
"0.73598754",
"0.7356162",
"0.7356162",
"0.7356162",
"0.7356162",
"0.7356081",
"0.7356081",
"0.7355057",
"0.73530936",
"0.7347193",
"0.73468006",
"0.73468006",
"0.7346... | 0.71774095 | 77 |
Return the type of this account | public String getType(){
return type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAccountType() {\n return accountType;\n }",
"public String getAccountType() {\n return accountType;\n }",
"public AccountType getAccountType() {\n return accountType;\n }",
"public AccountType getAccountType() {\n return accountType;\n }",
"@Column(n... | [
"0.8378007",
"0.8378007",
"0.8147926",
"0.8147926",
"0.7873514",
"0.78469515",
"0.7819915",
"0.7661105",
"0.7510094",
"0.7410118",
"0.7375959",
"0.7243268",
"0.7190419",
"0.70502377",
"0.70429033",
"0.68976045",
"0.6873879",
"0.6838427",
"0.68151027",
"0.6813252",
"0.6813252"... | 0.0 | -1 |
Set the balance for this account | public void setBalance(double balance){
this.balance = balance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void setBalance(double balance) {\n this.balance = balance;\n }",
"public void setBalance(double bal){\n balance = bal;\r\n }",
"private void setBalance(double balance) {\n this.balance = balance;\n }",
"public void setBalance( Integer account_id, double balance ){... | [
"0.7874032",
"0.77663",
"0.7691289",
"0.7667401",
"0.7661307",
"0.76573473",
"0.7649006",
"0.7597309",
"0.7597309",
"0.75686896",
"0.7545439",
"0.7531321",
"0.7531321",
"0.7527017",
"0.7456958",
"0.74481696",
"0.7418039",
"0.7311854",
"0.73034734",
"0.71082187",
"0.7094833",
... | 0.75664896 | 10 |
Return the balance of this account | public double getBalance(){
return balance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getBalance() {\n return total_bal;\n }",
"public String balance() {\n\t\treturn this.apiCall(\"balance\", \"\", \"\", true);\n\t}",
"public java.math.BigDecimal getBalance() {\n return balance;\n }",
"public Integer getBalance() {\n return balance;\n }",
"public Int... | [
"0.8186586",
"0.8176756",
"0.8104551",
"0.80433553",
"0.80433553",
"0.8039612",
"0.8039612",
"0.80119646",
"0.79757226",
"0.7929124",
"0.7929124",
"0.78989035",
"0.78933656",
"0.7890252",
"0.787447",
"0.785991",
"0.78539157",
"0.78521335",
"0.78521335",
"0.78521335",
"0.78521... | 0.7744822 | 35 |
end of Display method Select account from database | public void selectDB(String newAcctNo) {
acctNo = newAcctNo;
try {
Class.forName("net.ucanaccess.jdbc.UcanaccessDriver");
// Load Driver
String connURL="jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb";
// Get Connection
Connection con = DriverManager.getConnection(connURL);
// Create Statement
Statement stmt = con.createStatement();
// Create sql string
String sql = "Select * from Accounts where AcctNo='"+getAcctNo()+"'";
// Check for properly formed sql
System.out.println(sql);
// Execute Statement
ResultSet rs = stmt.executeQuery(sql);
// Set the Account properties
rs.next();
setCID(rs.getString(2));
setType(rs.getString(3));
setBalance(rs.getDouble(4));
con.close();
} //end try
catch (Exception err) {
System.out.println("Error: " + err);
} //end catch
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void showAccount() {\n\t\t\r\n\t}",
"public String displayAccount() {\r\n\t return id+\",\"+name+\",\"+balance+\",\"+email+\",\"+dateOfOpening;\r\n }",
"private void showContentAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\tS... | [
"0.703479",
"0.6827097",
"0.66794544",
"0.66352636",
"0.6558955",
"0.65449077",
"0.6446918",
"0.64326024",
"0.63181347",
"0.62783",
"0.6242372",
"0.62218165",
"0.62153596",
"0.61769",
"0.61755764",
"0.61731654",
"0.6164655",
"0.6163302",
"0.6079473",
"0.60685194",
"0.60411733... | 0.6344106 | 8 |
end selectDB() Deposit to this account | public void deposit(double amount) {
balance += amount;
try {
Class.forName("net.ucanaccess.jdbc.UcanaccessDriver");
// Load Driver
String connURL="jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb";
// Get Connection
Connection con = DriverManager.getConnection(connURL);
// Create Statement
Statement stmt = con.createStatement();
// Create sql string
String sql = "Update Accounts set Balance = "+getBalance()+
" where AcctNo='"+getAcctNo()+"'";
// Check for properly formed sql
System.out.println(sql);
// Execute Statement
int n = stmt.executeUpdate(sql);
if (n == 1)
System.out.println("Update was successful!");
else
System.out.println("Update failed!");
// Close Connection
con.close();
} //end try
catch (Exception err) {
System.out.println("Error: " + err);
} //end catch
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void selectDB(String newAcctNo) {\n acctNo = newAcctNo;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen... | [
"0.62852556",
"0.58171946",
"0.57240105",
"0.5723263",
"0.5685893",
"0.5683938",
"0.55999434",
"0.5553555",
"0.55334836",
"0.5517742",
"0.5507153",
"0.5459169",
"0.5458524",
"0.5455475",
"0.54390466",
"0.54300857",
"0.54078794",
"0.5407592",
"0.5404369",
"0.5388637",
"0.53743... | 0.57148385 | 4 |
end deposit Withdraw from this account | public void withdraw(double amount) throws InsufficientFundsException {
if (amount <= balance) {
balance -= amount;
try {
Class.forName("net.ucanaccess.jdbc.UcanaccessDriver");
// Load Driver
String connURL="jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb";
// Get Connection
Connection con = DriverManager.getConnection(connURL);
// Create Statement
Statement stmt = con.createStatement();
// Create sql string
String sql = "Update Accounts set Balance = "+getBalance()+
" where AcctNo= '"+getAcctNo()+"'";
// Check for properly formed sql
System.out.println(sql);
// Execute Statement
int n = stmt.executeUpdate(sql);
if (n == 1)
System.out.println("Update was successful!");
else
System.out.println("Update failed!");
// Close Connection
con.close();
} //end try
catch (Exception err) {
System.out.println("Error: " + err);
} //end catch
} //end if
else {
throw new InsufficientFundsException(amount);
} //end else
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void deposit() {\n\t\t\n\t}",
"@Override\r\n\tpublic void deposit(int amount) {\n\t\t\r\n\t}",
"public void deposit();",
"public static void deposit(){\n TOTALCMONEY = TOTALCMONEY + BALANCEDEPOSIT; //the cashier money equals the cashier money plus the amount that is being deposited... | [
"0.75072724",
"0.7431837",
"0.73939365",
"0.72944117",
"0.7179737",
"0.71725374",
"0.7056611",
"0.702328",
"0.7018444",
"0.7016631",
"0.7003016",
"0.69527465",
"0.6936079",
"0.69343597",
"0.6873681",
"0.68696296",
"0.6862844",
"0.6859874",
"0.68407214",
"0.68383485",
"0.68242... | 0.63032323 | 83 |
end withdraw Main method (Using to test Account class) | public static void main(String[] args) {
// Code to test Account class
// testing selecting an account from the database - Lab #3 Part II
/*Account a1 = new Account();
a1.selectDB("90002");
double abalance = a1.getBalance();
System.out.println("Balance: " + abalance); */
// testing deposit and withraw methods Lab #4 Part I
Account a1 = new Account();
a1.selectDB("90002");
a1.display();
//a1.deposit(300.00);
/*try {
a1.withdraw(3000.00);
}
catch (InsufficientFundsException ex) {
System.out.println(ex);
} */
//a1.display();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void closeAccount() {}",
"public void closeAccount() {}",
"public abstract void closeAccount();",
"@Test\n public void testWithdraw() {\n System.out.println(\"withdraw\");\n double d = 1.0;\n Account instance = new Account(\"Piper\", 10.0);\n double expResult = 9.0;\n ... | [
"0.68178904",
"0.68178904",
"0.6552104",
"0.64492273",
"0.63657296",
"0.6364995",
"0.6310912",
"0.630965",
"0.6277639",
"0.61957663",
"0.61945665",
"0.6163316",
"0.61593515",
"0.61576784",
"0.61486566",
"0.61098826",
"0.61044335",
"0.60588616",
"0.6040432",
"0.6026476",
"0.60... | 0.6338325 | 6 |
When same method is present in parent class as well as in child class with the same name and same no of arg is called method overriding | public void start() {
System.out.println("BMW start method");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tprotected void parentMethod() {\n\t\tsuper.parentMethod();\r\n\t\tSystem.out.println(\"ChildParentMethod\");\r\n\t}",
"@Override\n\tvoid method() {\n\t\tSystem.out.println(\"Method from Child\");\n\t}",
"@Override\r\n\tpublic void method() {\n\t\tsuper.method();\r\n\t\tSystem.out.println(\"Iam i... | [
"0.7156641",
"0.6765282",
"0.67108023",
"0.6705529",
"0.66780216",
"0.66408557",
"0.65808094",
"0.6526458",
"0.6429887",
"0.64005196",
"0.63609564",
"0.6277843",
"0.62507254",
"0.6225401",
"0.6225401",
"0.6225401",
"0.60710657",
"0.60676533",
"0.6065377",
"0.6013036",
"0.5979... | 0.0 | -1 |
It computes all the subsequence of an string | static void subsequence(String str)
{
// iterate over the entire string
for (int i = 0; i < str.length(); i++) {
// iterate from the end of the string
// to generate substrings
for (int j = str.length(); j > i; j--) {
String sub_str = str.substring(i, j);
if (!st.contains(sub_str))
st.add(sub_str);
// drop kth character in the substring
// and if its not in the set then recur
for (int k = 0; k < sub_str.length(); k++) {
StringBuffer sb = new StringBuffer(sub_str);
// drop character from the string
sb.deleteCharAt(k);
if (!st.contains(sb)) {
subsequence(sb.toString());
}
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void longestRepeatingSubsequence(String string) {\n\t\t\n\t}",
"public static Set<String> getAllSubSeq(String s) {\n if (s == null || s.isEmpty()) {\n return null;\n }\n\n int n = s.length();\n if (n > 31) {\n throw new IllegalArgumentException(\"max str length is 31\");\n ... | [
"0.7005486",
"0.68961304",
"0.6754325",
"0.6683946",
"0.6628094",
"0.651601",
"0.6465333",
"0.6345887",
"0.6335364",
"0.6332789",
"0.629756",
"0.62834364",
"0.62548655",
"0.62508696",
"0.6147099",
"0.60892355",
"0.6060913",
"0.60541743",
"0.6049438",
"0.60328525",
"0.5990584"... | 0.7615498 | 0 |
TODO Autogenerated method stub | public static void main(String[] args)
{
try
{
Scanner inFile = new Scanner(new FileReader(args[0]));
BufferedWriter outFile = new BufferedWriter(new FileWriter(args[1]));
if(args.length < 1)
{
System.out.println("Error to open file");
System.exit(1);
}
int numNodes = inFile.nextInt();
graphColoring graphColor = new graphColoring(numNodes);
int i, j;
while(inFile.hasNext())
{
i = inFile.nextInt();
j = inFile.nextInt();
graphColor.loadMatrix(i, j);
Node newNode = new Node(i, j);
}
graphColor.constructNodeList();
graphColor.printNodeList(outFile);
graphColor.newColor = 0;
graphColor.printMatrix(outFile);
while(graphColor.findUncolorNode())
{
graphColor.newColor++;
Node current = graphColor.listHead.next;
while(current != null)
{
if(current.color == 0 && graphColor.checkAdjacent(current.ID, graphColor.newColor) == 0)
{
graphColor.adjacencyMatrix[current.ID][current.ID] = graphColor.newColor;
current.color = graphColor.newColor;
current = current.next;
}
else
{
current = current.next;
}
}
}
outFile.write("Number of colors used is: " + graphColor.newColor + "\n");
graphColor.printNodeList(outFile);
graphColor.printMatrix(outFile);
inFile.close();
outFile.close();
}
catch(Exception e)
{
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.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 |
Constructor of class Card takes an int as a value for ranks and suit | public Card (int aRank , int aSuit)
{
this.ranks = aRank;
this.suits = aSuit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Card(int cardRank, int cardSuit){\n this.rank = cardRank;\n this.suit = cardSuit;\n }",
"public Card (Rank rank, Suit suit)\n {\n this.rank = rank;\n this.suit = suit;\n }",
"public Card(String suit, int value)\n {\n this.suit = suit;\n this.value = ... | [
"0.84860814",
"0.8480903",
"0.84568715",
"0.84008217",
"0.83987087",
"0.8398255",
"0.83046645",
"0.8297313",
"0.82968086",
"0.82508934",
"0.8226564",
"0.8200651",
"0.819904",
"0.8146524",
"0.813476",
"0.81168145",
"0.80926496",
"0.79648274",
"0.7958177",
"0.7947673",
"0.79130... | 0.85542667 | 0 |
This will return the rank f the receiver as value | public int getRank ()
{
return this.ranks;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getRank();",
"public int getRank(){\n return Value;\n }",
"public int getRank();",
"public int getRank();",
"public Integer getRankValue() {\r\n\t\treturn rank;\r\n\t}",
"public int rank() { return this.rank; }",
"public Integer getRank(){\r\n\t\treturn rank;\r\n\t}",
"public int getRa... | [
"0.793635",
"0.7922317",
"0.7905197",
"0.7905197",
"0.78681576",
"0.78352344",
"0.78322625",
"0.77827317",
"0.7759304",
"0.77579236",
"0.77579135",
"0.77356",
"0.7730963",
"0.7721184",
"0.77187777",
"0.77178186",
"0.77178186",
"0.77178186",
"0.7683019",
"0.76497513",
"0.76189... | 0.7163572 | 54 |
This will return the suit of the receiver as a value | public int getSuit ()
{
return this.suits;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getSuit()\n {\n return suit;\n }",
"public int getSuit() {\r\n return suit;\r\n }",
"public String suit() {\r\n return suit;\r\n }",
"public int getSuit()\n {\n return suit;\n }",
"public int getSuit(){\n\t\treturn suit; \n\t}",
"public int getSuit(... | [
"0.80989414",
"0.80761296",
"0.8055113",
"0.80431074",
"0.8024078",
"0.7994369",
"0.7994369",
"0.79833597",
"0.7972049",
"0.796433",
"0.7916246",
"0.7895352",
"0.7869132",
"0.78330237",
"0.78314525",
"0.7819368",
"0.7779637",
"0.7779637",
"0.7534547",
"0.74738455",
"0.7448446... | 0.6560468 | 43 |
Method to set rank as value | public void setRank(int aRank)
{
this.ranks = aRank;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRank(int value);",
"private void setRank(int rank) {\r\n\r\n this.rank = rank;\r\n }",
"public void setRank(String value)\n {\n _rank = value;\n }",
"public void setRank(byte value) {\n this.rank = value;\n }",
"public void setRank(Integer rank){\... | [
"0.88902175",
"0.8427976",
"0.8209885",
"0.81215",
"0.8078972",
"0.79803985",
"0.7967745",
"0.79434973",
"0.78755176",
"0.7795364",
"0.7748908",
"0.7712827",
"0.7712827",
"0.77026105",
"0.7697383",
"0.76749426",
"0.755489",
"0.7496505",
"0.7457618",
"0.7340119",
"0.7227765",
... | 0.794877 | 7 |
Method to set suit as a value | public void setSuit (int aSuit)
{
this.suits = aSuit;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSuit(Suit suit) {\n this.suit = suit;\n }",
"public void setSuit(String value) {\n suit = value;\n }",
"public void setSuit(String suit)\r\n {\r\n this.suit = suit;\r\n }",
"public void setSuit(Suit suit) {\r\n\t\tthis.suit = suit;\r\n\t}",
"public void set... | [
"0.831271",
"0.8308439",
"0.8207747",
"0.7871436",
"0.7756527",
"0.7594908",
"0.7440697",
"0.74262816",
"0.72283536",
"0.70982736",
"0.7093615",
"0.7093468",
"0.70641214",
"0.7051452",
"0.70289516",
"0.70249194",
"0.70249194",
"0.70021576",
"0.69999593",
"0.6943873",
"0.69129... | 0.7539879 | 6 |
This will return the rank as a string | public String getRankAsString (int aRank)
{
switch (aRank)
{
case 1:return("Ace");
case 2:return("Two");
case 3:return("Three");
case 4:return("Four");
case 5:return("Five");
case 6:return("Six");
case 7:return("Seven");
case 8:return("Eight");
case 9:return("Nine");
case 10:return("Ten");
case 11:return("Jack");
case 12:return("Queen");
case 13:return("King");
default: return("Invalid Rank");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getRankString()\n {\n switch (rank)\n {\n \n case 2: return \"2\";\n case 3: return \"3\";\n case 4: return \"4\";\n case 5: return \"5\";\n case 6: return \"6\";\n case 7: return \"7\";\n case 8: return \"8\";\n case... | [
"0.85038066",
"0.82002664",
"0.815516",
"0.80304855",
"0.79735726",
"0.7964928",
"0.79556316",
"0.79387224",
"0.7842039",
"0.7793419",
"0.7664397",
"0.76526517",
"0.75697166",
"0.7438936",
"0.7395543",
"0.7340953",
"0.72719294",
"0.72173375",
"0.7156994",
"0.7154259",
"0.7150... | 0.74994516 | 13 |
This will return the suit of the receiver as a string | public String getSuitAsString (int aSuit)
{
switch (aSuit)
{
case 1:return("Spades");
case 2:return("Diamonds");
case 3:return("Clubs");
case 4:return("Hearts");
default:return("Invalid Rank");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSuit()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************** Start getSuit Method *****************/\n\n\t// Return suit of card\n return suit;\n\n }",
"public String suit() {\r\n return suit;\r\n }",
"public String getSuit()\r\n\t{\r\n\t\treturn suit;\r\n\t}... | [
"0.77881306",
"0.7782923",
"0.77390057",
"0.77274275",
"0.76995707",
"0.76828307",
"0.76631445",
"0.76608545",
"0.7658479",
"0.765658",
"0.7620516",
"0.7608372",
"0.7567506",
"0.7550788",
"0.7550788",
"0.74991333",
"0.7412187",
"0.7407591",
"0.72832036",
"0.72783494",
"0.7265... | 0.69736576 | 35 |
Returns a string representation of the receiver. | @Override
public String toString()
{
return (this.getRankAsString(this.getRank()) +" of "
+ this.getSuitAsString(this.getSuit()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String toString() {\n String result = msgType.toString();\n if (msgSender != null) {\n result += \" \" + msgSender.length() + \" \" + msgSender;\n } else {\n result += \" \" + NULL_OUTPUT.length() + \" \" + NULL_OUTPUT;\n }\n if (receiver != null) {\n result += \" ... | [
"0.7452576",
"0.72262204",
"0.72012067",
"0.713591",
"0.7075485",
"0.70455694",
"0.70418555",
"0.70361805",
"0.6991259",
"0.6975838",
"0.697378",
"0.6967269",
"0.6956886",
"0.6947292",
"0.687719",
"0.68724084",
"0.68724084",
"0.6862667",
"0.68497384",
"0.68435967",
"0.6843307... | 0.0 | -1 |
Recursively traverses a provided Path and checks if it is a directory or path. If it is a directory, call function again | private static void traverse(Path path, ArrayList<Path> fileArray) {
try (DirectoryStream<Path> listing = Files.newDirectoryStream(path)) {
for (Path file : listing) {
if (file.toString().toLowerCase().endsWith(".txt")) {
fileArray.add(file);
} else if (Files.isDirectory(file)) {
traverse(file, fileArray);
}
}
} catch (IOException e) {
System.out.println("Invalid path: " + path);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isDirectory(String path);",
"public void process(File path) throws IOException {\n\t\tIterator<File> files = Arrays.asList(path.listFiles()).iterator();\n\t\twhile (files.hasNext()) {\n\t\t\tFile f = files.next();\n\t\t\tif (f.isDirectory()) {\n\t\t\t\tprocess(f);\n\t\t\t} else {\n\t\t\t\tif (star... | [
"0.59951746",
"0.5863678",
"0.56700885",
"0.5644438",
"0.5608596",
"0.5561952",
"0.5541542",
"0.55039275",
"0.54984975",
"0.5472262",
"0.5471191",
"0.534947",
"0.53417313",
"0.5330502",
"0.53153616",
"0.5308491",
"0.5297251",
"0.5283029",
"0.52444404",
"0.52148837",
"0.520240... | 0.5494871 | 9 |
Creates a new ArrayList of type Path and passes it to a second version of the overloaded method traverse() | public static ArrayList<Path> traverse(Path directory) {
ArrayList<Path> filenames = new ArrayList<Path>();
traverse(directory, filenames);
return filenames;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static ArrayList<Path> traverse(Path path) throws IOException {\n\t\tArrayList<Path> paths = new ArrayList<Path>();\n\t\ttraverse(path, paths);\n\t\treturn paths;\n\t}",
"public abstract ScaledPathArray getPathList();",
"abstract public List<S> getPath();",
"public static void traverse(Path path, Arra... | [
"0.7443677",
"0.65657294",
"0.6466967",
"0.63231385",
"0.6219155",
"0.6079778",
"0.6033406",
"0.6000166",
"0.5897431",
"0.58722174",
"0.5845008",
"0.58325505",
"0.58325005",
"0.5786774",
"0.5699006",
"0.5674252",
"0.5664456",
"0.5653225",
"0.5609732",
"0.5566363",
"0.5560011"... | 0.5157685 | 60 |
/ Instantiate searcher based on cmd line args. | private static Searcher createSearcher(String[] args) {
if (args.length > 1 && "duden".equals(args[1])) {//Use DWDS by default, Duden only on explicit request
return SearcherFactory.newDuden();
} else {
return SearcherFactory.newDwds();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t\tSearch s = new Search();\n\t\ts.init();\n\t}",
"public SearchCommand(String[] args) {\n super(args);\n\n try{\n pathToDir = validatePathToDir(args[1]);\n maxFileSize = validateMaxFileSize(args[2]);\n keywords = validateK... | [
"0.7271815",
"0.6608844",
"0.6141724",
"0.6111826",
"0.6056606",
"0.6012858",
"0.60091394",
"0.5993173",
"0.5965837",
"0.59531033",
"0.5919143",
"0.5885944",
"0.58615553",
"0.58460647",
"0.58447456",
"0.58420944",
"0.58004284",
"0.5799773",
"0.57983655",
"0.57883394",
"0.5760... | 0.72927755 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.