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
creates an instance of the global preferences
public void setColor() { String PREF_FILE_NAME = "PrefFile"; final SharedPreferences preferences = getSharedPreferences(PREF_FILE_NAME, MODE_PRIVATE); if(preferences.getBoolean("ColorBlind", false)) { View box1 = this.findViewById(R.id.username); box1.setBackgroundC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private GlobalPrefs() {\n\t\tprops = new Properties();\n\t}", "private Settings() {\n prefs = NbPreferences.forModule( Settings.class );\n }", "@Override\n\tpublic UserPreferences newInstance() {\n\t\treturn new UserPreferences();\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();...
[ "0.76490384", "0.70027983", "0.6904274", "0.66082704", "0.6550849", "0.65483564", "0.64442843", "0.64187974", "0.6367915", "0.63637114", "0.63573647", "0.63093054", "0.63091713", "0.6303584", "0.629874", "0.6297175", "0.6288669", "0.6268745", "0.6260432", "0.6255532", "0.6252...
0.0
-1
List socketChannels = new ArrayList();
public ClientWorker(ServerSocketChannel serverChannel){ this.serverChannel = serverChannel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<main.java.io.grpc.chatservice.Channel> \n getChannelsList();", "public Collection<String> getChannels();", "public List<String> getChannels() {\n return channels.get();\n }", "public ServerPlayers() {\n sockets = new ArrayList<Socket>();\n }", "int getChannelsCount();", ...
[ "0.69146633", "0.68625206", "0.65373254", "0.64651406", "0.6377702", "0.6323581", "0.63167894", "0.6312309", "0.63038266", "0.62867457", "0.6276919", "0.62489253", "0.6240968", "0.61951923", "0.61134195", "0.6084559", "0.60690117", "0.6050416", "0.6032078", "0.60223156", "0.6...
0.0
-1
Optional parameter for calculate: useImplicitPriority. if undefined, defaults to true
public static double calculate(String target) {return calculate(target, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract double getPriority();", "default int getPriority() {\n return 0;\n }", "public abstract int getPriority();", "public abstract int getPriority();", "public abstract int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", ...
[ "0.7061705", "0.63268083", "0.6294288", "0.6294288", "0.6294288", "0.6257903", "0.6257903", "0.6257903", "0.6257903", "0.6257903", "0.6257903", "0.6257903", "0.6257903", "0.6243828", "0.6243828", "0.6204638", "0.6170194", "0.613512", "0.60706645", "0.59469026", "0.5928067", ...
0.0
-1
Getter method for property totalCount.
public int getTotalCount() { return totalCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getTotalCount() {\r\n return totalCount;\r\n }", "public long getTotalCount() {\n return _totalCount;\n }", "public Long getTotalCount() {\n\t\treturn this.totalCount;\n\t}", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\"...
[ "0.8655469", "0.8544588", "0.84516567", "0.80051255", "0.80051255", "0.80043703", "0.7907959", "0.7894605", "0.7851496", "0.78361046", "0.78050864", "0.77906275", "0.77763426", "0.77763426", "0.7774488", "0.7774488", "0.7756643", "0.7756643", "0.77120805", "0.7710045", "0.769...
0.86242914
1
Setter method for property totalCount.
public void setTotalCount(int totalCount) { this.totalCount = totalCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTotalCount(Long totalCount) {\r\n this.totalCount = totalCount;\r\n }", "public Long getTotalCount() {\r\n return totalCount;\r\n }", "public int getTotalCount() {\n return totalCount;\n }", "public void setTotalCount(long totalCount) {\r\n\t\tif (totalCount < 0) ...
[ "0.7508337", "0.7403412", "0.7399768", "0.7256993", "0.72253245", "0.718002", "0.714764", "0.714764", "0.714764", "0.7007136", "0.69188", "0.6888601", "0.68862236", "0.68566567", "0.6793042", "0.6793042", "0.6782188", "0.6779797", "0.6756721", "0.67273724", "0.6726858", "0....
0.77712303
0
Getter method for property pageSize.
public int getPageSize() { return pageSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPageSize() {\r\n return pageSize;\r\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n return pageSize_;\n }", "@java.lang.Override\n public long getPageSize() {\n ret...
[ "0.8092172", "0.7926688", "0.7926688", "0.7926688", "0.7908171", "0.7908171", "0.7908171", "0.7867943", "0.7734487", "0.77103364", "0.77103364", "0.7417625", "0.7357379", "0.73446137", "0.73446137", "0.73446137", "0.7339478", "0.72958696", "0.72958696", "0.72958696", "0.72958...
0.80453014
3
Setter method for property pageSize.
public void setPageSize(int pageSize) { this.pageSize = pageSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPageSize(int value) {\n this.pageSize = value;\n }", "public void setPageSize(int pageSize) {\n\t\tthis.pageSize = pageSize;\n\t}", "public void setPageSize(String pageSize) {\r\n this.pageSize = pageSize;\r\n }", "public void setPageSize(int pageSize) {\r\n\t\tif (pageSize...
[ "0.81708044", "0.8093552", "0.7977705", "0.7890457", "0.76825184", "0.76825184", "0.76825184", "0.76601934", "0.74052775", "0.72507703", "0.6957902", "0.6957902", "0.6957902", "0.6957093", "0.6957093", "0.6957093", "0.6940076", "0.68879336", "0.68879336", "0.68879336", "0.687...
0.81348705
1
Getter method for property pageNo.
public int getPageNo() { return pageNo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPageNum() {\r\n return pageNum;\r\n }", "public io.dstore.values.IntegerValue getPageNo() {\n return pageNo_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : pageNo_;\n }", "public io.dstore.values.IntegerValue getPageNo() {\n return pageNo_ == null ? io....
[ "0.7864455", "0.7759193", "0.7754922", "0.7713029", "0.76779354", "0.76779354", "0.7663635", "0.7650197", "0.76205784", "0.7617306", "0.7610015", "0.7599323", "0.7420367", "0.7420367", "0.7420367", "0.7420367", "0.7392208", "0.7333395", "0.72524536", "0.7141567", "0.71203375"...
0.8445848
0
Setter method for property pageNo.
public void setPageNo(int pageNo) { this.pageNo = pageNo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPageNo(long pageNo) {\r\n\t\tif (pageNo < 1) {\r\n\t\t\tthis.pageNo = 1;\r\n\t\t} else {\r\n\t\t\tthis.pageNo = pageNo;\r\n\t\t}\r\n\t}", "public void setPage(int value) {\n this.page = value;\n }", "public void setPageNum(String pageNum) {\r\n this.pageNum = pageNum;\r\n }",...
[ "0.8495794", "0.78637606", "0.7771426", "0.7593339", "0.74581176", "0.7447211", "0.7211494", "0.7204137", "0.72019494", "0.6869078", "0.6869078", "0.6801431", "0.67641604", "0.67547643", "0.6754568", "0.67323345", "0.6637653", "0.66153073", "0.6611862", "0.6597776", "0.659351...
0.8684949
0
Getter method for property startPos.
public int getStartPos() { return startPos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector2D getStartPos(){\n\t\treturn startPos;\n\t}", "public void setStartPos(int startPos) {\r\n this.startPos = startPos;\r\n }", "public void setStartPos(int startPos) {\n this.startPos = startPos;\n }", "public int getStartPosition() {\n return startPosition_;\n }", "...
[ "0.83834416", "0.76173645", "0.75951016", "0.7260171", "0.72489494", "0.7246368", "0.7208699", "0.7207649", "0.7161607", "0.71472615", "0.714535", "0.7081361", "0.70486385", "0.7003382", "0.69378877", "0.69054395", "0.6826884", "0.68229353", "0.6816136", "0.6808792", "0.67643...
0.85394424
0
Setter method for property startPos.
public void setStartPos(int startPos) { this.startPos = startPos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setStartPos(int startPos) {\r\n this.startPos = startPos;\r\n }", "public int getStartPos() {\n return startPos;\n }", "public Vector2D getStartPos(){\n\t\treturn startPos;\n\t}", "public final void setSourcePosition(int startPos, int endPos) {\r\n \t\tassertTrue(startPos >= 0...
[ "0.855957", "0.7223837", "0.707952", "0.66758806", "0.64041436", "0.6299533", "0.6299533", "0.6120957", "0.6103931", "0.60912377", "0.6065867", "0.6029541", "0.59915906", "0.5978435", "0.59763914", "0.5939721", "0.587031", "0.58505166", "0.58292806", "0.58195484", "0.5796774"...
0.8538257
1
Getter method for property paging.
public boolean getPaging() { return paging; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected PagingInfo getPagingInfo() {\n\t\treturn paging;\n\t}", "public Integer getPerPage();", "public int getPages(){\n return pages;\n }", "@Override\r\n\tpublic int getPaging() {\n\t\treturn 0;\r\n\t}", "public int getPages() {\n return pages;\n }", "public int getPages()\n {\n ...
[ "0.7272662", "0.7136025", "0.7039374", "0.69630146", "0.68418765", "0.68376327", "0.67331487", "0.67331487", "0.6639349", "0.6639349", "0.6639349", "0.6632003", "0.6632003", "0.6632003", "0.66097647", "0.66063935", "0.6594442", "0.65411794", "0.65411794", "0.65411794", "0.653...
0.69737715
3
Setter method for property paging.
public void setPaging(boolean paging) { this.paging = paging; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setPaging(PagingInterface paging) {\n\t\t\n\t}", "@Override\n\tpublic void setPaging(PagingInterface paging) {\n\t\t\n\t}", "public void setPage(int value) {\n this.page = value;\n }", "void setPagination(Pagination pagination);", "public void setPageSize(int value) {\n ...
[ "0.753429", "0.753429", "0.7185509", "0.71333826", "0.70041263", "0.6804417", "0.6792083", "0.674919", "0.672978", "0.6729267", "0.6706535", "0.6638865", "0.6592502", "0.6559151", "0.65491015", "0.65050274", "0.6466023", "0.6460135", "0.64174575", "0.6415248", "0.6414486", ...
0.71629333
3
Getter method for property marketingsStatusName.
public String getMarketingsStatusName() { return marketingsStatusName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMarketingsStatusName(String marketingsStatusName) {\n this.marketingsStatusName = marketingsStatusName;\n }", "public String getStatusName() {\r\n\t\treturn statusName;\r\n\t}", "public MarketStatus getStatus(){\n return status;\n }", "public String getStatusName() {\n ...
[ "0.7553616", "0.70625335", "0.69014573", "0.6875023", "0.68033695", "0.6620995", "0.653533", "0.653533", "0.64495605", "0.64495116", "0.64495116", "0.64495116", "0.6444538", "0.64293617", "0.6426148", "0.64118344", "0.6399507", "0.6399507", "0.63786304", "0.63786304", "0.6378...
0.886576
0
Setter method for property marketingsStatusName.
public void setMarketingsStatusName(String marketingsStatusName) { this.marketingsStatusName = marketingsStatusName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMarketingsStatusName() {\n return marketingsStatusName;\n }", "public void setStatusName(String statusName) {\r\n\t\tthis.statusName = statusName;\r\n\t}", "public void setStatusName(String statusName);", "@Override\n\tpublic void setStatusName(java.lang.String statusName) {\n\t\t_...
[ "0.7890484", "0.67743725", "0.6718829", "0.6605051", "0.63443875", "0.63097674", "0.6091811", "0.6091811", "0.6042593", "0.6026594", "0.5938034", "0.59293866", "0.5924647", "0.5864253", "0.58613974", "0.5847243", "0.5837098", "0.582919", "0.58054847", "0.58054847", "0.580124"...
0.81093913
0
Getter method for property telNo.
public String getTelNo() { return telNo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTelNo() {\n return telNo;\n }", "public String getTelNo()\r\n\t{\r\n\t\treturn this.telNo;\r\n\t}", "public String getTel() {\r\n return tel;\r\n }", "public Integer getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public Str...
[ "0.86788243", "0.8601807", "0.8181109", "0.81619585", "0.8109246", "0.8109246", "0.8109246", "0.8109246", "0.8109246", "0.8109246", "0.8109246", "0.8109246", "0.8109246", "0.8054577", "0.78497195", "0.78497195", "0.78497195", "0.7819115", "0.7762715", "0.7729908", "0.76384944...
0.86867154
0
Setter method for property telNo.
public void setTelNo(String telNo) { this.telNo = telNo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTelNo(String telNo) {\n this.telNo = telNo;\n }", "public void setTelNo(String telNo)\r\n\t{\r\n\t\tthis.telNo = telNo;\r\n\t}", "public void setTel(Integer tel) {\n this.tel = tel;\n }", "public String getTelNo() {\n return telNo;\n }", "public String getTelNo() {\n ...
[ "0.8490161", "0.8408774", "0.7943673", "0.7747334", "0.77450573", "0.7639047", "0.7639047", "0.7639047", "0.7639047", "0.7623501", "0.742242", "0.742242", "0.73970884", "0.72268397", "0.72268397", "0.72268397", "0.72268397", "0.72268397", "0.7211038", "0.7123448", "0.7121148"...
0.8405303
2
Getter method for property lgcsAreaName.
public String getLgcsAreaName() { return lgcsAreaName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAreaName()\n {\n return this.areaName;\n }", "public String getAreaName() {\n return areaName;\n }", "public String getAreaName() {\n return areaName;\n }", "@Override\n\tpublic java.lang.String getAreaName() {\n\t\treturn _locMstLocation.getAreaName();\n\t}"...
[ "0.795649", "0.78765893", "0.78765893", "0.7713694", "0.71399647", "0.7118156", "0.71056366", "0.6974822", "0.6880159", "0.68077904", "0.67865556", "0.67865556", "0.67865556", "0.67817754", "0.66330254", "0.66330254", "0.66029215", "0.6597648", "0.6537235", "0.6482525", "0.64...
0.8517167
0
Setter method for property lgcsAreaName.
public void setLgcsAreaName(String lgcsAreaName) { this.lgcsAreaName = lgcsAreaName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLgcsAreaName() {\n return lgcsAreaName;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "public void setAreaName(String areaName) {\n this.areaName = areaName;\n }", "@Override\n\tpublic void setAreaName(java.lang.String AreaN...
[ "0.7374048", "0.7102033", "0.7102033", "0.69672745", "0.6907641", "0.6849585", "0.6849585", "0.66277826", "0.65439874", "0.64581364", "0.6017963", "0.5983077", "0.5965839", "0.5962876", "0.58910877", "0.58910877", "0.5889401", "0.5792346", "0.57631725", "0.568125", "0.5640561...
0.73895174
0
Getter method for property cityName.
public String getCityName() { return cityName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getCityName();", "public String getCityname() {\n return cityname;\n }", "public String getCityName(){\n\t\treturn (String)this.entryMap.get(ObjectGeoKeys.OBJ_GEO_CITY_NAME);\n\t}", "public java.lang.String getCity() {\r\n return city;\r\n }", "String getCityname(){\n ...
[ "0.87588364", "0.8402153", "0.817522", "0.80745125", "0.80213207", "0.8018552", "0.8018552", "0.8018552", "0.80046684", "0.80046684", "0.7994721", "0.7988794", "0.7988794", "0.7988794", "0.7988137", "0.79755354", "0.7960837", "0.79587513", "0.7948487", "0.7948487", "0.7948487...
0.85333735
2
Setter method for property cityName.
public void setCityName(String cityName) { this.cityName = cityName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCityname(String cityname) {\n this.cityname = cityname;\n }", "public void setCity(String city);", "public Builder setCityName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n cityName_ = value;\n onChan...
[ "0.79499197", "0.79072905", "0.7900376", "0.775814", "0.7615984", "0.76124626", "0.7607132", "0.7607132", "0.76010394", "0.7560182", "0.7560182", "0.7554471", "0.7554471", "0.7519845", "0.7519845", "0.7519845", "0.7519845", "0.7519845", "0.7519845", "0.7518741", "0.75102216",...
0.8019601
1
Getter method for property districtName.
public String getDistrictName() { return districtName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDistrictName() {\r\n return districtName;\r\n }", "public String getdistrict() {\n return district;\n }", "public String getDistrict() {\r\n return district;\r\n }", "public String getDistrict() {\r\n return district;\r\n }", "public String getDistri...
[ "0.89480996", "0.8230187", "0.82162076", "0.82162076", "0.82062924", "0.80797523", "0.7840433", "0.77160513", "0.7673964", "0.7614929", "0.74449575", "0.72783375", "0.72783375", "0.7131961", "0.70474154", "0.7032286", "0.69057715", "0.6788558", "0.67680556", "0.67311746", "0....
0.891169
1
Setter method for property districtName.
public void setDistrictName(String districtName) { this.districtName = districtName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDistrictName(String districtName) {\r\n this.districtName = districtName;\r\n }", "public String getDistrictName() {\r\n return districtName;\r\n }", "public String getDistrictName() {\n return districtName;\n }", "public void setdistrict(String district) {\n ...
[ "0.8338961", "0.7977327", "0.7916593", "0.751968", "0.74685967", "0.7367642", "0.7366717", "0.71973175", "0.7176596", "0.7176596", "0.71436256", "0.6965834", "0.69304", "0.6859916", "0.67698723", "0.67644995", "0.66189045", "0.66189045", "0.653809", "0.6313781", "0.6254375", ...
0.8224729
1
Getter method for property paymentTypeName.
public String getPaymentTypeName() { return paymentTypeName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPaymentTypeName(String paymentTypeName) {\n this.paymentTypeName = paymentTypeName;\n }", "public java.lang.String getPaymenttype () {\r\n\t\treturn paymenttype;\r\n\t}", "public String getPaymentType() {\r\n return paymentType;\r\n }", "public String getTypeName() {\n\t\t\...
[ "0.7333804", "0.71031374", "0.7091205", "0.6724828", "0.6724828", "0.6678709", "0.66359615", "0.6625728", "0.6625358", "0.6613585", "0.6606007", "0.6581381", "0.656753", "0.656753", "0.656753", "0.656753", "0.65627706", "0.6558581", "0.6557503", "0.6557503", "0.6537088", "0...
0.8731272
0
Setter method for property paymentTypeName.
public void setPaymentTypeName(String paymentTypeName) { this.paymentTypeName = paymentTypeName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPaymentTypeName() {\n return paymentTypeName;\n }", "public PaymentType(String paymentType) {\n\t\tsuper();\n\t\tthis.paymentType = paymentType;\n\t}", "public void setPaymentType(String paymentType) {\r\n this.paymentType = paymentType == null ? null : paymentType.trim();\r\n...
[ "0.77088064", "0.68437755", "0.674748", "0.6702743", "0.6374154", "0.63149965", "0.6313598", "0.62969995", "0.6268786", "0.6264645", "0.6224979", "0.6200793", "0.6188707", "0.6154789", "0.6134623", "0.6126594", "0.6120998", "0.61083156", "0.6063987", "0.605369", "0.605369", ...
0.79595876
0
Getter method for property registerSourceName.
public String getRegisterSourceName() { return registerSourceName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getName() {\n return source.getName();\n }", "public java.lang.String getSourceName() {\r\n return localSourceName;\r\n }", "public void setRegisterSourceName(String registerSourceName) {\n this.registerSourceName = registerSourceName;\n }", "@VTID(2...
[ "0.7172025", "0.71490455", "0.69158435", "0.68697", "0.68465805", "0.655592", "0.64870614", "0.64406985", "0.6436155", "0.64269644", "0.6422897", "0.6384763", "0.63645804", "0.6329735", "0.6305478", "0.6304252", "0.6291509", "0.62875235", "0.62758595", "0.6262177", "0.6259844...
0.79502684
0
Setter method for property registerSourceName.
public void setRegisterSourceName(String registerSourceName) { this.registerSourceName = registerSourceName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSourceName(java.lang.String param) {\r\n localSourceNameTracker = param != null;\r\n\r\n this.localSourceName = param;\r\n }", "public String getRegisterSourceName() {\n return registerSourceName;\n }", "private void setSourceName(String name) {\n sr...
[ "0.7330226", "0.68811035", "0.684765", "0.65579456", "0.65474504", "0.65185994", "0.6392816", "0.63655823", "0.63646257", "0.619843", "0.6192563", "0.61775243", "0.61742365", "0.6162729", "0.61560833", "0.61557496", "0.6136472", "0.61118686", "0.60219216", "0.60219216", "0.59...
0.73127574
1
Getter method for property superiorIdName.
public String getSuperiorIdName() { return superiorIdName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSuperiorIdName(String superiorIdName) {\n this.superiorIdName = superiorIdName;\n }", "public String getIDName();", "@NotNull\n public String getName() {\n if (myName == null) {\n myName = myId;\n int index = myName.lastIndexOf('/');\n if (index != -1) {\n myN...
[ "0.7681587", "0.6763657", "0.6446265", "0.6413426", "0.6387089", "0.6386185", "0.6368934", "0.632697", "0.6270815", "0.6230333", "0.6191277", "0.61666137", "0.61666137", "0.61666137", "0.61666137", "0.61666137", "0.61666137", "0.61666137", "0.61666137", "0.61666137", "0.61666...
0.8694199
0
Setter method for property superiorIdName.
public void setSuperiorIdName(String superiorIdName) { this.superiorIdName = superiorIdName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSuperiorIdName() {\n return superiorIdName;\n }", "public void setSuperior(String superior) {\n this.superior = superior == null ? null : superior.trim();\n }", "protected String revealedId (String name)\n {\n return name;\n }", "public String getIDName();", ...
[ "0.79995996", "0.63154376", "0.584967", "0.57806885", "0.5706549", "0.5705912", "0.57039404", "0.57014334", "0.5678171", "0.5620333", "0.56192553", "0.5617246", "0.5588634", "0.5588634", "0.5588634", "0.5576034", "0.556025", "0.5555942", "0.55540824", "0.5540761", "0.55328584...
0.8430225
0
Getter method for property marketId.
public String getMarketId() { return marketId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMarketId() {\n\t\treturn marketId;\n\t}", "String getMarketId();", "public ExternalId getMarketDataId() {\n return _marketDataId;\n }", "public Integer getMarketGroupId() {\n return marketGroupId;\n }", "public void setMarketId(String marketId) {\n this.marketId = marketId...
[ "0.8381859", "0.82812643", "0.7584402", "0.73085827", "0.7208862", "0.7204776", "0.7088847", "0.6912754", "0.68186015", "0.6788042", "0.6741663", "0.6698607", "0.66611487", "0.65870714", "0.6532714", "0.6420674", "0.6338784", "0.63171035", "0.63158053", "0.6302797", "0.623722...
0.8595705
0
Setter method for property marketId.
public void setMarketId(String marketId) { this.marketId = marketId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMarketId(String marketId) {\n this.marketId = marketId;\n }", "public String getMarketId() {\n return marketId;\n }", "public String getMarketId() {\n\t\treturn marketId;\n\t}", "public void setMarketId(Number value) {\n\t\tsetNumber(MARKET_ID, value);\n\t}", "public void setMa...
[ "0.7879236", "0.77411324", "0.7679206", "0.7646058", "0.7557902", "0.70125616", "0.66928387", "0.65465194", "0.6527582", "0.6491853", "0.64749086", "0.61961013", "0.61726195", "0.6078361", "0.60448897", "0.60189503", "0.59990764", "0.59962225", "0.5968388", "0.5960751", "0.59...
0.77315605
2
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.activity_creditcard_detail); initialiseVariable(); initialiseListener(); }
{ "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
Si el nodo root tiene 4 claves divide el nodo root si no envia el horario al metodo insertarKey
public void add(T t) { if (root.getNumKeys() == 4 && root.isLeaf()) { BTreeNode<T> newRoot = new BTreeNode(false); newRoot.setChild(root, 0); insercionOrdenada(root, t); splitChild(newRoot, root, 0); this.root = newRoot; } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void insertarKey(BTreeNode<T> root, T t) {\n BTreeNode<T> currentNode = root;\n\n if (currentNode.isLeaf()) {\n if (!itsRepeated(currentNode, (I)t.getId())) {\n insercionOrdenada(currentNode, t);\n } else {\n System.out.println(\"Dato repeti...
[ "0.7641411", "0.6809736", "0.6793333", "0.6746266", "0.6585289", "0.64923143", "0.6452607", "0.6416314", "0.641301", "0.640397", "0.63533247", "0.63356787", "0.6331587", "0.63166475", "0.6278586", "0.6236188", "0.6194146", "0.6174738", "0.61531484", "0.61460334", "0.61460334"...
0.0
-1
Si el nodo actual es hoja inserta el nodo de lo contrario busca el indice correcto, verifica si el nodo hijo tiene 4 llaves, si las tienen divide el nodo si no se llama a si mismo con el nodo hijo como parametro. Si el nodo actual queda con 5 claves se realiza una division.
private void insertarKey(BTreeNode<T> root, T t) { BTreeNode<T> currentNode = root; if (currentNode.isLeaf()) { if (!itsRepeated(currentNode, (I)t.getId())) { insercionOrdenada(currentNode, t); } else { System.out.println("Dato repetido"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean insertar(Nodo_B nuevo){\n if(this.primero == null){\n this.primero = nuevo;\n this.ultimo = nuevo;\n size ++;\n return true;\n }else{\n if(this.primero == this.ultimo){ // -------------------------solo hay un nodo \n if(nue...
[ "0.6029523", "0.57720196", "0.5642852", "0.56381994", "0.55098486", "0.54906", "0.5483339", "0.5453502", "0.5447849", "0.54088974", "0.5372961", "0.5357064", "0.53410286", "0.53390115", "0.53359425", "0.5329561", "0.5325412", "0.5302102", "0.5291629", "0.52861845", "0.5274278...
0.0
-1
Inserta el horario en el lugar correcto ordenado de menor a mayor
private void insercionOrdenada(BTreeNode<T> currentNode, T t) { int indexNewKey = findChildOrIndex(currentNode, (I)t.getId()); for (int i = currentNode.getNumKeys() - 1; i >= indexNewKey; i--) { currentNode.setKey(currentNode.getKey(i), i + 1); } currentNode.setKey(t, index...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populaHorarioAula()\n {\n Calendar hora = Calendar.getInstance();\n hora.set(Calendar.HOUR_OF_DAY, 18);\n hora.set(Calendar.MINUTE, 0);\n HorarioAula h = new HorarioAula(hora, \"Segunda e Quinta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar...
[ "0.71003115", "0.65695673", "0.64910215", "0.6143998", "0.6090789", "0.6073768", "0.600031", "0.5940512", "0.5854028", "0.5831901", "0.5813485", "0.5795209", "0.5740168", "0.5722804", "0.56605315", "0.5659414", "0.5613547", "0.55940247", "0.5542315", "0.5511796", "0.5489194",...
0.0
-1
Busca y retorna el indice correcto para un horario.
private int findChildOrIndex(BTreeNode<T> currentNode, I id) { int indexChild = 0; while (currentNode.getKey(indexChild) != null && comparator.compare(currentNode.getKey(indexChild), id) < 0) { indexChild++; } return indexChild; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int obtemIndiceColuna(String colunaNome, String nomeTabela) {\n WebElement tabela = obtemTabela(nomeTabela);\n List<WebElement> colunas = tabela.findElements(By.xpath(\".//th\"));\n int idColuna = -1;\n for(int i=0;i<colunas.size();i++) {\n if(colunas.get(i).getText()...
[ "0.59438866", "0.5842143", "0.5751741", "0.5732916", "0.57294774", "0.5663937", "0.56510526", "0.5643041", "0.5638721", "0.55944014", "0.5588222", "0.55831647", "0.5542991", "0.5525692", "0.5504152", "0.54780966", "0.5465596", "0.54484344", "0.54040295", "0.53674096", "0.5353...
0.0
-1
Valida si el dato que se quiere ingresar ya existe en el nodo.
private boolean itsRepeated(BTreeNode<T> currentNode, I id) { for (int i = 0; i < 5; i++) { if (currentNode.getKey(i) != null) { if (comparator.compare(currentNode.getKey(i), id) == 0) { return true; } } } return false...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean existeElemento(T dato) {\n\t\t// crea nodo igual al primer elemento\n\t\tNodeTabla<K, T> nodo = primerElemento;\n\n\t\t// itera los elementos hasta que se acaben o encuentre el elemento\n\t\twhile (nodo != null && !nodo.getElemento().equals(dato)) {\n\t\t\tnodo = nodo.getSiguiente();\n\t\t}\n\n\t\t/...
[ "0.6322489", "0.5996311", "0.5884994", "0.57699144", "0.57448", "0.568316", "0.5680838", "0.56765735", "0.56727016", "0.565989", "0.56267595", "0.5617677", "0.5614953", "0.560715", "0.5587832", "0.5562618", "0.5552848", "0.55520856", "0.5550939", "0.55488515", "0.5543855", ...
0.0
-1
Divide el nodo hijo en dos y los agrega al nodo actual.
private void splitChild(BTreeNode<T> currentNode, BTreeNode<T> child, int index) { BTreeNode<T> right = new BTreeNode(child.isLeaf()); right.setNumKeys(2); //Mover elementos 3 y 4 de child a right for (int i = 3; i < 5; i++) { right.setKey(child.getKey(i), i - 3); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void diviser() throws IOException {\n\t Scanner clavier = new Scanner(System.in);\n\tdouble nb1, nb2, resultat;\n\tnb1 = lireNombreEntier();\n\tnb2 = lireNombreEntier();\n\tif (nb2 != 0) {\n\tresultat = nb1 / nb2;\n\tSystem.out.println(\"\\n\\t\" + nb1 + \" / \" + nb2 + \" = \" +\n\tresultat);\n\t} else\n\t...
[ "0.6529004", "0.62747115", "0.59773314", "0.59669673", "0.58122325", "0.5624294", "0.5619438", "0.5529271", "0.5525954", "0.54981637", "0.54979444", "0.5457826", "0.5438156", "0.54326475", "0.54237753", "0.5414542", "0.54139894", "0.5401922", "0.54002804", "0.5377783", "0.537...
0.0
-1
Realiza las divisiones necesarias para que el nodo actual no tenga mas llaves de las permitidas.
private void checkMaxKeys(BTreeNode<T> currentNode) { if (currentNode == this.root) { BTreeNode<T> newRoot = new BTreeNode(false); newRoot.setChild(root, 0); splitChild(newRoot, root, 0); this.root = newRoot; } else { BTreeNode<T> parent = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void divide(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.dire...
[ "0.6537126", "0.63397956", "0.61459196", "0.60807496", "0.607714", "0.6064169", "0.6053288", "0.60118735", "0.59810114", "0.596998", "0.5926281", "0.5922761", "0.5913218", "0.58705354", "0.5856284", "0.58347404", "0.5810746", "0.58089757", "0.57959986", "0.5744326", "0.574146...
0.0
-1
Dado un hijo devuelve el padre al que pertenece.
private BTreeNode<T> findParent(BTreeNode<T> possibleParent, BTreeNode<T> child) { BTreeNode<T> parent = null; for (int i = 0; i < 6; i++) { BTreeNode<T> tempChild = possibleParent.getChild(i); if (possibleParent.getChild(i) == child) { parent = possibleParent; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void letras() {\n caracteres = 32 - txtMensaje.getText().length(); //Indica la catidad de carcteres\n //disponibles. En el LCD solo se permite imprimir 32 caracteres.\n\n if (caracteres <= 0) { //Si la cantidad de caracteres se ha agotado... \n lbCaracteres.setText(\"Caracter...
[ "0.57658136", "0.57589465", "0.57579714", "0.5736747", "0.5726937", "0.5674123", "0.5654461", "0.5614802", "0.56052655", "0.55900544", "0.5581283", "0.552112", "0.55156934", "0.54910684", "0.5490259", "0.54891294", "0.54796755", "0.5464346", "0.5442091", "0.54241055", "0.5402...
0.0
-1
Elimina un dato del arbol b.
private void delete(BTreeNode<T> currentNode, I id) { int indexKey = findIndexKey(currentNode, id); if (indexKey != -1) { if (currentNode.isLeaf()) { removeFromLeaf(currentNode, indexKey); } else { //TODO: Remover dato de nodo que no sea hoja ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eliminaBD() {\r\n CBD.openConexion();\r\n //------Reune los datos de producto con id--------------//\r\n String A = CBD.getInveID(II.lblid.getText());\r\n String B[] = A.split(\",\");\r\n //------Reune los datos de producto con id--------------//\r\n //------Ve...
[ "0.66312575", "0.64277047", "0.64238137", "0.6203236", "0.617539", "0.6056702", "0.60543823", "0.6001164", "0.59453726", "0.5913279", "0.59058636", "0.58559585", "0.5847019", "0.58251494", "0.5806726", "0.5790754", "0.5759923", "0.57205915", "0.5717428", "0.5713836", "0.56826...
0.54340655
56
Devuelve el indice que tiene el dato dentro del array de llaves.
private int findIndexKey(BTreeNode<T> currentNode, I id) { for (int i = 0; i < 5; i++) { T tempKey = currentNode.getKey(i); if (tempKey != null) { if (comparator.compare(tempKey, id) == 0) { return i; } } } r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getArrayIndex() {\n\t\tswitch (getId()) {\n\t\tcase 3493:\n\t\t\treturn Recipe_For_Disaster.AGRITH_NA_NA_INDEX;\n\t\tcase 3494:\n\t\t\treturn Recipe_For_Disaster.FLAMBEED_INDEX;\n\t\tcase 3495:\n\t\t\treturn Recipe_For_Disaster.KARAMEL_INDEX;\n\t\tcase 3496:\n\t\t\treturn Recipe_For_Disaster.DESSOURT_I...
[ "0.65977114", "0.62716347", "0.62364256", "0.60390335", "0.5909034", "0.5860676", "0.5855321", "0.5787368", "0.5786821", "0.57826084", "0.57765204", "0.5742903", "0.5735134", "0.572351", "0.57209384", "0.57120466", "0.57106245", "0.57106245", "0.57106245", "0.5697699", "0.569...
0.0
-1
Elimina el horario de un nodo que es hoja.
private void removeFromLeaf(BTreeNode<T> currentNode, int index) { for (int i = index + 1; i <= currentNode.getNumKeys(); i++) { currentNode.setKey(currentNode.getKey(i), i - 1); } currentNode.decreaseNumKeys(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eliminar(){\n inicio = null;\r\n // Reinicia el contador de tamaño de la lista a 0.\r\n tamanio = 0;\r\n }", "public void eliminarNodo(Nodo nodoElim,int number){\n \n panelPadre.getChildren().removeAll(nodoElim.getRectangle(),nodoElim.getLabel(),nodoElim.getLine...
[ "0.60468376", "0.60324657", "0.6031389", "0.60082287", "0.5984402", "0.5939591", "0.5926398", "0.5912259", "0.5890892", "0.5857693", "0.5842201", "0.5825732", "0.5779518", "0.57667696", "0.5765351", "0.5696478", "0.56953067", "0.56941795", "0.5693348", "0.5679295", "0.5659218...
0.0
-1
Realiza las operaciones necesarias para evitar que un nodo tenga menos llaves de las requeridas.
private void checkMinKeys(BTreeNode<T> currentNode) { BTreeNode<T> parent = findParent(root, currentNode); int indexCurrentChild = getIndexChild(parent, currentNode); BTreeNode<T> leftBrother; BTreeNode<T> rightBrother; //Dependiendo del indice del hijo se realizaran las operac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void agregarNodo(Nodo nuevo){\n agregarNodoRec(root, nuevo);//la primera vez inicia en la raiz \n }", "@Override\n public void vaciar() {\n this.raiz = NodoBinario.nodoVacio();\n }", "public static void expandirNodo(Nodo nodoAexp , ArrayList<Nodo>frontera ,\n \t\t HeuristicaInt...
[ "0.60901666", "0.59410334", "0.5906164", "0.5903211", "0.5745685", "0.57418483", "0.5624898", "0.5620901", "0.5577413", "0.55683357", "0.55442095", "0.55298", "0.55060047", "0.546344", "0.5459997", "0.54499763", "0.5430418", "0.54233825", "0.54050684", "0.54043734", "0.537836...
0.0
-1
Devuelve el indice del nodo hijo
private int getIndexChild(BTreeNode<T> parent, BTreeNode<T> child) { for (int i = 0; i < 6; i++) { if (parent.getChild(i) == child) { return i; } } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getNodeIndex();", "public int getIndex();", "public int getIndex();", "public int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIn...
[ "0.6957468", "0.6670249", "0.6670249", "0.6670249", "0.6655373", "0.6655373", "0.6655373", "0.6655373", "0.6655373", "0.6655373", "0.6655373", "0.6655373", "0.6655373", "0.6655373", "0.6655373", "0.6655373", "0.6655373", "0.66354614", "0.660175", "0.6558122", "0.6556489", "...
0.0
-1
Toma prestado el primer elemento del nodo siguiente.
private void borrowFromNext(BTreeNode<T> parent, BTreeNode<T> currentNode, BTreeNode<T> rightBrother, int indexCurrentNode) { //Se mueve el dato del padre al nodo actual, se mueve el primer dato //del hijo derecho al padre currentNode.setKey(parent.getKey(indexCurrentNode), 1); currentNo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Nodo obtener_Nodo() {\n\t\treturn this.elem;\n\t}", "public int eleminardelInicio(){\n int elemento=inicio.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n inicio=inicio.siguiente;\n inicio.anterior=null; \n }\n return elemento;\n }", "p...
[ "0.7177598", "0.6574669", "0.6470424", "0.6269766", "0.62695634", "0.6205758", "0.62014014", "0.6162477", "0.6155817", "0.61411005", "0.613379", "0.61309326", "0.60892314", "0.6088629", "0.6088134", "0.6078175", "0.60709417", "0.60538167", "0.605255", "0.6032042", "0.6004894"...
0.0
-1
Se mueve el dato del padre al nodo actual, se mueve el ultimo dato del hermano izquierdo al nodo padre
private void borrowFromPrev(BTreeNode<T> parent, BTreeNode<T> currentNode, BTreeNode<T> leftBrother, int indexCurrentNode) { insercionOrdenada(currentNode, parent.getKey(indexCurrentNode - 1)); parent.setKey(leftBrother.getKey(leftBrother.getNumKeys() - 1), indexCurrentNode - 1); //Si no es hoj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actualizarPodio() {\r\n\t\tordenarXPuntaje();\r\n\t\tint tam = datos.size();\r\n\t\traizPodio = datos.get(tam-1);\r\n\t\traizPodio.setIzq(datos.get(tam-2));\r\n\t\traizPodio.setDer(datos.get(tam-3));\r\n\t}", "private void resetaPadraoEFundo() {\r\n\t\tdiferencaDeFundoATopo = new BigDecimal(0);\r\n\t...
[ "0.6206265", "0.56213325", "0.56185865", "0.55325556", "0.5519343", "0.551809", "0.5500096", "0.5486966", "0.5469673", "0.54599816", "0.54561675", "0.54003644", "0.53901535", "0.53769594", "0.53661007", "0.5326151", "0.53182864", "0.53147614", "0.52843916", "0.5264606", "0.52...
0.0
-1
Loads/sets up the Activity layout and registers the callback.
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_setting); Callbacksplit.registerSettingActivity(this); //Referenzen auf Zeug init_seekbar_videotransparency(); video_toggle_OnOff = (ToggleButton) findV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void onLoadLayout(View view) {\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tsetupTextviews();\n\t\tsetupHorizontalScrollViews();\n\t\tsetupHorizontalSelectors();\n\t\tsetupButtons();\n\t}", "@Override\n\tpubli...
[ "0.69113183", "0.6798872", "0.6791871", "0.6784635", "0.65551233", "0.651773", "0.6501647", "0.6453335", "0.6423856", "0.63988906", "0.63727707", "0.63493544", "0.627474", "0.6269176", "0.6220282", "0.6130178", "0.6115985", "0.6112663", "0.61100507", "0.60888726", "0.60747296...
0.0
-1
Loads ActionBar, enables Back button and gets and refreshes Battery and Connection Icons.
@Override public boolean onCreateOptionsMenu(Menu menu) { //getMenuInflater().inflate(R.menu.activity_main, menu); super.onCreateOptionsMenu(menu); getSupportMenuInflater().inflate(R.menu.actionbar, menu); getSupportActionBar().setDisplayHomeAsUpEnabled(true); BatteryIcon = (Men...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadAppBar()\n\t{\n\t\tLayoutInflater inflator=(LayoutInflater)this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\tView v = inflator.inflate(R.layout.search_page_header, null);\n\t\t\t\n\t\tActionBar mActionBar = getActionBar();\n\t\tmActionBar.setDisplayShowHomeEnabled(false);\n\t\tmActionBa...
[ "0.70529413", "0.6925023", "0.6605851", "0.6588652", "0.6562008", "0.6466776", "0.62646407", "0.62631106", "0.62406504", "0.6235995", "0.6232025", "0.6211119", "0.6182825", "0.61696994", "0.609998", "0.60927445", "0.6081062", "0.5984974", "0.5980622", "0.5979535", "0.59774405...
0.64757746
5
Handles option menu clicks. Shows other activities or closes the application.
@Override public boolean onOptionsItemSelected(MenuItem item) { super.onOptionsItemSelected(item); Intent intent; switch(item.getItemId()){ case android.R.id.home: finish(); break; case R.id.acb_m_1: intent = new Intent(Callbacksplit.getMainActivity(), BewegungActivity.class); finish(); start...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent intent = new Intent(Main.this, Options.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\toptionsDialog();\r\n\t\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem i...
[ "0.7470308", "0.7132865", "0.706043", "0.70321465", "0.7005846", "0.6910775", "0.68858886", "0.68710554", "0.6798717", "0.6780518", "0.6745558", "0.67132896", "0.66944736", "0.66824055", "0.6677273", "0.6671148", "0.66516054", "0.6640353", "0.66319114", "0.6629329", "0.662612...
0.0
-1
Activates when the Close button is pressed.
public void setbutton_close_event(View view) { finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void close() {\n getCloseButton().click();\n }", "private void close() {\n WindowEvent winClose = new WindowEvent(this,WindowEvent.WINDOW_CLOSING);\n Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(winClose);\n \n }", "private void close(){\n\t\tparent.setEn...
[ "0.7906316", "0.75456834", "0.74805355", "0.7457259", "0.7450131", "0.743126", "0.7419778", "0.7418775", "0.7388956", "0.73788255", "0.7348616", "0.73413736", "0.7332845", "0.7325599", "0.73093307", "0.7305992", "0.7304289", "0.7294816", "0.72635156", "0.7226789", "0.72221017...
0.68627477
71
Starts and Stops the Videoserver with the udpsocket in a thread.
public void set_videotoggle_on_off(View view) { if(VideoModule.isVideoThreadStarted()) { VideoModule.stopVideoServer(); } else { VideoModule.startVideoServer(); } video_toggle_OnOff.setChecked(VideoModule.isVideoThreadStarted()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startService() {\n\t\tListenThread listenThread = new ListenThread();\r\n\t\tlistenThread.start();\r\n\t\tSelfVideoThread selfVideoThread = new SelfVideoThread();\r\n\t\tselfVideoThread.start();\r\n\t\tif(remote!=\"\"){\r\n\t\t\tString[] remotes = remote.split(\",\");\r\n\t\t\tString[] remotePorts = re...
[ "0.6688384", "0.6427421", "0.639556", "0.63785803", "0.63255656", "0.6170757", "0.6144689", "0.61401474", "0.61179626", "0.6086657", "0.6066401", "0.6057038", "0.6012098", "0.5887095", "0.5863967", "0.57209545", "0.5701592", "0.5687053", "0.5679904", "0.56720096", "0.5660684"...
0.0
-1
Init the seekbar for setting the transparancy of the video, showed in the background of the BewegungActivity. All listeners will be initialized. This function is used in the oncreatefunction of the Activity.
private void init_seekbar_videotransparency() { seekbar_videovisibility = (SeekBar) findViewById(R.id.set_videobewalpha_seekBar); seekbar_videovisibility.setProgress(VideoModule.Videotransparency_bewact); seekbar_videovisibility.setOnSeekBarChangeListener(new OnSeekBarChangeListener() { @Overr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\n if (!LibsChecker.checkVitamioLibs(this))\n return;\n\n buffSizeView = (EditText) findViewById(R.id.buffEditText);\n buffSizeView....
[ "0.7261138", "0.7239532", "0.67421824", "0.66971105", "0.6586927", "0.65004486", "0.64953244", "0.63439095", "0.63341326", "0.63331985", "0.6312481", "0.6298404", "0.62068164", "0.61961234", "0.61852866", "0.6152325", "0.61360997", "0.6057717", "0.60572046", "0.6046193", "0.6...
0.75875294
0
TODO Autogenerated method stub
@Override public void onStartTrackingTouch(SeekBar seekBar) { }
{ "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 onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { }
{ "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
Help function to transform the parameter of the movement to the right integer for te seekbar.
private int parameter_float_to_int_mov(float val) { if(val > 5.0) return (((int)val)+50); else return ((int)(val*10)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateSeekbar(int position, int duration);", "public boolean dragSeekBarTo(int num ,WebElement element,double step) {\n int start = element.getLocation().getX();\r\n System.out.println(\"Startpoint - \" + start);\r\n //get location of seekbar from top\r\n int y = element.getLocat...
[ "0.6424379", "0.6107856", "0.60183334", "0.6000713", "0.56755704", "0.5656575", "0.5587475", "0.55750006", "0.5568417", "0.5528499", "0.5518564", "0.54835266", "0.5420333", "0.5413415", "0.5356163", "0.5346461", "0.53395563", "0.5336379", "0.5249865", "0.52437", "0.5241013", ...
0.0
-1
Help function to transform the integer deliver by the seekbar to the parameter of the movement.
private float parameter_int_to_float_mov(int val) { if(val > 50) return (float)val-50; else return (((float)val)/10.0f); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateSeekbar(int position, int duration);", "private void procUpdatePosition(int position) {\n //log_d(\"procUpdatePosition: \" + position);\n\n float ratio = 0;\n if( mDuration > 0 ) {\n ratio = (float)position / (float)mDuration;\n }\n\n int progress = (int)(MAX_PROGRESS * ratio);\...
[ "0.7145093", "0.6861751", "0.6531489", "0.61311924", "0.60857004", "0.5925469", "0.586898", "0.58633214", "0.5852416", "0.58432364", "0.58268017", "0.5821803", "0.578749", "0.57669634", "0.5756822", "0.57565975", "0.5732862", "0.5727515", "0.56939614", "0.56731915", "0.565269...
0.5349542
56
Initializes the seekbars. Set up the listeners and adjust the right value to avery seekbar
private void init_seekbar_parameters() { final SeekBar seekbar_pMovF = (SeekBar) findViewById(R.id.set_param_movF_seekBar); seekbar_pMovF.setProgress(parameter_float_to_int_mov(Callbacksplit.getMainActivity().param_MOV_F)); text_value_pMovF.setText(String.valueOf(Callbacksplit.getMainActivity().param_MOV_F)+" m"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setSeekbarListener(){\n mTempSeekbar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) { }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) { }\n\n ...
[ "0.7527284", "0.73781943", "0.68676174", "0.66182375", "0.6600328", "0.6516551", "0.64971614", "0.6492119", "0.64731896", "0.64506", "0.6412142", "0.6313483", "0.6259567", "0.6240719", "0.61790967", "0.61725897", "0.61547625", "0.6102754", "0.6064819", "0.6053178", "0.6052249...
0.6900754
2
TODO Autogenerated method stub
@Override public void onStartTrackingTouch(SeekBar seekBar) { }
{ "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 onStartTrackingTouch(SeekBar seekBar) { }
{ "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 onStartTrackingTouch(SeekBar seekBar) { }
{ "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 onStartTrackingTouch(SeekBar seekBar) { }
{ "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 onStartTrackingTouch(SeekBar seekBar) { }
{ "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 onStartTrackingTouch(SeekBar seekBar) { }
{ "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 onStartTrackingTouch(SeekBar seekBar) { }
{ "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 onStartTrackingTouch(SeekBar seekBar) { }
{ "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
/ Dynamisches Aenderugszeug Sets the Battery Icon in the ActionBar.
public void setActBarBatteryIcon(Drawable pic){ if(pic!=null && BatteryIcon!=null) BatteryIcon.setIcon(pic); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void establecerIcono(){\n ActionBar actionBar = getSupportActionBar();\n\n //Establecemos el icono en la ActionBar\n actionBar.setIcon(R.mipmap.ic_be_score);\n actionBar.setDisplayShowHomeEnabled(true);\n\n // Activar flecha ir atrás (ir a la Parent Activity declarada en e...
[ "0.63477945", "0.6108037", "0.59820515", "0.589363", "0.5862655", "0.5849379", "0.58018833", "0.5779788", "0.57650524", "0.57403463", "0.5683443", "0.5683327", "0.5619969", "0.5593089", "0.5585387", "0.55289876", "0.5517891", "0.5516387", "0.5514579", "0.54791355", "0.5467105...
0.6792101
0
Sets the Connection Icon depending on the current connection state.
public void setActBarConnectIcon(){ if(ConnectIcon == null && BatteryIcon != null) return; if(NetworkModule.IsConnected()==NetworkModule.CONN_CLOSED) { ConnectIcon.setIcon(R.drawable.network_disconnected); } else { ConnectIcon.setIcon(R.drawable.network_connected); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setICon() {\r\n \r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"IconImage_1.png\")));\r\n }", "private void setIcon() {\n this.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"logo.ico\")));\n }", "private void up...
[ "0.7166647", "0.6832257", "0.67640334", "0.67619133", "0.672479", "0.6694549", "0.6694549", "0.66659176", "0.6656645", "0.6595477", "0.65930796", "0.653247", "0.6529262", "0.65028816", "0.6432593", "0.6389936", "0.6388923", "0.63201493", "0.6314741", "0.63023275", "0.6279366"...
0.78410983
0
Modify the touchlistener for the whole activity to accept a selfdefined wipegesture This wipe gesture is for changig to another activity with a wipe
@Override public boolean dispatchTouchEvent(MotionEvent event) { switch(event.getAction()) { case MotionEvent.ACTION_DOWN: gesture_xa=event.getX(); gesture_ya=event.getY(); break; case MotionEvent.ACTION_UP: gesture_xe=event.getX(); gesture_ye=event.getY(); //Toast.makeText(Specials...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupSwipeDetector(){\n ActivitySwipeDetector activitySwipeDetector = new ActivitySwipeDetector(this);\n activitySwipeDetector.setDestinations(DepthLightActivity.class, TempCondActivity.class);\n LinearLayout layout = (LinearLayout) findViewById(R.id.full_screen_main);\n la...
[ "0.6689591", "0.6533334", "0.6383131", "0.6359981", "0.62791854", "0.6251275", "0.62228125", "0.6205479", "0.6183581", "0.61712366", "0.61591613", "0.6149537", "0.61370915", "0.6136782", "0.6129653", "0.61242163", "0.6102677", "0.60897624", "0.6084736", "0.60802853", "0.60770...
0.6620397
1
use volatile to make singleton threadsafe
private DPSingletonLazyLoading(){ throw new RuntimeException();//You can still access private constructor by reflection and calling setAccessible(true) }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SingletonThreadSafeExample(){\n this.invoke++;\n }", "private SingletonDoubleCheck() {}", "public static synchronized N_ThreadSafeSingalton getInstance() throws InterruptedException{\n\t\t\n\t\tif (uniqueInstance == null){\n\t\t\tThread.sleep(1000);// just to show multithreading issue.\n\t\t\...
[ "0.7146555", "0.672507", "0.6689281", "0.65757644", "0.6541312", "0.65271115", "0.64764017", "0.64473504", "0.6360828", "0.62704885", "0.6217346", "0.6187488", "0.6181326", "0.6141521", "0.6139636", "0.6139636", "0.61375946", "0.61077225", "0.61015046", "0.6101202", "0.608152...
0.0
-1
DOUBLE CHECK LOCKING THREAD SAFE SINGLETON
public DPSingletonLazyLoading getInstance(){ //not synchronize whole method. Instance oluşmuş olsa bile sürekli burada bekleme olur. if (instance == null){//check synchronized(DPSingletonLazyLoading.class){ //critical section code NOT SYNCRONIZED(this) !! if (instance == null){ //double check instance...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Thread getLocker();", "public LockSync() {\n lock = new ReentrantLock();\n }", "private SingletonSyncBlock() {}", "private SingletonThreadSafeExample(){\n this.invoke++;\n }", "private SingletonDoubleCheck() {}", "void lock();", "LockManager() {\n }", "public static ThreadSafe ...
[ "0.69700783", "0.68607974", "0.6786838", "0.67675287", "0.66382086", "0.65208054", "0.64554113", "0.6404165", "0.6312636", "0.6310297", "0.62787837", "0.6239746", "0.6237705", "0.6237688", "0.62374234", "0.6201053", "0.6180368", "0.61311626", "0.61199296", "0.61121595", "0.60...
0.54561806
81
Called when a key was typed
@Override public boolean keyTyped(char character) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void keyTyped(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\t...
[ "0.83919984", "0.83919984", "0.83919984", "0.83671755", "0.83671755", "0.83671755", "0.83671755", "0.83671755", "0.83671755", "0.83250594", "0.8314521", "0.8293901", "0.82597995", "0.82448554", "0.82366824", "0.82366824", "0.82366824", "0.82366824", "0.82366824", "0.82366824", ...
0.0
-1
Called when a finger or the mouse was dragged.
@Override public boolean touchDragged(int screenX, int screenY, int pointer) { this.dragx = screenX; this.dragy = screenY; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onDragged();", "@Override\n\tpublic void touchDragged(int screenX, int screenY, int pointer) {\n\t\t\n\t}", "public void mouseDragged(MouseEvent e) {}", "public void mouseDragged(MouseEvent e){}", "public void mouseDragged( MouseEvent event ){}", "public void mouseDragged (MouseEvent e) {}", "@Ove...
[ "0.77088344", "0.76266545", "0.76243275", "0.759911", "0.7591268", "0.75830585", "0.75627065", "0.7536789", "0.74828315", "0.7473091", "0.7470181", "0.7469129", "0.74541897", "0.7436469", "0.7436469", "0.7436458", "0.7424263", "0.7421855", "0.73730534", "0.73611337", "0.73468...
0.69579214
75
Called when the mouse was moved without any buttons being pressed. Will not be called on iOS.
@Override public boolean mouseMoved(int screenX, int screenY) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void handleMouseMovedEvent(Mouse.MotionEvent event) {\n }", "@Override\n\tpublic void mouseReleased(MouseEvent e) {\n\t\tisMoved = false;\n\t}", "private static void OnMouseMove(Object sender, MouseEventArgs e)\r\n {\r\n // Un-vanish the cursor on any mouse move. \r\n ...
[ "0.76343733", "0.7568181", "0.750941", "0.7455508", "0.74455", "0.741015", "0.74078035", "0.74078035", "0.73932445", "0.73897135", "0.7334914", "0.7309132", "0.7300629", "0.72961164", "0.7285663", "0.7285663", "0.7282145", "0.7251599", "0.72371924", "0.7233741", "0.722934", ...
0.7378963
11
Called when the mouse wheel was scrolled. Will not be called on iOS.
@Override public boolean scrolled(int amount) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onScrollingStarted(WheelView wheel) {\n\n }", "@Override\n public void onScrollingStarted(WheelView wheel) {\n\n }", "@Override\n public void onScrollingStarted(WheelView wheel) {\n\n }", "@Override\n\tpublic void mouse...
[ "0.7754192", "0.7754192", "0.7754192", "0.7668319", "0.76008815", "0.7522962", "0.7474758", "0.74725914", "0.74385244", "0.7428694", "0.7329849", "0.72811186", "0.7259329", "0.7212897", "0.7093763", "0.703647", "0.6981847", "0.69467074", "0.689957", "0.6853394", "0.6849412", ...
0.6258329
52
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { if (BuildConfig.DEBUG) { getMenuInflater().inflate(R.menu.menu_main, menu); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.72497207", "0.72041494", "0.7198533", "0.71808106", "0.71110344", "0.7044596", "0.7042557", "0.7015272", "0.70119643", "0.6984017", "0.6950008", "0.6944079", "0.6937662", "0.6921333", "0.6921333", "0.6894039", "0.6887707", "0.6880534", "0.68777215", "0.6867014", "0.6867014...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); switch (id) { case R.id.ui_menu_action_realm: openActivity(DataPreviewFragment.class.getName(), ""); break; } return super.onOptionsItemSelected(item...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7905288", "0.7806507", "0.7767581", "0.7728288", "0.76327986", "0.7622734", "0.75856835", "0.7531844", "0.74890584", "0.74584335", "0.74584335", "0.7439769", "0.7422939", "0.7404292", "0.7392902", "0.7388083", "0.73805684", "0.7371689", "0.7363277", "0.73572534", "0.734688...
0.0
-1
Create the list of matches
public void createMatchList() { theMatchList = new MatchList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Match getMatches();", "ArrayList<Match> getMatchList( Filter filter ) {\n return list;\n }", "public List<Match> listAllMatch() {\n\t\treturn matchDao.list(\"from Match\");\r\n\t}", "public List<Match> getAllMatches() {\n\t\treturn matchers.stream()\n\t\t\t\t.flatMap(m -> m.getMatches().stream())\n...
[ "0.7421118", "0.6718085", "0.6563321", "0.6511416", "0.6499972", "0.628829", "0.6286936", "0.61768645", "0.6121619", "0.6094613", "0.6023841", "0.59603995", "0.59129643", "0.5909912", "0.5902611", "0.5882849", "0.5880247", "0.5862586", "0.5852268", "0.5778969", "0.57500076", ...
0.7033955
1
extrag din tabela toate activitatile realizate de utilizatorul curent si le afisez
private void initActivities() { MainController mainController = new MainController(); int n = mainController.getActivitiesByOwner(LoggedUser.getUser().getUsername()).size(); panel = new JPanel(new GridLayout(n, 2, 10, 10)); add(panel); for (int i = n - 1; i >= 0; i--) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void llenadoDeTablas() {\n /**\n *\n * creaccion de la tabla de de titulos \n */\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Bitacora\");\n modelo.addColumn(\"Usuario\");\n modelo.addColumn(\"Fecha\");\n modelo.addColumn(\"Hora\"...
[ "0.67531633", "0.65668154", "0.6459251", "0.6448339", "0.6445499", "0.6384033", "0.63799244", "0.6325227", "0.62989336", "0.62872815", "0.62811995", "0.6237502", "0.62363535", "0.6214654", "0.62047803", "0.6189681", "0.618687", "0.616774", "0.616473", "0.61641407", "0.6158772...
0.0
-1
Tests tank construction by checking tank isn't null
@Test public void testTankConstruction() { assertNotNull(tank); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testTankConstruction() {\n assertNotNull(tank);\n }", "public Tank(){\r\n\t\t\r\n\t}", "@Test\n public void testTankIsDead() {\n tank.hit();\n tank.hit();\n tank.hit();\n assertTrue(tank.isDead());\n\n // health of the tank is different - 1 | edge case\n Ta...
[ "0.7272846", "0.657386", "0.64234453", "0.63347775", "0.6052446", "0.5918104", "0.5825531", "0.58024377", "0.5770579", "0.57228154", "0.5708894", "0.5658874", "0.5626726", "0.56152976", "0.5598984", "0.55502063", "0.55138505", "0.5511344", "0.549852", "0.5477312", "0.54756737...
0.7346056
0
Tests y location of tank
@Test public void testTGetY() { assertEquals(0, tank.getY()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testYGivenT() {\n\t\t\n\t\tdouble y1 = 0, y2 = 7.6, y3 = 5.38, y4 = 3.76;\n\t\tdouble v0 = 25;\n\t\tdouble theta = 30;\n\t\tdouble t1 = 0, t2 = 1, t3 = 2, t4 = 2.2;\n\t\tassertEquals(PhysicsEngine.findYPos(v0, theta, t1, 0), y1, DELTA);\n\t\tassertEquals(PhysicsEngine.findYPos(v0, theta, t2, 0...
[ "0.7245988", "0.6922222", "0.6897861", "0.6798479", "0.6766061", "0.67078316", "0.6638548", "0.6637979", "0.6625973", "0.658884", "0.65888137", "0.6581306", "0.65812904", "0.65305734", "0.65189487", "0.6508038", "0.65071887", "0.64907855", "0.64907855", "0.64907855", "0.64891...
0.8107733
0
Tests x location of tank
@Test public void testTGetX() { assertEquals(0, tank.getX()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testTankMovingOutsideBoundaries() {\n tank.moveRight();\n tank.notMoveLeft();\n\n for (int i = 0; i < 480; i++) {\n tank.tick();\n }\n assertEquals(tank.x(), 460);\n\n tank.moveLeft();\n tank.notMoveRight();\n\n for (int i = 0; i < 480; i++) {\n tank.tick();\n...
[ "0.7063131", "0.68532884", "0.66783637", "0.6620737", "0.6293642", "0.62621623", "0.6235905", "0.6205132", "0.61880875", "0.614359", "0.6075169", "0.60709375", "0.60295475", "0.60004365", "0.59970874", "0.59619516", "0.5946898", "0.5927221", "0.5883172", "0.5868485", "0.58643...
0.7412243
0
Tests if tank is alive
@Test public void testTAlive1() { assertEquals(false, tank.isDeceased()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isAlive() {\r\n\t\treturn hp > 0;\r\n\t}", "public boolean isAlive(){\r\n if (currHP > 0){\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean isAlive(){\n if(this.hp <= 0){\n return false;\n }\n else{\n r...
[ "0.72917855", "0.72708106", "0.7127109", "0.708258", "0.7061088", "0.7011817", "0.6989169", "0.6989169", "0.69396746", "0.6919592", "0.6881183", "0.6827067", "0.67521566", "0.67464024", "0.67156744", "0.67156744", "0.6689617", "0.66491675", "0.6648822", "0.6628664", "0.662135...
0.70820785
4
Tests if tank is alive
@Test public void testTAlive2() { assertEquals(false, tank.isDeceased()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isAlive() {\r\n\t\treturn hp > 0;\r\n\t}", "public boolean isAlive(){\r\n if (currHP > 0){\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean isAlive(){\n if(this.hp <= 0){\n return false;\n }\n else{\n r...
[ "0.72917855", "0.72708106", "0.7127109", "0.708258", "0.70820785", "0.7061088", "0.7011817", "0.6989169", "0.6989169", "0.69396746", "0.6881183", "0.6827067", "0.67521566", "0.67464024", "0.67156744", "0.67156744", "0.6689617", "0.66491675", "0.6648822", "0.6628664", "0.66213...
0.6919592
10
Tests if tank is alive
@Test public void testTAlive3() { assertEquals(false, (tank.getHealth() == 0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isAlive() {\r\n\t\treturn hp > 0;\r\n\t}", "public boolean isAlive(){\r\n if (currHP > 0){\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean isAlive(){\n if(this.hp <= 0){\n return false;\n }\n else{\n r...
[ "0.72917855", "0.72708106", "0.7127109", "0.708258", "0.70820785", "0.7061088", "0.7011817", "0.6989169", "0.6989169", "0.69396746", "0.6919592", "0.6881183", "0.6827067", "0.67521566", "0.67464024", "0.67156744", "0.67156744", "0.6689617", "0.66491675", "0.6648822", "0.66286...
0.6498661
30
Tests if tank is alive after 3 hits from invader
@Test public void testTAlive4() { tank.damage(proj); tank.damage(proj); tank.damage(proj); assertEquals(true, tank.isDeceased()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkVictory()\n {\n if(throne.getEnemyHealth() <= 0)\n {\n System.out.println(\"Congrats! The land is now free from all chaos and destruction. You are now very rich and wealthy. Yay\");\n alive = false;\n }\n }", "@Test\n\tpublic void testTInvader3() {...
[ "0.6338965", "0.6254821", "0.61912704", "0.6111309", "0.6058673", "0.6043248", "0.6034835", "0.60281277", "0.6022919", "0.599496", "0.59707624", "0.5968127", "0.59484875", "0.59442174", "0.5934869", "0.5918398", "0.5869131", "0.5854202", "0.58519846", "0.58462286", "0.5834412...
0.6042016
6
Tests if tank is alive after 2 hits from invader
@Test public void testTAlive5() { tank.damage(proj); tank.damage(proj); assertEquals(false, tank.isDeceased()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkVictory()\n {\n if(throne.getEnemyHealth() <= 0)\n {\n System.out.println(\"Congrats! The land is now free from all chaos and destruction. You are now very rich and wealthy. Yay\");\n alive = false;\n }\n }", "@Test\n\tpublic void testTInvader2() {...
[ "0.647974", "0.63265246", "0.6272755", "0.6250281", "0.6179966", "0.6170258", "0.61632955", "0.6118981", "0.6105507", "0.6088776", "0.6067543", "0.60526454", "0.6050755", "0.60346156", "0.60047174", "0.600433", "0.5999884", "0.5993187", "0.59702915", "0.5953652", "0.59412515"...
0.5966604
19
Tests if tank is alive after 1 hit from invader
@Test public void testTAlive6() { tank.damage(proj); assertEquals(false, tank.isDeceased()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkVictory()\n {\n if(throne.getEnemyHealth() <= 0)\n {\n System.out.println(\"Congrats! The land is now free from all chaos and destruction. You are now very rich and wealthy. Yay\");\n alive = false;\n }\n }", "public boolean isAlive(){\r\n i...
[ "0.6777681", "0.6726601", "0.6541343", "0.6481237", "0.64432824", "0.6377058", "0.6346179", "0.6342404", "0.63395566", "0.63355273", "0.6321221", "0.6279798", "0.6278323", "0.6253259", "0.6233002", "0.62108344", "0.6180452", "0.6180331", "0.61595386", "0.61393", "0.6136118", ...
0.5943979
40
Tests tank's ability to move right
@Test public void testTCanMoveRight() { tank.AbilityToMoveRight(); assertEquals(true, tank.getRight()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTCannotMoveRight() {\n\t\ttank.InabilityToMoveRight();\n\t\tassertEquals(false, tank.getRight());\n\t}", "@Test\n public void testTankMoveLeftRight() {\n tank.moveRight();\n tank.notMoveLeft();\n tank.tick();\n assertEquals(tank.x(), 321);\n tank.tick();\n tank....
[ "0.80598795", "0.79221886", "0.7909887", "0.78884983", "0.7694411", "0.7439338", "0.73546666", "0.7319118", "0.7280166", "0.7227505", "0.71551573", "0.7142098", "0.7121272", "0.7115713", "0.7066028", "0.70570743", "0.7044704", "0.70426416", "0.7032758", "0.6999995", "0.695577...
0.8529007
0
Tests tank's ability to move right
@Test public void testTCannotMoveRight() { tank.InabilityToMoveRight(); assertEquals(false, tank.getRight()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTCanMoveRight() {\n\t\ttank.AbilityToMoveRight();\n\t\tassertEquals(true, tank.getRight());\n\t}", "@Test\n public void testTankMoveLeftRight() {\n tank.moveRight();\n tank.notMoveLeft();\n tank.tick();\n assertEquals(tank.x(), 321);\n tank.tick();\n tank.tick()...
[ "0.85290885", "0.79206365", "0.7909224", "0.78873485", "0.76932514", "0.74372005", "0.73561215", "0.7321198", "0.7282283", "0.7229514", "0.7153182", "0.71447253", "0.71194136", "0.7117958", "0.7068007", "0.70585793", "0.7046614", "0.7043083", "0.70351195", "0.7001691", "0.695...
0.8059802
1
Tests tank's ability to move left
@Test public void testTCanMoveLeft() { tank.AbilityToMoveLeft(); assertEquals(true, tank.getLeft()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTLeft2() {\n\t\ttank.AbilityToMoveLeft();\n\t\ttank.goLeft();\n\t\tassertEquals(-1, tank.getX());\n\t}", "@Test\n\tpublic void testTLeft1() {\n\t\ttank.InabilityToMoveLeft();\n\t\ttank.goLeft();\n\t\tassertEquals(0, tank.getX());\n\t}", "@Test\n\tpublic void testTCannotMoveLeft() {\n\t...
[ "0.82873094", "0.8277655", "0.8006274", "0.7952486", "0.75147104", "0.74083465", "0.7366371", "0.7329238", "0.7325562", "0.7284713", "0.7282145", "0.7197367", "0.7173261", "0.7164329", "0.71412474", "0.7122525", "0.7105806", "0.70800203", "0.7070317", "0.70495856", "0.7045683...
0.83327246
0
Tests tank's ability to move left
@Test public void testTCannotMoveLeft() { tank.InabilityToMoveLeft(); assertEquals(false, tank.getLeft()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTCanMoveLeft() {\n\t\ttank.AbilityToMoveLeft();\n\t\tassertEquals(true, tank.getLeft());\n\t}", "@Test\n\tpublic void testTLeft2() {\n\t\ttank.AbilityToMoveLeft();\n\t\ttank.goLeft();\n\t\tassertEquals(-1, tank.getX());\n\t}", "@Test\n\tpublic void testTLeft1() {\n\t\ttank.InabilityToM...
[ "0.83327246", "0.82873094", "0.8277655", "0.7952486", "0.75147104", "0.74083465", "0.7366371", "0.7329238", "0.7325562", "0.7284713", "0.7282145", "0.7197367", "0.7173261", "0.7164329", "0.71412474", "0.7122525", "0.7105806", "0.70800203", "0.7070317", "0.70495856", "0.704568...
0.8006274
3
Tests tank while moving right
@Test public void testTRight1() { tank.InabilityToMoveRight(); tank.goRight(); assertEquals(0, tank.getX()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testTankMoveLeftRight() {\n tank.moveRight();\n tank.notMoveLeft();\n tank.tick();\n assertEquals(tank.x(), 321);\n tank.tick();\n tank.tick();\n tank.tick();\n assertEquals(tank.x(), 324);\n\n tank.moveLeft();\n tank.notMoveRight();\n tank.tick();\...
[ "0.78076965", "0.7653691", "0.7296346", "0.7271718", "0.72297317", "0.7120113", "0.70053494", "0.6780448", "0.675381", "0.65718436", "0.65703505", "0.64575016", "0.63992834", "0.63791794", "0.6353734", "0.63083637", "0.6304292", "0.62954587", "0.6285546", "0.6284231", "0.6276...
0.74319756
2
Tests tank while moving right
@Test public void testTRight2() { tank.AbilityToMoveRight(); tank.goRight(); assertEquals(1, tank.getX()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testTankMoveLeftRight() {\n tank.moveRight();\n tank.notMoveLeft();\n tank.tick();\n assertEquals(tank.x(), 321);\n tank.tick();\n tank.tick();\n tank.tick();\n assertEquals(tank.x(), 324);\n\n tank.moveLeft();\n tank.notMoveRight();\n tank.tick();\...
[ "0.78076965", "0.7653691", "0.74319756", "0.7271718", "0.72297317", "0.7120113", "0.70053494", "0.6780448", "0.675381", "0.65718436", "0.65703505", "0.64575016", "0.63992834", "0.63791794", "0.6353734", "0.63083637", "0.6304292", "0.62954587", "0.6285546", "0.6284231", "0.627...
0.7296346
3
Tests tank while moving left
@Test public void testTLeft1() { tank.InabilityToMoveLeft(); tank.goLeft(); assertEquals(0, tank.getX()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testTankMoveLeftRight() {\n tank.moveRight();\n tank.notMoveLeft();\n tank.tick();\n assertEquals(tank.x(), 321);\n tank.tick();\n tank.tick();\n tank.tick();\n assertEquals(tank.x(), 324);\n\n tank.moveLeft();\n tank.notMoveRight();\n tank.tick();\...
[ "0.76908684", "0.7559176", "0.74671525", "0.7171943", "0.69884235", "0.696836", "0.690863", "0.6636149", "0.65946907", "0.65392315", "0.64560723", "0.64097893", "0.6388576", "0.63242954", "0.62825555", "0.6281922", "0.6251239", "0.62157065", "0.6190406", "0.61736125", "0.6160...
0.7593264
1
Tests tank while moving left
@Test public void testTLeft2() { tank.AbilityToMoveLeft(); tank.goLeft(); assertEquals(-1, tank.getX()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testTankMoveLeftRight() {\n tank.moveRight();\n tank.notMoveLeft();\n tank.tick();\n assertEquals(tank.x(), 321);\n tank.tick();\n tank.tick();\n tank.tick();\n assertEquals(tank.x(), 324);\n\n tank.moveLeft();\n tank.notMoveRight();\n tank.tick();\...
[ "0.76908684", "0.7593264", "0.74671525", "0.7171943", "0.69884235", "0.696836", "0.690863", "0.6636149", "0.65946907", "0.65392315", "0.64560723", "0.64097893", "0.6388576", "0.63242954", "0.62825555", "0.6281922", "0.6251239", "0.62157065", "0.6190406", "0.61736125", "0.6160...
0.7559176
2
Tests tank health after 3 hits from invader
@Test public void testTInvader1() { tank.damage(proj); tank.damage(proj); tank.damage(proj); assertEquals(0, tank.getHealth()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTInvader3() {\n\t\ttank.damage(proj);\n\t\tassertEquals(2, tank.getHealth());\n\t}", "@Test\n\tpublic void testTInvader2() {\n\t\ttank.damage(proj);\n\t\ttank.damage(proj);\n\t\tassertEquals(1, tank.getHealth());\n\t}", "@Test\n\tpublic void testHealthIncrease3() {\n\t\ttank.setHealth(...
[ "0.782638", "0.73485416", "0.6904035", "0.66928905", "0.6612126", "0.66094977", "0.64726144", "0.6393938", "0.6358204", "0.6334518", "0.63108015", "0.6302452", "0.62989163", "0.6269512", "0.62654793", "0.6252832", "0.6243871", "0.62422687", "0.62382793", "0.62200385", "0.6191...
0.7543001
1
Tests tank health after 2 hits from invader
@Test public void testTInvader2() { tank.damage(proj); tank.damage(proj); assertEquals(1, tank.getHealth()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTInvader1() {\n\t\ttank.damage(proj);\n\t\ttank.damage(proj);\n\t\ttank.damage(proj);\n\t\tassertEquals(0, tank.getHealth());\n\t}", "@Test\n\tpublic void testTInvader3() {\n\t\ttank.damage(proj);\n\t\tassertEquals(2, tank.getHealth());\n\t}", "@Test\n\tpublic void testHealthIncrease2(...
[ "0.7673317", "0.73564595", "0.69505996", "0.6802878", "0.65395504", "0.6478238", "0.6448521", "0.64484614", "0.6441895", "0.64166594", "0.63598424", "0.6329023", "0.6320878", "0.6278606", "0.6274331", "0.62650824", "0.62539464", "0.6251298", "0.6248041", "0.6240484", "0.62314...
0.7750958
0
Tests tank health after 1 hits from invader
@Test public void testTInvader3() { tank.damage(proj); assertEquals(2, tank.getHealth()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTInvader1() {\n\t\ttank.damage(proj);\n\t\ttank.damage(proj);\n\t\ttank.damage(proj);\n\t\tassertEquals(0, tank.getHealth());\n\t}", "@Test\n\tpublic void testTInvader2() {\n\t\ttank.damage(proj);\n\t\ttank.damage(proj);\n\t\tassertEquals(1, tank.getHealth());\n\t}", "@Test\n public ...
[ "0.7756371", "0.7507029", "0.6840504", "0.6636769", "0.6595414", "0.6532788", "0.65140885", "0.6492939", "0.64877194", "0.6473762", "0.64683104", "0.64561254", "0.6451887", "0.64178985", "0.6372156", "0.6364126", "0.6345646", "0.6330688", "0.63273525", "0.62732506", "0.627265...
0.7337918
2
Tests if tank inside right margin
@Test public void testTOutOfBoundsRightMargin1() { tank.setX(550); assertEquals(false, tank.isWithinMarginsRight()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testTOutOfBoundsRightMargin2() {\n\t\ttank.setX(460);\n\t\tassertEquals(false, tank.isWithinMarginsRight());\n\t}", "@Test\n\tpublic void testTOutOfBoundsRightMargin3() {\n\t\ttank.setX(300);\n\t\tassertEquals(true, tank.isWithinMarginsRight());\n\t}", "@Test\n\tpublic void testTOutOfBound...
[ "0.76212484", "0.73384124", "0.7083071", "0.6597683", "0.6589229", "0.65037", "0.6479061", "0.6312934", "0.62694246", "0.6143764", "0.6098742", "0.6095964", "0.60679764", "0.60599816", "0.6047686", "0.6037012", "0.5955504", "0.59033257", "0.59003633", "0.58663017", "0.5865711...
0.75607705
1