query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Control Class > Java/Pascal Interface ... private Context context = null; GUIDELINE: please, preferentially, init all yours params names with "_", ex: int _flag, String _hello ...
public jHelloAdder(Controls _ctrls, long _Self) { //Add more others news "_xxx" params if needed! //super(_ctrls.activity); //context = _ctrls.activity; pascalObj = _Self; controls = _ctrls; }
[ "public interface Context {\n Object getParameter(Object key);\n\n void setParameter(Object key, Object value);\n}", "Context mo75888b();", "public interface IContext {\n Object getParameter(String name);\n}", "static private Hashtable startingArgs(Canvas canvas, \r\n\t\t\t\t\t Context context) {\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string title = 1;
public boolean hasTitle() { return ((bitField0_ & 0x00000002) == 0x00000002); }
[ "public void setTitle(String title)\r\n {\r\n this.title=title;\r\n }", "public void setTitle(String title)\n {\n this.title=title;\n }", "public void setTitle(String Title);", "public String getTitle() { return _title; }", "public void setTitle(String value){\n this.tit...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Activates the endpoint with the provided credential or tries to autoactivate if provided credential is null.
public void activateEndpoint(String ep, Credential cred, boolean forceReactivate) throws CommandException { if (forceReactivate || !isActivated(ep)) { activateOrReactivateEndpoint(ep, cred); loadEndpoints(true); return; } else { return; } }
[ "public void activateUser(String username, String password, String token) throws ApsSystemException;", "public void setActivateAccount(boolean activateAccount) {\n this.activateAccount = activateAccount;\n }", "void becomeActive() throws ServiceFailedException;", "@Path(\"/activate/{uuid}\")\n @P...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Load cluster Json String is used as key to cluster objects
private void loadDashboardInfo() { dashboardCache.invalidateAll(); logger.info("Fetching data from " + Constants.DASHBOARD_JSON); try { jsonStr = Utility .readJsonFile(this.dataRoot, Constants.DASHBOARD_JSON); } catch (FileNotFoundException e) { logger.error("Failed to read " + Constants.DASHBOARD_JS...
[ "@Override\r\n\tpublic void loadFromJSONString(String json) {\n\t\t\r\n\t}", "public DataCluster(JSONObject js)\n\t{\n\t\tthis();\n\t\t\n\t\taddJson(js);\n\t}", "private JSONObject loadIdx(String str) {\n\n JSONObject jo;\n InputStream is;\n\n is = Config.getLoader().getResourceAsStream(str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
use toStringOP for default toString method.
@Override public String toString() { return toStringOP(); }
[ "public abstract java.lang.String toString();", "public abstract String toString();", "@Override\r\n\tabstract public String toString();", "public java.lang.String toString() {\n \n }", "@Override\r\n String toString();", "public String toString(){\n\t\t\n\t}", "protected String toStringImpl() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns cartesian coordinate from frame
public double frameYToCartesian(int y) { return (ymax - ((y * (ymax - ymin)) / height)); }
[ "public Vector3 getCoord(int frame, body_part bp) {\n JSONObject bodyparts = (JSONObject) frames.get(frame);\n JSONArray coords = (JSONArray) bodyparts.get(bp.toString());\n\n Number x = (Number) coords.get(0);\n Number y = (Number) coords.get(1);\n return new Vector3(x.floatValue...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new proposal reference with the primary key. Does not add the proposal reference to the database.
@Override public com.ext.portlet.model.ProposalReference createProposalReference( com.ext.portlet.service.persistence.ProposalReferencePK proposalReferencePK) { return _proposalReferenceLocalService.createProposalReference(proposalReferencePK); }
[ "Proposal saveProposal(Proposal proposal);", "long saveProposal(long proposalId, Proposal proposal) throws CustomCheckedException;", "long addProposal(Proposal proposal);", "public Proposal generateProposal() {\n\tProposal p = new Proposal();\n\n\tp.setTitle(titles.get(RANDOM.nextInt(titles.size())));\n\tp.se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
//GENEND:initComponents Actualiza la vista de la hilera y borra la vista de modificar
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed cp.cleanPanel(cp.vp.panelHilera); cp.setPanel(cp.panelBotonesHilera(cp.hilera), cp.vp.panelHilera); cp.cleanPanel(this); }
[ "private void inicializarVista() {\n this.vista.setTitle(\"Configuración de boleta\");\n this.vista.setName(\"configuracion_boleta\");\n this.vista.jbModificarCampo.setEnabled(false);\n this.vista.jbHabilitarDeshabilitarCampo.setEnabled(false);\n this.vista.jtFactura.setModel(mode...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loads a set of route definitions from an XML file.
public static List<RouteDefinition> loadRoute(String xmlPath) { return loadRoute(xmlPath, null, null); }
[ "private void readRoutes(File routesFile) {\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(routesFile));\n String line;\n while ((line = br.readLine()) != null) {\n this.parseRoute(line);\n }\n lpm.fina...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
See if the recorder is running.
public boolean isRecording() { return isRecording; }
[ "public boolean isRunning() {\n //Logger.d(TAG,\"check isRunning,mCurFrame:\"+mCurFrame);\n if(mCurFrame > -1){\n //Logger.d(TAG,\"is running!\");\n }else{\n //Logger.d(TAG,\"is not running\");\n }\n return mCurFrame > -1;\n }", "public static boolean is...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return new Probability(likelyhoodFraction + other.likelyhoodFraction and(other).likelyhoodFraction);
public Probability or(final Probability other) { return this.not().and(other.not()).not(); }
[ "private static float Probability(float rating1, \r\n float rating2) \r\n { \r\n return 1.0f * 1.0f / (1 + 1.0f * \r\n (float)(Math.pow(10, 1.0f * \r\n (rating1 - rating2) / 400))); \r\n }", "public abstract double getProbability();", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method sets the value of the database column V_RP_DY_DISTRICT_GPRS_CS_BH.BH_MCSX_LEVEL2
public void setBhMcsxLevel2(Float bhMcsxLevel2) { this.bhMcsxLevel2 = bhMcsxLevel2; }
[ "public Float getBhCsxLevel2() {\r\n return bhCsxLevel2;\r\n }", "public void setBhCsxLevel1(Float bhCsxLevel1) {\r\n this.bhCsxLevel1 = bhCsxLevel1;\r\n }", "public Float getBhMcsxLevel1() {\r\n return bhMcsxLevel1;\r\n }", "public void setBhMcsxLevel7(Float bhMcsxLevel7) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an updated entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static Venda createUpdatedEntity(EntityManager em) { Venda venda = new Venda() .titulo(UPDATED_TITULO) .resumo(UPDATED_RESUMO); return venda; }
[ "@Test\n\tpublic void testCreationOfEntityInsideTransactionViaUpdate() {\n\n\t\tDemoEntity out = sfy.transact(5, new Work<DemoEntity>() {\n\t\t\t@Override\n\t\t\tpublic DemoEntity run() {\n\n\t\t\t\tDemoEntity demoEntity = sfy.get(DemoEntity.class).key(\"1\").now();\n\t\t\t\tif (demoEntity == null) {\n\t\t\t\t\tdem...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loads and parses links in netscape's RSS format from selected server.
protected List parseRSS(String rssUrl) { List result = new ArrayList(); SyndFeedInput input = new SyndFeedInput(); try { HttpClient client = new HttpClient(); GetMethod method = new GetMethod(rssUrl); method.setFollowRedirects(true); method.getPa...
[ "private void doRSS(CharSequence rssUrl) {\n RSSWorker worker = new RSSWorker(rssUrl);\n setCurrentWorker(worker);\n resetUI();\n worker.start();\n }", "public void DownloadRSS(String URL)\n { \n \n setContentView(R.layout.globalhighscore);\n \n //TO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Use usename to search account that has similar usernames in the system
public static ArrayList<Account> searchByUsername(String username, int limitOfResults) { ConnectionPool pool = ConnectionPool.getInstance(); Connection connection = pool.getConnection(); PreparedStatement preStatement = null; try { String sqlCode = "SELECT...
[ "private boolean checkIfUserExist(String searchStr){\n for (User user : usersList){\n if (user.getEmail().equals(searchStr) || user.getNickname().equals(searchStr)){\n return true;\n }\n }\n return false;\n }", "@Test\n public void searchUserTest() t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) throws InterruptedException { System.setProperty("webdriver.chrome.driver", "C:\\Work\\chromedriver_win32\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.get("https://www.spicejet.com/"); driver.findElement(By.id("divpaxinfo")).click(); Thread.sleep...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find user likes life hacks list.
List<LifeHack> findUserLikesLifeHacks(int cursor, long id) throws DaoException;
[ "protected void queryLikes() {\n ParseQuery<Like> query = ParseQuery.getQuery(Like.class);\n query.whereEqualTo(Like.KEY_USER_ID, ParseUser.getCurrentUser().getObjectId());\n // start an asynchronous call for playlists\n query.findInBackground(new FindCallback<Like>() {\n @Ove...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the last fired transition.
public T getLastFiredTransition() { return lastFiredTransition; }
[ "public Transition getTransition () {\n return vm.getLastTransition();\n }", "public Action getLastAction() {\n if (states.size() > 0) {\n return states.get(states.size() - 1);\n }\n return null;\n }", "com.google.protobuf.Timestamp getLastTransitionTime();", "@java.lang...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if the user already exists for this alias
@Transactional @Override public boolean checkAttempt(MultiplicationResultAttempt resultAttempt) { Optional<User> user = userRepository.findByAlias(resultAttempt.getUser().getAlias()); // Avoid hack attempts Assert.isTrue(!resultAttempt.isCorrect(), "You can't send an attempt mark as correct"); boolean co...
[ "public abstract boolean userExists(String name);", "private static boolean userExists(User user) {\n\n return false;\n }", "boolean checkIfUserAlreadyExist(String userId);", "public boolean isExistingUser(String userName) throws UserManagerException;", "boolean isExistingUser(String username);", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Log.info("public void removeStatusListener(com.sun.star.frame.XStatusListener xControl,");
public void removeStatusListener(com.sun.star.frame.XStatusListener xControl, com.sun.star.util.URL aURL) { }
[ "public void removeStatusListener(com.sun.star.frame.XStatusListener xControl,\n com.sun.star.util.URL aURL) {\n }", "public abstract void removeStatusListener(IStatusChangedListener listener);", "public void removeStatusListener( StatusListener l ) {\r\n\r\n\tthrow new UnsupportedOperationExcep...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
replaces and returns value of node if key already exists in this list
public void replace(K key, V value) { HashNode<K,V> replacedNode = this.getListNode(key); HashNode<K,V> newNode = new HashNode<K,V>(key,value); if (replacedNode!=null) { replacedNode.setValue(newNode.getValue()); } }
[ "Value get(Key key) {\n // Search for key. Update value if found; grow table if new.\n for (Node x = first; x != null; x = x.next) {\n if (key.equals(x.key))\n return x.val; // search hit\n }\n return null; // search miss: add new node\n }", "private V...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { Song song = new Song("Dancing Queen","ABBA",1978,"스웨덴"); song.show(); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
data brings fs down from AbstractCommand methods constructors
public CdCommand() { // nothing at this time }
[ "protected Command() {\n }", "public Command() {\n\t}", "public Commands(DirectSupport ds) {\n\t\tthis.ds = ds;\n\t}", "private void initCommandHelper() {\n permissionHandler = new CSPermissions(this);\n commandHandler = new CommandHandler(this, permissionHandler);\n // register the co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
write your code here
public static void levelOrder(Node node){ Queue<Node> q= new ArrayDeque<>(); q.add(node); while(q.size()>0) { node=q.remove(); System.out.print(node.data +" "); for(Node child : node.children) { q.add(child); } } System.out.print("."); }
[ "void stuffForYouToDo() {\n\t\t// Write your code here...\n\t\t\n\t\t\n\t\t\n\t}", "@Override\r\n\t\t\t\tvoid eval() {\r\n\r\n\t\t\t\t\t// YOUR CODE IN THIS SPACE\r\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n\tpublic void dosomethiing3() {\n\n\t}", "@Override\n }", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test the HumanPlayer's subclass getTurnTotal() method.
@Test public void testGetTurnTotalOf100WillGetTurnTotalOf100() { HumanPlayer realHumanPlayer = new HumanPlayer("Alyssa"); realHumanPlayer.setTurnTotal(100); assertEquals(100, realHumanPlayer.getTurnTotal()); }
[ "@Test\n\tpublic void testSubtractingFromTotal() {\n\t\tCautiousStrategy strategy = new CautiousStrategy();\n\t\tComputerPlayer testPlayer = new ComputerPlayer(strategy);\n\t\ttestPlayer.subtractingFromTotal();\n\t\tassertEquals(0, testPlayer.getTotal());\n\t}", "public synchronized int getTotalTurns()\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Declared at the super level Invoked from onInterval when the connection is found to be idle.
public void onIdle() { // import Component.Net.Member; // import Component.Net.MemberSet.SingleMemberSet; // import com.tangosol.util.Base; // import java.util.concurrent.ThreadLocalRandom; TransportService ...
[ "default void connectionIdle(ConnectionEvent ce) {}", "public void onConnectionClosed() {\n \n }", "@Override\n public void connectionEvent() {\n }", "void channelInactive(C connection) throws Exception;", "protected void onInterval()\n {\n // import Component.Util.DaemonPool a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
KVurl = pdfUrl =
@Override public void onSuccess(BasicResponse<BooksListBean> response) { String substring = ""; mPdfItemList.clear(); if (response != null) { for (int i = 0; i < response.getData(...
[ "private void startDownload(String pdf){\n new PdfHandler(pdf, Professionale.this).execute();\n }", "public WebContentScrapper(){\r\n stringBuilder.append(\"https://www.pdfdrive.com/search?q=\");\r\n }", "public String getCFSignedUrl(String key)throws StorageException;", "public Path getPd...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
aqui fica o codigo que quer executar codigo da rotina exercuta em paralelo
@Override public void run() { for (int i = 0; i < 10; i++) { System.out.println(" Exercutado "); try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); }// tempo } // msg de fim System.out.println(" Fim da t...
[ "@Override\n\tpublic void ejecutarEtapa() throws InterruptedException{\n\t\t\n\t\tint bloque, posCacheI, numPalabra;\n\n\t\tMemoriaPrincipal memoriaPrincipal = MemoriaPrincipal.getInstancia();\n\n\t\t\n\t\tbloque = (pc -384) / 16;\n\t\tnumPalabra = (pc - 384) % 16;\n\t\tposCacheI = bloque % 4;\n\n\n\n\t\n\t\t//Revi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Devuelve el numero de filas
@Override public int getRowCount() { return datos_J.size(); }
[ "public int getNumeroFila() {\n return numeroFila;\n }", "private static int getNumFloors(){\n return floors.size();\n }", "private int bestimmeAnzahlFreieFelder() {\n\t\tint num = 0;\n\t\t\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\tif(spielFeld[i][j] == Z...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
create the object, read class description
public GroupOfGraphics(byte Id, Dimension tileDim, byte tileType, String tileImageSet, boolean freeWalk) { this.Id = Id; this.tileDim = tileDim; this.tileType = tileType; this.freeWalk = freeWalk; this.tileImageSet = tileImageSet; }
[ "Classe(String descrição){\n this.descrição = descrição;\n }", "public RoconDescription() {\n }", "private MTDescription () {}", "private Class buildClass(String content)\n {\n Class clas = new Class();\n\n Serializer serializer = new Persister();\n\n try {\n cl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Spring Data JPA repository for the Stage entity.
@SuppressWarnings("unused") @Repository public interface StageRepository extends JpaRepository<Stage, Long> { }
[ "@Override\n public Stage findById(int idStage) {\n return stageDao.findById(idStage);\n }", "@Transactional\r\n\t@Override\r\n\tpublic Stage saveStage(Stage stage) {\n\t\treturn entityManager.merge( stage );\r\n\t}", "@Repository\npublic interface StateRepository extends JpaRepository<StateEntity,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
function to get the index for the specified vertex. includes a string to customize the message, because user input and exception throwing clarity
private static int getVertIndex(Graph theGraph, String display) throws Exception { System.out.print("Enter the " + display + " vertex: "); char start = UserInput.getChar('A', 'Z'); return theGraph.getVertexIndex(start); }
[ "public int getVertexIndex(String vertex) {\r\n \tint index = 0;\r\n \tfor(int i = 0; i < graph.size(); i++) {\r\n \t\tif(graph.get(i).getName().equals(vertex)) {\r\n \t\t\tindex = i;\r\n \t\t}\r\n \t}\r\n \t\r\n \treturn index;\r\n }", "public Object getVertex(int index);", "@Overrid...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
fresh cube must be solved
@Test public void testIsSolved() { assertTrue(testCube.isSolved()); }
[ "@Override\r\n\tpublic void startSolve() {\n\t\tCubeColor frontColor = cube.getFrontFace().getCubelet(0,0).getFrontSide().getColor();\r\n\t\tCubeColor sideColor = CubeColor.WHITE;\r\n\t}", "public SolvingMeta getSolution(Cube cube);", "public ArrayList<Move> stage1Solution(RCube cube){\n RCube copy = cub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the ServletContext to which this session belongs.
@Override public ServletContext getServletContext() { return this.context; }
[ "public ServletContext getServletContext() {\n return getServletConfig().getServletContext();\n }", "public ServletContext getServletContext() {\r\n\t\treturn ServletActionContext.getServletContext();\r\n\t}", "public ServletContext getServletContext()\r\n {\r\n return context;\r\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add 1 points for Team A.
public void onePointTeamB(View view) { scoreTeamB = scoreTeamB + 1; if (scoreTeamB < 10) { displayForTeamB(scoreTeamB); } else { displayWinnerB(winner); } }
[ "public void add1PointForA(View view) {\n scoreTeamA = scoreTeamA + 1;\n displayForTeamA(scoreTeamA);\n }", "public void addOneForTeamA(View v) {\n pointsTeamA = pointsTeamA + 1;\n displayForTeamA(pointsTeamA);\n }", "public void addTeamPoints(int p) {\r\n if ((p == 0) |...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getSubject method, of class Appointment.
@Test public void testGetSubject() { assertEquals("Should be yolo", "Yolo", ap.getSubject()); }
[ "@Test\n\tpublic void testGetMessageSubject() throws VistaWebServiceFault {\n\t\tString expectedResult = \"NEW USER ADDED TO SYSTEM\";\n\n\t\t// Use Mockito to set up vistaLinkContext from parent class to return\n\t\t// proper string.\n\t\twhen(\n\t\t\t\tthis.getVistaLinkContext().makeRPCCall(new RPCIdentifier(\"\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets selected entry fee low price text
public WebElement getEntryFeeLowPriceText() { return driver.findElement(entryFeeLowPriceText); }
[ "public String getFirstPriceValue() {\n return getFirstPriceElement().getText().replace(\"\\n\", \" \");\n }", "String getCutPrice();", "public java.lang.String getLowCost()\n {\n return this._lowCost;\n }", "public String getHikeLow() {\n return \"Hike Low: \" + this.HIKE_INFO.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the data type of the items returned
public ItemType getItemType(TypeHierarchy th) { return start.getItemType(th); }
[ "public Collection getDataTypes() {\n\t\treturn mDataItemsByType.keySet();\n\t}", "public String getType()\n {\n return dataType;\n }", "public String getDataType() {\n load();\n return _dataType;\n }", "public String getDataType()\n\t{\n\t\treturn dataType;\n\t}", "public Type getData(){\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public final boolean m465a(int i, String str, C0062n c0062n, boolean z) { return C0064o.m446a(555, str, null); }
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .protoClient.AnyRequest.BookHotel bookRequest = 3;
private com.google.protobuf.SingleFieldBuilder< protoClient.DemoProtocol.AnyRequest.BookHotel, protoClient.DemoProtocol.AnyRequest.BookHotel.Builder, protoClient.DemoProtocol.AnyRequest.BookHotelOrBuilder> getBookRequestFieldBuilder() { if (bookRequestBuilder_ == null) { bookReque...
[ "private AddBookRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public com.google.example.library.v1.Book createBook(com.google.example.library.v1.CreateBookRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ TESTING STRATEGY: We will test the client side from two ends: Check that the model can SEND messages to the server, and that the correct messages are generated. Check that the model will RECEIVE message correctly, i.e. that the Front End executes coherent methods when a message is generated by the server.
@Test public void clientCorretlySendsDrawLineMessages() throws IOException { int portNumber = 4444; TestUtils test = new TestUtils(); List<String> clientSentMessages = new ArrayList<String>(); test.startServer(portNumber); // Generate a dummy front end we can associate with...
[ "@Test\n public void test1() throws Throwable {\n MockSocket mockSocket0 = new MockSocket();\n assertNotNull(mockSocket0);\n assertFalse(mockSocket0.isClosed());\n assertFalse(mockSocket0.isBound());\n assertFalse(mockSocket0.isOutputShutdown());\n assertFalse(mockSocket0.isConnecte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Caches pages, so that titles and types can be retrieved very quickly without consulting the database.
public void cachePages(File dir, TIntHashSet validIds, ProgressNotifier pn) throws IOException { File pageFile = new File(dir.getPath() + File.separatorChar + "page.csv") ; if (validIds == null) cachedPages = new TIntObjectHashMap<CachedPage>(getPageCount(), 1) ; else cachedPages = new TIntObjectHashM...
[ "public PageManager() {\r\n\t\tthis.cacheStore = new AppLevelCacheStore();\r\n\t}", "public PageCache(Project project) {\n\t\tsuper();\n\t\t\n\t\tthis.project = project;\n\t\t\n\t\t// initialize\n\t\tpageCache = new HashMap();\n\t}", "public PageManager(PaginationCacheStore cacheStore) {\r\n\t\tif (cacheStore !...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find organisation by using its id
public Organisation findOrganisationByOrganisationID(String organisationID) { Organisation[] organisations= new Organisation[0]; log.info("Calling searchOrganisationByOrganisationID " + organisationID); String completeURL = endpointProperties.getOrganisation().getEndpointUri(); UriComponentsBuilder buil...
[ "@Override\n\tpublic Organization getOrganizationById(Integer id) {\n\t\treturn organzationDao.selectByPrimaryKey(id);\n\t}", "OrganizationAttribute findById(java.lang.String id) ;", "public Organization getOrganization(Long organizationId);", "@Transactional(readOnly = true) \n public OrganisationTypeDTO ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of updateRights method, of class ApiProfileImpl.
@Test public void testUpdateRights_5args() throws Exception { System.out.println("updateRights"); String categoryId = ""; boolean canIReadInfo = false; boolean canPlay = false; boolean canRate = false; boolean canComment = false; ApiProfileImpl instanc...
[ "@Override\n\tpublic ObjResponse UpdateRight(RightsDetail right) {\n\t\treturn userGroupDal.UpdateRight(right);\n\t}", "@Test\n public void testSuccessfulUpdateProfile() throws ProfileNotFoundException {\n when(profileService.updateProfile(any())).thenReturn(true);\n profileController.setProfileS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs the default input map for an RTextArea.
public RTADefaultInputMap() { super(); int defaultModifier = getDefaultModifier(); //int ctrl = InputEvent.CTRL_DOWN_MASK; int alt = InputEvent.ALT_DOWN_MASK; int shift = InputEvent.SHIFT_DOWN_MASK; boolean isOSX = RTextArea.isOSX(); int moveByWordMod = isOSX ? alt : defaultModifier; put(KeyStroke.ge...
[ "private void initializeMapperTextArea(){\r\n\r\n mapperCodeTa= new TextArea();\r\n mapperCodeTa.setText(\"public class Mapper{\\n\" +\r\n \"public Map<key, value> startMapping(List<Character> text){}\\n\" +\r\n \"}\");\r\n }", "private void initializeReducerTextArea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public Cheese createCheese() { return new SheddarCheese(); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end synpred43_InternalSGen $ANTLR start synpred53_InternalSGen
public final void synpred53_InternalSGen_fragment() throws RecognitionException { // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:3627:2: ( rule__XAssignment__Group_1_1__0 ) // ../org.yakindu.sct.generator.genmodel....
[ "public final boolean synpred18_InternalSGen() {\r\n state.backtracking++;\r\n int start = input.mark();\r\n try {\r\n synpred18_InternalSGen_fragment(); // can never throw exception\r\n } catch (RecognitionException re) {\r\n System.err.println(\"impossible: \"+re)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Time: O(n) Space: O(n)
public int largestRectangleArea(int[] heights) { if (heights == null || heights.length == 0) { return 0; } int maxArea = 0; Stack<Integer> stack = new Stack<>(); for (int i = 0; i <= heights.length; i++) { int height = (i == heights.length) ? -1 : heights[...
[ "for (int i = 1; i <= n; i++) {\n for(int j = 1; j <= n; j++) {\n // constant time code here\n }\n }", "public static int BigO(int[] list) {\n return list[0]; // We can see that the function executes only one operation\n // The efficiency is Big O of 1 or ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 newLevel = 1;
public int getNewLevel() { return newLevel_; }
[ "int level() { return level; }", "public int getLevel() {\n return level;\n}", "public void incLevel(){\n if (level < 8){\n level++;\n }\n }", "default void updateLevel() {\n }", "public int getLevel ()\n{\n\treturn level;\n}", "public void setLevel(Level level) {}", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public double getMinValue() { return 0; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
list file in direction
List<String> listFile(String filePath, String endpoint, String accessKeyId, String accessKeySecret, String bucketName);
[ "File[] list() throws IOException;", "List<Path> list(String ext) throws IOException;", "public void getFilelist(int opt){\n\n String currentDir = new File(\".\").getAbsolutePath();\n System.out.println(currentDir);\n if(opt==1){\n File f = new File(currentDir);\n String [] s = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the table name.
public String name() { return name; }
[ "public String getName() { return new String(TABLE_NAME); }", "@Override\n\tpublic String getName() {\n\t\treturn tableName;\n\t}", "public final String getTableName() {\n return qualifiedTableName.render();\n }", "public String tableName()\r\n {\r\n return this.table.getURL() + \".\" + th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Comment this function to get XML response
@GET @Path("lucenesearch/{term}") @Produces(MediaType.APPLICATION_JSON) public JSONObject showSearch(@PathParam("term") String term){ JSONObject hellya = new JSONObject(); ArrayList<edu.carleton.comp4601.dao.Document> docs = null; try { lucene.searchBootup(); docs = lucene.queryByContent2(term); l...
[ "@GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public String getXml() {\n throw new UnsupportedOperationException();\r\n }", "@Path(\"retorno\")\n @GET\n @Produces(\"application/xml\")\n public String getXml() {\n //TODO return proper representation object\n return \"Tes...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cloudbanter Image Download Service
public void onReceive(Context context, Intent intent) { final Intent i = new Intent(context, CbDownloadService.class); i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startService(i); }
[ "public void download(View view) {\r\n /*\r\n File localFile = File.createTempFile(\"images\", \"jpg\");\r\n riversRef.getFile(localFile)\r\n .addOnSuccessListener(new OnSuccessListener<FileDownloadTask.TaskSnapshot>() {\r\n @Override\r\n pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Merges the data unit elements that are to be inserted in a message to AltInn
private String createDataUnits(String[] dataUnit){ String units = "<DataUnits>"; for (int i = 0; i < dataUnit.length; i++){ units += dataUnit[i]; } units += "</DataUnits>"; return units; }
[ "private void createMergeDataForImport() {\r\n\r\n\t\tfor (Bike bike : externalData.getBikeData().getAll()) {\r\n\t\t\tif (!bike.isDeleted())\r\n\t\t\t\tmergeData.addBike(new MergeItem<>(bike, externalData.getTimestamp()));\r\n\t\t}\r\n\r\n\t\tfor (TagType tagType : externalData.getTagTypeData().getAll()) {\r\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to return Track from Album given supplied trackTitle string Returns null if Track title not present in Album
public Track getTrackByTitle(String trackTitle) { for(Track track : tracks) { if(track.getTrackTitle().equals(trackTitle)) { return track; } } return null; }
[ "Album getAlbum(String title);", "@Override\n public Album getAlbum(String title) {\n Album a = null;\n try {\n a = em.createQuery(\"SELECT a FROM Album a WHERE a.title = :title\", Album.class)\n .setParameter(\"title\", title)\n .getSingleResult()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void run() { super.run(); while(isRunning) { try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } count++; if (apStatus.getBSSID().equals(connection.getBSSID())) { // successed ...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Send either an X or Y coordinate.
public static void sendCastleCoord(MyRobot r, int coordinate) { byte message = (byte) (CASTLE_LOCATION_COMMUNICATION_MASK | ((byte) coordinate)); sendCastleTalk(r, message); }
[ "protected void sendPosition(int x, int y) {\n\n\t\tif ((System.currentTimeMillis() - this.lastSent) > 100) {//Simple bandwidth throttler\n\n\t\t\tthis.lastSent = System.currentTimeMillis();\n\n\t\t\t//System.out.println(\"Sending position - \" + x + \":\" + y);\n\n\t\t\tbyte[] data = ByteBuffer.allocate(DATA_LENGT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Iterators through the nodes to find the node with the name "name"
public Integer getIndexFromName(String name) { for (int i = 0; i < nodes.size(); i++) { if (nodes.get(i).getName().equals(name)) { return i; } } return null; }
[ "public Node getNode(String name){\r\n for(Node n: nodes){\r\n if(n.getName().equals(name)){\r\n return n;\r\n }\r\n }\r\n return null;\r\n }", "private static Node getNodeForName(NodeList list, String name) {\n name = name.toLowerCase();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
After the save of the VBlockroomBean pObject.
void afterInsert(VBlockroomBean pObject) throws SQLException { if (listener != null) listener.afterInsert(pObject); }
[ "public void afterSaveOrUpadate();", "@Override\n public void processAfterSave(SuiviStage entity) {\n super.processAfterSave(entity);\n }", "void afterUpdate(FoliologBean pObject) throws SQLException {\n if (listener != null)\n listener.afterUpdate(pObject);\n }", "public voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set Accounted Credit. Accounted Credit Amount
public void setAmtAcctCr (BigDecimal AmtAcctCr);
[ "public void setCashCredit(int value){\r\n CashCredit = CashCredit+value;\r\n }", "public void credit(int amount)\n {\n balance = balance + amount;\n }", "public void setCredit(Double credit) {\n\t\tthis.credit = credit;\n\t}", "protected void setCourseCredit(double credit)\r\n\t{\r\n\t\tCourseCr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Auto sequence to going to the scale from the switch side
public void addScaleRunner() { this.addSequential(new DriveDistEncoder(RobotMap.distScaleFromSwitch)); if (Robot.posStart == 'R') { angleTurnin *= -1; } this.addSequential(new TurnXDegrees(angleTurnin)); this.addSequential(new RaiseElev(ElevPos.kScale)); this.addSequential(new dropCubeAuto(-1.0)); }
[ "public void actionPerformed(ActionEvent arg0) {\n double scale = 1;\n double delta = 0.01;\n if (scale < 0.01) {\n delta = -delta;\n } else if (scale > 0.99) {\n delta = -delta;\n }\n sca...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getLat method, of class Coordinate.
@Test public void testGetLat() { System.out.println("getLat"); Coordinate instance = new Coordinate(50,50); double expResult = 50.0; double result = instance.getLat(); assertEquals("The latitude did not match.",expResult, result, 50.0); }
[ "public void testGetMicroLat() {\n\t\tassertTrue(testLoc.getMicroLat() == 57.043*1E6);\n\t}", "@Test\n public void testGetLatitude() {\n System.out.println(\"getLatitude\");\n DTO_Location instance = dtoLocation;\n double expResult = latitude;\n double result = instance.getLatitude(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this is the abstractfactory implementation note how we can define more factories if we wanted to
public static AbstractFactory getFactory(String choice){ if ("Animal".equalsIgnoreCase((choice))){ return new AnimalFactory(); } return null; }
[ "public interface AbstractBiancheriaFactory {\n\tLenzuolo createLenzuolo();\n\tFedera createFedera();\n}", "public interface IFactory {\n\n /**\n * Creates an instance of {@link IProduct}.\n * @param barCode the bar code of the product\n * @param description the description of the product\n * @...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a DAO for Book
public JpaBookDAO() { super(Book.class); }
[ "public AuthorBookDao() {\n super(AuthorBook.AUTHOR_BOOK, com.warumono.databases.public_.tables.pojos.AuthorBook.class);\n }", "public BookDao()\n\t{\n\t\tfileName = getDatabasePath();\n\t}", "public BookDao(Configuration configuration) {\n super(Book.BOOK, example.jooq.databases.tables.pojos.B...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: private
public void T9() { T("releaseWinRecord"); com.txznet.comm.ui.Tn.T(this.f534T); if (this.Tr != null) { if (this.Tr.isShowing()) { this.Tr.dismiss(); } this.Tr.Ty(); com.txznet.comm.ui.Tn.Tn.T().Tk(); this.Tr = null; ...
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private InternalReflect() {\n\t\t\t// do nothing\n\t\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test to test the processMatches() method with a vertical match.
@Test public void processMatchesVertical() { Jewel[][] grid = { { new NormalJewel(Colour.Green) }, { new NormalJewel(Colour.Red) }, { new NormalJewel(Colour.Red) }, { new NormalJewel(Colour.Red) } }; game.getBoard().setGrid(grid); Match match = new Match(game.getBoard()); match.add(new Coordinate(0...
[ "@Test public void toMatchResultTest2() throws Exception {\n Matcher matcher = PF.compile(\"nomatch\").matcher(\"hello world\");\n matcher.find();\n MatchResult mr = matcher.toMatchResult();\n\n RegExTest.checkExpectedISE(() -> mr.start());\n RegExTest.checkExpectedISE(() -> mr.st...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
On Swipe To Cancel
@Override public void onCancel() { audioRecorder.stop(); audioRecorder.deleteResult(); messageInput.setVisibility(View.VISIBLE); }
[ "@Override\n\t\t\t\t\t\tpublic void onCancel() {\n\n\t\t\t\t\t\t}", "public void onCancel() {\n //by default nothing todo\n }", "public void onCancel() {\n\t\t\t\t}", "@Override\n public void onCancel() {\n\n }", "@Override\r\n public void onCancel(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Returns a list of feeds sorted by date descending.
public List<FeedDao> getFeedList(Date startTime, Date endTime) throws SQLException { Log.d(TAG, " startTime " + startTime + " endTime " + endTime); QueryBuilder<FeedDao, Integer> queryBuilder = getFeedDao().queryBuilder().orderBy("date", false); queryBuilder.where().lt("date", endTime) ...
[ "protected void getFeedsList() {\n feedsList.clear();\n feedsList.addAll(db.getAllFilms());\n // Sort by year\n Collections.sort(feedsList, new FilmComparatorTitle());\n }", "private void sortByDateDesc(RealmResults<PostsData> realmResults) {\n realmResults.sort(\"postDate\",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Base router for MVP
public interface Router { }
[ "abstract void constructMobRoute();", "public interface IRouter {\n\n\tpublic void distributeRobotSenders(IRobotSender aRoboSender);\n\t\n\tpublic void distributeColorSenders(IColorSender aColorSender);\n\t\n\t/**\n\t * distributes Robot to modules decided upon inside Router\n\t * \n\t * @param aViewRobot\n\t */\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { tf_HanSD.setEditable(false); tf_NgaySinh.setEditable(false); // tf_TKMadG.setEditable(false); tf_dc.setEditable(false); tf_email.setEditable(false); tf_gt.setEditable(false); tf_madG.setEditable(fa...
[ "public Controller(){\t\n\t}", "public GameEriController() {\r\n\t\tinit();\r\n\t\t\r\n\t}", "public MainController(){\n \n }", "public Controller ()\n\t{\n\t\tview = new View();\n\t\tmodelo = new Modelo(10000);\n\t}", "public MainController() {\n try {\n log.debug(\"Starting Mai...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void mouseMoved(MouseEvent e) { if (select == null) return; if (select.contains(e.getPoint())) { this.setCursor(new Cursor(Cursor.MOVE_CURSOR)); this.currentStatus = Status.MOVE; } else { Status[] st = Status.values(); for (int i = 0; i < controlPoint.length; i++) { if (contr...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the value of the 'totalNumber' field. Total number of events in the group.
public com.google.gcs.sdrs.service.mq.events.context.groupRecord.Builder clearTotalNumber() { fieldSetFlags()[2] = false; return this; }
[ "private void clearTotalNumber() {\n this.bitField0_ &= -17;\n this.totalNumber_ = 0;\n }", "public void clear()\n {\n\t currentNumber = 0;\n\t runningTotal = 0;\n\t \n }", "private void clearTotalAmount() {\n \n totalAmount_ = 0L;\n }", "public com.tpb.avro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor, make the welcome entry page presenter
public MainPresenter(IMainView wv){ view = wv; }
[ "public WelcomePage() {\n initComponents();\n nameLabel.setText(loginNameVisibility());\n IdLabel.setText(loginIdVisibility());\n }", "public MainView() {\n \tMainPresenter mainPresenter = new MainPresenter(this); //TODO: Darf/soll ich das?\n \tHorizontalLayout navigation = new Horiz...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the id of this instance.
public long getId() { return this.id; }
[ "public long getId() {\n\t\treturn id.get();\n\t}", "public final int id() {\n\t\treturn id;\n\t}", "public final Integer id() {\n return this.id;\n }", "public final int getId() {\n\t\treturn this.id;\n\t}", "@java.lang.Override\n\t\t\tpublic long getId() {\n\t\t\t\treturn id_;\n\t\t\t}", "@Override\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determine the space between the first two fingers
private float getFingerSpacing(MotionEvent event) { // ... float x = event.getX(0) - event.getX(1); float y = event.getY(0) - event.getY(1); return FloatMath.sqrt(x * x + y * y); }
[ "private float getFingerSpacing(MotionEvent event) {\n // ...\n float x = event.getX(0) - event.getX(1);\n float y = event.getY(0) - event.getY(1);\n return (float)Math.sqrt(x * x + y * y);\n }", "private float getFingerSpacing(MotionEvent event) {\n // .....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getters Return [string] the fullStatus setting
public boolean isFullStatus() { return preferences.getBoolean("full_status", false); }
[ "public String getShortStatus() {return ShortStatus;}", "public String getStatus() {\r\n return strStatus;\r\n }", "public String getStatus()\n {\n return status;\n }", "public String getStatus() {\n return Util.Field.getStatusString(this);\n }", "public java.lang.String getOver...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by vrihas on 17/3/18.
public interface NgoEndProvider { void requestNgoEnd(String token, int itemId, int ngoId, String quantity, String details, OnNgoDetailsRecieved onNgoDetailsRecieved); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "protected void method_5557() {}", "@Override\n \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Write code here that turns the phrase above into concrete actions
@Given("^a user access the bank web app$") public void a_user_access_the_bank_web_app() throws Throwable { }
[ "@Override\n public void doAction(MentionOf s) {\n\t\n }", "public void action(String name) {}", "@Override\n\t\tpublic void action() {\n\n\t\t}", "private void processAction(char action) throws IOException {\n switch (action) {\n case 'u':\n Viite tallennettava = getRef...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the Processor names for the search processor.
@Test public void testGetProcessorNamesWithEmpty() throws Exception { // Adding the mailbox AddMailboxRequestDTO requestDTO = new AddMailboxRequestDTO(); MailBoxDTO mbxDTO = constructDummyMailBoxDTO(System.currentTimeMillis(), true); requestDTO.setMailBox(mbxDTO); M...
[ "private CellProcessor[] getProcessors() {\n final CellProcessor[] processors = new CellProcessor[8];\n\n processors[FIELD_COUNTER] = new Optional();\n processors[FIELD_DATE] = new FmtDate(\"yyyy/MM/dd HH:mm\");\n processors[FIELD_TOTAL] = new Optional();\n processors[FIELD_VALUE]...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this class is generally not required to be threadsafe. Consumers should protect access in concurrent environments
public interface DependencyGraph extends Iterable<Module> { Set<UnsatisfiedDependencySet> add(Module a); Graph<DirectedGraph.Edge<Coordinate>, Coordinate> getGraph(); Module latest(Coordinate coordinate); Module earliest(Coordinate coordinate); Module firstOfLevel(Coordinate coordinate, Comparator<Module...
[ "@Override\n public synchronized void run() {\n }", "@Override\n synchronized public void run() {\n }", "private SharedData() {}", "@Override\n }", "protected Object getImplLock() { return implLock; }", "private Object readResolve() {\n // Return t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required .proto.GetSubscriptionsResponse.Result status = 1;
public boolean hasStatus() { return ((bitField0_ & 0x00000001) != 0); }
[ "grpc.testing.Messages.EchoStatus getResponseStatus();", "grpc.testing.Messages.EchoStatusOrBuilder getResponseStatusOrBuilder();", "PaxosMsgs.ResponseOrBuilder getResponseOrBuilder();", "public int getSubscriptionStatus() {\n return subscriptionStatus;\n }", "com.yunhui.job.common.proto.RequestPr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
saves drone data to nbt
public NBTTagCompound saveData(NBTTagCompound tag) { tag.setFloat("Health", health); tag.setFloat("Energy", energy); return tag; }
[ "public GoreCoreDataSaverNBT(NBTTagCompound nbt) {\n\t\tthis.nbt = nbt;\n\t}", "@Override\r\n public void writeToNBT(NBTTagCompound nbt)\r\n {\r\n super.writeToNBT(nbt);\r\n nbt.setInteger(\"berry\", berryId);\r\n nbt.setInteger(\"stage\", stage);\r\n nbt.setString(\"type\", type...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create column customer address
@Column(name = "CUS_ADDRESS", nullable = true, length = 100) public String getCusAddress() { return this.cusAddress; }
[ "RestrictedAddress getCustomerAddress();", "public String getCustAddress() {\r\n\t\treturn this.custAddress;\r\n\t}", "public String getCustomerAddress()\n {\n return customerAddress;\n }", "public void setPrimaryAddress(entity.Address value);", "@Override\n\tpublic Address getCustomerAddress(int custom...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Force a Namespace to be declared on the root element. By default, the XMLWriter will declare only the Namespaces needed for an element; as a result, a Namespace may be declared many places in a document if it is not used on the root element. This method forces a Namespace to be declared on the root element even if it i...
public void forceNSDecl(String uri) { forcedDeclTable.put(uri, Boolean.TRUE); }
[ "public void setNamespace(XmlNamespace namespace);", "public static org.jdom.Element setDefaultNamespace(org.jdom.Element rootNode, org.jdom.Namespace namespace) {\r\n\t//only if there is a node and it has no default namespace!\r\n\tif (rootNode!=null && rootNode.getNamespaceURI().length()==0) {\r\n\t\t//set name...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
naked recursive data structure, weird!! will be improved later in SSList.java
public IntList(int a, IntList b) { first = a; rest = b; }
[ "private void updateList()\n\t{\n\t\tSkipNode<K,V> x,y;\n\t\t\n\t\tif(maxlevel>1)\n\t\t{\n\t\t\tfor(int i= maxlevel-1;i>=1;i--)\n\t\t\t{\n\t\t\t\tx = head;\n\t\t\t\t// the first node except head\n\t\t\t\ty= x.getSuc(0);\n\t\t\t\t// j<= size could run at tail\n\t\t\t\tfor(int j=0;j<= size;j++)\n\t\t\t\t{\n\t\t\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a child command registry at the given name key.
CommandRegistry getChild(String registryNameKey);
[ "Node getChild(K key) {\n int loc = Collections.binarySearch(keys, key);\n int childIndex = loc >= 0 ? loc + 1 : -loc - 1;\n return children.get(childIndex);\n }", "public ChildEntry get(ChildKey key);", "public TreeNode getChild(String key){\n return children.get(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
[ "@Override\n\tpublic void handlePost(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\n\n\n }", "@Override\n public void post(String path) {\n \n }", "@Override\r\n\tpub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table TEMPERATURE
int deleteByPrimaryKey(Integer id);
[ "public int getTemperature();", "@Override\n public String asTableDbName() {\n return \"park_sea\";\n }", "@Override\r\n\tpublic Integer getTemperature() {\n\t\treturn null;\r\n\t}", "public Temperature() {\n this.id = \"\";\n }", "@Override\n public void setTemperature() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
slot machine needs fixing run game to make loops work
public static void game3() { Random rand = new Random(); boolean done = false; int rounds = 0; System.out.println(" "); System.out.println("You are using the Slot Machine, test your luck!"); System.out.println("PRESS Enter"); input.nextLine(); S...
[ "public static void playerMenu(){\r\n int choiceID;\r\n int slot;\r\n int choice3=1;\r\n while (choice3 !=0) {\r\n System.out.println(\"1- Display playground\");\r\n System.out.println(\"2- Book a playground\");\r\n System.out.println(\"0- log out\");\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
float ratio = ImageUtil.getImageRatio("./images/IMG_20220402_143430.jpg"); System.out.println(String.format("ratio=%f", ratio)); TestDrawImage(args);
public static void main(String[] args) throws Exception { TestDrawImageList(args); }
[ "@Test\r\n\tpublic void testGetAspectRatio() {\r\n\t\tSprite s1 = new Sprite(\"SP1000\", 2, 3, 4, 1);\r\n\t\tdouble aspectRatio = s1.getAspectRatio();\r\n\t\tassertEquals(4, aspectRatio, 0.001);\r\n\t}", "@Test\n public void greyscaleTest4() {\n String[] args = new String[]{\"file:./README.md\"};\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for relation 'ObjectNode>Represented' Metamodel description: Instance that is represented by the ObjectNode.
@objid ("22aed1c7-49a6-42f0-80e4-9998eb409913") void setRepresented(Instance value);
[ "public interface Representable {\n /**\n * A String, uniquely identifying the kind of object encoded in the representation (not the object itself).\n * By convention, this is the fully qualified class name of the object.\n * If you change this, it will break the default handler in RepresentationToJa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The stateless rule groups that are used in the Network Firewall firewall policy.
public NetworkFirewallPolicyDescription withStatelessRuleGroups(java.util.Collection<StatelessRuleGroup> statelessRuleGroups) { setStatelessRuleGroups(statelessRuleGroups); return this; }
[ "Set<String> getAllowedGroups();", "public List getAttributeGroups () {\n if (attributeGroups == null) {\n attributeGroups = new ArrayList ();\n }\n\n return attributeGroups;\n }", "Set<String> getDisallowedGroups();", "public Group[] getAvailableGroups();", "NetworkSecurityGroupsClient getNe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XPostfixOperation__FeatureAssignment_1_0_1" $ANTLR start "rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1" InternalStubbrLang.g:48703:1: rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1 : ( ( '::' ) ) ;
public final void rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalStubbrLang.g:48707:1: ( ( ( '::' ) ) ) // InternalStubbrLang.g:48708:2: ( ( '::' ) ) ...
[ "public final void rule__XMemberFeatureCall__ExplicitStaticAssignment_1_0_0_0_1_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../fr.obeo.dsl.sprototyper.ui/src-gen/fr/obeo/dsl/ui/contentassist/antlr/internal/InternalSPrototyper.g:25949...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Al agregar se agrega al principio de la lista.
@Override public void agregarNodo(int nodo) { NodoGrafo aux = new NodoGrafo(); aux.nodo = nodo; aux.arista = null; aux.sigNodo = origen; origen = aux; }
[ "public void agregarCliente() {\r\n administracionCliente.agregarCliente(cliente);\r\n cliente = new Usuario();\r\n }", "com.banjiko.creditos.Credito addNewPrestamo();", "@Override\n public void agregarSocio(String rut, String nombre, int edad, int idcat) {\n Socio s = new Socio(rut, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an array of global state identifiers.
public String[] getGlobalStatesIds( String[] exceptions ) { List<String> globalStateIds = new ArrayList<String>( ); for( String id : this.globalStateIdentifiers ) { boolean found = false; for (String exception:exceptions){ found|=exception.equals( id ); ...
[ "public static List<LabelValue> getStateIdentifiers() {\n return asList(\n labelValue(\"VIC\", STATE_IDENTIFIERS_VIC),\n labelValue(\"NSW\", \"01\"),\n labelValue(\"SA\", \"04\"),\n labelValue(\"QLD\", \"03\"),\n labelValue(\"NT\", \"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the specified table field to execute SQL.
@Override public String getFieldsSqlOfTable() { return "SELECT " + " pg_tables.schemaname as " + COL_SCHEMA + ", " + " pg_class.relname as " + COL_TABLE + ", " + " pg_attribute.attname as " + COL_COLUMN + ", " + " null as " + COL_D...
[ "Field getColname();", "public String getValueOnKey(int key, String field) throws SQLException\r\n\t{\r\n\t\tString selectSQL = \"SELECT * FROM \" + mTableName + \" WHERE id = \" + key;\r\n\t\tResultSet rs = mStmt.executeQuery(selectSQL);\r\n\t\tString value = rs.getString(field);\r\n\t\t\r\n\t\treturn value;\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parses a data type from an object.
T parse(Object object);
[ "Object fromString(Type type, String value);", "private static Object asType(Object object, Class type) {\n if (object == null) {\n return null;\n }\n if (type.isInstance(object)) {\n return object;\n }\n if (type.equals(String.class)) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a BedAndBreakfast object using the following parameters.
public BedAndBreakfast(ArrayList<Room> room, HashMap<String, Guest> guests, HashMap<Integer, Reservation> reservations) { setRoom(room); setGuests(guests); setReservations(reservations); }
[ "public static Beer createEntity() {\n Beer beer = new Beer()\n .name(DEFAULT_NAME)\n .category(DEFAULT_CATEGORY)\n .description(DEFAULT_DESCRIPTION)\n .style(DEFAULT_STYLE)\n .brewery(DEFAULT_BREWERY)\n .abv(DEFAULT_ABV)\n .ibu(DEF...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }