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
Go through the shopping cart and pack all packable items into bags
public void packBags() { GroceryBag[] packedBags = new GroceryBag[numItems]; int bagCount = 0; GroceryBag currentBag = new GroceryBag(); for (int i=0; i<numItems; i++) { GroceryItem item = (GroceryItem) cart[i]; if (item.getWeight() <= GroceryBag.MAX_WEI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void fillBasket(_essentialGift[] esGifts, _utilityGift[] uGifts, _luxuryGift[] lGifts) {\r\n ...
[ "0.5973502", "0.5973502", "0.5973502", "0.5973502", "0.5973502", "0.5973502", "0.59111345", "0.5864222", "0.57706153", "0.5763422", "0.57380605", "0.573366", "0.5688911", "0.56713986", "0.5637375", "0.56320065", "0.5630955", "0.5617837", "0.5607803", "0.5562172", "0.55400443"...
0.79697967
0
Display contents of the cart in a specific way depending on what it is (bag or item)
public void displayCartContents() { for (int i = 0; i < numItems; i++) { // Checks all objects in the cart if ((cart[i].getContents() != "")) { // If not item System.out.println(cart[i].getDescription()); // Display bag description System.out.println(cart[i].getCo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void viewCart() {\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" The items in your cart\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(...
[ "0.7080046", "0.6750297", "0.6709283", "0.67003196", "0.6574346", "0.6311363", "0.62271756", "0.60972804", "0.6077901", "0.6057336", "0.6021558", "0.6003099", "0.5965802", "0.5965053", "0.5957854", "0.59544635", "0.5950497", "0.589679", "0.58022785", "0.5785825", "0.5781019",...
0.8252036
0
Removes perishable items from cart
public PerishableItem[] removePerishables() { // Check how many perishables items there are in total int perishableCount = 0; for (int i = 0; i < numItems; i++) { // Checks how many perishables in the cart (loose items) if (cart[i] instanceof PerishableItem) { pe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAllCartItems(Cart cart) {\n\t\t\t\r\n\t\t}", "void removeCartItem(int cartItemId);", "public void clearCart() {\n this.items.clear();\n }", "@Override\n public void removeMenu(Items item) {\n int index = getCartIndex(item);\n if (index >= 0) {\n Items c...
[ "0.7322364", "0.70135254", "0.6890343", "0.6780111", "0.6772657", "0.6769626", "0.6537365", "0.65097624", "0.64368385", "0.6433085", "0.63897395", "0.63328", "0.6294323", "0.6290974", "0.62772775", "0.62637895", "0.6251414", "0.61742514", "0.6120424", "0.61084175", "0.6079321...
0.73003685
1
Spring Data repository for the Municipio entity.
@SuppressWarnings("unused") @Repository public interface MunicipioRepository extends JpaRepository<Municipio, Long> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Repository\npublic interface IProvinceRepository extends JpaRepository <ProvinceEntity, Integer> {\n\n /**\n *\n * <p>Return the provinces searches by country and ordened by name.\n *\n * @return Return the province list.\n * */\n List<ProvinceEntity> findAllByCountry (CountryEntity co...
[ "0.65470994", "0.64517784", "0.6385331", "0.62526566", "0.62424105", "0.62114495", "0.6204916", "0.6199757", "0.6139633", "0.61193204", "0.6115746", "0.6104901", "0.6099902", "0.6092371", "0.6088453", "0.60326153", "0.6023982", "0.60237336", "0.59993416", "0.5997144", "0.5984...
0.6991269
0
Gets original standard out.
public static synchronized PrintStream getStdOut() { return sysOut; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "InputStream getStdout();", "public static\n PrintStream out() {\n return Ansi.out;\n }", "public static AnsiPrintStream out() {\n initStreams();\n return (AnsiPrintStream) out;\n }", "public static PrintStream out() {\n return System.out;\n }", "public String lastOutput() ...
[ "0.6789304", "0.6577965", "0.6513975", "0.64582527", "0.64557713", "0.643661", "0.6432638", "0.6397038", "0.6367268", "0.6283183", "0.62506634", "0.62468016", "0.622334", "0.6219019", "0.62032104", "0.6157037", "0.6154807", "0.6153772", "0.6112329", "0.61101407", "0.6093665",...
0.6940086
0
Gets original standard error.
public static synchronized PrintStream getStdErr() { return sysErr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String getError(){\n return lastKnownError;\n }", "java.lang.String getError();", "java.lang.String getError();", "java.lang.String getError();", "java.lang.String getErr();", "public Object getError() {\n\t\treturn error;\n\t}", "public java.lang.String getError() {\n ...
[ "0.7066817", "0.7009579", "0.7009579", "0.7009579", "0.6942041", "0.67879206", "0.674672", "0.674672", "0.674672", "0.66652834", "0.6648468", "0.6636885", "0.6616588", "0.6608915", "0.6604362", "0.6604362", "0.65907973", "0.6572566", "0.6531661", "0.6531286", "0.65137786", ...
0.6435117
26
Acquires output stream for logging tests.
public static synchronized GridTestPrintStream acquireOut() { // Lazy initialization is required here to ensure that parent // thread group is picked off correctly by implementation. if (testOut == null) testOut = new GridTestPrintStream(sysOut); if (outCnt == 0) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openOutputStream() {\n\t\tPrintStreamManagement.openOutputStream();\n\t}", "@Before\n\tpublic void setUpStreams() {\n\t\tSystem.setOut(new PrintStream(outContent));\n\t}", "@Before\n public void changeOutStream() {\n PrintStream printStream = new PrintStream(outContent);\n System....
[ "0.72059107", "0.6715195", "0.64192706", "0.62655276", "0.6138219", "0.60192174", "0.59534806", "0.5933762", "0.5872618", "0.5782252", "0.57775784", "0.5767355", "0.5760742", "0.5693966", "0.56815976", "0.56351244", "0.5610747", "0.5595481", "0.5590012", "0.5583382", "0.55532...
0.6409513
3
Acquires output stream for logging errors in tests.
public static synchronized GridTestPrintStream acquireErr() { // Lazy initialization is required here to ensure that parent // thread group is picked off correctly by implementation. if (testErr == null) testErr = new GridTestPrintStream(sysErr); if (errCnt == 0) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openOutputStream() {\n\t\tPrintStreamManagement.openOutputStream();\n\t}", "@Before\n\tpublic void setUpStreams() {\n\t\tSystem.setOut(new PrintStream(outContent));\n\t}", "static PrintStream outputStream() {\n return System.err;\n }", "private void ensureOpen() throws IOException {\n ...
[ "0.6887635", "0.65770614", "0.64079195", "0.6357006", "0.6316759", "0.6069138", "0.606564", "0.59813493", "0.5903749", "0.5883602", "0.5883191", "0.58688015", "0.5865161", "0.58469224", "0.5766647", "0.57591695", "0.5720363", "0.57176995", "0.5701676", "0.56621814", "0.564761...
0.61334413
5
Releases standard out. If there are no more acquired standard outs, then it is reset to its original value.
public static synchronized void releaseOut() { outCnt--; if (outCnt == 0) System.setOut(sysOut); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void release() {\n output = null;\n super.release();\n }", "@After\n\tpublic void restoreStreams() {\n\t\tSystem.setOut(originalOut);\n\t}", "public void releaseOutput() {\n output.releaseStation();\n }", "private void closeOutputStream() {\n\t\tPrintStreamManagemen...
[ "0.7101051", "0.6824355", "0.67406833", "0.65976095", "0.659092", "0.65105283", "0.6460733", "0.62058485", "0.617525", "0.61507756", "0.61396784", "0.6104154", "0.6072058", "0.60654515", "0.6016736", "0.5964209", "0.592712", "0.58049256", "0.57896155", "0.5782497", "0.5751494...
0.80512476
0
Releases standard error. If there are no more acquired standard errors, then it is reset to its original value.
public static synchronized void releaseErr() { errCnt--; if (errCnt == 0) System.setErr(sysErr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void finalizeSystemErr() {}", "public void release() throws IOException;", "public void disposal() throws SystemException;", "@Override\n public void clearError() {\n\n }", "public void release()\r\n throws IOException\r\n {\r\n // nothing needs to be done\r\n }", "pub...
[ "0.6224442", "0.5776003", "0.57136905", "0.5685556", "0.5648443", "0.5581583", "0.55357504", "0.5460251", "0.5457699", "0.54256475", "0.539019", "0.53714514", "0.5351561", "0.5325911", "0.5290676", "0.5235768", "0.52307093", "0.5207544", "0.52004504", "0.5174489", "0.5170928"...
0.74310195
0
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); this.setContentView(R.layout.snake); statusButton = (ImageButton)findViewById(R.id.status_button); statusButton.setBackgroundColor(Color.argb(0, 0, 0, 0)); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { if(snake.getstatus() == snake.READY) { return; } else if(snake.getstatus() == snake.RUNNING) { // statusButton.setText("start"); statusButton.setImageResource(R.drawable.start); snake.pause(); } else { // statusButton.setT...
{ "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
Con este metodo se agregaran elementos a nuestra cabeza
public void addPrimero(Object obj) { if (cabeza == null) { //Si la cabeza es nula, entoces se creará un nuevo nodo donde le pasaremos el valor de obj cabeza = new Nodo(obj); } else { //Si no es nula, signifa que el valor que se ingrese, pasara a ser la nueva cabeza Nodo temp = ca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos()....
[ "0.7068178", "0.69562924", "0.6724811", "0.66763294", "0.6581988", "0.6563245", "0.6521003", "0.6476318", "0.6423391", "0.6421367", "0.6410217", "0.6402288", "0.6344725", "0.6328836", "0.62593615", "0.6259209", "0.6251021", "0.6249307", "0.62441635", "0.6233203", "0.6198178",...
0.61216366
33
punto de la bas(partida y retorno)
public static void main(String[] args) { Punto puntoini = new Punto(0,-12.045916, -75.195270,0.0); TSPHeuristica tsp = new TSPHeuristica(); System.out.println("mosgtrando valores inciales "); tsp.mostratPuntosHeuristica(getPuntos()); //Ruta ruta = tsp.getRuta(puntoini, getPuntos()); List<...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private byte[] processData(String peticion) {\n\t\t\n\t\tString respuesta = \"\";\n\t\t\n\t\tswitch (peticion) {\n\t\t\t\n\t\t\tcase \"noticias\": respuesta = \"¡Por fin la vacuna ya está en España!\"; break;\n\t\t\tcase \"hora\": respuesta = getFecha(); break;\n\t\t\tcase \"aleatorio\": respuesta = Double. toStr...
[ "0.66282934", "0.6094331", "0.58559364", "0.58358693", "0.5828858", "0.58238345", "0.5809304", "0.57952386", "0.57848597", "0.57773924", "0.57408667", "0.5728685", "0.5703679", "0.5676441", "0.56506914", "0.5632", "0.5628807", "0.5622586", "0.5621943", "0.5616944", "0.5614062...
0.0
-1
heuristica de hora de atencion heuristica de prioridad urgencia distancia
private Punto getPuntoPriorizado(Punto puntoini, List<Punto> puntos ){ Punto puntopriorizado = null; // calculamos la heuristica de distancias a los demas puntos for (Punto punto : puntos) { if( (puntoini!=null && punto!=null) && !puntoini.equals(punto) ){ double d = Geometria.distanciaDeCoordenada...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }", "public String getHora() {\n Calendar calendario = new GregorianCalendar();\n SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n return sdf.format(calendario.getTime());\n }", "@RequiresApi(api...
[ "0.6901477", "0.63226426", "0.61624724", "0.60842663", "0.60661817", "0.606602", "0.6020117", "0.59885234", "0.58529663", "0.5840175", "0.5836873", "0.5820662", "0.5819337", "0.581104", "0.5803453", "0.57916355", "0.57724315", "0.5753774", "0.5720438", "0.57087845", "0.567448...
0.0
-1
getPuntoCercano obtiene el punto mas cercano a un punto incial de una determinada de puntos
private Punto getPuntoCercano(Punto puntoini, List<Punto> puntos ){ List<Segmento> segmentos = new ArrayList<Segmento>(); // todos contra todos for (Punto punto : puntos) { if( (puntoini!=null && punto!=null) && !puntoini.equals(punto) ){ double d = Geometria.distanciaDeCoordenadas(puntoini,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Punto getPuntoPriorizado(Punto puntoini, List<Punto> puntos ){\n\t\t\n\t\tPunto puntopriorizado = null;\n\t\t// calculamos la heuristica de distancias a los demas puntos\n\t\tfor (Punto punto : puntos) {\n\t\t\tif( (puntoini!=null && punto!=null) && !puntoini.equals(punto) ){\n\t\t\t\tdouble d = Geome...
[ "0.58982843", "0.5671702", "0.5542331", "0.549457", "0.54756325", "0.53736144", "0.53475356", "0.5337282", "0.53358996", "0.5327699", "0.5303249", "0.5293311", "0.5285272", "0.52765197", "0.5223942", "0.5169829", "0.5163784", "0.515798", "0.50918424", "0.5088411", "0.5079241"...
0.7211771
0
/ Long tiempoat1= (Long) mp1.get("tiempoat"); // tiempo atencion Integer priorida1= (Integer) mp1.get("priorida"); // prioridad Integer urgencia1= (Integer) mp1.get("urgencia"); // urgencia Double distanci1= (Double) mp1.get("distanci"); // distancia
public static List<Punto> getPuntos(){ List<Punto> puntos = new ArrayList<Punto>(); try{ //-12.045916, -75.195270 Punto p1 = new Punto(1,-12.037512,-75.183327,0.0); p1.setDatos(getDatos("16/06/2017 09:00:00", 2 , 1)); Punto p2 = new Punto(2,-12.041961,-75.184786,0.0); p2.setDatos(getD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getLongitud()\n/* 37: */ {\n/* 38:55 */ return this.longitud;\n/* 39: */ }", "void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-9...
[ "0.62118953", "0.58074677", "0.5759581", "0.5578526", "0.54640454", "0.5423411", "0.5402939", "0.5327046", "0.5294252", "0.5248662", "0.524754", "0.52367795", "0.5218283", "0.5208215", "0.5206384", "0.5197199", "0.51705337", "0.5168991", "0.51632214", "0.51632214", "0.5155504...
0.4958202
48
TODO Autogenerated method stub
@Override public void input() { User u =new User(); if(list.size() <= MAX_USER) { System.out.print("이름 입력 : "); u.setName(sc.next()); System.out.print("나이 입력 : "); u.setAge(sc.nextInt()); System.out.print("주소 입력 : "); u.setAddr(sc.next()); list.add(u); }else if(list.size() > MAX_USER) { Syste...
{ "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 output() { for(User u :list) { if(list.size() > MIN_USER) { System.out.println("이름 : "+u.getName()); System.out.println("나이 : "+u.getAge()); System.out.println("주소 : "+u.getAddr()); System.out.println("======================="); } } System.out.println("입력된 정보가 없습니다....
{ "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
Before entering the execution state flush messages that may have been left into the queue and that may confuse the test execution
public int onEnd() { flushMessageQueue(); return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic final void testMessageQueueFlushTest() {\n\t\tfinal int count = 10000;\n\t\tIMessageSourceProvider source = new MessageSourceProvider();\n\t\tIMessengerPacket[] batch = new IMessengerPacket[count];\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tbatch[i] =Log.makeLogPacket(LogMessageSeverity.VERBOSE,...
[ "0.70200396", "0.6958502", "0.6831237", "0.67595077", "0.6466999", "0.64250463", "0.6388316", "0.6285332", "0.62113786", "0.6191848", "0.6142058", "0.61327964", "0.6044093", "0.59891677", "0.5985999", "0.59639263", "0.5958591", "0.5948643", "0.5938826", "0.5881202", "0.587035...
0.0
-1
write your code here
public int coinChange(int[] coins, int amount) { if (coins == null || coins.length == 0) return 0; Arrays.sort(coins); memo = new int[amount + 1][coins.length]; ans = dfs(coins, amount, coins.length - 1); return ans == Integer.MAX_VALUE ? -1 : ans; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpub...
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.5...
0.0
-1
=========== Method 4: DFS + greedy + pruning ========== PROBLEM!!!! TLE for this test case: [8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90] 1905 i...
public int coinChange(int[] coins, int amount) { Arrays.sort(coins); // greedy. Iterate from largest value int[] ans = new int[]{Integer.MAX_VALUE}; helper(coins.length - 1, coins, amount, 0, ans); return ans[0] == Integer.MAX_VALUE ? -1 : ans[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void GreedySearch(){\n\n Queue<Node> expanded = new LinkedList<>();\n ArrayList<Node> fringe = new ArrayList<>();\n ArrayList<Node> fringeTemp = new ArrayList<>();\n\n\n Node current = startNode;\n\n while(expanded.size() < 1000){\n\n if(current.getDigit().getD...
[ "0.67080575", "0.6112871", "0.5918819", "0.58851224", "0.5868021", "0.5810803", "0.57352453", "0.56870484", "0.56465304", "0.56392074", "0.56149423", "0.5576283", "0.55627143", "0.5559457", "0.5552062", "0.5538197", "0.5535885", "0.5528232", "0.55006707", "0.5494879", "0.5494...
0.0
-1
=========== Method 3: DP Bottom Up ============ Approach 1 : Naive. Time = O(n amount ^ 2) 425ms dp[i][j] represents min number of coins needed to make up amount j with only coins[i..n1] Base case: dp[n][0] = 0, dp[n][1..m] = inf Induction rule: dp[i][j] = min(dp[i+1][jkcoins[i]]+k), 0<=k<=j/coins[i]
public int coinChange(int[] coins, int amount) { int[][] dp = new int[coins.length + 1][amount + 1]; // base case Arrays.fill(dp[coins.length], Integer.MAX_VALUE); dp[coins.length][0] = 0; // induction rule for (int i = coins.length - 1; i >= 0; i--) { for (in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int minCoins_bottom_up_dynamic_approach(int[] coins, int amount) {\n if (coins == null || coins.length == 0) return 0;\n if (amount < 0) return 0;\n\n int memo[][] = new int[coins.length + 1][amount + 1];\n\n // populate first row\n for (int col = 0; col <= amount;...
[ "0.76016885", "0.6960923", "0.6839422", "0.65233827", "0.6510746", "0.64917934", "0.6351347", "0.6341349", "0.6277804", "0.62647665", "0.6240111", "0.6193214", "0.61823004", "0.6134764", "0.6038823", "0.6029011", "0.59598017", "0.5942756", "0.5905649", "0.58820355", "0.586933...
0.6779888
3
===== Approach 2. Time = O(n amount) 19ms Base case: dp[n][0] = 0, dp[n][1...m] = inf or amount Induction rule: dp[i][j] = min(dp[i+1][j], dp[icoins[j]] + 1)
public int coinChange(int[] coins, int amount) { int max = amount + 1; int[] dp = new int[amount + 1]; Arrays.fill(dp, max); dp[0] = 0; for (int i = 1; i <= amount; i++) { for (int j = 0; j < coins.length; j++) { if (coins[j] <= i) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void dp() {\n\t\tm[0] = 0;\n\t\tk[0] = 0;\n\n\t\t// base case 1:for 1 cent we need give 1 cent\n\t\tm[1] = 1;\n\t\tk[1] = 1;\n\n\t\tfor (int i = 2; i <= n; i++) {\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tint sel = -1;\n\t\t\tfor (int j = 0; j < sd; j++) {\n\t\t\t\tint a = d[j];\n\t\t\t\tif (a > i)...
[ "0.7296177", "0.7092086", "0.6743158", "0.6587574", "0.6523377", "0.6326071", "0.63230896", "0.6307224", "0.63054305", "0.62463504", "0.61798716", "0.6175626", "0.6174754", "0.6141769", "0.6113799", "0.6099428", "0.6092939", "0.60869193", "0.6080007", "0.6026346", "0.6021195"...
0.0
-1
=========== Method 2: DP Top down ============ 32ms
public int coinChange(int[] coins, int amount) { if (amount < 1) return 0; return helper(coins, amount, new int[amount + 1]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void PutTopDown()\n\t{\n\t\tif(isStateTop)\n\t\t{\n\t\t\tSystem.out.println(\"Putting top down\");\n\t\t\tisStateTop=false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Top is already down\");\n\t\t}\n\t}", "public void Down(){\r\n \r\n if(By>0 && By<900){\r\n \r\n ...
[ "0.64376426", "0.6082887", "0.58246195", "0.5762856", "0.5760242", "0.57246053", "0.5649738", "0.5600869", "0.5510175", "0.54826653", "0.5370316", "0.5348609", "0.5297236", "0.52877194", "0.52442855", "0.5234227", "0.5220881", "0.52087367", "0.51822895", "0.51706135", "0.5140...
0.0
-1
Finding Nth Node from End
public int nNodefromEnd(int n) { Node temp1=head; Node temp2=head; if(head==null) { System.out.println("Empty List"); } int i=0; while(temp1!=null && i<n) { temp1=temp1.next; i++; } while(temp1!=null) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Node getNth(int index) \n { \n int currIndex = 0;\n Node currNode = this.head.next;\n while(currIndex < index)\n {\n currNode = currNode.getNext();\n currIndex++;\n }\n return currNode;\n }", "public static Node findNthFromEnd(Node head, int n) {\n\t\t\n\t\t//use 2 pointers\n ...
[ "0.7092252", "0.69912755", "0.6919013", "0.6725684", "0.67187184", "0.6589374", "0.6564621", "0.6484838", "0.6458707", "0.6434477", "0.63920873", "0.6388564", "0.6295404", "0.6249552", "0.62335724", "0.62075114", "0.6201663", "0.619101", "0.617347", "0.6141421", "0.61396664",...
0.6015422
28
getFragmentManager().popBackStackImmediate(); AppCompatActivity activity = (AppCompatActivity)getContext(); popBackStack(); Fragment myFragment = new GunType(); getSupportFragmentManager().beginTransaction().replace(R.id.callfrag, myFragment).addToBackStack("old").commit();
public static void onBackPressed() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n if (v == backclick){\n getFragmentManager().popBackStack();\n\n }\n\nelse if(v == improvelisting){\n\n\n Fragment fr = new Improvelisting();\n FragmentChangeListener fc = (FragmentChangeListener) getActivity();\n ...
[ "0.79266757", "0.77944434", "0.77667606", "0.75143844", "0.73792624", "0.73405683", "0.7208363", "0.716867", "0.7139277", "0.7133486", "0.70905995", "0.7067123", "0.7061135", "0.7040306", "0.6990355", "0.6981675", "0.6980972", "0.6969796", "0.6955737", "0.69324076", "0.69188"...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { view = inflater.inflate(R.layout.company_activity_profile, container, false); b3 = getArguments(); username = b3.getString("username"); myRef = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
This method is called once with the initial value and again whenever data at this location is updated.
@Override public void onDataChange(DataSnapshot dataSnapshot) { value = dataSnapshot; // Toast.makeText(getActivity()," loading",Toast.LENGTH_LONG ).show(); try { companyName.setText(value.child("companyName").getValue().toString()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}", "public void initialize() {\r\n\t\tsetValue(initialValue);\r\n\t}", "private void onChange() {\n startTime = -1L;\n endTime = -1L;\n minLat = Double.NaN;\n maxLat = Double.NaN;\n minLon = Double.NaN;\n maxLon = Double.NaN;\n...
[ "0.68561786", "0.66544884", "0.64456207", "0.64046144", "0.62928224", "0.6258271", "0.62507087", "0.62487507", "0.6216648", "0.6216648", "0.6216648", "0.61928713", "0.6189378", "0.6162831", "0.6159383", "0.6159383", "0.61488473", "0.61449325", "0.6142972", "0.6118543", "0.608...
0.0
-1
Failed to read value
@Override public void onCancelled(DatabaseError error) { Log.w(TAG, "Failed to read value.", error.toException()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean shouldReadValue();", "Object readValue();", "private @NotNull ErrorValue finishReadingError()\n throws IOException, JsonFormatException {\n stepOver(JsonToken.VALUE_NUMBER_INT, \"integer value\");\n int errorCode;\n try { errorCode = currentValueAsInt(); } catch (JsonParseException ignore...
[ "0.65218383", "0.6442705", "0.6258159", "0.6077522", "0.60265213", "0.59383893", "0.59274745", "0.58974475", "0.58921486", "0.5891042", "0.58214223", "0.58127886", "0.58127886", "0.58089095", "0.5798501", "0.5798035", "0.57758427", "0.57733274", "0.57357085", "0.5727801", "0....
0.5678387
40
It negates the above operation using un removed connections from above operation.
public void unCover() { linkLR(); DataNode tmp = this.U; while (tmp != this) { //select each row and go through all the left nodes and link from respective columns. DataNode l = tmp.L; while (l!= tmp) { l.linkUD(); l.C.count++; l = l.L; } tmp = tmp.U; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeNoMoreExistingOriginalNodes() {\n for (Node mirrorNode : mirrorGraph.nodes()) {\n if (!isPartOfMirrorEdge(mirrorNode) && !originalGraph.has(mirrorNode)) {\n mirrorGraph.remove(mirrorNode);\n }\n }\n }", "private void negateOclIsOps(PlainGra...
[ "0.631584", "0.6290583", "0.61720437", "0.60698724", "0.5908322", "0.58778495", "0.5863318", "0.5822206", "0.5821843", "0.5771766", "0.5742365", "0.57294333", "0.5728524", "0.57205194", "0.57150304", "0.57146364", "0.5639421", "0.56059927", "0.5600408", "0.55919147", "0.55854...
0.0
-1
initialize the minibatch offsets
private void initializeOffsets () { exampleStartOffsets.clear(); int window = exampleLength + predictLength; for (int i = 0; i < train.size() - window; i++) { exampleStartOffsets.add(i); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInitalOffset(double offset){\n \tmodule.forEach(m -> m.setInitialOffset(offset));\n }", "protected void initialize() {\r\n x = 0;\r\n y = 0;\r\n driveTrain.reInit();\r\n }", "private void initializeLandmarks()\n\t{\n\t\t// Do nothing if not set\n\t\tif (startingMini...
[ "0.654323", "0.5862477", "0.5823831", "0.5787613", "0.577727", "0.57298535", "0.57057583", "0.5698888", "0.56777203", "0.5675548", "0.56625223", "0.5607016", "0.55837816", "0.5574618", "0.5573244", "0.55688477", "0.55592245", "0.55206007", "0.54966164", "0.54935485", "0.54932...
0.71787626
0
Generer le dataset from un ensemble de point
public List<Pair<INDArray, INDArray>> generateTestDataSet (List<Point> stockDataList) { int window = exampleLength + predictLength; List<Pair<INDArray, INDArray>> test = new ArrayList<Pair<INDArray, INDArray>>(); for (int i = 0; i < stockDataList.size() - window; i++) { INDArray input = Nd4j.create...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static List<Point> createConvergingDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 400);\r\n add(data, 5, 700);\r\n add(data, 10, 900);\r\n add(data, 15, 1000);\r\n add(data, 20, 1050);\r\n add(data, 25, 1060);\r\n add(data...
[ "0.68008655", "0.6072471", "0.6042459", "0.58205485", "0.58060014", "0.57804674", "0.5748976", "0.5733188", "0.573076", "0.5717099", "0.5678822", "0.56382686", "0.5532473", "0.5532", "0.5531803", "0.55216694", "0.5498743", "0.5489193", "0.54604924", "0.5456492", "0.54408014",...
0.5245269
40
Set the properties used to create the RuleAgent. Check the Drools manual for the valid properties; the key of the keyvaluepair is the property name, the value the value.
public void setRuleAgentProperties(KeyValuePairSet kvps) { ruleAgentProperties = kvps; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProperties(Properties properties);", "@Override\r\n\tpublic void setProperties(Properties properties) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void setProperties(Properties properties) \r\n\t{\n\t}", "public void setProperty(Properties properties) {\r\n this.properties = properties;\r\n ...
[ "0.6482077", "0.6479002", "0.6447634", "0.63462436", "0.6341576", "0.62317175", "0.62083924", "0.61611027", "0.6108046", "0.6069529", "0.60320014", "0.6026275", "0.6009555", "0.59966034", "0.5990971", "0.5967282", "0.59120727", "0.59021133", "0.58558816", "0.5826785", "0.5744...
0.7720098
0
Specify the listener for handling Agent lifecycle events.
public void setAgentEventListener(AgentEventListener ael) { agentEventListener = ael; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface AgentShutDownListener {\n\t\t/**\n\t\t * AgentShutdown listening method.\n\t\t */\n\t\tvoid shutdownAgent();\n\t}", "@Override\n\tpublic void addLifecycleListener(LifecycleListener listener) {\n\t\tlifecycle.addLifecycleListener(listener);\n\t}", "public interface AgentlessInstallerListener {\...
[ "0.6427109", "0.63068986", "0.61987644", "0.61219335", "0.6084458", "0.6047959", "0.6030819", "0.6025448", "0.6025448", "0.6012958", "0.60021746", "0.59761727", "0.59672713", "0.59207547", "0.58847237", "0.587644", "0.5870445", "0.58697474", "0.5861156", "0.58531", "0.5839292...
0.6501716
0
MST will not create loops, this will
private void supplementMST(){ List<Village> noOutRoads = getNoOutRoadVillages(); List<Village> noInRoads = getNoInRoadVillages(); for(Village v: noOutRoads){ Village closestVillage = findClosestVillageTo(v,noInRoads); noInRoads.remove(closestVillage); new Road(v,closestVillage); } for(Village v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Loop createLoop();", "private static void task1111(int nUMS, SplayTree<Integer> j, GenerateInt generateInt) {\n\t\tlong start = System.nanoTime();\n\t System.out.println( \"Fill in the table...SPLAY TREE\" );\n\t int count=0;\n\t\tfor( int z = 1; z <= nUMS; z++)\n\t\t{\n\t\t\t \t\t \n\t\t\tj.insert...
[ "0.6058858", "0.59093153", "0.59056336", "0.59045994", "0.58642817", "0.58451456", "0.5837942", "0.5777387", "0.5760709", "0.5745271", "0.5660529", "0.56535935", "0.5644554", "0.5640298", "0.56391525", "0.5629283", "0.56183493", "0.55973226", "0.5576972", "0.5567588", "0.5567...
0.5400835
45
TODO Autogenerated method stub
protected void show(JPanel cardPanel2, String string) { }
{ "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
We check permission to know if they are granted
private void checkPermissions(){ if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this,Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED){ A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }", "private boolean permisos() {\n ...
[ "0.81211346", "0.79945993", "0.78899664", "0.7822918", "0.7802339", "0.779783", "0.7740955", "0.77274066", "0.7706828", "0.7702695", "0.7678095", "0.766236", "0.76292276", "0.76258886", "0.7580487", "0.75791895", "0.7548371", "0.7532175", "0.74950564", "0.7478986", "0.7450744...
0.7234759
54
add request mapping for leaders
@GetMapping("/leaders") public String showLeaders() { return "leaders"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void mapContext(ManagedPlugin managedPlugin) {\n RequestMappingHandlerMapping mapper = new RequestMappingHandlerMapping();\n mapper.setApplicationContext(managedPlugin.getPluginContext());\n mapper.afterPropertiesSet();\n this.handlerMappings.add(mapper);\n this.pluginMap...
[ "0.5697534", "0.5604975", "0.5530659", "0.5516496", "0.5421142", "0.53704643", "0.5360368", "0.53265136", "0.5262183", "0.52511436", "0.5244428", "0.5215254", "0.5198757", "0.519676", "0.51643974", "0.5159357", "0.5142064", "0.51175416", "0.50770664", "0.5049754", "0.50461996...
0.50624627
19
Created by Yann MANCEL on 02/05/2019. Name of the project: NetApp Name of the package: com.mancel.yann.netapp.model
public interface GitHubService { // Retrofit @GET("users/{username}/following") Call<List<GitHubUser>> getFollowing(@Path("username") String username); // Retrofit + ReactiveX @GET("users/{username}/following") Observable<List<GitHubUser>> getFollowingWithReactiveX(@Path("username") String use...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String deploymentModel();", "ComponentmodelPackage getComponentmodelPackage();", "private void setupModel() {\n\n //Chooses which model gets prepared\n switch (id) {\n case 2:\n singlePackage = new Node();\n activeNode = singlePackage;\n\n /...
[ "0.60670763", "0.59671116", "0.5919569", "0.58928293", "0.58000207", "0.57741606", "0.577205", "0.57491034", "0.57094353", "0.56330955", "0.56295156", "0.56224346", "0.56018573", "0.55804384", "0.5578008", "0.55693805", "0.5554002", "0.55420274", "0.55331546", "0.5502256", "0...
0.0
-1
Construtor da classe RepositorioMicromedicaoHBM
private RepositorioAtendimentoPublicoHBM() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private RepositorioOrdemServicoHBM() {\n\n\t}", "public RepositorioTransacaoHBM() {\n\n\t}", "public FiltroMicrorregiao() {\r\n }", "public EmoticonBO()\n {}", "public LocalResidenciaColaborador() {\n //ORM\n }", "public BoletajeResource() {\n }", "public MARealEstateBuildingVORowImp...
[ "0.73617655", "0.73604065", "0.6656702", "0.62645215", "0.6153025", "0.60340464", "0.6022172", "0.60047865", "0.6003811", "0.596246", "0.59265995", "0.59067994", "0.5903069", "0.5898312", "0.5891714", "0.5886345", "0.58777136", "0.5870922", "0.5856688", "0.5855287", "0.585072...
0.7202609
2
A unique identifier for determining the EscidocReference id.
String getReferenceType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getReferenceId();", "public EI getHealthDocumentReferenceIdentifier() { \r\n\t\tEI retVal = this.getTypedField(19, 0);\r\n\t\treturn retVal;\r\n }", "public String getReferenceId() {\n return refid;\n }", "public String generateReferenceId(){\n String lastSequenceNumber = databaseAcce...
[ "0.76199025", "0.73750883", "0.7197252", "0.7135674", "0.71314603", "0.7055629", "0.6988972", "0.6961276", "0.691167", "0.6876198", "0.6798716", "0.67732704", "0.6767456", "0.6754755", "0.67315084", "0.6712309", "0.66754514", "0.66640186", "0.66622466", "0.6635646", "0.657860...
0.0
-1
Metodo constructor que crea DAORestaurantes post: Crea la instancia del DAO e inicializa el Arraylist de recursos
public DAOPedidoMesa() { recursos = new ArrayList<Object>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DAOCliente() {\n\t\trecursos = new ArrayList<Object>();\n\t}", "public RAMContactoDAO() {\r\n /*contacto.add(c1);\r\n contacto.add(c2);\r\n contacto.add(c3);\r\n contacto.add(c4);*/\r\n }", "public ArrayList<DataRestaurante> listarRestaurantes();", "public DescritoresDAO...
[ "0.66434294", "0.64725894", "0.6408097", "0.62390417", "0.6123823", "0.6098255", "0.6080577", "0.606137", "0.6042103", "0.60186344", "0.5978237", "0.5944939", "0.5886319", "0.5870413", "0.5846259", "0.5823064", "0.5820057", "0.5782896", "0.57614475", "0.57288504", "0.57287735...
0.0
-1
Metodo que cierra todos los recursos que estan enel arreglo de recursos post: Todos los recurso del arreglo de recursos han sido cerrados
public void cerrarRecursos() { for(Object ob : recursos){ if(ob instanceof PreparedStatement) try { ((PreparedStatement) ob).close(); } catch (Exception ex) { ex.printStackTrace(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cerrarRecursos() {\r\n\t\tfor(Object ob : recursos){\r\n\t\t\tif(ob instanceof PreparedStatement)\r\n\t\t\t\ttry {\r\n\t\t\t\t\t((PreparedStatement) ob).close();\r\n\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "public void cerrarRecursos() {\r\n\t...
[ "0.5792212", "0.5792212", "0.5370625", "0.5235582", "0.51727796", "0.5143826", "0.5036137", "0.5023762", "0.50203824", "0.5008422", "0.5003969", "0.48420054", "0.4832751", "0.47218326", "0.4719254", "0.47165683", "0.46881592", "0.4672084", "0.46715984", "0.46617356", "0.46486...
0.5757325
4
char[2] turns, i, j. max two turns. l then r. r then l. l. r. none.
public static void main(String args[]) { N = in.nextInt(); M = in.nextInt(); board = new char[N][M]; for (int i = 0; i < N; i++) { board[i] = in.next().toCharArray(); } int tot = 0; for (int i = 1; i < N - 1; i++) { tot += f(new char[2], 0,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int lps(char seq[], int i, int j) {\n // Base Case 1: If there is only 1 character\n if (i == j) {\n return 1;\n }\n\n // Base Case 2: If there are only 2 characters and both are same\n if (seq[i] == seq[j] && i + 1 == j) {\n return 2;\n }\n\n ...
[ "0.6252894", "0.61545175", "0.60352945", "0.59570175", "0.58240074", "0.5790196", "0.5644568", "0.5637573", "0.56341434", "0.5630953", "0.560981", "0.55792034", "0.55764234", "0.55583847", "0.55440915", "0.55405515", "0.5511918", "0.5503449", "0.54969877", "0.54946446", "0.54...
0.0
-1
out.println(r + " " + c);
static int f(char[] turns, int nturns, int r, int c, int dr, int dc, int cnt) { if (!range(r, c)) return 0; if (board[r][c] != '.') return 0; int ntouch = 0; if (r == 0) ntouch++; if (r == N - 1) ntouch++; if (c == 0) ntouch++; if (c == M - 1) ntouch++; if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void outputAnswer(double c){\n\t\tprint(\"c = \" + c);\n\t}", "public void print() {\r\n System.out.println(c() + \"(\" + x + \", \" + y + \")\");\r\n }", "private String done(int r, int c) {\n\t\tset(r, c, -1);\n\t\treturn r + \"\" + c;\n\t}", "public String toString(){\n\t\treturn \"The r...
[ "0.64347446", "0.627917", "0.6010352", "0.599219", "0.5901625", "0.5812555", "0.57504845", "0.57322496", "0.5709263", "0.56687397", "0.55749965", "0.5569422", "0.55660105", "0.5562874", "0.55425286", "0.5537112", "0.5536286", "0.5527232", "0.55200493", "0.55071425", "0.548615...
0.0
-1
Auto inject params from bundle.
@SuppressWarnings("unchecked") static void injectParams(Object obj) { if (obj instanceof Activity || obj instanceof Fragment) { String key = obj.getClass().getCanonicalName(); Class<ParamInjector> clz; if (!injectors.containsKey(key)) { try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void readArguments(Bundle bundle) {\n\n }", "public interface InitializationDelegates {\n void setParameters(Bundle parameters);\n}", "@Override\r\n public void load() throws ParamContextException {\n\r\n }", "private void initArguments() {\n Bundle bundle = getArguments();\n\n ...
[ "0.62360907", "0.5977564", "0.5851829", "0.58382744", "0.5829662", "0.580919", "0.57801765", "0.5764445", "0.57349175", "0.5721032", "0.5690542", "0.5643386", "0.5636", "0.5542123", "0.5512853", "0.550007", "0.54808104", "0.5476618", "0.54622424", "0.5457506", "0.543981", "...
0.6146754
1
execCommand(( Command ) cbDo.getSelectedItem() );
protected void startProcess() { System.out.println("Process started"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent evt) {\n JComboBox comboBox = (JComboBox)evt.getSource();\n currentCommand = (String)comboBox.getSelectedItem();\n }", "int getActionCommand();", "java.lang.String getCommand();", "public void actionPerformed(ActionEvent ae) {\n rb_selection = ae.getActionC...
[ "0.6427392", "0.63020825", "0.6128005", "0.61117214", "0.60989004", "0.60306096", "0.5961672", "0.5939769", "0.58878654", "0.58804977", "0.58746004", "0.58700484", "0.5792576", "0.57797396", "0.57580686", "0.57525456", "0.57126915", "0.57061815", "0.56875", "0.566306", "0.565...
0.0
-1
Created by Terry Date : 2016/3/4 0004.
public interface IAbsListView { void setOnLoadMoreListener(IonLoadMoreListener onLoadMoreListener); void notifyDataSetChanged(int positionStart, int itemSize) ; void setPagesize(int curPagesize); void setMyAdapter(ListAdapter madapter) ; void setRecyclerAdapter(RecyclerView.Adapter ma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo4359a() {\n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "public void mo38117a() {\n }", "public void mo21877s() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }",...
[ "0.6001666", "0.5998783", "0.5946969", "0.59276885", "0.5851073", "0.5801996", "0.5801996", "0.5801996", "0.5801996", "0.5801996", "0.5801996", "0.5801996", "0.57865244", "0.57738805", "0.5761994", "0.5760851", "0.5757238", "0.5753549", "0.575061", "0.5719993", "0.5706539", ...
0.0
-1
public void set onRefreshComplete
void reset() ;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onRefresh() {\n }", "@Override\n public void onRefresh() {\n }", "@Override\n public void onRefresh() {\n }", "void onRefresh() {\n\t}", "@Override\n\tpublic void onRefresh() {\n\n\t}", "@Override\r\n\t\t\tpublic void onRefresh() {\n\r\n\t\t\t}", "@Override\r\...
[ "0.7974567", "0.78326887", "0.7797728", "0.7727301", "0.7691431", "0.76776296", "0.7627865", "0.7544588", "0.7544588", "0.7484636", "0.7456588", "0.7364877", "0.7323521", "0.725514", "0.72260576", "0.7216792", "0.72160625", "0.7164692", "0.71480775", "0.70797414", "0.7070774"...
0.0
-1
/ renamed from: com.introvd.template.explorer.music.item.b$a
public interface C7300a { void axq(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 51: */ {\r\n/* 52:67 */ return ItemList.ap;\r\n/* 53: */ }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "@Override // see item.java\n\tpublic void useItem() {\n\n\t}", "Collection<B> getBackground...
[ "0.60332644", "0.56951606", "0.56118107", "0.54585326", "0.54502195", "0.5417991", "0.53924793", "0.5371613", "0.5365495", "0.5356194", "0.5336863", "0.53322864", "0.5312863", "0.5305387", "0.52872556", "0.52807456", "0.5264835", "0.5249755", "0.5242382", "0.5218052", "0.5212...
0.0
-1
/ renamed from: a
public void mo31899a(C7300a aVar) { this.dBv = aVar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ access modifiers changed from: protected
public int getLayoutId() { return R.layout.list_item_music_local_scan; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: protected
public void onBindView(BaseHolder baseHolder, int i) { baseHolder.findViewById(R.id.scan_container).setOnClickListener(new OnClickListener() { public void onClick(View view) { if (C7297b.this.getActivity() != null) { VivaRouter.getRouterBuilder(FileExplorerParams....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.73744047", "0.7040692", "0.692117", "0.69076973", "0.6844561", "0.68277687", "0.68048066", "0.6581614", "0.653803", "0.6500888", "0.64905626", "0.64905626", "0.6471316", "0.64376974", "0.64308083", "0.64308083", "0.642771", "0.6424499", "0.6419003", "0.64083034", "0.640539...
0.0
-1
So we can hide exception handling.
private Constructor<DefaultSimpleInterface> getConstructor() { try { return DefaultSimpleInterface.class.getConstructor(); } catch (NoSuchMethodException e) { e.printStackTrace(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void doException() {\n\r\n\t}", "protected boolean allowInExceptionThrowers() {\n return true;\n }", "@Override\n\tpublic boolean handlesThrowable() {\n\t\treturn false;\n\t}", "@Override\n protected boolean shouldSendThrowException() {\n return false;\n }", "Boolean ...
[ "0.69662946", "0.6921727", "0.6914466", "0.6887818", "0.67787665", "0.6696086", "0.6611176", "0.65875816", "0.6572375", "0.64898765", "0.6446221", "0.6354924", "0.6256721", "0.6229735", "0.6229735", "0.6229735", "0.6229735", "0.6229735", "0.62259144", "0.62006587", "0.6190184...
0.0
-1
/ I want to create a static method called giveMeMyName it returns your name as a result it has no parameter
public static String giveMeMyName(){ return "Okan"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String simpleName();", "Name getName();", "String getName( String name );", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "St...
[ "0.79703987", "0.76521504", "0.749551", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.7...
0.8580805
0
/ the whole pupose of writing a method that return a value so we can save the result after calling the method and use it somewhere else / Create a static method that double the value of a number it accepts one int parameter and return doubled value of that number
public static int doubleTheNum(int num){ //System.out.println("I'm going to double the value of "+num); num*=2; return num; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getDoubleValue2();", "double getDoubleValue1();", "public double utility();", "public double doubleValue();", "public abstract double get(int number);", "double getDoubleValue3();", "double getBasedOnValue();", "public abstract double compute(double value);", "double doubleTheValue(doubl...
[ "0.7386488", "0.72867936", "0.7286578", "0.7166724", "0.71322507", "0.71260536", "0.7049915", "0.70462203", "0.7012522", "0.6928563", "0.6928563", "0.6928563", "0.6878865", "0.6876338", "0.675604", "0.6678685", "0.6677013", "0.66523325", "0.66162467", "0.65850556", "0.6578652...
0.70981395
6
No further instances allowed
private Fdtsucker() { super("fdtsucker"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isAllowed(ProcessInstance instance) {\r\n return true; // xoxox\r\n }", "private boolean isEmpty(){\n return (numInstances() == 0);\n }", "@Override\n public boolean isInstantiable() {\n return false;\n }", "public Instances notCoveredBy(Instances data) ...
[ "0.67594016", "0.6251031", "0.59999865", "0.5938237", "0.58646846", "0.585787", "0.5810515", "0.57986826", "0.5791139", "0.5781252", "0.5724278", "0.56935054", "0.56888044", "0.5685522", "0.56732947", "0.5647899", "0.5631567", "0.5616412", "0.561355", "0.55945885", "0.5539294...
0.0
-1
OnClick sur connexion serveur
public void onClickConnect(View v) { try{sonBoxeur.getListeSons().get(0).stop();}catch (Exception e){} if (mSocket.getPseudo() == null) { Intent activity = new Intent(this, Connexion.class); try{sonBulle.play();}catch(Exception e){} startActivity(activity); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n HashMap<String, String> params = new HashMap<String, String>();\n params.put(\"username\", txt_id.getText().toString());\n params.put(\"password\", txt_mdp.getText().toString());\n params.put(\"registrationid\", getRegistrationId());\n\n ...
[ "0.73695636", "0.7238745", "0.7149707", "0.70598173", "0.700493", "0.6978328", "0.6925204", "0.67796105", "0.667654", "0.66582996", "0.66189384", "0.65721864", "0.6558663", "0.6539925", "0.65388775", "0.65258586", "0.65015996", "0.6481537", "0.6447356", "0.6438969", "0.641275...
0.7105896
3
User cancelled the dialog
public void onClick(DialogInterface dialog, int id) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cancelDialog() {dispose();}", "public void cancel() { Common.exitWindow(cancelBtn); }", "@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t...
[ "0.84252524", "0.81816214", "0.81397384", "0.80922073", "0.7927849", "0.79160905", "0.78777075", "0.78763556", "0.7856008", "0.7849157", "0.7848072", "0.7838308", "0.7804249", "0.77992254", "0.7796975", "0.7796975", "0.77921396", "0.7792013", "0.77904165", "0.77860636", "0.77...
0.0
-1
/ compiled from: CustomManager / renamed from: com.baidu.che.codriver.sdk.a.l$a
public interface C2603a { /* renamed from: a */ String mo1889a(String str, String str2, String str3, String str4); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static /* synthetic */ android.os.Handler m19-get1(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.-get1(android.telecom.ConnectionServiceAdapterServant...
[ "0.58594716", "0.5817236", "0.5815296", "0.57950145", "0.57623065", "0.5713958", "0.5711522", "0.5694835", "0.5692683", "0.56828374", "0.5676553", "0.5657032", "0.5646625", "0.5646486", "0.5643729", "0.5624897", "0.5616175", "0.56160384", "0.56106645", "0.5609593", "0.5580917...
0.0
-1
/ renamed from: a
String mo1889a(String str, String str2, String str3, String str4);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.6249669", "0.6242452", "0.61399835", "0.6117525", "0.61137056", "0.6089649", "0.6046804", "0.6024678", "0.6020427", "0.5975322", "0.59474325", "0.5912173", "0.5883731", "0.58788097", "0.58703065", "0.58670723", "0.5864566", "0.58566767", "0.5830755", "0.58286554", "0.58273...
0.0
-1
/ compiled from: CustomManager / renamed from: com.baidu.che.codriver.sdk.a.l$b
public interface C2604b { /* renamed from: a */ void mo1886a(String str, String str2); /* renamed from: a */ boolean mo1887a(String str); /* renamed from: b */ String mo1888b(String str, String str2, String str3, String str4); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static /* synthetic */ android.os.Handler m19-get1(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.-get1(android.telecom.ConnectionServiceAdapterServant...
[ "0.5917358", "0.5889018", "0.5875337", "0.58647555", "0.5853213", "0.58523786", "0.58367246", "0.5819673", "0.5799411", "0.5764549", "0.57496786", "0.5739321", "0.57352763", "0.5730434", "0.5729237", "0.5722058", "0.57105666", "0.57093734", "0.56956404", "0.5691314", "0.56902...
0.0
-1
/ renamed from: a
void mo1886a(String str, String str2);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
boolean mo1887a(String str);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
String mo1888b(String str, String str2, String str3, String str4);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64569855", "0.6283282", "0.62531567", "0.6252121", "0.6245442", "0.621636", "0.619463", "0.6194139", "0.6165022", "0.6141199", "0.6100174", "0.60973275", "0.607799", "0.6002063", "0.5998536", "0.5973506", "0.5973506", "0.59066874", "0.59057605", "0.5892315", "0.5887388", ...
0.0
-1
/ renamed from: a
public static C2606l m9828a() { return C2605c.f8614a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public void m9830a(C2604b commandSender) { this.f8626l = commandSender; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public String m9829a(String cmdType, String param, String data) { if (this.f8626l != null) { this.f8626l.mo1888b(C2716c.m10141a().getPackageName(), cmdType, param, data); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public void m9832a(String pkg, String cmdType, String param, String data) { if (this.f8627m.get(cmdType) != null && this.f8626l != null) { ((C2603a) this.f8627m.get(cmdType)).mo1889a(pkg, cmdType, param, data); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.6249669", "0.6242452", "0.61399835", "0.6117525", "0.61137056", "0.6089649", "0.6046804", "0.6024678", "0.6020427", "0.5975322", "0.59474325", "0.5912173", "0.5883731", "0.58788097", "0.58703065", "0.58670723", "0.5864566", "0.58566767", "0.5830755", "0.58286554", "0.58273...
0.0
-1
/ renamed from: a
public void m9831a(String pkg, String cmdType) { if (this.f8626l != null) { this.f8626l.mo1886a(pkg, cmdType); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
TODO Autogenerated method stub
@Override public boolean passiveEffect(Character target) { return false; }
{ "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
Created by IntelliJ IDEA. User: Brad Buchsbaum Date: Feb 25, 2007 Time: 5:25:38 PM To change this template use File | Settings | File Templates.
public interface BrainFlowProjectListener { public void modelAdded(BrainFlowProjectEvent event); public void modelRemoved(BrainFlowProjectEvent event); public void intervalAdded(BrainFlowProjectEvent event); public void contentsChanged(BrainFlowProjectEvent event); public void intervalRemoved(B...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public void mo21785J() {\n }", "public void mo38117a() {\n }", "public void mo21792Q() {\n }", "public void m23075a() {\n }", "public void mo97908d() {\n }", "private Solution() {\n /**.\n * { constructor }\n */\n }", "public v...
[ "0.5945517", "0.5920682", "0.5854214", "0.5831035", "0.58085907", "0.57841766", "0.57800215", "0.5779218", "0.5771145", "0.57581675", "0.5733346", "0.5717532", "0.57043666", "0.5702422", "0.56897885", "0.56871027", "0.56871027", "0.5684129", "0.56729716", "0.5668458", "0.5665...
0.0
-1
TEST ABOUT RECYCLERVIEW ITEM TRANSFORMER
@Test public void testGoodSectionLocalisationWithRecyclerViewItemTransformer(){ RecyclerViewItemTransformer recyclerViewItemTransformer = new RecyclerViewItemTransformer(); String string = "AAA Rue machin chose, 69000 Lyon, France"; String change = recyclerViewItemTransformer.getShortAdress...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void viewItem() {\n\t\t\n\t}", "protected abstract Item createTestItem3();", "protected abstract Item createTestItem1();", "protected abstract View getResultItemView(final RepeatResultItem item);", "protected abstract Item createTestItem2();", "@Test\n public void seeInfoAboutItemA...
[ "0.60910815", "0.60685545", "0.58995795", "0.5882861", "0.58334297", "0.5830194", "0.56861603", "0.558316", "0.5555562", "0.5524411", "0.54817635", "0.54498416", "0.5449743", "0.5435956", "0.5427642", "0.54138255", "0.5409509", "0.5397624", "0.53968084", "0.5395452", "0.53953...
0.565766
7
Creates new form merits
public merits() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "FORM createFORM();", "public abstract void addEditorForm();", "public abstract void addSelectorForm();", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "@Override public SnpAsso...
[ "0.6048309", "0.5702663", "0.56618047", "0.53282046", "0.53083545", "0.529948", "0.5268724", "0.52008194", "0.51964176", "0.518635", "0.50581443", "0.5057707", "0.5054142", "0.50462765", "0.5041847", "0.5019946", "0.49976707", "0.49964312", "0.49916437", "0.4976602", "0.49637...
0.6463908
0
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() { jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jRadioButton1 = ne...
{ "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.73201853", "0.7291607", "0.7291607", "0.7291607", "0.7285772", "0.7248832", "0.721371", "0.72083634", "0.71965843", "0.7190274", "0.71847606", "0.71592176", "0.71481156", "0.70935035", "0.70799935", "0.70570904", "0.6987588", "0.6977819", "0.69557554", "0.6953564", "0.6945...
0.0
-1
Returns the shared instance
public static synchronized SettingsStore getInstance() { if (instance == null) { instance = new SettingsStore(); } return instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Shared shared();", "public T getInstance() {\n return instance;\n }", "public static SingleObject getInstance(){\n return instance;\n }", "@Override\n public T getInstance() {\n return instance;\n }", "public static EnduserApi getSharedInstance() {\n if (EnduserApi.shared...
[ "0.7632382", "0.7592664", "0.7545918", "0.7495189", "0.74723595", "0.7447487", "0.7382395", "0.7339353", "0.7288101", "0.7265372", "0.7244134", "0.7227265", "0.7176469", "0.71117234", "0.70697963", "0.704939", "0.6979159", "0.6949296", "0.694791", "0.6945432", "0.6937742", ...
0.0
-1
Returns the current home directory where settings and property files can be stored.
public File getHome() { return homeDir; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getHomeDirectory() {\n\t\treturn System.getProperty(\"user.home\");\n\t}", "private static String\n\tgetDefaultPrefsDir()\n\t{\n\t\tString homeDir\t= System.getProperty( \"user.home\" );\n\t\tif ( homeDir == null )\n\t\t{\n\t\t\thomeDir\t= \".\";\n\t\t}\n\t\t\n\t\treturn( homeDir );\n\t}", ...
[ "0.8382781", "0.8316306", "0.79771596", "0.7849393", "0.77653074", "0.7760969", "0.7698669", "0.7650467", "0.7554375", "0.74806905", "0.7403694", "0.74029326", "0.7276697", "0.71622425", "0.7112055", "0.709669", "0.7094626", "0.7092498", "0.70779485", "0.70772856", "0.7033285...
0.7577323
8
Returns the current file where the system settings configuration is located.
public File getConfigFile() { return new File(homeDir, "tacos.config"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String getConfigFile() {\n\n final String sPath = getUserFolder();\n\n return sPath + File.separator + \"sextante.settings\";\n\n }", "public static File getSettingsfile() {\n return settingsfile;\n }", "public static String getCurrentPath() {\n File file = new File(...
[ "0.7766469", "0.7586891", "0.7428248", "0.72196263", "0.71316004", "0.69915175", "0.69513285", "0.693568", "0.6884157", "0.6880308", "0.6868851", "0.6862318", "0.68256646", "0.67671704", "0.67644185", "0.6759029", "0.6735652", "0.6732016", "0.6711465", "0.671079", "0.6709996"...
0.71536916
4
Reads and returns the content of the global system.properties file that is located in the classpath.
public Properties getSystemProperties() { InputStream in = null; Properties p = new Properties(); try { ExternalContext ext = FacesContext.getCurrentInstance().getExternalContext(); URL resource = ext.getResource("/WEB-INF/classes/system.properties"); if (resource == null) { logger.warn("No sy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Properties setup() {\n Properties props = System.getProperties();\n try {\n props.load(new FileInputStream(new File(\"src/config.properties\")));\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }\n return props...
[ "0.68793607", "0.6731312", "0.67280823", "0.67097926", "0.659015", "0.65699965", "0.65064275", "0.6454742", "0.64145905", "0.6378353", "0.6366962", "0.62660086", "0.6259395", "0.62532294", "0.62406176", "0.620556", "0.62018776", "0.6194697", "0.6168184", "0.6168184", "0.61502...
0.7388867
0
Initialize the store and set the directory
private void init() { // check system property if (System.getProperty(TACOS_HOME) != null) { File customHome = new File(System.getProperty(TACOS_HOME)); if (initHome(customHome)) { homeDir = customHome; logger.info("Using custom home directory ('" + homeDir + "')"); return; } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void initDirectories() {\n String storeName = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_META_DATA_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_FILEID_STORE_NAME\n + \".dat\";\n ...
[ "0.70955616", "0.70461756", "0.69087607", "0.68074816", "0.6806186", "0.6716839", "0.6515835", "0.6414436", "0.63418597", "0.6286174", "0.62853706", "0.60974944", "0.6061208", "0.59073025", "0.590705", "0.5892949", "0.5875399", "0.5866709", "0.5858626", "0.5842463", "0.583191...
0.61431444
11
Initializes the configuration files and ensures that they are existing
private void initFiles() { try { File file = getConfigFile(); if (!file.exists()) { XmlFile.write(file, new SystemSettings()); } } catch (Exception ex) { logger.error("Failed to initialize settings file", ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PostConstruct\n\tpublic void init() {\n\t\tif (!Files.isDirectory(Paths.get(configFilePath))) {\n\t\t\ttry {\n\t\t\t\tFiles.createDirectory(Paths.get(configFilePath));\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\"can't create the folder for the configuration\", e);\n\t\t\t}...
[ "0.7607269", "0.7505853", "0.7345551", "0.7073444", "0.70046175", "0.6975178", "0.6867736", "0.68555343", "0.68514854", "0.6746622", "0.67182076", "0.6647934", "0.66364413", "0.6633969", "0.65669644", "0.65635026", "0.65372324", "0.6526922", "0.6510001", "0.64966935", "0.6468...
0.80221933
0
Tries to initialize the given home directory
private boolean initHome(File file) { try { FileUtils.forceMkdir(file); return true; } catch (Exception ex) { logger.error("Failed to initialize home directory '" + file + "'", ex); return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init() {\r\n\t\t// check system property\r\n\t\tif (System.getProperty(TACOS_HOME) != null) {\r\n\t\t\tFile customHome = new File(System.getProperty(TACOS_HOME));\r\n\t\t\tif (initHome(customHome)) {\r\n\t\t\t\thomeDir = customHome;\r\n\t\t\t\tlogger.info(\"Using custom home directory ('\" + homeDir +...
[ "0.75515926", "0.7062096", "0.67676324", "0.64132154", "0.6408895", "0.6372536", "0.6357346", "0.62110144", "0.62032515", "0.6191156", "0.61525196", "0.61250865", "0.6079664", "0.5996414", "0.59393907", "0.58027077", "0.57982045", "0.5798147", "0.5795441", "0.5750526", "0.573...
0.7000045
2
This is the entry point method.
public void onModuleLoad() { InitComponents(); RootPanel.get("cbdt_app").add(apanel); apanel.add(stroke, buttonPanel.getAbsoluteLeft() + 22, buttonPanel.getAbsoluteTop() + 147 + 15); apanel.add(fill, buttonPanel.getAbsoluteLeft() + 7, buttonPanel.getAbsoluteTop() + 147); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Main() {\n\n super();\n }", "public static void main() {\n \n }", "public Main() {\n \n \n }", "public void run() {\n // The run method should be overridden by the subordinate class. Please\n // see the example applications provided for more details....
[ "0.6960738", "0.69552404", "0.66707826", "0.66208535", "0.6555327", "0.64776266", "0.64771515", "0.64659804", "0.64316505", "0.64081883", "0.6335417", "0.63307303", "0.63175744", "0.6270908", "0.6238488", "0.6237389", "0.6237389", "0.6235709", "0.6235709", "0.6235709", "0.623...
0.0
-1
Method that initializes all the variables and creates the html required for the color picker and so on.
private void InitComponents() { apanel = new AbsolutePanel(); FocusPanel focus = new FocusPanel(); DockPanel panel = new DockPanel(); lastPosition[0] = 0; lastPosition[1] = 0; isMovable = false; isTransformable = false; transformPoints = new VirtualGroup(); trans...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initComponents() {\n // Create the RGB and the HSB radio buttons.\n createRgbHsbButtons();\n\n \n \n ColorData initial = new ColorData(new RGB(255, 255, 255), 255);\n\n // Create the upper color wheel for the display.\n upperColorWheel = new ColorWheelC...
[ "0.72141093", "0.6989192", "0.6791711", "0.6656925", "0.6540011", "0.6411128", "0.63722664", "0.6352401", "0.6331949", "0.6318892", "0.630347", "0.63009334", "0.6295451", "0.62911224", "0.6262705", "0.6231302", "0.62261665", "0.62213427", "0.6220638", "0.62003374", "0.6198482...
0.0
-1
This method handles the mouse double click event on any graphic object and in the graphic canvas
public void mouseDblClicked(GraphicObject graphicObject, Event event) { /** if it's a polyline, then we close it's path and therefore finish it */ if(action.isPolyline() && (curr_obj != null)) { ((Path)this.curr_obj).closePath(); curr_obj = null; aux_obj = null; /** i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n \tpublic void mouseDoubleClicked(MouseEvent me) {\n \t}", "public abstract void mouseDoubleClicked(MouseDoubleClickedEvent event);", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "public void mouseDoubleClick(MouseEvent arg0) {\n \n \t\t\t\t\t}", "@Overr...
[ "0.77614444", "0.7745689", "0.7461063", "0.7426414", "0.739129", "0.73276025", "0.72682244", "0.7263206", "0.7263206", "0.7263206", "0.7263206", "0.7263206", "0.7263206", "0.7263206", "0.7263206", "0.7263206", "0.7263206", "0.72233146", "0.72098905", "0.7191666", "0.7154846",...
0.7710225
2
This method handles the mouse click event on any graphic object and in the graphic canvas
public void mouseClicked(GraphicObject graphicObject, Event event) { int x, y; /** if there's no graphic Object selected, we unSelect any other that was previously selected */ if(action.isSelect() && (graphicObject == null)) { if(curr_obj!= null) { this.unSelect(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mousePressed(GraphicObject graphicObject, Event event) {\n\t\tint x, y;\n\t\t\n\t\tx = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft();\n\t\ty = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); \n\t\t\n\t\tif(!action.isSelect() && !action.isPo...
[ "0.74732804", "0.74497664", "0.74071074", "0.73835874", "0.73835874", "0.737898", "0.7335429", "0.7335429", "0.7335429", "0.7335429", "0.7335429", "0.7335429", "0.7335429", "0.73289645", "0.73280174", "0.7325036", "0.73165625", "0.73108345", "0.73108345", "0.73108345", "0.730...
0.75608927
0
This method handles the mouse mouve event on any graphic object and in the graphic canvas. Mainly, this class is used to animate the object's creation so that the user can have an idea of the final object before it really creates it.
public void mouseMoved(GraphicObject graphicObject, Event event) { int x, y; x = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft(); y = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); if(action.isSelect()) { /** If the user clicked on...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mousePressed(GraphicObject graphicObject, Event event) {\n\t\tint x, y;\n\t\t\n\t\tx = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft();\n\t\ty = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); \n\t\t\n\t\tif(!action.isSelect() && !action.isPo...
[ "0.7269895", "0.69265735", "0.66071165", "0.64431304", "0.6339542", "0.6336566", "0.6266672", "0.62386733", "0.61424685", "0.6141091", "0.61323255", "0.6082468", "0.6077098", "0.6069731", "0.60442036", "0.6042745", "0.6032642", "0.6023541", "0.6019498", "0.6000119", "0.599781...
0.70367587
1
This method handles the mouse press event on any graphic object and in the graphic canvas. It's mainly used to start creating objects and also to select objects.
public void mousePressed(GraphicObject graphicObject, Event event) { int x, y; x = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft(); y = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); if(!action.isSelect() && !action.isPolyline() && !action.isT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mousePressed( MouseEvent e )\n {\n x = pressx = e.getX(); y = pressy = e.getY();\n \n Point p0 = new Point( x, y );\n Point p1 = new Point( pressx, pressy );\n \n if ( mode==0 ) { theShape = theLine = new Line( p0, p1 ); }\n else if ( mode==1 ) { theShape = the...
[ "0.6998825", "0.6986048", "0.6982065", "0.6818434", "0.6805678", "0.679771", "0.6791998", "0.6782852", "0.6782852", "0.6782852", "0.6776415", "0.67656404", "0.67656404", "0.6744512", "0.67384773", "0.67384773", "0.67384773", "0.67384773", "0.6736", "0.6732214", "0.6732214", ...
0.7962695
0
This method handles the mouse release event on any graphic object and in the graphic canvas
public void mouseReleased(GraphicObject graphicObject, Event event) { int x, y; x = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft(); y = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); /** If we were draing with the pencil, then we need ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onRelease(MouseEvent e, GraphicsContext g) {\n\n }", "@Override\n public void onRelease(MouseEvent e, GraphicsContext g) {\n }", "public void mouseReleased( MouseEvent event ){}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\r\n\t\tLOG.fine(\"Released...\");\r...
[ "0.78479636", "0.78093266", "0.7538433", "0.75380737", "0.75071955", "0.7470827", "0.7446981", "0.74442136", "0.74442136", "0.7430498", "0.74169046", "0.74117553", "0.7407655", "0.7404157", "0.7379455", "0.7379455", "0.7379455", "0.7375536", "0.7374988", "0.73721987", "0.7369...
0.7504341
5
Not used so far. It may be needed to increase usability on the application.
public void onKeyPress(Widget sender, char keyCode, int modifiers) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected void onFirstUse() {}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void...
[ "0.6257771", "0.6256365", "0.6194495", "0.60840255", "0.6059037", "0.6059037", "0.6059037", "0.6059037", "0.6059037", "0.6059037", "0.5909242", "0.58730245", "0.5872218", "0.5865715", "0.58225703", "0.5807149", "0.57776845", "0.57593006", "0.57593006", "0.5758051", "0.5696042...
0.0
-1
Not used so far. It may be needed to increase usability on the application.
public void onKeyUp(Widget sender, char keyCode, int modifiers) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected void onFirstUse() {}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void...
[ "0.6257771", "0.6256365", "0.6194495", "0.60840255", "0.6059037", "0.6059037", "0.6059037", "0.6059037", "0.6059037", "0.6059037", "0.5909242", "0.58730245", "0.5872218", "0.5865715", "0.58225703", "0.5807149", "0.57776845", "0.57593006", "0.57593006", "0.5758051", "0.5696042...
0.0
-1
This method handles all the button's click events from the gridShape and gridTransform buttons
public void onClick(Widget sender) { if(sender.equals(this.deleteButton)) { this.removeObject(); } else if(sender.equals(this.backButton)) { this.backObject(); } else if(sender.equals(this.frontButton)) { this.frontObject(); } else if(sender.equals(this.saveButton)) { this.saver.saveDocument(t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void handle(MouseEvent event) {\n Button sourceBt = (Button) event.getSource();\n int btColumn = minefieldGP.getColumnIndex(sourceBt);\n int btRow = minefieldGP.getRowIndex(sourceBt);\n ...
[ "0.67638177", "0.66435915", "0.6544238", "0.6523788", "0.63965297", "0.63494784", "0.6321969", "0.6181355", "0.6162226", "0.613592", "0.61337286", "0.61259407", "0.6109004", "0.61080974", "0.6104077", "0.6096456", "0.609522", "0.6082874", "0.60099095", "0.6008305", "0.6006256...
0.6087157
17
This method implements the onChange listener of the Opacity slider and the Text's ListBoxes
public void onChange(Widget sender) { /** if there was a change in opacity, we update the currentFillColor and the selected object if there's any. */ if (sender.equals(this.fillOpacity)) { int value = this.fillOpacity.getValue(); if (this.curr_obj != null) { final Color color = this.curr_obj.g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stateChanged(ChangeEvent e) {\r\n Object source = e.getSource();\r\n\r\n if (source instanceof JSlider) {\r\n JSlider slider = (JSlider) source;\r\n if (text != null) {\r\n text.setText(\"<html><font color=#FFFFFF>Volume: \"+slider.getValue()+\"</font>...
[ "0.6159254", "0.6087692", "0.6001775", "0.59751135", "0.5961454", "0.5888895", "0.58846974", "0.58836865", "0.5844212", "0.5826762", "0.5824922", "0.5819051", "0.5809965", "0.57813877", "0.57709473", "0.5761075", "0.57586205", "0.5739483", "0.57302505", "0.571656", "0.5712583...
0.6784419
0
This method creates a Popup to display the color chooser and the opacity slider
private void showPopupColorFill(final boolean isFill) { final PopupPanel popupColor = new PopupPanel(true); popupColor.addStyleName("color_Pop-up"); TabPanel tabPanel = new TabPanel(); VerticalPanel colPanel = new VerticalPanel(); colPanel.setSpacing(5); final ColorChooser colorChooser = ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ColorBox() {\r\n this.popup = new ColorPopup();\r\n setValue(\"#ffffff\");\r\n\r\n popup.addMessageHandler(m_color_event);\r\n addFocusHandler(new FocusHandler() {\r\n\r\n @Override\r\n public void onFocus(FocusEvent event) {\r\n popup.setHex(...
[ "0.6890137", "0.671593", "0.66717464", "0.6640203", "0.66035384", "0.655814", "0.6397021", "0.63306797", "0.6233938", "0.62206465", "0.62036586", "0.61620647", "0.6139012", "0.6056544", "0.6006327", "0.59869", "0.5975892", "0.5967215", "0.5933007", "0.5916475", "0.58920896", ...
0.59036183
20
This method adds a icon to the Grid given the grid, the position and the image
private Image addToGrid(Grid grid, int row, int col, String title, String icon) { Image button = new Image(icon); button.setTitle(title); button.setSize("34px", "34px"); grid.setWidget(row, col, button); button.addClickListener(this); return button; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addIcon(Direction dir, Color clr){\r\n\t\t \r\n\t\t Graphics2D g = bufferedImage.createGraphics();\r\n\t\t BufferedImage imgPiece;\r\n\t\t File fileImg = new File(\"src/main/java/data/smallfollower_0.png\");\r\n\t \t try {\r\n\t\t\timgPiece = ImageIO.read(fileImg);\r\n\r\n\t\t\t Graphics2D g1 = imgPie...
[ "0.6516", "0.6438398", "0.6389147", "0.6336645", "0.63225174", "0.6196121", "0.6176334", "0.6114323", "0.6062601", "0.6055016", "0.60248774", "0.60209614", "0.60177577", "0.5976386", "0.5974613", "0.59589976", "0.59317577", "0.5906528", "0.5906528", "0.5831428", "0.5827619", ...
0.74702156
0
This method adds a given Graphic Object to the Graphic Canvas with the default stroke and fill caracteristics.
private void addGraphicObject(GraphicObject g_obj, int x, int y) { g_obj.setFillColor(this.currentFillColor); g_obj.setStroke(this.currentStrokeColor, this.currentStrokeSize.getValue()); this.canvas.add(g_obj, x, y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addGraphicObject(GraphicObject obj)\n {\n graphicObjects.addLast(obj);\n }", "private void addTextObject(GraphicObject g_obj, int x, int y) {\n Color stroke = new Color(0, 0, 0, 0);\n\n g_obj.setFillColor(this.currentFillColor);\n g_obj.setStroke(stroke, 0);\n\n\t\tt...
[ "0.67852056", "0.6467315", "0.5887413", "0.5834342", "0.58050656", "0.58046687", "0.57648325", "0.57588303", "0.5703962", "0.56951326", "0.566908", "0.5660673", "0.5652758", "0.5649438", "0.56305176", "0.56283593", "0.55804986", "0.55599314", "0.5558211", "0.5556101", "0.5540...
0.7618067
0
This method adds a given TextBox to the Graphic Canvas
private void addTextBox(GraphicObject g_obj, int x, int y) { Color boxColor = new Color(119, 136, 153, 30); g_obj.setFillColor(boxColor); g_obj.setStroke(Color.GRAY, 1); this.canvas.add(g_obj, x, y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createTextBox(){\n // Check if theGreenFootImage was set, otherwise create a blanco image\n // with the specific heights.\n if(theGreenfootImage != null){\n image = new GreenfootImage(theGreenfootImage);\n }else{\n image = new GreenfootImage(fieldWidth,...
[ "0.68848574", "0.67096806", "0.6471804", "0.6345666", "0.62822825", "0.6257911", "0.61982584", "0.6116906", "0.6112395", "0.6079332", "0.6079062", "0.6076787", "0.60572046", "0.60316396", "0.6020934", "0.6008129", "0.5885334", "0.5883244", "0.587151", "0.5762681", "0.57520354...
0.8159437
0
This method adds a given Text object to the Graphic Canvas
private void addTextObject(GraphicObject g_obj, int x, int y) { Color stroke = new Color(0, 0, 0, 0); g_obj.setFillColor(this.currentFillColor); g_obj.setStroke(stroke, 0); this.canvas.add(g_obj, x, y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addText(String text) {\n\t\tNodeList frameList = maNoteElement.getElementsByTagNameNS(OdfDocumentNamespace.DRAW.getUri(), \"frame\");\n\t\tif (frameList.getLength() > 0) {\n\t\t\tDrawFrameElement frame = (DrawFrameElement) frameList.item(0);\n\t\t\tNodeList textBoxList = frame.getElementsByTagNameNS(Od...
[ "0.7344442", "0.70907974", "0.7075478", "0.7014451", "0.6825393", "0.675051", "0.6741623", "0.67328906", "0.667184", "0.66683924", "0.66351885", "0.65672547", "0.6548755", "0.646832", "0.64645565", "0.64427054", "0.6434383", "0.6396457", "0.6386392", "0.638508", "0.63484234",...
0.79726565
0
This method handles the object's scalling and rotation when a user click on any transform point. If the user click on the rotation point, it will calculate the angle from the vector composed by the object's origin and the mouse coordinates with the vector composed from the object's origin to the rotation point, increas...
private void transformObject(int x, int y) { double sx, sy, l, r, nx, ny, tx, ty, alpha, origCX = 0, origCY = 0; Rectangle bnds; if(curr_obj == transformPointers[Action.ROTATE]) { /* the mouse vector 1 */ GeoVector mouseVector = new GeoVector(x, y, this.aux_obj.getCenter...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mousePressed(GraphicObject graphicObject, Event event) {\n\t\tint x, y;\n\t\t\n\t\tx = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft();\n\t\ty = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); \n\t\t\n\t\tif(!action.isSelect() && !action.isPo...
[ "0.6166275", "0.5885386", "0.58414197", "0.5825204", "0.5764772", "0.5661095", "0.5500601", "0.5495553", "0.5449111", "0.53989327", "0.5374286", "0.5371773", "0.5366285", "0.52849144", "0.5269104", "0.5240164", "0.52297294", "0.52052844", "0.5204735", "0.519086", "0.5174928",...
0.70989794
0