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
Connecting to a secondary interface is the same as any other interface
@Override public void onServiceConnected(ComponentName name, IBinder service) { mSecondService = ISecondary.Stub.asInterface(service); mKillBtn.setEnabled(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void connect();", "public void connect();", "public void connect();", "@Override\n public abstract void connect();", "public void connect() {}", "public abstract void connectSystem();", "Interface getInterfaceByName(ConnectPoint connectPoint, String name);", "void onConnectToNetByIPSucces()...
[ "0.64749545", "0.64749545", "0.64749545", "0.6458632", "0.6416273", "0.63553", "0.6299324", "0.6271532", "0.6203072", "0.6135668", "0.6135668", "0.60929036", "0.60532224", "0.60474324", "0.60450524", "0.60396326", "0.59959215", "0.59840107", "0.5955052", "0.5951037", "0.59203...
0.0
-1
A description of item.
@ApiModelProperty(required = true, value = "A description of item.") public String getItemName() { return itemName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getItemDescription() {\n return itemDescription;\n }", "public String getItemDescription() {\r\n\t\treturn itemDescription;\r\n\t}", "public String getItemDesc() {\n return itemDesc;\n }", "@Override\n\tpublic ItemDescription getItemDescription() {\n\t\tItemDescription item ...
[ "0.84232825", "0.8388654", "0.8358318", "0.79767036", "0.79290617", "0.78048915", "0.778417", "0.7754086", "0.76555693", "0.7565727", "0.75585455", "0.7504303", "0.7503827", "0.74931794", "0.7482425", "0.74687386", "0.7451296", "0.7451075", "0.74207836", "0.74141985", "0.7407...
0.0
-1
The amount of the purchase. The tax was calculated on this amount.
@ApiModelProperty(required = true, value = "The amount of the purchase. The tax was calculated on this amount.") public BigDecimal getChargeAmount() { return chargeAmount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getTaxAmount();", "public double getTaxAmount() {\n return taxAmount;\n }", "public MMDecimal getTaxAmount() {\r\n return this.taxAmount;\r\n }", "public double getTax() {\r\n\r\n return getSubtotal() * 0.06;\r\n\r\n }", "public BigDecimal getTotalTaxAmt() {\n\t\treturn...
[ "0.7913285", "0.7797283", "0.77430594", "0.76909614", "0.75924623", "0.75585896", "0.7520494", "0.75043917", "0.74814075", "0.747426", "0.74648213", "0.74141", "0.74037963", "0.7367551", "0.73588187", "0.73505765", "0.7349087", "0.73014635", "0.7285855", "0.72571784", "0.7245...
0.0
-1
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA...
[ "0.78847593", "0.75493765", "0.74971926", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0...
0.0
-1
Test 'clustering_0 = 1' with only one clustering column
@Test public void testBoundsAsCompositesWithOneEqRestrictionsAndOneClusteringColumn() { CFMetaData cfMetaData = newCFMetaData(Sort.ASC); ByteBuffer clustering_0 = ByteBufferUtil.bytes(1); Restriction eq = newSingleEq(cfMetaData, 0, clustering_0); PrimaryKeyRestrictions restrict...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasCluster();", "boolean getIsClusteringKey();", "boolean hasClusterName();", "public void decideCluster(){\n\tdouble shortest = 1000000;\n\tfor(int i = 0; i < clusterDist.length; i++)\n\t{\n\t\tif(clusterDist[i] < shortest)\n\t\t{\tshortest = clusterDist[i];\n\t\t\tthis.clusterid = i;\n\t\t}\n\t\t\n...
[ "0.6966537", "0.6900383", "0.6391728", "0.61760414", "0.6170022", "0.6149921", "0.60524374", "0.57367706", "0.5714012", "0.5708318", "0.57000613", "0.56846195", "0.56577516", "0.55612725", "0.5550161", "0.5536463", "0.5534219", "0.5491301", "0.5436463", "0.54107153", "0.53943...
0.5678409
12
Test 'clustering_1 = 1' with 2 clustering columns
@Test public void testBoundsAsCompositesWithOneEqRestrictionsAndTwoClusteringColumns() { CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC); ByteBuffer clustering_0 = ByteBufferUtil.bytes(1); Restriction eq = newSingleEq(cfMetaData, 0, clustering_0); PrimaryKeyRestrictio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasCluster();", "boolean getIsClusteringKey();", "public interface IStoppingCriteria {\n\n /**\n * Determine the degree of clustering agreement\n * @param cluster1 one clustering results\n * @param cluster2 the other clustering results\n * @return the degree of clustering agreement; ...
[ "0.655288", "0.6452693", "0.61712265", "0.61235535", "0.6081428", "0.5923896", "0.5921431", "0.5905439", "0.5904474", "0.5900855", "0.5894897", "0.578866", "0.5782568", "0.57572764", "0.5738719", "0.5731623", "0.5707706", "0.5683512", "0.5670555", "0.56246656", "0.5621857", ...
0.60379845
5
Test 'clustering_0 IN (1, 2, 3)' with only one clustering column
@Test public void testBoundsAsCompositesWithOneInRestrictionsAndOneClusteringColumn() { ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); ByteBuffer value3 = ByteBufferUtil.bytes(3); CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasCluster();", "boolean getIsClusteringKey();", "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndOneClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingle...
[ "0.5754629", "0.5694628", "0.5685817", "0.5570394", "0.5541948", "0.54724354", "0.5430311", "0.5372573", "0.5360609", "0.5355168", "0.5311278", "0.52593815", "0.5256902", "0.521996", "0.51848376", "0.5184197", "0.51364034", "0.5129655", "0.51064694", "0.50841904", "0.50794065...
0.54780084
5
Test slice restriction (e.g 'clustering_0 > 1') with only one clustering column
@Test public void testBoundsAsCompositesWithSliceRestrictionsAndOneClusteringColumn() { CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); Restriction slice = newSingleSlice(cfMeta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithTwoClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n\n // (clustering_0, clus...
[ "0.69050986", "0.68582433", "0.68553466", "0.673374", "0.6673362", "0.6672858", "0.6641989", "0.65723604", "0.6481072", "0.6337122", "0.62584287", "0.6246907", "0.60668314", "0.57359785", "0.5690934", "0.56857824", "0.5592548", "0.5509543", "0.54721624", "0.52888", "0.5213097...
0.68287116
3
Test slice restriction (e.g 'clustering_0 > 1') with only one descending clustering column
@Test public void testBoundsAsCompositesWithSliceRestrictionsAndOneDescendingClusteringColumn() { CFMetaData cfMetaData = newCFMetaData(Sort.DESC, Sort.DESC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); Restriction slice = newSingle...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithOneDescendingAndOneAscendingClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.DESC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n\n ...
[ "0.6938485", "0.6923774", "0.6864263", "0.6708734", "0.67000085", "0.66666853", "0.6598758", "0.6563316", "0.62897927", "0.606274", "0.58658755", "0.58408505", "0.5778646", "0.56070775", "0.54490256", "0.54332536", "0.54237306", "0.52661717", "0.5180933", "0.51592827", "0.509...
0.680214
3
Test 'clustering_0 = 1 AND clustering_1 IN (1, 2, 3)'
@Test public void testBoundsAsCompositesWithEqAndInRestrictions() { CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); ByteBuffer value3 = ByteBufferUtil.bytes(3); Restricti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBoundsAsCompositesWithSingleEqAndMultiINRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 =...
[ "0.61198837", "0.5869325", "0.5798154", "0.5756744", "0.57301205", "0.56089854", "0.5600606", "0.5582519", "0.5569344", "0.5557465", "0.55423385", "0.5537578", "0.5461619", "0.5334623", "0.53114283", "0.52911013", "0.5275716", "0.5253202", "0.5250204", "0.5236934", "0.5223572...
0.47174302
86
Test equal and slice restrictions (e.g 'clustering_0 = 0 clustering_1 > 1')
@Test public void testBoundsAsCompositesWithEqAndSliceRestrictions() { CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); ByteBuffer value3 = ByteBufferUtil.bytes(3); Restr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithTwoClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n\n // (clustering_0, clus...
[ "0.7154399", "0.714508", "0.7102851", "0.7071646", "0.70400655", "0.70215666", "0.6899557", "0.68419933", "0.6808379", "0.66468716", "0.6644203", "0.66304994", "0.6546314", "0.6497844", "0.63617647", "0.6202963", "0.6139936", "0.5985461", "0.5802134", "0.5745651", "0.55448246...
0.63417643
15
Test '(clustering_0, clustering_1) = (1, 2)' with two clustering column
@Test public void testBoundsAsCompositesWithMultiEqRestrictions() { CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); Restriction eq = newMultiEq(cfMetaData, 0, value1, value2); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IStoppingCriteria {\n\n /**\n * Determine the degree of clustering agreement\n * @param cluster1 one clustering results\n * @param cluster2 the other clustering results\n * @return the degree of clustering agreement; 1 refers to be the same clustering results; 0 refers to be the...
[ "0.6016142", "0.59664255", "0.582602", "0.58245015", "0.56683433", "0.56623054", "0.5468462", "0.54600275", "0.54583234", "0.541432", "0.5369806", "0.5315496", "0.52900255", "0.5286375", "0.5260932", "0.5257752", "0.52531886", "0.5232511", "0.5202972", "0.52017224", "0.517446...
0.0
-1
Test '(clustering_0, clustering_1) IN ((1, 2), (2, 3))' with two clustering column
@Test public void testBoundsAsCompositesWithMultiInRestrictions() { CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); ByteBuffer value3 = ByteBufferUtil.bytes(3); Restricti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBoundsAsCompositesWithSingleEqAndMultiINRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 =...
[ "0.55134296", "0.5277081", "0.5206049", "0.5164937", "0.5151129", "0.5130439", "0.49877012", "0.49743792", "0.49434733", "0.49287423", "0.4918437", "0.49025583", "0.4889417", "0.48695078", "0.48301366", "0.48156768", "0.47719947", "0.47314805", "0.47260517", "0.47125053", "0....
0.45906082
29
Test multicolumn slice restrictions (e.g '(clustering_0) > (1)') with only one clustering column
@Test public void testBoundsAsCompositesWithMultiSliceRestrictionsWithOneClusteringColumn() { CFMetaData cfMetaData = newCFMetaData(Sort.ASC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); Restriction slice = newMultiSlice(cfMetaData,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithTwoClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n\n // (clustering_0, clus...
[ "0.7035176", "0.6894662", "0.68665797", "0.6858747", "0.6838168", "0.67742574", "0.6698097", "0.6545424", "0.644481", "0.6426601", "0.641349", "0.631177", "0.6243663", "0.5747856", "0.57330954", "0.56544596", "0.56334513", "0.5632327", "0.55277467", "0.53221786", "0.52115816"...
0.6627161
7
Test multicolumn slice restrictions (e.g '(clustering_0) > (1)') with only one clustering column in reverse order
@Test public void testBoundsAsCompositesWithMultiSliceRestrictionsWithOneDescendingClusteringColumn() { CFMetaData cfMetaData = newCFMetaData(Sort.DESC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); Restriction slice = newMultiSlice(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithOneDescendingAndOneAscendingClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.DESC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n\n ...
[ "0.71079266", "0.7107773", "0.7075577", "0.70683056", "0.7041993", "0.6992055", "0.67844117", "0.6641395", "0.6572737", "0.6390872", "0.6334486", "0.6077441", "0.60113037", "0.569806", "0.56356424", "0.56186855", "0.537637", "0.53422374", "0.5258379", "0.5230412", "0.5190661"...
0.6795704
6
Test multicolumn slice restrictions (e.g '(clustering_0, clustering_1) > (1, 2)')
@Test public void testBoundsAsCompositesWithMultiSliceRestrictionsWithTwoClusteringColumn() { CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); // (clustering_0, clustering1) > (1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithTwoAscendingAndTwoDescendingClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.DESC, Sort.DESC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBuffer...
[ "0.7158963", "0.7123606", "0.70991635", "0.705466", "0.7004295", "0.69189924", "0.66595685", "0.6623466", "0.6592054", "0.6497857", "0.6349571", "0.63176143", "0.6154024", "0.5980809", "0.59069383", "0.5850658", "0.5775508", "0.563109", "0.5578095", "0.5533329", "0.54270524",...
0.72285795
0
Test multicolumn slice restrictions with 2 descending clustering columns (e.g '(clustering_0, clustering_1) > (1, 2)')
@Test public void testBoundsAsCompositesWithMultiSliceRestrictionsWithTwoDescendingClusteringColumns() { CFMetaData cfMetaData = newCFMetaData(Sort.DESC, Sort.DESC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); // (clustering_0, clus...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithTwoAscendingAndTwoDescendingClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.DESC, Sort.DESC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBuffer...
[ "0.72523504", "0.72383624", "0.72298527", "0.71883434", "0.71790695", "0.6627842", "0.65278995", "0.65088105", "0.65063864", "0.646677", "0.6411797", "0.62839794", "0.593135", "0.5747582", "0.56584555", "0.56246156", "0.5596355", "0.55012786", "0.5376019", "0.5339496", "0.528...
0.7223626
3
Test multicolumn slice restrictions with 1 descending clustering column and 1 ascending (e.g '(clustering_0, clustering_1) > (1, 2)')
@Test public void testBoundsAsCompositesWithMultiSliceRestrictionsWithOneDescendingAndOneAscendingClusteringColumns() { CFMetaData cfMetaData = newCFMetaData(Sort.DESC, Sort.ASC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); // (clus...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithOneAscendingAndOneDescendingClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.DESC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n\n ...
[ "0.7212001", "0.7167793", "0.71507007", "0.7104244", "0.7052053", "0.6614333", "0.6565695", "0.64538974", "0.64523757", "0.644347", "0.6412511", "0.60852253", "0.59282017", "0.56765765", "0.559908", "0.55776674", "0.5568619", "0.5541887", "0.5361187", "0.5167763", "0.5035255"...
0.7181936
1
Test multicolumn slice restrictions with 1 descending clustering column and 1 ascending (e.g '(clustering_0, clustering_1) > (1, 2)')
@Test public void testBoundsAsCompositesWithMultiSliceRestrictionsWithOneAscendingAndOneDescendingClusteringColumns() { CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.DESC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); // (clus...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithOneDescendingAndOneAscendingClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.DESC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n\n ...
[ "0.71834785", "0.7169597", "0.7152469", "0.7106035", "0.7053987", "0.6616245", "0.6567298", "0.6455669", "0.6454345", "0.64455014", "0.64141124", "0.60866195", "0.59291726", "0.56778836", "0.5601167", "0.5580621", "0.5569759", "0.5539649", "0.53624284", "0.51680547", "0.50345...
0.72136277
0
Test multicolumn slice restrictions with 2 ascending clustering column and 2 descending (e.g '(clustering_0, clustering1, clustering_3, clustering4) > (1, 2, 3, 4)')
@Test public void testBoundsAsCompositesWithMultiSliceRestrictionsWithTwoAscendingAndTwoDescendingClusteringColumns() { CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.DESC, Sort.DESC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithOneAscendingAndOneDescendingClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.DESC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n\n ...
[ "0.7151454", "0.71180356", "0.7091", "0.7080686", "0.7052878", "0.6467863", "0.63756365", "0.6356479", "0.633281", "0.62895817", "0.6276503", "0.5980363", "0.56661403", "0.5642333", "0.5599308", "0.55628234", "0.5533157", "0.5457517", "0.5346082", "0.5249726", "0.5203883", ...
0.71541804
0
Test multicolumn slice restrictions with ascending, descending, ascending and descending columns (e.g '(clustering_0, clustering1, clustering_3, clustering4) > (1, 2, 3, 4)')
@Test public void testBoundsAsCompositesWithMultiSliceRestrictionsMixingAscendingDescendingClusteringColumns() { CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.DESC, Sort.ASC, Sort.DESC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithOneAscendingAndOneDescendingClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.DESC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n\n ...
[ "0.6965921", "0.6914059", "0.69114923", "0.6779652", "0.6630016", "0.63010615", "0.6233237", "0.61220306", "0.6072426", "0.60607076", "0.6034352", "0.56164646", "0.5528148", "0.54576087", "0.5364557", "0.53221506", "0.532174", "0.5167257", "0.5086574", "0.50616664", "0.501884...
0.6905732
3
Test mixing single and multi equals restrictions (e.g. clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3))
@Test public void testBoundsAsCompositesWithSingleEqAndMultiEqRestrictions() { CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); ByteBuffer value3 = ByteBufferU...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndTwoClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n Primary...
[ "0.6421651", "0.6329286", "0.6289435", "0.62639934", "0.6236681", "0.60520816", "0.5971452", "0.5939146", "0.58936757", "0.58523923", "0.5644424", "0.55787545", "0.55666435", "0.55643356", "0.5472871", "0.540083", "0.52998215", "0.5282358", "0.52783614", "0.5252247", "0.52468...
0.6591334
0
Test clustering_0 = 1 AND (clustering_1, clustering_2) IN ((2, 3), (4, 5))
@Test public void testBoundsAsCompositesWithSingleEqAndMultiINRestrictions() { CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); ByteBuffer value3 = ByteBufferU...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithTwoAscendingAndTwoDescendingClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.DESC, Sort.DESC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBuffer...
[ "0.6033555", "0.60084385", "0.59673613", "0.59251887", "0.5787025", "0.5766385", "0.5744022", "0.5709267", "0.5709238", "0.5705721", "0.5589267", "0.5506614", "0.53755045", "0.5364915", "0.5317235", "0.5308397", "0.5302306", "0.52704215", "0.5259506", "0.5212562", "0.5196598"...
0.62535954
0
Test mixing single equal restrictions with multicolumn slice restrictions (e.g. clustering_0 = 1 AND (clustering_1, clustering_2) > (2, 3))
@Test public void testBoundsAsCompositesWithSingleEqAndSliceRestrictions() { CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); ByteBuffer value3 = ByteBufferUtil.bytes(3)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithTwoAscendingAndTwoDescendingClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.DESC, Sort.DESC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBuffer...
[ "0.7423196", "0.7411501", "0.7381687", "0.73273027", "0.7277943", "0.72429675", "0.7169441", "0.68954074", "0.6847147", "0.6814049", "0.6738144", "0.67210495", "0.66528857", "0.65600723", "0.64711374", "0.6389887", "0.6106043", "0.5987885", "0.58344626", "0.5733508", "0.57145...
0.71278614
7
Test mixing multi equal restrictions with singlecolumn slice restrictions (e.g. clustering_0 = 1 AND (clustering_1, clustering_2) > (2, 3))
@Test public void testBoundsAsCompositesWithMultiEqAndSingleSliceRestrictions() { CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC); ByteBuffer value1 = ByteBufferUtil.bytes(1); ByteBuffer value2 = ByteBufferUtil.bytes(2); ByteBuffer value3 = ByteBufferUtil.byt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testBoundsAsCompositesWithMultiSliceRestrictionsWithTwoClusteringColumn()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n\n // (clustering_0, clus...
[ "0.7527817", "0.75101864", "0.74625117", "0.7373135", "0.7340862", "0.7261511", "0.72511", "0.7019014", "0.70154095", "0.69282657", "0.678104", "0.67779183", "0.67552125", "0.67154366", "0.6553618", "0.6484248", "0.611916", "0.60863286", "0.5970281", "0.57139134", "0.56976074...
0.74467874
3
Asserts that the specified Composite is an empty one.
private static void assertEmptyComposite(Composite composite) { assertEquals(Composites.EMPTY, composite); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testIsEmpty() {\n assertTrue(this.empty.isEmpty());\n assertFalse(this.stack.isEmpty());\n }", "@Test\n void isNotEmptyTest() {\n Container container = new Container();\n container.fillContainer(Resource.SHIELD);\n assertFalse(container.isEmpty());\n }", ...
[ "0.6610717", "0.66019595", "0.65668297", "0.64829636", "0.63958585", "0.6373087", "0.6372227", "0.62775236", "0.6258594", "0.61821175", "0.61671674", "0.6142382", "0.6095398", "0.6093176", "0.60911185", "0.60911185", "0.6086482", "0.6083981", "0.6080389", "0.6080389", "0.6076...
0.89270663
0
Asserts that the specified Composite contains the specified element and the specified EOC.
private static void assertComposite(Composite composite, ByteBuffer element, EOC eoc) { assertComposite(composite, eoc, element); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void assertComposite(Composite composite,\n ByteBuffer firstElement,\n ByteBuffer secondElement,\n ByteBuffer thirdElement,\n EOC eoc)\n {\n ...
[ "0.7881951", "0.7831773", "0.77020264", "0.7633372", "0.61405665", "0.58442795", "0.5396812", "0.53004736", "0.5292031", "0.5232128", "0.51863164", "0.5182449", "0.5181244", "0.5136315", "0.5134399", "0.5111167", "0.50902927", "0.50458497", "0.5035466", "0.5034168", "0.503152...
0.7918091
0
Asserts that the specified Composite contains the 2 specified element and the specified EOC.
private static void assertComposite(Composite composite, ByteBuffer firstElement, ByteBuffer secondElement, EOC eoc) { assertComposite(composite, eoc, firstElement, secondElement); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void assertComposite(Composite composite,\n ByteBuffer firstElement,\n ByteBuffer secondElement,\n ByteBuffer thirdElement,\n EOC eoc)\n {\n ...
[ "0.7955315", "0.77752924", "0.77708125", "0.75277567", "0.6392244", "0.570922", "0.56801045", "0.56785953", "0.5563103", "0.5466157", "0.5407627", "0.53928924", "0.5359151", "0.5325736", "0.5306758", "0.5270361", "0.52497417", "0.5226432", "0.51550776", "0.5117844", "0.510292...
0.80137074
0
Asserts that the specified Composite contains the 3 specified element and the specified EOC.
private static void assertComposite(Composite composite, ByteBuffer firstElement, ByteBuffer secondElement, ByteBuffer thirdElement, EOC eoc) { asse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void assertComposite(Composite composite,\n ByteBuffer firstElement,\n ByteBuffer secondElement,\n ByteBuffer thirdElement,\n ByteBuffer fourthE...
[ "0.7997657", "0.7819967", "0.7669355", "0.7544892", "0.6495886", "0.6009291", "0.5779865", "0.56487834", "0.56465024", "0.5606033", "0.54876816", "0.5464892", "0.541527", "0.5401884", "0.53381723", "0.5327283", "0.53069615", "0.5271551", "0.523697", "0.5228523", "0.5223961", ...
0.80879617
0
Asserts that the specified Composite contains the 4 specified element and the specified EOC.
private static void assertComposite(Composite composite, ByteBuffer firstElement, ByteBuffer secondElement, ByteBuffer thirdElement, ByteBuffer fourthElement, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void assertComposite(Composite composite, EOC eoc, ByteBuffer... elements)\n {\n assertEquals(\"the composite size is not the expected one:\", elements.length, composite.size());\n for (int i = 0, m = elements.length; i < m; i++)\n {\n ByteBuffer element = elements...
[ "0.7902646", "0.7899136", "0.7667408", "0.7598966", "0.63644123", "0.61449534", "0.5830734", "0.57333016", "0.56694055", "0.5608604", "0.5533267", "0.5452142", "0.5445305", "0.5433261", "0.5401472", "0.534889", "0.5311948", "0.528261", "0.5263272", "0.5242005", "0.52287114", ...
0.8064177
0
Asserts that the specified Composite contains the specified elements and EOC.
private static void assertComposite(Composite composite, EOC eoc, ByteBuffer... elements) { assertEquals("the composite size is not the expected one:", elements.length, composite.size()); for (int i = 0, m = elements.length; i < m; i++) { ByteBuffer element = elements[i]; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void assertComposite(Composite composite,\n ByteBuffer firstElement,\n ByteBuffer secondElement,\n ByteBuffer thirdElement,\n EOC eoc)\n {\n ...
[ "0.79356545", "0.7812406", "0.7742198", "0.76522803", "0.63971907", "0.6291986", "0.5871704", "0.56031", "0.55217475", "0.55062485", "0.54514986", "0.53493524", "0.5341802", "0.5309878", "0.52995026", "0.5298064", "0.52630234", "0.5258606", "0.52142364", "0.5183748", "0.51826...
0.82200515
0
Creates a new CFMetaData instance.
private static CFMetaData newCFMetaData(Sort... sorts) { List<AbstractType<?>> types = new ArrayList<>(); for (Sort sort : sorts) types.add(sort == Sort.ASC ? Int32Type.instance : ReversedType.getInstance(Int32Type.instance)); CompoundSparseCellNameType cType = new CompoundSpar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected MetaData makeMetaData() {\n return new MetaData();\n }", "public MetaDataManager createMetaDataManager() throws ServiceException {\r\n initialize(); \r\n return new MetaDataManager(multiDomainMetaService); \r\n\t}", "protected static LibMetaData creat...
[ "0.6213849", "0.58474976", "0.5686196", "0.56231236", "0.5550575", "0.551902", "0.54441345", "0.53879017", "0.53617096", "0.53393453", "0.5299201", "0.5279879", "0.52265346", "0.5166337", "0.5160773", "0.5155291", "0.5111163", "0.50491935", "0.5032846", "0.5032169", "0.502239...
0.5841151
2
Creates a new SingleColumnRestriction.EQ instance for the specified clustering column.
private static Restriction newSingleEq(CFMetaData cfMetaData, int index, ByteBuffer value) { ColumnDefinition columnDef = getClusteringColumnDefinition(cfMetaData, index); return new SingleColumnRestriction.EQ(columnDef, toTerm(value)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Criteria andAttribEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"attrib = \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "public Criteria andCnameEqualToColumn(SaleClassifyGood.Column column) {\n ...
[ "0.57979923", "0.553727", "0.549655", "0.5476912", "0.54195774", "0.5405243", "0.5333841", "0.53203243", "0.5290347", "0.516612", "0.5115281", "0.50965977", "0.5079231", "0.5076078", "0.50572634", "0.50545174", "0.5043908", "0.50433046", "0.5033802", "0.50301355", "0.5017779"...
0.62385243
0
Creates a new MultiColumnRestriction.EQ instance for the specified clustering column.
private static Restriction newMultiEq(CFMetaData cfMetaData, int firstIndex, ByteBuffer... values) { List<ColumnDefinition> columnDefinitions = new ArrayList<>(); for (int i = 0; i < values.length; i++) { columnDefinitions.add(getClusteringColumnDefinition(cfMetaData, firstIndex ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Criteria andAttribEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"attrib = \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }", "private static Restriction newSingleEq(CFMetaData cfMetaData, int index, ByteBu...
[ "0.5634379", "0.5523779", "0.54032505", "0.5296474", "0.52675945", "0.5227618", "0.51486933", "0.5141298", "0.51400286", "0.51374555", "0.5102513", "0.50926954", "0.50492847", "0.50390196", "0.5033893", "0.49887106", "0.49884164", "0.49633235", "0.49487346", "0.49413982", "0....
0.5704123
0
Creates a new MultiColumnRestriction.IN instance for the specified clustering column.
@SafeVarargs private static Restriction newMultiIN(CFMetaData cfMetaData, int firstIndex, List<ByteBuffer>... values) { List<ColumnDefinition> columnDefinitions = new ArrayList<>(); List<Term> terms = new ArrayList<>(); for (int i = 0; i < values.length; i++) { column...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Restriction newSingleIN(CFMetaData cfMetaData, int index, ByteBuffer... values)\n {\n ColumnDefinition columnDef = getClusteringColumnDefinition(cfMetaData, index);\n return new SingleColumnRestriction.InWithValues(columnDef, toTerms(values));\n }", "PivotInClause createPivotIn...
[ "0.6078115", "0.5620785", "0.5268111", "0.5245378", "0.51334316", "0.49892363", "0.49123394", "0.48469797", "0.4801318", "0.47829404", "0.4760171", "0.4754921", "0.47209603", "0.47160605", "0.4606613", "0.46008325", "0.45985192", "0.45848766", "0.45627582", "0.4540448", "0.45...
0.5528717
2
Creates a new SingleColumnRestriction.IN instance for the specified clustering column.
private static Restriction newSingleIN(CFMetaData cfMetaData, int index, ByteBuffer... values) { ColumnDefinition columnDef = getClusteringColumnDefinition(cfMetaData, index); return new SingleColumnRestriction.InWithValues(columnDef, toTerms(values)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PivotInClause createPivotInClause();", "@Test\n public void testBoundsAsCompositesWithOneInRestrictionsAndOneClusteringColumn()\n {\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n\n CF...
[ "0.5406534", "0.52919483", "0.51597196", "0.5056337", "0.50431746", "0.49100026", "0.48096618", "0.47634882", "0.47313732", "0.46916473", "0.46732813", "0.46707225", "0.46455237", "0.46299255", "0.46262255", "0.46147686", "0.45929757", "0.4554784", "0.4545951", "0.45425048", ...
0.64293194
0
Returns the clustering ColumnDefinition for the specified position.
private static ColumnDefinition getClusteringColumnDefinition(CFMetaData cfMetaData, int index) { return cfMetaData.clusteringColumns().get(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Column getColumn(int pos) { return columns[pos]; }", "public int getColumnType(int position) {\n return columns[position].getType();\n }", "Column createColumn();", "public Builder position(String position) {\n\n\t\t\tthis.position = position;\n\t\t\treturn this;\n\t\t}", "final public Column...
[ "0.5516582", "0.54583156", "0.5286614", "0.517454", "0.50855076", "0.5075996", "0.5054018", "0.50466", "0.5035039", "0.50015897", "0.49942735", "0.49138394", "0.48870873", "0.4866351", "0.4834194", "0.48271137", "0.4779772", "0.47654873", "0.47597528", "0.47212285", "0.471979...
0.6751719
0
Creates a new SingleColumnRestriction.Slice instance for the specified clustering column.
private static Restriction newSingleSlice(CFMetaData cfMetaData, int index, Bound bound, boolean inclusive, ByteBuffer value) { ColumnDefinition columnDef = getClusteringColumnDefinition(cfMetaData, index); return new SingleColumnRestriction.Slice(columnDef, bound, inclusive, toTerm(value)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Restriction newMultiSlice(CFMetaData cfMetaData, int firstIndex, Bound bound, boolean inclusive, ByteBuffer... values)\n {\n List<ColumnDefinition> columnDefinitions = new ArrayList<>();\n for (int i = 0; i < values.length; i++)\n {\n columnDefinitions.add(getClust...
[ "0.587627", "0.51162875", "0.47752202", "0.4752726", "0.45678687", "0.45451474", "0.45056394", "0.4467713", "0.44407982", "0.44352773", "0.44298926", "0.44105753", "0.44011277", "0.4387591", "0.43502158", "0.43449128", "0.43449128", "0.43398672", "0.43350664", "0.43224764", "...
0.69195217
0
Creates a new SingleColumnRestriction.Slice instance for the specified clustering column.
private static Restriction newMultiSlice(CFMetaData cfMetaData, int firstIndex, Bound bound, boolean inclusive, ByteBuffer... values) { List<ColumnDefinition> columnDefinitions = new ArrayList<>(); for (int i = 0; i < values.length; i++) { columnDefinitions.add(getClusteringColum...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Restriction newSingleSlice(CFMetaData cfMetaData, int index, Bound bound, boolean inclusive, ByteBuffer value)\n {\n ColumnDefinition columnDef = getClusteringColumnDefinition(cfMetaData, index);\n return new SingleColumnRestriction.Slice(columnDef, bound, inclusive, toTerm(value));...
[ "0.69209343", "0.5117933", "0.4774896", "0.4752958", "0.45682982", "0.45450532", "0.4505535", "0.44678286", "0.4440431", "0.44337827", "0.44313714", "0.4410987", "0.44020337", "0.43874747", "0.43501768", "0.43461454", "0.43461454", "0.43391493", "0.43349418", "0.43221083", "0...
0.5876637
1
Converts the specified values into a MultiItemTerminal.
private static MultiItemTerminal toMultiItemTerminal(ByteBuffer... values) { return new Tuples.Value(values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static JCardValue multi(Object... values) {\n\t\treturn multi(Arrays.asList(values));\n\t}", "public static JCardValue multi(List<?> values) {\n\t\tList<JsonValue> multiValues = new ArrayList<>(values.size());\n\t\tfor (Object value : values) {\n\t\t\tmultiValues.add(new JsonValue(value));\n\t\t}\n\t\tret...
[ "0.6340076", "0.578717", "0.53648996", "0.52695507", "0.5126586", "0.5000349", "0.4939093", "0.49256456", "0.4859522", "0.47904187", "0.47754535", "0.4727186", "0.4706703", "0.4642687", "0.45858565", "0.45648736", "0.4448481", "0.44271037", "0.44161648", "0.44107828", "0.4407...
0.7567837
0
Converts the specified value into a term.
private static Term toTerm(ByteBuffer value) { return new Constants.Value(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Value.Builder setTerm(java.lang.Integer value) {\n validate(fields()[14], value);\n this.term = value;\n fieldSetFlags()[14] = true;\n return this;\n }", "public void setTerm(java.lang.Integer value) {\n this.term = value;\n }", "@Test public void term_value_01() {\n RD...
[ "0.66486806", "0.64844924", "0.6268487", "0.61910605", "0.6188349", "0.5851282", "0.5805958", "0.5782972", "0.57543296", "0.5698209", "0.56828916", "0.566285", "0.56572926", "0.56326586", "0.56063724", "0.5601072", "0.559937", "0.55985713", "0.55917287", "0.555287", "0.551491...
0.72597617
0
Converts the specified values into a List of terms.
private static List<Term> toTerms(ByteBuffer... values) { List<Term> terms = new ArrayList<>(); for (ByteBuffer value : values) terms.add(toTerm(value)); return terms; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected final List getValuesAsList(String values)\r\n {\r\n List list = new LinkedList();\r\n StringTokenizer tok = new StringTokenizer(values, DELIMITER);\r\n\r\n while(tok.hasMoreTokens())\r\n {\r\n // extract each value, trimming whitespace\r\n list.add(tok.nextToken().trim());\r\n }...
[ "0.6775762", "0.61286527", "0.609638", "0.60908514", "0.607587", "0.6007632", "0.5961191", "0.5849253", "0.5807955", "0.56664723", "0.55516", "0.55023795", "0.54796934", "0.5435829", "0.54248637", "0.5418649", "0.5409392", "0.53975683", "0.5351346", "0.5345938", "0.5263766", ...
0.7809451
0
jhipsterneedleentityaddfield JHipster will add fields here, do not remove
public String getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className,\n boolean id,\n boolean oneToOne, boolean oneToMany, boolean manyToOne, boolean manyToMany, String mapp...
[ "0.6293017", "0.59873044", "0.59336305", "0.5806434", "0.5701475", "0.5624825", "0.5623612", "0.56039536", "0.55894625", "0.55273145", "0.5526747", "0.55017185", "0.54510385", "0.5450061", "0.5448544", "0.5439888", "0.54212433", "0.5396721", "0.5392768", "0.53858346", "0.5378...
0.0
-1
jhipsterneedleentityaddgetterssetters JHipster will add getters and setters here, do not remove
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof BenhNhan)) { return false; } return id != null && id.equals(((BenhNhan) o).id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n i...
[ "0.6329455", "0.610891", "0.5659298", "0.5650563", "0.55329704", "0.54645276", "0.5463555", "0.5449493", "0.54340285", "0.5415549", "0.5387973", "0.5379287", "0.5350966", "0.5341474", "0.5335219", "0.53296864", "0.53243345", "0.5322623", "0.5316597", "0.53026056", "0.5292526"...
0.0
-1
args[0]: source file with semantic roles in the conll09 format (input) args[1]: target file with semantic roles in the conll09 format (input) args[4]: alignment file (input) args[5]: projected file (output)
public static void main(String args[]) throws Exception { String sourceFile = args[0]; //source file has supervised SRL tags String targetFile = args[1]; //target file has supervised SRL tags String alignmentFile = args[2]; String sourceClusterFilePath = args[3]; String targetCl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws AlignmentException, IOException, URISyntaxException, OWLOntologyCreationException {\n\t\tfinal double threshold = 0.9;\n\t\tfinal String thresholdValue = removeCharAt(String.valueOf(threshold),1);\t\n\t\t\n\t\t/*** 2. Define the folder name holding all ontologies to be...
[ "0.6695662", "0.6181555", "0.611007", "0.6052239", "0.5994832", "0.5957912", "0.5892558", "0.5838297", "0.57619685", "0.5759357", "0.5758834", "0.5750859", "0.57211065", "0.5699645", "0.5670189", "0.56596315", "0.56309366", "0.55733174", "0.55613446", "0.552573", "0.5504219",...
0.7084444
0
Created by Khairy on 4/27/2018.
public interface MyDialogCloseListener { public void handleDialogClose(DialogInterface dialog); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Overri...
[ "0.5933475", "0.57016087", "0.56680626", "0.5623418", "0.5594203", "0.5566122", "0.55349255", "0.55349255", "0.55084836", "0.5489785", "0.5463237", "0.54442686", "0.541022", "0.5400567", "0.5398868", "0.5384805", "0.5381957", "0.53771275", "0.53771275", "0.53771275", "0.53771...
0.0
-1
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA...
[ "0.7884413", "0.7549383", "0.7497253", "0.74617267", "0.74617267", "0.74617267", "0.74617267", "0.74617267", "0.74617267", "0.74617267", "0.74617267", "0.74617267", "0.74617267", "0.74617267", "0.74617267", "0.74617267", "0.74617267", "0.74617267", "0.74617267", "0.74617267", ...
0.0
-1
/ initializes an event with null name and description, current date/time
public Event() { this.name = null; this.description = null; this.date = new GregorianCalendar(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TimedEvent() {\n this(DEFAULT_LABEL + nextTaskID, DEFAULT_DATE, DEFAULT_TIME); // assigning default values\n }", "public Event() {\n // Unique random UID number for each event\n UID = UUID.randomUUID().toString().toUpperCase();\n TimeZone tz = TimeZone.getTimeZone(\"UTC\");\n Calendar ...
[ "0.7222036", "0.717496", "0.70867467", "0.7085524", "0.7085524", "0.702021", "0.7008945", "0.69643986", "0.68954104", "0.6885155", "0.67962563", "0.67955256", "0.6774571", "0.67278033", "0.67055506", "0.6688345", "0.6665348", "0.6640679", "0.6640679", "0.6609422", "0.6604761"...
0.83772844
0
/ returns time as string > m/d/yyyy
public String getDateString() { int year = date.get(Calendar.YEAR); int month = date.get(Calendar.MONTH); // month is stored from 0-11 so adjust +1 for final display int day_of_month = date.get(Calendar.DAY_OF_MONTH); return String.valueOf(month + 1) + '/' + String.valueOf(day_of_month) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(...
[ "0.7619771", "0.75867593", "0.75867593", "0.74526924", "0.7360908", "0.73545283", "0.7263238", "0.71943057", "0.71811795", "0.7063391", "0.7054175", "0.70434964", "0.7030587", "0.69885087", "0.6974095", "0.6940172", "0.6879997", "0.6846532", "0.6838285", "0.6838285", "0.68186...
0.6557129
62
/ returns time as string > h:mm AM/PM
public String getTimeString() { int hour = date.get(Calendar.HOUR); int minute = date.get(Calendar.MINUTE); String AM_PM = "PM"; if (date.get(Calendar.AM_PM) == Calendar.AM) AM_PM = "AM"; String hour_fixed = String.valueOf(hour); if (hour == 0) hour_fixed = "12"; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTime() {\n boolean pastNoon = hour >= 12;\n if(pastNoon && hour == 12) {\n return hour + \"pm\";\n }\n else if(pastNoon) {\n return (hour - 12) + \"pm\";\n }\n else if(hour == 0) {\n return \"12am\";\n }\n els...
[ "0.8043321", "0.7949251", "0.78242105", "0.7722443", "0.7717895", "0.7710452", "0.7529038", "0.75114787", "0.7490902", "0.7477396", "0.7473579", "0.7433354", "0.7423318", "0.74049205", "0.73633647", "0.7354707", "0.73363376", "0.73294455", "0.729434", "0.7292748", "0.728215",...
0.79353
2
/ returns true if given event is before this event
public Boolean before(Event event) { int result = this.compareTo(event); if (result < 0) return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasPlayedBefore ( ) {\n\t\treturn extract ( handle -> handle.hasPlayedBefore ( ) );\n\t}", "public boolean isSetBefore() {\n return this.before != null;\n }", "public Boolean after(Event event) {\n int result = this.compareTo(event);\n return result > 0;\n }", "public ...
[ "0.69310045", "0.6829495", "0.67855406", "0.66013294", "0.64792156", "0.6446922", "0.63571596", "0.6341764", "0.6198244", "0.61819893", "0.6174917", "0.61356527", "0.610951", "0.60474855", "0.60258555", "0.59890616", "0.59023166", "0.58961165", "0.5856654", "0.58360034", "0.5...
0.8579671
0
/ returns true if given event is after this event
public Boolean after(Event event) { int result = this.compareTo(event); return result > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Boolean before(Event event) {\n int result = this.compareTo(event);\n if (result < 0) return true;\n return false;\n }", "public boolean isSetAfter() {\n return this.after != null;\n }", "@Override\n public boolean isAfterLast() {\n boolean result = true;\n ...
[ "0.6365171", "0.62515247", "0.6226535", "0.61835295", "0.6140682", "0.6107336", "0.60582143", "0.598686", "0.59650207", "0.59072", "0.59060645", "0.58538145", "0.5763308", "0.57312405", "0.5703181", "0.56517994", "0.5650676", "0.56300676", "0.5622933", "0.56210685", "0.561777...
0.85238916
0
/ returns true if given is on the same day as this event
public Boolean sameDay(Event event) { int year_given = event.getDate().get(Calendar.YEAR); int month_given = event.getDate().get(Calendar.MONTH); int day_given = event.getDate().get(Calendar.DATE); int year = this.getDate().get(Calendar.YEAR); int month = this.getDate().get(Cale...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasToDay();", "boolean hasFromDay();", "boolean hasDay();", "boolean hasDay();", "boolean hasContinuousDay();", "public boolean occursOn(int year, int month, int day){\n if (day == mDay){\n return true;\n }\n else {\n return false;\n }\n }", "public boolean...
[ "0.74001944", "0.72203207", "0.7021614", "0.7021614", "0.6785171", "0.65652484", "0.6552367", "0.6534843", "0.6532344", "0.65032494", "0.6464899", "0.63876444", "0.63688076", "0.634883", "0.6324419", "0.6306291", "0.6264309", "0.62399095", "0.62379783", "0.6232404", "0.622851...
0.8112335
0
/ returns time difference between this event and another event in milliseconds
public long getTimeDifference(Event event) { return this.getDate().getTimeInMillis() - event.getDate().getTimeInMillis(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private long getTimeDifference(Time timeValue1, Time timeValue2){\n return (timeValue2.getTime()-timeValue1.getTime())/1000;\n }", "protected double difftime(double t2, double t1) {\n\t\treturn t2 - t1;\n\t}", "public long getEventTime();", "public long getElapsedTime(){\n long timePasse...
[ "0.6734482", "0.6586785", "0.6281938", "0.62009436", "0.609947", "0.6090342", "0.6071892", "0.6070723", "0.6027795", "0.6007805", "0.5991828", "0.5963168", "0.58987886", "0.5875428", "0.58630174", "0.58575416", "0.58520144", "0.58496666", "0.58207405", "0.5817793", "0.5806055...
0.6705224
1
Function to set value of field.
public void setSpecialization(final String specialization) { this.specialization = specialization.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setField(String value) {\n JsoHelper.setAttribute(jsObj, \"field\", value);\n }", "public void setValue(Object val);", "public void setValue(Object value);", "public void setValue(Object value) { this.value = value; }", "@CheckReturnValue\n T setField(String field, @Nullable Object...
[ "0.75242764", "0.7406097", "0.7370838", "0.7359126", "0.7221497", "0.7156935", "0.71487206", "0.71487206", "0.71487206", "0.71487206", "0.71480525", "0.71228945", "0.7114565", "0.71074474", "0.70958424", "0.70928484", "0.70729786", "0.7060842", "0.70562", "0.704448", "0.70284...
0.0
-1
Function to set value of field. increases the number of prescriptions written by 1.
public void addFormulas() { countFormulas++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValue(int value);", "void setValue(int value);", "public void setDmaValue(int value);", "public void setValue(int n) {\n\t\t\tthis.value = n;\n\t}", "public void setValue(int value) {\r\n this.value = value;\r\n }", "public void setValue(int new_value){\n t...
[ "0.6574399", "0.6480327", "0.63862014", "0.63301", "0.62867296", "0.62576514", "0.6189976", "0.6163574", "0.61586976", "0.6124076", "0.61215615", "0.61039996", "0.60986626", "0.60819805", "0.60819805", "0.60790247", "0.60790247", "0.60790247", "0.6059419", "0.6059419", "0.605...
0.0
-1
Creates a new empty account storage
public AccountStorage() { accounts = new ConcurrentHashMap<>(); minerMap = new ConcurrentHashMap<>(); blockMap = new ConcurrentHashMap<>(); initAccounts(); logger.info("AccountStorage: New AccountStorage created."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @POST\n @Path(\"/storages\")\n public Response createStorage() throws Exception {\n URI resourceUri = new URI(\"/1\");\n return Response.created(resourceUri).build();\n }", "Account create();", "@Override\n public void createDirectory(File storageName) throws IOExceptio...
[ "0.61896574", "0.6074514", "0.60308725", "0.60121447", "0.584099", "0.57221305", "0.5673384", "0.55663043", "0.5558084", "0.551353", "0.5499", "0.5489575", "0.54832804", "0.54764265", "0.54432017", "0.5440419", "0.5438835", "0.5426008", "0.5423047", "0.5411219", "0.54018843",...
0.65295106
0
Initializes the accounts from the genesis block of the blockchain and all the blocks already created
private void initAccounts() { ((GenesisBlock) DependencyManager.getBlockchain().getGenesisBlock()).getAccountBalances().forEach((key, value) -> { Account account = getAccount(key); account.addBalance(value); }); DependencyManager.getBlockchain().getChain().getChain().forE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initAccount() {\n initAccount(Huobi.PLATFORM_NAME, Gateio.PLATFORM_NAME, \"EOS_USDT\", 14.5632);\n\n\n initAccount(Huobi.PLATFORM_NAME, Fcoin.PLATFORM_NAME, \"LTCUSDT\", 112.610000000);\n initAccount(Huobi.PLATFORM_NAME, Fcoin.PLATFORM_NAME, \"BCHUSDT\", 1032.690000000);\n i...
[ "0.6603556", "0.59975773", "0.5862145", "0.57608104", "0.5736122", "0.5730488", "0.57234246", "0.5639268", "0.5624792", "0.55915123", "0.5589558", "0.55454546", "0.5544683", "0.5492148", "0.5484297", "0.5461032", "0.54448986", "0.5415064", "0.54021645", "0.5393345", "0.539083...
0.8276235
0
Parses a block of the blockchain to get the accounts of it and add the accounts and block and releases the balance of the blocks
public void parseBlock(Block block) { Account account = getAccount(block.getCoinbase()); account.addMinedBlock(block); minerMap.put(block.getBlockNumber(), account); blockMap.put(block.getBlockNumber(), block); releaseBlockedBalances(block.getBlockNumber()); parseTransact...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void parseBlock()\n\t{\n\t\tDBSet databaseSet = DBSet.createEmptyDatabaseSet();\n\t\t\t\t\t\t\t\t\n\t\t//PROCESS GENESISBLOCK\n\t\tGenesisBlock genesisBlock = new GenesisBlock();\n\t\tgenesisBlock.process(databaseSet);\n\t\t\t\t\t\t\t\t\n\t\t//CREATE KNOWN ACCOUNT\n\t\tbyte[] seed = Crypto.getInsta...
[ "0.6573192", "0.6565449", "0.6516452", "0.642484", "0.60029656", "0.57973444", "0.5731119", "0.5584274", "0.5581651", "0.5477554", "0.54739374", "0.5460253", "0.54506975", "0.54463893", "0.54370856", "0.539848", "0.5370954", "0.53387946", "0.53112847", "0.5288664", "0.5274696...
0.70706505
0
Releases the locked balance of a block if its enough times checked
private void releaseBlockedBalances(int blockNumber) { int key = blockNumber - Blockchain.REQUIRED_BLOCK_CONFIRMATIONS; Account account = minerMap.get(key); if (account != null) { double sumToUnlock = Blockchain.BLOCK_REWARD; Block block = blockMap.get(blockNumber); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void basicReleaseLock() {\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[DLockToken.basicReleaseLock] releasing ownership: {}\",\n this);\n }\n\n leaseId = -1;\n lesseeThread = null;\n leaseExpireTime = -1;\n thread = null;\n ...
[ "0.6685806", "0.6554283", "0.6433289", "0.62516975", "0.62004083", "0.61872566", "0.61750823", "0.61383224", "0.61292005", "0.6119835", "0.608526", "0.60597414", "0.60200924", "0.6005759", "0.5995232", "0.59630096", "0.59308386", "0.59071803", "0.5893761", "0.58909625", "0.58...
0.63929987
3
Parses the given transactions and adds the receiver and sender from the accounts
private void parseTransactions(List<Transaction> transactions) { transactions.forEach(transaction -> { Account senderAccount = getAccount(transaction.getSender()); Account receiverAccount = getAccount(transaction.getReceiver()); senderAccount.addOutgoingTransaction(transactio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void executeTransaction(List<ClientTransaction> transactions) throws ServiceException {\t\n\t\tConnection conn = connectDB();\n\t\ttry {\n\t\t\tfor (ClientTransaction transaction : transactions) {\n\t\t\t\tif (transaction.getStatus() == TransactionStatus.APPROVED) {\n\t\t\t\t\tPreparedStatement ps = prepare...
[ "0.6385395", "0.61593", "0.6060375", "0.59397787", "0.58578837", "0.56426275", "0.5625661", "0.55404824", "0.55022967", "0.54756516", "0.53942305", "0.5330794", "0.53219646", "0.532193", "0.5279304", "0.52383834", "0.523467", "0.522239", "0.52145076", "0.52127707", "0.5204209...
0.8120108
0
Returns an account depending on the address
public Account getAccount(String address) { Account account = accounts.get(address); if (account == null) { account = createAccount(SHA3Util.hexToDigest(address)); accounts.put(address, account); } return account; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AccountInterface getAccount(String _address) {\n\t\tfor (AccountInterface account: accounts) {\n\t\t\tif (account.getAddress().equals(_address))\n\t\t\t\treturn account;\n\t\t}\n\t\treturn null;\t\t\n\t}", "AccountDetail getAccount(String number) throws Exception;", "public Account getAccount(byte[] add...
[ "0.7655736", "0.70808685", "0.6997892", "0.68408346", "0.6775621", "0.67185694", "0.66620266", "0.65859616", "0.6572309", "0.657066", "0.65411526", "0.65205634", "0.6302669", "0.6298596", "0.62687755", "0.6251726", "0.6239711", "0.62358415", "0.62160176", "0.6215224", "0.6176...
0.73661184
1
Returns an account depending on the address
public Account getAccount(byte[] address) { String addressAsHex = SHA3Util.digestToHex(address); Account account = accounts.get(addressAsHex); if (account == null) { account = createAccount(address); accounts.put(addressAsHex, account); } return account; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AccountInterface getAccount(String _address) {\n\t\tfor (AccountInterface account: accounts) {\n\t\t\tif (account.getAddress().equals(_address))\n\t\t\t\treturn account;\n\t\t}\n\t\treturn null;\t\t\n\t}", "public Account getAccount(String address) {\n Account account = accounts.get(address);\n ...
[ "0.765735", "0.73675513", "0.70830977", "0.6843662", "0.67778784", "0.67197627", "0.66624206", "0.6587281", "0.6573827", "0.6571377", "0.65424454", "0.65194935", "0.6302788", "0.629904", "0.62674195", "0.6254284", "0.6241283", "0.62360895", "0.6217586", "0.6213923", "0.617679...
0.69996774
3
Creates a new account with a given address
private Account createAccount(byte[] address) { return new Account(address); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "AionAddress createAccount(String password);", "public Address createAddress(String address);", "Account create();", "public void createUserAccount(UserAccount account);", "public Account createAccount(String login, String name, String surname, String city, String street, int number) throws Exception {\r\n\...
[ "0.78974134", "0.73751354", "0.7371898", "0.71816313", "0.7081386", "0.7010762", "0.69127434", "0.6862811", "0.6835322", "0.6807134", "0.6745996", "0.6663216", "0.6660596", "0.6655196", "0.66416746", "0.6634303", "0.6544995", "0.6543129", "0.6510869", "0.64883673", "0.6479983...
0.74276936
1
new EazyCoopUtility().generateLoanScheduleFlat("1", "1", 1000.0, 0.1, 4, null, 1, new java.util.Date());
public static void main_(String args[]) { System.out.println(""); System.out.println(""); //new EazyCoopUtility().generateLoanScheduleReducing("1", "1", 1000.0, 0.1, 4, null, 1, new java.util.Date()); System.out.println(""); System.out.println(""); //new EazyCoopUt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateSchedule(){\n\t\t\n\t}", "public boolean generateSchedule(){\r\n return true;\r\n }", "@Override\n\tpublic List<LoanRepaymentSchedule> generateRepaymentScheduleByMultipleDisbursement(LoanLineOfCredit loanLoc, Money sanctionAmount, List<LoanRepaymentSchedule> myltipleRepaymentScheduleLis...
[ "0.7396723", "0.64071214", "0.6215945", "0.61795986", "0.5893254", "0.58477527", "0.5815326", "0.5812862", "0.57614917", "0.574428", "0.56554496", "0.5596532", "0.5562036", "0.55514026", "0.5505254", "0.54858595", "0.54722834", "0.5458162", "0.54384077", "0.5401259", "0.54010...
0.65303355
1
SimpleDateFormat formatter = new SimpleDateFormat("ddMMyyyy");
public static void main(String args[]) { System.out.println(new EazyCoopUtility().deriveBranchCode("3")); DateFormat formatter = new SimpleDateFormat("dd/MM/yyyy"); try { System.out.println(formatter.parse("01/09/2015")); } catch (ParseException e) { // T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getYYYYMMDD()\r\n/* 65: */ {\r\n/* 66: 81 */ String nowTime = \"\";\r\n/* 67: 82 */ Date now = new Date();\r\n/* 68: 83 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 69: 84 */ nowTime = formatter.format(now);\r\n/* 70: 85 */ return now...
[ "0.6722434", "0.64601475", "0.64306706", "0.641206", "0.6339544", "0.63288254", "0.6311233", "0.62635005", "0.62243795", "0.6212011", "0.6205631", "0.6150507", "0.61330664", "0.61139756", "0.6109415", "0.6104228", "0.6085866", "0.60699266", "0.60629755", "0.6044968", "0.60231...
0.0
-1
Transaction Entry Object with headers & content
public String createProductAccount(Accnowbs obj) { String str = null; try { BASE_URI = getURI(); com.sun.jersey.api.client.config.ClientConfig config = new com.sun.jersey.api.client.config.DefaultClientConfig(); client = Client.create(config); getRo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TarEntry CreateEntry(byte[] headerBuffer);", "public HTTPResponse( Transaction t, Content ct, Headers hd ){\n super();\n\n Pia.debug(this, \"Constructor-- [ transaction t, content ct, headers hd ] on duty...\");\n\n contentObj = ct;\n headersObj = hd; // maybe generate?\n\n if( contentObj != nul...
[ "0.61393243", "0.59706783", "0.5804271", "0.574851", "0.5585244", "0.5507963", "0.5492807", "0.54041886", "0.5375431", "0.5300658", "0.52889746", "0.52506757", "0.5206115", "0.51721686", "0.5164416", "0.5154728", "0.51483315", "0.5131417", "0.5125987", "0.51158303", "0.507899...
0.0
-1
new addition for loan interest accrued
public double getLoanAccruedInterest(String loanacctno, java.util.Date loancommencementdate, String branchId, String coyId, String intaccruedacct) { double accrint = 0.0; SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); String tempDate = formatter.format(loancommencementdate);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add_interest ()\r\n {\r\n\r\n balance += balance * (rate + BONUS_RATE);\r\n System.out.println (\"Interest added to account: \" + account);\r\n System.out.println (\"Current Balance: \" + balance);\r\n System.out.println();\r\n\r\n }", "public void addInterest() {\n\t\tdouble ...
[ "0.7636959", "0.7544266", "0.73536646", "0.7150546", "0.7150244", "0.7110045", "0.70644176", "0.6937276", "0.6781227", "0.67260146", "0.6650659", "0.65744287", "0.6571651", "0.64841294", "0.6420812", "0.6419105", "0.63457936", "0.63442713", "0.6338247", "0.63211966", "0.62875...
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { if (jcb.isSelected()) { selectList.add(new Integer(site)); //System.out.println(selectList); } else { selectList.remove(new Integer(site)); //System.out.println(selectList); } }
{ "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 actionPerformed(ActionEvent e) { if (e.getSource() == cancelBtn) { // AddBillView.this.dispose(); this.dispose(); } else if (e.getSource() == syncBtn) { if (!selectList.isEmpty()) { handleBill.syncBillToSelectFile(selectList, index); } this.dispose(); } }
{ "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
Add Service from class path. Default is classpath:services.xml.
private Document getDocumentInClassPath()throws Exception{ DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = builderFactory.newDocumentBuilder(); Document doc = builder.parse(ServiceLoader.class.getResourceAsStream("/"+FILE_NAME)); return do...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addServiceImpl(String serviceName, FileObject configFile, boolean fromWSDL);", "public void addServiceImpl(String serviceName, FileObject configFile, boolean fromWSDL, String[] wscompileFeatures);", "public void addService() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"...
[ "0.67977256", "0.62748384", "0.62739414", "0.62739414", "0.6147966", "0.6017845", "0.5937546", "0.59255475", "0.5857263", "0.5833075", "0.5678739", "0.5678171", "0.5662435", "0.5616029", "0.56134063", "0.5574865", "0.5506111", "0.5422962", "0.54213864", "0.53930783", "0.53720...
0.4917428
66
Add Service from external configuration. Default is conf/services.xml.
private Document getDocumentInFileSys()throws Exception{ DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = builderFactory.newDocumentBuilder(); File file = new File(DIR,FILE_NAME); if(!file.exists()) return null; FileInputStream inStream ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addServiceImpl(String serviceName, FileObject configFile, boolean fromWSDL);", "public void addServiceImpl(String serviceName, FileObject configFile, boolean fromWSDL, String[] wscompileFeatures);", "void addService(ServiceInfo serviceInfo);", "public abstract T addService(ServerServiceDefinition...
[ "0.74331206", "0.6653691", "0.6540115", "0.6383961", "0.6354347", "0.6045102", "0.6028833", "0.60274017", "0.60274017", "0.6019688", "0.6019688", "0.59349567", "0.59056467", "0.58818686", "0.5866148", "0.57989377", "0.5742364", "0.57253253", "0.56853276", "0.5627213", "0.5585...
0.0
-1
TIME COMPLEXITY FOR LINEAR SEARCH IS O(n)
public int linearSearch(int[] array,int target) { for (var index = 0; index < array.length; index++) { if (array[index] == target) return index; } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double linSearchT(int s, Integer[] a){\n Random rand = new Random();\n int searchVar;\n Stopwatch timer = new Stopwatch();\n for (int i = 0; i < s; i++){\n searchVar = (int)(rand.nextDouble()*a.length);\n for (int j = 0; j < a.length; j++){\n ...
[ "0.64294875", "0.6318114", "0.6120365", "0.6074353", "0.5905316", "0.5817478", "0.57524043", "0.56938833", "0.5627163", "0.5581339", "0.5532198", "0.5520221", "0.55090374", "0.5478759", "0.54302645", "0.5387349", "0.5315397", "0.53116673", "0.52926505", "0.52914244", "0.52796...
0.0
-1
TIME COMPLEXITY FOR BINARY SEARCH IS O(log2n)
public int binarySearchRecursive(int[] array,int target) { return binarySearchRecursive(array,target,0,array.length); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double binSearchT(int s, Integer[] a){\n Random rand = new Random();\n int searchVar;\n Stopwatch timer = new Stopwatch();\n Arrays.sort(a);\n for (int i = 0; i < s; i++){\n searchVar = (int)(rand.nextDouble()*a.length);\n Arrays.binarySearch(a...
[ "0.7002095", "0.6823389", "0.6705069", "0.6633111", "0.6425044", "0.63302964", "0.63262224", "0.61992353", "0.61926943", "0.61789715", "0.61580247", "0.60528994", "0.6036464", "0.6018803", "0.6005085", "0.5978313", "0.5964652", "0.59593827", "0.59370273", "0.58929515", "0.587...
0.0
-1
Recursive Implementation of Binary Search
private int binarySearchRecursive(int[] array,int target,int left,int right) { if (left > right) return -1; int middle = (left + right) / 2; if (array[middle] == target) return middle; if (array[middle] < target) return binarySearchRecursive(array,t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int binarySearchWithRecursion(int[] arr, int low, int high, int key){\n if (high < low)\n return -1;\n int mid = (low + high) / 2;\n if (key == arr[mid])\n return mid;\n if (key > arr[mid])\n return binarySearchWithRecursion(arr,(mid + 1), high, key);\n ...
[ "0.7724535", "0.7542866", "0.74627036", "0.74122864", "0.73986125", "0.73676574", "0.73439604", "0.7335401", "0.7327369", "0.7325441", "0.7230596", "0.72305906", "0.7208757", "0.72049034", "0.71993744", "0.7194672", "0.71942604", "0.71796834", "0.7146596", "0.7141306", "0.713...
0.7729542
0
Iterative Implementation of Binary Search
public int binarySearchIterative(int[] array,int target) { var left = 0; var right = array.length -1; while (left <= right) { int middle = (left + right) / 2; if (array[middle] == target) return middle; if (array[middle] < target) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract int binSearch(int[] array, int num, int left, int right);", "@Test\n\tpublic void testBinarySearch() {\n\t\tint[] arr0 = {0, 1, 2, 3, 4, 5};\n\t\tassertEquals(0, _01_BinarySearch.binarySearch(arr0, 0, arr0.length - 1, 0));\n\t\tassertEquals(1, _01_BinarySearch.binarySearch(arr0, 0, arr0.length - 1, 1));...
[ "0.7350325", "0.72134", "0.7085227", "0.7058102", "0.7029579", "0.70146394", "0.7008919", "0.70034033", "0.6980041", "0.697629", "0.69752634", "0.6962465", "0.6934485", "0.6926648", "0.69064194", "0.68980336", "0.6892363", "0.6869719", "0.6860575", "0.68521893", "0.6849912", ...
0.7487786
0
TIME COMPLEXITY FOR BINARY SEARCH IS O(log3n)
public int ternarySearch(int[] array,int target) { return 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double binSearchT(int s, Integer[] a){\n Random rand = new Random();\n int searchVar;\n Stopwatch timer = new Stopwatch();\n Arrays.sort(a);\n for (int i = 0; i < s; i++){\n searchVar = (int)(rand.nextDouble()*a.length);\n Arrays.binarySearch(a...
[ "0.68956864", "0.6768776", "0.66550064", "0.6539936", "0.63978857", "0.6319619", "0.6239706", "0.62136614", "0.61409456", "0.60687524", "0.6054223", "0.60495853", "0.60243887", "0.600157", "0.59788626", "0.5965885", "0.5964883", "0.5958752", "0.5897584", "0.5889406", "0.58804...
0.0
-1
Manipulates the map once available. This callback is triggered when the map is ready to be used. This is where we can add markers or lines, add listeners or move the camera. In this case, we just add a marker near Sydney, Australia. If Google Play services is not installed on the device, the user will be prompted to in...
@Override public void onMapReady(GoogleMap googleMap) { mMap = googleMap; // Add a marker in Sydney and move the camera LatLng place = new LatLng(Double.parseDouble(lat),Double.parseDouble(longitude)); mMap.addMarker(new MarkerOptions().position(place)); moveToCurrentLocati...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onMapReady(GoogleMap googleMap) {\n Geocoder geoCoder = new Geocoder(getActivity(), Locale.getDefault());\n double lat, lng;\n try {\n List<Address> addresses = geoCoder.getFromLocationName(\"Western Sydney Paramatta, NSW\", 5);\n ...
[ "0.81884885", "0.8042996", "0.80369604", "0.8033771", "0.7998488", "0.79770344", "0.7957945", "0.7957621", "0.7954723", "0.79429656", "0.7936834", "0.79301476", "0.7915297", "0.79048723", "0.7888234", "0.7885085", "0.7885085", "0.7885085", "0.7885085", "0.7878164", "0.7844682...
0.7827953
21
/ renamed from: a
public static <T> T m23767a(T t) { if (t != null) { return t; } throw new NullPointerException("null reference"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public static <T> T m23768a(T t, Object obj) { if (t != null) { return t; } throw new NullPointerException(String.valueOf(obj)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public static void m23770a(boolean z) { if (!z) { throw new IllegalStateException(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public static void m23771a(boolean z, Object obj) { if (!z) { throw new IllegalStateException(String.valueOf(obj)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
public static void m23773b(boolean z, Object obj) { if (!z) { throw new IllegalArgumentException(String.valueOf(obj)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: a
public static void m23772a(boolean z, String str, Object... objArr) { if (!z) { throw new IllegalArgumentException(String.format(str, objArr)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public static void m23769a(String str) { if (Looper.myLooper() != Looper.getMainLooper()) { throw new IllegalStateException(str); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.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
/ It provides list of employees in model object
@RequestMapping("/viewRoute") public String viewShip(Model m){ List<Route> list=dao.getRoute(); m.addAttribute("list",list); return "viewRoute"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Employees> getEmployeesList()\n {\n return employeesRepo.findAll();\n }", "public List<Employee> getEmployees();", "@RequestMapping(value = \"/listEmployees\", method = RequestMethod.GET)\r\n\tpublic Employee employees() {\r\n System.out.println(\"---BEGIN\");\r\n List<Em...
[ "0.831933", "0.8216493", "0.7949293", "0.79490376", "0.79466176", "0.7894043", "0.7852578", "0.78388333", "0.78355175", "0.78196836", "0.7807921", "0.7797291", "0.779688", "0.77910143", "0.77869165", "0.7781991", "0.77559423", "0.77515364", "0.7730138", "0.77196926", "0.77181...
0.0
-1
=========================================================================================================================== This test case will validate if clicking on School Computed Values link, user navigates to Computed Values Page. Step1 : Click on School Computed Values link visible under the Net Price Tab in hom...
@Test(priority = 5) public void TC_05_Validate_SchoolComputedValues_Link_Navigation() { String ScreenshotName = new Object(){}.getClass().getEnclosingMethod().getName(); Reporter.log(cm.ReporterText("TestCase : " + ScreenshotName)); co.click(homePage.schoolComputedValuesLink, "Clicking on School Computed Value...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(priority = 99)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"SCHOOL FEES PAYMENTS\") })\r\n@Step (\"Verify that system is able to search and display correct school Name school code and Bank branch when user click on search for school functionality\")\r\npublic void Verify_that_system_...
[ "0.6947687", "0.68058217", "0.6648371", "0.6617749", "0.6582747", "0.65717983", "0.6565173", "0.65498394", "0.64982384", "0.6494499", "0.64704716", "0.6457013", "0.6446115", "0.6437776", "0.64222306", "0.64102113", "0.6391493", "0.6382741", "0.6381185", "0.638077", "0.6344017...
0.76469326
0
TODO Autogenerated method stub /BinTree leftTree2=new BinTree(); BinTree leftTree=new BinTree(leftTree2,null); BinTree t=new BinTree(null,leftTree); System.out.println(leftTree2.height());
public static void main(String[] args) { String[] a={"111","1101","1100","0","10"}; BinTree t; try{ t=new BinTree(a); System.out.println("Print tree:"); t.printTree(); System.out.println("\n***************"); System.out.println("Print tree in level order:"); t.printLevelOrder(); System...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int treeHeight() {\n return height(root);\n }", "@Test\n public void getHeight() {\n Node node = new Node(150);\n node.setLeft(new Node(120));\n node.setRight(new Node(40));\n Node root = new Node(110);\n root.setLeft(new Node(80));\n root.setRight(no...
[ "0.7389926", "0.7339731", "0.7337957", "0.7303968", "0.726681", "0.7219369", "0.7184787", "0.7164541", "0.7074356", "0.70697296", "0.7058506", "0.70278454", "0.70277894", "0.7002692", "0.6992184", "0.69815755", "0.69812304", "0.69770706", "0.6974186", "0.6972647", "0.692508",...
0.0
-1
ESTO ES PARA DEVOLVERSE
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { // TODO Auto-generated method stub if (keyCode == event.KEYCODE_BACK) { Intent i = new Intent(Detalles_pedido.this, Pedido.class); i.putExtra("tecnico",tecnico.toString()); i.putExtra("nomtecnico",n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void devolver() {\r\n \t\r\n \tif (raiz == null)\r\n \t\tSystem.out.println(\"No hay datos en la pila\");\r\n else\r\n \t System.out.println(\"Devolvemos el dato de la cima: \"+raiz.dato);\r\n }", "public void leerPlanesDietas();", "public static void dodavanjePutnickogVozil...
[ "0.64029145", "0.6114054", "0.6091824", "0.6074686", "0.6058876", "0.6042365", "0.58607626", "0.58301646", "0.5756731", "0.5753298", "0.56621623", "0.5606556", "0.55664724", "0.5561201", "0.5548368", "0.5535463", "0.5522724", "0.5493097", "0.5485876", "0.546465", "0.5449584",...
0.0
-1
After completing background task Dismiss the progress dialog
protected void onPostExecute(String file_url) { // dismiss the dialog after getting all products pDialog.dismiss(); // updating UI from Background Thread Emp = (TextView) findViewById(R.id.empresa); cal = (TextView) findViewById(R.id.calle); num =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t protected void onPostExecute(Void result)\n\t\t\t\t {\n\t\t\t\t\t\t\t\t\t\tif (progressDialog != null)\n\t\t\t\t\t\t\t\t\t\t\tprogressDialog.dismiss();\n\t\t\t\t }", "@Override\n\t\t\t protected void onPostExecute(Voi...
[ "0.7633279", "0.7601489", "0.7586698", "0.754777", "0.7509033", "0.7509033", "0.7443056", "0.7425983", "0.73980045", "0.73965484", "0.7380501", "0.7345959", "0.7341082", "0.7321036", "0.7312464", "0.73121625", "0.73121625", "0.73121625", "0.72893476", "0.7242116", "0.7210768"...
0.0
-1
We won't be able to run more then a single test in the same JVM instance unless we do some tidying and unregister a logging mbean added by Dropwizard.
private void unRegisterLoggingMBean() throws Exception { MBeanServer server = ManagementFactory.getPlatformMBeanServer(); ObjectName loggerObjectName = new ObjectName("com.yammer:type=Logging"); if (server.isRegistered(loggerObjectName)) { server.unregisterMBean(loggerObjectName); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void tearDown() {\n getLocalLogService().clear(); \n }", "@AfterClass\n public static void stop() {\n }", "@BeforeClass\n\tpublic static void setup() {\n\t\tgetLogManager().init();\n\t}", "protected void runAfterTest() {}", "@Override\n protected void runTest() throws Thro...
[ "0.64213866", "0.616278", "0.5937899", "0.5936695", "0.5916012", "0.5898709", "0.58901626", "0.58670855", "0.58637327", "0.58565104", "0.58565104", "0.5785071", "0.57608", "0.57216245", "0.57126486", "0.56874317", "0.56836784", "0.56711525", "0.5668021", "0.5663358", "0.56591...
0.62056375
1
Segment an image based on color ranges.
private void rgbThreshold(Mat input, double[] red, double[] green, double[] blue, Mat out) { Imgproc.cvtColor(input, out, Imgproc.COLOR_BGR2RGB); Core.inRange(out, new Scalar(red[0], green[0], blue[0]), new Scalar(red[1], green[1], blue[1]), out); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Mat segmentRedColor(Mat bgr) {\n Mat mask1 = new Mat();\n Mat mask2 = new Mat();\n Mat normal = new Mat();\n Mat hsv = new Mat();\n Imgproc.cvtColor(bgr, hsv, Imgproc.COLOR_BGR2HSV, 3);\n inRange(hsv, new Scalar(0, 120, 50), new Scalar(MAX_COLOR_CHANNEL_OFFSET, 255...
[ "0.6248604", "0.5919599", "0.58582926", "0.58539194", "0.57738984", "0.5635956", "0.5590761", "0.5538546", "0.5532095", "0.54535204", "0.54134977", "0.5401622", "0.53968495", "0.5383105", "0.53502536", "0.53046715", "0.5277062", "0.52641124", "0.52534854", "0.5242781", "0.522...
0.48365366
50
Sets the values of pixels in a binary image to their distance to the nearest black pixel.
private void findContours(Mat input, boolean externalOnly, List<MatOfPoint> contours) { Mat hierarchy = new Mat(); contours.clear(); int mode; if (externalOnly) { mode = Imgproc.RETR_EXTERNAL; } else { mode = Imgproc.RETR_LIST; } int method...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private float distancePixels(int nX1, int nY1, int nX2, int nY2)\n {\n\t return FloatMath.sqrt((nX2-nX1)^2 + (nY2-nY1)^2);\n }", "public ShortProcessor distanceMap(ImageProcessor mask) {\n\n\t\t// size of image\n\t\twidth = mask.getWidth();\n\t\theight = mask.getHeight();\n\t\t\n\t\t// update mask\n\t\tthi...
[ "0.5401955", "0.53385097", "0.51504326", "0.50754803", "0.5033792", "0.49677452", "0.4951203", "0.49241227", "0.48888242", "0.4863637", "0.48548365", "0.48318073", "0.48223454", "0.48162428", "0.4805616", "0.48000756", "0.47665265", "0.47576776", "0.47343537", "0.47158766", "...
0.0
-1
Creates the default factory implementation.
public static ControlFactory init() { try { ControlFactory theControlFactory = (ControlFactory)EPackage.Registry.INSTANCE.getEFactory("http://opaeum.org/uimetamodel/control/1.0"); if (theControlFactory != null) { return theControlFactory; } } catch (Exception exception) { EcorePlugin.INSTANCE.log...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Factory() {\n\t\tsuper();\n\t}", "public BuiltinFactoryImpl() {\n\t\tsuper();\n\t}", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "private ConcreteFactory() {}", "public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstruc...
[ "0.77731436", "0.76486766", "0.74667984", "0.7430188", "0.7425205", "0.7364157", "0.72402287", "0.7239365", "0.71722776", "0.7160405", "0.71596897", "0.7150511", "0.71012115", "0.7100998", "0.7089295", "0.70861953", "0.7084425", "0.7056558", "0.70475817", "0.70462054", "0.703...
0.0
-1
Creates an instance of the factory.
public ControlFactoryImpl() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Factory() {\n\t\tsuper();\n\t}", "public Factory() {\n this(getInternalClient());\n }", "public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }", "public ObjectifyFactory factory() {\n return ofy().factory();\n ...
[ "0.73933536", "0.7212417", "0.72005916", "0.6975247", "0.6974846", "0.68345267", "0.67098427", "0.66718435", "0.66718435", "0.66718435", "0.66642797", "0.6616401", "0.6614854", "0.66146886", "0.6589288", "0.6569264", "0.6534342", "0.65325534", "0.6525314", "0.6516507", "0.647...
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
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.search, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.72473437", "0.7202402", "0.71960324", "0.7177793", "0.7108265", "0.7040525", "0.70388484", "0.70126176", "0.70101976", "0.6981143", "0.69461405", "0.694", "0.69346833", "0.69183874", "0.69183874", "0.6891571", "0.6884306", "0.68758994", "0.687534", "0.68627334", "0.6862733...
0.0
-1
Push element x to the back of queue.
public void push(int x) { this.stack1.add(x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void push(int x) {\n queue.addLast(x);\n }", "public void push(int x) {\n queue.addLast(x);\n }", "public void push(int x) {\n if (!reverseQueue.isEmpty()) {\n normalQueue.offer(reverseQueue.poll());\n }\n normalQueue.offer(x);\n }", "publ...
[ "0.82624036", "0.8259673", "0.81935894", "0.81571823", "0.80487853", "0.8009802", "0.7990561", "0.79842633", "0.79804295", "0.7975267", "0.7919498", "0.78962463", "0.7856843", "0.78444326", "0.7841012", "0.77275115", "0.7722426", "0.7722426", "0.76359296", "0.76308316", "0.76...
0.6579515
74