query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
void addRole(int, java.lang.String) Method deleteCanCollapse | public void deleteCanCollapse()
{
this._has_canCollapse= false;
} | [
"public void deleteRole(Role role) {\n throw new NotImplementedException();\n }",
"@Override \r\n\t\tpublic boolean deleteRole(int id) {\n\t\t\treturn false;\r\n\t\t}",
"void addRole(String username, String newRole);",
"void deleteRole(String username, String role);",
"public void addRoleToUtilisa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method for loading the correct story | public Story StoryMaker(){
//InputStream corresponds with story chosen in first screen
if(selectedItem.equals("simple")){
stream = getResources().openRawResource(R.raw.madlib0_simple);
newStory = new Story(stream);
}
if(selectedItem.equals("tarzan")){
st... | [
"@Test\n \tpublic void testLoadFromFile() {\n \t\t//String filename = story.getFilename();\n \t\tstoryManager.setCurrentStory(story);\n\t\tStory someStory = storyManager.getCurrentStory();\n \t\tassertNotNull(someStory);\n \t\tassertEquals(story.getTitle(), someStory.getTitle());\n \t\tassertEquals(story.getDescrip... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Implements the MovieManager class. | public MovieModel() throws IOException {
movieManager = new MovieManager();
} | [
"public interface Movie {\n\t/**\n\t * Returns the name of the movie.\n\t * \n\t * @returns the name of the movie.\n\t */\n\tString getName();\n\n\t/**\n\t * Returns a string array of all the actors in the movie.\n\t * \n\t * @returns a string array of all the actors in the movie.\n\t */\n\tString[] getActors();\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required int32 port = 3; | int getPort(); | [
"public abstract int port();",
"public int getPort() {\n/* 250 */ return this.port;\n/* */ }",
"int getPortnum();",
"int frontendPort();",
"public int getPort()\r\n {\r\n return port;\r\n }",
"public int getPort() {\r\n\treturn port;\r\n }",
"public abstract int ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public Object put(String arg0, Object arg1) {
return null;
} | [
"@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"
]
]
}
} |
/ Static methods Checks if a context node is a valid XDI subgraph. | public static boolean isValid(ContextNode contextNode) {
return XdiRoot.isValid(contextNode) ||
XdiMetaClass.isValid(contextNode) ||
XdiAbstractSingleton.isValid(contextNode) ||
XdiAbstractClass.isValid(contextNode) ||
XdiAbstractInstance.isValid(contextNode) ||
XdiValue.isValid(co... | [
"protected boolean hasIntermadiateNode(NodeWrapper node) {\r\n\t\tboolean result = false;\r\n\t\t\r\n\t\tif (node.hasParent()) {\r\n\t\t\tString parentEntityName = node.getParent().getEntityName();\r\n\t\t\tEntities parentEntity = Entities.valueOf(parentEntityName.toUpperCase());\r\n\t\t\tList<Entities> path = Proj... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for the splitter stroke. | public Resource setSplitterStroke(ColoredFill color1, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap) {
if (!isChain) {
js.append(jsBase);
isChain = true;
}
js.append(String.format(Locale.US, ".splitterStroke(%s, %s, %s, %s, %s)", ((c... | [
"public void setStroke(double value)\n {\n if (stroke != value)\n {\n stroke = value;\n painterChanged();\n }\n }",
"public Warp setStroke(GeglVector value)\n {\n\t\n m_Stroke = value;\n setProperty(\"stroke\", value);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Utility method that consults ParserService | public static IParser getParser(IElementType type, EObject object,
String parserHint) {
return ParserService.getInstance().getParser(
new HintAdapter(type, object, parserHint));
} | [
"public abstract CParser getParser();",
"public interface ParserService {\n\n void parseBAM(File BAMFile);\n\n void parseVCF(File VCFFile);\n\n void parseSATA(File SATAFile);\n\n}",
"yandex.cloud.api.datatransfer.v1.endpoint.Parsers.Parser getParser();",
"protected Parser() {}",
"ParserInfo info()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves the alias for the field, which response is defined by this instance | public String getFieldAlias() {
return field.alias;
} | [
"@java.lang.Override\n public java.lang.String getAlias() {\n java.lang.Object ref = alias_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.la... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
overriding the toString() method | @Override
public String toString() {
return "mainStrategy " + mainStrategy + "\nextraWork " + extraWork + super.toString();
} | [
"@Override\r\n String toString();",
"@Override\r\n\tabstract public String toString();",
"@Override\n\tpublic String toString() {\n\t\treturn toString(null, null);\n\t}",
"public abstract java.lang.String toString();",
"@Override\n public String toString()\n {\n return super.toString() + this.i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Equals should return true if to separate instances of Door have the same data | @Test
public void testEquals() {
Room room = Mockito.mock(Room.class);
Door d1 = new Door("Black", room);
Door d2 = new Door("Black", room);
assertTrue(d1.equals(d2));
} | [
"@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n if (!(other instanceof MatchedDonor)) {\n return false;\n }\n\n MatchedDonor otherPerson = (MatchedDonor) other;\n return otherPerson.getNric().equals(g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called just before this Command runs the first time | @Override
protected void initialize()
{
if (speedKey != null)
{
speed = SmartDashboard.getNumber(speedKey, 0.0);
}
} | [
"@Override\n protected void initialize() {\n SmartDashboard.putString(\"Current Command\", \"Line Follow\");\n }",
"protected Hook() {\n startup();\n }",
"public void doBeforeCommand() {\n selenium.getPageExtensions().install();\n selenium.getRequestGuard().clearRequestDone();\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Show the result of the answer | void showAnswer(int playerNr, int buttonNr, AnswerState answerState); | [
"public void showAnswerView(double answer) {\r\n System.out.println(\"The answer is: \" + answer);\r\n }",
"public void display() \n\t{\n\t\tSystem.out.println(result);\n\t}",
"public void displayAnswer() {\n\t\tUserDisplay.promptUser(answer);\n\n\t}",
"private void showResult() {\n\t\tSystem.out.pr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a default account. | @Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
auth.inMemoryAuthentication()
.withUser("admin")
.password("password")
.roles("ADMIN");
} | [
"public CreateAccount() {}",
"void createAccount(org.gw.samples.corba.Account account);",
"public void createAccount(String email, String password, String name) {\n megaApi.createAccount(email, password, name);\n }",
"@Override\r\n public void create_account() {\r\n DataSource.getInstance(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int64 id = 3; | long getId(); | [
"public long getId() {\n return id >= 0?id:0;\n }",
"public void setId(Long id)\n/* */ {\n/* 130 */ this.id = id;\n/* */ }",
"public void setId(long id) { _id = id; }",
"public byte getId() {\n/* 82 */ return 9;\n/* */ }",
"public Integer ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Le type de l'interface du service port : Requis ou Fourni | public String getTypeServicePort(Port port) {
String res = "";
/*try {
ServicePort sp = UMLUtil.getStereotypeApplication(port, ServicePort.class);
if (sp == null) {
res += "null";
return res;
}
if (sp.getKind() == ServiceFlowKind.REQUIRED) {
res += "required";
return res;
... | [
"public interface GestorReparacionInterface extends Remote{\r\n\t/**\r\n\t * Definir las interficies de servicios RMI\r\n\t * para el subsistema de Reparacion\r\n\t */\r\n\r\n\r\n}",
"public interface ServiceTypeExService {\n\n}",
"@WebService(targetNamespace = \"http://laegler.com/openbanking/soap/service\", n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by tonye0115 on 2016/7/6. | public interface Respository {
void add(String seedUrl);
Object poll();
} | [
"@Override\n public void extornar() {\n \n }",
"@Override\n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@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\n public int utilite() {\n ret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
(x1 x0)(y2 y0) (x2 x0)(y1 y0) ^ if = 0 > Then p2 is on the same line x0 = p[0][0] y0 = p[0][1] x1 = p[1][0] y1 = p[1][1] | public static boolean sameLine(double[][] p) {
for (int i = 2; i < p.length; i++) {
if ((p[1][0] - p[0][0]) * (p[i][1] - p[0][1]) - (p[i][0] - p[0][0]) * (p[1][1] - p[0][1]) != 0)
return false;
}
return true;
} | [
"static public void buildConnectin(Point p1, Point p2, ArrayList<Point> path){\n int x1=p1.x, x2=p2.x, y1=p1.y, y2=p2.y;\n path.clear();\n int x=x1,y;\n int delta;\n if(x1==x2){\n delta=1;\n if(y2<y1) delta=-1;\n y=y1+delta;\n while(delt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the first element | public Object first() throws IllegalArgumentException {
if (isEmpty())
throw new IllegalArgumentException("The queue is empty");
return queue[first];
} | [
"public E first() {\n assert !isEmpty(): \"empty!\";\n return first.elem;\n }",
"public T getFirstElement() {\n return this.firstElement;\n }",
"public Object first() {\n \t\tif (size == 0) throw new IndexOutOfBoundsException();\n \t\treturn elements[0];\n \t}",
"public T first() {\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the group password | public String getGroupPassword() {
return groupPassword;
} | [
"public String getPassword () {\n return passwd;\n }",
"public String getPassword()\r\n {\r\n return ( this.strPassword );\r\n }",
"public String getDSPassword();",
"public String getPassword()\r\n\t\t{\r\n\t\t\treturn password.getInput();\r\n\t\t}",
"private String getPassword()\r\n\t{\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Hacer el validador del usuario. | @Override
public void validate(User entity) throws UncheckedException {
} | [
"void validarUsuario() {\r\n\r\n\t\ttry {\r\n\t\t\tUsuariosBeanRemote usuarioBean = (UsuariosBeanRemote)\r\n\t\t\tInitialContext.doLookup(\"PROYECTO/UsuariosBean!com.servicios.UsuariosBeanRemote\");\r\n\t\t\tString password = String.valueOf(passwordField.getPassword());//se guarda el password como string\r\n\t\t\tS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the final Speech Synthesis Markup Language (SSML) to be spoken, overwriting any previously specified SSML or text to speech. | public TellResponseBuilder withSsml(final String ssml) {
setSsml(ssml);
setTextToSpeech(null);
return this;
} | [
"void setSpeechText(String text);",
"public void setSpeech(String speech) {\n\t\tthis.speech = speech;\n\t}",
"public void setStemmedText(String text) {\n this.stemmedText = text;\n }",
"public void setSpeech(String speech, int position) {\n\t\tthis.speech = speech;\n\t\tthis.speechIndex = position;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public Map<String, Object> getAttributes() {
return oAuth2User.getAttributes();
} | [
"@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"
]
]
}
} |
Executes a new query and returns the result as an array. | @Override
@SuppressWarnings("unchecked")
public E[] toArray() {
try (var connection = new DBConnection()) {
return this.mapper.mapToArray(connection.execute(getQuery()));
} catch (SQLException e) {
e.printStackTrace();
return (E[]) Array.newInstance(this.type, 0);
}
} | [
"public DBColumn[] execute();",
"private ResultSet executeQuery(String query) {\n\t\tQueryExecution queryExecution = QueryExecutionFactory.create(query,\n\t\t\t\tModelFactory.createDefaultModel());\n\t\tResultSet resultSetDBP = queryExecution.execSelect();\n\t\treturn resultSetDBP;\n\t}",
"Future<ResultSet> exe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column t_cpy_equity_pledge.logout_date | public void setLogoutDate(LocalDateTime logoutDate) {
this.logoutDate = logoutDate;
} | [
"public void setClosedate(java.sql.Date newValue) {\n\tthis.closedate = newValue;\n}",
"public Date getLogout() {\r\n return logout;\r\n }",
"public void setLoanendtime(Date loanendtime) {\n this.loanendtime = loanendtime;\n }",
"void setLastLegalCaseReportDate(Date value);",
"public voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new buffered output stream to write data to the specified underlying output stream with the specified buffer size. | public BufferedOutputStream(OutputStream out, int size) throws IllegalArgumentException {
if(size <= 0) {
throw new IllegalArgumentException("Size <= 0");
}
this.out = out;
buf = new byte[size];
} | [
"void bufferIt(BufferedOutputStream outStream, int code, int size)\n {\n int PutBuffer = code;\n int PutBits = bufferPutBits;\n\n PutBuffer &= ((1 << size) - 1);\n PutBits += size;\n PutBuffer <<= (24 - PutBits);\n PutBuffer |= bufferPutBuffer;\n\n while (PutBits ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void log(final MalformedURLException exception) {
} | [
"@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"
]
]
}
} |
Sets ith "DatiCassaPrevidenziale" element | void setDatiCassaPrevidenzialeArray(int i, it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v12.DatiCassaPrevidenzialeType datiCassaPrevidenziale); | [
"public void setElemento(String descripcion, String tiempoPrestamo, String categoria, int prestamista){\r\n\t\tthis.descripcion = descripcion;\r\n\t\tthis.tiempoPrestamo = tiempoPrestamo; \r\n\t\tthis.categoria = categoria;\r\n\t\tthis.prestamista=prestamista;\r\n\t}",
"void resoPrestito(int index, Biblioteca bib... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Startup the server Get the node addresses list associated with the target Pull the server instances status form mgm API In case of cluster tries to fund an instance which has RUNNING status | public void startUp() throws GlassFishClientException {
Map<String, String> standaloneServers = new HashMap<String, String>();
Map<String, String> clusters = new HashMap<String, String>();
String message;
try {
standaloneServers = getServersList();
} catch (ClientHandlerException ch) { ... | [
"private void loadServiceNodes() {\n\n List<EquivalentAddressGroup> addressGroups = new ArrayList<>();\n HealthClient healthClient = consul.healthClient();\n ConsulResponse<List<ServiceHealth>> listConsulResponse = healthClient.getHealthyServiceInstances(serviceName);\n Iterator<Service... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
pause Simple method that waits, user friendly feature to make cells readable Waits for 10 seconds before moving to next iteration of Game of Life | public void pause(){
System.out.println("Simulating interactions.....................");
try {
Thread.sleep(10000);
}
catch(InterruptedException ex) {
Thread.currentThread().interrupt();
}
} | [
"private void control()\n {\n try\n {\n gameThread.sleep(17);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n }\n }",
"private void pause(int i) {\n\t\t\t\t\n\t\t\t}",
"private void pause() {\r\n\t\t// TODO\r\n\t}",
"priva... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the modifiedData value for this Execute. | public void setModifiedData(byte[] modifiedData) {
this.modifiedData = modifiedData;
} | [
"public void setModified()\r\n\t{\r\n\t\tprocess.setModified();\r\n\t\tupdateModificationState();\r\n\t}",
"public void setModified(boolean modified) {\r\n this.modified = modified;\r\n }",
"protected void setAsDataModifyQuery() {\r\n DataModifyQuery query = new DataModifyQuery();\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
does the system percolate vertically in a direct way? | public static boolean percolatesDirect(boolean[][] open) {
int N = open.length;
boolean[][] full = flow(open);
int directPerc = 0;
for (int j = 0; j < N; j++) {
if (full[N - 1][j]) {
// StdOut.println("Hello");
directPerc = 1;
... | [
"public static void verticalLines() {\n\t\tmiddleSpace();\n\t\tSystem.out.print(\" ||\");\n\t\tmiddleSpace();\n\t}",
"public static void tower() { \n\t\tfor (int k = 1; k <= SIZE; k++) {\n\t\t\tfor (int line = 1; line <= SIZE; line++) {\n\t\t\t\tfor (int i = 1; i <= (SIZE * 3) - 3; i++) {\n\t\t\t\t\tSystem.out.pr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
List chars = Arrays.asList("a", "b", "c"); | public static void main(String[] args)
{
List<String> chars = Arrays.asList();
System.out.println("Return result from Supplier : "+chars.stream().findAny().orElseGet(() -> "Didn't find any match !"));
} | [
"private static char[] toCharArray(List<Character> list) {\n List<Character> charList = new ArrayList<>();\n if (list == null || charList.isEmpty()) {\n return new char[0];\n }\n\n char[] charArray = new char[list.size()];\n for (int index = 0; index < list.size(); inde... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Null constructor for Sundae class | public Checkout() {
itemList = new ArrayList<DessertItem>();
this.taxRate = 0.1;
} | [
"public sundae() {\n\t\tsuper(); // calls the super default constructor\n\t}",
"public Siamese() {}",
"public Spieler()\n {\n \n }",
"public Spedizione() {\n }",
"public ConstructorEmpty() {}",
"public StAd() {\n\n\t\t\t}",
"public Semaforo() {\n this(0);\n }",
"public Nurika... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
SEARCH /_search/commandes?query=:query : search for the commande corresponding to the query. | @GetMapping("/_search/commandes")
@Timed
public List<Commande> searchCommandes(@RequestParam String query) {
log.debug("REST request to search Commandes for query {}", query);
return StreamSupport
.stream(commandeSearchRepository.search(queryStringQuery(query)).spliterator(), false)
... | [
"private void DoMySearch(String query) {\n\t\t\n\t}",
"@Override\r\n\tpublic void search(String query) {\n\r\n\t}",
"public abstract List<SearchResult> search(String query);",
"public void find(String query) {\n sendKeys(mainSearch, query);\n click(searchBtn);\n }",
"public static void orQu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method in interface to handle recycler view clicks | @Override
public void onStepClick(Steps step) {
String tempVideoUrl = step.getVideoURL();
String tempThumbNailUrl = step.getThumbnailURL();
String urlToSend = "";
if (tempVideoUrl == null || TextUtils.isEmpty(tempVideoUrl)) {
if (tempThumbNailUrl == null || TextUtils.isEm... | [
"public interface ItemClickListenerRecycler {\n void onClickRecycle(View view,int position);\n}",
"public interface RecyclerViewOnClick {\n void onClick(View v, int pos);\n}",
"public interface onRecyclerClick {\n\n public void onRecyclerItemClick(int pos);\n}",
"public interface OnRecycleClick {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the configured NIS boot info. | public NisBootInfo getNisBootInfo() {
return this.nisBootInfo;
} | [
"java.lang.String getDeviceModelBoot();",
"com.google.protobuf.ByteString\n getDeviceModelBootBytes();",
"@java.lang.Override\n public yandex.cloud.api.k8s.v1.NodeOuterClass.DiskSpec getBootDiskSpec() {\n return bootDiskSpec_ == null ? yandex.cloud.api.k8s.v1.NodeOuterClass.DiskSpec.getDefaultI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Setup and run a simulated annealing optimiser for the given evaluation function and set of ranges. | static void do_sa( EvaluationFunction ef, int[] ranges, int trials ) {
double timestamp;
double train_time;
int i;
int j;
SimulatedAnnealing sa;
HillClimbingProblem hcp;
Distribution odd;
NeighborFunction nf;
FixedIterationTrainer fit;
double[] cooling_size ... | [
"public static void test_1(){\r\n\t\t\r\n\t\tint n_iterations = 100000;\r\n\t\t\r\n\t\tdouble [] start_values = {0.0, 1.0};\r\n\t\tdouble [] further_args = null;\r\n\t\t\r\n\t\tArrayList <BiFunction<double [], double [], Double>> eq_constraints = null;\r\n\t\tGenList further_eq_args = null;\r\n\t\t\r\n\t\tArrayList... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all the genres from tmdb api | Single<List<Chart>> genres (); | [
"public Set<String> getGenres() {\n List<Melody> mMelodies = MelodyLibrary.getInstance().getMelodies();\n Set<String> genres = new HashSet<>();\n for (Melody m : mMelodies) {\n genres.add(m.getGenre());\n }\n System.out.println(\"\\nThis is our genres \" + genres.toStr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
send the category state back to the main activity where it will be saved | void saveCategoriesAndReturn(){
Intent result = new Intent();
boolean[] booleans = new boolean[allCategoryNames.length]; //stores the checked booleans
//loop through to set booleans
for(int i = 0; i < allCategoryNames.length; i++){
booleans[i] = listView.isItemChecked(i);
}
result.putExtra("categor... | [
"private void saveCategory() {\n BinderValidationStatus<Category> status = categoryBinder.validate();\n if (status.hasErrors()) {\n Notification.show(\"Validation error count: \"\n + status.getValidationErrors().size(), Notification.Type.WARNING_MESSAGE);\n }\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public List<Medicine> findMedicineByKey(String key) {
return medicineMapper.findMedicineByKey(key);
} | [
"@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"
]
]
}
} |
As we haven't actually created any identities, all we need to do is check that the NoIdentityActivity has been launched | @Test
public void redirectsToNoIdentityActivityIfNoIdentitiesExist() {
assertEquals(1, this.mActivityTestRule.getActivityMonitor().getHits());
} | [
"@Deployment\n public void testSetAuthenticatedUserWithNoWaitStates() {\n Authentication.setAuthenticatedUserId(\"kermit\");\n\n ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(\"identityLinktest\");\n assertProcessEnded(processInstance.getId());\n\n Authentication.setAuthent... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getter method for patient contact | public long getPatientContact() {
return patientContact;
} | [
"public String getContact() \n {\n return _contact;\n }",
"Contact getContactInformation();",
"ContactInformation getContactInformation();",
"AccountDetailsContact getContact ();",
"public String getContact_person() {\n\t\treturn contact_person;\n\t}",
"public String getContactPersonPhone() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Specifies the frontendPortRangeEnd property: The port range end for the external endpoint. This property is used together with BackendAddressPool and FrontendPortRangeStart. Individual inbound NAT rule port mappings will be created for each backend address from BackendAddressPool. Acceptable values range from 1 to 6553... | WithCreate withFrontendPortRangeEnd(Integer frontendPortRangeEnd); | [
"public void setFrontendPortRangeEnd(final int frontendPortRangeEndValue) {\n this.frontendPortRangeEnd = frontendPortRangeEndValue;\n }",
"public void setFrontendPortRangeStart(final int frontendPortRangeStartValue) {\n this.frontendPortRangeStart = frontendPortRangeStartValue;\n }",
"publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public int produit(int a, int b) {
int produit = a*b;
return produit;
} | [
"@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"
]
]
}
} |
Metodo que substitui a ArrayList de Atributos por uma enviada por parametro | public void setAttributes(List<Attribute> attributes) {
this.attributes = attributes;
} | [
"ListAttribute createListAttribute();",
"AttributeList getAttributeList();",
"public void setAttributeList(com.jcommerce.ws.server.AttributeList param){\r\n \r\n clearAllSettingTrackers();\r\n \r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .dstore.engine.MetaInformation meta_information = 2; | public io.dstore.engine.MetaInformationOrBuilder getMetaInformationOrBuilder(
int index) {
return metaInformation_.get(index);
} | [
"@Override\n\tpublic int getMetadata(int meta)\n {\n return meta;\n }",
"public int getMetadata()\r\n/* 72: */ {\r\n/* 73: 70 */ return this.meta % 16;\r\n/* 74: */ }",
"public void setMetaData(String s) { metaData=s;}",
"MetaInformationOrBuilder getMetaInformationOrBuilder... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set timeout for waiting a data packet. By default the timeout is 1000ms and it can be changed in order to fit better in a poor/good connection. | public void setDataTimeOut(int timeOut)
{
this.udpSocket.setDataTimeOut(timeOut);
} | [
"public void setTimeout(int timeout) throws SocketException;",
"public void setSocketTimeout(int socketTimeout);",
"public void setTimeout(int timeout) throws IOException\r\n {\r\n socket.setSoTimeout(timeout);\r\n }",
"DownLoader setConnectTimeout(int timeout);",
"public void setTimeout(int timeout)\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the size of the largest contiguous square submatrix of a[][] containing only 1s. | public static int size(int[][] a) {
int n = a.length;
int max_size = 0;
int[][] temp = new int[n + 1][n + 1]; // wrap array a with this wrapper array
for (int i = 1; i < n + 1; i++) {
for (int j = 1; j < n + 1; j++) {
if (a[i - 1][j - 1] == 1) { // calc minimum from three values and add 1... | [
"public List<Integer> largestSumContiguousSubArray(int a[]);",
"public static int max_connected_size(int[][] mn) {\n\t\tint M = mn.length;\n\t\tint N = mn[0].length;\n\n\t\tint max = 0;\n\t\tfor(int i=0; i<M; i++) {\n\t\t\tfor(int j=0; j<N; j++) {\n\t\t\t\tif(mn[i][j] == 1) {\n\t\t\t\t\tint count = connected_size... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the background for the game when the game is not paused and has not started | public BufferedImage getTitlePage() {
return titlePage;
} | [
"public Background getActiveBackground()\n {\n return currentBackground;\n }",
"@DISPID(180)\r\n @PropGet\r\n java.lang.Object getBackground();",
"public static ResourceLocation getBackground() {\n\t\treturn BACKGROUND;\n\t}",
"public Sprite getBackground() {\r\n Sprite background = new ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value wrapped in this object to the value given. | public void setValue(Object value) {
this.value = value;
} | [
"public void setValue(Object value)\r\n\t{\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue( Object value )\n \t{\n \t\tthis.value = value;\n \t}",
"public final void setValue(Object value) {\r\n\t\tthis.value = value;\r\n\t}",
"public void setValue(Object value)\n\t{\n\t\tthis.value = value;\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
root of the tree. function for performing a Left Rotation. | private static void leftRotate(Node node){
System.out.println("Rotating left : " + node.data);
Node parent = node.parent;
Node left = node.left;
node.left = parent;
parent.right = left;
if(left!=null){
left.parent = parent;
}
Node gp = node.parent.parent;
parent.parent = node;
node.parent = gp;
... | [
"public void leftRotation(){\n\t\tNode u = root.parent; \n\t\tNode v = root.right; \n\t\tNode x = v.left; \n\t\troot.right = x; \n\t\tx.parent = root;\n\t\tv.left = root;\n\t\troot.parent = v;\n\t\tif(u != null) {\n\t\t\tif(u.right == null){\n\t\t\t\tu.right = v;\n\t\t\t}else{\n\t\t\t\tu.left = v;\n\t\t\t}\n\t\t\tv... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end rule__Navigation__Group__0__Impl $ANTLR start rule__Navigation__Group__1 ../hu.bme.mit.androtext.nav.ui/srcgen/hu/bme/mit/androtext/nav/ui/contentassist/antlr/internal/InternalAndroNav.g:743:1: rule__Navigation__Group__1 : rule__Navigation__Group__1__Impl rule__Navigation__Group__2 ; | public final void rule__Navigation__Group__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../hu.bme.mit.androtext.nav.ui/src-gen/hu/bme/mit/androtext/nav/ui/contentassist/antlr/internal/InternalAndroNav.g:747:1: ( rule__Navigation__Group__1__Impl ... | [
"public final void rule__Navig__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.webgme_mtl.ui/src-gen/org/xtext/example/webgme/ui/contentassist/antlr/internal/InternalMTL.g:2411:1: ( rule__Navig__Group__0__Imp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the previous history entry (if there is one) active. | public void goBack() {
if (iCurrentEntryPosition <= 0) {
return;
}
iCurrentEntryPosition--;
applyCurrentHistoryEntry();
} | [
"public void setPrevious(boolean previous) {\r\n m_previous = previous;\r\n }",
"public void setPrevious(String value){\n this.previous = value;\n }",
"private void setQueryFromHistory() {\n if (currentQuery >= 0 && currentQuery < queryHistory.size()) {\n queryEditor.set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test if the database connection works, if not, abort program. | private static void testDatabaseConnection()
{
Connection connection = MariaDB.getMariaDBConnection();
TalkerHelper talkerHelper = TalkerHelper.getInstance();
if(connection == null)
{
talkerHelper.talkGreatError("MAIN", "Connection to DB could not be established! Abortin... | [
"public void testFunctionalityPresent() {\n try {\n dbm.getConnection(\"nonExistingDb\");\n } catch (SQLException e) {\n // Expect a database not found exception.\n assertSQLState(\"XJ004\", e);\n }\n }",
"public void checkDbConnection() {\n }",
"prote... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Before each test clear the cache from any previous responses and expectations | @Before
public void cleanServerCache() {
MockAuthServer.resetServer();
} | [
"@Before\r\n public void clearCache() {\n cacheManager.getCacheNames().forEach(n -> cacheManager.getCache(n).clear());\r\n }",
"public void testRemoveAllDataFromCache() {\n // given\n mockCacheManager.removeAllDataFromCache();\n EasyMock.replay(mockCacheManager);\n\n // when\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public String InterfaceName() {
return "b2c.member.index";
} | [
"@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"
]
]
}
} |
Gets the value of the verseNumber property. | public int getVerseNumber() {
return verseNumber;
} | [
"public int getVerNum() {\n return verNum;\n }",
"public String getVersaoNumber() {\r\n\t\treturn versaoNumber;\r\n\t}",
"public java.lang.String getVatNumber() {\n java.lang.Object ref = \"\";\n if (changeCase_ == 7) {\n ref = change_;\n }\n if (ref instanceof java.lang.Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of the QueueClient. | public QueueClient(Vertx vertx, MonitoringHandler monitoringHandler) {
this.vertx = vertx;
this.monitoringHandler = monitoringHandler;
} | [
"protected Queue instantiateQueue()\n {\n return new Queue();\n }",
"public Queue() {\n clientsQueue = new ArrayList<Client>();\n }",
"MessageQueue createMessageQueue(MessageQueueMetadata name);",
"private CustomerQueue() {}",
"public ServiceBusQueue() {\n this.setAutho... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Marker interface to indicate that the configuration is a database one. Needed to clearify the ipojo service injection. This class also uses a callback which is used to indicate a change of configuration (e.g. switching from embedded to non embedded configuration or by a change of the configuration in the frontend) | public interface ActiveMQDatabaseConfiguration extends ActiveMQConfiguration {
/**
* The callback is used to inform someone about the confiugration change
*
* @param callback
* the callback
*/
public void setCallback(ActiveMQConfigurationCallback callback);
} | [
"public interface IConfiguration {\n\n void setJDBCString(String jdbcString);\n\n String getJDBCString();\n\n void setDbClassString(String dbClass);\n\n String getDbClassString();\n\n void setDataFormat(String dataFormat);\n\n String getUserName();\n\n void setUserName(String userName);\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets all rentals in the library. | @RequestMapping(value = "/library/rentals/all", method = RequestMethod.GET)
public List<Rental> getAllRentals() {
List<Rental> rentals = this.rentalRepository.findAll();
for (Rental rental : rentals) {
LOGGER.debug(rental.toString());
}
return rentals;
} | [
"public static void listAllRentals() {\n\t\tfor (Rental r : rentals) {\n\t\t\tSystem.out.println(r.toString());\n\t\t}\n\t\t\n\t}",
"public List<Order> getRentals() {\n\t\tList<Order> rentals = new ArrayList<>();\n\n\t\tfor (Order o : storage.getOrders()) {\n\t\t\tPaymentStatus s = o.paymentStatus();\n\n\t\t\tif ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Manipulates the map once available. This callback is triggered when the map is ready to be used. This is where we can add markers or lines, add listeners or move the camera. In this case, we just add a marker near Sydney, Australia. If Google Play services is not installed on the device, the user will be prompted to in... | @Override
public void onMapReady(GoogleMap googleMap) {
mMap = googleMap;
//location();
// Add a marker in Sydney and move the camera
LatLng amman = new LatLng(latitude, longitude);
mMap.addMarker(new MarkerOptions().position(amman).title("currant position")).setIcon(Bitma... | [
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
adds a comment on the sale report page of the particular item found | public void addComment(View view) {
EditText etComment = (EditText) this.findViewById(R.id.saleConnectionComment);
final String comment = etComment.getText().toString();
comments.add(comment);
ListView commentList = (ListView) findViewById(R.id.saleConnectionListView);
Array... | [
"@Override\r\n\tpublic void addComment() {\n\t\tlogger.trace(\"수업: add comment 호출됨\");\r\n\t}",
"private void updateItemById() {\n System.out.print(\" Input id: \");\n String id = scanner.nextLine();\n System.out.print(\" Input new name item: \");\n String name = scanne... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
String jmdacName = jmdacPath.getFileName().toString().replace(".jmdac", ""); | @objid ("0011d30d-e6a1-441a-9288-eb0a3a29533e")
private Path computeModuleCachePath(Path jmdacPath) throws IOException {
String hashKey = computeHash(jmdacPath);
Path moduleCachePath = this.cachePath.resolve(hashKey);
return moduleCachePath;
} | [
"String getDsrFileName(String filename);",
"private String fileName() {\n String string = tcUMLFile.getName();\n if (string.lastIndexOf(\".\") != -1) {\n return string.substring(0, string.lastIndexOf(\".\")) + \".xmi\";\n } else {\n return string + \".xmi\";\n }\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Call reporting setting for a customer. Only mutable in an `update` operation. .google.ads.googleads.v14.resources.CallReportingSetting call_reporting_setting = 10; | boolean hasCallReportingSetting(); | [
"public void setCall(Call call) {\r\n setDatasourceCall(call);\r\n isUserDefinedSQLCall = true;\r\n }",
"public Builder call(Boolean call) {\n request.call = call;\n return this;\n }",
"public UnaryCallSettings.Builder<GetReportRequest, Report> getReportSettings() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Make a sell request and send it to the server | private boolean makeSellRequest(String stockName, DataOutputStream toServer) {
boolean run = true;
StockName stock = StockName.valueOf(StockName.class, stockName);
if(stock != null) {
Request request = Request.generateRandomImprovedRequest(this.uId, stock, Type.ASKS);
run = sendRequest(request, toServer... | [
"void sendTradeOffer();",
"private boolean submitSellOrder() {\n\t\tif (!Sell()) {\n\t\t\treturn false;\n\t\t}\n\t\tString url = String.join(\n\t\t\t\t\"/\", \"sell\", stockSym,\n\t\t\t\tInteger.toString(volumeToSell()),\n\t\t\t\tLong.toString(priceToSell()));\n\t\tString ob = sendURLWithToken(url, \"POST\");\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sets the instance to null | @Override
protected void done() {
dataLayer = null;
} | [
"protected static void reset() {\n instance = null;\n }",
"public void invalidate() {\n instance = null;\n }",
"public static void clearInstance()\r\n\t{\r\n\t\tinstance = null;\r\n\t}",
"public static void clearInstance() {\n sInstance = null;\n }",
"public synchronized static... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Name of the controller that emitted this Event, e.g. &x60;kubernetes.io/kubelet&x60;. | @javax.annotation.Nullable
@ApiModelProperty(value = "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.")
public String getReportingComponent() {
return reportingComponent;
} | [
"public String getEmitterName();",
"public String getName() {\n return org.openide.util.NbBundle.getBundle (ComponentInspectorAction.class).getString(\"ACT_ComponentInspector\");\n }",
"public void setControllerName(Object value) throws DmcValueException {\n DmcTypeCamelCaseNameSV attr = (DmcT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Function will check value is empty or not. | public String checkEmpty(String value) {
if (value == null || value.trim().length() == 0 || value.trim().equalsIgnoreCase("null"))
return "";
else
return value;
} | [
"private boolean isEmpty(String value) {\n return value.length() == 0;\n }",
"private static boolean isEmpty(String inputValue) {\n return inputValue.trim().isEmpty();\n }",
"public static boolean empty(String value) {\n\t\treturn value == null || value.length() < 1;\n\t}",
"public boolean is... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Register a new versioned unit slot descriptor. | public VersionedUnitSlotInfo(String name)
throws SlotAlreadyRegisteredException {
super(name, IRUnitType.prototype, VersionedUnitSlotFactory.prototype
.getUnitStorage(), (Void) null,
new HashedSlots<VersionedUnitSlot, Void>());
} | [
"public EmigrateUnitMessage(int slot) {\n this.slotString = Integer.toString(slot);\n }",
"PlatformSlot createPlatformSlot();",
"public void add(Slot slot)\r\n {\r\n MultiSlot multiSlot = getMultiSlot(slot.getName());\r\n multiSlot.add(slot);\r\n }",
"public UpdateSlotPacket() {}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
// Autonomous information: Targets, Position, and Override TO DO: Auto choosing program // | private void displayAutoInformation() {
autoChoice = new UserInterface(convertAuto(auto), "AUTONOMOUS");
} | [
"public void autonomous() \n {\n \tdriveBase.setSafetyEnabled(false);\n \t\n \tthis.clearOutputs();\n \t\n \tdouble rawAutoChoice = SmartDashboard.getNumber(Robot.AUTONOMOUS_CHOICE);\n \tint autoChoice = (int)rawAutoChoice;\n \t\n \tif (autoChoice < this.autonmousOptions.length)\n \t{\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Initialize array and grid | private void initializeGrid(int i, int j) {
buttons = new JButton[i * j];
g1 = new GridLayout(i, j);
p2.setLayout(g1);
for (int k = 0; k < buttons.length; k++) {
buttons[k] = new JButton("" + 2 * k);
buttons[k].addChangeListener(this);
p2.add(buttons[k... | [
"public void initializeGrid() {\n\t\tfor(int x = 0; x < width; x++) {\n\t\t\tfor(int y = 0; y < height; y++) {\n\t\t\t\tgrid.setElement(new Point<Integer>(x, y), new MazeCell(x, y));\n\t\t\t}\n\t\t}\n\t}",
"public void generateGrid() {\n\n this.mainGrid=new String[heightY][widthX];\n for (in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get and set method | public void setAccountId(int id) {
this.account_id = id;
} | [
"public T get() {\n return value;\n }",
"abstract int get();",
"public GetOrSet() {\n this.present = true;\n this.access = AccessModifier.PUBLIC;\n this.spec = \"\";\n }",
"@Override\n\tpublic void get(String property) {\n\t\t\n\t}",
"public int get() {\n return _value;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .datayes.mdl.mdl_szl2_pbmsg.Snapshot300111_v2.AskPriceLevelItem.OrdersItem Orders = 39; | public java.util.List<datayes.mdl.mdl_szl2_pbmsg.MDLSZL2Msg.Snapshot300111_v2.AskPriceLevelItem.OrdersItem> getOrdersList() {
if (ordersBuilder_ == null) {
return java.util.Collections.unmodifiableList(orders_);
} else {
return ordersBuilder_.getMessageList();
}
... | [
"public cruz.agents.ProtoMessage.OrderDataOrBuilder getOrdersOrBuilder(\n int index) {\n return orders_.get(index);\n }",
"public Chihu.OrderOrBuilder getOrdersOrBuilder(\n int index) {\n return orders_.get(index);\n }",
"private OrderItem(com.google.protobuf.GeneratedMessage.Build... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the total count for each component of the change. | private static int getTotal(DiffStatsDto diffStats) {
return getAffected(diffStats) + diffStats.getUnchanged();
} | [
"public int getTotalChanges() {\n\t\t\n\t\treturn totalChanges;\n\t}",
"@Transient\n public int getCalories() {\n int totalCalories = 0;\n for (Portion portion : portions) {\n totalCalories += portion.getCalories();\n }\n\n return totalCalories;\n }",
"@Override\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Dcae Service Query Link' containment reference. Link.title is the DCAE service property value. Following this link will provide a list of DCAE services that all have this property value. | Link getDcaeServiceQueryLink(); | [
"public Link getPivotLink() {\n\t\tfinal Link l = searchPage.set(null, null, G_Constraint.EQUALS.name(), getPropertyValue().toString(),\n\t\t\t\tdefaultMaxResults);\n\t\treturn l;\n\t}",
"public LinkService getLinkService() {\r\n\t\treturn linkService;\r\n\t}",
"public String getQuery() {\r\n return this.que... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
updated continuously as the user slides the thumb | @Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
wineSizeLabel.setText(progress + " oz.");
wineSize = progress;
} | [
"AbstractImagePrototype sliderSliding();",
"public void imageSlider() {\n\n }",
"void leftThumb(boolean pressed);",
"public void resetThumb()\r\n\t{\t\r\n\t\tsetThumbWidth(_currentProject) ;\t\t\r\n\t\tsetThumbPosition(_currentProject) ;\t\t\t\t\t\r\n\t}",
"void onSlideOverThreshold();",
"private void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Display schedules in the public schedule list. | public void displayPublicSchedule(){
if (sm.getAllPublicSchedule().isEmpty()) {
System.out.println("There is no public schedule.");
}
for (Schedule s : sm.getAllPublicSchedule()) {
System.out.println(s);
}
} | [
"java.util.List<com.google.cloud.gaming.v1alpha.Schedule> getSchedulesList();",
"public List<Schedule> getScheduleList() {\n return scheduleList;\n }",
"@GetMapping(\"/schedule/list\")\n\tpublic String StudentSchedule_List(Model model) {\n\t\tmodel.addAttribute(\"student_list\", studentservice.findAll... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
generate a delete Dialog | private AlertDialog.Builder generateDeleteDialog() {
DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
switch (which) {
case DialogInterface.... | [
"public void ViewApptDelete(){\n AlertDialog diaBox = ConfirmDelete();\n diaBox.show();\n }",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tinitDeleteDialog();\n\t\t\tdialog.show();\n\t\t}",
"void showDeleteBtn();",
"public DeleteDialog() {\n }",
"private void showDeleteConfirmati... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
on tab selected show respected fragment view | @Override
public void onTabSelected(Tab tab, FragmentTransaction ft) {
viewPager.setCurrentItem(tab.getPosition());
} | [
"@Override\n public boolean onTabSelected(int position, boolean wasSelected) {\n\n switch (position){\n case 0:\n fragment = new HomeFragment();\n break;\n case 1:\n fragment = new Bo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Update rotation matrix, which is needed to update orientation angles. | public void updateOrientationAngles(SensorEvent sensorEvent) {
mSensorManager.getRotationMatrix(rotationMatrix, null,
mAccelerometerReading, mMagnetometerReading);
mSensorManager.getOrientation(rotationMatrix, orientationAngles);
//read orientation around axis
float azi... | [
"public void updateOrientationAngles() {\n // Update rotation matrix, which is needed to update orientation angles.\n mAccelSensorManager.getRotationMatrix(mRotationMatrix, null,\n mAccelerometerReading, mMagnetometerReading);\n\n // \"mRotationMatrix\" now has up-to-date informa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .etc.Library library = 1; | public int getLibraryCount() {
return library_.size();
} | [
"public void setLibrary(String lib) {\n this.library = lib;\n }",
"private Library(){}",
"public LibraryManager(){\n\n _date = new Date();\n _library = new Library(\"Lib\");\n }",
"boolean isLibrary();",
"public LoadedLibrary findLibrary(String name) throws LibraryNotFoundException;",
"Us... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
onDolbyAudioProcessingProfileSelected(): Invoked when a DolbyAudioProcessing profile is set. | @Override
public void onDolbyAudioProcessingProfileSelected(DolbyAudioProcessing.PROFILE profile) {
Log.d(TAG, "DOLBY: Dolby audio processing profile selected.");
} | [
"public void setAudioFormatProfile(String audioFormatProfile);",
"private void notifyAudioProfileChanged() {\n if (mActiveProfileKey == null) {\n Log.e(TAG, \"notifyAudioProfileChanged falled, because active profile key is null!\");\n return;\n }\n\n if (mRecords.isEmpty... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Scale a color by multiplying a factor. Values greater than 1 will add for bright | public static Color brightness(Color c, double scale) {
int r = Math.min(255, (int) (c.getRed() * scale));
int g = Math.min(255, (int) (c.getGreen() * scale));
int b = Math.min(255, (int) (c.getBlue() * scale));
return new Color(r, g, b);
} | [
"public static Color scaleColor(double coefficient, Color color) {\n\t\tColor result = new Color((float)((color.getRed() / 255.0)*coefficient), (float)((color.getGreen() / 255.0)*coefficient), (float)((color.getBlue() / 255.0)*coefficient));\n\t\treturn result;\n\t}",
"public void multiply(float scale);",
"@Col... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
final int LAUNCH_SECOND_ACTIVITY= 100; | public RViewAdapter(Context context, ArrayList<Booking> bookingOption, onClickListener listener) {
this.context = context;
this.bookingOption = bookingOption;
this.listener = listener;
} | [
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.splash_screen);\n\n\n prefManager = new PrefManager(this);\n\n\n\n\n\n\n Thread timerThread = new Thread(){\n public void run(){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
read in this string and return a Label | public final Object readThisLine(String theLine){
// get a stream from the string
StringTokenizer st = new StringTokenizer(theLine);
// declare local variables
WorldLocation theLoc;
double latDeg, longDeg, latMin, longMin;
char latHem, longHem;
double latSec, longSec;
String ... | [
"@Override\r\n public String readLabel() {\n return null;\r\n }",
"private Label createLayoutLabel(String str) {\n Label result = new Label(str);\n result.setPadding(new Insets(5, 5, 5, 5));\n return result;\n }",
"static String label(String chunk){\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks a variable being a bean | private String isBean(final String variable) {
if (RuntimeConfig.getInstance().getBeanMapping() != null) {
return RuntimeConfig.getInstance().getBeanMapping().get(variable);
}
return null;
} | [
"public boolean isPotentialBeanType(Class<?> cls) {\n String canBeABeanType = ClassUtil.canBeABeanType(cls);\n if (canBeABeanType != null) {\n throw new IllegalArgumentException(\"Can not deserialize Class \" + cls.getName() + \" (of type \" + canBeABeanType + \") as a Bean\");\n } e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ImportedVariableList__Group__0" $ANTLR start "rule__ImportedVariableList__Group__0__Impl" InternalReflexOld.g:3687:1: rule__ImportedVariableList__Group__0__Impl : ( ( rule__ImportedVariableList__Alternatives_0 ) ) ; | public final void rule__ImportedVariableList__Group__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalReflexOld.g:3691:1: ( ( ( rule__ImportedVariableList__Alternatives_0 ) ) )
// InternalReflexOld.g:3692:1: ( ( rule__Imported... | [
"public final void rule__Variable__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReflex.g:2573:1: ( ( ( rule__Variable__Alternatives_0 ) ) )\n // InternalReflex.g:2574:1: ( ( rule__Variable__Alternatives_0... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the sublayer at the specified index. | public MapLayer getSubLayer(int n) {
return (MapLayer) subLayers.get(n);
} | [
"public Layer getLayer(int index)\n \t{\n \t\treturn layers.get(index);\n \t}",
"final JXLayer<JComponent> getLayerAt(int index) {\n return components.get(index);\n }",
"IImage getLayer(int index) throws IllegalArgumentException;",
"fzdeepnet.Setting.Layer getLayer(int index);",
"public ShapeGroup... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
THE CLASS PARAMS PASSED INTO THIS FUNCTION MUST BE THE SAME PARAMS NEEDED BY THE FUNCTION CALLED FROM GaggleApiAdapter | private void setParamTypes(Class... paramTypes){
this.paramTypes = paramTypes;
} | [
"private void initParams() {\n }",
"@Override\n protected Map<String, String> getParams() {\n return new HashMap<>();\n }",
"@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public getter Helptext defines the purpose of the tag. The help text will be shown only when it is available for the particular tag | public String getHelpText() {
return this.helpText;
} | [
"public String getHelpText() {\n return usage.toString();\n }",
"@AutoEscape\n public String getHelpText();",
"public String getHelpDescription(){\n return _helpDescription;\n }",
"@Override\n\tpublic String showHelp( ) {\n\t\treturn new String( ChatColour.RED + \"Usage: \" + ChatColour... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This class was generated by the JAXWS RI. JAXWS RI 2.2.4b01 Generated source version: 2.2 | @WebService(name = "Calculadora", targetNamespace = "http://jaxws.jaad.cibertec.edu/")
@XmlSeeAlso({
ObjectFactory.class
})
public interface Calculadora {
/**
*
* @param arg1
* @param arg0
* @return
* returns java.lang.Integer
*/
@WebMethod
@WebResult(... | [
"@WebService(targetNamespace = \"http://laegler.com/openbanking/soap/service\", name = \"authserver_PortType\")\n@XmlSeeAlso({com.laegler.openbanking.soap.model.ObjectFactory.class})\npublic interface AuthserverPortType {\n}",
"@WebService(serviceName = \"DocumentReceiver\", targetNamespace = \"https://SOAP.SOR2.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the coordinates obtained in an array with x then y | public int[] getCoordinates() {
int[] coordinates = new int[] {xCoord , yCoord};
return coordinates;
} | [
"public double[] getCoords();",
"private int[] coordinates() {\r\n int x = input.boardInput(board.getBoardLength(), \"X\");\r\n int y = input.boardInput(board.getBoardLength(), \"Y\");\r\n return new int[] {y, x};\r\n }",
"gov.nasa.gsfc.spdf.ssc.CoordinateData[] getCoordinatesArray();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Here the method choose the first from each pool from an ArrayList of pool given, and put the participant into the arrayList | @Override
public ArrayList<Competitor> selectedForTournament(ArrayList<League> pools) {
ArrayList<Competitor> selectedOnes=new ArrayList<>();
for(League l:pools) {
selectedOnes.add(MapUtil.mapToArrayList(l.ranking()).get(0));
}
return selectedOnes;
} | [
"private List<Pick> optimalNextPicks(Roster pickingTeam, Roster enemyTeam, Set<Hero> pool) {\n//\t\treturn greedyPick(pickingTeam, enemyTeam, pool);\n\t\t\n\t\t// for each possibility, evaluate the marginal value added to our team\n\t\treturn pool.stream()\n\t\t\t\t.map(hero -> new Pick(hero, scorer.marginalScore(h... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onFailure(Throwable caught) {
for(int i=0;i<7;i++){
RootPanel.get("topPromoter"+i).getElement().setInnerText("Error");
}
Window.alert(caught.getMessage());
} | [
"@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"
]
]
}
} |
boolean DCOffsetLoop(int[] RangeMin, int[] RangeMax, int Step, int[] OffsetValue, long[] AccumulatedData, long[] AccumulatedGNDData) throws HeadlessException, InterruptedException, IOException | Object[] DCOffsetLoop(int[] RangeMin, int[] RangeMax, int Step,int[] OffsetValue, long[] AccumulatedData, long[] AccumulatedGNDData) throws HeadlessException, InterruptedException, IOException
{
int Range, Length;
Range = RangeMax[0] - RangeMin[0];
for(int i = 0; i < Definition.Serial_EIT_ALL_CH; i++)
{
if... | [
"private void computeDEMTraversalSampleInterval() {\n \n /*\n double mapW = imageGeoBoundary.lonMax - imageGeoBoundary.lonMin;\n double mapH = imageGeoBoundary.latMax - imageGeoBoundary.latMin;\n \n delLat = Math.min(mapW / sourceImageWidth, mapH / sourceImageHeight);\n delLo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generate the new form | @Override
public void actionPerformed(ActionEvent e)
{
MatchFormData formData = getSaveData();
//Save only if the new form was successfully created
if (formData != null)
{
Globals.saveData.addMatchForm(formData);
... | [
"public String doNewForm(){\n\t\tsetUser(new User());\n\t\t//Por defecto, no se ha pulsado cambiar foto\n\t\tsetCambiarFoto(false);\n\t\t//cargo la lista de roles\n\t\tthis.lstRoles=userService.findAllRoles();\n\t\t//cargo la lisra de familias\n\t\tthis.lstFamilias=familiaService.getFamiliasAllForCombo();\n\t\t//Co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an expression that represents applying an array index operator to an array of rank one. | public static IndexExpression arrayIndex(Expression array,
Expression indexExpression) {
return new IndexExpression(array,
Collections.singletonList(indexExpression));
} | [
"public Evaluator visitArrayIndex(ComS319LanguageParser.ArrayIndexContext ctx) {\n\t\tEvaluator index = visit(ctx.expr());\n\t\treturn index;\n\t}",
"@Override\n\tpublic Expr[] args() {\n\t\treturn new Expr[]{arrayRef, index};\n\t}",
"public int[] apply( int n, R[] x, Order<R> order );",
"IExpr genArrSub(Arra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
reverse String by returning character at index n, from the left | public static String stringReverse(String s, int n)
{
if(n==1)
return "" + s.charAt(0);
else //n>1
{
return "" + s.charAt(n-1) + stringReverse(s, n-1);
}
} | [
"public static String stringReverse(String s, int n){\n if (n == 1){\n return \"\" + s.charAt(0);\n }else\n n--;\n return s.charAt(n) + stringReverse(s, n);\n }",
"String reverseStringRec(String str);",
"public static String reverseR(String s) { \n\tif (s.length... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | [
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainMenuCard.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |