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 |
|---|---|---|---|---|---|---|
Attachment att = dao.findById(attachSeq); | @Override
@Transactional(rollbackFor= {Exception.class})
public int deleteByid(int attachSeq) {
return aDao.deleteByid(attachSeq);
// fUtil.delAttachedFile(att);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"NjOrderAttachment selectByPrimaryKey(String id);",
"AttachmentDTO findOne(Long id);",
"@Override\n\tpublic Tnoticeattach getAttachById(Long attachs) {\n\t\tSystem.out.println(attachs);\n\t\treturn (Tnoticeattach) queryOneObject(\n\t\t\t\t\"select t from Tnoticeattach t where t.naattachid= ?\", attachs);\n\t}",... | [
"0.72419804",
"0.6910363",
"0.63884455",
"0.6352234",
"0.6233871",
"0.6103954",
"0.6054318",
"0.5992078",
"0.5931585",
"0.58987045",
"0.5893409",
"0.58732635",
"0.5866825",
"0.58491516",
"0.58436406",
"0.5833048",
"0.58317536",
"0.5825809",
"0.5804758",
"0.5769502",
"0.574938... | 0.5722721 | 21 |
/ Copyright 2019 Phoebus Tecnologia Ltda. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. | public interface GenericService<T extends GenericEntity> {
/**
* Saves a given entity. Use the returned instance for further operations as the
* save operation might have changed the entity instance completely.
*/
T save(T obj);
/**
* Edits a given entity. Use the returned instance for further operations as the
* edit operation might have changed the entity instance completely.
*/
T edit(T obj);
/**
* Edits a given entity. Use the returned instance for further operations as the
* edit operation might have changed the entity instance completely.
*/
T edit(long id, T obj);
/**
* Retrieves an entity by its id.
*/
Optional<T> find(long id);
/**
* Deletes a given entity.
*/
void delete(long id);
/**
* Deletes a given entity.
*/
void delete(T obj);
/**
* Returns all instances of the type.
*/
Iterable<T> list();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface HuobiConsts {\n String API_HOST_PRO = \"api.huobi.pro\";\n String API_HOST_HADAX = \"api.hadax.com\";\n\n String USER_AGENT = \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36\";\n\n String ENDPOINT_SECURITY_TYPE_APIKEY = \"A... | [
"0.5866605",
"0.5756967",
"0.5376766",
"0.5334571",
"0.53339607",
"0.5316397",
"0.5315102",
"0.5291379",
"0.5225221",
"0.52098185",
"0.51960045",
"0.51906127",
"0.518776",
"0.5166898",
"0.5135902",
"0.5132776",
"0.5124542",
"0.5124542",
"0.5124542",
"0.5124542",
"0.5111372",
... | 0.0 | -1 |
Saves a given entity. Use the returned instance for further operations as the save operation might have changed the entity instance completely. | T save(T obj); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Entity save(Entity entity);",
"E save(E entity);",
"void save(E entity);",
"void save(Object entity);",
"T save(T entity);",
"T save(T entity);",
"T save(T entity);",
"public <T> T save(T entity);",
"@Override\n\tpublic T save(T entity) {\n\t\treturn getDao().save(entity);\n\t}",
"<S extends T> S... | [
"0.77403116",
"0.7540583",
"0.74112517",
"0.7410056",
"0.7320316",
"0.7320316",
"0.7320316",
"0.7313401",
"0.71969235",
"0.71913415",
"0.71913415",
"0.7151139",
"0.7079406",
"0.70118886",
"0.69752234",
"0.6901197",
"0.6898151",
"0.68873703",
"0.68357825",
"0.67930573",
"0.674... | 0.0 | -1 |
Edits a given entity. Use the returned instance for further operations as the edit operation might have changed the entity instance completely. | T edit(T obj); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"E update(E entity);",
"E update(E entity);",
"public void update(E entity);",
"E update(E entity) throws ValidationException;",
"E update(ID id, E entity, RequestContext context);",
"public <T> T update(T entity);",
"T update(T entity);",
"T update(T entity);",
"void update(T entity) throws Excepti... | [
"0.6770668",
"0.6770668",
"0.6700214",
"0.66963404",
"0.66432726",
"0.65890896",
"0.65337765",
"0.65337765",
"0.6358107",
"0.6325468",
"0.6304593",
"0.6297834",
"0.627782",
"0.627782",
"0.6245543",
"0.6234306",
"0.61128896",
"0.6070676",
"0.602625",
"0.5967067",
"0.5942324",
... | 0.5365267 | 58 |
Edits a given entity. Use the returned instance for further operations as the edit operation might have changed the entity instance completely. | T edit(long id, T obj); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"E update(E entity);",
"E update(E entity);",
"public void update(E entity);",
"E update(E entity) throws ValidationException;",
"E update(ID id, E entity, RequestContext context);",
"public <T> T update(T entity);",
"T update(T entity);",
"T update(T entity);",
"void update(T entity) throws Excepti... | [
"0.6769486",
"0.6769486",
"0.6699044",
"0.6694615",
"0.664129",
"0.6588106",
"0.65324724",
"0.65324724",
"0.6356985",
"0.632407",
"0.6302524",
"0.6296254",
"0.62766963",
"0.62766963",
"0.6244152",
"0.6231783",
"0.6111469",
"0.6069957",
"0.602518",
"0.5964899",
"0.59406555",
... | 0.56875205 | 31 |
Retrieves an entity by its id. | Optional<T> find(long id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Entity getEntityById(Long id);",
"public TEntity getById(int id){\n String whereClause = String.format(\"Id = %1$s\", id);\n Cursor cursor = db.query(tableName, columns, whereClause, null, null, null, null);\n\n if (cursor.getCount() == 1) {\n cursor.moveToFirst();\n re... | [
"0.8008805",
"0.78383756",
"0.7814966",
"0.76498",
"0.7633836",
"0.75599766",
"0.7545466",
"0.7481006",
"0.74731255",
"0.73994786",
"0.73447067",
"0.7325245",
"0.7312803",
"0.73034984",
"0.7258192",
"0.72457457",
"0.7245285",
"0.7190184",
"0.7180779",
"0.71767825",
"0.7140748... | 0.0 | -1 |
Deletes a given entity. | void delete(long id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void delete(Entity entity);",
"void delete(E entity);",
"void delete(E entity);",
"void deleteEntityById(Long id);",
"public void deleteEntity(AnnexDetail entity) throws Exception {\n\t\t\n\t}",
"void delete(int entityId);",
"void delete(Object entity);",
"public void delete(T entity) throws Exceptio... | [
"0.8397088",
"0.8124312",
"0.8124312",
"0.8057794",
"0.8019652",
"0.80030936",
"0.79706556",
"0.7964307",
"0.7941071",
"0.79033214",
"0.79033214",
"0.7836776",
"0.7801956",
"0.7792936",
"0.77633256",
"0.77552354",
"0.77118516",
"0.7697611",
"0.76523304",
"0.76079774",
"0.7596... | 0.0 | -1 |
Deletes a given entity. | void delete(T obj); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void delete(Entity entity);",
"void delete(E entity);",
"void delete(E entity);",
"void deleteEntityById(Long id);",
"public void deleteEntity(AnnexDetail entity) throws Exception {\n\t\t\n\t}",
"void delete(int entityId);",
"void delete(Object entity);",
"public void delete(T entity) throws Exceptio... | [
"0.8397088",
"0.8124312",
"0.8124312",
"0.8057794",
"0.8019652",
"0.80030936",
"0.79706556",
"0.7964307",
"0.7941071",
"0.79033214",
"0.79033214",
"0.7836776",
"0.7801956",
"0.7792936",
"0.77633256",
"0.77552354",
"0.77118516",
"0.7697611",
"0.76523304",
"0.76079774",
"0.7596... | 0.0 | -1 |
Returns all instances of the type. | Iterable<T> list(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Collection<Instance> getInstances();",
"public List<ServiceInstance> getAllInstances();",
"public List<Type> getAll();",
"private Collection getInstances() {\n \t\tCollection instances=null;\r\n\r\n //instances = cls.getInstances();\r\n \t\tRDFProperty ready = owlModel.getRDFProperty(oTab.namesp... | [
"0.7738123",
"0.7172061",
"0.7031178",
"0.69717175",
"0.6766654",
"0.672286",
"0.6708667",
"0.66421777",
"0.66166866",
"0.65298975",
"0.64938176",
"0.6455558",
"0.64202976",
"0.6398732",
"0.63888574",
"0.6344976",
"0.63267094",
"0.63195544",
"0.63156563",
"0.62823844",
"0.626... | 0.0 | -1 |
Created by khush on 06/11/2016. | public interface StockPECalculator extends StockCalculator{
BigDecimal calculatePE(Stock stock, LocalDate calculationDate);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r... | [
"0.603065",
"0.59647185",
"0.58995235",
"0.58739805",
"0.58041877",
"0.58041877",
"0.57929856",
"0.5720228",
"0.5708575",
"0.5673664",
"0.5659937",
"0.5648709",
"0.5643551",
"0.56415504",
"0.5640566",
"0.56294507",
"0.56241673",
"0.5623615",
"0.5613469",
"0.5613469",
"0.56134... | 0.0 | -1 |
levelGroups will be a table where each row is a unique combination of levels from all the factors to use in a model run | @SuppressWarnings("unchecked")
public void run(Class<?> modelRunClass) throws ParseException, Exception{
ArrayList<ExperimentalGroup> experimentalGroups = new ArrayList<ExperimentalGroup>();
combinationsOfLevels(experimentalGroups);
int baseSeed = baseParams.get("Seed").valueInt;
int runID = 1;
for(ExperimentalGroup experimentalGroup : experimentalGroups){
LinkedHashMap<String, ParameterValue> runParams = new LinkedHashMap<String, ParameterValue>();
for(String key : baseParams.keySet()){
runParams.put(key, (ParameterValue)baseParams.get(key).clone());
}
for(Level level : experimentalGroup.levels){
for(ParameterValue paramValue : level.values){
runParams.remove(paramValue.parameter.name);
runParams.put(paramValue.parameter.name,paramValue);
}
}
for (int i = 0; i < this.replicates; i++) {
LinkedHashMap<String, ParameterValue> runParamsWithRep = (LinkedHashMap<String, ParameterValue>) runParams.clone();
ExperimentalGroup experimentalGroupWithRep = (ExperimentalGroup) experimentalGroup.clone();
experimentalGroupWithRep.setReplicate(i);
experimentalGroupWithRep.setRun(runID++);
Object modelRun = null;
if(baseSeed != 0){
runParamsWithRep.remove("Seed");
runParamsWithRep.put("Seed",new ParameterValue(baseParams.get("Seed").parameter, (new Integer(baseSeed * (i+1))).toString()));
}
try {
modelRun = modelRunClass.newInstance();
} catch (InstantiationException ex) {
log.error(ex);
} catch (IllegalAccessException ex) {
log.error(ex);
}
((Model)modelRun).setParameters(runParamsWithRep);
((Model)modelRun).setExperimentalGroup(experimentalGroupWithRep);
executer.execute((Runnable) modelRun);
}
}
executer.shutdown();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Group renderLevel() {\n\t\tGroup levelGroup = new Group();\n\t\tNode background = renderBackground(level);\n\t\tlevelGroup.getChildren().add(background);\n\t\tList<Sprite> textSpriteList = level.sprites().stream().filter(sprite -> sprite.isText()).collect(Collectors.toList());\n\t\ttextSpriteList.stream().f... | [
"0.5997668",
"0.59834033",
"0.5975785",
"0.5957265",
"0.5871033",
"0.5691752",
"0.5659375",
"0.5581115",
"0.5558036",
"0.5551287",
"0.55313367",
"0.55001765",
"0.54960793",
"0.54893523",
"0.5467071",
"0.54530394",
"0.5418998",
"0.54057044",
"0.5368873",
"0.53639114",
"0.53585... | 0.0 | -1 |
Initialize "workingGroup" which will be a row of levels | public void combinationsOfLevels(ArrayList<ExperimentalGroup> levelGroups) throws CloneNotSupportedException{
ExperimentalGroup workingGroup = new ExperimentalGroup();
for(int i = 0; i < this.factors.size(); i++){
workingGroup.addLevel(this.factors.get(i).levels.get(0));
}
combinationsOfLevels(levelGroups,workingGroup,0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void initLevel(){\n baseLevel = levelCreator.createStaticGrid(this.levelFile);\n dynamicLevel= levelCreator.createDynamicGrid(levelFile);\n colDetector = new CollisionHandler();\n goalTiles = baseLevel.getTilePositions('x');\n }",
"public void setStartLevelGroup(int num)\n\t... | [
"0.5949413",
"0.58992034",
"0.5763305",
"0.5713158",
"0.569083",
"0.56508034",
"0.56157005",
"0.55982107",
"0.5574523",
"0.55720395",
"0.55590266",
"0.5534222",
"0.5502566",
"0.5501375",
"0.5454127",
"0.5452388",
"0.5421682",
"0.54071814",
"0.539486",
"0.5361641",
"0.5361641"... | 0.0 | -1 |
combinationsOfLevels is a recursive method which replaces the appropriate element in working group and then passes off to the next factor or it adds the final ExperimentalGroup to levelGroups when all factors have been visited | public void combinationsOfLevels(ArrayList<ExperimentalGroup> levelGroups, ExperimentalGroup workingGroup, int factorIndex) throws CloneNotSupportedException{
if(factorIndex >= this.factors.size()){
levelGroups.add((ExperimentalGroup)workingGroup.clone());
return;
}
for(int i = 0; i < this.factors.get(factorIndex).levels.size(); i++){
workingGroup.levels.remove(factorIndex);
workingGroup.levels.add(factorIndex,this.factors.get(factorIndex).levels.get(i));
combinationsOfLevels(levelGroups, workingGroup, factorIndex + 1);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void combinationsOfLevels(ArrayList<ExperimentalGroup> levelGroups) throws CloneNotSupportedException{\n\t\tExperimentalGroup workingGroup = new ExperimentalGroup();\n\t\tfor(int i = 0; i < this.factors.size(); i++){\n\t\t\tworkingGroup.addLevel(this.factors.get(i).levels.get(0));\n\t\t}\n\t\tcombinationsOf... | [
"0.7148202",
"0.51688933",
"0.4913049",
"0.4906424",
"0.48757824",
"0.48179406",
"0.47642988",
"0.47559533",
"0.47363746",
"0.46673936",
"0.46547246",
"0.46256244",
"0.46167392",
"0.45935935",
"0.4566597",
"0.45478797",
"0.45393363",
"0.44817173",
"0.44389465",
"0.4427499",
"... | 0.72938305 | 0 |
TODO code application logic here | public static void main(String[] args) {
int i = 3;
boolean state;
do {
if (i == 0) {
System.out.println("Acess denied");
break;
}
state = auth();
if (!state) {
i--;
if (i >= 1) {
System.out.println("You have " + i + " chances");
}
} else {
System.out.println("Acess granted");
}
} while (!state);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }"... | [
"0.60802186",
"0.5912082",
"0.58425087",
"0.58339286",
"0.5810548",
"0.57580656",
"0.57396024",
"0.5721001",
"0.5705411",
"0.5666017",
"0.5657976",
"0.5613798",
"0.5611188",
"0.5611188",
"0.55960613",
"0.55933475",
"0.557677",
"0.5572332",
"0.5565667",
"0.55482084",
"0.553657... | 0.0 | -1 |
Returns a short description of the servlet. | @Override
public String getServletInfo() {
return "Short description";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getServletInfo()\n {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short d... | [
"0.87634975",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8732279",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8699131",
"0.8531295",
"0.8531295",
"0.85282224",
"0.85282224",
... | 0.0 | -1 |
Set profile pictures of attendees from String[] of picture URLs | public View getView(final int position, View view, ViewGroup parent) {
LayoutInflater inflater = activity.getLayoutInflater();
View rowView = inflater.inflate(R.layout.comments_list, null, true);
TextView commenterName = (TextView) rowView.findViewById(R.id.commenterName);
commenterName.setText(names[position]);
TextView commentBody = (TextView) rowView.findViewById(R.id.commentBody);
commentBody.setText(comments[position]);
final ImageView profilePic = (ImageView) rowView.findViewById(R.id.commenterPicture);
Picasso.with(activity.getBaseContext()).load(pictures[position]).into(profilePic, new Callback() {
@Override
public void onSuccess() {
profilePic.setVisibility(View.VISIBLE);
}
@Override
public void onError() {
profilePic.setVisibility(View.INVISIBLE);
}
});
rowView.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
if (canDelete(position))
showDeleteDialog(activity, position);
return true;
}
});
return rowView;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAvatarsUrl(SparseArrayViewHolder holder, List<String> avatars) {\n LinearLayout linearLayout=holder.getView(R.id.item_avatars);\n int avatarSize= (int) mContext.getResources().getDimension(R.dimen.avatar_small_size);\n LinearLayout.LayoutParams params=new LinearLayout.LayoutPara... | [
"0.63852835",
"0.6307031",
"0.6052973",
"0.5926811",
"0.58397985",
"0.58109343",
"0.576827",
"0.5714013",
"0.56868917",
"0.56354946",
"0.55603373",
"0.55500966",
"0.5535008",
"0.553288",
"0.5522933",
"0.5507416",
"0.55002743",
"0.54894745",
"0.5454214",
"0.5326591",
"0.531952... | 0.0 | -1 |
Itera sobre as senhas preferenciais inicialmente | public void selectNextPassword() throws Exception {
synchronized (preferentialPasswordSet) {
Iterator<Password> ipp=preferentialPasswordSet.iterator();
while(ipp.hasNext()){
Password p=ipp.next();
if (!p.isCalled()) {
nextPassword = p;
nextPassword.setCalled(true);
persistPreferentialPasswordSet();
return;
}
}
}
// Se necessário, itera sobre as senhas normais
synchronized (normalPasswordSet) {
Iterator<Password> npp=normalPasswordSet.iterator();
while(npp.hasNext()){
Password p=npp.next();
if (!p.isCalled()) {
nextPassword = p;
nextPassword.setCalled(true);
persistNormalPasswordSet();
return;
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void getPropuestasOrdenadas(int confirm) throws ParseException{\n System.out.println(\"\\nSe imprimirán las propuestas de la Sala \"+getNombreSala()+\":\");\n if (propuestas.size() == 0){\n System.out.println(\"No hay reservas para esta Sala\");\n }\n else{\n ... | [
"0.55583704",
"0.54429954",
"0.5396711",
"0.5385716",
"0.5366492",
"0.53408086",
"0.533978",
"0.5316217",
"0.528448",
"0.5281639",
"0.52544856",
"0.5243058",
"0.5209853",
"0.5198568",
"0.5176584",
"0.5164879",
"0.5158515",
"0.5151184",
"0.51217335",
"0.50816816",
"0.5075457",... | 0.48640183 | 55 |
Sends a message.(String message) | private void sendMessage(String message) {
if (mChatService.getState() != BluetoothChatService.STATE_CONNECTED) {
// Toast.makeText(this, R.string.not_connected, Toast.LENGTH_SHORT).show();
return;
}
if (message.length() > 0) {
byte[] send = message.getBytes();
mChatService.write(send);
mOutStringBuffer.setLength(0);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void send(String message);",
"public void sendMessage(String message);",
"public void sendMessage(String message) {}",
"void sendMessage(String msg);",
"public void send(Message msg);",
"public void sendMessage(String message) {\r\n sendMessageAsByte(message.getBytes());\r\n }",
"public stati... | [
"0.8518251",
"0.8145413",
"0.8088409",
"0.8036657",
"0.7984215",
"0.788459",
"0.78486073",
"0.7840055",
"0.78217435",
"0.78212607",
"0.7785244",
"0.773347",
"0.7723923",
"0.77192444",
"0.7619205",
"0.7618235",
"0.7612376",
"0.7586608",
"0.7569132",
"0.75361973",
"0.75332195",... | 0.705493 | 77 |
Updates the status on the action bar. usin resID | private void setStatus(int resId) {
Activity activity = this;
if (null == activity) {
return;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setStatus(int resId) {\n actionBar.setSubtitle(resId);\n }",
"private void setStatus(int resId) {\n\n getSupportActionBar().setSubtitle(resId);\n //textViewStatus.setText(resId);\n\n }",
"private static void setStatus(int resId, Activity activity) {\n\n\n if (null... | [
"0.7835961",
"0.76892126",
"0.74705905",
"0.7294191",
"0.7294191",
"0.6630866",
"0.6593089",
"0.6544391",
"0.6501079",
"0.6495184",
"0.64617705",
"0.6317404",
"0.6283619",
"0.6283619",
"0.623196",
"0.6217886",
"0.6215604",
"0.6212413",
"0.6103915",
"0.60982037",
"0.6096659",
... | 0.6526729 | 8 |
Establish connection with other divice | private void connectDevice(Intent data, boolean secure) {
String address = data.getExtras()
.getString(DeviceListActivity.EXTRA_DEVICE_ADDRESS);
BluetoothDevice device = mBluetoothAdapter.getRemoteDevice(address);
mChatService.connect(device, secure);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void connect() {}",
"public void connect();",
"public void connect();",
"public void connect();",
"public void connecting() {\n\n }",
"@Override\n public void establishConnectionWithYourTower() {\n }",
"private void establishConnection() {\n\n try {\n\n for(Clone clone... | [
"0.73025477",
"0.7235818",
"0.7235818",
"0.7235818",
"0.7000458",
"0.69580024",
"0.6880498",
"0.6800827",
"0.6751544",
"0.6671088",
"0.6671088",
"0.6630688",
"0.6580636",
"0.65728253",
"0.65461546",
"0.6544347",
"0.65431195",
"0.65370625",
"0.6531962",
"0.6519591",
"0.6498533... | 0.0 | -1 |
Builds a category series using the provided values. | protected CategorySeries buildCategoryDataset(String title, List<Evenement> values) {
CategorySeries series = new CategorySeries(title);
int k = 0;
for (Evenement value : values) {
series.add(value.getDescription(), value.getNb_participants());
}
return series;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static CategoryDataset createSortedDataset(List<Number> values, List<String> rows, List<NumberOnlyBuildLabel> columns) {\n\t\tDefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\n\t\tTreeSet<String> rowSet = new TreeSet<String>(rows);\n\t\tTreeSet<ChartUtil.NumberOnlyBuildLabel> colSet = new T... | [
"0.6081396",
"0.59690005",
"0.564447",
"0.56349903",
"0.5593414",
"0.54655355",
"0.53993064",
"0.5371484",
"0.5303921",
"0.5275316",
"0.5209635",
"0.52038664",
"0.5135823",
"0.5127982",
"0.5126798",
"0.5098253",
"0.5065948",
"0.5045862",
"0.5042265",
"0.49816898",
"0.49611366... | 0.76737136 | 0 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.menu_splash__screen, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.6862... | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ... | [
"0.7905683",
"0.7805918",
"0.7766949",
"0.77280927",
"0.76328415",
"0.76229936",
"0.7585238",
"0.75312966",
"0.7488599",
"0.7458191",
"0.7458191",
"0.74387765",
"0.74228644",
"0.7403772",
"0.7392029",
"0.7387223",
"0.73796284",
"0.73707056",
"0.7362735",
"0.7356231",
"0.73459... | 0.0 | -1 |
Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds, subject to the precision and accuracy of system timers and schedulers. The thread does not lose ownership of any monitors. | public static void sleep(long millis) {
try {
Thread.sleep(millis);
} catch(Throwable ignored) {
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void sleep(long milliseconds) {\n\t\tGeneral.sleep(milliseconds);\n\t}",
"private void sleep(long ms) throws InterruptedException {\n Thread.sleep(ms);\n }",
"public static void sleep(long msec)\n {\n try\n {\n Thread.sleep(msec);\n }\n catch (Interru... | [
"0.7518337",
"0.74995154",
"0.7461928",
"0.73696303",
"0.7256407",
"0.7233176",
"0.71543074",
"0.71178496",
"0.7043293",
"0.6996169",
"0.69659626",
"0.6936504",
"0.69146746",
"0.68992823",
"0.6870503",
"0.6836642",
"0.68175495",
"0.679184",
"0.6783637",
"0.67715305",
"0.67590... | 0.6862086 | 15 |
TODO Autogenerated method stub | @Override
public void setStackTrace(StackTraceElement[] stackTrace) {
super.setStackTrace(stackTrace);
} | {
"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 |
Verify if groups are valid from database | @Test
void validateUserGroupExist(){
Boolean testing_result = true;
int issue_id = 0;
String issue_group = "";
ArrayList<String> groups = new ArrayList<>();
groups.add("admin");
groups.add("concordia");
groups.add("encs");
groups.add("comp");
groups.add("soen");
UserController uc = new UserController();
LinkedHashMap<Integer, String> db_groups = uc.getAllUserGroups();
for(int key : db_groups.keySet()){
if(!groups.contains(db_groups.get(key))){
issue_id = key;
issue_group = db_groups.get(key);
testing_result = false;
}
}
Assertions.assertTrue(testing_result, " There is an issue with user(id: " + issue_id + ") having group as: " + issue_group);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n void validateUserGroupCount() {\n LinkedHashMap<Integer, String> groups = new LinkedHashMap<>();\n\n UserManagerFactory uf = new UserManagerFactory();\n\n UserManager obj = uf.getInstance(\"group1\");\n\n groups = obj.getGroups();\n\n Assertions.assertTrue(groups.size(... | [
"0.65209025",
"0.639838",
"0.6398349",
"0.6259819",
"0.62449944",
"0.62171113",
"0.62152195",
"0.6146592",
"0.61257404",
"0.605343",
"0.6049967",
"0.60335624",
"0.59961545",
"0.59147227",
"0.58595484",
"0.58241224",
"0.5782701",
"0.5765583",
"0.57652736",
"0.5733101",
"0.5723... | 0.7364319 | 0 |
validate counts of predefined Singleton user groups | @Test
void validateUserGroupCount() {
LinkedHashMap<Integer, String> groups = new LinkedHashMap<>();
UserManagerFactory uf = new UserManagerFactory();
UserManager obj = uf.getInstance("group1");
groups = obj.getGroups();
Assertions.assertTrue(groups.size() == 5, "There should only have 5 pre-defined groups");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int countGroups()\n/* 25: */ {\n/* 26:22 */ return this.members.size();\n/* 27: */ }",
"int countByExample(UserGroupExample example);",
"int getGroupCount();",
"public long\n getUserGroupsCount(org.eclipse.stardust.engine.api.query.UserGroupQuery query)\n throws org.eclipse... | [
"0.63795906",
"0.6041722",
"0.59263635",
"0.58270746",
"0.56784475",
"0.56776166",
"0.56716275",
"0.56677645",
"0.56667036",
"0.56421745",
"0.56042737",
"0.5578371",
"0.5560672",
"0.5558433",
"0.55185056",
"0.546994",
"0.54660493",
"0.54244107",
"0.54090667",
"0.54051864",
"0... | 0.7554859 | 0 |
Service for catalogue summary functions | public interface SummaryService {
long getOrphanCount(List<Exoplanet> exoplanets);
String findPlanetWithHottestStar(List<Exoplanet> exoplanets);
List<TimelineEntry> createTimeline(List<Exoplanet> exoplanets);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSummary();",
"public abstract String getSummaryForDatabase();",
"java.lang.String getSummary();",
"public MsvmSummaryInformation(IJIDispatch objectDispatcher, SWbemServices service) {\n\t\tsuper(objectDispatcher, service);\n\t}",
"void applySummary(Operation operation, Method method);",
... | [
"0.6634503",
"0.6494011",
"0.6369055",
"0.6051677",
"0.59494686",
"0.5941631",
"0.5877949",
"0.5875762",
"0.5874249",
"0.5871931",
"0.58286464",
"0.5793655",
"0.57476133",
"0.57242393",
"0.5697619",
"0.56971955",
"0.5665776",
"0.5659127",
"0.5603548",
"0.5598262",
"0.5597042"... | 0.7165756 | 0 |
Creates new form TicketForm | public VentanaVentaTicket() {
initComponents();
VentanaVentaTicket.textoArea.append("************SPICY FACTORY***************\n");
VentanaVentaTicket.textoArea.append("~~~~~~~~Detalle de la Venta ~~~~~~~~~~~~\n");
VentanaVentaTicket.textoArea.append("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"public ticket() {\n initComponents();\n this.mostrar();\n }",
"public ticket() {\n initComponents();\n autoID();\n }",
"public TicketBooking() {\n initComponen... | [
"0.6484003",
"0.6394857",
"0.63554",
"0.62455964",
"0.6209524",
"0.61723346",
"0.61636376",
"0.60659367",
"0.6014155",
"0.5970408",
"0.59502107",
"0.59485316",
"0.5929548",
"0.5841417",
"0.5787244",
"0.57280356",
"0.566853",
"0.56431174",
"0.5636379",
"0.5624118",
"0.5615012"... | 0.620453 | 5 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
textoArea = new javax.swing.JTextArea();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
textoArea.setColumns(20);
textoArea.setRows(5);
jScrollPane1.setViewportView(textoArea);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 326, javax.swing.GroupLayout.PREFERRED_SIZE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 382, Short.MAX_VALUE)
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.7320782",
"0.72918797",
"0.72918797",
"0.72918797",
"0.728645",
"0.72498447",
"0.7214492",
"0.720934",
"0.7197145",
"0.71912014",
"0.71852076",
"0.7160113",
"0.71487373",
"0.70943654",
"0.70820624",
"0.7058153",
"0.69883204",
"0.6978216",
"0.69558746",
"0.6955715",
"0.6945... | 0.0 | -1 |
TODO design database downgrade policy | @Override
public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void doUpgrade() {\n // implement the database upgrade here.\n }",
"@Override\n public void onDowngrade(SQLiteDatabase db, int oldVersion, int newVersion) {\n Log.e(TAG, \"[onDowngrade] Shouldn't have this case.\");\n }",
"@Override\n public void reDownloadDB(String newVersion... | [
"0.6760341",
"0.6756422",
"0.67316455",
"0.6578476",
"0.64931965",
"0.64221895",
"0.63729966",
"0.63655734",
"0.6336988",
"0.6304793",
"0.6294479",
"0.627361",
"0.626316",
"0.62428147",
"0.62250274",
"0.6211318",
"0.61385643",
"0.6115046",
"0.60878366",
"0.6087093",
"0.607291... | 0.70973104 | 1 |
Turns to the target | public TurnToTarget() {
forceDone = false;
turnToTarget = new TurnToAngle(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void toSelectingAttackTarget() {\n }",
"Target target();",
"public void startMovingToTarget() \r\n {\n movingToTarget = true;\r\n }",
"Object getTarget();",
"Object getTarget();",
"void setTarget(java.lang.String target);",
"public Living getTarget();",
"public void setTarget(S... | [
"0.6930716",
"0.68460256",
"0.67705274",
"0.6698493",
"0.6698493",
"0.6663918",
"0.6608907",
"0.6572033",
"0.6565521",
"0.6565521",
"0.64977926",
"0.64712083",
"0.6456511",
"0.6442813",
"0.64372486",
"0.6386773",
"0.6335982",
"0.6307366",
"0.6279105",
"0.6265366",
"0.62539434... | 0.70732933 | 0 |
TODO edit to work with getting genres from the website | private static HashMap<Integer, String> getMovieGenres() {
String url = "http://api.themoviedb.org/3/genre/movie/list?api_key=" + BuildConfig.APPLICATION_ID;
JSONArray genres = null;
Integer id;
String genre;
HashMap<Integer, String> movieGenresMap = new HashMap<Integer, String>();
try {
genres = new JSONArray(
"[{\"id\":28,\"name\":\"Action\"},{\"id\":12,\"name\":\"Adventure\"},{\"id\":16,\"name\":\"Animation\"},{\"id\":35,\"name\":\"Comedy\"},{\"id\":80,\"name\":\"Crime\"},{\"id\":99,\"name\":\"Documentary\"},{\"id\":18,\"name\":\"Drama\"},{\"id\":10751,\"name\":\"Family\"},{\"id\":14,\"name\":\"Fantasy\"},{\"id\":10769,\"name\":\"Foreign\"},{\"id\":36,\"name\":\"History\"},{\"id\":27,\"name\":\"Horror\"},{\"id\":10402,\"name\":\"Music\"},{\"id\":9648,\"name\":\"Mystery\"},{\"id\":10749,\"name\":\"Romance\"},{\"id\":878,\"name\":\"Science Fiction\"},{\"id\":10770,\"name\":\"TV Movie\"},{\"id\":53,\"name\":\"Thriller\"},{\"id\":10752,\"name\":\"War\"},{\"id\":37,\"name\":\"Western\"}]");
} catch (JSONException e) {
e.printStackTrace();
}
if (genres != null && genres.length() > 0) {
try {
for (int i = 0; i < genres.length(); i++) {
JSONObject genrePair = genres.getJSONObject(i);
id = genrePair.getInt("id");
genre = genrePair.getString("name");
movieGenresMap.put(id, genre);
}
} catch (JSONException e) {
e.printStackTrace();
}
}
return movieGenresMap;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createGenres() {\n ArrayList<String> gen = new ArrayList<>();\n //\n for (Movie mov : moviedb.getAllMovies()) {\n for (String genre : mov.getGenre()) {\n if (!gen.contains(genre.toLowerCase()))\n gen.add(genre.toLowerCase());\n ... | [
"0.6643085",
"0.6533942",
"0.6395997",
"0.6387713",
"0.63858885",
"0.6323969",
"0.6169138",
"0.6167267",
"0.615765",
"0.615641",
"0.61303926",
"0.6119459",
"0.61013055",
"0.60755616",
"0.6019702",
"0.6019702",
"0.5967501",
"0.59671414",
"0.5958728",
"0.5935913",
"0.5933908",
... | 0.66172516 | 1 |
get saved language from preferences | public static String getSavedLanguage(Context context) {
return getPreferences(context).getString("app-language", null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getlanguage(Context ctx) {\n\t\treturn getSharedPreferences(ctx).getString(language, \"\");\n\t}",
"protected String getLang(SharedPreferences prefs, Resources res) {\n Intent intent = getIntent();\n if (intent != null) {\n String lang = intent.getStringExtra(Recogni... | [
"0.7639323",
"0.75880605",
"0.74749327",
"0.74749327",
"0.74749327",
"0.73819697",
"0.73819697",
"0.73483276",
"0.72623384",
"0.7203095",
"0.69410324",
"0.68596196",
"0.68021524",
"0.6796314",
"0.6715685",
"0.66870105",
"0.66819394",
"0.66297776",
"0.66048783",
"0.66010815",
... | 0.79562014 | 0 |
set language to (by language code) | public static void setLanguage(Context context, String language) {
putString(context, "app-language", language, false);
putString(context, "old-app-language", language, true);
forceLocale(context);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setLanguage(Language language);",
"@Override\n public void setLanguage(String lang) {\n }",
"public void setLanguage(String language);",
"@Override\r\n\t\tpublic void setLang(String lang)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"static private void setLanguage(String strL) {\r\n\r\n\t\tstrLanguage = s... | [
"0.8489159",
"0.8132706",
"0.8121303",
"0.7705578",
"0.76713884",
"0.7641483",
"0.76062953",
"0.75729203",
"0.7571605",
"0.748312",
"0.7362208",
"0.7344934",
"0.73090035",
"0.7298228",
"0.72920936",
"0.7251323",
"0.7233051",
"0.7227709",
"0.7198111",
"0.7156002",
"0.7153401",... | 0.6668582 | 64 |
force current locale on app | public static void forceLocale(Context context) {
final String language = getSavedLanguage(context);
if (language == null) {
return;
}
Debug.logE("force locale", "language " + language);
Resources res = context.getResources();
Configuration config = res.getConfiguration();
try {
config.locale = new Locale(language);
} catch(Throwable e) {
;
}
res.updateConfiguration(config, context.getResources().getDisplayMetrics());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void initialSystemLocale(Context context)\n {\n LogpieSystemSetting setting = LogpieSystemSetting.getInstance(context);\n if (setting.getSystemSetting(KEY_LANGUAGE) == null)\n {\n String mLanguage = Locale.getDefault().getLanguage();\n if (mLanguage.equal... | [
"0.7620922",
"0.7459935",
"0.7160887",
"0.70731646",
"0.70731646",
"0.70535576",
"0.6952559",
"0.68781954",
"0.6826059",
"0.6763278",
"0.67029405",
"0.66878754",
"0.6676839",
"0.6635477",
"0.6593546",
"0.6593444",
"0.65832055",
"0.65681165",
"0.6547331",
"0.65346426",
"0.6532... | 0.75385076 | 1 |
clear cache of setting variables | public static void clearCache() {
sInstance.mSettings.clear();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void clearCache() {\n CONFIG_VALUES = null;\n RUN_MODE = null;\n }",
"public final void clear() {\r\n variablesCache.clear();\r\n }",
"void reset(){\n if (vars!=null){\n vars.clear();\n }\n if (gVars!=null){\n gVars.clear();\n ... | [
"0.80777025",
"0.7594435",
"0.7272021",
"0.7198835",
"0.7171816",
"0.71595365",
"0.6953489",
"0.6941732",
"0.688959",
"0.688959",
"0.68577725",
"0.6822574",
"0.67993087",
"0.67665833",
"0.67428976",
"0.6706643",
"0.6690055",
"0.66584665",
"0.6647021",
"0.66145504",
"0.6611435... | 0.7592202 | 2 |
get an integer settings value by key | public int getInt(String key, int defValue) {
return getInt(Global.getContext(), key, defValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSettingByKey(String key);",
"int getInt(String key);",
"public int getPropertyInt(String key);",
"int getInt( String key, int def);",
"String get(Integer key);",
"private int getInt(setting setting) {\n return setting.getValueAsInt();\n }",
"private static int getIntegerProperty(Str... | [
"0.7609322",
"0.71861625",
"0.70974016",
"0.70722777",
"0.70477885",
"0.6907624",
"0.6896215",
"0.68531877",
"0.68510264",
"0.6806792",
"0.67786956",
"0.675734",
"0.66867816",
"0.66349673",
"0.66160125",
"0.6615189",
"0.65907055",
"0.6590598",
"0.6590328",
"0.65745926",
"0.65... | 0.5824832 | 82 |
get an integer settings value by key | public static int getInt(Context context, String key, int defValue) {
if (sInstance != null && sInstance.mSettings.containsKey(key)) {
return (Integer) sInstance.mSettings.get(key);
}
int val = defValue;
try {
val = getPreferences(context).getInt(key, defValue);
} catch(ClassCastException e) {
Debug.logException(e);
}
if (sInstance != null) {
sInstance.mSettings.put(key, val);
}
return val;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSettingByKey(String key);",
"int getInt(String key);",
"public int getPropertyInt(String key);",
"int getInt( String key, int def);",
"String get(Integer key);",
"private int getInt(setting setting) {\n return setting.getValueAsInt();\n }",
"private static int getIntegerProperty(Str... | [
"0.7609322",
"0.71861625",
"0.70974016",
"0.70722777",
"0.70477885",
"0.6907624",
"0.6896215",
"0.68531877",
"0.68510264",
"0.6806792",
"0.67786956",
"0.675734",
"0.66867816",
"0.66349673",
"0.66160125",
"0.6615189",
"0.65907055",
"0.6590598",
"0.6590328",
"0.65745926",
"0.65... | 0.5797744 | 87 |
put an int value into settings | public void putInt(String key, int value, boolean commit) {
putInt(Global.getContext(), key, value, commit);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setValue(int value);",
"private static void setValueInt(int value)\n {\n Util.valueInt = value;\n }",
"void setValue(int value);",
"void setInt(String key, int val);",
"void setToValue(int val);",
"public int setValue (int val);",
"public void setInt(String key, int value){\r\n... | [
"0.7117006",
"0.7067105",
"0.69826907",
"0.681785",
"0.6816204",
"0.67961884",
"0.671627",
"0.67024994",
"0.66095984",
"0.65578914",
"0.65237343",
"0.6516951",
"0.65106076",
"0.64789736",
"0.6463765",
"0.6422483",
"0.6419131",
"0.64180726",
"0.64180726",
"0.6371253",
"0.63627... | 0.5759927 | 98 |
put a string value into settings | synchronized public static void putInt(Context context, String key, int value, boolean commit) {
ensurePreferencesEditor(context);
sPreferencesEditor.putInt(key, value);
if (commit) {
sPreferencesEditor.commit();
}
if (sInstance != null) {
sInstance.mSettings.put(key, value);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setValue(String value);",
"void setValue(String value);",
"protected void addSetting(String text) {\n // Get the key and value from the string\n String[] parts = text.split(\":\");\n \n // Get the setting name\n String name = parts[0];\n \n // Get the value... | [
"0.7235174",
"0.7235174",
"0.71769214",
"0.7148536",
"0.71473694",
"0.71473694",
"0.71473694",
"0.71473694",
"0.7010056",
"0.69922316",
"0.6904325",
"0.68953717",
"0.678426",
"0.67440885",
"0.67440796",
"0.67382085",
"0.67382085",
"0.66331357",
"0.6615227",
"0.6566691",
"0.65... | 0.0 | -1 |
get a string settings value by key | public String getString(String key, String defValue) {
return getString(Global.getContext(), key, defValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSettingByKey(String key);",
"private String get(String key)\n {\n return settings.getProperty(key);\n }",
"String get(String key) {\n return settings.get(key);\n }",
"public Object get(String key) {\r\n\t\treturn settings.get(key);\r\n\t}",
"String getSettingByKey(HawkularUser user... | [
"0.88307106",
"0.8388538",
"0.8387319",
"0.777243",
"0.7487611",
"0.7379799",
"0.7370904",
"0.7315085",
"0.7299649",
"0.7168934",
"0.7083527",
"0.70692956",
"0.7061916",
"0.7052769",
"0.703761",
"0.7009272",
"0.69952947",
"0.69597757",
"0.6954012",
"0.6927335",
"0.69118714",
... | 0.0 | -1 |
get a string settings value by key | public static String getString(Context context, String key, String defValue) {
if (sInstance != null && sInstance.mSettings.containsKey(key)) {
return (String) sInstance.mSettings.get(key);
}
String val = defValue;
try {
val = getPreferences(context).getString(key, defValue);
} catch(ClassCastException e) {
Debug.logException(e);
}
if (sInstance != null) {
sInstance.mSettings.put(key, val);
}
return val;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSettingByKey(String key);",
"private String get(String key)\n {\n return settings.getProperty(key);\n }",
"String get(String key) {\n return settings.get(key);\n }",
"public Object get(String key) {\r\n\t\treturn settings.get(key);\r\n\t}",
"String getSettingByKey(HawkularUser user... | [
"0.88307106",
"0.8388538",
"0.8387319",
"0.777243",
"0.7487611",
"0.7379799",
"0.7370904",
"0.7315085",
"0.7299649",
"0.7168934",
"0.7083527",
"0.70692956",
"0.7061916",
"0.7052769",
"0.703761",
"0.7009272",
"0.69952947",
"0.69597757",
"0.6954012",
"0.6927335",
"0.69118714",
... | 0.0 | -1 |
put a string value into settings | public void putString(String key, String value, boolean commit) {
putString(Global.getContext(), key, value, commit);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setValue(String value);",
"void setValue(String value);",
"protected void addSetting(String text) {\n // Get the key and value from the string\n String[] parts = text.split(\":\");\n \n // Get the setting name\n String name = parts[0];\n \n // Get the value... | [
"0.7235174",
"0.7235174",
"0.71769214",
"0.7148536",
"0.71473694",
"0.71473694",
"0.71473694",
"0.71473694",
"0.7010056",
"0.69922316",
"0.6904325",
"0.68953717",
"0.678426",
"0.67440885",
"0.67440796",
"0.67382085",
"0.67382085",
"0.66331357",
"0.6615227",
"0.6566691",
"0.65... | 0.0 | -1 |
put a string value into settings | synchronized public static void putString(Context context, String key, String value, boolean commit) {
ensurePreferencesEditor(context);
sPreferencesEditor.putString(key, value);
if (commit) {
sPreferencesEditor.commit();
}
if (sInstance != null) {
sInstance.mSettings.put(key, value);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setValue(String value);",
"void setValue(String value);",
"protected void addSetting(String text) {\n // Get the key and value from the string\n String[] parts = text.split(\":\");\n \n // Get the setting name\n String name = parts[0];\n \n // Get the value... | [
"0.7235174",
"0.7235174",
"0.71769214",
"0.7148536",
"0.71473694",
"0.71473694",
"0.71473694",
"0.71473694",
"0.7010056",
"0.69922316",
"0.6904325",
"0.68953717",
"0.678426",
"0.67440885",
"0.67440796",
"0.67382085",
"0.67382085",
"0.66331357",
"0.6615227",
"0.6566691",
"0.65... | 0.6490194 | 34 |
get an long settings value by key | public long getLong(String key, long defValue) {
return getLong(Global.getContext(), key, defValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSettingByKey(String key);",
"private String get(String key)\n {\n return settings.getProperty(key);\n }",
"String get(String key) {\n return settings.get(key);\n }",
"String getSettingByKey(HawkularUser user, String key);",
"public static long getLong(String key) throws UnknownID, ... | [
"0.7684474",
"0.70364255",
"0.6872631",
"0.6760501",
"0.6683973",
"0.66767293",
"0.661409",
"0.6590604",
"0.6573163",
"0.6531457",
"0.6358148",
"0.6338024",
"0.63374054",
"0.6312699",
"0.63111466",
"0.6294899",
"0.626685",
"0.6234483",
"0.6203828",
"0.6202441",
"0.6181235",
... | 0.6104147 | 22 |
get an long settings value by key | public static long getLong(Context context, String key, long defValue) {
if (sInstance != null && sInstance.mSettings.containsKey(key)) {
return (Long) sInstance.mSettings.get(key);
}
long val = defValue;
try {
val = getPreferences(context).getLong(key, defValue);
} catch(ClassCastException e) {
Debug.logException(e);
}
if (sInstance != null) {
sInstance.mSettings.put(key, val);
}
return val;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSettingByKey(String key);",
"private String get(String key)\n {\n return settings.getProperty(key);\n }",
"String get(String key) {\n return settings.get(key);\n }",
"String getSettingByKey(HawkularUser user, String key);",
"public static long getLong(String key) throws UnknownID, ... | [
"0.7684474",
"0.70364255",
"0.6872631",
"0.6760501",
"0.6683973",
"0.66767293",
"0.661409",
"0.6590604",
"0.6573163",
"0.6531457",
"0.6358148",
"0.6338024",
"0.63374054",
"0.6312699",
"0.63111466",
"0.6294899",
"0.626685",
"0.6234483",
"0.6203828",
"0.6181235",
"0.6123658",
... | 0.6202441 | 19 |
put long value into settings | synchronized public static void putLong(Context context, String key, long value, boolean commit) {
ensurePreferencesEditor(context);
sPreferencesEditor.putLong(key, value);
if (commit) {
sPreferencesEditor.commit();
}
if (sInstance != null) {
sInstance.mSettings.put(key, value);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setLong(String key, long val);",
"public void setLongValue(long value) {\n setValueIndex(getPool().findLongEntry(value, true));\n }",
"public static void setSetting(Context context, String key, long value) {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\... | [
"0.7241495",
"0.6840659",
"0.68148416",
"0.67885023",
"0.67885023",
"0.6759501",
"0.66081816",
"0.6573203",
"0.65639853",
"0.65460634",
"0.6508334",
"0.63982636",
"0.6368623",
"0.63664854",
"0.63458914",
"0.63151765",
"0.6306086",
"0.6288141",
"0.6223481",
"0.6216485",
"0.620... | 0.6651388 | 6 |
get a boolean settings value by key | public static boolean getBoolean(Context context, String key, boolean defValue) {
if (sInstance !=null && sInstance.mSettings.containsKey(key)) {
return (Boolean) sInstance.mSettings.get(key);
}
boolean val = defValue;
try {
val = getPreferences(context).getBoolean(key, defValue);
} catch(ClassCastException e) {
Debug.logException(e);
}
if (sInstance != null) {
sInstance.mSettings.put(key, val);
}
return val;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean getBoolean(String key, boolean defaultValue);",
"public boolean getBoolean( String key )\n {\n boolean value = false;\n try\n {\n if (config != null)\n {\n value = config.getBoolean(key);\n LOG.debug( \"getBoolean name [{}] value... | [
"0.7726262",
"0.7478417",
"0.74655735",
"0.74402285",
"0.7419806",
"0.7409219",
"0.7390893",
"0.7323546",
"0.73155034",
"0.7298629",
"0.7281527",
"0.72804123",
"0.7277167",
"0.72429067",
"0.719095",
"0.71494836",
"0.7121569",
"0.70931333",
"0.70878756",
"0.7073796",
"0.706055... | 0.6295788 | 58 |
get a boolean settings value by key | public boolean getBoolean(String key, boolean defValue) {
return getBoolean(Global.getContext(), key, defValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean getBoolean(String key, boolean defaultValue);",
"public boolean getBoolean( String key )\n {\n boolean value = false;\n try\n {\n if (config != null)\n {\n value = config.getBoolean(key);\n LOG.debug( \"getBoolean name [{}] value... | [
"0.7726262",
"0.7478417",
"0.74655735",
"0.74402285",
"0.7419806",
"0.7409219",
"0.7390893",
"0.7323546",
"0.73155034",
"0.7298629",
"0.7281527",
"0.72804123",
"0.7277167",
"0.72429067",
"0.719095",
"0.71494836",
"0.7121569",
"0.70931333",
"0.70878756",
"0.7073796",
"0.706055... | 0.6531599 | 42 |
put a boolean value into settings | public void putBoolean(String key, boolean value, boolean commit) {
putBoolean(Global.getContext(), key, value, commit);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void set(boolean value);",
"void setBoolean(String key, boolean val);",
"void setBoolean(boolean value);",
"public void putBooleanValue(String key, boolean value){\n SharedPreferences sharedPreference = context.getSharedPreferences(LOGIN,Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=... | [
"0.76276183",
"0.7514985",
"0.7420825",
"0.73202443",
"0.72617584",
"0.70735437",
"0.7055195",
"0.7022239",
"0.70091176",
"0.69901884",
"0.6946989",
"0.6941165",
"0.6940071",
"0.6930883",
"0.69130373",
"0.68951964",
"0.68236935",
"0.680396",
"0.6803367",
"0.67977786",
"0.6768... | 0.0 | -1 |
put a boolean value into settings | synchronized public static void putBoolean(Context context, String key, boolean value, boolean commit) {
ensurePreferencesEditor(context);
sPreferencesEditor.putBoolean(key, value);
if (commit) {
sPreferencesEditor.commit();
}
if (sInstance != null) {
sInstance.mSettings.put(key, value);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void set(boolean value);",
"void setBoolean(String key, boolean val);",
"void setBoolean(boolean value);",
"public void putBooleanValue(String key, boolean value){\n SharedPreferences sharedPreference = context.getSharedPreferences(LOGIN,Context.MODE_PRIVATE);\n SharedPreferences.Editor editor=... | [
"0.76276183",
"0.7514985",
"0.7420825",
"0.73202443",
"0.72617584",
"0.70735437",
"0.7055195",
"0.7022239",
"0.70091176",
"0.69901884",
"0.6946989",
"0.6941165",
"0.6940071",
"0.6930883",
"0.69130373",
"0.68951964",
"0.68236935",
"0.680396",
"0.6803367",
"0.67977786",
"0.6768... | 0.6713921 | 22 |
get a Serializable settings value by key | public static Serializable getSerializable(Context context, String key) {
if (sInstance !=null && sInstance.mSettings.containsKey(key)) {
return (Serializable) sInstance.mSettings.get(key);
}
Serializable val = null;
try {
final String encodedValue = getPreferences(context).getString(key, null);
if (encodedValue == null) {
return null;
}
val = (Serializable) Common.deserializeObject(Base64.decode(encodedValue.getBytes(), Base64.DEFAULT));
} catch(ClassCastException e) {
Debug.logException(e);
}
if (sInstance != null) {
sInstance.mSettings.put(key, val);
}
return val;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getSettingByKey(String key);",
"public Object get(String key) {\r\n\t\treturn settings.get(key);\r\n\t}",
"private String get(String key)\n {\n return settings.getProperty(key);\n }",
"String get(String key) {\n return settings.get(key);\n }",
"<S> S getSetting(Setting<S> setting);",
... | [
"0.78096414",
"0.7597678",
"0.7162768",
"0.70263934",
"0.6612951",
"0.6478195",
"0.6443781",
"0.64051384",
"0.6392217",
"0.6376742",
"0.63514763",
"0.63509035",
"0.6341888",
"0.6341888",
"0.62997615",
"0.62739253",
"0.6236717",
"0.6217469",
"0.61815506",
"0.61678594",
"0.6167... | 0.6613622 | 4 |
put a Serializable value into settings | synchronized public static void putSerializable(Context context, String key, Serializable value, boolean commit) {
ensurePreferencesEditor(context);
String encodedValue = new String(Base64.encode(Common.serializeObject(value), Base64.DEFAULT));
sPreferencesEditor.putString(key, encodedValue);
if (commit) {
sPreferencesEditor.commit();
}
if (sInstance != null) {
sInstance.mSettings.put(key, value);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"UserSettings store(String key, String value);",
"@Override\n public void saveValue(String key, Object value) {\n SharedPreferences.Editor editor = preferences.edit();\n if (value instanceof String) {\n editor.putString(key, (String) value);\n } else if (value instanceof Boolean... | [
"0.64848024",
"0.6126289",
"0.6085945",
"0.6008204",
"0.5963324",
"0.5865407",
"0.57990545",
"0.57759726",
"0.5771631",
"0.57592803",
"0.5750972",
"0.57107186",
"0.56863683",
"0.56710494",
"0.56619406",
"0.5654406",
"0.56529725",
"0.5648891",
"0.56330967",
"0.56113327",
"0.56... | 0.70312995 | 0 |
commit preference changes into shared preferences | public static void commitChanges(Context context) {
ensurePreferencesEditor(context);
sPreferencesEditor.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void saveSharedPref() {\n SharedPreferences.Editor editor = this.sharedPreferences.edit();\n if (checkBox.isChecked()) {\n editor.putBoolean(Constants.SP_IS_REMEMBERED_KEY, true);\n }\n editor.apply();\n }",
"public void save() {\n\t\tpreferences().flush();\n\t}"... | [
"0.708814",
"0.7078637",
"0.70698094",
"0.68729156",
"0.67902267",
"0.67534363",
"0.6750722",
"0.67172927",
"0.6694858",
"0.66610646",
"0.66438824",
"0.6629527",
"0.66120744",
"0.66038275",
"0.6598439",
"0.65714467",
"0.65287226",
"0.65082914",
"0.65042216",
"0.64979553",
"0.... | 0.6955363 | 3 |
/ Responds to HTTP GET Retrieves all customers and then injects the model in the "list" view. | @PreAuthorize("hasRole('ROLE_ADMIN')")
@RequestMapping(method = RequestMethod.GET)
public String list(Model uiModel) {
logger.info("Listing customers");
List<Customer> customers = customerService.findAll();
uiModel.addAttribute("customers", customers);
logger.info("No. of customers: " + customers.size());
return "customers/list";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/list\")\n\tpublic String listCustomers(Model themodel) {-get Customer from DAO\n\t\t//2-Add to MVC model\n\t\t\n\t\t//1\n\t\tList<Customer> theCustomers= customerService.getCustomers();\n\t\t\n\t\t\n\t\t//2\n\t\tthemodel.addAttribute(\"customers\",theCustomers);\n\t\t\n\t\t\n\t\t\n\t\treturn \"list-... | [
"0.84124255",
"0.8300714",
"0.8193757",
"0.81036234",
"0.8074839",
"0.8015752",
"0.79897666",
"0.7963397",
"0.7953558",
"0.7852568",
"0.7776916",
"0.77352273",
"0.7711055",
"0.76755977",
"0.7606028",
"0.75774163",
"0.75742257",
"0.75519764",
"0.75306934",
"0.75295043",
"0.749... | 0.77864695 | 10 |
/ Responds to HTTP GET Retrieves customer by Id and then injects the model in the "show" view. | @PreAuthorize("hasRole('ROLE_ADMIN')")
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
public String show(@PathVariable("id") Long id, Model uiModel) {
Customer customer = customerService.findById(id);
uiModel.addAttribute("customer", customer);
return "customers/show";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/{id}\")\n public String show(@PathVariable(\"id\") long id,\n Model model) {\n Customer customer = customerService.showCustomerById(id);\n model.addAttribute(CUSTOMER, customer);\n model.addAttribute(ACTUAL_ADDRESS, customer.getActualAddress());\n ... | [
"0.79148185",
"0.7838142",
"0.78373355",
"0.775757",
"0.76925373",
"0.73546803",
"0.73065084",
"0.72639155",
"0.72573006",
"0.7209007",
"0.718994",
"0.7180383",
"0.7173765",
"0.7162066",
"0.71461487",
"0.7141569",
"0.71308553",
"0.7129501",
"0.70820355",
"0.707653",
"0.707276... | 0.81479996 | 0 |
/The update() method will be triggered when user updates customer information and clicks the Save button. First, Spring MVC will try to bind the submitted data to the Customer domain object and perform the type conversion and formatting automatically. If binding errors are found (for example, the birth date was entered in the wrong format), the errors will be saved into the BindingResult interface (under the package org.springframework.validation), and an error message will be saved into the Model, redisplaying the edit view. If the binding is successful, the data will be saved, and the logical view name will be returned for the display customer view by using redirect: as the prefix. Note that we want to display the message after the redirect, so we need to use the RedirectAttributes.addFlashAttribute() method (an interface under the package org.springframework.web.servlet.mvc.support) for displaying the success message in the show customer view. In Spring MVC attributes are saved temporarily before the redirect (typically in the session) to be made available to the request after the redirect and removed immediately. | @PreAuthorize("hasRole('ROLE_ADMIN')")
@RequestMapping(value = "/{id}", params = "form", method = RequestMethod.POST)
public String update(@Valid Customer customer, BindingResult bindingResult,
Model uiModel, HttpServletRequest httpServletRequest,
RedirectAttributes redirectAttributes, Locale locale) {
logger.info("Updating customer");
if (bindingResult.hasErrors()) {
uiModel.addAttribute("message", new Message("error", messageSource.getMessage("customer_save_fail", new Object[]{}, locale)));
uiModel.addAttribute("customer", customer);
return "customers/update";
}
uiModel.asMap().clear();
redirectAttributes.addFlashAttribute("message", new Message("success",messageSource.getMessage("customer_save_success", new Object[]{}, locale)));
customerService.save(customer);
return "redirect:/customers/" + UrlUtil.encodeUrlPathSegment(customer.getId().toString(),httpServletRequest);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = \"/customer/editCustomer\", method = RequestMethod.POST)\n public String editCustomerPost(@Valid @ModelAttribute(\"customer\") Customer customer, BindingResult result,\n HttpServletRequest request ) {\n if(result.hasErrors()) {\n return ... | [
"0.70978206",
"0.7079599",
"0.69978786",
"0.6969132",
"0.69068724",
"0.673285",
"0.6703497",
"0.6703497",
"0.6645361",
"0.6596063",
"0.6509535",
"0.65004987",
"0.64517707",
"0.64299583",
"0.6425492",
"0.63320196",
"0.6319836",
"0.63151526",
"0.6313382",
"0.63035685",
"0.63018... | 0.82637036 | 0 |
/For the updateForm() method, the customer is retrieved and saved into the Model, and then the logical view customers/update is returned, which will display the edit customer view. That is, do nothing if form is sent through HTTP:GET | @PreAuthorize("hasRole('ROLE_ADMIN')")
@RequestMapping(value = "/{id}", params = "form", method = RequestMethod.GET)
public String updateForm(@PathVariable("id") Long id, Model uiModel) {
uiModel.addAttribute("customer", customerService.findById(id));
return "customers/update";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/showFormForUpdate\")\r\n\tpublic String showFormForUpdate(@RequestParam(\"customerId\") int id, Model theModel){\n\t\tCustomer theCustomer = customerService.getCustomer(id);\r\n\t\t\r\n\t\t//set customer as model attribute to pre-populate\r\n\t\ttheModel.addAttribute(\"customer\",theCustomer);\r\n\t... | [
"0.7861291",
"0.7755394",
"0.7553826",
"0.7424274",
"0.7297537",
"0.71826994",
"0.6841263",
"0.6746026",
"0.6712017",
"0.6699022",
"0.65714705",
"0.6571411",
"0.652599",
"0.6466002",
"0.64008397",
"0.64008397",
"0.63887936",
"0.63786167",
"0.63759464",
"0.6349619",
"0.6307564... | 0.7931852 | 0 |
This constructor will create a new BluePrint | public BluePrintModel(String title, String description, String uiImagePath, String spritePath, float spriteOriginX, float spriteOriginY,
float price, EnumSet<FloorModel.FloorType> canBuildOn, FloorModel.FloorType[][] tiles,
Builder builder, boolean buildOnAllFloors, Demolisher demolisher, int... allowedAngles) {
this.title = title;
this.description = description;
this.uiImagePath = uiImagePath;
this.spritePath = spritePath;
this.spriteOriginX = spriteOriginX;
this.spriteOriginY = spriteOriginY;
this.price = price;
this.canBuildOn = canBuildOn;
this.tiles = tiles;
this.builder = builder;
this.buildOnAllFloors = buildOnAllFloors;
this.allowedAngles = allowedAngles.length == 0 ? new int[] {0, 1, 2, 3} : allowedAngles;
this.demolisher = demolisher;
angle = this.allowedAngles[0];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Billfold()\n {\n \n }",
"public Printer(){ }",
"protected PrintBill() \r\n\t{/* nothing needed, but this prevents a public no-arg constructor from being created automatically */}",
"public Boop() {\n\t\tsuper();\n\t}",
"public Boat() {\n }",
"BOp createBOp();",
"public Enlightene... | [
"0.6486939",
"0.6284205",
"0.6276284",
"0.6094116",
"0.6078836",
"0.60221165",
"0.6010539",
"0.59247977",
"0.5919322",
"0.5911159",
"0.589887",
"0.5879287",
"0.5861382",
"0.58401513",
"0.58335966",
"0.5818392",
"0.58029336",
"0.5795632",
"0.57636017",
"0.5751421",
"0.5732003"... | 0.0 | -1 |
This will update the angle of the bluePrint and it will notify the BluePrintView | public void setAngle(int angle) {
this.angle = angle;
notifyViews();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void drawAngleInfo(){\n\t\tfont2.draw(batch, (\"The angle of Projection is \" + angle),(float)(screenWidth * .45), 20);\n\t}",
"public void updateRenderAngles() {\n }",
"@Override\n public void reAngle() {\n }",
"public void updateAngle(){\n\t\tif (turnUp && (angle < 180) ){\n\t\t\tangle+=1... | [
"0.6560226",
"0.6526571",
"0.6473421",
"0.6321854",
"0.6106517",
"0.6100623",
"0.60983425",
"0.6065827",
"0.6011941",
"0.594916",
"0.58716124",
"0.58301735",
"0.58172464",
"0.5744212",
"0.5709656",
"0.570942",
"0.56789863",
"0.56694376",
"0.56259054",
"0.56231177",
"0.5620913... | 0.56643075 | 18 |
This variable stores whether this building can be build on the current position | public void setCanBuild(boolean canBuild) {
this.canBuild = canBuild;
notifyViews();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isBuildable() {\r\n return buildable;\r\n }",
"boolean hasBuild();",
"@java.lang.Override\n public boolean hasBuild() {\n return instance.hasBuild();\n }",
"public boolean canBuild(int numToBuild) \n\t{\n\t\t return (numBuildings+numToBuild) <= MAX_NUM_UNITS;... | [
"0.73912257",
"0.71315604",
"0.703565",
"0.69690627",
"0.69025624",
"0.6811552",
"0.6780695",
"0.67769426",
"0.66552716",
"0.66552716",
"0.66310394",
"0.6569866",
"0.6488253",
"0.64794403",
"0.64369166",
"0.6404345",
"0.6390609",
"0.63678867",
"0.63025683",
"0.6300916",
"0.62... | 0.5949605 | 56 |
Is the bluePrint active? | public boolean isActive() {
return active;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasActive();",
"public boolean getActive();",
"public boolean getActive();",
"public boolean isEnabledPrint() {\n return enabledPrint;\n }",
"public boolean isActive(){\r\n\t\treturn active_;\r\n\t}",
"public boolean isFrameActive()\n {\n return isActive();\n }",
"public ... | [
"0.65836096",
"0.6382896",
"0.6382896",
"0.6373124",
"0.6356522",
"0.6356187",
"0.6349405",
"0.6330735",
"0.6311162",
"0.6311162",
"0.6311162",
"0.6304955",
"0.62992215",
"0.62748635",
"0.6241449",
"0.6194044",
"0.6181482",
"0.6179669",
"0.61748266",
"0.61748266",
"0.61748266... | 0.60601217 | 48 |
When active, the bluePrintView should be showed | public void setActive(boolean active) {
this.active = active;
notifyViews();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\n\tpublic void show() {\n\t\tsuper.show();\n\t\t\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic vo... | [
"0.5958157",
"0.5958157",
"0.5958157",
"0.5936266",
"0.5926612",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"0.58658403",
"... | 0.0 | -1 |
Builders should create a Building on a given position | @FunctionalInterface
public interface Builder {
BuildingModel build(int x, int y, int angle, int floor);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer CreateBuilding(Building B) {\n\t\tif (BuildingContainer.size() == 0) {\n\t\t\tif ((TileID !=4)&(TileID != 3)){\n\t\t\t\tBuildingContainer.add(B);\n\t\t\t\tB.locate(xloc, yloc);\n\t\t\t\treturn 1; //Placement success\n\t\t\t} else {\n\t\t\t\treturn 0; //Tile is mountains or water\n\t\t\t}\n\t\t} else... | [
"0.62738585",
"0.61519",
"0.61245596",
"0.59844583",
"0.5938411",
"0.58553064",
"0.57328176",
"0.56979597",
"0.5689633",
"0.5666148",
"0.56659186",
"0.5621099",
"0.55890644",
"0.55845946",
"0.5543481",
"0.55159146",
"0.5506487",
"0.5482368",
"0.54686123",
"0.5448218",
"0.5432... | 0.6183609 | 1 |
Demolishers can take action when a building is removed | @FunctionalInterface
public interface Demolisher {
void demolish(BuildingModel building);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void doDeleteBuilding() {\r\n\t\tif (renderer.surface != null) {\r\n\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\tdeleteEntitiesOf(renderer.surface.buildingmap, renderer.selectedRectangle, true);\r\n\t\t\tundo.setAfter();\r\n\t\t\taddUndo(undo);\r\n\t\t\trepaint();\r\n\t\t}... | [
"0.7057345",
"0.66276264",
"0.6504666",
"0.611761",
"0.61098105",
"0.60133094",
"0.60075223",
"0.60000235",
"0.5978883",
"0.595751",
"0.59525037",
"0.59238183",
"0.5915576",
"0.5866786",
"0.5865198",
"0.5862336",
"0.5855995",
"0.58497214",
"0.58442336",
"0.5807558",
"0.580177... | 0.5998869 | 8 |
Tests for serializer initialization | @Test
public void testInitializeWithSerializer() throws Exception {
final TypeSerializer<String> serializer = StringSerializer.INSTANCE;
final TestStateDescriptor<String> descr = new TestStateDescriptor<>("test", serializer);
assertTrue(descr.isSerializerInitialized());
assertNotNull(descr.getSerializer());
assertTrue(descr.getSerializer() instanceof StringSerializer);
// this should not have any effect
descr.initializeSerializerUnlessSet(new ExecutionConfig());
assertTrue(descr.isSerializerInitialized());
assertNotNull(descr.getSerializer());
assertTrue(descr.getSerializer() instanceof StringSerializer);
TestStateDescriptor<String> clone = CommonTestUtils.createCopySerializable(descr);
assertTrue(clone.isSerializerInitialized());
assertNotNull(clone.getSerializer());
assertTrue(clone.getSerializer() instanceof StringSerializer);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Before\n public void startUp() {\n registry = new DeserializerRegistryImpl();\n registry.init();\n }",
"private SerializerFactory() {\r\n registerAvailableSerializers();\r\n }",
"@Before\n public void setUp() {\n InternalDataSerializer.reinitialize();\n }",
"@Test\n public vo... | [
"0.7099188",
"0.7076699",
"0.70672065",
"0.67701364",
"0.65298563",
"0.64156556",
"0.6348853",
"0.6173291",
"0.61717874",
"0.6111613",
"0.6034339",
"0.5992543",
"0.5968011",
"0.5955208",
"0.5923799",
"0.58852315",
"0.5882545",
"0.5881886",
"0.5874081",
"0.5867848",
"0.5857816... | 0.7494081 | 0 |
guard our test assumptions. | @Test
public void testInitializeSerializerAfterSerializationWithCustomConfig() throws Exception {
assertEquals(
"broken test assumption",
-1,
new KryoSerializer<>(String.class, new ExecutionConfig())
.getKryo()
.getRegistration(File.class)
.getId());
final ExecutionConfig config = new ExecutionConfig();
config.registerKryoType(File.class);
final TestStateDescriptor<Path> original = new TestStateDescriptor<>("test", Path.class);
TestStateDescriptor<Path> clone = CommonTestUtils.createCopySerializable(original);
clone.initializeSerializerUnlessSet(config);
// serialized one (later initialized) carries the registration
assertTrue(
((KryoSerializer<?>) clone.getSerializer())
.getKryo()
.getRegistration(File.class)
.getId()
> 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n\tpublic void testSanity() {\n\t}",
"private void assertAll() {\n\t\t\n\t}",
"@Test\n\tpublic void testEvilPuzzleGeneration() {\n\t}",
"public void testPreConditions() {\r\n\t //fail(\"Precondition check not implemented!\");\r\n\t assertEquals(true,true);\r\n\t }",
"@Test\n public void t... | [
"0.654621",
"0.64721215",
"0.64221054",
"0.6388744",
"0.62532264",
"0.6222837",
"0.6204463",
"0.61977327",
"0.61489564",
"0.6077256",
"0.6012527",
"0.59974873",
"0.5980666",
"0.5967127",
"0.5962819",
"0.5959139",
"0.5942895",
"0.5905075",
"0.5895928",
"0.5887897",
"0.58811516... | 0.0 | -1 |
Tests for serializer initialization FLINK6775, tests that the returned serializer is duplicated. This allows to share the state descriptor across threads. | @Test
public void testSerializerDuplication() throws Exception {
// we need a serializer that actually duplicates for testing (a stateful one)
// we use Kryo here, because it meets these conditions
TypeSerializer<String> statefulSerializer =
new KryoSerializer<>(String.class, new ExecutionConfig());
TestStateDescriptor<String> descr = new TestStateDescriptor<>("foobar", statefulSerializer);
TypeSerializer<String> serializerA = descr.getSerializer();
TypeSerializer<String> serializerB = descr.getSerializer();
// check that the retrieved serializers are not the same
assertNotSame(serializerA, serializerB);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testInitializeWithSerializer() throws Exception {\n final TypeSerializer<String> serializer = StringSerializer.INSTANCE;\n final TestStateDescriptor<String> descr = new TestStateDescriptor<>(\"test\", serializer);\n\n assertTrue(descr.isSerializerInitialized());\n ... | [
"0.73002243",
"0.70211554",
"0.6612397",
"0.59049904",
"0.55815965",
"0.5517213",
"0.5364047",
"0.53180385",
"0.5278672",
"0.5249133",
"0.5227084",
"0.5226284",
"0.5152821",
"0.51314515",
"0.5125466",
"0.5068257",
"0.50643003",
"0.49847415",
"0.49745095",
"0.49584723",
"0.493... | 0.8054197 | 0 |
Test hashCode() and equals() | @Test
public void testHashCodeAndEquals() throws Exception {
final String name = "testName";
TestStateDescriptor<String> original = new TestStateDescriptor<>(name, String.class);
TestStateDescriptor<String> same = new TestStateDescriptor<>(name, String.class);
TestStateDescriptor<String> sameBySerializer =
new TestStateDescriptor<>(name, StringSerializer.INSTANCE);
// test that hashCode() works on state descriptors with initialized and uninitialized
// serializers
assertEquals(original.hashCode(), same.hashCode());
assertEquals(original.hashCode(), sameBySerializer.hashCode());
assertEquals(original, same);
assertEquals(original, sameBySerializer);
// equality with a clone
TestStateDescriptor<String> clone = CommonTestUtils.createCopySerializable(original);
assertEquals(original, clone);
// equality with an initialized
clone.initializeSerializerUnlessSet(new ExecutionConfig());
assertEquals(original, clone);
original.initializeSerializerUnlessSet(new ExecutionConfig());
assertEquals(original, same);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testHashCode() {\n\t\t// Same hashcode must be returned for equal objects\n\t\tassertTrue(\"Should have same hash code\", basic.hashCode() == equalsBasic.hashCode());\n\t}",
"@Test\n public void hashCodeTest() {\n prepareEntitiesForEqualityTest();\n\n assertEquals(entity0.ha... | [
"0.77595615",
"0.7529113",
"0.74568224",
"0.731637",
"0.73011285",
"0.7263831",
"0.72339106",
"0.7135054",
"0.71091884",
"0.7095816",
"0.708828",
"0.7034189",
"0.70320165",
"0.70043945",
"0.6998165",
"0.6987157",
"0.6986051",
"0.68983054",
"0.68983054",
"0.689779",
"0.6896918... | 0.64570564 | 61 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof Method)) {
return false;
}
Method other = (Method) object;
if ((this.idmethod == null && other.idmethod != null) || (this.idmethod != null && !this.idmethod.equals(other.idmethod))) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void se... | [
"0.6896886",
"0.6838461",
"0.67056817",
"0.66419715",
"0.66419715",
"0.6592331",
"0.6579151",
"0.6579151",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.65624106",
"0.65624106",
"0.65441847",
"0.65243006",
"0.65154546",
"0.6487427",
"0.64778... | 0.0 | -1 |
save template in succesfactor | public Long saveTemplate(Template template)
{
TemplateDAO dao = new TemplateDAO();
dao.saveNew(template);
return template.getId();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveTemplate(String filename){\n Context context = App.getContext();\n LogManager.reportStatus(context, \"INSPECTOR\", \"savingTemplate\");\n blueprint = currentTemplate.createBlueprint();\n //make sure we have correct extension\n filename = FileManager.removeExtensio... | [
"0.69850415",
"0.6967693",
"0.66337323",
"0.6626024",
"0.6484239",
"0.6015171",
"0.5979498",
"0.59732044",
"0.58829075",
"0.5852447",
"0.58310884",
"0.57946765",
"0.57451254",
"0.55863094",
"0.5572046",
"0.5563345",
"0.5538359",
"0.55355626",
"0.55010587",
"0.54860026",
"0.54... | 0.5770412 | 12 |
delete template in succesfactor | public void deleteTemplate(Template template)
{
TemplateDAO dao = new TemplateDAO();
dao.delete(template);
//return template.getId();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void deleteTemplateTest() throws IdfyException, Exception {\n UUID id = UUID.randomUUID();\n api.deleteTemplate(id);\n }",
"private void removeTemplate()\r\n {\r\n\t String template = keyField.getText();\r\n\t if (template.length()==0)\r\n\t {\r\n\t\t label.setText(\"... | [
"0.7172964",
"0.6863686",
"0.6680513",
"0.66217285",
"0.65754163",
"0.65691346",
"0.65624756",
"0.6549206",
"0.6410179",
"0.63952446",
"0.63620365",
"0.6314568",
"0.6304058",
"0.6297687",
"0.62549937",
"0.619906",
"0.6199019",
"0.6142915",
"0.61219084",
"0.60915667",
"0.60898... | 0.6988575 | 1 |
boolean template in succesfactor | public Boolean updateTemplate(Template template)
{
TemplateDAO dao = new TemplateDAO();
dao.save(template);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getBooleanTrueExpression();",
"boolean booleanOf();",
"BooleanValue createBooleanValue();",
"BooleanValue createBooleanValue();",
"BooleanValue createBooleanValue();",
"BooleanValue createBooleanValue();",
"BooleanLiteralExp createBooleanLiteralExp();",
"BooleanExpression createBooleanExpressi... | [
"0.65965277",
"0.6387297",
"0.63107795",
"0.63107795",
"0.63107795",
"0.63107795",
"0.6282128",
"0.62379384",
"0.62379384",
"0.62189126",
"0.62102914",
"0.617057",
"0.615478",
"0.61438316",
"0.61102855",
"0.610639",
"0.610639",
"0.610639",
"0.610639",
"0.6044838",
"0.60445017... | 0.0 | -1 |
update signature in succesfactor | public Boolean updateSignatureTemplate(TemplateSignature signature)
{
TemplateSignatureDAO dao = new TemplateSignatureDAO();
dao.save(signature);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ISModifySignature createISModifySignature();",
"int getSignature ();",
"public void testX509SignatureThumb() throws Exception {\n WSSecSignature builder = new WSSecSignature();\n builder.setUserInfo(\"16c73ab6-b892-458f-abf5-2f875f74882e\", \"security\");\n builder.setKeyIdentifierType(WSC... | [
"0.6562393",
"0.62313855",
"0.6133846",
"0.6052236",
"0.59388477",
"0.59141266",
"0.59121585",
"0.59121585",
"0.59121585",
"0.5879209",
"0.5819605",
"0.58015156",
"0.57784986",
"0.5716552",
"0.5714771",
"0.56965715",
"0.5674825",
"0.56677884",
"0.5660696",
"0.56487626",
"0.56... | 0.61238325 | 3 |
Insert fields of template | public boolean insertFieldsTemplate(Template template, ArrayList<FieldsTemplate> fields)
{
FieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();
for (FieldsTemplate field:fields)
{
field.setTemplateId(template);
daoTemplate.saveNew(field);
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void insertTemplateFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException, FormException {\n PreparedStatement insert = null;\n \n try {\n insert = con.prepareStatement(INSERT_TEMPLATE_FIELD);\n \n int internalId = template.getInternalId();\n Fiel... | [
"0.68169594",
"0.6517842",
"0.63277906",
"0.6303232",
"0.62459886",
"0.61480457",
"0.6097865",
"0.6049745",
"0.5989026",
"0.5942934",
"0.58270997",
"0.5810245",
"0.5802201",
"0.57928765",
"0.57858014",
"0.57831264",
"0.5723924",
"0.56584835",
"0.5609407",
"0.5600981",
"0.5578... | 0.6230995 | 5 |
delete fields of template | public boolean deleteFieldsTemplate(Template template)
{
FieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();
return daoTemplate.deleteFieldsByIdTemplate(template);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void clearFields(){\r\n fields.forEach(e -> e.clear());\r\n }",
"private void deleteFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException {\n PreparedStatement delete = null;\n \n try {\n int internalId = template.getInternalId();\n \n dele... | [
"0.6975797",
"0.6959617",
"0.65722364",
"0.6464702",
"0.62902766",
"0.61564034",
"0.61281955",
"0.61141664",
"0.60840034",
"0.603846",
"0.59671354",
"0.59426296",
"0.59039634",
"0.5903408",
"0.5881912",
"0.58743244",
"0.5871775",
"0.58625185",
"0.5841164",
"0.5819172",
"0.581... | 0.69758755 | 0 |
update fields of template | public boolean updateFieldsTemplate(ArrayList<FieldsTemplate> fields)
{
FieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();
for (FieldsTemplate field:fields)
{
daoTemplate.save(field);
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateNonDynamicFields() {\n\n\t}",
"protected void updateFromTemplate() {\r\n try {\r\n if (templateList.getSelectedItem() != null) {\r\n getConfigurer().loadPropertiesFromFile((String) templateList.getSelectedItem());\r\n Iterator<PropertyInputPan... | [
"0.6863872",
"0.65603286",
"0.65177655",
"0.6436583",
"0.6354865",
"0.6354165",
"0.61543816",
"0.6115106",
"0.61142015",
"0.61047816",
"0.61012286",
"0.60021466",
"0.5895439",
"0.58835787",
"0.58829546",
"0.5792805",
"0.5792727",
"0.57859665",
"0.57247835",
"0.5702074",
"0.56... | 0.6439747 | 3 |
return all list of field | public Collection<FieldsTemplate> getFieldsTemplateList(Long idTemplate)
{
FieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();
Template template = new Template();
template.setId(idTemplate);
Collection<FieldsTemplate> responseList = daoTemplate.getAllFields(template);
loggerSingle.info("num fields template "+idTemplate+": "+responseList.size());
return responseList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Field> getFields();",
"java.util.List<com.sagas.meta.model.MetaFieldData> \n getFieldsList();",
"java.util.List<Field>\n getFieldsList();",
"@Override\n\tpublic List<Field> getAll() {\n\t\treturn null;\n\t}",
"@Override\n public java.util.List<Field> getFieldsList() {\n return fiel... | [
"0.8493518",
"0.82373214",
"0.8210598",
"0.80275065",
"0.7715783",
"0.75238794",
"0.7365053",
"0.7330368",
"0.73135835",
"0.7301791",
"0.73013836",
"0.7274917",
"0.7271725",
"0.72608304",
"0.72282606",
"0.72278666",
"0.71839035",
"0.71340495",
"0.7121484",
"0.70970625",
"0.70... | 0.0 | -1 |
return all list of field | public PpdDocGenRequestPayloadDto getFieldsTemplateListWithLib(Long idTemplate)
{
FieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();
FieldsTemplateLibraryDAO daoTemplateLib = new FieldsTemplateLibraryDAO();
Template template = new Template();
template.setId(idTemplate);
Collection<FieldsTemplate> responseList = daoTemplate.getAllFields(template);
Collection<FieldsTemplateLibrary> responseTempLib = daoTemplateLib.getAllFields();
PpdDocGenRequestPayloadDto respose = UtilMapping.templateFielsEntityToDTO(responseList,responseTempLib);
return respose;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Field> getFields();",
"java.util.List<com.sagas.meta.model.MetaFieldData> \n getFieldsList();",
"java.util.List<Field>\n getFieldsList();",
"@Override\n\tpublic List<Field> getAll() {\n\t\treturn null;\n\t}",
"@Override\n public java.util.List<Field> getFieldsList() {\n return fiel... | [
"0.8493518",
"0.82373214",
"0.8210598",
"0.80275065",
"0.7715783",
"0.75238794",
"0.7365053",
"0.7330368",
"0.73135835",
"0.7301791",
"0.73013836",
"0.7274917",
"0.7271725",
"0.72608304",
"0.72282606",
"0.72278666",
"0.71839035",
"0.71340495",
"0.7121484",
"0.70970625",
"0.70... | 0.0 | -1 |
return all list of templates | public Collection<Template> getListTemplates()
{
TemplateDAO dao = new TemplateDAO();
return dao.getAll(UtilCodesEnum.CODE_ACTIVE.getCode(),null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Template> getTemplates() {\r\n\t\treturn templateDao.findAll();\r\n\t}",
"public ArrayList<Template> getTemplates() {\n\t\treturn getPageObjects(Template.class);\n\t}",
"public List<Template> getTemplates() {\n return templates;\n }",
"public List<String> getTemplates() {\r\n\t\treturn this.t... | [
"0.7753651",
"0.77241504",
"0.75570047",
"0.74220973",
"0.7330189",
"0.7296343",
"0.7260842",
"0.7256212",
"0.6879696",
"0.68443555",
"0.6823178",
"0.6803042",
"0.67833817",
"0.6779536",
"0.6713276",
"0.66764057",
"0.66383386",
"0.6524754",
"0.65229225",
"0.6518042",
"0.64961... | 0.7572489 | 2 |
find template by id | public Template getTemplateById(Long id)
{
TemplateDAO dao = new TemplateDAO();
Template template = dao.getById(id,UtilCodesEnum.CODE_ACTIVE.getCode());
return template;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Template getTemplate(String templateID) {\r\n // Gets the templates collection and creates a query string for the template id\r\n MongoCollection templates = mongoDB.getCollection(\"Templates\");\r\n Document query = new Document(\"_id\", new ObjectId(templateID));\r\n\r\n // Loo... | [
"0.68685776",
"0.67125916",
"0.6468214",
"0.64614457",
"0.6420974",
"0.64147973",
"0.6382845",
"0.636501",
"0.62986124",
"0.6204218",
"0.618122",
"0.6098365",
"0.6097944",
"0.60970026",
"0.60873264",
"0.6023181",
"0.60105556",
"0.5996873",
"0.5971919",
"0.59056765",
"0.589394... | 0.65764487 | 2 |
find template by id | public FieldsTemplate getFielTemplateById(Long id)
{
FieldsTemplateDAO dao = new FieldsTemplateDAO();
FieldsTemplate fieldTemplate = dao.getById(id);
return fieldTemplate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Template getTemplate(String templateID) {\r\n // Gets the templates collection and creates a query string for the template id\r\n MongoCollection templates = mongoDB.getCollection(\"Templates\");\r\n Document query = new Document(\"_id\", new ObjectId(templateID));\r\n\r\n // Loo... | [
"0.68685776",
"0.67125916",
"0.65764487",
"0.6468214",
"0.64614457",
"0.6420974",
"0.64147973",
"0.6382845",
"0.62986124",
"0.6204218",
"0.618122",
"0.6098365",
"0.6097944",
"0.60970026",
"0.60873264",
"0.6023181",
"0.60105556",
"0.5996873",
"0.5971919",
"0.59056765",
"0.5893... | 0.636501 | 8 |
Methods Signature get all templates by event listener specific | public ArrayList<Template> getListTemplatesByEventList(Long idEventListener)
{
TemplateDAO dao = new TemplateDAO();
Collection<Template> listCollection = dao.getAllTemplateByEventList(idEventListener);
return (new ArrayList<Template>(listCollection));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> getListOfTemplatesInGadget(){\r\n\t\tList<String> templates = new ArrayList<String>();\r\n\t\tList<WebElement> ele = driver.findElements(By.xpath(\"//div[contains(@class,'x-gadget')]//div[contains(@class,'helpdesk-newcall')]//div[@class='tplLabel']\"));\r\n\t\tfor(WebElement template : ele)\r\n... | [
"0.59591013",
"0.5872641",
"0.5851771",
"0.5623524",
"0.56047916",
"0.55102324",
"0.539092",
"0.5386009",
"0.5373978",
"0.5366806",
"0.5287327",
"0.5252395",
"0.52492636",
"0.5165125",
"0.5156869",
"0.5132227",
"0.5105039",
"0.50782955",
"0.5073661",
"0.5057263",
"0.50311273"... | 0.70149213 | 0 |
save sings of document | public boolean saveSingsTemplateDocX(TemplateGroupSignature group,ArrayList<TemplateSignature> singList)
{
try
{
TemplateSignatureDAO dao = new TemplateSignatureDAO();
for (TemplateSignature item:singList)
{
//item.setSignatureGroupTemplateId(group);
dao.saveNew(item);
}
return true;
}
catch (Exception e) {
loggerSingle.error(e.getMessage());
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveDocument() throws IOException;",
"@Override\n\tpublic void saveDocument(String path, String name) {\n\t\t\n\t}",
"void saveDocument(SingleDocumentModel model, Path newPath);",
"public void save(){\r\n\t\t//System.out.println(\"call save\");\r\n\t\tmodel.printDoc();\r\n\t}",
"public void sav... | [
"0.7518797",
"0.7370392",
"0.7338633",
"0.73065305",
"0.72328085",
"0.70995206",
"0.70274806",
"0.6988182",
"0.6988182",
"0.6988182",
"0.6830676",
"0.6830676",
"0.67570543",
"0.67570543",
"0.67570543",
"0.67570543",
"0.6734588",
"0.66350335",
"0.6626371",
"0.6626371",
"0.6604... | 0.0 | -1 |
update signature of template | public boolean updateSignatureTemplate(ArrayList<TemplateSignature> signatureList)
{
TemplateSignatureDAO dao = new TemplateSignatureDAO();
for (TemplateSignature item:signatureList)
{
dao.save(item);
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean updateSignatureTemplate(TemplateSignature signature)\n\t{\n\t\tTemplateSignatureDAO dao = new TemplateSignatureDAO();\n\t\tdao.save(signature);\t\t\n\t\treturn true;\n\t}",
"ISModifySignature createISModifySignature();",
"void setSignatureType(int signatureType);",
"void setSignature(String si... | [
"0.6978644",
"0.6813883",
"0.58442146",
"0.5832265",
"0.5714915",
"0.5624837",
"0.56215453",
"0.5611537",
"0.5611537",
"0.5611537",
"0.55848056",
"0.5555924",
"0.5533481",
"0.5507372",
"0.5498636",
"0.5492835",
"0.54860795",
"0.54685664",
"0.5467109",
"0.54073155",
"0.5379415... | 0.56955576 | 5 |
return all list of Signature | public Collection<TemplateSignature> getSignatureTemplateList(Long idGroupSignatureTemplate)
{
TemplateSignatureDAO dao = new TemplateSignatureDAO();
TemplateGroupSignature group = new TemplateGroupSignature();
group.setId(idGroupSignatureTemplate);
Collection<TemplateSignature> responseList = dao.getAllFields(group);
loggerSingle.info("num signature group "+idGroupSignatureTemplate+": "+responseList.size());
return responseList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Iterator getSignatures()\n {\n if (subSigs == null)\n {\n ArrayList sigs = new ArrayList();\n\n sigs.addAll(keySigs);\n\n for (int i = 0; i != idSigs.size(); i++)\n {\n sigs.addAll((Collection)idSigs.get(i));\n }\n ... | [
"0.7390193",
"0.7356763",
"0.7355693",
"0.7036505",
"0.6923821",
"0.68533933",
"0.6846196",
"0.68434894",
"0.6519665",
"0.6516306",
"0.648621",
"0.6388254",
"0.6358013",
"0.6333474",
"0.6333474",
"0.6333474",
"0.6320677",
"0.62306416",
"0.6230521",
"0.61849344",
"0.6134029",
... | 0.5950549 | 29 |
find signature+ by id | public TemplateSignature getSignatureById(Long idSignature)
{
TemplateSignatureDAO dao = new TemplateSignatureDAO();
TemplateSignature sign = dao.getById(idSignature);
return sign;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Iterator getSignaturesForID(\n String id)\n {\n for (int i = 0; i != ids.size(); i++)\n {\n if (id.equals(ids.get(i)))\n {\n return ((ArrayList)idSigs.get(i)).iterator();\n }\n }\n \n return null;\n }",
"Sign... | [
"0.6637399",
"0.6117336",
"0.5962886",
"0.59329426",
"0.5922012",
"0.57849824",
"0.57849824",
"0.57849824",
"0.57539475",
"0.5669079",
"0.56502074",
"0.55997",
"0.55955946",
"0.5584131",
"0.55366623",
"0.55300295",
"0.54891014",
"0.5424963",
"0.5394183",
"0.5336008",
"0.53032... | 0.6008856 | 2 |
Methods Group Signature Save list Group Signature of template | public boolean saveGroupSingTemplate(Template template, ArrayList<TemplateGroupSignature> groupList)
{
TemplateGroupSignatureDAO dao = new TemplateGroupSignatureDAO();
for (TemplateGroupSignature item:groupList)
{
item.setTemplateId(template);
dao.saveNew(item);
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean saveSingsTemplateDocX(TemplateGroupSignature group,ArrayList<TemplateSignature> singList) \n\t{\n\t\ttry\n\t\t{\n\t\t\tTemplateSignatureDAO dao = new TemplateSignatureDAO();\n\t\t\t\n\t\t\tfor (TemplateSignature item:singList)\n\t\t\t{\n\t\t\t\t//item.setSignatureGroupTemplateId(group);\t\t\t\n\t\t\... | [
"0.7252183",
"0.6593541",
"0.64817315",
"0.6468203",
"0.59731644",
"0.5536168",
"0.5386407",
"0.5376771",
"0.52031064",
"0.52031064",
"0.52031064",
"0.51935065",
"0.5158051",
"0.51334494",
"0.5107373",
"0.5090901",
"0.5027376",
"0.50138354",
"0.49816322",
"0.49758962",
"0.494... | 0.72163314 | 1 |
Save Group Signature of template | public TemplateGroupSignature saveGroupSingTemplate(Template template, TemplateGroupSignature group)
{
TemplateGroupSignatureDAO dao = new TemplateGroupSignatureDAO();
group = dao.saveNew(group);
return group;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean saveGroupSingTemplate(Template template, ArrayList<TemplateGroupSignature> groupList)\n\t{\n\t\tTemplateGroupSignatureDAO dao = new TemplateGroupSignatureDAO();\n\t\t\n\t\tfor (TemplateGroupSignature item:groupList)\n\t\t{\n\t\t\titem.setTemplateId(template);\n\t\t\tdao.saveNew(item);\t\n\t\t}\n\t\t... | [
"0.68973166",
"0.6755743",
"0.57977325",
"0.5614171",
"0.5553273",
"0.5529732",
"0.5452695",
"0.54342115",
"0.5412775",
"0.53329176",
"0.53229296",
"0.52639586",
"0.5246358",
"0.5186183",
"0.518348",
"0.518348",
"0.518348",
"0.51478446",
"0.51214594",
"0.5120098",
"0.5096568"... | 0.73028064 | 0 |
return all list of Group Signature | public ArrayList<TemplateGroupSignature> getSignatureGroupTemplateList(Long idTemplate)
{
TemplateGroupSignatureDAO dao = new TemplateGroupSignatureDAO();
Template template = new Template();
template.setId(idTemplate);
Collection<TemplateGroupSignature> signatureList = dao.getAllFields(template);
ArrayList<TemplateGroupSignature> responseList = new ArrayList<TemplateGroupSignature>(signatureList);
loggerSingle.info("num group signature template "+idTemplate+": "+responseList.size());
return responseList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Collection<TemplateSignature> getSignatureTemplateList(Long idGroupSignatureTemplate)\n\t{\n\t\tTemplateSignatureDAO dao = new TemplateSignatureDAO();\n\t\t\n\t\tTemplateGroupSignature group = new TemplateGroupSignature();\n\t\tgroup.setId(idGroupSignatureTemplate);\n\t\t\n\t\tCollection<TemplateSignature> ... | [
"0.6881419",
"0.64451605",
"0.6416266",
"0.626857",
"0.60797507",
"0.5984288",
"0.5983818",
"0.5973884",
"0.5967058",
"0.58706677",
"0.5813778",
"0.58037746",
"0.57822293",
"0.5774712",
"0.5718162",
"0.56812924",
"0.5656005",
"0.56444585",
"0.5633937",
"0.5607334",
"0.5602165... | 0.6847094 | 1 |
Methods Template filters get template filter by id | public TemplateFilters templateFiltersGetById(Long idTemplateFilter){
TemplateFiltersDAO dao = new TemplateFiltersDAO();
return dao.getById(idTemplateFilter);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<TemplateFilters> templateFiltersGetAllById(Template template)\n\t{\n\t\tTemplateFiltersDAO dao = new TemplateFiltersDAO();\n\t\tCollection<TemplateFilters> listResponse = dao.getAllTemplateFiltersById(template);\n\t\treturn (new ArrayList<TemplateFilters>(listResponse)); \n\t}",
"public TrafficI... | [
"0.6466275",
"0.5398726",
"0.53527844",
"0.5330619",
"0.53304005",
"0.53250974",
"0.5295422",
"0.5292696",
"0.5287541",
"0.52676743",
"0.52592194",
"0.5255128",
"0.52547455",
"0.52479386",
"0.5231637",
"0.5223598",
"0.5220038",
"0.5198017",
"0.5172928",
"0.51605314",
"0.51448... | 0.73598504 | 0 |
get all templates filters by id template | public ArrayList<TemplateFilters> templateFiltersGetAllById(Template template)
{
TemplateFiltersDAO dao = new TemplateFiltersDAO();
Collection<TemplateFilters> listResponse = dao.getAllTemplateFiltersById(template);
return (new ArrayList<TemplateFilters>(listResponse));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TemplateFilters templateFiltersGetById(Long idTemplateFilter){\n\t\tTemplateFiltersDAO dao = new TemplateFiltersDAO();\n\t\treturn dao.getById(idTemplateFilter);\n\t}",
"List<TemplateDTO> getAllTemplates() throws GAException;",
"TemplateList getAllTemplates(String templateType) throws NotificationClient... | [
"0.6539062",
"0.64789855",
"0.6202033",
"0.6107072",
"0.60175174",
"0.5960657",
"0.5947968",
"0.5838821",
"0.583674",
"0.5810254",
"0.56764233",
"0.56599927",
"0.5645661",
"0.56247747",
"0.5556238",
"0.54824394",
"0.5465686",
"0.54552543",
"0.5443863",
"0.53972894",
"0.538388... | 0.69198555 | 0 |
delete template filter by id template filters | public Boolean templateFiltersDelete(Long idTemplateFilters)
{
TemplateFiltersDAO dao = new TemplateFiltersDAO();
dao.deleteTemplateFilterById(idTemplateFilters);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean deleteTemplateFilterByIdTemplate(Long idTemplate)\n\t{\n\t\tTemplateFiltersDAO dao = new TemplateFiltersDAO();\n\t\treturn dao.deleteTemplateFilterByIdTemplate(idTemplate);\n\t}",
"public void delete(int id){ \n\t\tActivity e=(Activity)template.get(Activity.class,id); \n\t template.delete(e);... | [
"0.6788627",
"0.6091679",
"0.6071192",
"0.59990454",
"0.59260803",
"0.5885978",
"0.5747529",
"0.56638175",
"0.5647521",
"0.56366026",
"0.56298167",
"0.56253254",
"0.5616101",
"0.5612808",
"0.5608606",
"0.5588813",
"0.55644524",
"0.5557567",
"0.55099195",
"0.5509526",
"0.55081... | 0.6781721 | 1 |
delete template filter by id template | public boolean deleteTemplateFilterByIdTemplate(Long idTemplate)
{
TemplateFiltersDAO dao = new TemplateFiltersDAO();
return dao.deleteTemplateFilterByIdTemplate(idTemplate);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deleteTemplate(Template template)\n\t{\n\t\tTemplateDAO dao = new TemplateDAO();\n\t\tdao.delete(template);\t\t\n\t\t//return template.getId();\n\t}",
"@Test\n public void deleteTemplateTest() throws IdfyException, Exception {\n UUID id = UUID.randomUUID();\n api.deleteTemplate(id);\... | [
"0.7026191",
"0.69969136",
"0.67805153",
"0.6647228",
"0.6526572",
"0.6471835",
"0.63659286",
"0.634617",
"0.629341",
"0.62551427",
"0.6230063",
"0.6207203",
"0.6169646",
"0.616292",
"0.61479723",
"0.61476797",
"0.60934335",
"0.6074746",
"0.6037008",
"0.5950101",
"0.59280336"... | 0.6917452 | 2 |
methods template fields library. query template field library by id | public FieldsTemplateLibrary templateFieldLibraryById(Long idField) {
FieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();
return dao.getById(idField);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // ID\n return ID;\n case 2: // TITLE\n return TITLE;\n case 4: // SALARY_TOP\n return SALARY_TOP;\n case... | [
"0.66581386",
"0.65316993",
"0.63488674",
"0.62716",
"0.6269058",
"0.6257027",
"0.6237156",
"0.6198849",
"0.6184271",
"0.61228174",
"0.6107168",
"0.60705966",
"0.6052588",
"0.60031277",
"0.5980929",
"0.59797335",
"0.59564453",
"0.58440286",
"0.58279485",
"0.58124983",
"0.5786... | 0.64728993 | 2 |
get all field template library by name | public ArrayList<FieldsTemplateLibrary> templateFieldLibraryByName(String name){
FieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();
Collection<FieldsTemplateLibrary> collection = dao.getByName(name);
ArrayList<FieldsTemplateLibrary> responseList = new ArrayList<FieldsTemplateLibrary>(collection);
return responseList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<FieldsTemplateLibrary> templateFieldLibraryGetAll() {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsTemplateLibrary> collection = dao.getAllFields();\n\t\tArrayList<FieldsTemplateLibrary> responseList = new ArrayList<FieldsTemplateLibrary>(collection);\n... | [
"0.7240309",
"0.60940194",
"0.59039605",
"0.58374786",
"0.58230776",
"0.5822668",
"0.5701578",
"0.5561821",
"0.54937196",
"0.54499704",
"0.53656626",
"0.52553934",
"0.52553934",
"0.5215853",
"0.52002287",
"0.52002287",
"0.51992553",
"0.51992553",
"0.51992553",
"0.51992553",
"... | 0.79335755 | 0 |
get all template fields library | public ArrayList<FieldsTemplateLibrary> templateFieldLibraryGetAll() {
FieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();
Collection<FieldsTemplateLibrary> collection = dao.getAllFields();
ArrayList<FieldsTemplateLibrary> responseList = new ArrayList<FieldsTemplateLibrary>(collection);
return responseList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<FieldsTemplateLibrary> templateFieldLibraryByName(String name){\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\tCollection<FieldsTemplateLibrary> collection = dao.getByName(name);\n\t\tArrayList<FieldsTemplateLibrary> responseList = new ArrayList<FieldsTemplateLibrary>(col... | [
"0.7064457",
"0.6648108",
"0.6548099",
"0.6470421",
"0.64428085",
"0.63247716",
"0.61728245",
"0.6049799",
"0.5977934",
"0.5927435",
"0.5876519",
"0.5855517",
"0.5830312",
"0.5811136",
"0.5810203",
"0.57212496",
"0.5668912",
"0.56653297",
"0.5647341",
"0.5646777",
"0.56219923... | 0.8105841 | 0 |
Insert template field library | public FieldsTemplateLibrary templateFieldLibraryInsert(FieldsTemplateLibrary entity) {
FieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();
entity = dao.saveNew(entity);
return entity;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void templateMetadataInsert(Long idTemplate,Long idFieldLib)\n\t{\t\n\t\tFieldsTemplateLibrary lib = new FieldsTemplateLibrary();\n\t\tlib.setId(idFieldLib);\n\t\t\t\t\n\t\tFieldsMappingMeta metadata = new FieldsMappingMeta();\n\t\tmetadata.setTemplateId(idTemplate);\n\t\tmetadata.setFieldsTemplateLibrary(l... | [
"0.71456605",
"0.6739479",
"0.6590892",
"0.63111085",
"0.61986595",
"0.61429876",
"0.6063526",
"0.59987926",
"0.59968495",
"0.5975116",
"0.5889535",
"0.5875745",
"0.5737087",
"0.5719252",
"0.5709053",
"0.5683905",
"0.56694615",
"0.5647984",
"0.56296223",
"0.5614928",
"0.55531... | 0.7232574 | 0 |
delete template field library | public boolean templateFieldLibraryDelete(Long id) {
FieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();
return dao.deleteById(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean deleteFieldsTemplate(Template template)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\treturn daoTemplate.deleteFieldsByIdTemplate(template);\n\t}",
"private void removeTemplate()\r\n {\r\n\t String template = keyField.getText();\r\n\t if (template.length()==0)\r\n\t... | [
"0.6775486",
"0.671913",
"0.62948316",
"0.61928785",
"0.6176512",
"0.6124189",
"0.6114423",
"0.5976712",
"0.5904643",
"0.5847796",
"0.5840514",
"0.5798739",
"0.5755478",
"0.5749065",
"0.57461065",
"0.56814486",
"0.5665698",
"0.566141",
"0.5661158",
"0.5639928",
"0.56289816",
... | 0.70220727 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.