query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102 values |
|---|---|---|---|---|---|---|
method to call PriceCRUD to calculate the total price of the tickets given the variables of categories that the user chose and to print the receipt | public double runPrice(int age) {
// PriceCRUD for calculating price later
PriceCRUD<CinemaClassPrice> cinemaClassCRUD = new PriceCRUD<>(CinemaClassPrice.class);
PriceCRUD<MovieTypePrice> movieTypeCRUD = new PriceCRUD<>(MovieTypePrice.class);
PriceCRUD<DayPrice> dayCRUD = new PriceCRUD<>(DayPrice.class);
PriceCRUD<AgePrice> ageCRUD = new PriceCRUD<>(AgePrice.class);
// Get cinema class price
CinemaCRUD<Cinema> cinemaCRUD = new CinemaCRUD<Cinema>(Cinema.class, Showtimes.getCineplexId());
CinemaClass cinemaClass = cinemaCRUD.getCinemaType(this.showtimes.getCinemaId());
CinemaClassPrice cinemaClassPrice = cinemaClassCRUD.getElementPrice(cinemaClass);
// Get movie type price
MovieCRUD<Movie> movieCRUD = new MovieCRUD<>(Movie.class);
MovieType movieType = movieCRUD.getMovieById(this.showtimes.getMovieId()).getType();
MovieTypePrice movieTypePrice = movieTypeCRUD.getElementPrice(movieType);
// Get Day type price
DayType dayType = DateTimeHelper.getDayType(this.showtimes.getDate());
DayPrice dayTypePrice = dayCRUD.getElementPrice(dayType);
// Get Age Range Price
AgePrice agePrice = ageCRUD.getElementPrice(age);
// Print receipt for 1 ticket
System.out.println(cinemaClassPrice.toString());
System.out.println(movieTypePrice.toString());
System.out.println(dayTypePrice.toString());
System.out.println(agePrice.toString());
double ticketPrice = cinemaClassPrice.getPrice()+movieTypePrice.getPrice()+dayTypePrice.getPrice()+agePrice.getPrice();
System.out.println("Ticket price: "+ticketPrice);
return ticketPrice;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void generateReceipt(){\n ArrayList<Product> productList = cart.getProductList();\n ArrayList<Float> costsList = cart.getCostsList();\n for (int i=0; i<productList.size(); i++){\n String quantity = \"\"+productList.get(i).getQuantity();\n String name = \"\"+produc... | [
"0.57567006",
"0.57213193",
"0.56524503",
"0.5618772",
"0.55920285",
"0.55884755",
"0.5550453",
"0.5517844",
"0.551336",
"0.5512701",
"0.54851294",
"0.5480746",
"0.54667044",
"0.5438593",
"0.54170364",
"0.54087067",
"0.54062545",
"0.53999865",
"0.5382055",
"0.5380397",
"0.537... | 0.60427195 | 0 |
method to display initial menu for users, under UserUI | public void home() {
UserUI ui = new UserUI();
ui.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void displayMenu() {\r\n\t\tif (this.user instanceof Administrator) {\r\n\t\t\tnew AdminMenu(this.database, (Administrator) this.user);\r\n\t\t} else {\r\n\t\t\tnew BorrowerMenu(this.database);\r\n\t\t}\r\n\t}",
"private static void displayUserMenu() {\n\t\tSystem.out.println(\"\\t User Menu Help \\n\" \... | [
"0.80128205",
"0.7755634",
"0.72452456",
"0.7167755",
"0.71273696",
"0.7052216",
"0.6952316",
"0.6931415",
"0.6862738",
"0.68596977",
"0.68373555",
"0.68284905",
"0.6700402",
"0.6693267",
"0.6684497",
"0.66643536",
"0.665809",
"0.66550124",
"0.660541",
"0.6590891",
"0.6567101... | 0.6778005 | 12 |
method to get the seat that the user wants to book | public int[] getInputSeat() {
int[] seat = new int[2];
String input;
int A = (int)('A');
while (true) {
input = this.getInputString();
if (!input.matches("[A-Z]\\d+")) {
System.out.println("Wrong format! Please try again:");
continue;
}
int row = (int)input.charAt(0) - A;
int col = Integer.valueOf(input.substring(1));
if (this.showtimes.isAvailableSeat(row, col)) {
seat[0] = row;
seat[1] = col;
break;
}
}
return seat;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Seat getSeat(int seatId);",
"public String getSeat() {\n\t\t\treturn seat;\n\t\t}",
"public Seat getSeat()\r\n\t{\r\n\t\tif( seat != null )\r\n\t\t{\r\n\t\t\treturn seat;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn null;\r\n\r\n\t\t}\r\n\t}",
"int getSeats();",
"public ArrayList<SeatHold> getSeat() {\n\t... | [
"0.7566398",
"0.7474649",
"0.71682084",
"0.6878595",
"0.68212104",
"0.6772751",
"0.6712119",
"0.6644357",
"0.6625347",
"0.66002643",
"0.6546098",
"0.6532811",
"0.64647216",
"0.6435888",
"0.64348537",
"0.6408262",
"0.6344256",
"0.62941414",
"0.6254318",
"0.62304425",
"0.620497... | 0.55838025 | 60 |
This is the service through which ConnectionManagement occurs. | public interface ConnectionManager
{
String ROLE = ConnectionManager.class.getName();
/**
* Start managing a connection.
* Management involves accepting connections and farming them out to threads
* from pool to be handled.
*
* @param name the name of connection
* @param socket the ServerSocket from which to
* @param handlerFactory the factory from which to aquire handlers
* @param threadPool the thread pool to use
* @exception Exception if an error occurs
*/
void connect( String name,
ServerSocket socket,
ConnectionHandlerFactory handlerFactory,
ThreadPool threadPool )
throws Exception;
/**
* Start managing a connection.
* This is similar to other connect method except that it uses default thread pool.
*
* @param name the name of connection
* @param socket the ServerSocket from which to
* @param handlerFactory the factory from which to aquire handlers
* @exception Exception if an error occurs
*/
void connect( String name,
ServerSocket socket,
ConnectionHandlerFactory handlerFactory )
throws Exception;
/**
* This shuts down all handlers and socket, waiting for each to gracefully shutdown.
*
* @param name the name of connection
* @exception Exception if an error occurs
*/
void disconnect( String name )
throws Exception;
/**
* This shuts down all handlers and socket.
* If tearDown is true then it will forcefully shutdown all connections and try
* to return as soon as possible. Otherwise it will behave the same as
* void disconnect( String name );
*
* @param name the name of connection
* @param tearDown if true will forcefully tear down all handlers
* @exception Exception if an error occurs
*/
void disconnect( String name, boolean tearDown )
throws Exception;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"<P> ConnectionService<P> getConnectionService();",
"public ConnecService connecService() {\n\t\treturn connecService;\n\t}",
"public interface ConnectionManager {\n\tConnection getConnection();\n\tvoid releaseConnection(Connection con);\n}",
"public interface InitConnectionService {\n void initConnection(... | [
"0.6627072",
"0.6451093",
"0.64287066",
"0.63013107",
"0.6272213",
"0.6175042",
"0.6046557",
"0.6023306",
"0.60059464",
"0.59967756",
"0.5963079",
"0.5959988",
"0.59225637",
"0.58911103",
"0.58879614",
"0.58855766",
"0.58268297",
"0.5825335",
"0.58180726",
"0.5808606",
"0.580... | 0.5936665 | 12 |
Start managing a connection. Management involves accepting connections and farming them out to threads from pool to be handled. | void connect( String name,
ServerSocket socket,
ConnectionHandlerFactory handlerFactory,
ThreadPool threadPool )
throws Exception; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void connect() {\n \t\tconnPool.start();\n \t}",
"public void start() {\n synchronized (initLock) {\n\n try {\n connectionPool = new ConnectionPool(driver, serverURL, username,\n password, minConnections, maxConnections, connectionTimeout,\n ... | [
"0.7149897",
"0.70819694",
"0.67445016",
"0.6618843",
"0.6611687",
"0.6581025",
"0.6567328",
"0.6567328",
"0.6554829",
"0.65092385",
"0.64996046",
"0.6466627",
"0.6413973",
"0.6384907",
"0.63584477",
"0.63394654",
"0.63219744",
"0.63187754",
"0.6295676",
"0.62769103",
"0.6258... | 0.0 | -1 |
Start managing a connection. This is similar to other connect method except that it uses default thread pool. | void connect( String name,
ServerSocket socket,
ConnectionHandlerFactory handlerFactory )
throws Exception; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void connect() {\n \t\tconnPool.start();\n \t}",
"public void start() {\n synchronized (initLock) {\n\n try {\n connectionPool = new ConnectionPool(driver, serverURL, username,\n password, minConnections, maxConnections, connectionTimeout,\n ... | [
"0.785218",
"0.76055825",
"0.7141052",
"0.67779475",
"0.6749921",
"0.6662514",
"0.6584031",
"0.6505155",
"0.6470048",
"0.6441885",
"0.64120466",
"0.64120466",
"0.63785845",
"0.6361478",
"0.6359609",
"0.63391334",
"0.63242334",
"0.6297693",
"0.62910324",
"0.6289172",
"0.626906... | 0.0 | -1 |
This shuts down all handlers and socket, waiting for each to gracefully shutdown. | void disconnect( String name )
throws Exception; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void shutdown(){\n for(MessageHandler h : handlerMap.values()){\n h.shutdown();\n }\n }",
"private static void shutdown() {\n\t\tSystem.out.println(\"Shutting down ...\");\n\t\tpool.shutdown();\n\t\tfor (Client client : clientMap.values()) {\n\t\t\tclient.cleanup();\n\t\t}\n\n\... | [
"0.7469616",
"0.7060045",
"0.70456976",
"0.70019096",
"0.6913904",
"0.69062006",
"0.68228674",
"0.6756403",
"0.6718773",
"0.67057246",
"0.6621204",
"0.659838",
"0.6586133",
"0.657859",
"0.6544782",
"0.65163344",
"0.65029156",
"0.6478207",
"0.6464026",
"0.6457705",
"0.6411979"... | 0.0 | -1 |
This shuts down all handlers and socket. If tearDown is true then it will forcefully shutdown all connections and try to return as soon as possible. Otherwise it will behave the same as void disconnect( String name ); | void disconnect( String name, boolean tearDown )
throws Exception; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void tearDown()\r\n {\r\n /* Add any necessary cleanup code here (e.g., close a socket). */\r\n }",
"@Teardown\n public void tearDown() {\n if (channel != null) {\n channel.shutdownNow();\n channel = null;\n }\n }",
"protected void tearDown()\n {\n ... | [
"0.7148499",
"0.71193343",
"0.7073107",
"0.7067883",
"0.69081277",
"0.6791863",
"0.669056",
"0.6572406",
"0.65629375",
"0.64876205",
"0.6461915",
"0.6440167",
"0.6423723",
"0.6417873",
"0.64161026",
"0.637393",
"0.63592833",
"0.6322296",
"0.63021636",
"0.6283693",
"0.62464786... | 0.75763595 | 0 |
Returns the Button object associated with the key. | public Button getButton(String key) {
return buttons.get(key);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Nullable\n public GUIButton getGUIButton(String key) {\n List<GUIButton> data = getGUIButtons(key);\n return (data.isEmpty()) ? null : data.get(0);\n }",
"public String getKey() {\r\n return this.buttonKey;\r\n }",
"Button getBtn();",
"@Override\r\n public Object getAttribut... | [
"0.74632394",
"0.73304",
"0.6854222",
"0.68495744",
"0.67678213",
"0.66877824",
"0.6653828",
"0.66145855",
"0.6336815",
"0.6242113",
"0.6098009",
"0.6079986",
"0.60585475",
"0.6046136",
"0.6041992",
"0.6025438",
"0.5980295",
"0.5978303",
"0.5944523",
"0.5898696",
"0.58861357"... | 0.8650604 | 0 |
TODO Autogenerated method stub | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.tixian_appliction);
initview();
String url1 = Url.user()+"getContact/";
LoadData(url1 ,null,"loading");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onPreExecute() {
super.onPreExecute();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Checks if the connection is active | public boolean isActive() {
return stateMachine.isActive();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean connectionActive() {\n\t\tif (socketConnection == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn socketConnection.isConnected();\n\t\t}\n\t}",
"public boolean isConnectionActive(){\n return this.connectionActive;\n }",
"public boolean isConnectionActive ()\r\n\t{\r\n\t\tsynch... | [
"0.83131456",
"0.82588834",
"0.78625923",
"0.7807132",
"0.7630845",
"0.7562261",
"0.7554334",
"0.7554334",
"0.75072354",
"0.74925977",
"0.7481169",
"0.7463048",
"0.74164224",
"0.7349823",
"0.7347282",
"0.7289838",
"0.72592205",
"0.7256193",
"0.725542",
"0.71959543",
"0.718869... | 0.0 | -1 |
Closes the session. Can be performed only if the session is already open. | public void closeSession() throws ConnectionException {
if (!(stateMachine.getCurrent().getClass() == SessionValid.class)) {
throw new ConnectionException("Illegal connection state: "
+ stateMachine.getCurrent().getClass().getSimpleName());
}
stateMachine.doTransition(new CloseSession(managedSystemSessionId,
messageQueue.getSequenceNumber()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void closeSession() {\n if (session != null) {\n session.close();\n session = null;\n }\n }",
"public static void closeSession() {\n \tif (singleSessionMode) {\n \t\tif (singleSession != null) {\n \t\t\tsingleSession.close();\n \t\t\tsingleSession = null... | [
"0.7944765",
"0.7874686",
"0.7868406",
"0.7860368",
"0.7749931",
"0.76063544",
"0.76063544",
"0.74883306",
"0.73843336",
"0.72941494",
"0.71817607",
"0.7079074",
"0.7029416",
"0.7015299",
"0.69192857",
"0.6915076",
"0.67932945",
"0.67739004",
"0.6765184",
"0.67207175",
"0.671... | 0.6311717 | 37 |
Checks if session is currently open. | public boolean isSessionValid() {
return stateMachine.getCurrent() instanceof SessionValid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected final boolean isSessionOpen() {\n return sessionTracker.getOpenSession() != null;\n }",
"private boolean isInSession()\n {\n return EngagementActivityManager.getInstance().getCurrentActivityAlias() != null;\n }",
"@Override\n public boolean isSessionAlive() {\n return sessi... | [
"0.8471627",
"0.7628021",
"0.75753975",
"0.72620326",
"0.71812457",
"0.7111884",
"0.7086769",
"0.70456743",
"0.70320064",
"0.70037794",
"0.6998507",
"0.69185925",
"0.6897101",
"0.6884433",
"0.6872632",
"0.6867571",
"0.68410176",
"0.6798625",
"0.67901295",
"0.67855775",
"0.676... | 0.7101413 | 6 |
Constructor with value initialisation | public NiveauEtudeHolder(pRectorat.NiveauEtude initial)
{
value = initial;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Value() {}",
"public Value(){}",
"private Value() {\n\t}",
"public Value() {\n }",
"@Override\n\tpublic void initValue() {\n\t\t\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public BabbleValue() {}",
"private Values(){}",
"public Counter(int init){\n \tvalue = init;\n... | [
"0.7567015",
"0.75638616",
"0.74454933",
"0.7343021",
"0.7256479",
"0.7206443",
"0.71256196",
"0.6863437",
"0.6812618",
"0.6764778",
"0.6724832",
"0.669569",
"0.66766304",
"0.6649337",
"0.66385263",
"0.65858626",
"0.64761215",
"0.6435426",
"0.64128804",
"0.64020556",
"0.63776... | 0.0 | -1 |
Read NiveauEtude from a marshalled stream | public void _read(org.omg.CORBA.portable.InputStream istream)
{
value = NiveauEtudeHelper.read(istream);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void _read(org.omg.CORBA.portable.InputStream istream)\r\n {\r\n value = EtudiantDejaInscritExceptionHelper.read(istream);\r\n }",
"public static gestionVoeu.EtudiantFactory read(org.omg.CORBA.portable.InputStream istream)\n {\n return(gestionVoeu.EtudiantFactory)istream.read_Object... | [
"0.6218258",
"0.5863813",
"0.58011794",
"0.5779737",
"0.57095826",
"0.56931597",
"0.5623297",
"0.56104416",
"0.5569578",
"0.5538897",
"0.552639",
"0.55187875",
"0.5502652",
"0.5472382",
"0.54581106",
"0.54526657",
"0.54434776",
"0.543803",
"0.5425146",
"0.5382851",
"0.5361283... | 0.6750765 | 0 |
Write NiveauEtude into a marshalled stream | public void _write(org.omg.CORBA.portable.OutputStream ostream)
{
NiveauEtudeHelper.write(ostream,value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void write(org.omg.CORBA.portable.OutputStream ostream, gestionVoeu.EtudiantFactory value)\n {\n ostream.write_Object((org.omg.CORBA.portable.ObjectImpl)value);\n }",
"private void writeObject(ObjectOutputStream _stream)\n/* 428: */ throws IOException\n/* 429: */ {\n/* 430:... | [
"0.58116215",
"0.57161754",
"0.5682226",
"0.55935997",
"0.5592886",
"0.55778944",
"0.55728173",
"0.5512599",
"0.5503418",
"0.5485531",
"0.5481772",
"0.5464122",
"0.54585236",
"0.54542035",
"0.544134",
"0.54039973",
"0.5392402",
"0.53825736",
"0.5348803",
"0.53361243",
"0.5316... | 0.65238833 | 0 |
Return the NiveauEtude TypeCode | public org.omg.CORBA.TypeCode _type()
{
return NiveauEtudeHelper.type();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract TypeCode read_TypeCode();",
"public org.omg.CORBA.TypeCode _type()\r\n {\r\n return EtudiantDejaInscritExceptionHelper.type();\r\n }",
"@Override\n public final Integer constTypeCode() {\n return this.manufacture.constTypeCode();\n }",
"private TypeCode() {}",
"public I... | [
"0.69494647",
"0.6839203",
"0.6838299",
"0.65692025",
"0.645057",
"0.63543755",
"0.63417214",
"0.6331228",
"0.63109773",
"0.63027805",
"0.63027805",
"0.63027805",
"0.63027805",
"0.62994415",
"0.619486",
"0.60858166",
"0.6078858",
"0.6076681",
"0.607508",
"0.607508",
"0.607508... | 0.72563833 | 0 |
return "Hello RMI World!"; | @Override
/**
* Concrete implementation of the method defined by the Hello interface.
*/
public String sayHello() throws RemoteException {
return "Prey for Gordon Hayward!";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String sayHello() throws RemoteException;",
"public interface RMIInterface extends Remote {\n\n public String helloTo(String name) throws RemoteException;\n\n}",
"@Override\n/**\n * Communication Tester method\n */\npublic String Communicate() throws RemoteException {\n\treturn \"Server Says Hi\";\n}... | [
"0.74367636",
"0.741798",
"0.7157224",
"0.7041874",
"0.6803315",
"0.6764147",
"0.6737889",
"0.6691287",
"0.666471",
"0.6552977",
"0.65326273",
"0.6493619",
"0.64310205",
"0.63619787",
"0.6340928",
"0.63220173",
"0.6280977",
"0.6272265",
"0.6265472",
"0.6253808",
"0.6240143",
... | 0.6895488 | 4 |
Created by michaelplott on 1/3/17. | public interface LiquorRepo extends CrudRepository<Liquor, Integer>, LiquorRepoCustom {
Liquor findByName(String name);
Liquor findByItemCode(String itemCode);
ArrayList findAllByNameContaining(String name);
ArrayList findAllByNameLikeIgnoreCase(String name);
ArrayList findAllByItemCodeLikeIgnoreCase(String itemCode);
ArrayList findAllByDistilleryLikeIgnoreCase(String distillery);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void func_104112_b() {\n \n }",
"protected boolean func_70814_o() { return true; }",
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier... | [
"0.5690634",
"0.5642052",
"0.56137097",
"0.55874884",
"0.55081034",
"0.54953647",
"0.5478162",
"0.5478082",
"0.5448389",
"0.5440146",
"0.5440146",
"0.5395204",
"0.5382321",
"0.536328",
"0.5344397",
"0.5327942",
"0.5325579",
"0.5320543",
"0.53166276",
"0.53119004",
"0.53055453... | 0.0 | -1 |
Adjust total volume calculation for the hull as the hull actually provides volume not uses it. | public double getTotalVolumeOfComponents(Unit unit) {
spacecraftBusComponentsVolumeRequirement -= this.getHull().getVolume(unit);
return spacecraftBusComponentsVolumeRequirement;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void calculateVolume() {\n\n\t\t/*\n\n\t\t */\n\t\tfor(int i=0; i<this._prismoidsLength.size(); i++) \n\t\t\tthis._prismoidsVolumes.add(\n\t\t\t\t\tAmount.valueOf(\n\t\t\t\t\t\t\tthis._prismoidsLength.get(i).divide(3)\n\t\t\t\t\t\t\t.times(\n\t\t\t\t\t\t\t\t\tthis._prismoidsSectionsAreas.get(i).getEstimate... | [
"0.70894825",
"0.65329945",
"0.6366803",
"0.62486696",
"0.6237738",
"0.61906993",
"0.59990525",
"0.59990525",
"0.59437543",
"0.5929801",
"0.5888539",
"0.5846502",
"0.58444214",
"0.58088374",
"0.58030784",
"0.5789341",
"0.57652396",
"0.57396734",
"0.56914866",
"0.5672312",
"0.... | 0.53004956 | 47 |
Carga los datos como extras para enviarlos al mapa para que sean dibujados. | private void cargarDatosParaMapa() {
pd = ProgressDialog.show(ListaRutasActivity.this, "",
"Cargando Datos...", true);
Thread hiloDibujar = new Thread(new Runnable() {
public void run() {
ArrayList<Puntos> listaPuntos;
ArrayList<Paradas> listaParadas;
try {
mapa = new Intent(ListaRutasActivity.this,
ViewMapaActivity.class);
listaPuntos = new ConsultarServer().getPuntosRuta(idRuta);
listaParadas = new ConsultarServer().getParadasRuta(idRuta,
strTipoRuta);
mapa.putParcelableArrayListExtra("listaPuntos", listaPuntos);
mapa.putParcelableArrayListExtra("listaParadas",
listaParadas);
handler.sendEmptyMessage(2);
} catch (SocketException e) {
mensajeErrorConexion();
} catch (IOException e) {
mensajeErrorConexion();
}
}
});
hiloDibujar.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<String, Object> extras();",
"public void datosBundle()\n {\n //creamos un Bundle para recibir los datos de MascotasFavoritas al presionar el boton de atras en la ActionBar\n Bundle datosBundleAtras = getActivity().getIntent().getExtras();\n //preguntamos si este objeto viene con datos... | [
"0.6483493",
"0.59456915",
"0.5544801",
"0.5517803",
"0.54875296",
"0.546113",
"0.5372267",
"0.5368421",
"0.5362302",
"0.53385514",
"0.53342974",
"0.5257155",
"0.5218509",
"0.5210806",
"0.5210404",
"0.520859",
"0.52068037",
"0.5171244",
"0.51544434",
"0.514571",
"0.5142",
"... | 0.59150434 | 2 |
Devuelve el parametro 1 al handler para notificar que no se pudo acceder al servidor | private void msgNoServerConnection() {
handler.sendEmptyMessage(1); // enviar error al cargar
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\t\t\tLog.e(\"ee\", \"失败:\" + arg1);\n\t\t\t\t\t\thandler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t\t// handler.sendEmptyMessage(HANDLER_NET_FAILURE);\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onFailure(HttpExcep... | [
"0.5881847",
"0.5842029",
"0.5758612",
"0.5758612",
"0.5723991",
"0.55440456",
"0.5526256",
"0.54971504",
"0.5372993",
"0.5321057",
"0.52335423",
"0.52300835",
"0.5199061",
"0.5178826",
"0.51399106",
"0.5129334",
"0.51281905",
"0.5115451",
"0.51028484",
"0.50909775",
"0.50743... | 0.6676695 | 0 |
Muestra el mensaje de error cuando no hay datos | private void mensajeErrorSinDatos() {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(R.string.txtErrorSinDatos).setCancelable(false)
.setPositiveButton("OK", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
ListaRutasActivity.this.finish();
}
});
AlertDialog alert = builder.create();
alert.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mensagemErroCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Erro!\\nVerifique se todos os campos estão preenchidos.\"\n\t\t\t\t+ \"\\nVerifique se os dados em formato numérico são números.\"\n\t\t\t\t+ \"\\nVerifique se as datas foram inseridas corretamente.\" + \"\\nNão use vírgulas ','. Use p... | [
"0.7269358",
"0.6750263",
"0.67276263",
"0.66511196",
"0.6644923",
"0.66091144",
"0.6566285",
"0.61908656",
"0.6186573",
"0.61773115",
"0.614078",
"0.61336946",
"0.6090969",
"0.6067396",
"0.6067184",
"0.60495913",
"0.60367954",
"0.6029323",
"0.60156566",
"0.592642",
"0.586716... | 0.6252835 | 7 |
Mensaje de error cuando no se ha establecido un servidor | private void msgNoServidorConfigurado() {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(R.string.txtSinServidor).setCancelable(false)
.setPositiveButton("OK", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
ListaRutasActivity.this.finish();
}
});
AlertDialog alert = builder.create();
alert.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void alertConnectionError(){\n\t\tthis.alert(\"ERROR\",\"Server Connection Error\\nTo adjust server settings go to:\\nGame->Settings\",AlertType.ERROR);\n\t}",
"private void msgNoServerConnection() {\r\n\thandler.sendEmptyMessage(1); // enviar error al cargar\r\n }",
"public String formServerNotFound... | [
"0.6779221",
"0.65952474",
"0.6522171",
"0.65132695",
"0.65064424",
"0.6465716",
"0.6439005",
"0.6439005",
"0.63954794",
"0.6359169",
"0.634624",
"0.6273195",
"0.62431705",
"0.6215643",
"0.6191605",
"0.6189509",
"0.61649126",
"0.61649126",
"0.6120616",
"0.60843045",
"0.608287... | 0.5509979 | 99 |
Create an 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 GeoCoordinate createEntity(EntityManager em) {
GeoCoordinate geoCoordinate = new GeoCoordinate()
.lat(DEFAULT_LAT)
.lon(DEFAULT_LON);
return geoCoordinate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Entity createEntity();",
"T createEntity();",
"protected abstract ENTITY createEntity();",
"void create(E entity);",
"void create(T entity);",
"E create(E entity);",
"E create(E entity);",
"protected abstract EntityBase createEntity() throws Exception;",
"TestEntity buildEntity () {\n TestEn... | [
"0.77234906",
"0.75053483",
"0.7488514",
"0.73619807",
"0.7314892",
"0.715663",
"0.715663",
"0.7150997",
"0.7150329",
"0.707783",
"0.70170516",
"0.68032324",
"0.675297",
"0.67404056",
"0.67404056",
"0.6712416",
"0.6681341",
"0.6665129",
"0.66405314",
"0.662522",
"0.66240084",... | 0.0 | -1 |
////// crud operations retourne les rooms par id de batiment | @GET
@Produces("application/json")
@Path("/building/id/{id}")
public static List<CRoom> roomsByBuilding(@PathParam("id") final int pId) {
return (List<CRoom>) sCrudRoom.findWithNamedQuery(
CRoom.FIND_ROOMS_BY_BUILDING, QueryParameter.with("Pid", pId).parameters());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Room createRooms(){\n Room inicio, pasilloCeldas, celdaVacia1,celdaVacia2, pasilloExterior,vestuarioGuardias, \n comedorReclusos,enfermeria,ventanaAbierta,salidaEnfermeria,patioReclusos,tunelPatio,salidaPatio;\n\n Item mochila,medicamentos,comida,itemInutil,itemPesado;\n mochila... | [
"0.7093926",
"0.6954852",
"0.6840486",
"0.683677",
"0.67851174",
"0.67194206",
"0.66760653",
"0.66513944",
"0.6562716",
"0.6503595",
"0.6503595",
"0.64084876",
"0.63962",
"0.6368094",
"0.6327111",
"0.6319069",
"0.6297164",
"0.6278406",
"0.62741077",
"0.6270207",
"0.6260968",
... | 0.6255837 | 21 |
retourne les pieces par id | @GET
@Produces("application/json")
@Path("/id/{id}")
public static CRoom roomById(@PathParam("id") final int pId) {
return (CRoom) sCrudRoom.findWithNamedQuery(
CRoom.FIND_ROOM_BY_ID, QueryParameter.with("Pid", pId).parameters()).get(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Piece> allPieces();",
"public void getCheque(Integer id) {\n\t\t\r\n\t}",
"public void demarrerPartie(long idPartie) {\n Partie p = daocrud.findOne(idPartie);\r\n\r\n // Erreur si pas au moins 2 joueurs dans la partie\r\n if (jService.recupererNbJoueursParPartieId(idPartie) < 2... | [
"0.6372271",
"0.61011845",
"0.59255064",
"0.5903892",
"0.58956397",
"0.58342856",
"0.57652",
"0.57595694",
"0.5745587",
"0.5745587",
"0.57401526",
"0.57302505",
"0.5717531",
"0.5710037",
"0.5641126",
"0.55932873",
"0.55629635",
"0.55477166",
"0.55408794",
"0.5531217",
"0.5525... | 0.0 | -1 |
retourne toutes les rooms | @GET
@Produces("application/json")
public static List<CRoom> roomAll() {
return (List<CRoom>) sCrudRoom.findWithNamedQuery(CRoom.FIND_ROOM_BY_ALL);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ArrayList<Room> createRooms() {\n //Adding starting position, always rooms(index0)\n\n rooms.add(new Room(\n \"Du sidder på dit kontor. Du kigger på uret og opdager, at du er sent på den. WTF! FISKEDAG! Bare der er fiskefilet tilbage, når du når kantinen. Du må hellere finde en... | [
"0.74388087",
"0.74226797",
"0.7356913",
"0.7223561",
"0.71630025",
"0.7152428",
"0.7147122",
"0.7091118",
"0.7033387",
"0.69702095",
"0.69005364",
"0.6893787",
"0.6878324",
"0.6866523",
"0.68582314",
"0.6852464",
"0.6848297",
"0.67484075",
"0.66844255",
"0.6679524",
"0.66495... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onCreate(SQLiteDatabase db) {
db.execSQL(SQL_CREATE_ENTRIES);
Log.i("into","oncreate");
for(int i=0; i<5; i++) {
Log.i("into","intialising tables");
ContentValues values= new ContentValues();
values.put(COLUMN_NAME_ID, i+1);
values.put(COLUMN_NAME_PERIOD1, "nil");
values.put(COLUMN_NAME_PERIOD4, "nil");
values.put(COLUMN_NAME_PERIOD3, "nil");
values.put(COLUMN_NAME_PERIOD2, "nil");
db.insert(TABLE_NAME_TIMETABLE, null, values);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onUpgrade(SQLiteDatabase db, int arg1, int arg2) {
db.execSQL(SQL_DELETE_ENTRIES);
onCreate(db);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Update the provided state given the provided neighbor facing and neighbor state, returning a new state. For example, fences make their connections to the passed in state if possible, and wet concrete powder immediately returns its solidified counterpart. Note that this method should ideally consider only the specific face passed in. | public BlockState updatePostPlacement(BlockState stateIn, Direction facing, BlockState facingState, IWorld worldIn, BlockPos currentPos, BlockPos facingPos) {
return facing == Direction.DOWN && !this.isValidPosition(stateIn, worldIn, currentPos) ? Blocks.AIR.getDefaultState() : super.updatePostPlacement(stateIn, facing, facingState, worldIn, currentPos, facingPos);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateNewState() {\n Integer aliveCount = 0;\n for (final Cell neighbor : this.neighbors) {\n if (neighbor.isAlive()) {\n aliveCount++;\n }\n }\n\n if (aliveCount < 2) {\n this.setNewState(false);\n } else if (!this.isAl... | [
"0.57218856",
"0.55029047",
"0.54111356",
"0.5338271",
"0.52768016",
"0.52113795",
"0.51701397",
"0.5099702",
"0.5052872",
"0.49962935",
"0.49830148",
"0.4980547",
"0.4978645",
"0.4915734",
"0.49112806",
"0.48982623",
"0.48763928",
"0.487637",
"0.48756796",
"0.48675418",
"0.4... | 0.487536 | 19 |
Gets the "Surface" element | public org.landxml.schema.landXML11.SurfaceDocument.Surface getSurface()
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.SurfaceDocument.Surface target = null;
target = (org.landxml.schema.landXML11.SurfaceDocument.Surface)get_store().find_element_user(SURFACE$0, 0);
if (target == null)
{
return null;
}
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Surface getSurface() {\n \t\treturn surface;\n \t}",
"public Surface surface()\n { return _srf;\n }",
"private Surface getPreviewSurface() {\n return surface_texture;\n }",
"org.landxml.schema.landXML11.SurfaceNameRefs xgetSurfaceRefs();",
"public int get_surface_type() {\n r... | [
"0.80348444",
"0.6976346",
"0.6974603",
"0.6894489",
"0.6772808",
"0.6669721",
"0.6478347",
"0.6333773",
"0.6271768",
"0.6245662",
"0.6200574",
"0.6192124",
"0.61255753",
"0.60600126",
"0.5943069",
"0.5940686",
"0.5871541",
"0.5870913",
"0.578974",
"0.56209904",
"0.56075996",... | 0.81899196 | 0 |
Sets the "Surface" element | public void setSurface(org.landxml.schema.landXML11.SurfaceDocument.Surface surface)
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.SurfaceDocument.Surface target = null;
target = (org.landxml.schema.landXML11.SurfaceDocument.Surface)get_store().find_element_user(SURFACE$0, 0);
if (target == null)
{
target = (org.landxml.schema.landXML11.SurfaceDocument.Surface)get_store().add_element_user(SURFACE$0);
}
target.set(surface);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSurface(Surface surface) {\r\n mSurface = surface;\r\n if (needSetDisplay || mSurface == null) {\r\n NexSurfaceTextureBinder.this.mNexPlayer.setDisplay(mSurface);\r\n needSetDisplay = false;\r\n }\r\n }",
"public void setSurfaceProperty(SurfaceProperty... | [
"0.7253759",
"0.71085113",
"0.7053875",
"0.67759",
"0.6582246",
"0.64802897",
"0.6407328",
"0.638885",
"0.6348546",
"0.6317573",
"0.62707245",
"0.62085366",
"0.6186939",
"0.61468923",
"0.61253285",
"0.6068643",
"0.604093",
"0.59414506",
"0.5915066",
"0.5852061",
"0.5838846",
... | 0.7865123 | 0 |
Appends and returns a new empty "Surface" element | public org.landxml.schema.landXML11.SurfaceDocument.Surface addNewSurface()
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.SurfaceDocument.Surface target = null;
target = (org.landxml.schema.landXML11.SurfaceDocument.Surface)get_store().add_element_user(SURFACE$0);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Surface createSurface();",
"public Surface(){\r\n\t\tsuper(SURFACE_TAG,\"\");\r\n\t\tthis.setRef(\"CG\");\r\n\t}",
"void createDummyPbufferSurface();",
"public void onSurfaceCreated(GL10 unused, EGLConfig config)\n {\n GLES20.glClearColor(1.0f, 0.2f, 0.2f, 1.0f);\n //mSquare = ne\n bi... | [
"0.68160963",
"0.6488217",
"0.6289611",
"0.621004",
"0.61454755",
"0.60384476",
"0.60104644",
"0.60076576",
"0.59708357",
"0.59479034",
"0.59205127",
"0.5878009",
"0.5811336",
"0.57622904",
"0.57216954",
"0.57135135",
"0.5697446",
"0.56923854",
"0.5692358",
"0.56782305",
"0.5... | 0.7544012 | 0 |
Gets a List of "SourceData" elements | public java.util.List<org.landxml.schema.landXML11.SourceDataDocument.SourceData> getSourceDataList()
{
final class SourceDataList extends java.util.AbstractList<org.landxml.schema.landXML11.SourceDataDocument.SourceData>
{
public org.landxml.schema.landXML11.SourceDataDocument.SourceData get(int i)
{ return SurfaceImpl.this.getSourceDataArray(i); }
public org.landxml.schema.landXML11.SourceDataDocument.SourceData set(int i, org.landxml.schema.landXML11.SourceDataDocument.SourceData o)
{
org.landxml.schema.landXML11.SourceDataDocument.SourceData old = SurfaceImpl.this.getSourceDataArray(i);
SurfaceImpl.this.setSourceDataArray(i, o);
return old;
}
public void add(int i, org.landxml.schema.landXML11.SourceDataDocument.SourceData o)
{ SurfaceImpl.this.insertNewSourceData(i).set(o); }
public org.landxml.schema.landXML11.SourceDataDocument.SourceData remove(int i)
{
org.landxml.schema.landXML11.SourceDataDocument.SourceData old = SurfaceImpl.this.getSourceDataArray(i);
SurfaceImpl.this.removeSourceData(i);
return old;
}
public int size()
{ return SurfaceImpl.this.sizeOfSourceDataArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new SourceDataList();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public org.landxml.schema.landXML11.SourceDataDocument.SourceData[] getSourceDataArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_eleme... | [
"0.7209027",
"0.69501364",
"0.6925121",
"0.6845047",
"0.68421817",
"0.6841642",
"0.6779301",
"0.6487702",
"0.6469453",
"0.63951963",
"0.63923955",
"0.638529",
"0.6384047",
"0.6334747",
"0.63312286",
"0.6282",
"0.6273194",
"0.6214727",
"0.6141446",
"0.61292577",
"0.6113683",
... | 0.8015535 | 0 |
Gets array of all "SourceData" elements | public org.landxml.schema.landXML11.SourceDataDocument.SourceData[] getSourceDataArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(SOURCEDATA$0, targetList);
org.landxml.schema.landXML11.SourceDataDocument.SourceData[] result = new org.landxml.schema.landXML11.SourceDataDocument.SourceData[targetList.size()];
targetList.toArray(result);
return result;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.util.List<org.landxml.schema.landXML11.SourceDataDocument.SourceData> getSourceDataList()\r\n {\r\n final class SourceDataList extends java.util.AbstractList<org.landxml.schema.landXML11.SourceDataDocument.SourceData>\r\n {\r\n public org.landxml.schema.landX... | [
"0.73722875",
"0.7113469",
"0.6958607",
"0.6927953",
"0.67964715",
"0.641963",
"0.6344045",
"0.63340724",
"0.63330275",
"0.6208575",
"0.6204361",
"0.61883736",
"0.61652976",
"0.61539185",
"0.6108803",
"0.6099726",
"0.6098876",
"0.606599",
"0.6063615",
"0.6031071",
"0.600576",... | 0.80917686 | 0 |
Gets ith "SourceData" element | public org.landxml.schema.landXML11.SourceDataDocument.SourceData getSourceDataArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.SourceDataDocument.SourceData target = null;
target = (org.landxml.schema.landXML11.SourceDataDocument.SourceData)get_store().find_element_user(SOURCEDATA$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.util.List<org.landxml.schema.landXML11.SourceDataDocument.SourceData> getSourceDataList()\r\n {\r\n final class SourceDataList extends java.util.AbstractList<org.landxml.schema.landXML11.SourceDataDocument.SourceData>\r\n {\r\n public org.landxml.schema.landX... | [
"0.6469336",
"0.6391809",
"0.637253",
"0.63426745",
"0.6270314",
"0.6214769",
"0.6214769",
"0.6201932",
"0.61348236",
"0.60980254",
"0.6081874",
"0.6070073",
"0.6046291",
"0.60023814",
"0.60023785",
"0.60022473",
"0.5998817",
"0.5998688",
"0.5996194",
"0.5990458",
"0.5952604"... | 0.62310356 | 5 |
Returns number of "SourceData" element | public int sizeOfSourceDataArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(SOURCEDATA$0);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getSourceCount() {\n return sourceCount;\n }",
"int getNumSources();",
"int getSrcIdCount();",
"public int getSrcIdCount() {\n return instance.getSrcIdCount();\n }",
"int getDataCount();",
"int getDataCount();",
"int getDataCount();",
"int getDataCount();",
"int... | [
"0.708237",
"0.69519",
"0.6803628",
"0.6752438",
"0.6686754",
"0.6686754",
"0.6686754",
"0.6686754",
"0.6686754",
"0.6553735",
"0.65422493",
"0.63790447",
"0.63502675",
"0.63502675",
"0.63502675",
"0.63502675",
"0.63502675",
"0.6312732",
"0.62926614",
"0.6267751",
"0.6267751"... | 0.7806046 | 0 |
Sets array of all "SourceData" element | public void setSourceDataArray(org.landxml.schema.landXML11.SourceDataDocument.SourceData[] sourceDataArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(sourceDataArray, SOURCEDATA$0);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSourceDataArray(int i, org.landxml.schema.landXML11.SourceDataDocument.SourceData sourceData)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.SourceDataDocument.SourceData target = null;\r\n ... | [
"0.69374955",
"0.6673405",
"0.6642242",
"0.6301216",
"0.62320614",
"0.6157811",
"0.60133266",
"0.59487367",
"0.58674884",
"0.58232325",
"0.58208114",
"0.57819265",
"0.5756221",
"0.5754153",
"0.573916",
"0.5692313",
"0.56810147",
"0.56608176",
"0.56517625",
"0.5636432",
"0.563... | 0.749707 | 0 |
Sets ith "SourceData" element | public void setSourceDataArray(int i, org.landxml.schema.landXML11.SourceDataDocument.SourceData sourceData)
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.SourceDataDocument.SourceData target = null;
target = (org.landxml.schema.landXML11.SourceDataDocument.SourceData)get_store().find_element_user(SOURCEDATA$0, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(sourceData);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }",
"public void setSourceDataArray(org.landxml.schema.landXML11.SourceDataDocument.SourceData[] sourceDataArray)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned(... | [
"0.67385685",
"0.66812795",
"0.64959055",
"0.64346206",
"0.63897085",
"0.63053066",
"0.6278232",
"0.62740654",
"0.6231888",
"0.62185705",
"0.61354285",
"0.6121826",
"0.60769427",
"0.60382295",
"0.60270286",
"0.60199904",
"0.6019956",
"0.60054535",
"0.5994534",
"0.59529716",
"... | 0.71743006 | 0 |
Inserts and returns a new empty value (as xml) as the ith "SourceData" element | public org.landxml.schema.landXML11.SourceDataDocument.SourceData insertNewSourceData(int i)
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.SourceDataDocument.SourceData target = null;
target = (org.landxml.schema.landXML11.SourceDataDocument.SourceData)get_store().insert_element_user(SOURCEDATA$0, i);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public org.landxml.schema.landXML11.SourceDataDocument.SourceData addNewSourceData()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.SourceDataDocument.SourceData target = null;\r\n target = (o... | [
"0.60619",
"0.54436415",
"0.5194429",
"0.51935637",
"0.5153245",
"0.5095147",
"0.50063694",
"0.5001095",
"0.49840677",
"0.49075827",
"0.4899092",
"0.48903728",
"0.4783246",
"0.47622767",
"0.4736564",
"0.47292706",
"0.47111025",
"0.47101688",
"0.46816126",
"0.4681065",
"0.4680... | 0.5521386 | 1 |
Appends and returns a new empty value (as xml) as the last "SourceData" element | public org.landxml.schema.landXML11.SourceDataDocument.SourceData addNewSourceData()
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.SourceDataDocument.SourceData target = null;
target = (org.landxml.schema.landXML11.SourceDataDocument.SourceData)get_store().add_element_user(SOURCEDATA$0);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public InputSource getDummyXml() {\n return getDummyXml(0);\n }",
"public org.apache.xmlbeans.XmlObject addNewValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlObject target = null;\n target = (org.apache.xmlbeans.X... | [
"0.53116196",
"0.52574146",
"0.5249449",
"0.52341294",
"0.5228835",
"0.51467884",
"0.51239437",
"0.51239437",
"0.5104528",
"0.5055346",
"0.50342",
"0.5031393",
"0.49661934",
"0.49193203",
"0.49102506",
"0.4893385",
"0.4817447",
"0.48122784",
"0.4785051",
"0.47564125",
"0.4747... | 0.59281105 | 0 |
Removes the ith "SourceData" element | public void removeSourceData(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(SOURCEDATA$0, i);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void unsetSource()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(SOURCE$0, 0);\r\n }\r\n }",
"public void unsetSource()\n {\n synchronized (monitor())\n {\n ... | [
"0.6898582",
"0.6452519",
"0.63715696",
"0.6189357",
"0.60282725",
"0.6004758",
"0.5985245",
"0.5863008",
"0.5813656",
"0.58005655",
"0.5795144",
"0.5789283",
"0.57829577",
"0.57817084",
"0.57722515",
"0.5756314",
"0.5714071",
"0.57114196",
"0.5700712",
"0.56807804",
"0.56793... | 0.7340139 | 0 |
Gets a List of "Definition" elements | public java.util.List<org.landxml.schema.landXML11.DefinitionDocument.Definition> getDefinitionList()
{
final class DefinitionList extends java.util.AbstractList<org.landxml.schema.landXML11.DefinitionDocument.Definition>
{
public org.landxml.schema.landXML11.DefinitionDocument.Definition get(int i)
{ return SurfaceImpl.this.getDefinitionArray(i); }
public org.landxml.schema.landXML11.DefinitionDocument.Definition set(int i, org.landxml.schema.landXML11.DefinitionDocument.Definition o)
{
org.landxml.schema.landXML11.DefinitionDocument.Definition old = SurfaceImpl.this.getDefinitionArray(i);
SurfaceImpl.this.setDefinitionArray(i, o);
return old;
}
public void add(int i, org.landxml.schema.landXML11.DefinitionDocument.Definition o)
{ SurfaceImpl.this.insertNewDefinition(i).set(o); }
public org.landxml.schema.landXML11.DefinitionDocument.Definition remove(int i)
{
org.landxml.schema.landXML11.DefinitionDocument.Definition old = SurfaceImpl.this.getDefinitionArray(i);
SurfaceImpl.this.removeDefinition(i);
return old;
}
public int size()
{ return SurfaceImpl.this.sizeOfDefinitionArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new DefinitionList();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public org.landxml.schema.landXML11.DefinitionDocument.Definition[] getDefinitionArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_eleme... | [
"0.7443669",
"0.7441086",
"0.71593046",
"0.6713387",
"0.6696845",
"0.66408294",
"0.6380615",
"0.6336557",
"0.6275734",
"0.62722623",
"0.6213401",
"0.6165098",
"0.6137896",
"0.6088489",
"0.6070818",
"0.6051058",
"0.60437554",
"0.6036065",
"0.6032365",
"0.6020684",
"0.60155565"... | 0.78688556 | 0 |
Gets array of all "Definition" elements | public org.landxml.schema.landXML11.DefinitionDocument.Definition[] getDefinitionArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(DEFINITION$2, targetList);
org.landxml.schema.landXML11.DefinitionDocument.Definition[] result = new org.landxml.schema.landXML11.DefinitionDocument.Definition[targetList.size()];
targetList.toArray(result);
return result;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.util.List<org.landxml.schema.landXML11.DefinitionDocument.Definition> getDefinitionList()\r\n {\r\n final class DefinitionList extends java.util.AbstractList<org.landxml.schema.landXML11.DefinitionDocument.Definition>\r\n {\r\n public org.landxml.schema.landX... | [
"0.7264916",
"0.7090412",
"0.69283825",
"0.6742229",
"0.66698897",
"0.6517627",
"0.63032824",
"0.627519",
"0.6170964",
"0.6064",
"0.6028906",
"0.6020128",
"0.6009771",
"0.5986407",
"0.5963548",
"0.5957535",
"0.59564465",
"0.5919502",
"0.58766043",
"0.5857754",
"0.585727",
"... | 0.83217776 | 0 |
Gets ith "Definition" element | public org.landxml.schema.landXML11.DefinitionDocument.Definition getDefinitionArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.DefinitionDocument.Definition target = null;
target = (org.landxml.schema.landXML11.DefinitionDocument.Definition)get_store().find_element_user(DEFINITION$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DefinitionElements getDefinitionAccess() {\r\n\t\treturn pDefinition;\r\n\t}",
"String getDefinition();",
"public Integer getDefinition(){\n\t\treturn define;\n\t}",
"public String getDefinition(){\n\t\treturn definition;\n\t}",
"public RDR_RDR_DEFINITION getDEFINITION() { \r\n return getTyped... | [
"0.71919924",
"0.6780545",
"0.67104506",
"0.668989",
"0.6657229",
"0.66295534",
"0.6553584",
"0.6538522",
"0.6529959",
"0.6481559",
"0.6430878",
"0.63966525",
"0.63731194",
"0.62957406",
"0.6285754",
"0.6265356",
"0.6255208",
"0.6228222",
"0.6097545",
"0.6096424",
"0.6091567"... | 0.6625906 | 6 |
Returns number of "Definition" element | public int sizeOfDefinitionArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(DEFINITION$2);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int count() {\n\t\treturn definitions.length;\n\t}",
"public Integer getDefinition(){\n\t\treturn define;\n\t}",
"public Long getElementCount();",
"Long getNumberOfElement();",
"int sizeOfObjectDefinitionArray();",
"public int getCount() {\n return definition.getInteger(COUNT, 1);\n }",... | [
"0.757611",
"0.6794694",
"0.67720467",
"0.6746211",
"0.67424625",
"0.6443262",
"0.6330267",
"0.6327578",
"0.63108534",
"0.6286605",
"0.6263029",
"0.6185449",
"0.6170335",
"0.61236316",
"0.6117155",
"0.6111401",
"0.60592586",
"0.6053356",
"0.60190105",
"0.6008411",
"0.59983426... | 0.7735664 | 0 |
Sets array of all "Definition" element | public void setDefinitionArray(org.landxml.schema.landXML11.DefinitionDocument.Definition[] definitionArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(definitionArray, DEFINITION$2);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDefinitionArray(int i, org.landxml.schema.landXML11.DefinitionDocument.Definition definition)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.DefinitionDocument.Definition target = null;\r\n ... | [
"0.7128219",
"0.7037226",
"0.6670114",
"0.65949893",
"0.59139866",
"0.5803746",
"0.5776922",
"0.565675",
"0.5649676",
"0.56340104",
"0.56018424",
"0.55995286",
"0.55776703",
"0.55631614",
"0.55170244",
"0.55162203",
"0.55162203",
"0.54761714",
"0.5465965",
"0.5438157",
"0.542... | 0.7314037 | 0 |
Sets ith "Definition" element | public void setDefinitionArray(int i, org.landxml.schema.landXML11.DefinitionDocument.Definition definition)
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.DefinitionDocument.Definition target = null;
target = (org.landxml.schema.landXML11.DefinitionDocument.Definition)get_store().find_element_user(DEFINITION$2, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(definition);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDefinition(String definition){\n\t\tthis.definition = definition;\n\t}",
"public void setDefinition(String definition){\n\t\tdefinitionArea.setText(definition);\n\t}",
"public void setDefinition(Long Definition) {\n this.Definition = Definition;\n }",
"ElementDefinition createElement... | [
"0.68742406",
"0.67973334",
"0.6628013",
"0.6182556",
"0.6172124",
"0.6058413",
"0.60388887",
"0.5991955",
"0.5987418",
"0.58682865",
"0.5813248",
"0.57629174",
"0.5734801",
"0.5733778",
"0.57276124",
"0.5716695",
"0.56438583",
"0.56254137",
"0.5528052",
"0.5499864",
"0.54755... | 0.68915147 | 0 |
Inserts and returns a new empty value (as xml) as the ith "Definition" element | public org.landxml.schema.landXML11.DefinitionDocument.Definition insertNewDefinition(int i)
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.DefinitionDocument.Definition target = null;
target = (org.landxml.schema.landXML11.DefinitionDocument.Definition)get_store().insert_element_user(DEFINITION$2, i);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ElementDefinition createElementDefinition();",
"public org.landxml.schema.landXML11.DefinitionDocument.Definition addNewDefinition()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.DefinitionDocument.Defini... | [
"0.6265862",
"0.5889548",
"0.56930965",
"0.5676801",
"0.5536848",
"0.54463315",
"0.5445765",
"0.5369401",
"0.53555614",
"0.52510875",
"0.52264464",
"0.51916033",
"0.51846826",
"0.5117423",
"0.5115845",
"0.5112315",
"0.5105854",
"0.5091971",
"0.5084247",
"0.5065507",
"0.505919... | 0.58371955 | 2 |
Appends and returns a new empty value (as xml) as the last "Definition" element | public org.landxml.schema.landXML11.DefinitionDocument.Definition addNewDefinition()
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.DefinitionDocument.Definition target = null;
target = (org.landxml.schema.landXML11.DefinitionDocument.Definition)get_store().add_element_user(DEFINITION$2);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ElementDefinition createElementDefinition();",
"public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}",
"com.exacttarget.wsdl.partnerapi.DefinitionResponseMsgDocument.DefinitionResponseMsg addNewDefinitionResponseMsg();",
... | [
"0.58330613",
"0.5681874",
"0.56554055",
"0.5496034",
"0.5404539",
"0.540365",
"0.5399893",
"0.5385012",
"0.5284103",
"0.52815264",
"0.5201628",
"0.5192266",
"0.5185672",
"0.5165145",
"0.5160165",
"0.51437336",
"0.51437336",
"0.51028836",
"0.50960344",
"0.5076974",
"0.5051753... | 0.6140021 | 0 |
Removes the ith "Definition" element | public void removeDefinition(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(DEFINITION$2, i);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void removeObjectDefinition(int i);",
"void deleteElementDefinition(String elementName) throws IllegalArgumentException;",
"public RDR_RDR_DEFINITION removeDEFINITION(int rep) throws HL7Exception { \r\n return (RDR_RDR_DEFINITION)super.removeRepetition(\"DEFINITION\", rep);\r\n }",
"public void remo... | [
"0.74328357",
"0.6811076",
"0.66978693",
"0.6031616",
"0.5965372",
"0.5800977",
"0.5723846",
"0.5718225",
"0.56992984",
"0.56827825",
"0.567843",
"0.566941",
"0.56305516",
"0.5630053",
"0.5621877",
"0.5621877",
"0.5621877",
"0.56135905",
"0.55886406",
"0.558463",
"0.5575058",... | 0.7435794 | 0 |
Gets a List of "Watersheds" elements | public java.util.List<org.landxml.schema.landXML11.WatershedsDocument.Watersheds> getWatershedsList()
{
final class WatershedsList extends java.util.AbstractList<org.landxml.schema.landXML11.WatershedsDocument.Watersheds>
{
public org.landxml.schema.landXML11.WatershedsDocument.Watersheds get(int i)
{ return SurfaceImpl.this.getWatershedsArray(i); }
public org.landxml.schema.landXML11.WatershedsDocument.Watersheds set(int i, org.landxml.schema.landXML11.WatershedsDocument.Watersheds o)
{
org.landxml.schema.landXML11.WatershedsDocument.Watersheds old = SurfaceImpl.this.getWatershedsArray(i);
SurfaceImpl.this.setWatershedsArray(i, o);
return old;
}
public void add(int i, org.landxml.schema.landXML11.WatershedsDocument.Watersheds o)
{ SurfaceImpl.this.insertNewWatersheds(i).set(o); }
public org.landxml.schema.landXML11.WatershedsDocument.Watersheds remove(int i)
{
org.landxml.schema.landXML11.WatershedsDocument.Watersheds old = SurfaceImpl.this.getWatershedsArray(i);
SurfaceImpl.this.removeWatersheds(i);
return old;
}
public int size()
{ return SurfaceImpl.this.sizeOfWatershedsArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new WatershedsList();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public org.landxml.schema.landXML11.WatershedsDocument.Watersheds[] getWatershedsArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_eleme... | [
"0.7235967",
"0.6738107",
"0.6503915",
"0.6503904",
"0.6342321",
"0.6320335",
"0.6218542",
"0.62088424",
"0.61366165",
"0.60531455",
"0.5885055",
"0.581916",
"0.5798656",
"0.57816356",
"0.5777964",
"0.57384074",
"0.5737405",
"0.5725906",
"0.5725878",
"0.5706459",
"0.56959707"... | 0.797611 | 0 |
Gets array of all "Watersheds" elements | public org.landxml.schema.landXML11.WatershedsDocument.Watersheds[] getWatershedsArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(WATERSHEDS$4, targetList);
org.landxml.schema.landXML11.WatershedsDocument.Watersheds[] result = new org.landxml.schema.landXML11.WatershedsDocument.Watersheds[targetList.size()];
targetList.toArray(result);
return result;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.util.List<org.landxml.schema.landXML11.WatershedsDocument.Watersheds> getWatershedsList()\r\n {\r\n final class WatershedsList extends java.util.AbstractList<org.landxml.schema.landXML11.WatershedsDocument.Watersheds>\r\n {\r\n public org.landxml.schema.landX... | [
"0.7353419",
"0.70406014",
"0.6779926",
"0.67662996",
"0.612442",
"0.6077798",
"0.59955275",
"0.5963315",
"0.59632194",
"0.59375757",
"0.59322196",
"0.59146386",
"0.59033024",
"0.5870965",
"0.58304214",
"0.5775595",
"0.5762258",
"0.57592714",
"0.5757485",
"0.5751291",
"0.5742... | 0.8044439 | 0 |
Gets ith "Watersheds" element | public org.landxml.schema.landXML11.WatershedsDocument.Watersheds getWatershedsArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.WatershedsDocument.Watersheds target = null;
target = (org.landxml.schema.landXML11.WatershedsDocument.Watersheds)get_store().find_element_user(WATERSHEDS$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.util.List<org.landxml.schema.landXML11.WatershedsDocument.Watersheds> getWatershedsList()\r\n {\r\n final class WatershedsList extends java.util.AbstractList<org.landxml.schema.landXML11.WatershedsDocument.Watersheds>\r\n {\r\n public org.landxml.schema.landX... | [
"0.6889152",
"0.6211783",
"0.6153491",
"0.6042722",
"0.59655356",
"0.58342683",
"0.57796097",
"0.5655917",
"0.560711",
"0.5604002",
"0.558875",
"0.54814214",
"0.54814214",
"0.5477294",
"0.54765403",
"0.54464024",
"0.5395378",
"0.53883535",
"0.5381709",
"0.5323305",
"0.5288769... | 0.68453 | 1 |
Returns number of "Watersheds" element | public int sizeOfWatershedsArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(WATERSHEDS$4);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getMonstersCount();",
"int getMonstersCount();",
"int getNumberOfStonesOnBoard();",
"int getWifisCount();",
"public int getWhiteCountInVector() {\r\n\t\tint count = 0;\r\n\t\tObject tmp[] = piece.values().toArray();\r\n\t\tfor (int i = 0; i < tmp.length; i++) {\r\n\t\t\tChessPiece p = (ChessPiece)tmp[i... | [
"0.7058075",
"0.7058075",
"0.69219345",
"0.67088836",
"0.6692357",
"0.65728176",
"0.6541586",
"0.65055436",
"0.6455457",
"0.64261943",
"0.63793945",
"0.63618684",
"0.63147527",
"0.6314649",
"0.6293775",
"0.62927914",
"0.62765473",
"0.62752163",
"0.6273657",
"0.62602466",
"0.6... | 0.809097 | 0 |
Sets array of all "Watersheds" element | public void setWatershedsArray(org.landxml.schema.landXML11.WatershedsDocument.Watersheds[] watershedsArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(watershedsArray, WATERSHEDS$4);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setWatershedsArray(int i, org.landxml.schema.landXML11.WatershedsDocument.Watersheds watersheds)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.WatershedsDocument.Watersheds target = null;\r\n ... | [
"0.7316911",
"0.676905",
"0.6416347",
"0.6089637",
"0.6063312",
"0.58101106",
"0.5805111",
"0.58022606",
"0.5781122",
"0.57617104",
"0.57380044",
"0.57207346",
"0.571301",
"0.56877446",
"0.5676054",
"0.5646978",
"0.5641359",
"0.5613572",
"0.55836076",
"0.5547741",
"0.55204386... | 0.7617357 | 0 |
Sets ith "Watersheds" element | public void setWatershedsArray(int i, org.landxml.schema.landXML11.WatershedsDocument.Watersheds watersheds)
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.WatershedsDocument.Watersheds target = null;
target = (org.landxml.schema.landXML11.WatershedsDocument.Watersheds)get_store().find_element_user(WATERSHEDS$4, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(watersheds);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setWatershedsArray(org.landxml.schema.landXML11.WatershedsDocument.Watersheds[] watershedsArray)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n arraySetterHelper(watershedsArray, WATERSHEDS$4);\r\n }\r\n }"... | [
"0.6683667",
"0.6041998",
"0.5960649",
"0.59205157",
"0.58972234",
"0.58430606",
"0.58252805",
"0.5807139",
"0.5779143",
"0.57670665",
"0.57188994",
"0.5700466",
"0.56097645",
"0.5562715",
"0.55067265",
"0.5494251",
"0.5490347",
"0.54665625",
"0.54397047",
"0.5402867",
"0.539... | 0.6917306 | 0 |
Inserts and returns a new empty value (as xml) as the ith "Watersheds" element | public org.landxml.schema.landXML11.WatershedsDocument.Watersheds insertNewWatersheds(int i)
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.WatershedsDocument.Watersheds target = null;
target = (org.landxml.schema.landXML11.WatershedsDocument.Watersheds)get_store().insert_element_user(WATERSHEDS$4, i);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public org.landxml.schema.landXML11.WatershedsDocument.Watersheds addNewWatersheds()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.WatershedsDocument.Watersheds target = null;\r\n target = (o... | [
"0.6562513",
"0.5197015",
"0.51281637",
"0.5103522",
"0.5092801",
"0.5078964",
"0.4891053",
"0.48484683",
"0.48339576",
"0.48078784",
"0.47998714",
"0.4791748",
"0.4761842",
"0.4743421",
"0.47329465",
"0.47257626",
"0.46981406",
"0.46903768",
"0.46879575",
"0.46879575",
"0.46... | 0.6307074 | 1 |
Appends and returns a new empty value (as xml) as the last "Watersheds" element | public org.landxml.schema.landXML11.WatershedsDocument.Watersheds addNewWatersheds()
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.WatershedsDocument.Watersheds target = null;
target = (org.landxml.schema.landXML11.WatershedsDocument.Watersheds)get_store().add_element_user(WATERSHEDS$4);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public org.landxml.schema.landXML11.WatershedsDocument.Watersheds insertNewWatersheds(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.WatershedsDocument.Watersheds target = null;\r\n tar... | [
"0.5460947",
"0.5421519",
"0.5020579",
"0.5002843",
"0.49173465",
"0.49081078",
"0.4867866",
"0.48556927",
"0.4838213",
"0.4838213",
"0.47952533",
"0.47918996",
"0.4790659",
"0.4772712",
"0.46528175",
"0.46362853",
"0.4632888",
"0.46238732",
"0.462117",
"0.45866293",
"0.45742... | 0.66692984 | 0 |
Removes the ith "Watersheds" element | public void removeWatersheds(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(WATERSHEDS$4, i);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeScenery(){\n\t\tfor(int i=0;i<grid.length;i++){\n\t\t\tfor(int j=0;j<grid[0].length;j++){\n\t\t\t\tif(grid[i][j].isScenery())\n\t\t\t\t\tgrid[i][j]=null;\n\t\t\t}\n\t\t}\n\t}",
"void removeRoadside(int i);",
"public void deleteWerker(Worker w)\n {\n if(aantalWerkers > 0)\n {\... | [
"0.6591501",
"0.6482395",
"0.619783",
"0.5996806",
"0.59713095",
"0.5965216",
"0.5965216",
"0.593813",
"0.58906215",
"0.5863516",
"0.58490574",
"0.5841483",
"0.58343333",
"0.5828026",
"0.5800466",
"0.57972044",
"0.5791712",
"0.57348233",
"0.5732254",
"0.5706181",
"0.569511",
... | 0.78109187 | 0 |
Gets a List of "Feature" elements | public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()
{
final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>
{
public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)
{ return SurfaceImpl.this.getFeatureArray(i); }
public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)
{
org.landxml.schema.landXML11.FeatureDocument.Feature old = SurfaceImpl.this.getFeatureArray(i);
SurfaceImpl.this.setFeatureArray(i, o);
return old;
}
public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)
{ SurfaceImpl.this.insertNewFeature(i).set(o); }
public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)
{
org.landxml.schema.landXML11.FeatureDocument.Feature old = SurfaceImpl.this.getFeatureArray(i);
SurfaceImpl.this.removeFeature(i);
return old;
}
public int size()
{ return SurfaceImpl.this.sizeOfFeatureArray(); }
}
synchronized (monitor())
{
check_orphaned();
return new FeatureList();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Feature> getFeatures();",
"java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();",
"java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();",
"List<IFeature> getFeatureList();",
"java.util.List<iet.distributed.telemetry.Feature> \n g... | [
"0.8773742",
"0.86848277",
"0.86848277",
"0.8419684",
"0.8260446",
"0.80482674",
"0.80223644",
"0.7794034",
"0.778159",
"0.778159",
"0.77691215",
"0.7689697",
"0.76682246",
"0.76682246",
"0.76032937",
"0.7504648",
"0.7437057",
"0.7437057",
"0.74345946",
"0.73984194",
"0.73776... | 0.79324466 | 7 |
Gets array of all "Feature" elements | public org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray()
{
synchronized (monitor())
{
check_orphaned();
java.util.List targetList = new java.util.ArrayList();
get_store().find_all_element_users(FEATURE$6, targetList);
org.landxml.schema.landXML11.FeatureDocument.Feature[] result = new org.landxml.schema.landXML11.FeatureDocument.Feature[targetList.size()];
targetList.toArray(result);
return result;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();",
"org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();",
"public org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n ... | [
"0.8331222",
"0.8331222",
"0.8268561",
"0.8055511",
"0.79728377",
"0.79728377",
"0.78956044",
"0.78956044",
"0.7713429",
"0.76701015",
"0.7618657",
"0.7555063",
"0.7346499",
"0.73286754",
"0.7278872",
"0.7249029",
"0.7234206",
"0.7218973",
"0.7169345",
"0.7168903",
"0.7145008... | 0.82670134 | 4 |
Gets ith "Feature" element | public org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i)
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.FeatureDocument.Feature target = null;
target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$6, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getFeature() {\n return feature;\n }",
"iet.distributed.telemetry.Feature getFeature(int index);",
"public FeatureElements getFeatureAccess() {\n\t\treturn pFeature;\n\t}",
"org.landxml.schema.landXML11.FeatureDocument.Feature getFeatureArray(int i);",
"org.landxml.schema.landXML11... | [
"0.73656964",
"0.7246269",
"0.71976227",
"0.7102088",
"0.7102088",
"0.7084267",
"0.7030713",
"0.69882256",
"0.69709307",
"0.6909429",
"0.6909429",
"0.6908895",
"0.6888857",
"0.68467224",
"0.6812427",
"0.6806385",
"0.6779962",
"0.67709804",
"0.6718647",
"0.6717973",
"0.6675067... | 0.6783234 | 17 |
Returns number of "Feature" element | public int sizeOfFeatureArray()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(FEATURE$6);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getFeatureCount();",
"public int getFeatureCount() {\n\r\n\t\treturn _features.length;\r\n\t}",
"int getFeaturesCount();",
"public int getFeaturesCount();",
"public int numberOfFeatures(){\n\t\treturn indexByFeature.keySet().size();\n\t}",
"public int size(Feature f){\n\t\treturn featureIndex(f).siz... | [
"0.84548247",
"0.8229995",
"0.8188406",
"0.81739247",
"0.7951661",
"0.7900373",
"0.77411807",
"0.77268946",
"0.77268946",
"0.7570895",
"0.7570895",
"0.7510183",
"0.7458649",
"0.73470944",
"0.7177372",
"0.71575993",
"0.71535414",
"0.71124125",
"0.7109189",
"0.7095939",
"0.6968... | 0.77678275 | 7 |
Sets array of all "Feature" element | public void setFeatureArray(org.landxml.schema.landXML11.FeatureDocument.Feature[] featureArray)
{
synchronized (monitor())
{
check_orphaned();
arraySetterHelper(featureArray, FEATURE$6);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature);",
"void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature);",
"void setFeatureArray(org.landxml.schema.landXML11.FeatureDocument.Feature[] featureArray);",
"void setFeatureArray(org.la... | [
"0.80588627",
"0.80588627",
"0.7949801",
"0.7949801",
"0.7144149",
"0.7121031",
"0.71121496",
"0.71121496",
"0.69640315",
"0.67518634",
"0.67465526",
"0.66042405",
"0.66042405",
"0.660271",
"0.6601007",
"0.658869",
"0.6521212",
"0.6343569",
"0.6322774",
"0.6322774",
"0.631873... | 0.71688396 | 5 |
Sets ith "Feature" element | public void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature)
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.FeatureDocument.Feature target = null;
target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().find_element_user(FEATURE$6, i);
if (target == null)
{
throw new IndexOutOfBoundsException();
}
target.set(feature);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setFeature(int index, Feature feature);",
"void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature);",
"void setFeatureArray(int i, org.landxml.schema.landXML11.FeatureDocument.Feature feature);",
"void setFeatures(Features f) throws Exception;",
"public void setFeatur... | [
"0.81057084",
"0.7382774",
"0.7382774",
"0.73668224",
"0.69805217",
"0.6979606",
"0.69000524",
"0.6785458",
"0.66490173",
"0.6556751",
"0.6556751",
"0.65112054",
"0.65112054",
"0.6473489",
"0.6460772",
"0.6423529",
"0.6421798",
"0.64173895",
"0.63779587",
"0.6362048",
"0.6299... | 0.69845116 | 5 |
Inserts and returns a new empty value (as xml) as the ith "Feature" element | public org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i)
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.FeatureDocument.Feature target = null;
target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().insert_element_user(FEATURE$6, i);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);",
"org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
... | [
"0.7101163",
"0.7101163",
"0.6536799",
"0.6536799",
"0.6184597",
"0.6108827",
"0.59540176",
"0.5906803",
"0.5906803",
"0.5873656",
"0.58465457",
"0.56623065",
"0.5622629",
"0.55074406",
"0.5503402",
"0.53809136",
"0.5329062",
"0.52848214",
"0.5275757",
"0.52611077",
"0.524949... | 0.6109348 | 6 |
Appends and returns a new empty value (as xml) as the last "Feature" element | public org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature()
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.FeatureDocument.Feature target = null;
target = (org.landxml.schema.landXML11.FeatureDocument.Feature)get_store().add_element_user(FEATURE$6);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();",
"org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);",
"org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);",
... | [
"0.60783887",
"0.60783887",
"0.5926634",
"0.5926634",
"0.5879394",
"0.5853989",
"0.57526255",
"0.5608074",
"0.55591327",
"0.5540906",
"0.53396845",
"0.5317409",
"0.5260587",
"0.52377546",
"0.51811934",
"0.51811934",
"0.5157154",
"0.51204896",
"0.5098781",
"0.5096946",
"0.5093... | 0.58927757 | 5 |
Removes the ith "Feature" element | public void removeFeature(int i)
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(FEATURE$6, i);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void removeFeature(int i);",
"void removeFeature(int i);",
"Feature removeFeature(int index);",
"public void removeFeature(Feature feature) {\n rows.removeElement(feature);\n }",
"public void removeFeature(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n ... | [
"0.8124915",
"0.8124915",
"0.7983761",
"0.7642704",
"0.7515041",
"0.7320212",
"0.71069795",
"0.70447224",
"0.689986",
"0.6799276",
"0.67934424",
"0.6710031",
"0.66962737",
"0.6630069",
"0.6606125",
"0.6529459",
"0.6466736",
"0.64242876",
"0.6293582",
"0.62894607",
"0.6284926"... | 0.75618553 | 5 |
Gets the "name" attribute | public java.lang.String getName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$8);
if (target == null)
{
return null;
}
return target.getStringValue();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String getName() {\n\t\treturn (String) attributes.get(\"name\");\n\t}",
"public String getName()\n {\n return (String)getAttributeInternal(NAME);\n }",
"public final String getNameAttribute() {\n return getAttributeValue(\"name\");\n }",
"public String getName(){\n\n //... | [
"0.90811574",
"0.85429347",
"0.8454023",
"0.83445394",
"0.8337795",
"0.8337795",
"0.8337795",
"0.8337795",
"0.8337795",
"0.8337795",
"0.8337795",
"0.8337795",
"0.8337795",
"0.8337795",
"0.8337795",
"0.8337795",
"0.8337795",
"0.8337795",
"0.8337795",
"0.8337795",
"0.8337795",
... | 0.0 | -1 |
Gets (as xml) the "name" attribute | public org.apache.xmlbeans.XmlString xgetName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$8);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String getName() {\n\t\treturn (String) attributes.get(\"name\");\n\t}",
"@XmlElement(required = true, name = \"name\")\n public String getName() {\n return name;\n }",
"public String getName()\n {\n return (String)getAttributeInternal(NAME);\n }",
"@Override\n @XmlEl... | [
"0.8476323",
"0.7885205",
"0.7822223",
"0.7810065",
"0.779693",
"0.7792037",
"0.7734504",
"0.7734504",
"0.7734504",
"0.7617588",
"0.75669265",
"0.7526666",
"0.7526666",
"0.7471078",
"0.74576813",
"0.74458385",
"0.740755",
"0.740755",
"0.740755",
"0.73977596",
"0.7390486",
"... | 0.0 | -1 |
Sets the "name" attribute | public void setName(java.lang.String name)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$8);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$8);
}
target.setStringValue(name);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"@Over... | [
"0.87521714",
"0.8716724",
"0.8712196",
"0.8712196",
"0.8711521",
"0.8711521",
"0.8710217",
"0.8710217",
"0.8710217",
"0.8705822",
"0.8705822",
"0.8705822",
"0.8704832",
"0.8704832",
"0.8704832",
"0.86967134",
"0.86959463",
"0.8693222",
"0.8693222",
"0.8693222",
"0.8693222",
... | 0.0 | -1 |
Sets (as xml) the "name" attribute | public void xsetName(org.apache.xmlbeans.XmlString name)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$8);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$8);
}
target.set(name);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/name\",v);\n\t\t_Name=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}",
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}",
"public void setName(QName name)\n {\n this.name =... | [
"0.82616305",
"0.80638045",
"0.8043662",
"0.80354625",
"0.80354625",
"0.80354625",
"0.80354625",
"0.8030425",
"0.8029148",
"0.8008555",
"0.8005107",
"0.8002145",
"0.8002145",
"0.8002145",
"0.79947203",
"0.79947203",
"0.79717577",
"0.79681",
"0.79681",
"0.796701",
"0.796701",
... | 0.0 | -1 |
Gets the "desc" attribute | public java.lang.String getDesc()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESC$10);
if (target == null)
{
return null;
}
return target.getStringValue();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getDesc();",
"public java.lang.String getDesc() {\r\n return desc;\r\n }",
"public String getDesc(){\r\n\t\treturn this.desc;\r\n\t}",
"public String getDesc() {\n\t return desc;\n\t }",
"public java.lang.String getDesc() {\n\t\treturn desc;\n\t}",
"public String getDesc() ... | [
"0.83692706",
"0.820441",
"0.81585354",
"0.81398964",
"0.8113883",
"0.81003934",
"0.81003934",
"0.81003934",
"0.81003934",
"0.81003934",
"0.80914384",
"0.80914384",
"0.8063895",
"0.77914107",
"0.77914107",
"0.7773956",
"0.77374154",
"0.7698033",
"0.7642454",
"0.757788",
"0.75... | 0.8214922 | 1 |
Gets (as xml) the "desc" attribute | public org.apache.xmlbeans.XmlString xgetDesc()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESC$10);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getDesc();",
"public java.lang.String getDesc()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().fi... | [
"0.8073143",
"0.8004823",
"0.7872196",
"0.77676475",
"0.7764102",
"0.77559793",
"0.77382034",
"0.7725989",
"0.7709168",
"0.7709168",
"0.7709168",
"0.7709168",
"0.7709168",
"0.7701616",
"0.7701616",
"0.7685238",
"0.7685238",
"0.76734227",
"0.74871325",
"0.746823",
"0.7453047",... | 0.7795692 | 3 |
True if has "desc" attribute | public boolean isSetDesc()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(DESC$10) != null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasDescription();",
"boolean hasDescription();",
"boolean hasDescription();",
"boolean getDesc();",
"boolean isSetDesc();",
"public boolean hasDESCRIPTION() {\n return fieldSetFlags()[1];\n }",
"public boolean hasDescription() {\n return fieldSetFlags()[1];\n }",
"boolean isSe... | [
"0.8352205",
"0.8352205",
"0.8352205",
"0.8235938",
"0.8117737",
"0.7658805",
"0.75877637",
"0.7577917",
"0.7577917",
"0.75773484",
"0.754712",
"0.7513123",
"0.7511096",
"0.7414851",
"0.74125427",
"0.74125427",
"0.74125427",
"0.7374532",
"0.72214764",
"0.708989",
"0.70228606"... | 0.80837685 | 5 |
Sets the "desc" attribute | public void setDesc(java.lang.String desc)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(DESC$10);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(DESC$10);
}
target.setStringValue(desc);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setDesc(java.lang.String desc);",
"public void setDescription(String desc) {\n sdesc = desc;\n }",
"public void setDescription(String desc)\r\n {\r\n\tthis.desc = desc;\r\n }",
"public void setDescription(String desc) {\n this.desc = desc;\n }",
"public void setDesc(String desc) {\n ... | [
"0.85131145",
"0.8249009",
"0.8233123",
"0.82217324",
"0.82183886",
"0.82183886",
"0.8188902",
"0.8188902",
"0.8179213",
"0.8086592",
"0.8054839",
"0.7988897",
"0.7948248",
"0.7937676",
"0.7811087",
"0.7797221",
"0.77093863",
"0.7692585",
"0.76725924",
"0.76358443",
"0.761058... | 0.826797 | 1 |
Sets (as xml) the "desc" attribute | public void xsetDesc(org.apache.xmlbeans.XmlString desc)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESC$10);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DESC$10);
}
target.set(desc);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setDesc(java.lang.String desc);",
"public void setDesc(java.lang.String desc)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleVa... | [
"0.8232496",
"0.8179044",
"0.7994604",
"0.7964496",
"0.79640055",
"0.787035",
"0.7830021",
"0.77544594",
"0.77486306",
"0.77486306",
"0.76988333",
"0.76988333",
"0.7690059",
"0.76779664",
"0.7677533",
"0.7632162",
"0.7593514",
"0.7564853",
"0.75605375",
"0.75605375",
"0.75605... | 0.8038886 | 2 |
Unsets the "desc" attribute | public void unsetDesc()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(DESC$10);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void unsetDesc();",
"public void unsetDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(DESCRIPTION$14);\n }\n }",
"public void unsetDescription()\r\n {\r\n synchroni... | [
"0.85304356",
"0.8018465",
"0.7993142",
"0.79514474",
"0.79514474",
"0.76794356",
"0.73955345",
"0.73065007",
"0.7287966",
"0.70701694",
"0.6990408",
"0.69900167",
"0.69618547",
"0.69618547",
"0.6951448",
"0.69378656",
"0.69378656",
"0.6916472",
"0.6843193",
"0.6843193",
"0.6... | 0.8658849 | 0 |
Gets the "OID" attribute | public java.lang.String getOID()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OID$12);
if (target == null)
{
return null;
}
return target.getStringValue();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String get__OID() throws com.intersys.objects.CacheException {\n com.intersys.cache.Dataholder dh = mInternal.getProperty(\"%%OID\",false);\n return dh.getString();\n }",
"public String getOid() {\n return getProperty(Property.OID);\n }",
"public org.apache.xmlbeans.XmlStri... | [
"0.7923523",
"0.7878911",
"0.7693196",
"0.7426842",
"0.74085355",
"0.7391525",
"0.6919241",
"0.68390167",
"0.6819316",
"0.68099666",
"0.67375606",
"0.6622496",
"0.6554211",
"0.6474518",
"0.6434305",
"0.6426554",
"0.6423286",
"0.64191055",
"0.640052",
"0.640052",
"0.62777853",... | 0.82824886 | 0 |
Gets (as xml) the "OID" attribute | public org.apache.xmlbeans.XmlString xgetOID()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(OID$12);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getOID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OID$12);\r\n ... | [
"0.77762806",
"0.71299016",
"0.6794612",
"0.6513662",
"0.64763063",
"0.6463649",
"0.63979965",
"0.6396988",
"0.6299354",
"0.6231366",
"0.61361045",
"0.6134546",
"0.6107278",
"0.6106073",
"0.60198027",
"0.6011838",
"0.6008402",
"0.6008402",
"0.5979197",
"0.596512",
"0.5919031"... | 0.76408786 | 1 |
True if has "OID" attribute | public boolean isSetOID()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(OID$12) != null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract boolean oidExists(String oid);",
"public boolean isSetIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(IDENTIFIER$0) != 0;\n }\n }",
"boolean hasAttributes();",
"boolean hasAttributes();",
... | [
"0.6956424",
"0.6740161",
"0.6734673",
"0.6734673",
"0.66610193",
"0.6632346",
"0.662795",
"0.662795",
"0.66260403",
"0.6573631",
"0.6557108",
"0.6532171",
"0.6511747",
"0.6506609",
"0.64917713",
"0.64898205",
"0.6441407",
"0.642944",
"0.64270055",
"0.64270055",
"0.6423783",
... | 0.7906211 | 0 |
Sets the "OID" attribute | public void setOID(java.lang.String oid)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OID$12);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(OID$12);
}
target.setStringValue(oid);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void xsetOID(org.apache.xmlbeans.XmlString oid)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_use... | [
"0.77095175",
"0.7438611",
"0.7219421",
"0.70163214",
"0.6207301",
"0.6193307",
"0.6158748",
"0.61397624",
"0.6005937",
"0.59525007",
"0.5937194",
"0.59306514",
"0.59306514",
"0.59306514",
"0.59306514",
"0.59306514",
"0.59306514",
"0.5919674",
"0.58967805",
"0.5885288",
"0.58... | 0.8043773 | 0 |
Sets (as xml) the "OID" attribute | public void xsetOID(org.apache.xmlbeans.XmlString oid)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(OID$12);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(OID$12);
}
target.set(oid);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setOID(java.lang.String oid)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(OID$12);... | [
"0.7747784",
"0.6736262",
"0.6425518",
"0.6403667",
"0.634858",
"0.6056676",
"0.6035563",
"0.5882841",
"0.5809405",
"0.5772176",
"0.5766092",
"0.573889",
"0.57024544",
"0.5686353",
"0.5654221",
"0.56356496",
"0.56356496",
"0.56338197",
"0.5617071",
"0.56125003",
"0.5611067",
... | 0.76151013 | 1 |
Unsets the "OID" attribute | public void unsetOID()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(OID$12);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void unsetID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ID$12);\n }\n }",
"public void unsetID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_... | [
"0.71662784",
"0.71662784",
"0.7114059",
"0.7022266",
"0.6927478",
"0.6848636",
"0.67721623",
"0.67061025",
"0.6552996",
"0.6498728",
"0.64821947",
"0.64821947",
"0.64821947",
"0.64821947",
"0.64821947",
"0.64821947",
"0.6351291",
"0.6306019",
"0.62648904",
"0.6223087",
"0.62... | 0.86311764 | 0 |
Gets the "state" attribute | public org.landxml.schema.landXML11.StateType.Enum getState()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STATE$14);
if (target == null)
{
return null;
}
return (org.landxml.schema.landXML11.StateType.Enum)target.getEnumValue();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getState() { return state; }",
"public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}",
"public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String g... | [
"0.82780147",
"0.82691115",
"0.82691115",
"0.8256617",
"0.8256617",
"0.8249545",
"0.8249545",
"0.8249545",
"0.8249545",
"0.8232529",
"0.82299244",
"0.8197605",
"0.8195109",
"0.81881446",
"0.81881446",
"0.81881446",
"0.8179522",
"0.81682223",
"0.81682223",
"0.81682223",
"0.816... | 0.0 | -1 |
Gets (as xml) the "state" attribute | public org.landxml.schema.landXML11.StateType xgetState()
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.StateType target = null;
target = (org.landxml.schema.landXML11.StateType)get_store().find_attribute_user(STATE$14);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"org.landxml.schema.landXML11.StateType xgetState();",
"public String getState() { return state; }",
"org.landxml.schema.landXML11.StateType.Enum getState();",
"java.lang.String getState();",
"public String getState(){\n return state;\n }",
"String getState();",
"String getState();",
"String... | [
"0.7726177",
"0.76061887",
"0.758161",
"0.7575569",
"0.7508998",
"0.75071347",
"0.75071347",
"0.75071347",
"0.7457673",
"0.74543864",
"0.74543864",
"0.7432511",
"0.7432511",
"0.7432511",
"0.7432511",
"0.7423496",
"0.7416767",
"0.7416767",
"0.7415263",
"0.7406788",
"0.74025875... | 0.0 | -1 |
True if has "state" attribute | public boolean isSetState()
{
synchronized (monitor())
{
check_orphaned();
return get_store().find_attribute_user(STATE$14) != null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasState();",
"boolean hasState();",
"boolean hasState();",
"boolean hasState();",
"boolean hasState();",
"boolean hasState();",
"boolean hasState();",
"boolean hasState();",
"boolean hasHasState();",
"public boolean getState( ) { return state; }",
"@Override\n\tpublic boolean getState(... | [
"0.8537682",
"0.8537682",
"0.8537682",
"0.8537682",
"0.8537682",
"0.8537682",
"0.8537682",
"0.8537682",
"0.8363976",
"0.79980737",
"0.79243386",
"0.78994536",
"0.78994536",
"0.7864455",
"0.778568",
"0.76829624",
"0.76829624",
"0.7682003",
"0.7671622",
"0.76710445",
"0.7669029... | 0.8019859 | 9 |
Sets the "state" attribute | public void setState(org.landxml.schema.landXML11.StateType.Enum state)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(STATE$14);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STATE$14);
}
target.setEnumValue(state);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setState(int state);",
"public void setState(int state);",
"void setState(int state);",
"public void setState(int state) {\n m_state = state;\n }",
"public void setState(String state);",
"public void setState(String state){\n this.state = state;\n }",
"public void setS... | [
"0.8592896",
"0.8592896",
"0.848855",
"0.84284824",
"0.84245646",
"0.8400326",
"0.83746225",
"0.83510184",
"0.83510184",
"0.8318099",
"0.8300101",
"0.829385",
"0.829385",
"0.829385",
"0.829385",
"0.829385",
"0.829385",
"0.82878387",
"0.8283199",
"0.8282656",
"0.8275929",
"0... | 0.807467 | 50 |
Sets (as xml) the "state" attribute | public void xsetState(org.landxml.schema.landXML11.StateType state)
{
synchronized (monitor())
{
check_orphaned();
org.landxml.schema.landXML11.StateType target = null;
target = (org.landxml.schema.landXML11.StateType)get_store().find_attribute_user(STATE$14);
if (target == null)
{
target = (org.landxml.schema.landXML11.StateType)get_store().add_attribute_user(STATE$14);
}
target.set(state);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setState(org.landxml.schema.landXML11.StateType.Enum state);",
"void xsetState(org.landxml.schema.landXML11.StateType state);",
"public void setState(String state);",
"public void setState(org.landxml.schema.landXML11.StateType.Enum state)\r\n {\r\n synchronized (monitor())\r\n ... | [
"0.81390136",
"0.8126214",
"0.77275884",
"0.76699007",
"0.7607991",
"0.7526804",
"0.74969846",
"0.7496085",
"0.7496085",
"0.74600697",
"0.7399552",
"0.73466974",
"0.73466974",
"0.73437524",
"0.73220617",
"0.73217434",
"0.73055196",
"0.73055196",
"0.73024684",
"0.73024684",
"0... | 0.7481133 | 9 |
Unsets the "state" attribute | public void unsetState()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_attribute(STATE$14);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void unsetState();",
"public void unsetState()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(STATE$8, 0);\r\n }\r\n }",
"public void resetState();",
"public void reset() {\n this.state = null;\n }",
"... | [
"0.8661384",
"0.8232218",
"0.8033991",
"0.7904635",
"0.74837774",
"0.74326533",
"0.73894984",
"0.7154642",
"0.71340376",
"0.7105835",
"0.7012041",
"0.7010985",
"0.69861895",
"0.6962242",
"0.6917907",
"0.68995357",
"0.68983483",
"0.68579733",
"0.68503565",
"0.6848478",
"0.6848... | 0.8535021 | 1 |
Creates new form Inicio | public Inicio() {
initComponents();
iniciarModelos();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void create(Formulario form){\n daoFormulario.create(form);\n }",
"public creacionempresa() {\n initComponents();\n mostrardatos();\n }",
"public frmAfiliado() {\n initComponents();\n \n }",
"public FormInserir() {\n initComponents();\n }",
... | [
"0.6993054",
"0.6985426",
"0.6954153",
"0.681345",
"0.67655253",
"0.676181",
"0.6758866",
"0.6717438",
"0.6688648",
"0.66685706",
"0.66263914",
"0.659723",
"0.65587",
"0.6557283",
"0.65562373",
"0.65447265",
"0.6527449",
"0.65252644",
"0.651884",
"0.65077907",
"0.64807117",
... | 0.6632749 | 10 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jComboBoxProducto = new javax.swing.JComboBox<>();
jComboBoxPedido = new javax.swing.JComboBox<>();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
jButtonEncargo = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jButtonAñadirProducto = new javax.swing.JButton();
jTextField1 = new javax.swing.JTextField();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jComboBoxProducto.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Producto:" }));
jComboBoxProducto.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboBoxProductoActionPerformed(evt);
}
});
jTextArea1.setColumns(20);
jTextArea1.setRows(5);
jScrollPane1.setViewportView(jTextArea1);
jButtonEncargo.setText("Encargar");
jButtonEncargo.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jButtonEncargoMouseClicked(evt);
}
});
jLabel1.setText("Hola Usuario");
jLabel2.setText("Encargos:");
jButtonAñadirProducto.setText("Añadir");
jButtonAñadirProducto.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jButtonAñadirProductoMouseClicked(evt);
}
});
jTextField1.setText("Producto");
jTextField1.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusGained(java.awt.event.FocusEvent evt) {
jTextField1FocusGained(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(49, 49, 49)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jButtonEncargo)
.addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jComboBoxProducto, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jComboBoxPedido, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(70, 70, 70)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jTextField1)
.addComponent(jButtonAñadirProducto, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 171, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(28, 28, 28))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(layout.createSequentialGroup()
.addGap(35, 35, 35)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel1)
.addGap(33, 33, 33)
.addComponent(jComboBoxProducto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jComboBoxPedido, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButtonEncargo))
.addGroup(layout.createSequentialGroup()
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jButtonAñadirProducto)
.addGap(0, 0, Short.MAX_VALUE))))
.addGroup(layout.createSequentialGroup()
.addGap(31, 31, 31)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(71, Short.MAX_VALUE))
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73207104",
"0.7291319",
"0.7291319",
"0.7291319",
"0.7286366",
"0.7249061",
"0.7213687",
"0.7208364",
"0.7196237",
"0.7191069",
"0.7185096",
"0.7159581",
"0.7148432",
"0.70938945",
"0.707995",
"0.7056585",
"0.69874734",
"0.697786",
"0.6955647",
"0.6953296",
"0.69459146",
... | 0.0 | -1 |
Interface for distance functions that compute the distance from a set of objects to the given object. The distance function takes two parameters the set of objects and the object the distance of which is measured and returns their distance as a float number. Note that the actual distance function used to compute the distance is given by the implementation. | public interface DistanceFunctionMultiObject<T> {
/**
* Measures the distance between all the objects in set (the first argument) and
* the specified object (the second argument).
* The passed array {@code individualDistances} will be filled with the
* distances to the individual objects in the set.
*
* @param objects the set of objects for which to measure the distance to the second parameter
* @param object the object for which to measure the distance
* @param individualDistances the array to fill with the distances to the respective objects from the set;
* if not <tt>null</tt>, it must have the same number of allocated elements as the number of the set of objects
* @return the distance between the given set of {@code objects} and the {@code object}
* @throws IndexOutOfBoundsException if the passed {@code individualDistances} array is not big enough
*/
public float getDistanceMultiObject(Collection<? extends T> objects, T object, float[] individualDistances) throws IndexOutOfBoundsException;
/**
* Returns the type of objects that this distance function accepts as arguments.
* @return the type of objects for this distance function
*/
public Class<? extends T> getDistanceObjectClass();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract double distanceTo (Object object);",
"public abstract double getDistance(T o1, T o2) throws Exception;",
"public double distance(DataInstance d1, DataInstance d2, List<Attribute> attributeList);",
"public interface DistanceTo{\r\n\r\n\t/** Computes the distance between this object and the giv... | [
"0.7561797",
"0.668433",
"0.6405873",
"0.6352813",
"0.631444",
"0.60652167",
"0.60163164",
"0.59888744",
"0.5976394",
"0.58973557",
"0.58941513",
"0.58888084",
"0.588781",
"0.58570933",
"0.5834619",
"0.577199",
"0.56770056",
"0.5653788",
"0.56330067",
"0.55989623",
"0.5583823... | 0.7752585 | 0 |
Returns the type of objects that this distance function accepts as arguments. | public Class<? extends T> getDistanceObjectClass(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract double distanceTo (Object object);",
"public interface DistanceFunctionMultiObject<T> {\n /**\n * Measures the distance between all the objects in set (the first argument) and\n * the specified object (the second argument).\n * The passed array {@code individualDistances} will be f... | [
"0.56865174",
"0.55687666",
"0.5407376",
"0.53707194",
"0.52386695",
"0.5234115",
"0.52312595",
"0.52236426",
"0.52236426",
"0.52236426",
"0.52236426",
"0.52236426",
"0.52236426",
"0.52236426",
"0.52236426",
"0.52097934",
"0.5200379",
"0.5189688",
"0.5143176",
"0.5131357",
"0... | 0.6187684 | 0 |
This is call back method and will execute if server returns response. Response may contain error. | @Override
public void onResponse(String res)
{
log.d(res); // response from server will be printed in logcat window.
//convert response into json format
try
{
JSONArray response = new JSONArray(res);
// [{"error":"no"},{"success":"no"},{"message":"email not registered with us"}]
//here first JSON object(index 0) is {"error":"no"}, second JSON object(index 1) is {"success":"no"} and third JSON object(index 2) is {"message":"Password Changed"}.
String error = response.getJSONObject(0).getString("error");
if(error.equals("no")==false)
{
Toast.makeText(ctx,error,Toast.LENGTH_LONG).show();
}
else
{
String success = response.getJSONObject(1).getString("success");
String message = response.getJSONObject(2).getString("message");
Toast.makeText(ctx,message,Toast.LENGTH_LONG).show();
if(success.equals("yes")==true)
{
Intent SwitchIntent = new Intent(ctx,Login.class);
startActivity(SwitchIntent);
finish();
}
}
}
catch (JSONException e) {
log.e(e.getMessage(),ctx); //If android will not be able to convert response into JSON format, then runtime exception error msg
// will be printed in logcat window as wel as Toast.(as per our log.e method in log.java class).
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Response callback() throws Exception;",
"public void onResponse(Response response) throws Exception;",
"@Override\n\t\t\t\t\tpublic void onResponse(String response) {\n\n\t\t\t\t\t}",
"@Override\n public void onResponse(Response response) throws IOException {\n }",
"@Override\n... | [
"0.74870145",
"0.6979687",
"0.69325584",
"0.6917355",
"0.6883572",
"0.6865803",
"0.68570715",
"0.6855904",
"0.68462676",
"0.68442494",
"0.6834957",
"0.6834957",
"0.6834957",
"0.68205744",
"0.67978865",
"0.6779507",
"0.6766089",
"0.6760286",
"0.6758228",
"0.67474455",
"0.67433... | 0.0 | -1 |
this method is call back method which will execute if server do not respond according to our retry policy. | @Override
public void onErrorResponse(VolleyError error)
{
AlertDialog.Builder b1 = new AlertDialog.Builder(ctx);
b1.setTitle("Network error");
b1.setMessage(Common.getMessage());
b1.setIcon(R.mipmap.ic_launcher);
b1.setPositiveButton("retry", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
SendRequest();
}
});
b1.setNegativeButton("cancel", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
b1.create().dismiss();
}
});
b1.create().show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void retryTask(HttpServletResponse resp) {\n resp.setStatus(500);\n }",
"@Override\n public void onRetry ( int retryNo){\n }",
"@Override\n public void onRetry ( int retryNo){\n }",
"@Override\n public void onRetry ( int retryNo){\n ... | [
"0.6932516",
"0.6912452",
"0.6912452",
"0.6912452",
"0.6908093",
"0.686901",
"0.68607676",
"0.6860254",
"0.6807822",
"0.6807822",
"0.6807822",
"0.6804576",
"0.6804576",
"0.6804576",
"0.6804576",
"0.6804576",
"0.6804576",
"0.6804576",
"0.6804576",
"0.6804576",
"0.6649442",
"... | 0.0 | -1 |
below method is used to give user input to server. | @Override
protected Map<String, String> getParams() throws AuthFailureError {
Map<String,String> KeyValuePair = new HashMap<String,String>();
//input: Regemail(required).
KeyValuePair.put("email",Regemail);
return KeyValuePair;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void requestInput();",
"public void takeUserInput() {\n\t\t\r\n\t}",
"String getUserInput();",
"private void inputHandler(String input) throws Exception{\n\n switch (input) {\n\n case \"/quit\":\n done = true;\n break;\n\n default:\n P... | [
"0.7424446",
"0.731839",
"0.70215476",
"0.6853483",
"0.6719502",
"0.65999013",
"0.6586772",
"0.6541907",
"0.649634",
"0.6494811",
"0.6480767",
"0.64522016",
"0.64499193",
"0.64459765",
"0.6422499",
"0.6418438",
"0.64043087",
"0.64034444",
"0.6403215",
"0.6377163",
"0.63748956... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.