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
Gets the attribute value for CreationDate, using the alias name CreationDate.
public Date getCreationDate() { return (Date)getAttributeInternal(CREATIONDATE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getCreationDate()\n {\n return (Date)getAttributeInternal(CREATIONDATE);\n }", "public Date getCreatedDate() {\n return (Date) getAttributeInternal(CREATEDDATE);\n }", "public Date getCreationDate() {\n return (Date) getAttributeInternal(CREATIONDATE);\n }", "public Date ...
[ "0.7098145", "0.7054243", "0.7041457", "0.7041457", "0.7041457", "0.6808293", "0.67974854", "0.6781036", "0.6773606", "0.6722781", "0.6722781", "0.6567299", "0.64812404", "0.6344069", "0.6306525", "0.6305644", "0.6304545", "0.6302342", "0.6299437", "0.62543106", "0.62543106",...
0.6953878
9
Sets value as the attribute value for CreationDate.
public void setCreationDate(Date value) { setAttributeInternal(CREATIONDATE, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreationDate(Date value)\n {\n setAttributeInternal(CREATIONDATE, value);\n }", "public void setCreatedDate(Date value) {\n setAttributeInternal(CREATEDDATE, value);\n }", "public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public v...
[ "0.8591486", "0.82014096", "0.7878", "0.7878", "0.78678834", "0.7781187", "0.76366484", "0.7626439", "0.7626439", "0.7610338", "0.75605094", "0.7528408", "0.7513406", "0.7501521", "0.7474159", "0.7461501", "0.74586976", "0.74347323", "0.74347323", "0.74347323", "0.74216217", ...
0.8472737
7
Gets the attribute value for LastUpdatedBy, using the alias name LastUpdatedBy.
public Number getLastUpdatedBy() { return (Number)getAttributeInternal(LASTUPDATEDBY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public String getLastUpdatedBy() {\n return (String) getAttributeInternal(LASTUPDATEDBY);\n }", "public Number getLastUpdatedBy()\n {\n return (Number)getAttributeInternal(LASTUPDATEDBY);\n ...
[ "0.8289529", "0.8289529", "0.81180954", "0.80850255", "0.80850255", "0.80765617", "0.7806724", "0.77484137", "0.77484137", "0.76816195", "0.75212276", "0.73277336", "0.73277336", "0.73002106", "0.7297616", "0.720341", "0.7198966", "0.71823305", "0.71823305", "0.71823305", "0....
0.8163357
7
Sets value as the attribute value for LastUpdatedBy.
public void setLastUpdatedBy(Number value) { setAttributeInternal(LASTUPDATEDBY, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(String value) {\n setAttributeInternal(LASTUPDATEDBY, value);\n }", "public void setLastUpdatedBy(Number value)\n {\n setAttributeInternal(LASTUPDATEDBY, value)...
[ "0.87341577", "0.87341577", "0.8461907", "0.8369513", "0.80218184", "0.80218184", "0.80218184", "0.77651036", "0.77651036", "0.7380995", "0.72740215", "0.7257864", "0.7239503", "0.7210757", "0.72014415", "0.7199002", "0.7143597", "0.71388453", "0.7132342", "0.71270806", "0.71...
0.83636934
12
Gets the attribute value for LastUpdateDate, using the alias name LastUpdateDate.
public Date getLastUpdateDate() { return (Date)getAttributeInternal(LASTUPDATEDATE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getLastUpdateDate()\n {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdatedDate() {\r\n return (Date) getAttributeInternal(LASTUPDATEDDATE);\r\n }", "public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n ...
[ "0.7708077", "0.76208985", "0.7546261", "0.7546261", "0.7458882", "0.7252211", "0.71389014", "0.7036422", "0.7018081", "0.7013991", "0.699907", "0.699907", "0.699907", "0.699907", "0.699907", "0.699907", "0.699907", "0.6972357", "0.6960353", "0.69556934", "0.6953703", "0.69...
0.7621662
6
Sets value as the attribute value for LastUpdateDate.
public void setLastUpdateDate(Date value) { setAttributeInternal(LASTUPDATEDATE, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLastUpdateDate(Date value)\n {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdatedDate(Date value) {\r\n setAttributeInternal(LASTUPDATEDDATE, value);\r\n }", "public void setLastUpdate( Date lastUpdate ) {\r\n this.lastUpdate = lastUpdate;\r\n ...
[ "0.8651681", "0.82767385", "0.75954485", "0.75854045", "0.7572334", "0.75317854", "0.7446498", "0.7439726", "0.7439726", "0.7439726", "0.7304719", "0.7261638", "0.72418976", "0.72418976", "0.7232949", "0.7194033", "0.71911657", "0.71681994", "0.7128748", "0.71220624", "0.7050...
0.85064274
7
Gets the attribute value for Lot, using the alias name Lot.
public String getLot() { return (String)getAttributeInternal(LOT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLable () {\n return getString(ATTRIBUTE_LABEL);\n }", "public String getLongName() {\n return (String) getAttributeInternal(LONGNAME);\n }", "public Number getLargo()\n {\n return (Number)getAttributeInternal(LARGO);\n }", "java.lang.String getAttribute();", "Attribute getA...
[ "0.63258797", "0.61129826", "0.6065549", "0.5809115", "0.5645454", "0.56317353", "0.560614", "0.556017", "0.5483397", "0.5483397", "0.5483397", "0.5468736", "0.5441459", "0.5436502", "0.54148763", "0.54111624", "0.540392", "0.53830355", "0.5381408", "0.53537124", "0.535138", ...
0.6886144
0
Sets value as the attribute value for Lot.
public void setLot(String value) { setAttributeInternal(LOT, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLargo(Number value)\n {\n setAttributeInternal(LARGO, value);\n }", "public void setValue(long value) {\n\t this.value = value;\n\t }", "public void setL(double value) {\n this.l = value;\n }", "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFr...
[ "0.66301435", "0.648954", "0.64420843", "0.643831", "0.6096842", "0.6027347", "0.6017092", "0.5994129", "0.59358925", "0.59237194", "0.590727", "0.58970934", "0.5875809", "0.58680004", "0.58673006", "0.58477396", "0.58405316", "0.58387953", "0.58340275", "0.5830869", "0.58079...
0.6817597
0
Gets the attribute value for Wash, using the alias name Wash.
public String getWash() { return (String)getAttributeInternal(WASH); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getWashType() {\n return (String) getAttributeInternal(WASHTYPE);\n }", "private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}", "String getAttribute();", "java.lang.String getAttribute();", "public String getAttribute(String name)...
[ "0.6099466", "0.5629772", "0.56166005", "0.5608205", "0.56018746", "0.55955106", "0.55418414", "0.55418414", "0.55418414", "0.5529642", "0.5494563", "0.5416765", "0.5380591", "0.5377184", "0.5364675", "0.53482693", "0.52398354", "0.5239218", "0.5215748", "0.52047604", "0.5204...
0.7062142
0
Sets value as the attribute value for Wash.
public void setWash(String value) { setAttributeInternal(WASH, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWashType(String value) {\n setAttributeInternal(WASHTYPE, value);\n }", "public void set(V value) {\n Rules.checkAttributeValue(value);\n checkType(value);\n this.value = value;\n isSleeping = false;\n notifyObservers();\n }", "@Override\n\t\tprote...
[ "0.66548026", "0.665342", "0.62500256", "0.60420376", "0.5978866", "0.5966147", "0.5956934", "0.5924637", "0.59098077", "0.5905607", "0.5898818", "0.5898818", "0.5898818", "0.5898818", "0.58584684", "0.5854877", "0.58483195", "0.5819109", "0.5814481", "0.58137214", "0.5784153...
0.7905921
0
Gets the attribute value for ArticleNo, using the alias name ArticleNo.
public String getArticleNo() { return (String)getAttributeInternal(ARTICLENO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNtnNo() {\n return (String)getAttributeInternal(NTNNO);\n }", "public Number getMemArtId() {\n return (Number) getAttributeInternal(MEMARTID);\n }", "public Number getAgentNoFk() {\r\n return (Number) getAttributeInternal(AGENTNOFK);\r\n }", "public DBSequence g...
[ "0.5554319", "0.55525863", "0.5504949", "0.5351589", "0.5346033", "0.5264693", "0.5207971", "0.52053905", "0.5200556", "0.5172531", "0.51171565", "0.5110147", "0.50878984", "0.50842553", "0.5049008", "0.50441325", "0.5041034", "0.5041005", "0.5016216", "0.500338", "0.4989407"...
0.6938746
1
Sets value as the attribute value for ArticleNo.
public void setArticleNo(String value) { setAttributeInternal(ARTICLENO, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setItemNo(int value) {\n this.itemNo = value;\n }", "public void setNtnNo(String value) {\n setAttributeInternal(NTNNO, value);\n }", "public void setMemArtId(Number value) {\n setAttributeInternal(MEMARTID, value);\n }", "public void setNo(String no) {\n this...
[ "0.624053", "0.6214974", "0.60142434", "0.5931461", "0.59298617", "0.5859879", "0.5859879", "0.585573", "0.58240324", "0.57321894", "0.5720645", "0.5698077", "0.5691218", "0.5679609", "0.56492025", "0.56492025", "0.56492025", "0.564789", "0.5635133", "0.56341755", "0.56201845...
0.7962187
1
Gets the attribute value for SystemId, using the alias name SystemId.
public Number getSystemId() { return (Number)getAttributeInternal(SYSTEMID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }", "public String getSystemId() { return this.systemId; }", "public String getSystemId() {\n\t\treturn mSystemId;\n\t}", "public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}", "@JsonProperty(\"sys...
[ "0.7414396", "0.71762425", "0.7068693", "0.68092287", "0.66737944", "0.6653817", "0.6641492", "0.6303105", "0.6303105", "0.6216477", "0.6131101", "0.6124578", "0.60912126", "0.6073329", "0.5984519", "0.5981811", "0.5960789", "0.5952064", "0.5949595", "0.5922366", "0.58853924"...
0.7383236
1
Sets value as the attribute value for SystemId.
public void setSystemId(Number value) { setAttributeInternal(SYSTEMID, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSystemId(String systemId);", "public void setSystemId(int val) {\n systemId = val;\n }", "public void setSystemId( String systemId ) { this.systemId = systemId; }", "public void setSystemId(String systemId) {\n agentConfig.setSystemId(systemId);\n }", "public void setSystemIden...
[ "0.7735083", "0.77094436", "0.7140167", "0.70246834", "0.6987184", "0.6953404", "0.6914733", "0.6872771", "0.6785966", "0.6627083", "0.6569894", "0.6496234", "0.6475726", "0.64419556", "0.64338416", "0.62513316", "0.624307", "0.6208788", "0.61782926", "0.6160082", "0.6160082"...
0.8158002
1
getAttrInvokeAccessor: generated method. Do not modify.
protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception { if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) { return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Object getAttrInvokeAccessor(int index, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case ATTRIBUTE1:\n return getAttribute1();\n case ATTRIBUTE10:\n return getAttribute10();\n case ATTRIBU...
[ "0.723702", "0.718321", "0.70857316", "0.70857316", "0.70857316", "0.70857316", "0.70702", "0.70702", "0.702586", "0.7025006", "0.7020218", "0.70144564", "0.70079035", "0.69236135", "0.6567853", "0.64829445", "0.6413709", "0.63747954", "0.6362678", "0.6362204", "0.6362204", ...
0.7098436
13
setAttrInvokeAccessor: generated method. Do not modify.
protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception { if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) { AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case SEQUENCENO:\n setSequenceNo((Number)value);\n return;\n case LINENUMBER:\n setLineNum...
[ "0.7711966", "0.763835", "0.7624488", "0.7622952", "0.75823784", "0.7534446", "0.7522457", "0.75204605", "0.75204605", "0.7520005", "0.74730784", "0.74730784", "0.74730784", "0.74730784", "0.7324199", "0.6898091", "0.6873392", "0.6825343", "0.68186456", "0.68186456", "0.68067...
0.74888957
21
Sets value as the associated entity MnjMfgFabricInsTestHImpl.
public void setMnjMfgFabricInsTestH(MnjMfgFabricInsTestHImpl value) { setAttributeInternal(MNJMFGFABRICINSTESTH, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEntity(String parName, Object parVal) throws HibException;", "public void testSetInsDyn() {\n }", "public void setUp() {\n entity = new Entity(BaseCareerSet.FIGHTER);\n }", "public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}", "public void setBasedOnValue...
[ "0.51981354", "0.5190537", "0.5129996", "0.5096633", "0.50112253", "0.50001484", "0.4972297", "0.49629843", "0.49035832", "0.48742726", "0.48541126", "0.48364285", "0.4769209", "0.47587347", "0.4756381", "0.47425812", "0.47322863", "0.472581", "0.4722939", "0.47070405", "0.46...
0.8136896
1
/ Atributos propios de Video
public Video(String nombre) { super(nombre); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getVideo() {\n return video;\n }", "public void setVideo(String video) {\n this.video = video;\n }", "public ABLVideo Video() {\r\n \treturn new ABLVideo(BrickFinder.getDefault().getVideo());\r\n }", "public int getVid() {\r\n return vid;\r\n }", "@Override...
[ "0.7002911", "0.6695153", "0.66124016", "0.66061735", "0.66016275", "0.6569103", "0.6554679", "0.65487874", "0.65439796", "0.6537337", "0.6521452", "0.6510323", "0.6504754", "0.65039384", "0.65034056", "0.6480687", "0.6470173", "0.6457214", "0.6423794", "0.6415498", "0.640528...
0.6694214
2
This next 2 methods are to get the elements of the csv where all the information for products and categories are
static public List<Category> categoryReader() throws IOException { BufferedReader csvReader = new BufferedReader(new FileReader(CATEGORIES_REFERENCE_FILE)); String row; List<Category> dataList = new ArrayList<>(); row = csvReader.readLine(); while ((row = csvReader.readLine()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public List<Product> productReader() throws IOException {\n BufferedReader csvReader = new BufferedReader(new FileReader(PRODUCTS_REFERENCE_FILE));\n String row;\n List<Product> dataList = new ArrayList<>();\n\n row = csvReader.readLine();\n while ((row = csvReader.readLin...
[ "0.68680525", "0.67952645", "0.65577614", "0.63531715", "0.6266335", "0.60694855", "0.5935931", "0.578173", "0.5697843", "0.56826884", "0.564952", "0.5635748", "0.56127036", "0.55911714", "0.55863726", "0.55670196", "0.55336326", "0.552171", "0.5500087", "0.54917675", "0.5482...
0.5532058
17
File reader and a list to add all the data of the file
static public List<Product> productReader() throws IOException { BufferedReader csvReader = new BufferedReader(new FileReader(PRODUCTS_REFERENCE_FILE)); String row; List<Product> dataList = new ArrayList<>(); row = csvReader.readLine(); while ((row = csvReader.readLine()) != nul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readFile() {\n try (BufferedReader br = new BufferedReader(new FileReader(\"../CS2820/src/production/StartingInventory.txt\"))) {\n String line = br.readLine();\n while (line != null) {\n line = br.readLine();\n this.items.add(line);\n ...
[ "0.6958733", "0.6939244", "0.6886124", "0.68653536", "0.6818609", "0.6818504", "0.67242485", "0.6715241", "0.6687349", "0.66866946", "0.6648223", "0.6611404", "0.66084623", "0.6605601", "0.6589173", "0.6569365", "0.656753", "0.65635943", "0.65549374", "0.6553968", "0.654823",...
0.0
-1
Created by Threecolors on 2018/3/2.
public interface MailPropertiesProvider { /**获取Mail参数 * @return */ MailProperties getMailProperties(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private static void cajas() {\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\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\...
[ "0.58787477", "0.57119083", "0.56068534", "0.56068534", "0.5606842", "0.55771804", "0.5560361", "0.55469286", "0.5500206", "0.5499095", "0.5489062", "0.5479898", "0.5445368", "0.54036105", "0.5393221", "0.5378673", "0.53624606", "0.53505677", "0.53300655", "0.5318984", "0.531...
0.0
-1
Sets up the tests
@Before public void setUp() throws Exception { super.setUp(); test_assignment = new AssignmentMsg("Super Ultra Hard Assignment",true); assign_hand = new AssignmentHandler(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUp() {\n\n\t}", "protected void setUp() {\n\t}", "protected void setUp() {\n\n }", "protected void setUp()\n {\n }", "protected void setUp()\n {\n }", "@Before\n\tpublic void testEachSetup() {\n\t\ttestGrid = new Grid(50,50);\n\t\tundoRedo_TestStack = new UndoRedo();\n\t\tSy...
[ "0.78328454", "0.783229", "0.7765114", "0.7755597", "0.7755597", "0.76916397", "0.76789105", "0.7650163", "0.7644962", "0.7581316", "0.75799274", "0.755519", "0.75521624", "0.753354", "0.7525379", "0.74724627", "0.74686825", "0.74686825", "0.7464272", "0.74464774", "0.7411849...
0.0
-1
Tests save or update
@Test public void testSave() throws SQLException { int id = assign_hand.saveOrUpdate("Super Ultra Hard Assignment",true); assertTrue(id != -1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testSave() {\n\t}", "@Test\n void updateSuccess () {\n TestEntity testEntity = buildEntity();\n Api2 instance = new Api2();\n Long result = instance.save(testEntity);\n\n String name = \"Edited name\";\n boolean check = false;\n String description...
[ "0.7610525", "0.7513725", "0.7509176", "0.744108", "0.74299264", "0.7393165", "0.72426146", "0.72218055", "0.71702427", "0.71357024", "0.7098175", "0.7049431", "0.7030107", "0.70292896", "0.7015857", "0.7009652", "0.6990509", "0.69898945", "0.6962459", "0.69611233", "0.694392...
0.6715679
41
Tests getting the assignment
@Test public void getAssignment() throws SQLException { int id = assign_hand.saveOrUpdate(test_assignment); AssignmentMsg test_am = assign_hand.getAssignment(id); assertEquals("Super Ultra Hard Assignment",test_am.getName()); assertEquals(true,test_am.isEnabled()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void assignment() {\n\n\t\t\t}", "@Test\n public void testAssignment() {\n try {\n Lexer lexer = new Lexer(new StringReader(\"n = 0;\"));\n Parser parser = new Parser(lexer);\n RootNode node = parser.program();\n AssignNode assignment = (AssignNode) n...
[ "0.7350028", "0.71231973", "0.705261", "0.7011678", "0.6827373", "0.6629914", "0.65546983", "0.64881057", "0.64765775", "0.6415443", "0.6378703", "0.63757896", "0.63757896", "0.62196714", "0.6087278", "0.6068343", "0.604995", "0.6029778", "0.6008613", "0.6006936", "0.5936781"...
0.6894635
4
Tests updating an assignment
@Test public void updateAssignment() throws SQLException { int id = assign_hand.saveOrUpdate(test_assignment); AssignmentMsg test_am = assign_hand.getAssignment(id); test_am.setName("Not As Hard Assignment"); test_am.setEnabled(false); assertEquals("Not As Hard Assignment",test_am.getName()); id = as...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void updateTask() {\n\t\tfinal Date dueDate = new Date();\n\t\tfinal Template template = new Template(\"Template 1\");\n\t\ttemplate.addStep(new TemplateStep(\"Step 1\", 1.0));\n\t\tfinal Assignment asgn = new Assignment(\"Assignment 1\", dueDate, template);\n\t\tfinal Task task = new Task(\"Task 1...
[ "0.67563164", "0.6727269", "0.6608498", "0.6606295", "0.6606067", "0.65052354", "0.6480693", "0.64572114", "0.64413464", "0.64128095", "0.64076287", "0.63611984", "0.63430846", "0.63418514", "0.62938315", "0.62737876", "0.6266675", "0.62559354", "0.62403387", "0.62312806", "0...
0.75704455
0
make sure that we can get the ID if the assignment name exists and that zero is returned if it doesn't
@Test public void testGetAssignmentID() { AssignmentHandler ah = new AssignmentHandler(); assertEquals(1,ah.getAssignmentID("testAssignment")); assertEquals(2,ah.getAssignmentID("Assignment2")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic long getAssignmentId() {\n\t\treturn model.getAssignmentId();\n\t}", "public Assignment getCertainAssignment(long assignment_id) throws Exception{\n\n\t\tboolean found = false;\n\t\tAssignment data_found = new Assignment();\n\t\tString where = MySQLiteHelper.ASSIGNMENT_ID + \"=\"\n\t\t\t\t+ a...
[ "0.6476038", "0.62216216", "0.6208073", "0.61933917", "0.60270226", "0.6018515", "0.5958142", "0.5923422", "0.5806793", "0.5803611", "0.57166547", "0.57099605", "0.56964296", "0.566146", "0.56457585", "0.5642397", "0.56159467", "0.5604534", "0.5601591", "0.5599629", "0.559548...
0.61492735
4
Tests getting the list of all assignments
@Test public void testGetAllAssignments() throws SQLException { // fail("NEVER RUIN THE DATABASE IN A TEST!!!! Whoever wrote this needs to make a real test"); // String q = "TRUNCATE TABLE assignment"; // PreparedStatement p = assign_hand.getConn().prepareStatement(q); // p.executeQuery(); // // assign_hand.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void findAssignments_MultipleAssignments_ShouldReturnJSONArray() throws Exception {\n when(service.findAll()).thenReturn(Arrays.asList(RENTOKIL, HOME_OFFICE));\n\n // When we request all assignments\n final String response = mockMvc.perform(get(ENDPOINT))\n .an...
[ "0.6976111", "0.6898677", "0.6825539", "0.6743359", "0.66979194", "0.66912603", "0.6654651", "0.6615515", "0.6530199", "0.6522166", "0.64611876", "0.64104444", "0.622415", "0.6218436", "0.6190178", "0.6026486", "0.60263926", "0.6014517", "0.5965592", "0.59231704", "0.5909052"...
0.75130963
0
todo make data Bases close
public void actionPerformed(ActionEvent e) { System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void close() {\r\n\t\tif (mDataBase != null)\r\n\t\t\tmDataBase.close();\r\n\t\tsuper.close();\r\n\t}", "@Override\n\tpublic void closeDB()\n\t{\n\n\t}", "@Override\n public void close() {\n closeDB();\n }", "@Override\n\tpublic void closeAndCleanupAllData() throws Exception ...
[ "0.6814641", "0.6807895", "0.6752585", "0.66128385", "0.6589603", "0.6419482", "0.6384279", "0.6336561", "0.63336694", "0.63242525", "0.63153297", "0.6312771", "0.6284124", "0.6272431", "0.62684083", "0.6249347", "0.6221603", "0.6210034", "0.6207872", "0.6207872", "0.6200618"...
0.0
-1
Log.i(TAG, "onPageStarted " + url);
public void onPageStarted(WebView view, String url, Bitmap favicon) { loadTimer = System.currentTimeMillis(); pageFinished = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n final String onPageStartedUrl = url;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n onSendUpdate(\"Initiati...
[ "0.7771609", "0.71928936", "0.7055894", "0.69653463", "0.69619507", "0.6950905", "0.6948436", "0.69371283", "0.6898533", "0.68745077", "0.6872204", "0.6861359", "0.6844251", "0.6839138", "0.6837982", "0.68024343", "0.6786332", "0.67529213", "0.67450064", "0.6742718", "0.67371...
0.73268044
1
Returns all the phat vaies where maCTV = &63;.
@Override public List<PhatVay> findByMaCTV(String maCTV) { return findByMaCTV(maCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV, int start, int end) {\n\t\treturn findByMaCTV(maCTV, start, end, null);\n\t}", "@Override\n\tpublic void removeByMaCTV(String maCTV) {\n\t\tfor (PhatVay phatVay :\n\t\t\t\tfindByMaCTV(\n\t\t\t\t\tmaCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\n...
[ "0.6208588", "0.5975268", "0.5393624", "0.50500345", "0.5047502", "0.49166024", "0.471333", "0.46976018", "0.46961436", "0.46738043", "0.4672019", "0.4664995", "0.4624394", "0.45855808", "0.45855457", "0.45752093", "0.4570496", "0.45353934", "0.4517119", "0.45035574", "0.4501...
0.73438185
0
Returns a range of all the phat vaies where maCTV = &63;. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full r...
@Override public List<PhatVay> findByMaCTV(String maCTV, int start, int end) { return findByMaCTV(maCTV, start, end, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findByMaCTV(maCTV, start, end, orderByComparator, true);\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrde...
[ "0.816865", "0.7495591", "0.6677199", "0.64591265", "0.61136764", "0.5796228", "0.5388592", "0.5251292", "0.5210173", "0.51329684", "0.4904331", "0.48408726", "0.48305294", "0.46926057", "0.465313", "0.4515853", "0.43655202", "0.43508112", "0.43430048", "0.42831796", "0.42056...
0.76570064
1
Returns an ordered range of all the phat vaies where maCTV = &63;. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return t...
@Override public List<PhatVay> findByMaCTV( String maCTV, int start, int end, OrderByComparator<PhatVay> orderByComparator) { return findByMaCTV(maCTV, start, end, orderByComparator, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\tmaCTV = Objects.toString(maCTV, \"\");\n\n\t\tboolean pagination = true;\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = nu...
[ "0.7496899", "0.69888633", "0.69709045", "0.63822913", "0.57378054", "0.53253627", "0.5300473", "0.5295999", "0.52881706", "0.5163234", "0.5124132", "0.4959255", "0.46765926", "0.4584279", "0.45216078", "0.44909164", "0.43734738", "0.43268922", "0.42837906", "0.42696178", "0....
0.83225054
0
Returns an ordered range of all the phat vaies where maCTV = &63;. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return t...
@Override public List<PhatVay> findByMaCTV( String maCTV, int start, int end, OrderByComparator<PhatVay> orderByComparator, boolean retrieveFromCache) { maCTV = Objects.toString(maCTV, ""); boolean pagination = true; FinderPath finderPath = null; Object[] finderArgs = null; if ((start == QueryUtil.A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findByMaCTV(maCTV, start, end, orderByComparator, true);\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV, int start, int end) {\n\t\treturn f...
[ "0.8323248", "0.69928426", "0.6968904", "0.6379906", "0.57395184", "0.53268427", "0.52974117", "0.5293245", "0.52894276", "0.5162377", "0.51230913", "0.49590406", "0.46754804", "0.45886767", "0.4521227", "0.4491372", "0.43725997", "0.4329102", "0.42813644", "0.42685676", "0.4...
0.7497655
1
Returns the first phat vay in the ordered set where maCTV = &63;.
@Override public PhatVay findByMaCTV_First( String maCTV, OrderByComparator<PhatVay> orderByComparator) throws NoSuchPhatVayException { PhatVay phatVay = fetchByMaCTV_First(maCTV, orderByComparator); if (phatVay != null) { return phatVay; } StringBundler msg = new StringBundler(4); msg.append(_NO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay fetchByMaCTV_First(\n\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\tList<PhatVay> list = findByMaCTV(maCTV, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n\tpublic List<PhatVay>...
[ "0.7156778", "0.6181416", "0.5314829", "0.51824427", "0.5151312", "0.5121699", "0.5070429", "0.49662971", "0.4894672", "0.4814185", "0.47961813", "0.47858638", "0.47348383", "0.46846092", "0.46793902", "0.46733177", "0.46715254", "0.4653616", "0.46483222", "0.46076414", "0.46...
0.5528496
2
Returns the first phat vay in the ordered set where maCTV = &63;.
@Override public PhatVay fetchByMaCTV_First( String maCTV, OrderByComparator<PhatVay> orderByComparator) { List<PhatVay> list = findByMaCTV(maCTV, 0, 1, orderByComparator); if (!list.isEmpty()) { return list.get(0); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV) {\n\t\treturn findByMaCTV(maCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic PhatVay findByMaCTV_First(\n\t\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay p...
[ "0.61824524", "0.5528765", "0.5313391", "0.51820534", "0.5151802", "0.5121905", "0.50701934", "0.49651593", "0.4893562", "0.48140168", "0.47964007", "0.47848368", "0.47352737", "0.46841002", "0.46783018", "0.46725267", "0.46712312", "0.46526194", "0.46478662", "0.4607303", "0...
0.71557575
0
Returns the last phat vay in the ordered set where maCTV = &63;.
@Override public PhatVay findByMaCTV_Last( String maCTV, OrderByComparator<PhatVay> orderByComparator) throws NoSuchPhatVayException { PhatVay phatVay = fetchByMaCTV_Last(maCTV, orderByComparator); if (phatVay != null) { return phatVay; } StringBundler msg = new StringBundler(4); msg.append(_NO_S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay fetchByMaCTV_Last(\n\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\tint count = countByMaCTV(maCTV);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<PhatVay> list = findByMaCTV(\n\t\t\tmaCTV, count - 1, count, orderByComparator);\n\n\t\tif (!list...
[ "0.7478059", "0.545815", "0.5407302", "0.5365586", "0.5226027", "0.5170502", "0.5169181", "0.51457745", "0.512418", "0.5115882", "0.5077376", "0.504901", "0.50325406", "0.50213814", "0.50197774", "0.50060797", "0.50046194", "0.49963623", "0.49885958", "0.49871707", "0.4905372...
0.61994344
1
Returns the last phat vay in the ordered set where maCTV = &63;.
@Override public PhatVay fetchByMaCTV_Last( String maCTV, OrderByComparator<PhatVay> orderByComparator) { int count = countByMaCTV(maCTV); if (count == 0) { return null; } List<PhatVay> list = findByMaCTV( maCTV, count - 1, count, orderByComparator); if (!list.isEmpty()) { return list.get(0); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay findByMaCTV_Last(\n\t\t\tString maCTV, OrderByComparator<PhatVay> orderByComparator)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByMaCTV_Last(maCTV, orderByComparator);\n\n\t\tif (phatVay != null) {\n\t\t\treturn phatVay;\n\t\t}\n\n\t\tStringBundler msg = new Stri...
[ "0.61994344", "0.545815", "0.5407302", "0.5365586", "0.5226027", "0.5170502", "0.5169181", "0.51457745", "0.512418", "0.5115882", "0.5077376", "0.504901", "0.50325406", "0.50213814", "0.50197774", "0.50060797", "0.50046194", "0.49963623", "0.49885958", "0.49871707", "0.490537...
0.7478059
0
Returns the phat vaies before and after the current phat vay in the ordered set where maCTV = &63;.
@Override public PhatVay[] findByMaCTV_PrevAndNext( long phatVayId, String maCTV, OrderByComparator<PhatVay> orderByComparator) throws NoSuchPhatVayException { maCTV = Objects.toString(maCTV, ""); PhatVay phatVay = findByPrimaryKey(phatVayId); Session session = null; try { session = openSession(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV) {\n\t\treturn findByMaCTV(maCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic List<PhatVay> findByMaCTV(\n\t\tString maCTV, int start, int end,\n\t\tOrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findByMaCTV(ma...
[ "0.5878605", "0.581818", "0.5684583", "0.535493", "0.50336266", "0.49165797", "0.45943937", "0.45707232", "0.4518156", "0.44962162", "0.44683048", "0.44509122", "0.44366696", "0.44266507", "0.4385737", "0.4355654", "0.43515956", "0.43316913", "0.43244117", "0.43113846", "0.43...
0.5705323
2
Removes all the phat vaies where maCTV = &63; from the database.
@Override public void removeByMaCTV(String maCTV) { for (PhatVay phatVay : findByMaCTV( maCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { remove(phatVay); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void removeAll() {\n\t\tfor (PhatVay phatVay : findAll()) {\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "public void deleteVitals(VitalSigns v){\n vitalSignsHistory.remove(v);\n }", "public void removeDeadVampires() {\n\n for (int i = 0; i < Vampiro.getNumVamp(); i++) {\n ...
[ "0.61213356", "0.55503666", "0.54213893", "0.53897315", "0.53841853", "0.53837484", "0.5260972", "0.524696", "0.5221268", "0.5195206", "0.5179122", "0.51772016", "0.517354", "0.51703286", "0.51569754", "0.5150542", "0.51418865", "0.51224107", "0.5102494", "0.5098362", "0.5096...
0.77116144
0
Returns the number of phat vaies where maCTV = &63;.
@Override public int countByMaCTV(String maCTV) { maCTV = Objects.toString(maCTV, ""); FinderPath finderPath = _finderPathCountByMaCTV; Object[] finderArgs = new Object[] {maCTV}; Long count = (Long)finderCache.getResult(finderPath, finderArgs, this); if (count == null) { StringBundler query = new Str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findByMaCTV(String maCTV) {\n\t\treturn findByMaCTV(maCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "private static int num_vokal(String word) {\n int i;\n int jumlah_vokal = 0;\n\n for (i = 0; i < word.length(); i++) {\n if (word.charA...
[ "0.5994312", "0.5492461", "0.53163046", "0.52420413", "0.5155303", "0.5150843", "0.5140785", "0.5126202", "0.5120457", "0.51097614", "0.5075221", "0.5057516", "0.50278074", "0.50265956", "0.49671027", "0.4958778", "0.49517542", "0.49371007", "0.490267", "0.49023536", "0.48111...
0.6936647
0
Returns the phat vay where soKU = &63; or throws a NoSuchPhatVayException if it could not be found.
@Override public PhatVay findBySoKU(String soKU) throws NoSuchPhatVayException { PhatVay phatVay = fetchBySoKU(soKU); if (phatVay == null) { StringBundler msg = new StringBundler(4); msg.append(_NO_SUCH_ENTITY_WITH_KEY); msg.append("soKU="); msg.append(soKU); msg.append("}"); if (_log.isDebu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay fetchBySoKU(String soKU) {\n\t\treturn fetchBySoKU(soKU, true);\n\t}", "@Override\n\tpublic PhatVay findByPrimaryKey(Serializable primaryKey)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByPrimaryKey(primaryKey);\n\n\t\tif (phatVay == null) {\n\t\t\tif (_log.isDe...
[ "0.672448", "0.6466496", "0.6141359", "0.6073247", "0.5509094", "0.5119484", "0.49660045", "0.48823902", "0.46966633", "0.46280023", "0.456892", "0.4565255", "0.44690672", "0.44576705", "0.4421474", "0.4421474", "0.43668908", "0.43413326", "0.43343136", "0.43313697", "0.43206...
0.6927638
0
Returns the phat vay where soKU = &63; or returns null if it could not be found. Uses the finder cache.
@Override public PhatVay fetchBySoKU(String soKU) { return fetchBySoKU(soKU, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay fetchBySoKU(String soKU, boolean retrieveFromCache) {\n\t\tsoKU = Objects.toString(soKU, \"\");\n\n\t\tObject[] finderArgs = new Object[] {soKU};\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = finderCache.getResult(\n\t\t\t\t_finderPathFetchBySoKU, finderAr...
[ "0.65870416", "0.5534542", "0.52754354", "0.5250933", "0.5230648", "0.5197008", "0.51686937", "0.5137383", "0.5135266", "0.50981295", "0.5059643", "0.5053043", "0.50501925", "0.50252753", "0.4986384", "0.49738118", "0.49727726", "0.49724245", "0.49592388", "0.48990905", "0.48...
0.6969332
0
Returns the phat vay where soKU = &63; or returns null if it could not be found, optionally using the finder cache.
@Override public PhatVay fetchBySoKU(String soKU, boolean retrieveFromCache) { soKU = Objects.toString(soKU, ""); Object[] finderArgs = new Object[] {soKU}; Object result = null; if (retrieveFromCache) { result = finderCache.getResult( _finderPathFetchBySoKU, finderArgs, this); } if (result inst...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay fetchBySoKU(String soKU) {\n\t\treturn fetchBySoKU(soKU, true);\n\t}", "@Override\n\tpublic Act3370102 findOneByKyBaoCao(String kyBaoCao) {\n\t\treturn act3370102Repo.findOneByKy(kyBaoCao);\n\t}", "@Override\n\tpublic int countBySoKU(String soKU) {\n\t\tsoKU = Objects.toString(soKU,...
[ "0.6839486", "0.5546005", "0.52071106", "0.5184136", "0.5143036", "0.5126879", "0.5114812", "0.50995433", "0.5065976", "0.5032676", "0.5028512", "0.5021469", "0.50076604", "0.49368382", "0.49260494", "0.4902854", "0.48743227", "0.485481", "0.48478705", "0.48190325", "0.481741...
0.66943467
1
Removes the phat vay where soKU = &63; from the database.
@Override public PhatVay removeBySoKU(String soKU) throws NoSuchPhatVayException { PhatVay phatVay = findBySoKU(soKU); return remove(phatVay); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void removeByMaCTV(String maCTV) {\n\t\tfor (PhatVay phatVay :\n\t\t\t\tfindByMaCTV(\n\t\t\t\t\tmaCTV, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "public static String removePosessive(String line) {\n\t\tif (line.contains(\"'S\")) {\n\t\t\tline = li...
[ "0.6025914", "0.5826871", "0.55344653", "0.55205435", "0.54604477", "0.545595", "0.54558367", "0.5328791", "0.53107005", "0.53101254", "0.5285287", "0.52718604", "0.5249295", "0.52006966", "0.51788694", "0.5174063", "0.5159448", "0.51572925", "0.515539", "0.5153278", "0.51238...
0.57944167
2
Returns the number of phat vaies where soKU = &63;.
@Override public int countBySoKU(String soKU) { soKU = Objects.toString(soKU, ""); FinderPath finderPath = _finderPathCountBySoKU; Object[] finderArgs = new Object[] {soKU}; Long count = (Long)finderCache.getResult(finderPath, finderArgs, this); if (count == null) { StringBundler query = new StringBun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int num_vokal(String word) {\n int i;\n int jumlah_vokal = 0;\n\n for (i = 0; i < word.length(); i++) {\n if (word.charAt(i) == 'a' ||\n word.charAt(i) == 'i' ||\n word.charAt(i) == 'u' ||\n word.charAt(i) == 'e...
[ "0.6159107", "0.59024864", "0.57384086", "0.5731734", "0.5673862", "0.56231475", "0.5609651", "0.5607867", "0.5606362", "0.56045854", "0.5603803", "0.5594582", "0.5562625", "0.5498721", "0.5496313", "0.5457377", "0.5451801", "0.54509443", "0.5386086", "0.53847116", "0.5378902...
0.66989726
0
Caches the phat vay in the entity cache if it is enabled.
@Override public void cacheResult(PhatVay phatVay) { entityCache.putResult( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class, phatVay.getPrimaryKey(), phatVay); finderCache.putResult( _finderPathFetchBySoKU, new Object[] {phatVay.getSoKU()}, phatVay); phatVay.resetOriginalValues(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void cacheResult(List<PhatVay> phatVaies) {\n\t\tfor (PhatVay phatVay : phatVaies) {\n\t\t\tif (entityCache.getResult(\n\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\t\t\tphatVay.getPrimaryKey()) == null) {\n\n\t\t\t\tcacheResult(phatVay);\n\t\t\t}\n\t\t\telse {\n\t\...
[ "0.67419136", "0.5996326", "0.59702086", "0.5865588", "0.5759258", "0.572675", "0.5644148", "0.56265575", "0.5582797", "0.55723965", "0.5536", "0.54939467", "0.54432863", "0.54338187", "0.5409823", "0.54038495", "0.54013324", "0.5400108", "0.53850293", "0.53572214", "0.534794...
0.74701446
0
Caches the phat vaies in the entity cache if it is enabled.
@Override public void cacheResult(List<PhatVay> phatVaies) { for (PhatVay phatVay : phatVaies) { if (entityCache.getResult( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class, phatVay.getPrimaryKey()) == null) { cacheResult(phatVay); } else { phatVay.resetOriginalValues(); } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flushEntityCache() {\n super.flushEntityCache();\n }", "@Override\n\tpublic void cacheResult(PhatVay phatVay) {\n\t\tentityCache.putResult(\n\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\tphatVay.getPrimaryKey(), phatVay);\n\n\t\tfinderCache.putResult(\n\t\t\t_finderPa...
[ "0.6606858", "0.65858316", "0.63023096", "0.6081885", "0.59853673", "0.59647447", "0.59143364", "0.58173996", "0.5798492", "0.5739556", "0.573742", "0.5728869", "0.5712323", "0.5703635", "0.5671211", "0.5613931", "0.55721354", "0.555143", "0.55343276", "0.5513339", "0.5511109...
0.6885808
0
Clears the cache for all phat vaies. The EntityCache and FinderCache are both cleared by this method.
@Override public void clearCache() { entityCache.clearCache(PhatVayImpl.class); finderCache.clearCache(FINDER_CLASS_NAME_ENTITY); finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void clearAllCache() {\n page_cache.clear();\n key_relate.clear();\n }", "public void clear() {\n cache.clear();\n }", "protected void clearCaches() {\n DescriptorFactory.clearInstance();\n ObjectTypeFactory.clearInstance();\n TypeQualifierApplicati...
[ "0.7604908", "0.7306997", "0.72897017", "0.72192526", "0.72192526", "0.72192526", "0.71907574", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", "0.71319866", ...
0.734089
1
Clears the cache for the phat vay. The EntityCache and FinderCache are both cleared by this method.
@Override public void clearCache(PhatVay phatVay) { entityCache.removeResult( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class, phatVay.getPrimaryKey()); finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION); finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION); clearUniqu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void clearCache() {\n\t\tentityCache.clearCache(PhatVayImpl.class);\n\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_ENTITY);\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);\n\t\tfinderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);\n\t}", "public void clear()...
[ "0.8042808", "0.6955579", "0.6862343", "0.6849168", "0.6849168", "0.6849168", "0.6835673", "0.6789565", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.67128557", "0.6...
0.8283865
0
Creates a new phat vay with the primary key. Does not add the phat vay to the database.
@Override public PhatVay create(long phatVayId) { PhatVay phatVay = new PhatVayImpl(); phatVay.setNew(true); phatVay.setPrimaryKey(phatVayId); phatVay.setCompanyId(companyProvider.getCompanyId()); return phatVay; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic com.dtt.portal.dao.vbpq.model.VanBanPhapQuy createVanBanPhapQuy(\n\t\tlong id) {\n\t\treturn _vanBanPhapQuyLocalService.createVanBanPhapQuy(id);\n\t}", "public org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo create(long id);", "public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);", ...
[ "0.60542667", "0.58548576", "0.5731924", "0.5645969", "0.56437993", "0.55930364", "0.5513734", "0.5438495", "0.54280144", "0.54040086", "0.5386574", "0.53686565", "0.5349948", "0.5345703", "0.5331208", "0.53181076", "0.5303809", "0.528842", "0.5278478", "0.52485484", "0.52308...
0.7998718
0
Removes the phat vay with the primary key from the database. Also notifies the appropriate model listeners.
@Override public PhatVay remove(long phatVayId) throws NoSuchPhatVayException { return remove((Serializable)phatVayId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay remove(Serializable primaryKey)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPhatVay phatVay = (PhatVay)session.get(\n\t\t\t\tPhatVayImpl.class, primaryKey);\n\n\t\t\tif (phatVay == null) {\n\t\t\t\tif (_log.is...
[ "0.69965404", "0.6200632", "0.61381865", "0.60178745", "0.6017479", "0.59993553", "0.5931858", "0.59248996", "0.5819874", "0.57813317", "0.5726907", "0.5724223", "0.57223177", "0.57150435", "0.570974", "0.5705802", "0.5697983", "0.56821126", "0.56685793", "0.56685793", "0.566...
0.6411343
1
Removes the phat vay with the primary key from the database. Also notifies the appropriate model listeners.
@Override public PhatVay remove(Serializable primaryKey) throws NoSuchPhatVayException { Session session = null; try { session = openSession(); PhatVay phatVay = (PhatVay)session.get( PhatVayImpl.class, primaryKey); if (phatVay == null) { if (_log.isDebugEnabled()) { _log.debug(_NO_SUCH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay remove(long phatVayId) throws NoSuchPhatVayException {\n\t\treturn remove((Serializable)phatVayId);\n\t}", "void remove(PK id);", "void eliminar(PK id);", "@Override\n\tpublic void removeAll() {\n\t\tfor (PhatVay phatVay : findAll()) {\n\t\t\tremove(phatVay);\n\t\t}\n\t}", "@Ove...
[ "0.6411343", "0.6200632", "0.61381865", "0.60178745", "0.6017479", "0.59993553", "0.5931858", "0.59248996", "0.5819874", "0.57813317", "0.5726907", "0.5724223", "0.57223177", "0.57150435", "0.570974", "0.5705802", "0.5697983", "0.56821126", "0.56685793", "0.56685793", "0.5663...
0.69965404
0
Returns the phat vay with the primary key or throws a com.liferay.portal.kernel.exception.NoSuchModelException if it could not be found.
@Override public PhatVay findByPrimaryKey(Serializable primaryKey) throws NoSuchPhatVayException { PhatVay phatVay = fetchByPrimaryKey(primaryKey); if (phatVay == null) { if (_log.isDebugEnabled()) { _log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); } throw new NoSuchPhatVayException( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(\n\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\tprimaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tPhatVay phatVay = (PhatVay)...
[ "0.6414064", "0.6281431", "0.61861646", "0.6022943", "0.60038555", "0.60038555", "0.60038555", "0.58442795", "0.58043414", "0.5765219", "0.57202333", "0.57079107", "0.56793225", "0.56350726", "0.5598973", "0.5562216", "0.554766", "0.55297005", "0.55226314", "0.55072236", "0.5...
0.69204706
0
Returns the phat vay with the primary key or throws a NoSuchPhatVayException if it could not be found.
@Override public PhatVay findByPrimaryKey(long phatVayId) throws NoSuchPhatVayException { return findByPrimaryKey((Serializable)phatVayId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay findByPrimaryKey(Serializable primaryKey)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByPrimaryKey(primaryKey);\n\n\t\tif (phatVay == null) {\n\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t}\n\n\t\t\t...
[ "0.79107434", "0.72192615", "0.67585945", "0.6239492", "0.5962457", "0.5770259", "0.55272585", "0.55094004", "0.54585975", "0.5392372", "0.5392372", "0.5076191", "0.506374", "0.50635624", "0.5024385", "0.50054234", "0.49512133", "0.48978254", "0.4879637", "0.48652443", "0.485...
0.7619568
1
Returns the phat vay with the primary key or returns null if it could not be found.
@Override public PhatVay fetchByPrimaryKey(Serializable primaryKey) { Serializable serializable = entityCache.getResult( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class, primaryKey); if (serializable == nullModel) { return null; } PhatVay phatVay = (PhatVay)serializable; if (phatVay == n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay fetchByPrimaryKey(long phatVayId) {\n\t\treturn fetchByPrimaryKey((Serializable)phatVayId);\n\t}", "@Override\n\tpublic PhatVay findByPrimaryKey(Serializable primaryKey)\n\t\tthrows NoSuchPhatVayException {\n\n\t\tPhatVay phatVay = fetchByPrimaryKey(primaryKey);\n\n\t\tif (phatVay == ...
[ "0.68433523", "0.6406385", "0.620343", "0.620343", "0.6049726", "0.60410285", "0.5855083", "0.583345", "0.5810665", "0.5758311", "0.5757277", "0.5753881", "0.56941056", "0.566101", "0.5602283", "0.5594267", "0.55911607", "0.55911314", "0.55774885", "0.5534699", "0.55142766", ...
0.69748384
0
Returns the phat vay with the primary key or returns null if it could not be found.
@Override public PhatVay fetchByPrimaryKey(long phatVayId) { return fetchByPrimaryKey((Serializable)phatVayId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic PhatVay fetchByPrimaryKey(Serializable primaryKey) {\n\t\tSerializable serializable = entityCache.getResult(\n\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\tprimaryKey);\n\n\t\tif (serializable == nullModel) {\n\t\t\treturn null;\n\t\t}\n\n\t\tPhatVay phatVay = (PhatVay)...
[ "0.69748384", "0.6406385", "0.620343", "0.620343", "0.6049726", "0.60410285", "0.5855083", "0.583345", "0.5810665", "0.5758311", "0.5757277", "0.5753881", "0.56941056", "0.566101", "0.5602283", "0.5594267", "0.55911607", "0.55911314", "0.55774885", "0.5534699", "0.55142766", ...
0.68433523
1
Returns all the phat vaies.
@Override public List<PhatVay> findAll() { return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping ( BASE_PATH + \"/pharmacies\" )\n public List<Pharmacy> getPharmacies () {\n final List<Pharmacy> all = Pharmacy.getPharmacies();\n for ( final Pharmacy pharmacy : all ) {\n pharmacy.nullPrescriptions();\n }\n return all;\n }", "public java.util.List<viagg...
[ "0.68293554", "0.60033923", "0.5847399", "0.5841154", "0.5764852", "0.5758176", "0.5563781", "0.5563497", "0.5562544", "0.5524742", "0.54953206", "0.54941744", "0.5493823", "0.5488232", "0.5472547", "0.5442824", "0.54425395", "0.54359674", "0.542558", "0.54102755", "0.540408"...
0.6463695
1
Returns a range of all the phat vaies. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full result set. If order...
@Override public List<PhatVay> findAll(int start, int end) { return findAll(start, end, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator,\n\t\tboolean re...
[ "0.7884219", "0.7064242", "0.6200922", "0.5872316", "0.5820836", "0.58108443", "0.56157243", "0.5566941", "0.5370274", "0.5313964", "0.52985406", "0.51552784", "0.51415557", "0.5140979", "0.5098434", "0.49564713", "0.491518", "0.48857257", "0.48703277", "0.48589244", "0.48319...
0.70031965
2
Returns an ordered range of all the phat vaies. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full result set....
@Override public List<PhatVay> findAll( int start, int end, OrderByComparator<PhatVay> orderByComparator) { return findAll(start, end, orderByComparator, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\tboolean pagination = true;\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_...
[ "0.7092226", "0.6242734", "0.6224934", "0.6224507", "0.60269207", "0.5880553", "0.57416695", "0.56363803", "0.54473984", "0.53028345", "0.5232158", "0.5198078", "0.5176075", "0.5156205", "0.51544523", "0.51330924", "0.5030807", "0.4999579", "0.4981832", "0.49769086", "0.49721...
0.79423726
0
Returns an ordered range of all the phat vaies. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full result set....
@Override public List<PhatVay> findAll( int start, int end, OrderByComparator<PhatVay> orderByComparator, boolean retrieveFromCache) { boolean pagination = true; FinderPath finderPath = null; Object[] finderArgs = null; if ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) && (orderByComparat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}", "public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparat...
[ "0.79418194", "0.62419534", "0.62278575", "0.6225944", "0.6026811", "0.5880536", "0.57416224", "0.5636876", "0.5446743", "0.53061366", "0.52317214", "0.51972383", "0.5176584", "0.51577467", "0.5154028", "0.5133458", "0.5031435", "0.4998764", "0.49817115", "0.49785525", "0.497...
0.70927143
1
Removes all the phat vaies from the database.
@Override public void removeAll() { for (PhatVay phatVay : findAll()) { remove(phatVay); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearProteges(){\n ActiveAndroid.execSQL(\"delete from proteges\");\n }", "@After\n public void cleanDatabase() {\n\n databaseInstance.setTaxpayersArrayList(new ArrayList<Taxpayer>());\n }", "public void removeAll()\r\n {\n db = this.getWritableDatabase(); // helper...
[ "0.6869754", "0.67675257", "0.671826", "0.6605795", "0.65668064", "0.6540335", "0.64411527", "0.64220786", "0.6340728", "0.63220125", "0.6236777", "0.620402", "0.6202475", "0.61810166", "0.6173593", "0.6143871", "0.6140097", "0.61220115", "0.6107383", "0.60850734", "0.6078123...
0.7113697
0
Returns the number of phat vaies.
@Override public int countAll() { Long count = (Long)finderCache.getResult( _finderPathCountAll, FINDER_ARGS_EMPTY, this); if (count == null) { Session session = null; try { session = openSession(); Query q = session.createQuery(_SQL_COUNT_PHATVAY); count = (Long)q.uniqueResult(); fin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getProteinCount() {\r\n return proteinHits.size();\r\n }", "int numberOfPizzas() {\n return pizzas.size();\n }", "public int numberOfTires() {\n int tires = 4;\n return tires;\n }", "public int getNumPens(){\n return this.mFarm.getNumPens();\n }", "...
[ "0.64938116", "0.63763374", "0.6347906", "0.6273096", "0.61955005", "0.6192964", "0.6108355", "0.6061004", "0.6058363", "0.60455704", "0.6044468", "0.6040801", "0.6020365", "0.6020357", "0.60187346", "0.60123", "0.5960616", "0.5960616", "0.59587735", "0.593819", "0.58688325",...
0.0
-1
Initializes the phat vay persistence.
public void afterPropertiesSet() { _finderPathWithPaginationFindAll = new FinderPath( PhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayModelImpl.FINDER_CACHE_ENABLED, PhatVayImpl.class, FINDER_CLASS_NAME_LIST_WITH_PAGINATION, "findAll", new String[0]); _finderPathWithoutPaginationFindAll = new FinderPath( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initPersistence (){\n\t\tif (!this._onAppInit){\n\t\t\t/*\n\t\t\t * Evita stackoverflow\n\t\t\t */\n\t\t\tcloseActiveStoreData ();\n\t\t}\n\t\tsetDatastoreProperties ();\n\t\tfinal Properties properties = this._dataStoreEnvironment.getDataStoreProperties ();\n\t\tfinal PersistenceManagerFactory pmf =\n...
[ "0.62696993", "0.58057827", "0.57270586", "0.5725348", "0.5631432", "0.56193095", "0.5617419", "0.5587635", "0.5558174", "0.5533792", "0.5521405", "0.55167764", "0.5484678", "0.5456748", "0.54374266", "0.53583574", "0.53570443", "0.5346109", "0.5332298", "0.531271", "0.530149...
0.0
-1
TODO Autogenerated method stub
@Override public void onTextChanged(CharSequence s, int start, int before, int count) { searchByname(s.toString(), 10); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void afterTextChanged(Editable s) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void run() { doSearch(name, count); }
{ "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
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 450, 300); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().setLayout(null); JButton btnAdministrador = new JButton("Administrador"); btnAdministrador.addActionListener(new ActionListener() { publi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r...
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.71079...
0.0
-1
Created by dell on 2016/4/7.
public interface RoomListModel { void getRoomListData(Callback<RoomEntity> callback, int count, int page, int groupId); }
{ "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 tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.60584104", "0.5909962", "0.5851624", "0.5807373", "0.5764642", "0.5757174", "0.5757174", "0.575214", "0.57295173", "0.5702051", "0.56773436", "0.5661785", "0.56371254", "0.56353235", "0.56316096", "0.5625739", "0.56206465", "0.55958974", "0.5594776", "0.5594723", "0.558301...
0.0
-1
totalSales totalCost / getter,setter
public int getProductId() { return productId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public double calcCost() {\n return calcSalesFee()+calcTaxes();\n }", "@Override\n public double calcSalesFee() {\n return getCost() + getSalesPurchase();\n }", "public void salesTotal(){\n\t\tif (unitsSold<10){\n\t\t\tsetTotalCost(basePrice);\n\t\t\tsetDiscount(basePrice ...
[ "0.78001344", "0.76263845", "0.7467948", "0.7336399", "0.7250377", "0.7230279", "0.71541166", "0.7147887", "0.7124933", "0.7123197", "0.71071184", "0.7094255", "0.707298", "0.7062023", "0.70561385", "0.7048174", "0.7039908", "0.7018195", "0.69902086", "0.6989429", "0.69795483...
0.0
-1
close search view on back button pressed
@Override public void onBackPressed() { if (!searchView.isIconified()) { searchView.setIconified(true); return; } super.onBackPressed(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onBackPressed () {\n\t\tif (searchMode) {\n\t\t\ttoggleSearch();\n\t\t\treturn;\n\t\t}\n\t\tsuper.onBackPressed();\n\t}", "@Override\n public void onBackPressed() {\n if (Utils.isTablet(getApplicationContext())) {\n finish();\n } else {\n final Frag...
[ "0.8017401", "0.76610905", "0.740825", "0.735967", "0.7312289", "0.7296476", "0.7250609", "0.7198068", "0.7185568", "0.70709807", "0.70475453", "0.7015709", "0.700947", "0.69814014", "0.6962381", "0.6933819", "0.69300765", "0.6883601", "0.6863068", "0.68595314", "0.68520033",...
0.734145
6
TODO SENTAKU HA ITIDO NOMI & ACTION MINA NI HYOUJI(CLIENT KARA?) TODO action okuru& table de shori TODO atarasshii jouhou wo okuru & hyouji TOFU gewinner finden & zeigen(new Frame?)
public PokerFrame(Player player, GameState gameState) { this.player = player; this.gameState = gameState; String frameName = "Poker - Player " + player.getUsername(); frame = new JFrame(frameName); Container contentpane = frame.getContentPane(); frame.getContentPane().se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Instrucciones: \" + \"\\n1. Has de darle al boton iniciar juego \"\n\t\t\t\t\t\t+ \"\\n2. Aparecen los espacios de las letras de una palabra oculta \"\n\t\t\t\t\t\t+ \"\\n3. Has de adivinar la palabra pulsando en el teclad...
[ "0.6029184", "0.58498776", "0.5822632", "0.57730955", "0.5772579", "0.57543343", "0.56783056", "0.5663574", "0.5661997", "0.56585664", "0.56470114", "0.56201494", "0.5594234", "0.5593071", "0.5579733", "0.55659294", "0.55614513", "0.5558969", "0.5556825", "0.5555765", "0.5553...
0.0
-1
This deal with HiDPI, EMulGL and Windows+AWT
protected void configureScaler(Chart chart) { // This allows dealing with a difference // between emulgl and native // TODO : https://github.com/jzy3d/jzy3d-api/issues/304 scaled = !chart.getCanvas().isNative(); // This allows dealing with a difference // between Win+AWT and the other cases whe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract float getXdpi();", "protected byte desiredWinScale() { return 9; }", "public abstract float getYdpi();", "private void calc_screen_size(){\r\n \tscn_grid.setFont(scn_font);\r\n \tscn_context = scn_grid.getFontRenderContext();\r\n \t scn_layout = new TextLayout(\"X\",...
[ "0.62984544", "0.61609054", "0.6088045", "0.6036773", "0.5901228", "0.5742945", "0.57113206", "0.5707011", "0.5669265", "0.564593", "0.56147796", "0.55819345", "0.55640036", "0.5486404", "0.548453", "0.54323435", "0.5427923", "0.54238045", "0.54094106", "0.5408877", "0.538249...
0.49916616
87
Get the rate limiter to only consider mouse events at a given rate. Mainly useful for EmulGL to deal with liveness effect.
public RateLimiter getRateLimiter() { return rateLimiter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getHitRate();", "double getHitRate();", "public Point2D getMouseSpeed() {\n\t\treturn Lel.coreEngine.panelVectorToWorld(input.getMouseSpeed());\n\t}", "@Override\n double getThrottleInput(HumanInput humanInput) {\n return Util.applyInputCurve(\n throttleSmoother.getSmoothedVal...
[ "0.60063493", "0.60063493", "0.5380746", "0.5168542", "0.51009274", "0.5096678", "0.50787246", "0.50729454", "0.5068398", "0.49887598", "0.49772716", "0.49411672", "0.49410447", "0.49254078", "0.4921157", "0.48938927", "0.48703954", "0.48028788", "0.48014587", "0.47786278", "...
0.49342605
13
Provide a rate limiter to only consider mouse events at a given rate. Mainly useful for EmulGL to deal with liveness effect.
public void setRateLimiter(RateLimiter rateLimiter) { this.rateLimiter = rateLimiter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getHitRate();", "double getHitRate();", "void update(float interval, MouseInput mouseInput, Window window) throws Exception;", "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n if (getChart().getView().is2D()) {\n return;\n }\n\n // Check if mouse rate limiter wish to forb...
[ "0.5861544", "0.5861544", "0.5628111", "0.528119", "0.51639754", "0.51164836", "0.50430965", "0.49950466", "0.4985133", "0.49289536", "0.491662", "0.49093744", "0.48969477", "0.48872405", "0.4881586", "0.48658693", "0.4863999", "0.48401985", "0.48375142", "0.4773468", "0.4768...
0.45425034
57
Get the rendering settings of the mouse annotations (2D)
public MouseSelectionSettings getSelectionSettings() { return selectionSettings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RenderingHints getRenderingHints()\r\n\t{\r\n\t\treturn _g2.getRenderingHints();\r\n\t}", "public float[] getHitTexCoord();", "public Map<java.awt.RenderingHints.Key, ?> getImplementationHints() {\n return null;\n }", "int wkhtmltoimage_get_global_setting(PointerByReference settings, Point...
[ "0.63117546", "0.5681801", "0.5392127", "0.5289962", "0.528995", "0.5188994", "0.51560163", "0.5136495", "0.5094383", "0.5082963", "0.506305", "0.5047043", "0.50433946", "0.5017443", "0.5017416", "0.5000532", "0.49731192", "0.49624208", "0.49465355", "0.4930118", "0.49188972"...
0.53833646
3
Set all rendering settings of the mouse annotations (2D) at once
public void setSelectionSettings(MouseSelectionSettings selectionSettings) { this.selectionSettings = selectionSettings; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupRenderingHints() {\n argoRenderingHints = new RenderingHints(null);\n\n argoRenderingHints.put(RenderingHints.KEY_FRACTIONALMETRICS,\n RenderingHints.VALUE_FRACTIONALMETRICS_ON);\n\n if (Configuration.getBoolean(Argo.KEY_SMOOTH_EDGES, false)) {\n argoRen...
[ "0.59552604", "0.5946952", "0.56877154", "0.54698706", "0.5360746", "0.52987355", "0.5292652", "0.5292194", "0.52862144", "0.5261819", "0.5253783", "0.52304244", "0.52242", "0.5217412", "0.52026093", "0.51987624", "0.5181568", "0.5179537", "0.5138745", "0.50989985", "0.509440...
0.5089901
21
MOUSE EVENT LISTENERS SECTION When a mouse button is pressed In 3D, if double click, start or stop the camera rotation thread if there is any attached In 2D, memorize the starting point (top left) of the selection rectangle
@Override public void mousePressed(MouseEvent e) { prevMouse.x = x(e); prevMouse.y = y(e); // 3D mode if (getChart().getView().is3D()) { if (handleSlaveThread(e)) { return; } } // 2D mode else { Coord2d startMouse = prevMouse.clone(); if (maintainInAxis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e)\r\n\t\t\t{\n\t\t\t\tif (e.getButton() == MouseEvent.BUTTON3)\r\n\t\t\t\t{\r\n\t\t\t\t\tint x = e.getX();\r\n\t\t\t\t\tint y = e.getY();\r\n\t\t\t\t\tRectangle bounds = getOffsetBounds();\r\n\t\t\t\t\tif (bounds.contains(x, y))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t...
[ "0.688676", "0.6159102", "0.6152233", "0.6138782", "0.6129296", "0.6102798", "0.60431916", "0.6023223", "0.59723634", "0.5969104", "0.5919605", "0.5919605", "0.5919605", "0.5919404", "0.58990157", "0.5888889", "0.58466446", "0.5818546", "0.58017", "0.5786276", "0.57625467", ...
0.73030865
0
When mouse is dragged In 3D, if left button is hold, rotates the view around the center of the scene In 3D, if right button is hold, shift the view along Z axis In 2D, update the memory of the stop point (bottom right) of the selection rectangle
@Override public void mouseDragged(MouseEvent e) { // Check if mouse rate limiter wish to forbid this mouse drag instruction if (rateLimiter != null && !rateLimiter.rateLimitCheck()) { return; } // Apply mouse drag Coord2d mouse = xy(e); // 3D mode if (getChart().getView().is3D())...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check whether left or right mouse is held\n if (SwingUtilities.isLeftMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n ...
[ "0.65292346", "0.63628405", "0.62408495", "0.61531883", "0.61139035", "0.60063905", "0.5974172", "0.592868", "0.5906423", "0.5836283", "0.5775969", "0.57729334", "0.5769485", "0.570658", "0.56972194", "0.5693377", "0.5686747", "0.5658594", "0.56441504", "0.563718", "0.560753"...
0.60422885
5
When mouse button is released In 3D, does nothing In 2D, perform the zoom according to the selection
@Override public void mouseReleased(MouseEvent e) { // 2D mode if (getChart().getView().is2D()) { View view = getChart().getView(); applyMouse2DSelection(view); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void mousePressed(MouseEvent e) {\n\n prevMouse.x = x(e);\n prevMouse.y = y(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n if (handleSlaveThread(e)) {\n return;\n }\n }\n\n // 2D mode\n else {\n\n Coord2d startMouse = prevMouse.clone();\n\n ...
[ "0.7390762", "0.7214869", "0.7036407", "0.6854954", "0.6742406", "0.67089736", "0.6691069", "0.6673668", "0.6651459", "0.6637641", "0.6617169", "0.6528861", "0.64933056", "0.6471729", "0.6458738", "0.6458296", "0.6419184", "0.6375344", "0.6347212", "0.63008696", "0.6275235", ...
0.7082881
2
When mouse wheel rotates In 3D, Update Z scale In 2D, does nothing
@Override public void mouseWheelMoved(MouseWheelEvent e) { if (getChart().getView().is2D()) { return; } // Check if mouse rate limiter wish to forbid this mouse drag instruction if (rateLimiter != null && !rateLimiter.rateLimitCheck()) { return; } stopThreadController(); floa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n // Check direction of rotation\n if (e.getWheelRotation() < 0) {\n // Zoom in for up\n tr_z += 0.01f;\n } else {\n // Zoom out for down\n ...
[ "0.6896115", "0.60833186", "0.5969881", "0.59275836", "0.58565414", "0.5780355", "0.5775288", "0.5738928", "0.57036024", "0.5692813", "0.562046", "0.5610479", "0.5609983", "0.5554658", "0.5547676", "0.5543407", "0.5534546", "0.55243975", "0.54886913", "0.54788464", "0.5477313...
0.6317577
1
When mouse moves on the canvas In 3D, drop mouse position as it should not be displayed In 2D, store mouse position to overlay coordinates
@Override public void mouseMoved(MouseEvent e) { View view = getChart().getView(); // if (getChart().getView().is3D()) { mousePosition.event = null; mousePosition.projection = null; } else { mousePosition.event = e; mousePosition.projection = screenToModel(e); } view.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void mousePressed(MouseEvent e) {\n\n prevMouse.x = x(e);\n prevMouse.y = y(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n if (handleSlaveThread(e)) {\n return;\n }\n }\n\n // 2D mode\n else {\n\n Coord2d startMouse = prevMouse.clone();\n\n ...
[ "0.72781247", "0.6505539", "0.64419794", "0.6258446", "0.62287027", "0.61179054", "0.6097977", "0.6006068", "0.599872", "0.58989286", "0.58737886", "0.5867541", "0.5853765", "0.5828951", "0.5822118", "0.5818008", "0.581737", "0.58070374", "0.5766006", "0.57484454", "0.5744908...
0.7155958
1
When mouse goes out of the canvas
@Override public void mouseExited(MouseEvent e) { // Reset mouse position memory as mouse exit the canvas mousePosition = new MousePosition(); // Update display if (getChart() != null) { getChart().getView().shoot(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reportMouseOut()\n\t{\n\t\tif(mouseIn)\n\t\t{\n\t\t\tmouseIn = false;\n\t\t\ttarget.onLeave();\n\t\t}\n\t}", "private static void OnMouseLeave(Object sender, MouseEventArgs e)\r\n { \r\n // Un-vanish the cursor on any mouse leave.\r\n _ShowCursor(); \r\n }", "void mouseExited(Mo...
[ "0.7127799", "0.70206016", "0.6849453", "0.6823245", "0.68178946", "0.6812184", "0.67918515", "0.6771264", "0.6771264", "0.6771264", "0.6771264", "0.6734329", "0.66865987", "0.66771394", "0.66735506", "0.66723853", "0.6653881", "0.6645011", "0.6633606", "0.66333973", "0.66163...
0.74935323
0
When mouse is clicked, i.e. when button is pressed and released fast
@Override public void mouseClicked(MouseEvent e) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void pressed(MouseEvent e)\r\n {\n }", "public void mousePressed() {\n\t\tif(detectCollision(this.p.mouseX,this.p.mouseY)) {\n\t\t\tthis.isPressed = true;\n\t\t\tclick();\n\t\t}\n\t}", "public void mousePressed(MouseEvent event){\n\t\t// We recognized pressing the mouse with a flag\n\t\tclickfl...
[ "0.8051073", "0.7989531", "0.79849625", "0.78343505", "0.78223747", "0.78071547", "0.7793862", "0.77613515", "0.7748046", "0.7739457", "0.77373546", "0.77373546", "0.77373546", "0.77368003", "0.77353865", "0.7673535", "0.76255286", "0.7603248", "0.7587542", "0.7564072", "0.75...
0.0
-1
When mouse enters the canvas
@Override public void mouseEntered(MouseEvent e) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void mouseEntered() {\n\t\t\n\t}", "public void mouseEntered (MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEnte...
[ "0.75464255", "0.7531019", "0.74370515", "0.74370515", "0.74370515", "0.74370515", "0.74370515", "0.74370515", "0.74370515", "0.74144155", "0.741436", "0.733305", "0.7302741", "0.72830576", "0.725563", "0.725105", "0.7215967", "0.7200657", "0.7184722", "0.71772844", "0.716393...
0.71324354
30
MOUSE 2D PROCESSING Perform the actual 2D ZOOM or UNZOOM according to the recorded mouse gesture.
protected void applyMouse2DSelection(View view) { boolean allowCrop = true; if (!mouseSelection.complete()) { return; } // Reset selection to UNZOOM if (!mouseSelection.growing()) { // getChart().getScene().getGraph().setClipBox(null); if (allowCrop) getChart().getScen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check if mouse rate limiter wish to forbid this mouse drag instruction\n if (rateLimiter != null && !rateLimiter.rateLimitCheck()) {\n return;\n }\n\n // Apply mouse drag\n Coord2d mouse = xy(e);\n\n // 3D mode\n if (getChart()....
[ "0.593226", "0.5745741", "0.5701538", "0.5440666", "0.53827137", "0.5349721", "0.533765", "0.5278296", "0.5277854", "0.52316684", "0.5222363", "0.52150416", "0.5131204", "0.51307654", "0.51235193", "0.50783044", "0.5077768", "0.50724304", "0.50675905", "0.5058558", "0.5051067...
0.5703978
2
Configure zoom according mouse selection, bounds, and current 2D (XY, XZ, etc)
protected void configureZoomAccordingTo2DView(View view, BoundingBox3d bounds, MouseSelection mouseSelection) { if (view.is2D_XY()) { bounds.setXmin(mouseSelection.min3DX()); bounds.setXmax(mouseSelection.max3DX()); bounds.setYmin(mouseSelection.min3DY()); bounds.setYmax(mouseSelection...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void multitouchZoom(int new_zoom);", "protected void applyMouse2DSelection(View view) {\n\n boolean allowCrop = true;\n\n if (!mouseSelection.complete()) {\n return;\n }\n\n\n // Reset selection to UNZOOM\n if (!mouseSelection.growing()) {\n // getChart().getScene().getGraph().setClipBox...
[ "0.69845915", "0.69739664", "0.69704133", "0.679773", "0.6705861", "0.660328", "0.65501565", "0.6520316", "0.6418733", "0.6412794", "0.6410833", "0.63891494", "0.6372282", "0.63489693", "0.6304238", "0.62701124", "0.6263378", "0.6178998", "0.61594856", "0.61522293", "0.607139...
0.7523285
0
Modify the input coord2D to ensure the mouse value never stand outside of the axis bounds.
protected void maintainInAxis(Coord2d mouse) { View view = getChart().getView(); View2DLayout layout = view.get2DLayout(); BoundingBox3d bounds3d = getChart().getView().getBounds(); // Get corners Coord3d cornerMin3D = null; Coord3d cornerMax3D = null; if (view.is2D_XY()) { // no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseReleased(MouseEvent e) {\n int xfinal = e.getX() / 5; //get the xvalue\r\n int yfinal = e.getX() / 5; //get the yvalue\r\n\r\n try {\r\n if (xinitial < 100 && xinitial > -1 && yinitial < 100 && yinitial > -1 && xfinal < 100 && xfinal > -1 && yfinal < 100 && yfinal >...
[ "0.61429113", "0.58553463", "0.57849705", "0.572527", "0.56681347", "0.55007166", "0.55006814", "0.54938376", "0.5460428", "0.5455499", "0.5431558", "0.5416564", "0.54134506", "0.5397975", "0.53892183", "0.53844225", "0.53577137", "0.5351752", "0.5341253", "0.5341253", "0.532...
0.5191333
40
TRIGGER SLAVE THREAD Handles toggle between mouse rotation/auto rotation: doubleclick starts the animated rotation, while simple click stops it.
protected boolean handleSlaveThread(MouseEvent e) { if (AWTMouseUtilities.isDoubleClick(e)) { if (threadController != null) { threadController.start(); return true; } } if (threadController != null) threadController.stop(); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cameraRotation() throws InterruptedException {\n\t\tint lowSide = (int)random(1,4);\r\n\t\tint highSide = (int)random(5,10);\r\n\t\tint medLowSide = (int)random(10,15);\r\n\t\tint medHighSide = (int)random(35,60);\r\n\t\tint highLowSide = (int)random(70,100);\r\n\t\tint highHighSide = (int)random(200,3...
[ "0.5726378", "0.5724353", "0.5695972", "0.5605763", "0.5589864", "0.5394965", "0.52926713", "0.5265876", "0.5239575", "0.52019894", "0.5195786", "0.5078757", "0.5077212", "0.5039019", "0.50075454", "0.50003517", "0.49937937", "0.49824354", "0.49803913", "0.49326822", "0.49240...
0.4928827
20
SCREEN TO MODEL, MORE SMARTLY THAN IN CAMERA, USING COLORBAR AND MARGINS
protected Coord2d xy(MouseEvent e) { return new Coord2d(x(e), y(e)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void drawToScreen() {\n \n Graphics g2 = getGraphics();\n /*g2.drawImage(image, 0, 0, \n WIDTH * SCALE, HEIGHT * SCALE, \n 0, 0, WIDTH, HEIGHT, \n this);*/\n g2.drawImage(image,\n ...
[ "0.649711", "0.63080466", "0.6299201", "0.62298787", "0.6121884", "0.6020199", "0.5944125", "0.5900178", "0.5896494", "0.5869833", "0.5867034", "0.58606625", "0.5786673", "0.57704365", "0.57508", "0.57174456", "0.57153237", "0.5703876", "0.57036906", "0.56974703", "0.5695854"...
0.0
-1
Perform model to screen projection smartly, considering the effect of a colorbar on the actual viewport.
protected Coord3d modelToScreen(Coord3d model) { IPainter painter = getChart().getPainter(); painter.acquireGL(); int[] viewport = getViewportExcludingColorbar(); float modelView[] = painter.getModelViewAsFloat(); float projection[] = painter.getProjectionAsFloat(); Coord3d screen = painter.m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DeviceCoordinate transformWorldToScreen(final double x, final double y);", "private void prepareProjection(Drawable drawable) {\n Matrix4f viewMatrix = new Matrix4f();\n\n Matrix4f modelMatrix = new Matrix4f();\n\n// Translate camera\n org.lwjgl.util.vector.Matrix4f.translate(this.camera.get...
[ "0.60315734", "0.5915714", "0.5893626", "0.5837096", "0.58280325", "0.5823849", "0.58042365", "0.5675187", "0.5660702", "0.555616", "0.55390424", "0.55212295", "0.54709345", "0.5432689", "0.540186", "0.53337806", "0.5259748", "0.5212611", "0.51898575", "0.51855767", "0.516977...
0.6847477
0
Perform screen to model projection smartly, considering the effect of a colorbar on the actual viewport.
protected Coord3d screenToModel(Coord3d mouse) { IPainter painter = getChart().getPainter(); painter.acquireGL(); int[] viewport = getViewportExcludingColorbar(); float modelView[] = painter.getModelViewAsFloat(); float projection[] = painter.getProjectionAsFloat(); Coord3d model = painter.sc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Coord3d modelToScreen(Coord3d model) {\n IPainter painter = getChart().getPainter();\n\n painter.acquireGL();\n\n int[] viewport = getViewportExcludingColorbar();\n float modelView[] = painter.getModelViewAsFloat();\n float projection[] = painter.getProjectionAsFloat();\n\n Coord3d scre...
[ "0.6357681", "0.61031616", "0.6084687", "0.6024298", "0.6023919", "0.59413296", "0.58824855", "0.57250136", "0.56458634", "0.56355196", "0.563292", "0.5585918", "0.5521828", "0.5496324", "0.5482349", "0.54350275", "0.5408486", "0.5395736", "0.53652966", "0.5307176", "0.530474...
0.5552552
12
VALUE LABEL FORMAT AND DRAW Drawing primitive for mouse tooltips. Will format according to axis tick renderers and labels.
protected void drawCoord(Graphics2D g2d, Coord2d screenPosition, Coord3d modelPosition, int interline, boolean leftAlign) { String d1 = null; String d2 = null; if (getChart().getView().is2D_XY()) { d1 = format(Axis.X, modelPosition.x); d2 = format(Axis.Y, modelPosition.y); } else if (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void plot() {\n // TODO: Implement this method\n System.out.printf(\"%10s : [\",this.label);\n for (int i=1;i<=this.value;i++) {\n System.out.print(\"#\");\n }\n System.out.printf(\"] (%d)\\n\",this.value);\n }", "private void drawAxis(final Graphics g, fin...
[ "0.5759936", "0.5745342", "0.56829536", "0.55794466", "0.5572976", "0.5541414", "0.55223984", "0.5488949", "0.5482367", "0.5320335", "0.53080964", "0.5299829", "0.5254932", "0.5245294", "0.52262616", "0.5219585", "0.520955", "0.5207767", "0.5192589", "0.51783603", "0.51689446...
0.0
-1
return true if start 2D is smaller than stop 2D
boolean growing(boolean bothDimensions) { if (complete()) { if (bothDimensions) return (start2D.x < stop2D.x) && (start2D.y <= stop2D.y); else return (start2D.x < stop2D.x) || (start2D.y <= stop2D.y); } else return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean withinGridDimensions(int startX, int startY, int endX, int endY) {\n boolean within = true;\n int largerX = Math.max(startX, endX);\n int smallerX = Math.min(startX, endX);\n int largerY = Math.max(startY, endY);\n int smallerY = Math.min(startY, endY);\n \n if (smallerX < 1 ||...
[ "0.6965608", "0.63703084", "0.6338922", "0.6208713", "0.6085419", "0.5964523", "0.5963434", "0.5955355", "0.5935504", "0.5884454", "0.58745974", "0.5864993", "0.5852133", "0.5850221", "0.5847762", "0.5845447", "0.58217025", "0.5819524", "0.5818916", "0.58164316", "0.5815643",...
0.7311257
0
return true if selection is complete, i.e. has a starting and stopping point
boolean complete() { return start2D != null && stop2D != null;// && start3D!=null && stop3D!=null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean hasSelection();", "public boolean checkValidSelection(Point start, Point end){\n \t\tboolean flag = false;\n \t\tif (start.x == end.x) {\n \t\t\tflag = true;\n \t\t}\n \t\telse if (start.y == end.y) {\n \t\t\tflag = true;\n \t\t}\n \t\telse if ((start.x - start.y) == (end.x - end.y)) {\n ...
[ "0.7145893", "0.7068959", "0.6759892", "0.6742121", "0.6597949", "0.657986", "0.6528815", "0.6526838", "0.6507046", "0.64960504", "0.64896035", "0.64839536", "0.64088875", "0.64072216", "0.63776976", "0.6334152", "0.63323575", "0.6318275", "0.63169646", "0.63070565", "0.62852...
0.6571672
6
The min X value of the 2D point
public float min2DX() { return Math.min(stop2D.x, start2D.x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getMinX(){\n return points.get(0).getX();\n }", "Coordinate getMinX();", "public Point getXMin()\n {\n return (Point)xMin.clone();\n }", "public double getMinX() {\n\t\tif (pointList.size()==0) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn pointList.get(0).getX();\n\t}", "public...
[ "0.8357372", "0.8223785", "0.7911162", "0.78482693", "0.78296775", "0.77311397", "0.760955", "0.75871974", "0.7582669", "0.7562433", "0.75159407", "0.743362", "0.7408148", "0.73513037", "0.7304208", "0.72746587", "0.7237327", "0.71930254", "0.7179675", "0.70785916", "0.700957...
0.7293146
15
The max X value of the 2D point
public float max2DX() { return Math.max(stop2D.x, start2D.x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getMaxX(){\n return points.get(points.size()-1).getX();\n }", "public double getMaxCoordinateValue() {\n if (this.max_x > this.max_y)\n return this.max_x;\n else\n return this.max_y;\n }", "public double getMaxX() {\n\t\treturn mx;\n\t}", "public ...
[ "0.8001957", "0.7797149", "0.7643447", "0.74745166", "0.74733794", "0.74544954", "0.7399487", "0.7388545", "0.7341583", "0.7321214", "0.7286805", "0.7174605", "0.7143014", "0.7140928", "0.70949185", "0.70836544", "0.7071441", "0.70354015", "0.701116", "0.69695556", "0.6902507...
0.7203028
11
The min Y value of the 2D point
public float min2DY() { return Math.min(stop2D.y, start2D.y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Coordinate getMinY();", "private double findMinY() {\n\t\tif (pointList.size()==0) {\n\t\t\treturn 0;\n\t\t}\n\t\tdouble min = pointList.get(0).getY();\n\t\tfor(int i=0; i<pointList.size(); i++)\n\t\t\tif (min>pointList.get(i).getY())\n\t\t\t\tmin = pointList.get(i).getY();\n\t\treturn min;\n\t}", "float yMin(...
[ "0.83581865", "0.79226846", "0.7827924", "0.77432364", "0.7732147", "0.772944", "0.7682478", "0.765928", "0.75409627", "0.74333847", "0.73364276", "0.7335734", "0.7292634", "0.72547364", "0.70902336", "0.70809275", "0.70735955", "0.7066289", "0.7061281", "0.6926294", "0.69014...
0.74889797
9
The max Y value of the 2D point
public float max2DY() { return Math.max(stop2D.y, start2D.y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double findMaxY() {\n\t\tif (pointList.size()==0) {\n\t\t\treturn Double.NaN;\n\t\t}\n\t\tdouble max = pointList.get(0).getY();\n\t\tfor(int i=0; i<pointList.size(); i++)\n\t\t\tif (max<pointList.get(i).getY())\n\t\t\t\tmax = pointList.get(i).getY();\n\t\treturn max;\n\t}", "public double getMaxY() { re...
[ "0.8189508", "0.80759066", "0.802194", "0.80164605", "0.7913982", "0.7813693", "0.7726508", "0.7681976", "0.7654585", "0.76188445", "0.7612814", "0.7594504", "0.75907815", "0.7578015", "0.752551", "0.75130963", "0.75121206", "0.74651533", "0.7423104", "0.7395514", "0.7213043"...
0.77504796
6
The min X value of the 2D point projected to 3D
public float min3DX() { return Math.min(stop3D.x, start3D.x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getMinX(){\n return points.get(0).getX();\n }", "Coordinate getMinX();", "public Point3 min(Point3 p) {\n return new Point3( Math.min(x, p.x),\n Math.min(y, p.y),\n Math.min(z, p.z) );\n }", "private float getMinX(HomePieceOfFurnit...
[ "0.7508068", "0.7339012", "0.70582086", "0.7004657", "0.6986083", "0.69355786", "0.6840453", "0.68161786", "0.67992496", "0.6790533", "0.67699236", "0.6635315", "0.6531941", "0.65256387", "0.6488092", "0.6476309", "0.6439792", "0.6419362", "0.6380284", "0.6367273", "0.6359896...
0.74539894
1