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
$ANTLR end "outputs" $ANTLR start "output" src\\calculator.g:319:1: output[int tab] returns [String value] : ( ID | 'endl' );
public final String output(int tab) throws RecognitionException { String value = null; Token ID68=null; value = null; try { // src\\calculator.g:323:2: ( ID | 'endl' ) int alt18=2; int LA18_0 = input.LA(1); if ( (LA18_0==ID) ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String outputs(int tab) throws RecognitionException {\n String value = null;\n\n\n String a =null;\n\n String output67 =null;\n\n\n\n \tvalue = null;\n\n try {\n // src\\\\calculator.g:314:2: ( '<<' output[$tab] a= outputs[$tab] |)\n int alt17=2...
[ "0.71776074", "0.64406806", "0.62118965", "0.5791241", "0.5651883", "0.5643466", "0.56386954", "0.56382555", "0.562986", "0.5609249", "0.5513235", "0.5445264", "0.53903747", "0.5364471", "0.5337836", "0.53363067", "0.53358334", "0.53312415", "0.53279346", "0.5326048", "0.5282...
0.71151584
1
$ANTLR end "output" $ANTLR start "call_function" src\\calculator.g:331:1: call_function[int tab] returns [String value] : ID '(' call_parameter[$tab] ')' ;
public final String call_function(int tab) throws RecognitionException { String value = null; Token ID69=null; String call_parameter70 =null; value = null; try { // src\\calculator.g:335:2: ( ID '(' call_parameter[$tab] ')' ) // src\\calculator.g:33...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String call_parameter(int tab) throws RecognitionException {\n String value = null;\n\n\n String expr_value71 =null;\n\n String call_parameter_72 =null;\n\n\n\n \tvalue = null;\n\n try {\n // src\\\\calculator.g:343:2: ( expr_value[$tab] call_parameter_[$t...
[ "0.6376395", "0.63396543", "0.613433", "0.58263266", "0.5823414", "0.5796372", "0.5615248", "0.55756664", "0.54271686", "0.54169774", "0.5385565", "0.53573895", "0.53348994", "0.5330838", "0.53206855", "0.52863014", "0.52689135", "0.5238613", "0.52117693", "0.5188182", "0.511...
0.7185471
0
$ANTLR end "call_function" $ANTLR start "call_parameter" src\\calculator.g:339:1: call_parameter[int tab] returns [String value] : ( expr_value[$tab] call_parameter_[$tab] |);
public final String call_parameter(int tab) throws RecognitionException { String value = null; String expr_value71 =null; String call_parameter_72 =null; value = null; try { // src\\calculator.g:343:2: ( expr_value[$tab] call_parameter_[$tab] |) in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String call_function(int tab) throws RecognitionException {\n String value = null;\n\n\n Token ID69=null;\n String call_parameter70 =null;\n\n\n\n \tvalue = null;\n\n try {\n // src\\\\calculator.g:335:2: ( ID '(' call_parameter[$tab] ')' )\n //...
[ "0.7227247", "0.7134086", "0.6609154", "0.6475007", "0.60783035", "0.58678204", "0.5767075", "0.5626818", "0.5625125", "0.54905576", "0.5446769", "0.54289126", "0.5421824", "0.5415556", "0.53372353", "0.5331535", "0.53289306", "0.5310772", "0.5298261", "0.5238672", "0.5168294...
0.7392205
0
$ANTLR end "call_parameter" $ANTLR start "call_parameter_" src\\calculator.g:348:1: call_parameter_[int tab] returns [String value] : ( ',' call_parameter[$tab] |);
public final String call_parameter_(int tab) throws RecognitionException { String value = null; String call_parameter73 =null; value = null; try { // src\\calculator.g:352:2: ( ',' call_parameter[$tab] |) int alt20=2; int LA20_0 = input.LA(1); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String call_parameter(int tab) throws RecognitionException {\n String value = null;\n\n\n String expr_value71 =null;\n\n String call_parameter_72 =null;\n\n\n\n \tvalue = null;\n\n try {\n // src\\\\calculator.g:343:2: ( expr_value[$tab] call_parameter_[$t...
[ "0.7259589", "0.68563753", "0.62523884", "0.57301694", "0.57090133", "0.5652807", "0.56084645", "0.55641717", "0.55235547", "0.552339", "0.5365915", "0.5319661", "0.5309157", "0.52631027", "0.52233094", "0.5169977", "0.5163453", "0.5146723", "0.51357424", "0.51212573", "0.511...
0.7628765
0
$ANTLR end "call_parameter_" $ANTLR start "array" src\\calculator.g:357:1: array[int tab] returns [String value] : ( '[' index[$tab] ']' |);
public final String array(int tab) throws RecognitionException { String value = null; String index74 =null; value = null; try { // src\\calculator.g:361:2: ( '[' index[$tab] ']' |) int alt21=2; int LA21_0 = input.LA(1); if ( (LA21_0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Snippet visit(ArrayAccess n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t String arrayName = n.identifier.accept(this, argu).returnTemp;\n\t Symbol sym = getIdentifier(arrayName, currentBlock, currentClassName);\n\t n.nodeToken.accept(this, argu);\n\t Str...
[ "0.59953374", "0.5873242", "0.5858906", "0.58565754", "0.5821468", "0.565845", "0.5652555", "0.5646114", "0.56448317", "0.56420034", "0.56032056", "0.55417234", "0.55281484", "0.5480441", "0.54742736", "0.5472086", "0.5468463", "0.543387", "0.54270333", "0.5390132", "0.531253...
0.6023263
0
$ANTLR end "array" $ANTLR start "index" src\\calculator.g:366:1: index[int tab] returns [String value] : ( expr_value[$tab] |);
public final String index(int tab) throws RecognitionException { String value = null; String expr_value75 =null; value = null; try { // src\\calculator.g:370:2: ( expr_value[$tab] |) int alt22=2; int LA22_0 = input.LA(1); if ( (LA22...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String array(int tab) throws RecognitionException {\n String value = null;\n\n\n String index74 =null;\n\n\n\n \tvalue = null;\n\n try {\n // src\\\\calculator.g:361:2: ( '[' index[$tab] ']' |)\n int alt21=2;\n int LA21_0 = input.LA(1);\n\n ...
[ "0.6640133", "0.6356531", "0.6164671", "0.6144304", "0.5984002", "0.5903597", "0.5821081", "0.57019794", "0.5697615", "0.56920004", "0.5684395", "0.56425816", "0.55890584", "0.55890584", "0.55890584", "0.55810755", "0.5531185", "0.5514768", "0.5500466", "0.54686123", "0.54686...
0.6452782
1
$ANTLR end "index" $ANTLR start "semi_colon" src\\calculator.g:375:1: semi_colon[int tab] returns [String value] : ( ';' |);
public final String semi_colon(int tab) throws RecognitionException { String value = null; value = null; try { // src\\calculator.g:379:2: ( ';' |) int alt23=2; int LA23_0 = input.LA(1); if ( (LA23_0==32) ) { alt23=1; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Token consumeSemi() {\n return consume(SEMICOLON, \"Expect ';' after value.\");\n }", "public int findMatchingSemicolon(int listIndex) {\r\n\r\n List<Integer> indexesOfSemicolons = new ArrayList<Integer>();\r\n\r\n int i = listIndex;\r\n boolean _continue = true;\r\n\r\n ...
[ "0.56176955", "0.5402643", "0.52298707", "0.51648927", "0.5124868", "0.5124403", "0.51046324", "0.5050504", "0.49909428", "0.497903", "0.497259", "0.4967149", "0.49510303", "0.4912806", "0.4883549", "0.48638678", "0.48513392", "0.48326802", "0.4804865", "0.4802337", "0.478875...
0.6913185
0
$ANTLR end "semi_colon" $ANTLR start "expr_value" src\\calculator.g:384:1: expr_value[int tab] returns [String value] : ( expr[$tab] | '!' expr[$tab] | '' expr[$tab] );
public final String expr_value(int tab) throws RecognitionException { String value = null; String expr76 =null; String expr77 =null; String expr78 =null; value = null; try { // src\\calculator.g:388:2: ( expr[$tab] | '!' expr[$tab] | '-' expr[$tab] ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String expr_(int tab) throws RecognitionException {\n String value = null;\n\n\n String binary_operator88 =null;\n\n String expr89 =null;\n\n String unary_operator90 =null;\n\n\n\n \tvalue = null;\n\n try {\n // src\\\\calculator.g:426:2: ( binary_o...
[ "0.6558699", "0.6275179", "0.6194318", "0.6194318", "0.6173012", "0.6095086", "0.59726435", "0.5870676", "0.5826748", "0.58182746", "0.57967436", "0.57541037", "0.5742798", "0.56995624", "0.5568995", "0.553604", "0.5477356", "0.5452477", "0.54419184", "0.54419184", "0.5393916...
0.7531293
0
$ANTLR end "expr_value" $ANTLR start "expr" src\\calculator.g:396:1: expr[int tab] returns [String value] : operand[$tab] expr_[$tab] ;
public final String expr(int tab) throws RecognitionException { String value = null; String operand79 =null; String expr_80 =null; value = null; try { // src\\calculator.g:400:2: ( operand[$tab] expr_[$tab] ) // src\\calculator.g:400:4: operand[$ta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String expr_value(int tab) throws RecognitionException {\n String value = null;\n\n\n String expr76 =null;\n\n String expr77 =null;\n\n String expr78 =null;\n\n\n\n \tvalue = null;\n\n try {\n // src\\\\calculator.g:388:2: ( expr[$tab] | '!' expr[$t...
[ "0.7366293", "0.71032715", "0.6697406", "0.6610293", "0.65946734", "0.6355769", "0.63106406", "0.6166953", "0.6118525", "0.61011773", "0.6075706", "0.6024224", "0.6024224", "0.5924977", "0.58423823", "0.5829439", "0.5820839", "0.58040786", "0.579803", "0.57897747", "0.5789774...
0.6862932
2
$ANTLR end "expr" $ANTLR start "operand" src\\calculator.g:404:1: operand[int tab] returns [String value] : ( ID array[$tab] | INT | CHAR | '(' expr[$tab] ')' | call_function[$tab] | object[$tab] );
public final String operand(int tab) throws RecognitionException { String value = null; Token ID81=null; Token INT83=null; Token CHAR84=null; String array82 =null; String expr85 =null; String call_function86 =null; String object87 =null; v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String expr_(int tab) throws RecognitionException {\n String value = null;\n\n\n String binary_operator88 =null;\n\n String expr89 =null;\n\n String unary_operator90 =null;\n\n\n\n \tvalue = null;\n\n try {\n // src\\\\calculator.g:426:2: ( binary_o...
[ "0.6337232", "0.63044924", "0.62608534", "0.62591785", "0.6206642", "0.6133659", "0.6101115", "0.5931137", "0.59309113", "0.5873809", "0.58580273", "0.5854522", "0.5849598", "0.5839562", "0.58268267", "0.5823803", "0.5770736", "0.5768022", "0.5726247", "0.5718953", "0.5711044...
0.7301011
0
$ANTLR end "operand" $ANTLR start "expr_" src\\calculator.g:422:1: expr_[int tab] returns [String value] : ( binary_operator[$tab] expr[$tab] | unary_operator[$tab] |);
public final String expr_(int tab) throws RecognitionException { String value = null; String binary_operator88 =null; String expr89 =null; String unary_operator90 =null; value = null; try { // src\\calculator.g:426:2: ( binary_operator[$tab] expr[$tab...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String binary_operator(int tab) throws RecognitionException {\n String value = null;\n\n\n\n \tvalue = null;\n\n try {\n // src\\\\calculator.g:472:2: ( '+' | '-' | '*' | '/' | '%' | '^' | '&' | '&&' | '||' | '+=' | '-=' | '*=' | '/=' | '%=' | '^=' | '&=' | '=' | '>' | ...
[ "0.66429496", "0.65615076", "0.65382195", "0.63330054", "0.6290946", "0.6225433", "0.61892235", "0.6180973", "0.61483884", "0.61199695", "0.6109456", "0.6079189", "0.60596824", "0.60583127", "0.6005633", "0.59948534", "0.597988", "0.5945519", "0.59235024", "0.5921849", "0.587...
0.74213326
0
$ANTLR end "expr_" $ANTLR start "object" src\\calculator.g:433:1: object[int tab] returns [String value] : a= ID '.' b= ID ;
public final String object(int tab) throws RecognitionException { String value = null; Token a=null; Token b=null; value = null; try { // src\\calculator.g:437:2: (a= ID '.' b= ID ) // src\\calculator.g:437:4: a= ID '.' b= ID { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String operand(int tab) throws RecognitionException {\n String value = null;\n\n\n Token ID81=null;\n Token INT83=null;\n Token CHAR84=null;\n String array82 =null;\n\n String expr85 =null;\n\n String call_function86 =null;\n\n String object87 =n...
[ "0.6245349", "0.59207857", "0.57999927", "0.5768677", "0.54844034", "0.5482464", "0.5470899", "0.53936535", "0.5387618", "0.53263015", "0.5315214", "0.53020275", "0.52965343", "0.5282411", "0.52712244", "0.5249339", "0.5248862", "0.5235775", "0.52283853", "0.5214236", "0.5212...
0.73624617
0
$ANTLR end "object" $ANTLR start "return_sentence" src\\calculator.g:441:1: return_sentence[int tab] returns [String value] : ( expr_value[$tab] |);
public final String return_sentence(int tab) throws RecognitionException { String value = null; String expr_value91 =null; value = null; try { // src\\calculator.g:445:2: ( expr_value[$tab] |) int alt27=2; int LA27_0 = input.LA(1); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Expression getActionSentence();", "private ReturnStmt returnStmt() {\n Expr myExpr = null;\n \n lexer.nextToken();\n \n if (isFunction) myExpr = expr();\n \n return new ReturnStmt(myExpr); \n }", "final public IASTLiteralTextNode Argument() throws ParseEx...
[ "0.57856274", "0.53991294", "0.52412355", "0.5097363", "0.5039437", "0.5022417", "0.4930241", "0.48602942", "0.48565814", "0.4841568", "0.48409224", "0.48106325", "0.48094466", "0.47996792", "0.47845986", "0.47808743", "0.4770148", "0.47424784", "0.47357106", "0.47335163", "0...
0.60429835
0
$ANTLR end "return_sentence" $ANTLR start "normal_exp" src\\calculator.g:450:1: normal_exp[int tab] returns [String value] : normal_give_value[$tab] expr_[$tab] ;
public final String normal_exp(int tab) throws RecognitionException { String value = null; String normal_give_value92 =null; String expr_93 =null; value = null; try { // src\\calculator.g:454:2: ( normal_give_value[$tab] expr_[$tab] ) // src\\calcu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String return_sentence(int tab) throws RecognitionException {\n String value = null;\n\n\n String expr_value91 =null;\n\n\n\n \tvalue = null;\n\n try {\n // src\\\\calculator.g:445:2: ( expr_value[$tab] |)\n int alt27=2;\n int LA27_0 = input...
[ "0.5841037", "0.5714799", "0.54292", "0.54170626", "0.54150283", "0.5393685", "0.53900534", "0.5355936", "0.53438014", "0.5311831", "0.53036", "0.5293738", "0.52792245", "0.52792245", "0.52543944", "0.5230941", "0.5221066", "0.5180227", "0.51596236", "0.5152419", "0.51494527"...
0.6209431
0
$ANTLR end "normal_exp" $ANTLR start "normal_give_value" src\\calculator.g:458:1: normal_give_value[int tab] returns [String value] : ( ID array[$tab] | object[$tab] );
public final String normal_give_value(int tab) throws RecognitionException { String value = null; Token ID94=null; String array95 =null; String object96 =null; value = null; try { // src\\calculator.g:462:2: ( ID array[$tab] | object[$tab] ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String normal_exp(int tab) throws RecognitionException {\n String value = null;\n\n\n String normal_give_value92 =null;\n\n String expr_93 =null;\n\n\n\n \tvalue = null;\n\n try {\n // src\\\\calculator.g:454:2: ( normal_give_value[$tab] expr_[$tab] )\n ...
[ "0.59695894", "0.5805615", "0.5618424", "0.5363959", "0.5262186", "0.5240858", "0.4989037", "0.4944925", "0.4928115", "0.49009052", "0.48986077", "0.48827034", "0.48681962", "0.48295328", "0.482916", "0.48097768", "0.4802331", "0.47961086", "0.47898042", "0.47898042", "0.4753...
0.7308834
0
$ANTLR end "normal_give_value" $ANTLR start "binary_operator" src\\calculator.g:468:1: binary_operator[int tab] returns [String value] : ( '+' | '' | '' | '/' | '%' | '^' | '&' | '&&' | '||' | '+=' | '=' | '=' | '/=' | '%=' | '^=' | '&=' | '=' | '>' | '>=' | '==' | '<' | '<=' | '!=' );
public final String binary_operator(int tab) throws RecognitionException { String value = null; value = null; try { // src\\calculator.g:472:2: ( '+' | '-' | '*' | '/' | '%' | '^' | '&' | '&&' | '||' | '+=' | '-=' | '*=' | '/=' | '%=' | '^=' | '&=' | '=' | '>' | '>=' | '==' | '<...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String expr_(int tab) throws RecognitionException {\n String value = null;\n\n\n String binary_operator88 =null;\n\n String expr89 =null;\n\n String unary_operator90 =null;\n\n\n\n \tvalue = null;\n\n try {\n // src\\\\calculator.g:426:2: ( binary_o...
[ "0.6660524", "0.6541913", "0.6482861", "0.64167243", "0.63716346", "0.63275295", "0.6270022", "0.62204117", "0.61162156", "0.60120755", "0.59850526", "0.595821", "0.5940362", "0.5924724", "0.5924309", "0.5924291", "0.5908029", "0.59075636", "0.58639735", "0.5852145", "0.58471...
0.8008243
0
$ANTLR end "binary_operator" $ANTLR start "unary_operator" src\\calculator.g:520:1: unary_operator[int tab] returns [String value] : ( '++' | '' );
public final String unary_operator(int tab) throws RecognitionException { String value = null; value = null; try { // src\\calculator.g:524:2: ( '++' | '--' ) int alt30=2; int LA30_0 = input.LA(1); if ( (LA30_0==22) ) { alt30=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void VisitUnaryNode(UnaryOperatorNode Node) {\n\n\t}", "private Expr unary() {\n if(match(BANG, MINUS)) { // If this thing can be accurately considered a unary...\n Token operator = previous();\n Expr right = unary();\n return new Expr.Unary(operato...
[ "0.68555874", "0.66966504", "0.65819454", "0.65528274", "0.65146744", "0.649862", "0.64912945", "0.6479008", "0.64359885", "0.64265007", "0.6426407", "0.6370375", "0.63156295", "0.6236212", "0.6219746", "0.6178946", "0.6147398", "0.6133674", "0.6127108", "0.6119265", "0.61028...
0.7397288
0
$ANTLR end "unary_operator" $ANTLR start "ints" src\\calculator.g:530:1: ints[int tab] returns [String value] : ( ',' INT a= ints[$tab] |);
public final String ints(int tab) throws RecognitionException { String value = null; Token INT97=null; String a =null; value = null; try { // src\\calculator.g:534:5: ( ',' INT a= ints[$tab] |) int alt31=2; int LA31_0 = input.LA(1); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String unary_operator(int tab) throws RecognitionException {\n String value = null;\n\n\n\n \tvalue = null;\n\n try {\n // src\\\\calculator.g:524:2: ( '++' | '--' )\n int alt30=2;\n int LA30_0 = input.LA(1);\n\n if ( (LA30_0==22) ) {\n ...
[ "0.60017765", "0.5868914", "0.57245636", "0.569325", "0.565567", "0.5636283", "0.55750006", "0.5548569", "0.5539889", "0.55308473", "0.548934", "0.5467663", "0.54524356", "0.5440087", "0.53999835", "0.5381186", "0.537697", "0.5357404", "0.53499705", "0.53385264", "0.5329944",...
0.5774081
2
$ANTLR end "ints" $ANTLR start "type" src\\calculator.g:539:1: type[int tab] returns [String value] : ( 'int' | 'char' | 'double' | 'void' | 'int' | 'double' | 'string' | 'char' | 'int&' );
public final String type(int tab) throws RecognitionException { String value = null; value = null; try { // src\\calculator.g:543:2: ( 'int' | 'char' | 'double' | 'void' | 'int*' | 'double*' | 'string' | 'char*' | 'int&' ) int alt32=9; switch ( input.LA(1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String type() throws RecognitionException {\n String result = null;\n\n\n CommonTree t=null;\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:157:3: (t= ( 'int' | 'boolean' | 'funct' ) )\n // /...
[ "0.59335744", "0.5785737", "0.5785737", "0.5785737", "0.5785737", "0.5785737", "0.5785737", "0.5785737", "0.5785737", "0.5785737", "0.5785737", "0.5785737", "0.5785737", "0.5785737", "0.5773422", "0.5652608", "0.5621181", "0.5536526", "0.5434765", "0.5423573", "0.5376288", ...
0.7468168
0
/========================================================================= Function : onCreate() Description: setsup the SimpleDhtProvider Parameters : void Return : boolean =========================================================================
public boolean onCreate() { simpleDynamoContext = getContext(); db_conduit = new dataAccess(simpleDynamoContext); // init all locks _GDump_Lock = new dynamoLock(); _insert_Lock = new dynamoLock(); _query_Lock = new dynamoLock(); _GDel_Lock = new dynamoLock(); _delObj_Lock = new dynamoLock(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onCreate() {\n super.onCreate();\n setUSDK();\n }", "@Override\n public void onCreate() {\n super.onCreate();\n initData();\n }", "@Override\n public void onCreate() {\n initData();\n }", "@Override\n protected void onCreate(Bund...
[ "0.65621793", "0.6452525", "0.6416027", "0.64107627", "0.6321688", "0.63093895", "0.6261812", "0.613785", "0.6131287", "0.610105", "0.60749245", "0.60551417", "0.6046001", "0.60392916", "0.60323554", "0.60294604", "0.60153437", "0.5996453", "0.5995133", "0.5974663", "0.594001...
0.0
-1
/ get called when getWriteable database is called
public void onCreate(SQLiteDatabase sqliteDB) { sqliteDB.execSQL(sqlStatement_CreateTable); // creates a table Log.e("pigtail","CREATING TABLE"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeDatabase();", "private void setWrite() {\n db = handler.getWritableDatabase();\n }", "@Override\n public synchronized SQLiteDatabase getWritableDatabase() {\n \treturn super.getWritableDatabase();\n }", "abstract void onWriteable();", "@Override\n\tpublic SQLiteDatabase ...
[ "0.7100079", "0.6994071", "0.66447604", "0.6616321", "0.6506009", "0.64852417", "0.6484506", "0.6468999", "0.6424194", "0.63135034", "0.6309329", "0.6298991", "0.62941456", "0.6273629", "0.62582856", "0.6253033", "0.62302774", "0.62076735", "0.62037617", "0.6202223", "0.62006...
0.0
-1
/========================================================================= Function : getType() Description: NONE Parameters : Uri Return : String =========================================================================
public String getType(Uri uri) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType()...
[ "0.8055821", "0.8055821", "0.8055821", "0.8055821", "0.8055821", "0.8055821", "0.8055821", "0.8055821", "0.8055821", "0.8055821", "0.8055821", "0.8055821", "0.8055821", "0.8055821", "0.8055821", "0.8055821", "0.8055821", "0.8055821", "0.8055821", "0.8055821", "0.8055821", "...
0.77399325
62
/========================================================================= Function : insert Description: this is an overloaded method which insets the givn KV_pair into the sqlite table shall be called programmatically Parameters : String[] KV_pair Return : boolean =====================================================...
public boolean insert(Object KV_pair,String avd) // making this also synchronized -- bad idea -- raja may 8 { /** * lock the DB when inserting -- query also uses this -- * To keep Query section from querying */ synchronized (_DBWRITE_Lock) { long rowID = 0l; ContentValues...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Key insert(Transaction tx,Tuple t) throws RelationException;", "@Insert({\n \"insert into t_apikey (id, key, \",\n \"name, api_id, des_key, \",\n \"parkIds)\",\n \"values (#{id,jdbcType=INTEGER}, #{key,jdbcType=VARCHAR}, \",\n \"#{name,jdbcType=VARCHAR}, #{apiId,jdbcType...
[ "0.6442015", "0.6215023", "0.6180976", "0.6104696", "0.6096983", "0.60763884", "0.6027267", "0.60259444", "0.5945492", "0.59251255", "0.5917032", "0.59100354", "0.58859533", "0.58503354", "0.585019", "0.5818786", "0.58019567", "0.5799677", "0.57845366", "0.57800317", "0.57717...
0.79195684
0
/========================================================================= Function : insert Description: Inserts given KV_pair into the sqlite database Parameters : Uri uri, ContentValues values Return : Uri =========================================================================
synchronized public Uri insert(Uri uri, ContentValues values) // FIXME-- raja made it synchronized { /** * will synchronize the inserts -- going to others nodes --> replication --> replication * SYNCHRONIZED * -- to order concurrent insert requests coming in from * -- C1 C2 C3 C4 C5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Uri insert(Uri uri, ContentValues values) {\n while(flag)\n {}\n Log.i(\"insert\",values.getAsString(\"key\"));\n insertKeysToNode(values.getAsString(\"key\"), values.getAsString(\"value\"));\n return null;\n }", "@Override\n public Uri insert(Uri ur...
[ "0.77447116", "0.7394041", "0.73683697", "0.7324274", "0.7318826", "0.72981346", "0.72646", "0.7238532", "0.7216592", "0.7207608", "0.71748304", "0.7146917", "0.712869", "0.712869", "0.712869", "0.712869", "0.71032155", "0.709105", "0.7081048", "0.7014176", "0.6994561", "0....
0.6295423
47
/========================================================================= Function : delete Description: handles delete requests generated programmatically, requests coming from the predecessor Parameters : String del_lvl,String _param Return : Uri ======================================================================...
public Integer delete(String[] keys) { Integer retVal = 0; Log.e("recovery","I need to delete::"+keys.length+" rows"); String bull[] = new String[1]; for(int i=0;i<keys.length;i++) { bull[0] = keys[i]; retVal+=sqliteDB.delete(tableName, "key=?",bull); } Log.e("r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer delete(String del_lvl,String _param)\n {\n \tint retVal = 0;\n \t\n \tif(del_lvl.equals(delete_all)) \n \t{\n \t\tretVal = sqliteDB.delete(tableName,null,null);\n \t}\n \telse if(del_lvl.equals(delete_particular))\n \t{\n\t\t\tString[] delArgs={_param};\n\t\t\tretVal = s...
[ "0.71811193", "0.6745156", "0.6693833", "0.6685794", "0.6637244", "0.6610388", "0.65330803", "0.6491409", "0.6489121", "0.64861", "0.64861", "0.6465258", "0.6440813", "0.6437624", "0.64333826", "0.63857687", "0.63688666", "0.63534385", "0.63393676", "0.63130933", "0.63061213"...
0.0
-1
/========================================================================= Function : delete Description: handles delete requests generated programmatically, requests coming from the predecessor Parameters : String del_lvl,String _param Return : Uri ======================================================================...
public Integer delete(String del_lvl,String _param) { int retVal = 0; if(del_lvl.equals(delete_all)) { retVal = sqliteDB.delete(tableName,null,null); } else if(del_lvl.equals(delete_particular)) { String[] delArgs={_param}; retVal = sqliteDB.delete(tableName,"key=?...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public int delete(Uri uri, String where, String[] whereArgs) {\n return 0;\r\n }", "String delete(String request) throws RemoteException;", "private void deleteRequest() {\n\t\tboolean res = false;\n\t\tMessage messageToServer = new Message();\n\t\tmessageToServer.setMsg(req.getEcode...
[ "0.6743488", "0.66920584", "0.6684572", "0.66367495", "0.6609739", "0.6533241", "0.6489844", "0.64879876", "0.648492", "0.648492", "0.6463431", "0.6438279", "0.6436522", "0.6431539", "0.6385784", "0.636664", "0.63520145", "0.6337122", "0.63131493", "0.630443", "0.62987703", ...
0.7181949
0
/========================================================================= Function : query() Description: Query for an object in the database overloaded method Parameters : String queryLevel,Object _param Return : Hashtable =========================================================================
public Hashtable<String,String> query(String queryLevel,Object _param) // making this sync can break the system { Hashtable<String, String> queryResult = null; String query = null; //String TAG = "query_shopper"; String TAG = "window_Shopper"; /** * query the whole DHT */ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Query query();", "ZZW queryByHql(String hql,Map<String,Object> param);", "@Override\n\tpublic Object getObjectByInfo(String hql) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction transaction = session.beginTransaction();\n\t\tQuery query = session.createQuery(hql);\n\t\tObject obj...
[ "0.70439494", "0.64248234", "0.6410551", "0.6150624", "0.61415917", "0.5949408", "0.5925813", "0.5917375", "0.5905937", "0.5875127", "0.58589184", "0.58516234", "0.5848757", "0.5827845", "0.5789174", "0.5777853", "0.5774487", "0.5765893", "0.5734027", "0.5722836", "0.57203674...
0.74251693
0
/========================================================================= Function : query Description: Query the database to fetch the requested items Parameters : Uri uri, String[] projection, String selection, String[] selectionArgs,String sortOrder Return : Cursor ==================================================...
synchronized public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,String sortOrder) { SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder(); queryBuilder.setTables(tableName); sqliteDB = db_conduit.getReadableDatabase(); Cursor queryResult = null; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Cursor query(Uri uri, String[] projection, String selection,\r\n\t\t\tString[] selectionArgs, String sortOrder) {\n\t\tCursor c ;\r\n\t\tSQLiteDatabase db = noteBookOpenHepler.getReadableDatabase();\r\n\t\tif(projection == null){\r\n\t\t\tprojection = PROJECTION;\r\n\t\t}\r\n\t\tswitch(matche...
[ "0.7933248", "0.7931247", "0.7844031", "0.7792365", "0.76875186", "0.7621503", "0.7605808", "0.7568837", "0.7501171", "0.74915993", "0.74876803", "0.7480829", "0.74792874", "0.74780595", "0.74640465", "0.74554914", "0.7452491", "0.7440017", "0.7424994", "0.7343452", "0.732748...
0.62046564
39
/========================================================================= Function : printCursor Description: Prints the cursor object's contents Parameters : Cursor Return : void =========================================================================
private void printCursor(Cursor cursor) { if(cursor == null) return; if(cursor.getCount() == 0) return; cursor.moveToFirst(); int index = 1; int keyIndex = cursor.getColumnIndex(KEY_FIELD); int valueIndex = cursor.getColumnIndex(VALUE_FIELD); Log.d("window_shopper","row_"+index+"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getCursor() {\n return cursor_;\n }", "public void cursorOn();", "@Override\n\tpublic String toStringCursor()\n\t{\n\t\t// String we will be printing\n\t\tString returnString = \"\";\n\t\t// print everything in our left stack with loop\n\t\tfor (int i = 0; i < left.size(); ++i)\n\t\...
[ "0.6948639", "0.6702375", "0.6606972", "0.65575874", "0.65565735", "0.64843374", "0.64221644", "0.6339393", "0.62987703", "0.61171436", "0.61051667", "0.6032928", "0.59978765", "0.598355", "0.5966417", "0.59233046", "0.5919534", "0.58960146", "0.5772478", "0.5767654", "0.5765...
0.74526703
0
/========================================================================= Function : appendRecords() Description: Appends records from one hashtable to another Parameters : Hashtables from & to Return : void =========================================================================
void appendRecords(Hashtable<String,String> LDUMP,Hashtable<String,String> GDUMP) { /** * GDUMP from pred and MY LDUMP are null -- do-nothing * My LDUMP is null -- nothing to append * GDUMP is null -- just make "to" <LDUMP> = "from" <GDUMP> */ Set<String> keys = LDUMP.keySet(); for(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int addAllComponents(RecordSet inputRecords);", "public int append(IDataTableRecord record)\n\t{\n\t return add(recordCount(),record);\n\t}", "void addRecord(HistoryRecord record) throws IOException;", "@Override\n\tprotected Hashtable<String, AbsRecord> createHashtableRecordModel(List<AbsRecord> records)\n...
[ "0.54979104", "0.5409779", "0.53813374", "0.53713775", "0.5336224", "0.5331306", "0.5313485", "0.52998596", "0.5245514", "0.51997554", "0.5166101", "0.51301", "0.50677", "0.5053853", "0.5047375", "0.5031505", "0.50313467", "0.5008761", "0.49764323", "0.49600884", "0.49260566"...
0.6900844
0
/========================================================================= Function : update Description: Parameters : Uri uri, String[] projection, String selection, String[] selectionArgs,String sortOrder Return : Cursor =========================================================================
public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int update(Uri uri, ContentValues values, String selection,\r\n\t\t\tString[] selectionArgs) {\n\t\tfinal SQLiteDatabase db = noteBookOpenHepler.getWritableDatabase();\r\n\t\tString where;\r\n\t\tfinal int matchId = matcher.match(uri);\r\n\t\tswitch(matchId) {\r\n\t\t\tcase all :\r\n\t\t\t\tw...
[ "0.76071304", "0.74768436", "0.74768436", "0.74768436", "0.7445101", "0.7445101", "0.7445101", "0.7445101", "0.7445101", "0.7445101", "0.74152416", "0.7408956", "0.7377088", "0.7361443", "0.7354555", "0.7336186", "0.73043746", "0.7286572", "0.7286572", "0.7286572", "0.7207495...
0.7596639
1
/========================================================================= Function : delete Description: deletes the KV_pair from the sqlite database Parameters : Uri uri, String selection,String[] selectionArgs Return : int =========================================================================
public int delete(Uri uri, String selection, String[] selectionArgs) { int retVal = 0; if(selection.equals(delete_all)) // delete all in DHT { retVal = sqliteDB.delete(tableName, null, null); Message.sendMessage(MessageType.GDelReqMessage,delete_all,myAVDnum,null,chord.mysucc.portNum); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int delete(Uri uri, String selection, String[] selectionArgs) {\n while(flag)\n {}\n if(selection.equals(\"@\")) {\n myKeys.clear();\n return 0;\n }\n else\n {\n HandleDeleteQuery(selection);\n }\n return...
[ "0.7178806", "0.71636164", "0.69952005", "0.6940165", "0.6940165", "0.6940165", "0.6940165", "0.6929775", "0.6844902", "0.67391896", "0.6725621", "0.670919", "0.664565", "0.6638117", "0.6622292", "0.66045445", "0.65670115", "0.6496979", "0.6492008", "0.6452914", "0.64487344",...
0.6885585
8
/========================================================================= Function : unpack_cursor Description: copies the contents of a Cursor object into a Hashtable Parameters : Return : Hashtable =========================================================================
Hashtable<String, String> unpack_cursor(Cursor cursor) { Hashtable<String, String> result = null; if(cursor == null) return null; else if(cursor.getCount() == 0) return null; else { result= new Hashtable<String, String>(); cursor.moveToFirst(); int keyIndex = cursor.getCo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Hashtable<String, String> unpack_cursor(Cursor cursor,Hashtable<String, String> result)\n {\n \tif(cursor == null) return null;\n \tcursor.moveToFirst(); \n \tif(result == null)\n \tresult = new Hashtable<String, String>();\n \t\n \tint keyIndex = cursor.getColumnIndex(KEY_FIELD);\n\t\tint val...
[ "0.8261316", "0.5515973", "0.539305", "0.5284684", "0.517544", "0.51624095", "0.5119845", "0.51175606", "0.50309783", "0.5029093", "0.5003558", "0.49752778", "0.49681926", "0.49270707", "0.49138457", "0.4898336", "0.4896414", "0.48767132", "0.48607275", "0.4857942", "0.482825...
0.8427589
0
/========================================================================= Function : unpack_cursor (overloaded method) Description: copies the content of a cursor object into the given Hashtable Parameters : Cursor cursor, Hashtable result Return : Hashtable ============================================================...
Hashtable<String, String> unpack_cursor(Cursor cursor,Hashtable<String, String> result) { if(cursor == null) return null; cursor.moveToFirst(); if(result == null) result = new Hashtable<String, String>(); int keyIndex = cursor.getColumnIndex(KEY_FIELD); int valueIndex = cursor.getC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Hashtable<String, String> unpack_cursor(Cursor cursor)\n {\n \tHashtable<String, String> result = null;\n \tif(cursor == null) return null;\n \telse if(cursor.getCount() == 0) return null;\n \telse\n \t{\n \t\tresult= new Hashtable<String, String>();\n\t \tcursor.moveToFirst(); \n\t \tin...
[ "0.8341202", "0.53639793", "0.51526725", "0.51031107", "0.50273097", "0.50024325", "0.49579462", "0.49542332", "0.4945804", "0.48944744", "0.48652503", "0.4847383", "0.4811316", "0.47919434", "0.4784205", "0.4766957", "0.47569", "0.47324374", "0.4717663", "0.47042528", "0.469...
0.8539424
0
/========================================================================= Function : construct_MatrixCursor Description: Given a cursor constructs a MatrixCursor with contents of the former Parameters : Cursor records,String[] columnNames Return : MatrixCursor ==========================================================...
private MatrixCursor construct_MatrixCursor(Cursor records,String[] columnNames) { if(records == null || records.getCount() == 0) return null; String[] rowItem = new String[2]; MatrixCursor matCursor = new MatrixCursor(columnNames); records.moveToFirst(); int keyIndex = records.getCol...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private MatrixCursor construct_MatrixCursor(Hashtable<String, String> records,String[] columnNames)\n {\n \tif(records == null) return null;\n \tMatrixCursor matCursor = new MatrixCursor(columnNames);\n \tString[] rowItem = new String[2];\n \tSet<String> keys = records.keySet();\n \tfor(String ke...
[ "0.80329394", "0.7504746", "0.6669848", "0.6422451", "0.5882914", "0.5814579", "0.57723475", "0.5461712", "0.5455607", "0.5432732", "0.54278207", "0.5379688", "0.52158153", "0.52084684", "0.51948345", "0.5172614", "0.5156205", "0.51029235", "0.5061974", "0.5037248", "0.498014...
0.8533956
0
/========================================================================= Function : construct_MatrixCursor(overloaded method) Description: Given a Hashtable construct a matrix cursor with content of the former Parameters : Hashtable records,String[] columnNames Return : Cursor ========================================...
private MatrixCursor construct_MatrixCursor(Hashtable<String, String> records,String[] columnNames) { if(records == null) return null; MatrixCursor matCursor = new MatrixCursor(columnNames); String[] rowItem = new String[2]; Set<String> keys = records.keySet(); for(String key:keys) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private MatrixCursor construct_MatrixCursor(Cursor records,String[] columnNames)\n {\n \tif(records == null || records.getCount() == 0) return null;\n \tString[] rowItem = new String[2];\n \tMatrixCursor matCursor = new MatrixCursor(columnNames);\n \trecords.moveToFirst();\n \t\n \tint keyInde...
[ "0.79195416", "0.62009805", "0.5870054", "0.54775405", "0.5256252", "0.5232121", "0.52068585", "0.5201838", "0.5101345", "0.508559", "0.5033092", "0.5009073", "0.49991092", "0.4996109", "0.49343222", "0.49202192", "0.48639637", "0.4841712", "0.48179176", "0.47997403", "0.4723...
0.87741923
0
Entry point to application.
public static void main(String[] args) { bankChargesDemo(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startApp()\r\n\t{\n\t}", "public static void main(String[] args){\n\n MyApp myApp = new MyApp(); //1\n myApp.runMyApp(); //2\n System.out.println(\"End of Program\"); //3\n }", "public static void main(String[] args) {\n\t\trunApplication();\n\t}", "public static void main...
[ "0.73613477", "0.7206228", "0.7180454", "0.7155439", "0.7123436", "0.7120276", "0.70543355", "0.7040024", "0.6998814", "0.6983327", "0.6975555", "0.69619364", "0.6961376", "0.691927", "0.69122297", "0.69069684", "0.69023335", "0.68618304", "0.685804", "0.6855193", "0.68088865...
0.0
-1
Demonstrates an instance of the bankCharges class.
public static void bankChargesDemo() { BankCharges charge0 = new BankCharges(); // Initialize the checksUsed field charge0.assignChecksUsed(); // Initialize the accountBalance field charge0.setAccountBalance(399.00); // Display the bank statement System.out.pri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n bankChargesDemo();\n }", "private Bank() {\r\n\t\tsuper();\r\n\t\tlogService = new Logger(\"driverName\");\r\n\t\tlogger = new Logger(\"driverName\");\r\n\t\tthis.balance = balance;\r\n\t\tthis.clients = new Client[100];\r\n\t}", "public static void main(Str...
[ "0.7348821", "0.65935296", "0.6536022", "0.63998055", "0.6327937", "0.62961507", "0.6245875", "0.6190811", "0.618843", "0.61566484", "0.6141289", "0.6130162", "0.61298764", "0.6124068", "0.6100649", "0.6098365", "0.60787725", "0.6073865", "0.601819", "0.6015201", "0.6012597",...
0.8894802
0
This method finds the square roots. Checks on the correct introduction of the coefficients. Checks on the discriminant is less than zero
public static void main(String[] args) { try { Scanner sr = new Scanner(System.in); System.out.println("Enter a = "); double a = sr.nextDouble(); System.out.println("Enter b = "); double b = sr.nextDouble(); System.out.println("Enter c = ")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String args[]) {\n\t\t\n\t\t//declare the variables of equation ax*x + b*x + c = 0 \n\t\tdouble a,b,c;\n\t\t\n\t\t//define scanner variable x as\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\t//initiate the value to command line input\n\t\tSystem.out.println (\"give value of x^2 coe...
[ "0.65506333", "0.6227378", "0.62015134", "0.6151975", "0.6106639", "0.6079625", "0.6033785", "0.5983978", "0.59215486", "0.5909004", "0.5891191", "0.58819526", "0.58607244", "0.58292145", "0.57905", "0.5783394", "0.57769424", "0.5769802", "0.57566345", "0.5726128", "0.5688072...
0.0
-1
In this method, there is a check on the maximum and minimum input number
public static boolean check(double arg) { if (!(Double.isInfinite(arg))) { return true; } else { System.out.println("Warring! You have entered a very large number!"); return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int validateNumber(int data, int defaultValue, int minValue, int maxValue)\n {\n return (data < minValue || data > maxValue) ? defaultValue : data;\n }", "public static void checkMinMax() {\r\n\t\tSystem.out.println(\"Beginning min/max test (should be -6 and 17)\");\r\n\t\tSortedIntList list...
[ "0.72589445", "0.7043541", "0.70105606", "0.6867356", "0.6829455", "0.6774304", "0.67572266", "0.6721511", "0.6688871", "0.6686216", "0.6678933", "0.6665146", "0.66635334", "0.6660811", "0.66466635", "0.6566696", "0.6562231", "0.652888", "0.6512365", "0.65048367", "0.6491159"...
0.0
-1
In this method, a test is performed to zero the discriminant, as well as finding the roots of the equation.
public static void solve(double a, double b, double c) { double d = Math.pow(b, 2) - 4 * a * c; if (Double.isInfinite(1 / d)) { System.out.println("x1,2 = " + (-b + Math.sqrt(d)) / (2 * a)); } else if (d > 0) { System.out.println("x1 = " + (-b + Math.sqrt(d)) / (2 * a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void equationsTest() {\n }", "public static void main(String args[]) {\n\t\t\n\t\t//declare the variables of equation ax*x + b*x + c = 0 \n\t\tdouble a,b,c;\n\t\t\n\t\t//define scanner variable x as\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\t//initiate the value to command line inpu...
[ "0.6408057", "0.6349721", "0.6260645", "0.6174247", "0.6101915", "0.6094145", "0.60158485", "0.59823436", "0.5949948", "0.59101707", "0.58739966", "0.5847168", "0.5839899", "0.5834334", "0.58314764", "0.58292556", "0.5802654", "0.57705146", "0.57621634", "0.5748194", "0.57364...
0.0
-1
Method: ScanReplace() Author: Ron Savage Date: 05/13/2019 Description: This method is the constructor.
public ScanReplace(String file, String startDir) { confFileName = file; startPath = Paths.get(startDir); fileSpec = "*.*"; ReadConfig(); System.out.println("Directory,Filename,Line Number, Sub Line Number, Matching Line"); FindFiles(startPath.toAbsolutePa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PileSearchRecode() {\n }", "public void setScan(Scan scan) {\n this.scan = scan;\n }", "private void prepareScanner() {\r\n\t\tbcLocator = new BCLocator();\r\n\t\tbcGenerator = new BCGenerator();\r\n\t}", "@Deprecated\n public Asintactico(java_cup.runtime.Scanner s) {super(s);}", "@Override\...
[ "0.5832213", "0.5750962", "0.5609766", "0.56047636", "0.54697675", "0.5466485", "0.54518944", "0.54233354", "0.53816223", "0.53144324", "0.5271581", "0.5269624", "0.5266667", "0.52106833", "0.5178494", "0.5170278", "0.5170278", "0.5168143", "0.51357895", "0.5113605", "0.51104...
0.5180696
14
Method: ReadConfig() Author: Ron Savage Date: 05/14/2019 Description: This method reads the yaml configuration file.
private void ReadConfig() { try { Yaml yaml = new Yaml(); BufferedReader reader = new BufferedReader(new FileReader(confFileName)); yamlConfig = yaml.loadAll(reader); for (Object confEntry : yamlConfig) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "AuditYamlConfig loadConfig() throws ConfigurationException\n {\n if (hasCustomConfigPath())\n {\n return loadConfigAtCustomPath();\n }\n else if (hasConfigAtDefaultPath())\n {\n return loadConfigAtDefaultPath();\n }\n else\n {\n ...
[ "0.68084157", "0.6608304", "0.65439534", "0.6504815", "0.64735854", "0.6460155", "0.64389884", "0.6435826", "0.64206254", "0.63068277", "0.62671006", "0.6152807", "0.6106617", "0.60940695", "0.60767025", "0.607422", "0.6054369", "0.5989766", "0.59561294", "0.5922456", "0.5890...
0.74696094
0
Method: SummaryReport() Author: Ron Savage Date: 05/13/2019 Description: This method prints out a summary of file/line counts processed.
private void SummaryReport() { System.out.println("\n\n***********************************************************************"); System.out.println("* CodeScanner Summary Report"); System.out.println("*"); System.out.println("* Run Date: " + new SimpleDateFor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void summaryReport() {\r\n\r\n\t\tString strTimeStamp = new SimpleDateFormat(\"yyyy-MM-dd-HH-mm-ss\").format(new Date());\r\n\t\tString reportPath = new File(\"Report\").getAbsolutePath();\r\n\t\tint stepPassed = 0;\r\n\t\tint stepFailed = 0;\r\n\t\tString cssData = \"\";\r\n\r\n\t\ttry {\r\n\t\t\tString cs...
[ "0.7356133", "0.6889566", "0.66148144", "0.62407017", "0.6032586", "0.5985138", "0.5981204", "0.59687746", "0.5958796", "0.58792436", "0.58792436", "0.5850885", "0.57958996", "0.5779313", "0.57638377", "0.57422286", "0.5730704", "0.57216084", "0.56909126", "0.56546324", "0.56...
0.7699358
0
Method: ConvertToPattern() Author: Ron Savage Date: 05/13/2019 Description: This method the configuration strings into patterns.
private Pattern ConvertToPattern(String configEntry) { String finalResult = configEntry; int regexFlags = 0; finalResult = finalResult.replace(", ","|"); finalResult = finalResult.substring(1,finalResult.length()-1); regexFlags = ConvertRegExOptions(finalResult); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toPattern() {\n return toPattern(false);\n }", "public String toPattern() {\n\t\treturn pattern;\n\t}", "private static String convertPattern(String pattern) {\n if (Strings.isNullOrEmpty(pattern)) {\n return pattern;\n }\n\n return \"^\" + pattern\n .replaceAll(\"\\\\[\", ...
[ "0.597805", "0.5924145", "0.5733381", "0.5673895", "0.56314313", "0.5453691", "0.5392572", "0.53844064", "0.5282245", "0.5271192", "0.51999605", "0.51884574", "0.51476264", "0.5107014", "0.5072281", "0.5070543", "0.5056131", "0.50220996", "0.50181586", "0.50026727", "0.499422...
0.72372705
0
Method: DoFindReplace() Author: Ron Savage Date: 05/31/2019 Description: This method searches for and replaces matches with the replacement text specified in the config.
private String DoFindReplace(String line) { String newLine = line; for (String findKey : lineFindReplace.keySet()) { String repValue = lineFindReplace.get(findKey).toString(); Pattern findPattern = Pattern.compile(findKey); Matcher repMatcher = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String findReplace(String str, String find, String replace)\n/* */ {\n/* 944 */ String des = new String();\n/* 945 */ while (str.indexOf(find) != -1) {\n/* 946 */ des = des + str.substring(0, str.indexOf(find));\n/* 947 */ des = des + replace;\n/* 948 */ str = str.subs...
[ "0.65482575", "0.6542656", "0.65056175", "0.6237247", "0.6207657", "0.61947435", "0.61381924", "0.61208194", "0.6095362", "0.60911214", "0.5987763", "0.59825003", "0.5854165", "0.58088195", "0.57695395", "0.57262254", "0.56868607", "0.56540763", "0.5598067", "0.55489236", "0....
0.60186183
10
Method: Scan() Author: Ron Savage Date: 05/13/2019 Description: This method reads each line in the file and calls the pattern match method to check for a match of the search parameters.
private void Scan(String fileToScan, String outputFile) { try (BufferedReader reader = new BufferedReader(new FileReader(fileToScan))) { String line; String csvLine = ""; Integer lineCount = 0; Integer replacementCount = 0; Integer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void searchFile(String fname) {\n File file = new File(fname);\n try {\n BufferedReader br = new BufferedReader(new FileReader(file));\n String s;\n while ((s = br.readLine()) != null) { \n //Search each line for at least 1 match o...
[ "0.61765", "0.6142114", "0.6038751", "0.5867746", "0.585954", "0.5773908", "0.5673925", "0.5668833", "0.56099486", "0.5585241", "0.55410707", "0.55063385", "0.5443231", "0.54370826", "0.5434543", "0.5419075", "0.5406548", "0.53936404", "0.5384173", "0.5362336", "0.53573143", ...
0.5289694
27
Method: ExtractURLs() Author: Ron Savage Date: 05/24/2019 Description: This method extracts any matching URLs and stores them in a distinct hash map.
private void ExtractURLs(String line) { String matchedURL = ""; Matcher urlMatcher = urlPattern.matcher(line); while (urlMatcher.find()) { matchedURL = urlMatcher.group(); if (!distinctURLs.containsKey(matchedURL)) { d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, URLValue> loadAllURLs()\n\t{\n\t\tEntityCursor<URLEntity> results = this.env.getEntityStore().getPrimaryIndex(String.class, URLEntity.class).entities();\n\t\tMap<String, URLValue> urls = new HashMap<String, URLValue>();\n\t\tURLValue url;\n\t\tfor (URLEntity entity : results)\n\t\t{\n\t\t\turl =...
[ "0.62416136", "0.61057484", "0.5965926", "0.58913314", "0.5883929", "0.5828985", "0.57995075", "0.5787347", "0.57812446", "0.5765797", "0.5749052", "0.56841296", "0.5672858", "0.5619912", "0.56013644", "0.5578962", "0.55732167", "0.5564594", "0.5560196", "0.5544422", "0.54697...
0.69348943
0
Method: FindFiles.java Author: Ron Savage Date: 05/13/2019 Description: This method reads each line in the file and calls the pattern match method to check for a match of the search parameters.
private void FindFiles(Path findPath) { try (DirectoryStream<Path> stream = Files.newDirectoryStream(findPath)) { for (Path thisPath : stream) { File file = new File(thisPath.toString()); if (file.isDirectory()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String> getFiles(String path, String searchPattern) throws IOException;", "public void searchFile(String fname) {\n File file = new File(fname);\n try {\n BufferedReader br = new BufferedReader(new FileReader(file));\n String s;\n while ((s = br.readLine()) != ...
[ "0.69289756", "0.6923958", "0.6781796", "0.677873", "0.6571263", "0.64033777", "0.6261611", "0.61964536", "0.614422", "0.614338", "0.61107314", "0.59921944", "0.5915246", "0.5873831", "0.5851045", "0.58355206", "0.5786978", "0.5784278", "0.5747327", "0.57222253", "0.57113266"...
0.67058045
4
Method: HasMatch.java Author: Ron Savage Date: 05/14/2019 Description: This method checks the text for any matches from the includePattern with no matches in the excludePattern patterns sent.
private Boolean HasMatch(String line, Pattern includePattern, Pattern excludePattern) { Boolean foundMatch = false; Matcher includeMatcher = includePattern.matcher(line); Matcher excludeMatcher = excludePattern.matcher(line); try { if (includeMatcher.fin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isTextPresent(final String textPattern);", "private static boolean wildCardMatch(String text, String pattern, boolean printDiff) {\n\t\tif (text.length() < 1 && pattern.length() < 1) {\n\t\t\treturn true;\n\t\t}\n\t\tif (text.length() < 1 || pattern.length() < 1) {\n\t\t\treturn false;\n\t\t}\n\n\...
[ "0.6093559", "0.5983442", "0.58735156", "0.56888014", "0.567713", "0.56273156", "0.5609799", "0.555903", "0.55466294", "0.5513457", "0.5508504", "0.5434277", "0.5406299", "0.5404734", "0.5385871", "0.5383256", "0.53678125", "0.53617287", "0.523569", "0.5231523", "0.5213148", ...
0.71514124
0
Method: Main() Author: Ron Savage Date: 05/13/2019 Description: This is the main entry point for the application.
public static void main(String[] args) { ScanReplace scanRep; String configFile = ""; String startDir = ""; if (args.length > 1) { configFile = args[0]; startDir = args[1]; if (args.length > 2 && !args[2].contains(">")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main() {\n \n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "public static void main(String[] args) {\n \n \n \n \n }", "public Main() {\n \n \n }", "public static void main(St...
[ "0.8136448", "0.7666379", "0.765424", "0.75116", "0.7488506", "0.7488506", "0.7488506", "0.7488506", "0.7488506", "0.7488506", "0.7479684", "0.7449133", "0.74462456", "0.74462456", "0.7435265", "0.7425299", "0.7417975", "0.7417201", "0.74148214", "0.73933643", "0.7370491", ...
0.0
-1
CslTestBase loads test file and reference file from different locations this breaks our assumption, that we can prepare the JS onthefly in the build directory. This redirects the resolution of the reference files to the build directory (they are also copied on test begin)
@Override protected File getDataFile(String relFilePath) { return new File(getDataDir(), relFilePath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@BeforeTest\n\tpublic void loadLocatorsFile() {\n\t\tlog = Logger.getLogger(HeroImageProducttestscripts.class);\n\t\tLogReport.getlogger();\n\t\tlogger = extent.startTest(\"HomepageRedirection\");\n\t\tlocator = ReadPropertiesFile.loadProperty(FilePath.LOCATOR_FILE);\n\t\tvalidate = ReadPropertiesFile.loadProperty...
[ "0.58648926", "0.57311606", "0.5701767", "0.55689555", "0.5546516", "0.5529364", "0.5394284", "0.5390894", "0.5347801", "0.5326003", "0.53214395", "0.5318419", "0.53071016", "0.5305014", "0.5260498", "0.525394", "0.5253617", "0.5251771", "0.52230483", "0.5200917", "0.5189146"...
0.0
-1
TODO Autogenerated method stub
public void onBlockingStateUpdated(boolean blocking) { }
{ "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
The secret passcode for registration. Creates a new authenticated user, with the passed name for identification.
public AuthenticatedUser() { Scanner input = new Scanner(System.in); System.out.print("Please input your username: "); //Ask user to identify with services this.name = input.nextLine(); if (!new File(AuctionSecurity.CLIENT_STORAGE + name + "/Private.key").exists()) { //If no pri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String register(String name, String password) throws BakeryServiceException {\n if (name == null || password == null || name.length() < 3 || password.length() < 3)\n throw new BakeryServiceException(400);\n\n // check that the user does not already exist\n User...
[ "0.6998801", "0.672902", "0.66018605", "0.6599808", "0.6593354", "0.6565636", "0.6466111", "0.6420398", "0.63813424", "0.6359156", "0.6356995", "0.633754", "0.6322317", "0.6303603", "0.62183714", "0.6217133", "0.6194296", "0.6184829", "0.61733145", "0.6148437", "0.61197054", ...
0.61374515
20
Gets the specified service, as a string, from the RMI server through authenticated means.
public Object getService(String service) { try { Socket authServer = new Socket(AUTH_ADDRESS, AUTH_PORT); //Connect to authentication server. //Set up objects to read and write responses to and from them server. ObjectInputStream objIn = new ObjectInputStream(authServer.getIn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getServiceName();", "java.lang.String getServiceName();", "java.lang.String getService();", "java.lang.String getService();", "java.lang.String getService();", "public String getService() {\n\t\treturn service.get();\n\t}", "String getServiceName();", "String getServiceName();", "p...
[ "0.6781893", "0.6781893", "0.6750135", "0.6750135", "0.6750135", "0.6662046", "0.6613601", "0.6613601", "0.65929544", "0.65929544", "0.65929544", "0.6480489", "0.644603", "0.6423118", "0.64173883", "0.64173883", "0.64173883", "0.63879675", "0.63879675", "0.63879675", "0.63467...
0.7054258
0
/ access modifiers changed from: packageprivate
public int getFreeListSize() { return this.mFreeList.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
public void addToFreeList(V value) { this.mFreeList.add(value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
Abstract description of an object property withrespectto Javascript debugging
public interface PropertyReference extends Mirror { /** * Returns the name of this {@link PropertyReference} or <code>null</code> if one could not be determined. * * @return the name of this {@link PropertyReference} or <code>null</code>. */ public String name(); /** * Returns the underlying {@link Valu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getDescription(Object value);", "public String toString() {\n StringBuilder stringBuilder = new StringBuilder(40);\n stringBuilder.append(\"property '\").append(this.getName()).append(\"' (\");\n if (this._accessorMethod != null) {\n stringBuilder.append(\"v...
[ "0.6438255", "0.6425463", "0.6330872", "0.63141954", "0.62600225", "0.62485456", "0.622243", "0.622243", "0.622243", "0.622243", "0.6211956", "0.61934805", "0.6183952", "0.6183472", "0.6182738", "0.6170753", "0.6164037", "0.615528", "0.6141724", "0.6141724", "0.6141724", "0...
0.0
-1
Creates a InfoFilterFrame object.
public InfoFilterFrame() { enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); init(); // do local intializations } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Frame createFrame();", "public SamFilterParams create() {\n return new SamFilterParams(this);\n }", "public Info() {\n super();\n }", "protected IUIFilterable createFilterable() {\n \t\treturn new UIFilterable();\n \t}", "public BlobFilterDetails() {\n }", "private void creat...
[ "0.5207919", "0.5192585", "0.51108456", "0.5068556", "0.5051967", "0.5021754", "0.49574247", "0.4956281", "0.49514014", "0.4914336", "0.48600236", "0.4852295", "0.48331374", "0.4821962", "0.47889137", "0.47600037", "0.47464243", "0.47366363", "0.47297618", "0.4729273", "0.471...
0.6199796
0
Initializes and starts the agents in the application.
private void init() { // see if a serialized FilterAgent exists try { FilterAgent tmpFilterAgent = FilterAgent.restoreFromFile(FilterAgent.fileName); if (tmpFilterAgent != null) filterAgent = tmpFilterAgent; } catch (Exception e) { // no error, just catch the exception and use default/new ag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"...
[ "0.75751936", "0.7435053", "0.7123527", "0.7105304", "0.6866194", "0.6734773", "0.6675438", "0.6648987", "0.6508378", "0.6351044", "0.62989473", "0.62636185", "0.62339914", "0.62081355", "0.61532116", "0.61418563", "0.61260647", "0.60897356", "0.6043681", "0.6015419", "0.6006...
0.6286585
11
Initializes the GUI controls.
private void jbInit() throws Exception { useFeedbackCheckBoxMenuItem.setText("using Feedback"); useFeedbackCheckBoxMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { useFeedbackCheckBoxMenuItem_actionPerformed(e); } }); if (f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GUI() {\n\t\tinitComponents();\n\t}", "protected void initializeGUI() {\n\n\t}", "protected void initControls() {\n\t\tbind(true);\n\t}", "public void initGui()\n {\n StringTranslate var2 = StringTranslate.getInstance();\n int var4 = this.height / 4 + 48;\n\n this.controlList.a...
[ "0.79901206", "0.79446626", "0.786901", "0.7867311", "0.7782145", "0.77776873", "0.77660096", "0.77660096", "0.77451384", "0.772415", "0.7715341", "0.7623183", "0.7620059", "0.76057327", "0.75927114", "0.7584948", "0.7577769", "0.753253", "0.7531467", "0.75246537", "0.751937"...
0.0
-1
Defines model for the articles JTable component.
public void setUpTheTable() { articleTable = new JTable(); // Get the data from the Data Set data = getTableData(); // Create a model of the data. articleTableModel = new AbstractTableModel() { /** * */ private static final long serialVersionUID = -8868431326664067555L; // These ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public formArticulo() {\r\n initComponents();\r\n this.tableModel = (javax.swing.table.DefaultTableModel)tblArt.getModel();\r\n }", "private DefaultTableModel createModel() {\n List list = getDefaultInitialData();//obtenemos toda la lista a mostrar\n Vector data = new Vector();//ve...
[ "0.68776155", "0.6380108", "0.62958854", "0.62826455", "0.6276558", "0.6236116", "0.61382306", "0.61237925", "0.6087304", "0.60815275", "0.6077617", "0.60290366", "0.60143685", "0.6010537", "0.60060257", "0.5992201", "0.5987181", "0.5950387", "0.5949094", "0.5922003", "0.5907...
0.6764674
1
These methods always need to be implemented.
public int getColumnCount() { return columnNameList.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tprotected void getExras() {\n\...
[ "0.69676894", "0.68694025", "0.6779407", "0.67545104", "0.67275935", "0.66069394", "0.6578718", "0.6571579", "0.6571579", "0.6505029", "0.6458025", "0.6458025", "0.6456107", "0.6434018", "0.6417252", "0.64021987", "0.6372583", "0.63617104", "0.63617104", "0.63617104", "0.6361...
0.0
-1
The default implementations of these methods in AbstractTableModel would work, but we can refine them.
public String getColumnName(int theCol) { return columnNameList[theCol]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void tableChanged(TableModelEvent arg0) {\n\t\t\n\t}", "@Override\r\n public void tableChanged(TableModelEvent e) {\n\r\n }", "public interface QueryTableModel extends FilterableTableModel,\n SortableTableModel {\n\n /**\n * Returns the object identifier for the specifie...
[ "0.72312444", "0.7132677", "0.69047594", "0.6662157", "0.65793914", "0.6517521", "0.6436878", "0.6436878", "0.6436878", "0.6427072", "0.64225304", "0.62970066", "0.6294535", "0.62755686", "0.6210983", "0.6171738", "0.6159625", "0.61506724", "0.60943943", "0.60876817", "0.6076...
0.0
-1
Retrieves the articles, subjects, scores, and ratings from the table.
private Object[][] getTableData() { Object[][] lclArray = null; if (articles.size() == 0) { lclArray = new Object[1][NUM_COLS]; lclArray[0][0] = ""; lclArray[0][1] = ""; lclArray[0][2] = ""; return lclArray; } // no articles yet !!!! if (articles != null) { lclArray...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Query(\"select firstName,score from Student\")\n\tList<Object[]> findAllStudentWithScores();", "@Override\n\tpublic ArrayList<Teacher> fetchDetails() throws myException {\n\t\tConnection con = GetConnection.getConnection();\n\t\tResultSet rs = null;\n\t\tString query = \"select * from teacher\";\n\t\tStatement ...
[ "0.57847905", "0.5749133", "0.5690018", "0.5665959", "0.5595886", "0.5577468", "0.551333", "0.5490505", "0.54583144", "0.54415065", "0.5419075", "0.53751326", "0.5372681", "0.53688365", "0.5346198", "0.53182924", "0.5293987", "0.52937996", "0.5281057", "0.52798724", "0.527699...
0.57935923
0
Change the contents of the SCORE column in the table only!
private void updateTableData() { if (articles.size() == 0) { return; // no agent data yet !!!! } for (int i = 0; i < articles.size(); i++) { NewsArticle article = (NewsArticle) articles.elementAt(i); String score = "0.0"; switch (filterType) { case FilterAgent.USE_KEYWORDS:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void changeScore(String score) {\n typeScore(score);\n saveChanges();\n }", "public void setScore(int newScore){\n\t\tthis.score = newScore;\n\t}", "private void showScore(Skin skin) {\r\n \tif(PlayerProfileManager.getInstance().getCurrentPlayerProfile().getCurrentLevelProfile().isTu...
[ "0.6655419", "0.6335718", "0.6208788", "0.6187832", "0.6187237", "0.6136762", "0.60297674", "0.60182977", "0.5931927", "0.59231097", "0.5904938", "0.58916724", "0.5890449", "0.58787936", "0.5875044", "0.5872771", "0.58667827", "0.5858996", "0.5849804", "0.58462656", "0.584291...
0.0
-1
Updates the table data and sends an event to refresh the screen.
private void updateTable() { updateTableData(); TableModelEvent e = new TableModelEvent(articleTableModel); articleTable.tableChanged(e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void refresh() {\n calcDataInTable();\n fireTableDataChanged();\n\n}", "public void refreshData() {\r\n\t\tfireTableDataChanged();\r\n\t\tgetTable().tableChanged(new TableModelEvent(this));\r\n\t}", "private void refreshTable() {\n data = getTableData();\n updateTable();\n }", "pu...
[ "0.80090636", "0.7901349", "0.7865443", "0.7738539", "0.7699396", "0.7577084", "0.7459175", "0.7443131", "0.7181841", "0.70911586", "0.702626", "0.6987228", "0.6900099", "0.6897901", "0.68532205", "0.6838228", "0.6836183", "0.6820371", "0.6793353", "0.6787245", "0.67825943", ...
0.716635
9
Refreshes the table with changed data.
private void refreshTable() { data = getTableData(); updateTable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void refreshData() {\r\n\t\tfireTableDataChanged();\r\n\t\tgetTable().tableChanged(new TableModelEvent(this));\r\n\t}", "public void refreshTable() {\n\t\tmyTable.refreshTable();\n\t}", "public void updatedTable() {\r\n\t\tfireTableDataChanged();\r\n\t}", "public void refresh() {\n calcDataInTa...
[ "0.8533058", "0.8022267", "0.7939184", "0.79233176", "0.77800465", "0.77407473", "0.75946945", "0.7569949", "0.7566072", "0.74808216", "0.74564004", "0.74120224", "0.73207325", "0.72620344", "0.7140194", "0.7118299", "0.70180213", "0.698845", "0.6987525", "0.6944013", "0.6895...
0.8486583
1
Displays the About dialog.
public void helpAbout_actionPerformed(ActionEvent e) { AboutDialog dlg = new AboutDialog(this, "About InfoFilter Application", true); Point loc = this.getLocation(); dlg.setLocation(loc.x + 50, loc.y + 50); dlg.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showAboutDialog() {\n\n view.aboutDialog();\n }", "private void showAbout() {\r\n\t\tshowMessage(\"About\", \" Curtis Baldwin's Intelligent Building\"); // About message created when about button\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// pressed\r\n\t}", "private void displayAboutDialog(...
[ "0.81436515", "0.81346494", "0.7852425", "0.77715874", "0.7751997", "0.7730385", "0.76846915", "0.7678017", "0.76696295", "0.76653546", "0.76109064", "0.7578868", "0.75236446", "0.7487897", "0.74618685", "0.7414761", "0.731694", "0.73054826", "0.7294752", "0.7288645", "0.7233...
0.78250426
3
Closes or repaints the window.
protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if (e.getID() == WindowEvent.WINDOW_CLOSING) { fileExit_actionPerformed(null); } else if (e.getID() == WindowEvent.WINDOW_ACTIVATED) { e.getWindow().repaint(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void closeWindow() {\n\t\tgetDriver().close();\n\n\t}", "public void close() {\r\n dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));\r\n }", "public void close()\n {\n\n window.close();\n try\n {\n screen.close();\n }\n catch (IO...
[ "0.76980853", "0.7642671", "0.7401788", "0.73552614", "0.72254527", "0.72016776", "0.7167416", "0.7166391", "0.7110225", "0.71099555", "0.710857", "0.7108269", "0.7095814", "0.7076993", "0.6988154", "0.6986329", "0.69850546", "0.6969117", "0.69325477", "0.6869683", "0.6847513...
0.0
-1
Cuts an article from the table.
void cutMenuItem_actionPerformed(ActionEvent e) { int selectedRow = articleTable.getSelectedRow(); if ((selectedRow == -1) || (articles.size() == 0)) { return; //nothing selected } System.out.println("cut() row " + selectedRow + " selected "); articles.removeElementAt(selectedRow); // remov...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void tampilkan() {\n int row = table.getRowCount();\n for(int a= 0; a<row;a++){\n model.removeRow(0);\n }\n \n \n }", "public void deleteArticle(Article article);", "public void removeByArticle(java.lang.String articleId);", "public void removeByArticle(jav...
[ "0.5396784", "0.53198045", "0.5283766", "0.5283766", "0.52571976", "0.5215148", "0.5213089", "0.5207482", "0.5181703", "0.5167315", "0.5163092", "0.5142228", "0.5097423", "0.5087656", "0.50595313", "0.5013676", "0.5011938", "0.49975333", "0.49821588", "0.49682122", "0.4945861...
0.59669983
0
Filters the articles based on keywords.
void useKeywordsCheckBoxMenuItem_actionPerformed(ActionEvent e) { filterType = FilterAgent.USE_KEYWORDS; filterArticles(); this.setTitle(titleBarText + " - using Keywords"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateFilteredPersonList(Set<String> keywords);", "public void filterArticles() {\n filterAgent.score(articles, filterType);\n articles = insertionSort(articles); // sorted articles list\n\n refreshTable();\n if (articles.size() > 0) {\n currentArt = (NewsArticle) articles.elementAt(0);\n ...
[ "0.6596807", "0.6552934", "0.64706224", "0.64706224", "0.6423165", "0.6378569", "0.6246388", "0.6214907", "0.60973626", "0.58842534", "0.5874889", "0.5847101", "0.5822073", "0.5822073", "0.58025944", "0.57719356", "0.57574", "0.57432485", "0.56891745", "0.56803966", "0.560742...
0.65391684
2
Filters the articles based on feedback.
void useFeedbackCheckBoxMenuItem_actionPerformed(ActionEvent e) { filterType = FilterAgent.USE_PREDICTED_RATING; filterArticles(); this.setTitle(titleBarText + " - using Predicted Ratings"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void filterArticles() {\n filterAgent.score(articles, filterType);\n articles = insertionSort(articles); // sorted articles list\n\n refreshTable();\n if (articles.size() > 0) {\n currentArt = (NewsArticle) articles.elementAt(0);\n }\n }", "void onFilterChanged(ArticleFilter filter);"...
[ "0.70824426", "0.6206561", "0.5884087", "0.56669295", "0.5628334", "0.56246567", "0.5517802", "0.54951656", "0.5453006", "0.5441501", "0.52586603", "0.52539474", "0.52200294", "0.52135926", "0.5204785", "0.5186186", "0.5176225", "0.514418", "0.51324135", "0.51321024", "0.5106...
0.6065613
2
Enables using clusters for filtering after the network was trained.
public void clusterNetTrained() { useClustersCheckBoxMenuItem.setEnabled(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Clusters()\r\n\t{\r\n\t\tcluster = new boolean[MAX_CLUSTERS];\r\n\t}", "protected void startClusterer() {\r\n\t\tif (m_RunThread == null) {\r\n\t\t\tm_StartBut.setEnabled(false);\r\n\t\t\tm_timer.setEnabled(false);\r\n\t\t\tm_StopBut.setEnabled(true);\r\n\t\t\tm_ignoreBut.setEnabled(false);\r\n\t\t\tm_Run...
[ "0.6136013", "0.5909463", "0.5871389", "0.58474255", "0.582008", "0.5758247", "0.56657445", "0.5597182", "0.5565172", "0.556422", "0.55470043", "0.5541474", "0.55098164", "0.54633516", "0.54223835", "0.5412656", "0.5386703", "0.5382989", "0.5353245", "0.5352316", "0.53279215"...
0.78313494
0
Enables using feedback for filtering after the network was trained.
public void ratingNetTrained() { useFeedbackCheckBoxMenuItem.setEnabled(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void useFeedbackCheckBoxMenuItem_actionPerformed(ActionEvent e) {\n filterType = FilterAgent.USE_PREDICTED_RATING;\n filterArticles();\n this.setTitle(titleBarText + \" - using Predicted Ratings\");\n }", "void enableFilter(boolean enable);", "public static void setProvideFeedback(boolean b){\n\t\tpr...
[ "0.67774177", "0.6101655", "0.59573424", "0.58044267", "0.57608634", "0.57483745", "0.5684959", "0.5681861", "0.5607863", "0.548318", "0.54730237", "0.5425927", "0.5423431", "0.5407094", "0.5399966", "0.5382282", "0.5370932", "0.53611356", "0.5329978", "0.53037703", "0.529314...
0.7470537
0
Filter the articles by scoring and sorting the articles, then refresh the table.
public void filterArticles() { filterAgent.score(articles, filterType); articles = insertionSort(articles); // sorted articles list refreshTable(); if (articles.size() > 0) { currentArt = (NewsArticle) articles.elementAt(0); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateTableData() {\n if (articles.size() == 0) {\n return; // no agent data yet !!!!\n }\n for (int i = 0; i < articles.size(); i++) {\n NewsArticle article = (NewsArticle) articles.elementAt(i);\n String score = \"0.0\";\n\n switch (filterType) {\n case FilterAge...
[ "0.67154765", "0.6080022", "0.58795637", "0.5878155", "0.5719266", "0.5678972", "0.56152946", "0.5530133", "0.5503977", "0.54163647", "0.5387047", "0.5367342", "0.5325641", "0.53120697", "0.52760005", "0.52494586", "0.5245096", "0.52253795", "0.52102447", "0.51956695", "0.519...
0.7096167
0
Sorts the articles by decreasing order of score.
Vector<NewsArticle> insertionSort(Vector<NewsArticle> articles) { int i, j; int size = articles.size(); NewsArticle sortedList[] = new NewsArticle[articles.size()]; articles.copyInto(sortedList); NewsArticle temp; for (i = 1; i < size; i++) { temp = sortedList[i]; j = i; w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "public void sortScoresDescendently(){\n this.langsScores.sort((LangScoreBankUnit o1, LangScoreBankUnit o2) -> {\n return Double.compare(o2.getScore(),o1.getScore())...
[ "0.75112903", "0.7401936", "0.691719", "0.6806333", "0.6732906", "0.67103785", "0.6458455", "0.6428103", "0.6423931", "0.63982296", "0.6363895", "0.63492084", "0.62840754", "0.62238526", "0.6220715", "0.6201677", "0.6195109", "0.6179277", "0.6153296", "0.6095048", "0.6060291"...
0.5919862
29
Opens a filter agent customizer.
void keywordsMenuItem_actionPerformed(ActionEvent e) { Class<?> customizerClass = filterAgent.getCustomizerClass(); if (customizerClass == null) { trace("Error can't find FilterAgent customizer class"); return; } // found a customizer, now open it Customizer customizer = null; try...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init() {\n // see if a serialized FilterAgent exists\n try {\n FilterAgent tmpFilterAgent = FilterAgent.restoreFromFile(FilterAgent.fileName);\n if (tmpFilterAgent != null) filterAgent = tmpFilterAgent;\n } catch (Exception e) {\n // no error, just catch the exception and use def...
[ "0.5933583", "0.57724524", "0.5742737", "0.56368154", "0.5343283", "0.53179866", "0.5302726", "0.525375", "0.52212256", "0.5140239", "0.51194626", "0.51171106", "0.51033694", "0.5089851", "0.50361997", "0.49786562", "0.49618024", "0.49347755", "0.49181023", "0.49181023", "0.4...
0.68970513
0
Adds an article to the profile.
void addArticleMenuItem_actionPerformed(ActionEvent e) { // open the profile file and append the // score data for this article filterAgent.addArticleToProfile(currentArt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void addArticle(Article article) {\n\n remoteDataSource.addArticle(article);\n\n }", "void addArticle(Article a);", "protected void addArticle(NewsArticle art) {\n articles.addElement(art); // add to Vector\n filterAgent.score(art, filterType); // score the art...
[ "0.74927396", "0.69896346", "0.6740346", "0.6553361", "0.6169812", "0.61396235", "0.6001212", "0.5910497", "0.58533764", "0.58246213", "0.57628995", "0.57348466", "0.5695754", "0.56770855", "0.5667094", "0.56515795", "0.5645762", "0.5600104", "0.5583034", "0.5522026", "0.5506...
0.6324335
4
Adds all articles to the profile.
void addAllMenuItem_actionPerformed(ActionEvent e) { // open the profilefile and append the // score data for all articles filterAgent.addAllArticlesToProfile(articles); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void addArticle(Article article) {\n\n remoteDataSource.addArticle(article);\n\n }", "@Override\n public void loadArticles() {\n mUserArticlesDownloaded = false;\n mGroupArticlesDownloaded = false;\n\n //to load user articles\n loadUserArticles();\n\...
[ "0.638924", "0.60039735", "0.595656", "0.58406556", "0.5724678", "0.570719", "0.5683196", "0.5573867", "0.55277926", "0.5486352", "0.54549927", "0.54244447", "0.54066616", "0.5371684", "0.5342048", "0.53392994", "0.53381944", "0.53193635", "0.5316731", "0.5284271", "0.5266346...
0.6124653
1
Loads and scores an article.
void loadArticleMenuItem_actionPerformed(ActionEvent e) { // Action from Open... Show the OpenFileDialog openFileDialog.show(); String fileName = openFileDialog.getFile(); if (fileName != null) { NewsArticle art = new NewsArticle(fileName); art.readArticle(fileName); articles.addEle...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadArticle() {\n String filename = getFilesDir().getAbsolutePath() + \"/article\" + article.getId();\n if (Build.VERSION.SDK_INT >= 19)\n filename += \".mht\";\n File file = new File(filename);\n if (file.exists()) {\n Log.i(\"loadArticle\", \"Article...
[ "0.63247925", "0.60632026", "0.6028934", "0.59982425", "0.5849881", "0.55158913", "0.5504981", "0.5452923", "0.5452923", "0.54422134", "0.53930527", "0.537227", "0.53665715", "0.5362213", "0.5360756", "0.5312819", "0.5309959", "0.5309959", "0.5303891", "0.5303694", "0.5298139...
0.5864818
4
Displays the About dialog.
void aboutMenuItem_actionPerformed(ActionEvent e) { AboutDialog dlg = new AboutDialog(this, "About InfoFilter Application", true); Point loc = this.getLocation(); dlg.setLocation(loc.x + 50, loc.y + 50); dlg.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showAboutDialog() {\n\n view.aboutDialog();\n }", "private void showAbout() {\r\n\t\tshowMessage(\"About\", \" Curtis Baldwin's Intelligent Building\"); // About message created when about button\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// pressed\r\n\t}", "private void displayAboutDialog(...
[ "0.81436515", "0.81346494", "0.7852425", "0.78250426", "0.7751997", "0.7730385", "0.76846915", "0.7678017", "0.76696295", "0.76653546", "0.76109064", "0.7578868", "0.75236446", "0.7487897", "0.74618685", "0.7414761", "0.731694", "0.73054826", "0.7294752", "0.7288645", "0.7233...
0.77715874
4
Opens the NewsReaderAgent Customizer dialog and allows the user to download articles.
void downloadNewsGroupMenuItem_actionPerformed(ActionEvent e) { Class<?> customizerClass = newsReaderAgent.getCustomizerClass(); if (customizerClass == null) { trace("Error can't find NewsReaderAgent customizer class"); return; } // found a customizer, now open it Customizer customizer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void downloadURLMenuItem_actionPerformed(ActionEvent e) {\n Class<?> customizerClass = uRLReaderAgent.getCustomizerClass();\n\n if (customizerClass == null) {\n trace(\"Error can't find URLReaderAgent customizer class\");\n return;\n }\n\n // found a customizer, now open it\n Customizer ...
[ "0.7171192", "0.5555698", "0.552428", "0.53663397", "0.52820593", "0.52799064", "0.5239581", "0.5195685", "0.51581794", "0.5128344", "0.51262295", "0.5118503", "0.50576663", "0.5026678", "0.5009035", "0.50008804", "0.49644536", "0.4963523", "0.49634007", "0.49468037", "0.4942...
0.7258891
0
Scores an article and adds it to the table.
protected void addArticle(NewsArticle art) { articles.addElement(art); // add to Vector filterAgent.score(art, filterType); // score the article refreshTable(); articleTextArea.setText(art.getBody()); articleTextArea.setCaretPosition(0); // move cursor to start of article addArticle...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addScore(int score);", "void addScore() throws ClassNotFoundException, SQLException, ParseException{\n /* \n TODO check if the score in the valid range\n TODO get the last entry and check if not the same\n TODO ADD option to custom the date\n TODO check if score not...
[ "0.64004076", "0.60249174", "0.59909046", "0.5963562", "0.59402514", "0.5934486", "0.5921517", "0.5881819", "0.58420706", "0.5801605", "0.5796738", "0.5710226", "0.57073927", "0.5673349", "0.5672383", "0.56615245", "0.5636066", "0.563205", "0.5626186", "0.5625042", "0.5615967...
0.53983456
39
Displays a message in the bottom pane of the application.
synchronized void trace(String msg) { articleTextArea.append(msg); articleTextArea.append("\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayMessage(String message) {\n gameWindowController.showMessage(message);\n }", "private void showEndMessage()\n {\n showText(\"Time is up - you win!\", 390, 150);\n showText(\"Your final score: \" + healthLevel + \" points\", 390, 170);\n }", "private void display...
[ "0.69967914", "0.683231", "0.6792136", "0.6789746", "0.6720244", "0.6712865", "0.66961056", "0.667498", "0.666379", "0.66468906", "0.6643809", "0.6642556", "0.6600967", "0.65950304", "0.6565782", "0.65580666", "0.65445596", "0.65245366", "0.6522515", "0.6516245", "0.6499262",...
0.0
-1
Processes a CIAgentEvent (does not queue it).
public void postCIAgentEvent(CIAgentEvent event) { processCIAgentEvent(event); // don't queue, just process }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void processEvent(Event event) {\n\t\t\n\t}", "public abstract void processEvent(Object event);", "public void process(WatchedEvent event) {\n\t\t\n\t}", "@Override\n public void onEvent(Event event) {\n if (event.getClass() != MessageReceivedEvent.class)\n return;\n MessageReceivedEvent m...
[ "0.73902905", "0.7293486", "0.6730797", "0.63535994", "0.62664026", "0.6262465", "0.6155135", "0.61091846", "0.61081517", "0.60627407", "0.60025054", "0.5969383", "0.59507436", "0.5942371", "0.58737653", "0.58705115", "0.5869623", "0.5847761", "0.5844005", "0.58045167", "0.58...
0.79095906
0
Opens the URLReaderAgent customizer and allows the user to get a web page.
void downloadURLMenuItem_actionPerformed(ActionEvent e) { Class<?> customizerClass = uRLReaderAgent.getCustomizerClass(); if (customizerClass == null) { trace("Error can't find URLReaderAgent customizer class"); return; } // found a customizer, now open it Customizer customizer = nul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void openUrlInBrowser(String URL) {}", "void openUrl (String url);", "private static void openWebpage(String url) {\n try {\n new ProcessBuilder(\"x-www-browser\", url).start();\n } catch (IOException e) {\n log.error(e.getMessage(), e);\n }\n }", "public ...
[ "0.61569023", "0.60677576", "0.60331345", "0.60238945", "0.58591086", "0.58499736", "0.5791071", "0.5790965", "0.5666039", "0.56314754", "0.5609393", "0.5496706", "0.54948854", "0.54917276", "0.54834217", "0.54809713", "0.5454561", "0.5406949", "0.54066163", "0.540476", "0.54...
0.6667777
0
System.out.println(bGuideStr + "" + shock.getPartNo());
private static List<BuyersGuide> getGuides(String bGuideStr, Set<String> makes, Shock shock) { List<BuyersGuide> result = new ArrayList<>(); String[] split = bGuideStr.split(","); String currentMake = getCurrentMake(split[0], makes); //Dodge Set<String>currentModels = BilsteinDao...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString()\n\t{\n\t\treturn this.defline + \"\\n\" + this.sequence + \"\\n + \\n\" + this.quality + \"\\n\";\n\t}", "public String toString() {\r\n\t\treturn \"** Book \" + id + \"**\\nPlayground ID:\" + getPlaygroundID() + \"\\nPlayer ID: \" + getPlayerID() + \"\\nHour: \" + hour.toString() + \"\\...
[ "0.6191564", "0.61219114", "0.60376936", "0.6036132", "0.6030993", "0.6026996", "0.60140043", "0.5931146", "0.5931059", "0.5924724", "0.59194314", "0.59135634", "0.591212", "0.59105235", "0.5899693", "0.5887006", "0.5878718", "0.5868422", "0.58613384", "0.58590513", "0.585765...
0.0
-1
TODO Autogenerated method stub
@Override public IBinder onBind(Intent arg0) { return binder; }
{ "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 double getTax() { return 0.04; }
{ "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 double getDiscount() { return 0.0; }
{ "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 double getAdditionalFee() { return 0.0; }
{ "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
Creates new form InventorySentRequestJPanel
public PackageVerificationJPanel(JPanel upc, Business b, UserAccount ua, ShippingRequest sr,InventoryWorkQueueJPanel iwq) { initComponents(); this.b = b; userProcessContainer = upc; userAccount = ua; this.sr = sr; this.iwq=iwq; tempCartList=new ArrayList...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n headerLabel = new javax.swing.JLabel();\n viewInventoryButton = new javax.swing.JButton();\n pickupDeliveryButton = new j...
[ "0.6393012", "0.62380266", "0.6221361", "0.6216759", "0.6191862", "0.6138742", "0.60574055", "0.59999657", "0.59946746", "0.59908164", "0.596525", "0.59537685", "0.5923888", "0.58845854", "0.58655787", "0.5835918", "0.5824837", "0.58232546", "0.5819028", "0.5810624", "0.57968...
0.60368574
7
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); suspectedTable = new javax.swing.JTable(); b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "...
0.0
-1
Get payer information, which is later sent to PayPal for verification
private Payer getPayerInformation() { Payer payer = new Payer(); payer.setPaymentMethod("paypal"); PayerInfo payerInfo = new PayerInfo(); payerInfo.setFirstName("Nguyen").setLastName("Bang").setEmail("huubang2k@gmail.com"); payer.setPayerInfo(payerInfo); return payer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPaymentInformation();", "private Payer getPayer() {\n Payer payer = new Payer();\n payer.setPaymentMethod(\"paypal\");\n\n return payer;\n }", "public java.lang.String getPaymentinformation () {\r\n\t\treturn paymentinformation;\r\n\t}", "public java.lang.String getPaymentin...
[ "0.6854664", "0.67785376", "0.6127298", "0.59959465", "0.59639156", "0.58594507", "0.5762806", "0.5733407", "0.5570368", "0.5560291", "0.54979324", "0.5483001", "0.5467908", "0.5436325", "0.5436325", "0.542164", "0.5420216", "0.53994334", "0.5384472", "0.5350956", "0.5349409"...
0.7776521
0
Specify the urls to which PayPal will redirect during the checkout process
private RedirectUrls getRedirectUrls() { RedirectUrls redirectUrls = new RedirectUrls(); redirectUrls.setCancelUrl("http://localhost:8080/SE2-Ecommerce_WebProject/"); redirectUrls.setReturnUrl("http://localhost:8080/SE2-Ecommerce_WebProject/customer/review_payment"); return redirectUrls; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static URL getUrlForPostSetCheckout()\r\n {\r\n String strUrl = getBaseURL() +\"account_services/api/1.0/payment/paypal/set-checkout\";\r\n return str2url( strUrl );\r\n }", "java.lang.String getPaymentUrl();", "private RedirectUrls getRedirectURLs() {\n RedirectUrls redirectU...
[ "0.6580708", "0.6185172", "0.5964213", "0.53116685", "0.53018224", "0.52925146", "0.5269301", "0.5240341", "0.5224593", "0.516892", "0.516374", "0.5115396", "0.51050466", "0.50790906", "0.5018756", "0.5009753", "0.5001094", "0.4996791", "0.49868697", "0.4979637", "0.49787953"...
0.68585086
0
Get all order details to send to PayPal
private List<Transaction> getTransactionInformation(Map<Integer, CartLine> map) { long subtotal = 0; for (CartLine line : map.values()) { subtotal += line.getUnitPrice() * line.getQuantity(); } Details details = new Details(); details.setShipping("30000"); details.setSubtotal("" + subtotal); detai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List getOrderDetails(OrderDetail orderDetail);", "@GetMapping(\"/order\")\r\n\tprivate ResponseEntity<Object> getAllOrder() \r\n\t{\tOrderDetailsResponse response = new OrderDetailsResponse();\r\n\t\tList<OrderDetailsRequest> ordersDetails = new ArrayList<OrderDetailsRequest>();\r\n\t\tList<OrderDetails> ...
[ "0.6725791", "0.66520196", "0.6590449", "0.64228153", "0.6300457", "0.6299811", "0.6206415", "0.62022275", "0.61918086", "0.61704403", "0.61147153", "0.60999644", "0.6093387", "0.6053128", "0.6028363", "0.6012107", "0.5987661", "0.5934981", "0.5927085", "0.5900395", "0.589286...
0.0
-1
Parse the approved Payment object returned from PayPal. Find approval URL in JSON response.
private String getApprovalLink(Payment approvedPayment) { List<Links> links = approvedPayment.getLinks(); String approvalLink = null; for (Links link : links) { if (link.getRel().equalsIgnoreCase("approval_url")) { approvalLink = link.getHref(); break; } } return approvalLink; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getApprovalLink(Payment approvedPayment) {\n List<Links> links = approvedPayment.getLinks();\n String approvalLink = null;\n\n for (Links link : links) {\n if (link.getRel().equalsIgnoreCase(\"approval_url\")) {\n approvalLink = link.getHref();\n ...
[ "0.6834356", "0.5588958", "0.52519363", "0.51536864", "0.5049637", "0.49789467", "0.48984763", "0.48385644", "0.47774807", "0.47762978", "0.47578356", "0.47056508", "0.4696936", "0.46959114", "0.46602398", "0.46423727", "0.4635081", "0.4630241", "0.46286428", "0.4616108", "0....
0.66002995
1
Context of the app under test.
@Test public void useAppContext() { Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); assertEquals("school.team.musictuner", appContext.getPackageName()); assertEquals(4, 2+2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void useAppContext() {\n assertEquals(\"com.mango.puppet.test\", appContext.getPackageName());\n }", "@Test\n public void useAppContext() {\n Context appContext = getInstrumentation().getTargetContext();\n assertEquals(\"com.example.gestionreunion\", appContext.getPac...
[ "0.7516945", "0.7467958", "0.7436757", "0.73857945", "0.7377741", "0.73710626", "0.73381656", "0.73366123", "0.7323927", "0.72636485", "0.71592945", "0.71090394", "0.70625687", "0.7060787", "0.7038709", "0.7001632", "0.69944626", "0.69030803", "0.68953186", "0.6866805", "0.68...
0.74075013
3
If the signal is a simple harmonic, it will inevitably be a combination of the sin and cos trigonametric functions.
public static double fourierTransform(double[] signal, double sampleWavelength) { double phaseSin = 0.0; //One possible phase for the frequency double phaseCos = 0.0; //The inverse phase for the frequency for (int i = 0; i < signal.length; i++) { double angleTraveled = 2*Math.PI*i/sa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double sin(double number);", "public double cos(double number);", "static double sineWave(double timeInSeconds, double frequency) {\r\n\t\tdouble result= Math.sin(timeInSeconds);\r\n\t\t\t\r\n\t\treturn result; // hint: use Math.sin(...)\r\n\t}", "public static double \t\tsinh(double _x) {\n\t\treturn...
[ "0.6504339", "0.6400562", "0.63417196", "0.63262033", "0.6280592", "0.5990517", "0.5954802", "0.5944235", "0.5943007", "0.5917128", "0.59040684", "0.5883917", "0.5878932", "0.5800635", "0.57990754", "0.5766966", "0.5752918", "0.56974185", "0.5679516", "0.5674232", "0.56679934...
0.5246073
50