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
GPSTracker gpsTracker = new GPSTracker(this);
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(policy); setContentView(R.layout.pratisthan); name= (EditT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public S<T> gps(){\n\t\t gps = new GPSTracker(activity);\n\n // Check if GPS enabled\n if(gps.canGetLocation()) {\n\n double latitude = gps.getLatitude();\n double longitude = gps.getLongitude();\n\n // \\n is for new line\n Toast.makeTe...
[ "0.6822209", "0.6453378", "0.63145965", "0.63072956", "0.62326235", "0.6223749", "0.62154955", "0.61548626", "0.61381984", "0.60731345", "0.6041215", "0.60376704", "0.6021518", "0.6014863", "0.5948089", "0.59412926", "0.5933641", "0.5870668", "0.579983", "0.5790806", "0.57901...
0.0
-1
messageText.setText("MalformedURLException Exception : check script url.");
public void run() { Toast.makeText(Pratisthan.this, "MalformedURLException",Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void invalidURL() {\r\n\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\talert.setTitle(\"Error!\");\r\n\t\talert.setHeaderText(\"\");\r\n\t\talert.setContentText(\"URL oder Datei konnte nicht geladen werden!\");\r\n\t\talert.showAndWait();\r\n\t}", "public void run() {\n ...
[ "0.6796977", "0.6508662", "0.64378613", "0.60334504", "0.58149415", "0.56899256", "0.56813294", "0.5679008", "0.56446815", "0.5636203", "0.563333", "0.5593639", "0.5547349", "0.55387884", "0.55245423", "0.5508687", "0.5472171", "0.5444888", "0.5442041", "0.54335696", "0.54315...
0.6510338
1
messageText.setText("Got Exception : see logcat ");
public void run() { Toast.makeText(Pratisthan.this, "Got Exception : see logcat ",Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showError (String message) {\r\n if(myAnimation != null){\r\n myAnimation.stop();\r\n }\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(ALERT_MESSAGE);\r\n alert.setContentText(message);\r\n alert.show();\r\n }", "private ...
[ "0.67436737", "0.67381394", "0.67364806", "0.6664043", "0.665161", "0.66479826", "0.65887433", "0.6585749", "0.6547962", "0.65233153", "0.65208775", "0.65193295", "0.6511309", "0.6503192", "0.6470329", "0.6427029", "0.6423286", "0.64115405", "0.64011574", "0.64011574", "0.637...
0.66159695
6
Created by Achmad Fauzi on 5/11/2015 : 8:38 PM.
public interface IBaseCustomCard { public void initActions(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {...
[ "0.61068916", "0.6086905", "0.6055935", "0.60299426", "0.59912044", "0.59912044", "0.59759617", "0.5973093", "0.5958929", "0.59524757", "0.5947687", "0.5921408", "0.59205717", "0.59118176", "0.5870166", "0.5862924", "0.5836954", "0.57831615", "0.57831615", "0.57831615", "0.57...
0.0
-1
TODO Autogenerated method stub
@Override public String toString() { return name+" "+age; }
{ "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
public static void main(String[] args) { ImmutableClass ic=new ImmutableClass("Srini", 26); ImmutableClass ic1=new ImmutableClass("fda", 23); System.out.println(ic); System.out.println(ic1); }
{ "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
Define any variables associated with a Piece object here. These variables MUST be private or package private. Initializes a Piece
Piece(int side, Board b) { //YOUR CODE HERE teamSide = side; whichBoard = b; isKinged = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PlayerPiece()\n {\n // initialise instance variables\n //Use the values listed in the comments\n //above that are next to each instance variable\n pieceName = \"no name\";\n pieceType = \"human\";\n currentHealth = 100;\n maxHealth = 100;\n locX = 7...
[ "0.788977", "0.70865834", "0.7037962", "0.70010835", "0.6982032", "0.69796896", "0.690831", "0.6866439", "0.683262", "0.68324786", "0.6818362", "0.6804461", "0.67939204", "0.67906296", "0.6783571", "0.6763456", "0.67490876", "0.6691493", "0.668645", "0.66242963", "0.6618297",...
0.6022448
79
Returns the side that the piece is on
public int side() { //YOUR CODE HERE return teamSide; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Side getSide();", "public String getSide() {\r\n return side;\r\n }", "public double getSide()\n\t{\n\t\treturn this.side;\n\t}", "public int getSide() {\n\t\treturn getLength() ;\n\t}", "public Side getSide() {\r\n\t\treturn side;\r\n\t}", "int side() {\n return s;\n }", "public St...
[ "0.73738563", "0.72190887", "0.7178469", "0.71540374", "0.70938015", "0.7070299", "0.7008975", "0.70078635", "0.7001238", "0.69972813", "0.6850449", "0.6788458", "0.6750187", "0.6638055", "0.66284895", "0.6575012", "0.65153223", "0.6509599", "0.64869833", "0.6484469", "0.6465...
0.6946913
10
Destroys the piece at x, y. ShieldPieces do not blow up
void getBlowUp(int x, int y) { //YOUR CODE HERE whichBoard.remove(x, y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removePiece(int x, int y)\r\n {\r\n if(isValidSqr(x, y)) board[x][y] = null;\r\n }", "public void removeTakenPiece(int xPiece, int yPiece) {\n\t\tSystem.out.println(\"Removing Piece\");\n\t\tChecker checker = model.findChecker(xPiece, yPiece);\n\t\tif((checker.getType() == 1) || (checke...
[ "0.6906196", "0.6675417", "0.6580117", "0.6405999", "0.6402028", "0.6345896", "0.62826127", "0.6266997", "0.6213591", "0.61146593", "0.6089339", "0.6052058", "0.59956443", "0.5992383", "0.59807086", "0.5960242", "0.5932983", "0.5890725", "0.5842881", "0.58413076", "0.58370924...
0.0
-1
Does nothing. For bombs, destroys pieces adjacent to it
void explode(int x, int y) { //Implemented }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAllPieces()\n\t{\n\t\t/* iterate over the rows and columns */\n\t\tfor (int i = 0; i < m_rows; i++) {\n\t\t\tfor (int j = 0; j < m_cols; j++) {\n\t\t\t\tremovePiece(i, j);\n\t\t\t}\n\t\t}\n\t}", "public void clearPieces(){\n for(int i =0; i<WIDTH;i++){\n for(int j = 0 ...
[ "0.700215", "0.68837935", "0.6409743", "0.63946724", "0.6379068", "0.6256745", "0.62020344", "0.6125689", "0.6107003", "0.6095242", "0.606778", "0.6040858", "0.60126156", "0.59775037", "0.59749985", "0.5920031", "0.5907197", "0.5901396", "0.58476835", "0.5823914", "0.5792641"...
0.0
-1
Signals that this Piece has begun to capture (as in it captured a Piece)
void startCapturing() { //YOUR CODE HERE if (hasCaptured() == false) { pieceCaptured = true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void finishCapturing() {\n //YOUR CODE HERE\n\t pieceCaptured = false;\n\t \n }", "public boolean hasCaptured() {\n //YOUR CODE HERE\n\t return pieceCaptured;\n }", "void onMoveTaken(Piece captured);", "private void HandleOnMoveStart(Board board, Piece turn){}", "void onCaptureStart();", ...
[ "0.72458947", "0.65001154", "0.6448025", "0.6201032", "0.6021715", "0.59334606", "0.5923691", "0.58303344", "0.5774576", "0.5774102", "0.57257223", "0.5723131", "0.572299", "0.5685817", "0.564663", "0.56283355", "0.5588448", "0.55395097", "0.55323887", "0.5522229", "0.5520322...
0.71469694
1
Returns whether or not this piece has captured this turn
public boolean hasCaptured() { //YOUR CODE HERE return pieceCaptured; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canCapture(Piece piece, Point start)\n \t{\n \t\t//Piece.Team team = piece.getTeam();\n \t\tPiece.Team opposite = piece.getOppositeTeam();\n \t\t\n \t\tboolean ahead = false;\n \t\tboolean behind = false;\n \t\tint captureAhead = 0;\n \t\tint captureBehind = 0;\n \t\t\n \t\tfor(Direction d : Directi...
[ "0.7257361", "0.72159815", "0.71453774", "0.69508255", "0.6908102", "0.67742336", "0.6711286", "0.66959095", "0.6658683", "0.66488886", "0.6634738", "0.66189563", "0.66058505", "0.66022724", "0.65901786", "0.6550114", "0.6535353", "0.6522154", "0.65043366", "0.6494737", "0.64...
0.8179076
0
Resets the Piece for future turns
public void finishCapturing() { //YOUR CODE HERE pieceCaptured = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reset()\n {\n playersPiece = -1;\n king = false;\n empty = true;\n setTileColor(-1);\n }", "public void reset() {\n // corresponding function called in the Board object to reset piece\n // positions\n board.reset();\n // internal logic res...
[ "0.79925495", "0.76180434", "0.74326044", "0.7364091", "0.73159575", "0.7224876", "0.7118113", "0.703382", "0.70151734", "0.69597554", "0.69110656", "0.68902725", "0.6850069", "0.68184227", "0.6810416", "0.67906094", "0.6789526", "0.6782259", "0.67794603", "0.6775979", "0.675...
0.0
-1
Get configuration from database
public interface ConfigurationService { /** * Get configuration by key * * @param configKey * @return */ Configuration getConfigByKey(String configKey); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getDbConfig(){\n return properties.getProperty(\"dbconfig\");\n }", "private static Configuration getConfigurationFromDb(int conf_id) {\n FrontEndDBInterface db = new FrontEndDBInterface();\n return db.getConfigInformation(conf_id);\n }", "private static Configur...
[ "0.76334524", "0.7472197", "0.7188032", "0.6987251", "0.6897536", "0.6798064", "0.67953414", "0.6699242", "0.6658738", "0.6536337", "0.6441133", "0.64261883", "0.6409851", "0.6399263", "0.6389567", "0.63638484", "0.63444227", "0.6255721", "0.62379175", "0.62116075", "0.620858...
0.0
-1
Get configuration by key
Configuration getConfigByKey(String configKey);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object lookupConfigurationEntry(String key);", "public static String getConfiguration(String key) {\r\n PersistenceManager pm = PMF.getPersistenceManager();\r\n Query query = pm.newQuery(Configuration.class, \"key == \" + key);\r\n query.setUnique(true);\r\n Configuration config = (Configurati...
[ "0.80461556", "0.7845842", "0.73940957", "0.72880244", "0.6830015", "0.68245107", "0.6771834", "0.6766857", "0.6735118", "0.6681937", "0.6642401", "0.66110057", "0.65918446", "0.6489649", "0.648038", "0.6459914", "0.6457625", "0.6431876", "0.6430591", "0.6345703", "0.6345703"...
0.83242697
0
TODO Autogenerated method stub
public static void main(String[] args) { System.setProperty("webdriver.chrome.driver", "C:\\Users\\Samsung\\Documents\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); driver.manage().timeouts().pageLoadTimeout(20,TimeUnit.SECONDS); ...
{ "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
This test checks that the iterators that are returned by GetElements are consistent Previously there were bugs in some stores (2519) where calling GetElements would change the data in the store This meant that the iterator would work when first used, but returned no results when used again Given
@Test @TraitRequirement(StoreTrait.VISIBILITY) public void shouldHaveConsistentIteratorWithVisibilityAndNoAggregation() throws Exception { final Graph noAggregationGraph = createGraphVisibilityNoAggregation(); final Entity testEntity = new Entity(TestGroups.ENTITY, "A"); noAggregationG...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void test19() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1339,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test19\");\n IIOMetadataNode iIOMetadataNode0 = new IIOMetadataNode(\"\");\n NodeListIterator nodeListIterator0 = IteratorUtils...
[ "0.64328104", "0.6348959", "0.6218935", "0.62139773", "0.6212879", "0.6212325", "0.61668545", "0.6152534", "0.6146053", "0.6124383", "0.61240184", "0.6068414", "0.6067032", "0.60545254", "0.604676", "0.6027256", "0.60248196", "0.6019212", "0.5983469", "0.5964698", "0.5948606"...
0.66111994
0
Test of iniciar method, of class ControladorEmpleados.
@Test public void testIniciar() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testResponderEjercicio1(){\n\t\tPlataforma.setFechaActual(Plataforma.getFechaActual().plusDays(1));\n\t\tPlataforma.logout();\n\t\tPlataforma.login(Plataforma.alumnos.get(0).getNia(), Plataforma.alumnos.get(0).getPassword());\n\t\tassertTrue(ej1.responderEjercicio(nacho, array));\n\t\tassertFa...
[ "0.6781296", "0.6723464", "0.6717733", "0.67102927", "0.6675218", "0.65793765", "0.6491765", "0.64802414", "0.64779633", "0.6474259", "0.6470109", "0.6383852", "0.63701034", "0.63687587", "0.63533217", "0.6350182", "0.6349105", "0.6296869", "0.626096", "0.626096", "0.62580806...
0.0
-1
Test of actionPerformed method, of class ControladorEmpleados.
@Test public void testActionPerformed() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent e) {\n\t\t\t\ttry {\r\n\t\t\t\t\tif(\"\".equals(descripcionTF.getText())) {\r\n\t\t\t\t\t\tthrow new Exception(\"La descripcion debe rellenarse\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(!validarNumero(horasTF.getText())) {\r\n\t\t\t\t\t\tthrow new Exception(\"Las horas deben ser po...
[ "0.7324477", "0.72631603", "0.7116372", "0.7110261", "0.6961706", "0.695753", "0.69573593", "0.688887", "0.6872895", "0.6857445", "0.68117315", "0.67915666", "0.67809904", "0.6768793", "0.67564195", "0.67497593", "0.67467815", "0.6746186", "0.6734945", "0.6731255", "0.6726788...
0.0
-1
Test of mouseClicked method, of class ControladorEmpleados.
@Test public void testMouseClicked() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseClicked(MouseEvent e) {\n\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tSystem.out.println(\"vai ficar clikando ai a toa? PATETA\");\n\t\t\t\t\n\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseClicked(MouseE...
[ "0.71109194", "0.705442", "0.7046648", "0.7046648", "0.7046648", "0.701727", "0.7012667", "0.7007732", "0.69978756", "0.69978756", "0.69958305", "0.69954985", "0.6995238", "0.69912034", "0.69848126", "0.6983125", "0.6983125", "0.69826865", "0.6981006", "0.69715655", "0.696422...
0.0
-1
Test of mousePressed method, of class ControladorEmpleados.
@Test public void testMousePressed() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mousePressed(MouseEvent e) {\n }", "@Override\n\t\tpublic void mousePressed(MouseEvent e) {}", "@Override\n public void mousePressed(MouseEvent e)\n {\n }", "@Override\n public void mousePressed(MouseEvent e)\n {\n }...
[ "0.7089948", "0.7077832", "0.70531416", "0.70531416", "0.70494264", "0.70494264", "0.7036521", "0.70359856", "0.70219094", "0.70219094", "0.70219094", "0.7021758", "0.70188516", "0.701247", "0.701247", "0.701247", "0.701247", "0.701247", "0.7009364", "0.70090437", "0.7001915"...
0.0
-1
Test of mouseReleased method, of class ControladorEmpleados.
@Test public void testMouseReleased() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseReleased(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseReleased(MouseEvent e) {}", "public void mouseReleased(MouseEvent e) {}", "public void mouseRele...
[ "0.7494204", "0.74875045", "0.74875045", "0.74516505", "0.74516505", "0.74516505", "0.74514234", "0.74472284", "0.74410695", "0.74410695", "0.74410695", "0.74410695", "0.7438173", "0.7432033", "0.7432033", "0.7432033", "0.7423329", "0.742131", "0.742131", "0.74208474", "0.740...
0.0
-1
Test of mouseEntered method, of class ControladorEmpleados.
@Test public void testMouseEntered() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseEntered(MouseEvent e) {\n }", "public void mouseEntered(MouseEvent e) {\n\n }", "public void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\...
[ "0.77000153", "0.7673298", "0.7631734", "0.7631734", "0.7631734", "0.75962114", "0.75962114", "0.75962114", "0.75962114", "0.75893", "0.7584682", "0.7584682", "0.75817937", "0.7574346", "0.7574346", "0.7574346", "0.7574346", "0.75737196", "0.7571217", "0.7565345", "0.7562819"...
0.0
-1
Test of mouseExited method, of class ControladorEmpleados.
@Test public void testMouseExited() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseExited(MouseEvent e) {\n }", "public void mouseExited(MouseEvent e) {\n }", "public void mouseExited(MouseEvent e) {\n\n }", "public void mouseExited(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseExited(MouseEvent e) {\n \t\t\r\n \t}", "public void mouseEx...
[ "0.81618994", "0.815396", "0.8148067", "0.8140647", "0.8125385", "0.81169003", "0.8104532", "0.8104532", "0.8104532", "0.80886483", "0.8084946", "0.80847394", "0.80847394", "0.80847394", "0.80847394", "0.80782884", "0.80782884", "0.80782884", "0.80782884", "0.8072867", "0.806...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Question2 test = new Question2(); System.out.println(test.repeatEnd("Hello", 3)); System.out.println(test.repeatEnd("Hello", 2)); System.out.println(test.repeatEnd("Hello", 1)); }
{ "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 pn_InfoServer
public pn_InfoServer(JPanel parent, JPanel container) { this.parent = parent; this.container= container; initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupServerInfo() {\n\t\tlogger.trace(\"setupServerInfo() is called\");\n\t\t\n\t\t Object[] message = {\n\t\t \"Server Port:\", kkServerPortField,\n\t\t };\n\n\t\t int option = JOptionPane.showConfirmDialog(null, message, \"Setup Server\", JOptionPane.OK_CANCEL_OPTION);\n\t\t if (option...
[ "0.6072799", "0.58523417", "0.57409376", "0.5733246", "0.5677541", "0.564137", "0.5632024", "0.55820155", "0.55728346", "0.55317974", "0.54756397", "0.5451982", "0.54402816", "0.5426349", "0.54042274", "0.53988457", "0.53911495", "0.5366951", "0.5316949", "0.5312736", "0.5308...
0.5713161
4
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() { pn_Data = new javax.swing.JPanel(); btn_Back = new javax.swing.JButton(); setOpaque(false); pn_Data.setOpaque(false); ...
{ "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
End of variables declaration//GENEND:variables
private void loadPanel(String address, String port) { pn_Hvs pn_hvs = new pn_Hvs(address, port); pn_Data.removeAll(); pn_hvs.setBounds(0, 0, pn_Data.getWidth(), pn_Data.getHeight()); pn_Data.add(pn_hvs); pn_Data.updateUI(); pn_hvs.loadData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1
Validation of User and Check if user already exist or not
public void valid()throws Exception { String login=br.readLine(); boolean alertlogin=true; while(alertlogin) { if(login.equalsIgnoreCase("register"))//if Client select register { String name=br.readLine(); if(serve.nameandpass.containsKey(name)) { //Push Notificatio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean IsUserExist(){\n SignupUser user =roomDB.dao().GetUserData(et_user.getText().toString());\n if(user!=null){\n if(!user.getEmail().isEmpty()){\n Toast.makeText(this, \"User is already registered!\", Toast.LENGTH_SHORT).show();\n return true;\n ...
[ "0.74149436", "0.7377473", "0.71549356", "0.7070444", "0.70695215", "0.70622814", "0.704935", "0.7013171", "0.69989467", "0.6973484", "0.6941182", "0.6920571", "0.69199014", "0.6913807", "0.69036245", "0.6902774", "0.68934244", "0.68838537", "0.6882131", "0.68740636", "0.6872...
0.0
-1
/ JADX WARNING: Code restructure failed: missing block: B:13:0x002b, code lost: if (r4 != 6) goto L_0x008f; / Code decompiled incorrectly, please refer to instructions dump.
public boolean onTouch(android.view.View r4, android.view.MotionEvent r5) { /* r3 = this; boolean r4 = r3.mAnimatingZoomEnding r0 = 1 if (r4 != 0) goto L_0x008f int r4 = r5.getPointerCount() r1 = 2 if (r4 <= r1) goto L_0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void a() {\n block8 : {\n block9 : {\n var1_1 = this.f();\n var2_2 = false;\n if (var1_1) break block8;\n this.j.c();\n var6_3 = this.k;\n var7_4 = this.b;\n var8_5 = (l)var6_3;\n ...
[ "0.72170746", "0.6724726", "0.6724111", "0.6701433", "0.66997635", "0.6688366", "0.6682435", "0.65949684", "0.6591033", "0.6577133", "0.656965", "0.6566517", "0.6566274", "0.65634394", "0.65595603", "0.6513839", "0.6499762", "0.64933395", "0.64766335", "0.64486456", "0.644026...
0.0
-1
/ access modifiers changed from: private
public void removeFromDecorView(View view) { this.mTargetContainer.getDecorView().removeView(view); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104...
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.60593...
0.0
-1
/ access modifiers changed from: private
public void showSystemUI() { this.mTargetContainer.getDecorView().setSystemUiVisibility(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104...
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.60593...
0.0
-1
Constructor from a properties file.
public MapFilter(Properties p, String prefix) { // Properties extends HashTable<Object,Object> so it implements Map. // I need Map<String,T> so I wrap it in a HashMap for simplicity. // Java-8 breaks if we use diamond inference. this(new HashMap<>((Map) p), prefix); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PropertyReader(String propertyFileName)\r\n\t{\r\n\t\tthis.propertyFileName = propertyFileName;\r\n\t}", "public Configuration(File configFile) {\r\n \t\tproperties = loadProperties(configFile);\r\n \t}", "public CMProps(final Properties p, final String filename) {\n super(p);\n final char...
[ "0.72141945", "0.71819913", "0.6964761", "0.69357795", "0.69082487", "0.69056374", "0.684836", "0.6822056", "0.6821428", "0.6805294", "0.67848355", "0.6782666", "0.678217", "0.6766987", "0.6761451", "0.6740497", "0.672405", "0.67189234", "0.6708527", "0.6703886", "0.6700983",...
0.0
-1
Helper to fast filter the map.
public MapFilter<T> filter(String prefix) { // Wrap me in a new filter. return new MapFilter<>(this, prefix); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void filterMapExample() {\n List<String> result = createPeople()\n .stream()\n .filter(predicate)\n .map(Person::getName)\n .map(String::toUpperCase)\n .collect(Collectors.toUnmodifiableList());\n print.accept(result);\...
[ "0.59517753", "0.5938754", "0.5816245", "0.5628316", "0.5617532", "0.55251175", "0.54939973", "0.54726166", "0.54643315", "0.5379356", "0.53667766", "0.5359793", "0.53481096", "0.53337026", "0.52959126", "0.52946013", "0.5284409", "0.526437", "0.52446276", "0.5235485", "0.514...
0.5717572
3
Is this key in me?
@Override public boolean containsKey(Object key) { return entries.containsKey(key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasKey();", "boolean hasKey();", "boolean hasKey();", "boolean hasKey();", "boolean hasKey();", "public boolean hasKey() {\n Item[] items = getRoomContents();\n for (int i = 0; i < items.length; i++) {\n if (items[i].getDesc().equals(\"A shiny gold key.\")) {\n ...
[ "0.76190126", "0.76190126", "0.76190126", "0.76190126", "0.76190126", "0.7214978", "0.71227634", "0.7082379", "0.6960777", "0.6960164", "0.68734276", "0.6872517", "0.68439776", "0.6736861", "0.6721105", "0.6703632", "0.66687995", "0.66607416", "0.66490144", "0.6646442", "0.66...
0.62902313
70
Is this value in me.
@Override public boolean containsValue(Object value) { // Walk the values. for (Map.Entry<String, T> e : entries.values()) { if (value.equals(e.getValue())) { // Its there! return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isStoredInObject() {\r\n return lockValueStored == IN_OBJECT;\r\n }", "public boolean isValue() {\n return value;\n }", "public boolean isValue() {\n switch(this.getType()) {\n case CONSTANT_INTEGER : \n case CONSTANT_FLOAT :\n case...
[ "0.6317208", "0.619321", "0.6189073", "0.618898", "0.61573905", "0.6112634", "0.6111261", "0.60751575", "0.60496837", "0.6017235", "0.59974176", "0.59802127", "0.5948645", "0.59385335", "0.59310424", "0.59170127", "0.5909118", "0.5909118", "0.5909118", "0.5909118", "0.5909118...
0.0
-1
Get the referenced value if present.
@Override public T get(Object key) { return get(key, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Value getReferenceValue();", "@Override\n public Object getReferenced(Optional<?> reference) {\n return reference.orElse(null);\n }", "public Object get() {\n synchronized (lock) {\n if (!set) { throw new IllegalStateException(\"Reference has not been set\"); }\n\n ret...
[ "0.7228913", "0.7189698", "0.71802074", "0.68021524", "0.66517353", "0.63945687", "0.6354037", "0.62688583", "0.62580603", "0.6190723", "0.61795664", "0.61734194", "0.61681384", "0.61347336", "0.612298", "0.6119435", "0.60994446", "0.6086228", "0.60855854", "0.60855854", "0.6...
0.0
-1
Get the referenced value if present.
public T get(Object key, T dflt) { Map.Entry<String, T> e = entries.get((String) key); return e != null ? e.getValue() : dflt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Value getReferenceValue();", "@Override\n public Object getReferenced(Optional<?> reference) {\n return reference.orElse(null);\n }", "public Object get() {\n synchronized (lock) {\n if (!set) { throw new IllegalStateException(\"Reference has not been set\"); }\n\n ret...
[ "0.7228913", "0.7189698", "0.71802074", "0.68021524", "0.66517353", "0.63945687", "0.6354037", "0.62688583", "0.62580603", "0.6190723", "0.61795664", "0.61734194", "0.61681384", "0.61347336", "0.612298", "0.6119435", "0.60994446", "0.6086228", "0.60855854", "0.60855854", "0.6...
0.0
-1
Add to the underlying map.
@Override public T put(String key, T value) { T old = null; // Do I have an entry for it already? Map.Entry<String, T> entry = entries.get(key); // Was it already there? if (entry != null) { // Yes. Just update it. old = entry.setValue(value); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addToMap(){\n\t\tInteger hc = currentQuery.hashCode();\n\t\tif (!hmcache.containsKey(hc)) {\n\t\t\thmcache.put(hc, 0);\n\t\t}else{\n\t\t\tInteger val = hmcache.get(hc) + (currentQuery.getWords().size());\n\t\t\thmcache.put(hc, val);\n\t\t}\n\t}", "private void add(String key) {\n dict = add(di...
[ "0.6846878", "0.6789898", "0.676944", "0.6731316", "0.67104554", "0.66972804", "0.66652656", "0.6523818", "0.6502026", "0.6481582", "0.6464343", "0.6443337", "0.642923", "0.641454", "0.64030313", "0.63977313", "0.63829654", "0.6382297", "0.63118595", "0.63111573", "0.6303543"...
0.0
-1
Get rid of that one.
@Override public T remove(Object key) { // Do I have an entry for it? Map.Entry<String, T> entry = entries.get((String) key); if (entry != null) { entries.remove(key); // Change the underlying map. return map.remove(prefix + key); } return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void unset(){\n\t\tcurrentInst = -1;\n\t}", "public void remove() {\r\n return;\r\n }", "public void supprimerHacker() {\n if (hacker != null) {\n g.getChildren().remove(hacker);\n\n }\n }", "public void unsetRegular()\n {\n synchronized (monitor())\n ...
[ "0.71063393", "0.6857906", "0.6566236", "0.6555239", "0.6539492", "0.6513571", "0.65004414", "0.6496926", "0.6456956", "0.6456956", "0.6456956", "0.6456956", "0.6456956", "0.6456956", "0.6456956", "0.6453192", "0.64129156", "0.64129156", "0.6399447", "0.6391941", "0.63819945"...
0.0
-1
Add all of them.
@Override public void putAll(Map<? extends String, ? extends T> m) { for (Map.Entry<? extends String, ? extends T> e : m.entrySet()) { put(e.getKey(), e.getValue()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addAll(Object... values) {\n verifyModifiable();\n\n if (values.length == 1 && values[0] instanceof Tuple)\n addAll((Tuple) values[0]);\n else\n Collections.addAll(elements, values);\n }", "@Override\n public void addAllElements() {\n addAllSoftwareSystems();\n ad...
[ "0.6991686", "0.6837042", "0.68140954", "0.6725941", "0.6721536", "0.6634401", "0.65485984", "0.6539671", "0.6506794", "0.6491044", "0.64892346", "0.6421861", "0.6417827", "0.63966495", "0.63614935", "0.6336979", "0.63348764", "0.63133115", "0.6312357", "0.63092643", "0.63050...
0.0
-1
Roll them all out into a new ArrayList.
@Override public Collection<T> values() { List<T> values = new ArrayList<>(); for (Map.Entry<String, T> v : entries.values()) { values.add(v.getValue()); } return values; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void prepareArrayLists() {\n mArrQueries = new ArrayList<>(Arrays.asList(DiscoverConstants.RESTAURANT, DiscoverConstants.MUSEUM, DiscoverConstants.HOTEL, DiscoverConstants.CLUB));\n mArrRecyclerViews = new ArrayList<>(Arrays.asList(rvRestaurants, rvMuseums, rvHotels, rvClubs));\n mArrA...
[ "0.6601226", "0.639036", "0.62667567", "0.6258979", "0.62474513", "0.6160662", "0.6096445", "0.6083957", "0.5985295", "0.59672064", "0.5942836", "0.59045595", "0.5897144", "0.5874042", "0.58444995", "0.5808939", "0.57946336", "0.57927716", "0.57852864", "0.5785127", "0.576697...
0.0
-1
Roll them all out into a new TreeSet.
@Override public Set<Map.Entry<String, T>> entrySet() { Set<Map.Entry<String, T>> entrySet = new TreeSet<>(); for (Map.Entry<String, Map.Entry<String, T>> v : entries.entrySet()) { entrySet.add(new Entry<>(v)); } return entrySet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\r\n TreeSet<point> ts1 = new TreeSet<>();\r\n ts1.add(new point(1,1));\r\n ts1.add(new point(5, 5));\r\n ts1.add(new point(5, 2));\r\n\r\n System.out.println(ts1);\r\n }", "public static void main(String[] args) {\r\n\t\tHashSet h1=...
[ "0.64941186", "0.6264445", "0.61970776", "0.6194664", "0.61552054", "0.61494184", "0.61161906", "0.60627174", "0.6058487", "0.6025394", "0.6005958", "0.5995365", "0.598816", "0.5949891", "0.58951026", "0.58767587", "0.58642334", "0.58077276", "0.5791532", "0.5788892", "0.5780...
0.5754236
21
Remember that the value is the entry in the underlying map.
@Override public T getValue() { return entry.getValue().getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void remember(String key, Object value) {\n if (value instanceof Map map) {\n map.forEach((entryKey, entryValue) -> remember(key + OBJECT_KEY_SEPARATOR + entryKey.toString(), entryValue));\n }\n if (value instanceof List list) {\n range(0, list.size()).forEach(i ->...
[ "0.6363502", "0.62468076", "0.6196581", "0.60864735", "0.60732293", "0.60439116", "0.602342", "0.6022729", "0.5948156", "0.59375983", "0.59346604", "0.58570373", "0.5831709", "0.583046", "0.5827214", "0.5823543", "0.5814574", "0.5766113", "0.57635796", "0.5754704", "0.5749699...
0.58870465
11
Remember that the value is the entry in the underlying map.
@Override public T setValue(T newValue) { return entry.getValue().setValue(newValue); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void remember(String key, Object value) {\n if (value instanceof Map map) {\n map.forEach((entryKey, entryValue) -> remember(key + OBJECT_KEY_SEPARATOR + entryKey.toString(), entryValue));\n }\n if (value instanceof List list) {\n range(0, list.size()).forEach(i ->...
[ "0.6363502", "0.62468076", "0.6196581", "0.60864735", "0.60732293", "0.602342", "0.6022729", "0.5948156", "0.59375983", "0.59346604", "0.58870465", "0.58570373", "0.5831709", "0.583046", "0.5827214", "0.5823543", "0.5814574", "0.5766113", "0.57635796", "0.5754704", "0.5749699...
0.60439116
5
Fills CharTermAttribute with the current token text.
public final void getText(CharTermAttribute t) { t.copyBuffer(zzBuffer, zzStartRead, zzMarkedPos-zzStartRead); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final void getText(CharTermAttribute t) {\n t.copyBuffer(zzBuffer, zzStartRead, zzMarkedPos - zzStartRead);\n }", "private void initTermBuffer() {\n if (termBuffer == null) {\n if (termText == null) {\n termBuffer = new char[MIN_BUFFER_SIZE];\n termLength = 0;\n } else {\n i...
[ "0.62463444", "0.6145582", "0.6118295", "0.5996986", "0.5884617", "0.5733993", "0.56272036", "0.56007767", "0.55606574", "0.55272335", "0.551733", "0.54624623", "0.5424525", "0.53693455", "0.5293277", "0.5255325", "0.5252336", "0.518281", "0.5117941", "0.5027711", "0.502214",...
0.6583949
0
Creates a new scanner
SentenceTokenizerImpl(java.io.Reader in) { this.zzReader = in; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Scanner createScanner(File file) {\n Scanner scanner;\n try {\n scanner = new Scanner(file);\n\n } catch (FileNotFoundException e) {\n scanner = null;\n }\n return scanner;\n }", "private ConsoleScanner() {}", "public Parser(Scanner scanner) {\...
[ "0.70184577", "0.6995181", "0.6993494", "0.66455257", "0.66455257", "0.66455257", "0.66455257", "0.66455257", "0.66455257", "0.66455257", "0.66455257", "0.6599448", "0.6569486", "0.6569486", "0.6569486", "0.6569486", "0.6569486", "0.6569486", "0.6510001", "0.6377581", "0.6369...
0.0
-1
Unpacks the compressed character translation table.
private static char [] zzUnpackCMap(String packed) { char [] map = new char[0x110000]; int i = 0; /* index in packed string */ int j = 0; /* index in unpacked array */ while (i < 1182) { int count = packed.charAt(i++); char value = packed.charAt(i++); do map[j++] = value; while (--...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int yy_unpack(String packed, int offset, int [] trans) {\n int i = 0; /* index in packed string */\n int j = offset; /* index in unpacked array */\n int l = packed.length();\n while (i < l) {\n int count = packed.charAt(i++);\n int value = packed.charAt(i++);\n val...
[ "0.6268001", "0.6268001", "0.61182714", "0.61120105", "0.6109145", "0.61077017", "0.61047965", "0.6101135", "0.6101135", "0.6099395", "0.6099287", "0.60950166", "0.6091184", "0.60895145", "0.6088585", "0.6087667", "0.6081806", "0.6081659", "0.608088", "0.60797596", "0.607945"...
0.6102622
7
Closes the input stream.
public final void yyclose() throws java.io.IOException { zzAtEOF = true; /* indicate end of file */ zzEndRead = zzStartRead; /* invalidate buffer */ if (zzReader != null) zzReader.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void close() throws IOException {\n input.close();\n }", "public void closeStream() {\n output.close();\n input.close();\n }", "public void close() {\n\t\ttry {\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public...
[ "0.7759348", "0.7442554", "0.7431424", "0.73467964", "0.7202436", "0.71076065", "0.69819653", "0.6875819", "0.6849541", "0.6823288", "0.67786884", "0.67334956", "0.6719289", "0.66913164", "0.66824675", "0.65635204", "0.656225", "0.65205383", "0.6506908", "0.6488402", "0.64391...
0.63178
48
Resets the scanner to read from a new input stream. Does not close the old reader. All internal variables are reset, the old input stream cannot be reused (internal buffer is discarded and lost). Lexical state is set to ZZ_INITIAL. Internal scan buffer is resized down to its initial length, if it has grown.
public final void yyreset(java.io.Reader reader) { zzReader = reader; zzAtBOL = true; zzAtEOF = false; zzEOFDone = false; zzEndRead = zzStartRead = 0; zzCurrentPos = zzMarkedPos = 0; zzFinalHighSurrogate = 0; yyline = yychar = yycolumn = 0; zzLexicalState = YYINITIAL; if (zzBuf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void yyreset(java.io.Reader reader) {\r\n zzReader = reader;\r\n zzAtBOL = true;\r\n zzAtEOF = false;\r\n zzEOFDone = false;\r\n zzEndRead = zzStartRead = 0;\r\n zzCurrentPos = zzMarkedPos = 0;\r\n zzFinalHighSurrogate = 0;\r\n yyline = yychar = yycolumn = 0;\r\n zzLexical...
[ "0.6697287", "0.6697287", "0.6693725", "0.6686321", "0.6544516", "0.6493272", "0.6353528", "0.6353528", "0.6351495", "0.6351495", "0.6351495", "0.6351495", "0.6351495", "0.6331942", "0.6331942", "0.6079476", "0.60689527", "0.6067086", "0.6067086", "0.6061992", "0.6055418", ...
0.6720135
14
Returns the current lexical state.
public final int yystate() { return zzLexicalState; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LexerState getState() {\n\t\treturn state;\n\t}", "public String getCurrentState() {\n\t\treturn currentState;\n\t}", "public TSLexerState getState() {\r\n \t\treturn state;\r\n \t}", "final public int yystate() {\n return yy_lexical_state;\n }", "final public int yystate() {\n return yy_lexi...
[ "0.777735", "0.7045248", "0.69731486", "0.69486177", "0.69486177", "0.6926388", "0.68727165", "0.6855888", "0.6828191", "0.6828191", "0.6828191", "0.6828191", "0.6828191", "0.68169594", "0.6794179", "0.6780457", "0.67754173", "0.6752172", "0.6720868", "0.66741174", "0.6592735...
0.68280005
44
Enters a new lexical state
public final void yybegin(int newState) { zzLexicalState = newState; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void yybegin(int newState) {\r\n zzLexicalState = newState;\r\n }", "public final void yybegin(int newState) {\r\n zzLexicalState = newState;\r\n }", "public final void yybegin(int newState) {\r\n zzLexicalState = newState;\r\n }", "public final void yybegin(int newState) {\r\n zz...
[ "0.73873174", "0.73873174", "0.73873174", "0.73873174", "0.73873174", "0.72941506", "0.7226648", "0.7226648", "0.71508276", "0.67628527", "0.675286", "0.66516984", "0.62365973", "0.6181515", "0.61330837", "0.6028637", "0.6020987", "0.59391516", "0.59199816", "0.5890798", "0.5...
0.734593
37
Returns the text matched by the current regular expression.
public final String yytext() { return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRegularExpression() {\n\t\treturn enteredText;\n\t}", "java.lang.String getRegex();", "java.lang.String getRegex();", "@Override\r\n\tpublic String getMatch() {\n\t\treturn match;\r\n\t}", "public String getRegex();", "public String getRegEx();", "public String getMatched() {\r\n\t\tre...
[ "0.70918065", "0.6484353", "0.6484353", "0.6231338", "0.6081341", "0.6011239", "0.59774715", "0.5966505", "0.5966505", "0.5966505", "0.5966505", "0.5966505", "0.5966505", "0.5966505", "0.5966505", "0.5966505", "0.5966505", "0.5966505", "0.5966505", "0.5966505", "0.594106", ...
0.5595711
49
Returns the character at position pos from the matched text. It is equivalent to yytext().charAt(pos), but faster
public final char yycharat(int pos) { return zzBuffer[zzStartRead+pos]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final char yycharat(int pos) {\n return input.readText().charAt(pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) {\n return zzBuffer.charAt(zzStartRead+pos);\n }", "public final char yycharat(int pos) ...
[ "0.79012674", "0.7562809", "0.7562809", "0.7562809", "0.7562809", "0.7562809", "0.7562809", "0.7562809", "0.7562809", "0.7484132", "0.7484132", "0.7484132", "0.7484132", "0.7484132", "0.746413", "0.74302125", "0.74302125", "0.7390061", "0.7390061", "0.73842096", "0.73841447",...
0.7513381
31
Returns the length of the matched text region.
public final int yylength() { return zzMarkedPos-zzStartRead; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTextLength();", "public int length() {\r\n\t\treturn text.length();\r\n\t}", "public int getTextLength();", "public int getLength() {\n\t\t\treturn this.text.length();\n\t}", "@Override\r\n \tpublic final int getLength() {\r\n \t\tAssert.isTrue(hasSourceRangeInfo());\r\n \t\treturn getEndPos() - get...
[ "0.6528484", "0.6524071", "0.636394", "0.6363093", "0.61599505", "0.6144468", "0.60899585", "0.6083994", "0.607981", "0.6014312", "0.6012768", "0.60009634", "0.59647894", "0.5935444", "0.5883292", "0.5819961", "0.5805488", "0.57757026", "0.5772788", "0.5771723", "0.57381433",...
0.5758411
54
Reports an error that occured while scanning. In a wellformed scanner (no or only correct usage of yypushback(int) and a matchall fallback rule) this method will only be called with things that "Can't Possibly Happen". If this method is called, something is seriously wrong (e.g. a JFlex bug producing a faulty scanner e...
private void zzScanError(int errorCode) { String message; try { message = ZZ_ERROR_MSG[errorCode]; } catch (ArrayIndexOutOfBoundsException e) { message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; } throw new Error(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void yy_ScanError(int errorCode) {\n String message;\n try {\n message = YY_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = YY_ERROR_MSG[YY_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void yy_ScanError(int errorCode) {\n...
[ "0.6194608", "0.6194608", "0.6183865", "0.57072043", "0.5630518", "0.55534446", "0.55396795", "0.54884464", "0.54847294", "0.5471924", "0.5428808", "0.5340148", "0.53103244", "0.53082144", "0.5302697", "0.5302697", "0.5287284", "0.52871525", "0.52871525", "0.52871525", "0.528...
0.5259511
57
Pushes the specified amount of characters back into the input stream. They will be read again by then next call of the scanning method
public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void pushBack() throws IOException {\n iis.seek(iis.getStreamPosition()-bufAvail);\n bufAvail = 0;\n bufPtr = 0;\n }", "public void finish() {\n charScanner.pushBack(currentCharToken);\n }", "@Override\n public void mark(final int readlimit) {\n input.mark();\n }"...
[ "0.5734373", "0.5665254", "0.5241355", "0.51768184", "0.51327187", "0.5131074", "0.5105206", "0.50397587", "0.5017513", "0.5015112", "0.50047463", "0.5002526", "0.4988889", "0.49811333", "0.49780416", "0.4958394", "0.49544096", "0.49515522", "0.49430543", "0.4930276", "0.4926...
0.0
-1
main method for decompression. Takes command line arguments. To use, type: java Puff inputfilename outputfilename at the commandline prompt.
public static void main(String[] args) throws IOException { ObjectInputStream in = null; // reads in the compressed file FileWriter out = null; // writes out the decompressed file // Check for the file names on the command line. if (args.length != 2) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tDecompress d = new Decompress(args[0]);\n\t\tif(d.data.loadFailure()) {\n\t\t\treturn;\n\t\t}\n\n\t\t//Attempt to read the header and rebuild the original Huffman tree\n\t\td.rebuildTree(d.readHeader());\n\n\t\t//Convert all codes back to their original bitstrings\n\t\...
[ "0.7299599", "0.68286616", "0.6805052", "0.6632482", "0.6397687", "0.62121385", "0.6156839", "0.60779524", "0.6044625", "0.5934504", "0.5908697", "0.5860374", "0.5844901", "0.5842377", "0.5809351", "0.5802865", "0.5776783", "0.5766611", "0.57489395", "0.5725719", "0.57114375"...
0.8276575
0
Draw line dividing hours and events
@Override /** * Defines the look of the day view grid (the division of hours and events throughout the day) * @param c GregorianCalendar holding the year to be drawn * @param d the data model holding event information * @param g2 the graphics package * @param container the container that will rely on this ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void drawTimeLine (Graphics g) {\n g.setColor (parent.parent.parent.rulerColor);\n g.fillRect (0, _yPix - 3 * parent.lineSize, _xPix, 3 * parent.lineSize);\n \n g.setColor (Color.black);\n g.drawLine (0, _yPix - 3 * parent.lineSize, _xPix, _yPix - 3 * parent.lineSize);\n double inchT = pa...
[ "0.6979664", "0.6307929", "0.6276442", "0.5779758", "0.57178503", "0.5693636", "0.5672549", "0.5672061", "0.5668827", "0.5664867", "0.56507814", "0.5576853", "0.55665046", "0.55638444", "0.5550244", "0.54794765", "0.5475542", "0.54671943", "0.5466103", "0.54460496", "0.542222...
0.6835905
1
need to remove this json construction using a library call
public String toJsonMetric() { StringBuilder builder = new StringBuilder("{\"messageType\" : \"view\""); builder.append(",\"nodes\" : ["); int i = 0; for (Node node : getAllNodes().values()) { if (++i != 1) builder.append(","); builder.append("{"); bui...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JSON() {\n\t}", "private JSONHelper() {\r\n\t\tsuper();\r\n\t}", "private JsonUtils() {}", "public JsonUtil() {\r\n this.jsonSerializer = new JSONSerializer().transform(new ExcludeTransformer(), void.class).exclude(\"*.class\");\r\n }", "private JsonUtils() {\n\t\tsuper();\n\t}", "priva...
[ "0.7268276", "0.698319", "0.65493786", "0.6544682", "0.65202993", "0.6460752", "0.642156", "0.63963974", "0.63815343", "0.6352294", "0.6315245", "0.6260852", "0.623344", "0.62270516", "0.61158055", "0.6062165", "0.604908", "0.60352254", "0.6025627", "0.60104865", "0.5993215",...
0.0
-1
Created by IT5 on 2016/7/18.
public interface PageService { @GET("GetHotDownload.xml") Call<ScreenBean> get(@Query("pageNum") String pageNum1, @Query("packNumForOnePage") String packNumForOnePage, @Query("userId") String userId, @Query("codeVersion") String version, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Overrid...
[ "0.60973316", "0.5919157", "0.58695513", "0.5858756", "0.5858569", "0.5858569", "0.58460784", "0.5767306", "0.5733567", "0.5696642", "0.5681928", "0.5678483", "0.5670614", "0.5648026", "0.5636918", "0.56359696", "0.56359696", "0.56359696", "0.56359696", "0.56359696", "0.56274...
0.0
-1
areBothFieldsSet Switches LOGIN button image if both fields are set
public boolean areBothFieldsSet() { if ((!(isEditText1Empty)) && (!(isEditText2Empty))) { this.button1.setImageResource(R.drawable.login); // THIS NEEDS DIFFERENT SRC return true; } else { this.button1.setImageResource(R.drawable.login); re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateButtonLogin() {\n\t\tthis.mButtonLogin.setEnabled(this.mAuthUsername.getText().length() > 0\n\t\t\t\t&& this.mAuthPassword.getText().length() > 0);\n\t}", "private void updateButtonImage() {\n\t\tif(fb.isSessionValid())\n\t\t{\n\t\t\tbutton.setImageResource(R.drawable.logout_button);\n\t\t}\n\t\telse\...
[ "0.58162004", "0.5611916", "0.54685843", "0.543044", "0.53700554", "0.53002495", "0.52810144", "0.5261662", "0.52585715", "0.5232723", "0.5203851", "0.51987714", "0.5158629", "0.51181364", "0.5107644", "0.5094892", "0.5051518", "0.50398093", "0.5038653", "0.50244623", "0.5019...
0.81621975
0
Log.d(TAG, "signInWithEmail:onComplete:" + task.isSuccessful());
@Override public void onComplete(@NonNull Task<AuthResult> task) { if (!task.isSuccessful()) { Log.w("ContentValues", "signInWithEmail", task.getException()); Toast.makeText(loginActivity.this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful()) {\n //Log.w(TAG, \"signInWithEmail\", task.getException());\n Toast.makeText(Login.this, \"Authentication failed.\",\n ...
[ "0.86228204", "0.84089273", "0.77560735", "0.76394325", "0.76308966", "0.7592324", "0.7538918", "0.7530005", "0.74885976", "0.7445116", "0.7436002", "0.73585945", "0.7294236", "0.72671425", "0.7244479", "0.7194257", "0.7167886", "0.7114279", "0.7113086", "0.7110531", "0.71093...
0.84727794
1
addListenerOnButton Listens to the buttons of this activity
public void addListenerOnButton() { //undoButton1 is the undo text for email text field undoButton1.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { mEmailView.setText(""); //clear text in text field } }); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addListenerOnButton() {\n\n\t\t//koppel de button code aan een widget en voeg een onclicklistener toe\n\t\tsettings = (Button) findViewById(R.id.settings);\n\n\t\tsettings.setOnClickListener(new OnClickListener() {\n\t\t\t//koppel de button aan een nieuw xml scherm wat opent\n\t\t\t@Override\n\t\t\tpub...
[ "0.7919145", "0.7858545", "0.7737363", "0.7203439", "0.7113852", "0.69795", "0.691992", "0.6903558", "0.6890577", "0.68187106", "0.6810698", "0.6800299", "0.67976546", "0.67857265", "0.6741794", "0.67236227", "0.67127", "0.66868675", "0.6685191", "0.66814274", "0.66579014", ...
0.0
-1
we need to check that both fields are NOT empty before we call attemptLogin() get text from values entered and trim whitespace
public void onClick(View view) { email = mEmailView.getText().toString().trim(); password = mPasswordView.getText().toString().trim(); //Detect empty fields before allowing user to continue to next activity if(TextUtils.isEmpty(email)){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void login() {\n\t\t \tetUserName.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etUserName);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after)...
[ "0.66842455", "0.6575288", "0.65292084", "0.6503579", "0.6405124", "0.6385137", "0.6348787", "0.63343334", "0.6326252", "0.63115835", "0.6203939", "0.61469364", "0.6145863", "0.61370325", "0.6135625", "0.6115959", "0.61008984", "0.60901815", "0.60851496", "0.60677725", "0.606...
0.55914056
78
declare where you intend to go
public void onClick(View view) { Intent intent = new Intent(loginActivity.this, resetPasswordActivity.class); //now make it happen startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void doHome()\n\t{\n\t\ttry\n\t\t{\n\t\t\tLocation l = getCurrentLocation();\n\t\t\tSourceFile file = l.getFile();\n\t\t\tint module = file.getId();\n\t\t\tint line = l.getLine();\n\n\t\t\t// now set it\n setListingPosition(module, line);\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(get...
[ "0.6503059", "0.60133356", "0.5805242", "0.5766369", "0.5622434", "0.55800796", "0.54610276", "0.54225826", "0.541433", "0.5412642", "0.53938127", "0.5386102", "0.53804606", "0.5354525", "0.5331646", "0.5299764", "0.5293963", "0.52864105", "0.5261076", "0.5229305", "0.521121"...
0.0
-1
CHECK DATABASE IF REQUESTED USERNAME IS TAKEN Get an instance to our database
private void attemptLogin2(String emailString,String passwordString) { FirebaseDatabase skoovyDatabase = FirebaseDatabase.getInstance(); // Get a reference to our userInfo node DatabaseReference currentSkoovyUsers = skoovyDatabase.getReference("userInfo"); mAuth.signInWithEmailAndPas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkUser(String user_name, String passwordd) throws SQLException {\n boolean sucss = false;\n DBConnection db = new DBConnection();\n Connection connection = db.getConnection();\n String sql = \"SELECT * FROM USER WHERE NAME = ? AND PASSWORD = ?\";\n try (Prepare...
[ "0.63857996", "0.63116854", "0.6251701", "0.62436795", "0.62426704", "0.6111629", "0.6093705", "0.60872895", "0.6007904", "0.5987499", "0.5984483", "0.59804684", "0.5974157", "0.5956243", "0.5932462", "0.5905617", "0.58981293", "0.58799857", "0.5859796", "0.58565813", "0.5834...
0.0
-1
Log.d(TAG, "signInWithEmail:onComplete:" + task.isSuccessful());
@Override public void onComplete(@NonNull Task<AuthResult> task) { Toast.makeText(loginActivity.this, "login successful", Toast.LENGTH_SHORT).show(); // If sign in fails, display a message to the user. If sign in succ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful()) {\n //Log.w(TAG, \"signInWithEmail\", task.getException());\n Toast.makeText(Login.this, \"Authentication failed.\",\n ...
[ "0.86228204", "0.84727794", "0.77560735", "0.76394325", "0.76308966", "0.7592324", "0.7538918", "0.7530005", "0.74885976", "0.7445116", "0.7436002", "0.73585945", "0.7294236", "0.72671425", "0.7244479", "0.7194257", "0.7167886", "0.7114279", "0.7113086", "0.7110531", "0.71093...
0.84089273
2
isValidEmail Checks for valid email pattern
public final boolean isValidEmail(String target) { String regExpn = "^(([\\w-]+\\.)+[\\w-]+|([a-zA-Z]{1}|[\\w-]{2,}))@" +"((([0-1]?[0-9]{1,2}|25[0-5]|2[0-4][0-9])\\.([0-1]?" +"[0-9]{1,2}|25[0-5]|2[0-4][0-9])\\." +"([0-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isEmailValid(String email) {\n if(Patterns.EMAIL_ADDRESS.matcher(email).matches()){\n\n return true;\n }else {\n return false;\n }\n// return email.contains(\"@\");\n }", "private boolean isEmailValid(String email) {\n return true;\r\n ...
[ "0.8361054", "0.8253472", "0.8249567", "0.8231512", "0.8197589", "0.8197589", "0.8197589", "0.8197589", "0.8169375", "0.8169375", "0.8164012", "0.813747", "0.81075126", "0.8097763", "0.8075125", "0.80551875", "0.80539006", "0.8045706", "0.8039706", "0.8026346", "0.8024151", ...
0.0
-1
PreArea > Area Before All Calls
public static void preOrder(Node node) { if (node == null) { return; } System.out.print(node.data + " "); preOrder(node.left); preOrder(node.right); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void before();", "protected abstract void before();", "@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}", "void beforeState();", "@Override\n public void preRun() {\n super.preRun();\n }", "@Override\n\tpublic void pre()\n\t{\n\n\t}", "@Override\n public void beforeFirstLogic() {\n ...
[ "0.6280836", "0.6128616", "0.60497004", "0.59966195", "0.59839463", "0.59359694", "0.59275985", "0.58999836", "0.58968663", "0.58115226", "0.5786206", "0.576644", "0.569133", "0.5668904", "0.5662046", "0.5637173", "0.5622047", "0.5595525", "0.5581691", "0.55803156", "0.557489...
0.0
-1
InArea > Area Between the calls i.e. left and right calls
public static void inOrder(Node node) { if (node == null) { return; } inOrder(node.left); System.out.print(node.data + " "); inOrder(node.right); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int area_intersection(int blx1, int bly1, int trx1,int try1, int blx2, int bly2,int trx2,int try2){\r\n\t\tint base = 0, height = 0, area = 0;\r\n\t\r\n\t\tif (blx2>=blx1 && blx2<=trx1){\r\n\t\t\tif (bly2>=bly1 && bly2<=try1){\r\n\tif (trx2<=trx1 && trx2>=blx1){\r\n\tbase = trx2 - blx2;\r\n\theig...
[ "0.6518581", "0.6477939", "0.64069724", "0.6394964", "0.6384945", "0.6355292", "0.6335583", "0.62734765", "0.62698543", "0.6268876", "0.6268876", "0.6261108", "0.6221583", "0.621968", "0.62025666", "0.6201482", "0.61747354", "0.61747354", "0.61718297", "0.61625844", "0.615232...
0.0
-1
PostArea > Area After all calls
public static void postOrder(Node node) { if (node == null) { return; } postOrder(node.left); postOrder(node.right); System.out.print(node.data + " "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void PostRun() {\n }", "@Override\n\tpublic void postRun() {\n\t}", "public void postProcessing() {\n //empty\n }", "@Override\n\tprotected void postRun() {\n\n\t}", "void postProcess();", "void postProcess();", "public void postPerform() {\n // nothing to do by default\n }",...
[ "0.64479667", "0.62154156", "0.6203869", "0.61030734", "0.6044507", "0.6044507", "0.59975195", "0.59703195", "0.5922512", "0.587111", "0.5782436", "0.57541025", "0.5736206", "0.5674558", "0.5620987", "0.5577342", "0.5565753", "0.5565173", "0.5539751", "0.5521554", "0.54900247...
0.0
-1
TLE on Test 10
public static void main(String[] args) throws IOException { //Scanner in = new Scanner(System.in); BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); PrintWriter out = new PrintWriter(System.out); solve(in, out); out.close(); in.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11....
[ "0.67655444", "0.6489419", "0.6434865", "0.63379", "0.6251482", "0.62320954", "0.618996", "0.611339", "0.6078762", "0.6072334", "0.6071053", "0.6050371", "0.5978325", "0.5977962", "0.59554034", "0.5948304", "0.58986175", "0.5895504", "0.5889423", "0.58658314", "0.58638144", ...
0.0
-1
TODO Autogenerated method stub
@Override public void messagesRemoved(MessageCountEvent arg0) { }
{ "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
This Method validates the layout on NonIpoConfirmationScreen
public boolean Verify_NonIpoConfirmation() { boolean flag = false; flag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.THANKYOU_LABEL).isDisplayed(); if(flag){extentLogs.pass("VerifyNonIPOConfirmationScreen_ThankYou", "DISPLAYED"); flag=CommonVariables.CommonDriver.get().findElement(Or...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View checkContentValidation() {\n return null;\n }", "@Override\n public View checkContentValidation() {\n return null;\n }", "public boolean requiresLayout() {\n return false;\n }", "public boolean requiresLayout() {\n return false;\n }", "public boolea...
[ "0.6068885", "0.6068885", "0.5975474", "0.5975474", "0.5911163", "0.59041315", "0.58803093", "0.5605827", "0.5506984", "0.54351395", "0.5433761", "0.5422628", "0.5387947", "0.535486", "0.5329667", "0.5319291", "0.531828", "0.53079784", "0.5296568", "0.5293238", "0.52884674", ...
0.6028444
2
This method verifies the product image container on Order Confirmation page
public boolean VerifyProductDisplayed_OrderConfirmation() { boolean flag = false; flag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.PRODUCTIMAGE).isDisplayed(); if(flag){ extentLogs.pass("VerifyProductImageDisplayedInConfirmationPage", "Displayed"); }else{extentLogs.fail("Veri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean VerifyOrderConfirmation_ProductDetails() {\n\t\tboolean flag = false;\n\t\t\n\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.PRODUCTIMAGE).isDisplayed();\n\t\tif(flag){extentLogs.pass(\"VerifyProductDetails\", \"ProductDetailsareIsDisplayed\");\n\t }else{extentL...
[ "0.74939424", "0.6663336", "0.6644701", "0.65634984", "0.65557885", "0.62045777", "0.61306083", "0.5998328", "0.5835081", "0.57905036", "0.57226866", "0.5644498", "0.5628223", "0.5623271", "0.5599585", "0.5590173", "0.5535719", "0.553438", "0.551006", "0.5501983", "0.5489559"...
0.7821644
0
This method verifies the order details text containers on Order confirmation page
public boolean VerifyOrderDetails_OrderConfirmation(){ boolean flag = false; flag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.PAYMENTCONFIRMATION_LABEL).isDisplayed(); if(flag){extentLogs.passWithCustom("VerifyOrderDetails", "PAYMENTCONFIRMATION_LABEL"); flag=CommonVariables.CommonDri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean VerifyOrderConfirmation_ProductDetails() {\n\t\tboolean flag = false;\n\t\t\n\t\tflag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.PRODUCTIMAGE).isDisplayed();\n\t\tif(flag){extentLogs.pass(\"VerifyProductDetails\", \"ProductDetailsareIsDisplayed\");\n\t }else{extentL...
[ "0.6663509", "0.63565356", "0.63104475", "0.6291492", "0.6244569", "0.6231502", "0.62227076", "0.6190325", "0.61783713", "0.6160289", "0.6120859", "0.61005473", "0.6081764", "0.60544217", "0.6018735", "0.6010437", "0.5944593", "0.5939134", "0.5938001", "0.59143627", "0.591123...
0.742851
0
this method verify the Thank you message
public boolean VerifyOrderConfirmation_ThankYouMessage() { boolean flag = false; flag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.THANKYOU_LABEL).isDisplayed(); if(flag){extentLogs.pass("VerifyOrderDetails", "OrderConfirmationIsDisplayed"); }else{extentLogs.fail("VerifyOrderD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void userShouldGetMessage() {\n assertTextMessage(getTextFromElement(_emailResult), expected, \"Your message has been sent\");\n\n }", "public void thankYou()\n {\n onSales = false;\n clearScreen();\n showText(\"Thank you!\", getHeight()/2, getWidth()/2);\n Greenfo...
[ "0.6877599", "0.6800925", "0.66253066", "0.6437473", "0.6412183", "0.64101887", "0.6396532", "0.63629484", "0.6348592", "0.62060124", "0.6192606", "0.6150602", "0.6095555", "0.6058879", "0.6055063", "0.605182", "0.60498303", "0.6046615", "0.6039108", "0.60303825", "0.60294604...
0.75241137
0
this method verify the Product Details
public boolean VerifyOrderConfirmation_ProductDetails() { boolean flag = false; flag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.PRODUCTIMAGE).isDisplayed(); if(flag){extentLogs.pass("VerifyProductDetails", "ProductDetailsareIsDisplayed"); }else{extentLogs.fail("VerifyProduct...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verifyProduct() throws Throwable{\r\n\t\twdlib.waitForElement(getProductText());\r\n\t\t\r\n\t\tif(!getProductText().getText().equals(\"None Included\"))\r\n\t\t{\r\n\t\t\tReporter.log(getProductText().getText()+\" was deleted\",true);\r\n\t\t\tdeleteProduct();\r\n\t\t}\r\n\t\t\r\n\t}", "public boole...
[ "0.7351959", "0.686737", "0.67898166", "0.6683166", "0.66279596", "0.6586145", "0.6562931", "0.6523211", "0.64704376", "0.6429001", "0.6287754", "0.6214866", "0.6153097", "0.6116875", "0.6113755", "0.61127853", "0.6112196", "0.6081254", "0.59985906", "0.59960586", "0.59905845...
0.70915884
1
this method verify the What's Next Section
public boolean VerifyOrderConfirmation_WhatIsNextSection() { boolean flag = false; flag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.WHATNEXT_SECTION).isDisplayed(); if(flag){extentLogs.pass("VerifyWhat'sNextSection", "What'sNextSectionIsDisplayed"); }else{extentLogs.fail("Ver...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkPairsAndNextStep() {\r\n\t\tsetPairs();\r\n\t\tif (this.criticalPairs != null || this.criticalPairGraGra != null) {\r\n\t\t\tthis.stepPanel.setStep(StepPanel.STEP_FINISH);\r\n\t\t\tthis.nextButton.setText(\"Finish\");\r\n\t\t\tif (this.criticalPairs != null) {\r\n\t\t\t\tthis.criticalPairGraGra = ...
[ "0.6057777", "0.6050942", "0.5941453", "0.587101", "0.58028", "0.5777757", "0.5687827", "0.5635674", "0.56158215", "0.55923843", "0.5572561", "0.55491364", "0.5544951", "0.5502862", "0.54917145", "0.5476489", "0.5435033", "0.54326046", "0.541935", "0.5415547", "0.54096425", ...
0.76195574
0
this method verify the Upon Delivery Section
public boolean VerifyOrderConfirmation_UponDeliverySection() { boolean flag = false; flag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.UPONDELIVERY_SECTION).isDisplayed(); if(flag){extentLogs.pass("VerifyUponDeliverySection", "UponDeliverySectionIsDisplayed"); }else{exten...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void showGuaranteedDeliverySection() {\n\n\t}", "protected void acceptedPaymentVerification() {\n BillingSummaryPage.tableBillingGeneralInformation.getRow(1)\n .getCell(\"Current Due\").waitFor(cell -> !cell.getValue().equals(\"Calculating...\"));\n\n assertThat(B...
[ "0.62875354", "0.61882323", "0.61134785", "0.6109822", "0.610845", "0.60741574", "0.6061516", "0.59854555", "0.59517324", "0.5899606", "0.5799548", "0.57889044", "0.57512033", "0.5716176", "0.5715462", "0.571002", "0.5654914", "0.5638849", "0.5625508", "0.5623772", "0.5611686...
0.7054715
0
this method verify the My Store Section
public boolean VerifyOrderConfirmation_MyStoreSection() { boolean flag = false; flag=CommonVariables.CommonDriver.get().findElement(OrderConfirmationScreen_OR.STOREDETAILS_CONFIRMATIONSECTION).isDisplayed(); if(flag){extentLogs.pass("VerifyMyStoreSection", "MyStoreSectionIsDisplayed"); }else{extentLo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Store verifyStore(int storeId) throws NoSuchElementException {\n\t\tStore store = storeRepository.findOne(storeId);\n\t\tif (store == null) {\n\t\t\tthrow new NoSuchElementException(\"Store does not exist \" + storeId);\n\t\t}\n\t\treturn store;\n\t}", "boolean hasCreateStore();", "boolean hasCompleteS...
[ "0.64814544", "0.63762414", "0.62120354", "0.59811455", "0.59330803", "0.59091043", "0.5908494", "0.5906756", "0.5880941", "0.57983994", "0.5777736", "0.57335895", "0.569237", "0.56713396", "0.5637304", "0.5564905", "0.5523292", "0.5492654", "0.547007", "0.5453426", "0.542655...
0.7028336
0
Attempts to acquire a permit to perform an execution against the rate limiter, waiting until one is available or the thread is interrupted.
default void acquirePermit() { acquirePermits(1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void runOrWait(Runnable task, RateLimiter rateLimiter)\n {\n if (rateLimiter != null)\n task.run();\n else\n FBUtilities.sleepQuietly(durationMillis);\n }", "public void acquire(PriorityQueue waitQueue) \n {\n ...
[ "0.6053757", "0.586138", "0.5767446", "0.5767446", "0.57598466", "0.5658462", "0.5643317", "0.5634519", "0.56130165", "0.5506599", "0.54965144", "0.549376", "0.54772514", "0.5471044", "0.53687024", "0.52929366", "0.527087", "0.52634376", "0.5244946", "0.5237693", "0.5213876",...
0.70610046
0
Returns the value of the 'Name' attribute. If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here...
String getName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getName() {\n\t\treturn (String) attributes.get(\"name\");\n\t}", "public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}", "public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}", "public String getName() {\n\t\treturn (String) get_Value(\"Name...
[ "0.8552948", "0.8311485", "0.8311485", "0.8311485", "0.8164286", "0.81468123", "0.7994057", "0.7994057", "0.7994057", "0.7955556", "0.791245", "0.7835615", "0.78243345", "0.78141195", "0.780532", "0.77809924", "0.7779097", "0.7779097", "0.7779097", "0.7779097", "0.7777842", ...
0.0
-1
Intractable interface... just now realized i've been spelling it wrong this whole time... ooooops...
public interface Interactable { public void interact(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Actions extends EObject\n{\n}", "public interface IPartInteractable extends IPart {\n\n /**\n * Called when the part is right-clicked. Return true if an action occoured, false if nothing happened.\n */\n public boolean onActivated(EntityPlayer player, QRayTraceResult hit, ItemStack...
[ "0.6553645", "0.6309286", "0.629685", "0.6211285", "0.6187746", "0.6110179", "0.60724235", "0.6065377", "0.6040455", "0.6016794", "0.5995005", "0.5986339", "0.59522194", "0.59413815", "0.5933688", "0.59208286", "0.59030217", "0.58994126", "0.58857185", "0.5867717", "0.5861519...
0.61563516
5
Adding a node at the front of the list
@Test public void addNodeAtFront() { System.out.println("Adding a node at the front of the list"); dll.push(3); dll.push(2); dll.push(1); dll.print(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addToFront(ListNode node) {\n\t // new node inserted into the linked list\n\t node.prev = head;\n\t node.next = head.next;\n\n\t \n\t head.next.prev = node;\n\t head.next = node;\n\t }", "public void addFront(E item) {\r\n\t\tNode<E> node = new Node<E>(item, first);\r\n\t\tif(isEmpt...
[ "0.7770789", "0.7667742", "0.76114625", "0.75945973", "0.7590917", "0.7554453", "0.7546705", "0.7480215", "0.7406187", "0.7386033", "0.73851633", "0.735937", "0.7358141", "0.73023474", "0.72493416", "0.72436553", "0.72187793", "0.7217704", "0.7216778", "0.7216546", "0.7148643...
0.78389657
0
/ Given a node as prev_node, insert a new node after the given node
@Test public void addNodeAfterGiveNode() { System.out.println("Given a node as prev_node, insert a new node after the given node "); dll.push(4); dll.push(2); dll.push(1); dll.InsertAfter(dll.head.next, 3); dll.print(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertAfter(Node prev_node, int new_data) \r\n\t\t{ \r\n\t\t if (prev_node == null) \r\n\t\t { \r\n\t\t System.out.println(\"\\nThe given previous node cannot be null\"); \r\n\t\t return; \r\n\t\t } \r\n\t\t \r\n\t\t Node new_node = new Node(new_data); \r\n\t\t new...
[ "0.788065", "0.78140384", "0.7654028", "0.75912696", "0.75235796", "0.751474", "0.74724954", "0.74656206", "0.734163", "0.7149875", "0.69374275", "0.6922505", "0.6723341", "0.6654801", "0.66070926", "0.6583837", "0.65777594", "0.6563741", "0.6539221", "0.6523541", "0.65184194...
0.77529293
2
/ Given a node as prev_node, insert a new node after the given node
@Test public void addNodeBeforeGiveNode() { System.out.println("Given a node as prev_node, insert a new node Before the given node "); dll.push(4); dll.push(3); dll.push(1); dll.InsertBefore(dll.head.next, 2); dll.print(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertAfter(Node prev_node, int new_data) \r\n\t\t{ \r\n\t\t if (prev_node == null) \r\n\t\t { \r\n\t\t System.out.println(\"\\nThe given previous node cannot be null\"); \r\n\t\t return; \r\n\t\t } \r\n\t\t \r\n\t\t Node new_node = new Node(new_data); \r\n\t\t new...
[ "0.788065", "0.78140384", "0.77529293", "0.75912696", "0.75235796", "0.751474", "0.74724954", "0.74656206", "0.734163", "0.7149875", "0.69374275", "0.6922505", "0.6723341", "0.6654801", "0.66070926", "0.6583837", "0.65777594", "0.6563741", "0.6539221", "0.6523541", "0.6518419...
0.7654028
3
Adding a node at the end of the list
@Test public void addNodeAtEnd() { System.out.println("Adding a node at the End of the list"); dll.append(1); dll.append(2); dll.append(3); dll.print(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Node<E> addToEnd(Node<E> node){\n Node<E> previous = tail.getPrevious();\n\n previous.setNext(node);\n node.setPrevious(previous);\n tail.setPrevious(node);\n node.setNext(tail);\n size++;\n\n return node;\n }", "private void addNodeAtTheEnd(int data) {\...
[ "0.76207745", "0.7517215", "0.7479667", "0.74223226", "0.7372176", "0.7329301", "0.7274425", "0.72684", "0.72423476", "0.72237116", "0.7214414", "0.71976346", "0.7190773", "0.7174107", "0.71496135", "0.71072966", "0.71023077", "0.70947087", "0.7079569", "0.70744956", "0.70742...
0.7955855
0
/ There isn't enough memory to open up more than a couple camera photos / So prescale the target bitmap into which the file is decoded / Get the size of the ImageView
private void setPic() { int targetW = Constant.sRealWidth; int targetH = Constant.sRealHeight; /* Get the size of the image */ BitmapFactory.Options bmOptions = new BitmapFactory.Options(); bmOptions.inJustDecodeBounds = true; BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions); int photoW = bmOptions...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getBitmapSize(Uri uri) {\n InputStream is = null;\n try {\n\n is = getInputStream(uri);\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeStream(is, null, options);\n\n ...
[ "0.6816721", "0.67899907", "0.65001935", "0.64407754", "0.6421931", "0.64055586", "0.6348242", "0.6343722", "0.6343722", "0.6343722", "0.62985146", "0.62778157", "0.6246052", "0.6229092", "0.6183319", "0.61674", "0.61474013", "0.61389965", "0.6126405", "0.6110839", "0.6107604...
0.5631242
81
/ Intent mediaScanIntent = new Intent("android.intent.action.MEDIA_SCANNER_SCAN_FILE"); File f = new File(mCurrentPhotoPath); Uri contentUri = Uri.fromFile(f); mediaScanIntent.setData(contentUri); this.sendBroadcast(mediaScanIntent);
private void galleryAddPic() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void scanPhoto(File imageFile)\n {\n Intent mediaScanIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);\n Uri contentUri = Uri.fromFile(imageFile);\n mediaScanIntent.setData(contentUri); \n cordova.getActivity().sendBroadcast(mediaScanIntent);\n }...
[ "0.838517", "0.7437373", "0.74005795", "0.736612", "0.7130314", "0.7110328", "0.68654466", "0.6830617", "0.67516", "0.6687384", "0.6673233", "0.6647163", "0.6632568", "0.66263866", "0.6610477", "0.65426826", "0.6510989", "0.6510073", "0.64754647", "0.64627403", "0.6460569", ...
0.0
-1
width 0f 16 (2 bytes)
public static void main(String[] args) { char myChar = '\u00Ae'; //registered symbol unicode System.out.println("Unicode output was : " + myChar); boolean myBoolean = true; System.out.println("Boolean is = " + myBoolean); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public byte getWidth();", "Length getWidth();", "int getWidth() {return width;}", "public int getWidth() { return width; }", "public int getWidth() { return width; }", "public Integer getWidth(){return this.width;}", "public int getWidth()\n {return width;}", "long getWidth();", "public double w...
[ "0.74336636", "0.71855056", "0.7125993", "0.7076838", "0.7076838", "0.70425385", "0.6993731", "0.69882244", "0.6986043", "0.6964965", "0.69249135", "0.6907562", "0.6884475", "0.68752706", "0.68752706", "0.6837581", "0.682606", "0.6779396", "0.67770386", "0.67643195", "0.67578...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_mygroup, container, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Registers the calling thread with a session that is internally created using the passed in factory.
public static Session register(SessionFactory factory) throws IllegalStateException { if(_sessionRef.get() != null) { throw new IllegalStateException( "Thread already registered with a session"); } Session s = factory.openSession(); _sessionRef.set(s); return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startFactory() {\n if (!isStarted) {\n logger.info(\"Starting SessionListenerFactory.\");\n APIEventBus.getInstance().subscribe(this);\n isStarted = true;\n }\n }", "public abstract Thread startSession();", "protected AbstractDecorator(DecoratorFact...
[ "0.56876016", "0.5331094", "0.5269986", "0.52024347", "0.51255214", "0.5080192", "0.5061709", "0.5018399", "0.5017419", "0.4961972", "0.49565923", "0.4906852", "0.47908145", "0.4790207", "0.4781579", "0.476495", "0.4721929", "0.47138458", "0.47058415", "0.47009587", "0.465231...
0.6946857
0
Registers the calling thread with the given session. If the calling thread is already registered with a session, that registratrion no longer holds and the thread will be registered with the passed in session from now on.
public static void join(Session session){ _sessionRef.set(session); if(!session.isConnected())session.reconnect(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void reconnect(Session session){\n Session current = (Session)_sessionRef.get();\n if(current != null){\n if(current.equals(session)){\n if(!current.isConnected())current.reconnect();\n }\n else{\n throw new IllegalStateException(\"Thread already registered with \" ...
[ "0.5722206", "0.55926836", "0.55423343", "0.55335057", "0.5418575", "0.5396813", "0.53823906", "0.51558", "0.5056138", "0.5054773", "0.49740615", "0.4971971", "0.49682128", "0.49441", "0.49328804", "0.49255204", "0.4911704", "0.4909627", "0.4909627", "0.4902239", "0.4896591",...
0.5095356
8
Unregisters the session that is associated to the calling thread.
public static void unregister(boolean close) { Session s = (Session)_sessionRef.get(); if(s != null){ if(close){ if(s.isOpen()){ s.close(); } } else{ if(s.isConnected()){ s.disconnect(); } } _sessionRef.set(null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void deRegister()\n {\n // stop the thread running...\n logger.debug(\"deregister called - invalidating session\");\n\n // remove from registered listeners and then invalidate the ScriptSession\n clients.remove(wctx.getScriptSession().getId());\n wctx.getSc...
[ "0.7232932", "0.6494761", "0.6424823", "0.63850164", "0.62834513", "0.6235085", "0.6218645", "0.61669946", "0.61312", "0.6105534", "0.605154", "0.60216165", "0.6015975", "0.5967885", "0.5947572", "0.5942717", "0.5916621", "0.59091634", "0.59091634", "0.58820367", "0.58781403"...
0.0
-1
Unjoins the calling thread from the session to which it is currently joined.
public static void unjoin(){ _sessionRef.set(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void unjoinAndClose(){\n Session s = (Session)_sessionRef.get();\n if(s != null){\n s.close();\n }\n }", "public void unpark() {\n Thread w = this.thread;\n if (w != null) {\n this.thread = null;\n LockSupport.unpark(w);\n ...
[ "0.66037977", "0.65117586", "0.61009943", "0.59745413", "0.5702451", "0.5701098", "0.56398106", "0.554041", "0.54749566", "0.54734933", "0.5470359", "0.54476017", "0.5432448", "0.53846264", "0.53772694", "0.5373479", "0.534674", "0.53278905", "0.5321487", "0.53036606", "0.529...
0.742277
0
Unjoins the calling thread from the session to which it is currently joined, and closes that session.
public static void unjoinAndClose(){ Session s = (Session)_sessionRef.get(); if(s != null){ s.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void unjoin(){\n _sessionRef.set(null);\n }", "public void closeSessionForThread() {\n Session session = THREADED_SESSION.get();\n THREADED_SESSION.set(null);\n THREADED_TRANSACTION.set(null);\n if (session != null) {\n if (session.isOpen()) {\n ...
[ "0.7260896", "0.6842732", "0.6035267", "0.5975705", "0.59368646", "0.58719766", "0.5814754", "0.5780242", "0.5751151", "0.5731497", "0.5705615", "0.5699232", "0.5690072", "0.5689392", "0.56547016", "0.5635149", "0.5632411", "0.5591962", "0.55419755", "0.55387735", "0.5528711"...
0.7941233
0
Returns the session that is registered with the calling thread.
public static Session currentSession() throws IllegalStateException { Session s; if((s = (Session) _sessionRef.get()) == null) { throw new IllegalStateException("Thread not registered with a session"); } if(!s.isConnected()){ s.reconnect(); } return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Session currentSession() {\n \tif (sessionFactory == null) {\n \t\tinitialize();\n \t}\n \tif (singleSessionMode) {\n \t\tif (singleSession == null) {\n \t\t\tsingleSession = sessionFactory.openSession();\n \t\t}\n \t\treturn singleSession;\n \t} else {\n\t Session s...
[ "0.69342136", "0.6845705", "0.68354595", "0.68283415", "0.6774873", "0.6774873", "0.6719191", "0.6625134", "0.6618828", "0.66082567", "0.66081923", "0.66036874", "0.6602485", "0.6588429", "0.65738976", "0.6565161", "0.6517206", "0.6505868", "0.65013736", "0.6472408", "0.64619...
0.66073626
11
Returns the current session, or internally creates one if none is registered with the current thread that new session is registered with the current thread prior to being returned.
public static Session createSession(SessionFactory factory){ Session s; if((s = (Session) _sessionRef.get()) == null) { s = factory.openSession(); _sessionRef.set(s); } else{ if(!s.isConnected())s.reconnect(); } return s; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Session currentSession() {\n \tif (sessionFactory == null) {\n \t\tinitialize();\n \t}\n \tif (singleSessionMode) {\n \t\tif (singleSession == null) {\n \t\t\tsingleSession = sessionFactory.openSession();\n \t\t}\n \t\treturn singleSession;\n \t} else {\n\t Session s...
[ "0.81960994", "0.8006164", "0.77685666", "0.75284797", "0.7441985", "0.73645854", "0.7340176", "0.72418165", "0.7100811", "0.7082696", "0.70751166", "0.70751166", "0.6995112", "0.6993369", "0.6989256", "0.6987784", "0.69509405", "0.6916473", "0.6889823", "0.6889823", "0.68767...
0.0
-1