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
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() { jLabel1 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); lListas = new javax.swing.JList<>(); jLabel6...
{ "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.7321342", "0.7292121", "0.7292121", "0.7292121", "0.72863305", "0.7249828", "0.7213628", "0.7209084", "0.7197292", "0.71912086", "0.7185135", "0.7159969", "0.7148876", "0.70944786", "0.70817256", "0.7057678", "0.69884527", "0.69786763", "0.69555986", "0.69548863", "0.69453...
0.0
-1
we could put some code here too
@Override public void onClick(DialogInterface dialog, int which) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void logic() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "protected void additionalProcessing() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "pub...
[ "0.62578994", "0.6254943", "0.61485785", "0.6093534", "0.6066093", "0.60258734", "0.60074914", "0.59960514", "0.5977837", "0.5973849", "0.5940426", "0.58967686", "0.58881766", "0.5888091", "0.587451", "0.587232", "0.58508873", "0.5845405", "0.58406883", "0.58297604", "0.58133...
0.0
-1
Process the selection to determine if there are nodes/records that don't match
protected abstract NonMatchingResult processSelection( TableEntitySelection selection, Session session);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tprotected NonMatchingResult processSelection(\n\t\t\tTableEntitySelection selection,\n\t\t\tSession session)\n\t\t{\n\t\t\tIterator<HierarchyNode> hierarchyNodeIter = ((HierarchyEntitySelection) selection)\n\t\t\t\t.getSelectedHierarchyNodes();\n\t\t\tHierarchyNode nonMatchingHierarchyNode = null;\n...
[ "0.64845264", "0.606539", "0.60595566", "0.5630703", "0.553", "0.526626", "0.5250325", "0.51914686", "0.51552033", "0.5073476", "0.5061768", "0.5047913", "0.49631143", "0.49616677", "0.4948591", "0.49270132", "0.48811543", "0.48740253", "0.48676854", "0.48651022", "0.48593074...
0.5794736
3
This returns a permission to always use based on the context, regardless of if the record matches. By default, it always allows the service if the session user is in the Tech Admin role. This can be overridden in subclasses to always allow or disallow based on other conditions. A response of null indicates that there i...
protected UserServicePermission getPermissionOverride( ServicePermissionRuleContext<S> context) { if (context.getSession().isUserInRole(CommonConstants.TECH_ADMIN)) { return UserServicePermission.getEnabled(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean hasPermission(Permission permission) {\n // FacesContext context = FacesContext.getCurrentInstance();\n String imp = (String)ADFContext.getCurrent().getSessionScope().get(\"isImpersonationOn\");\n// String imp = (String)context.getExternalContext().getSessionMap()....
[ "0.6273712", "0.5985206", "0.5848004", "0.5699568", "0.5685991", "0.5618351", "0.55986667", "0.548766", "0.538082", "0.53670925", "0.5325963", "0.53221464", "0.53214", "0.528275", "0.5265935", "0.5263894", "0.5257011", "0.52522296", "0.524254", "0.5221486", "0.52200013", "0...
0.76241535
0
Determine the actual value to match, either from the static valueToMatch or from the session.
protected Object determineValueToMatch(Session session) { Object value; if (sessionInteractionParameterToMatch == null) { if (sessionAttributeToMatch == null) { value = valueToMatch; } else { value = session.getAttribute(sessionAttributeToMatch); } } else { valu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected boolean matchesSafely(T actualValue) {\n return this.matchFn.test(actualValue);\n }", "public Long getSessionValue(String session) { return validSessions.get(session); }", "public static boolean matches(String param, String matchValue) {\n\t\tSystem.out.println(\"...
[ "0.5321319", "0.51917654", "0.5173804", "0.51309705", "0.5121272", "0.5002144", "0.48948386", "0.4848688", "0.4825015", "0.4808902", "0.4808902", "0.48052052", "0.4747352", "0.4747352", "0.4747352", "0.4747352", "0.4747352", "0.4747352", "0.4747352", "0.47436666", "0.46851006...
0.7584753
0
Get the label to show in the error message for the service key. In most cases, it's just the service key name but when that's not very userfriendly, this can return a different value.
protected static String getServiceKeyLabel(ServiceKey serviceKey) { if (ServiceKey.MASSDELETE.equals(serviceKey)) { return "delete"; } return serviceKey.getServiceName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getLabel(String key){\r\n \tFacesContext context = FacesContext.getCurrentInstance();\r\n \tString el = String.format(\"#{%s['%s']}\", Constantes.RESOURCE_BUNDLE_VAR,key);\r\n return context.getApplication().evaluateExpressionGet(context, el, String.class);\r\n }", "private S...
[ "0.6484646", "0.6344522", "0.62656736", "0.61661595", "0.6071727", "0.6033372", "0.6033372", "0.6033372", "0.6033372", "0.59685117", "0.59589714", "0.5912778", "0.5884962", "0.5854934", "0.58423734", "0.5836592", "0.5817977", "0.5806481", "0.5806481", "0.57788265", "0.5775230...
0.7419093
0
Create the error message to return when the value doesn't match, or when rejectWhenMatches is specified and the value does match.
protected String createErrorMessage( ServiceKey serviceKey, SchemaNode selectionTableNode, Session session, NonMatchingResult nonMatchingResult) { Locale locale = session.getLocale(); String serviceKeyLabel = getServiceKeyLabel(serviceKey); StringBuilder bldr = new StringBuilder("Cannot ").append...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String failedMatcherMessage() {\n return \"FAILED!\";\n }", "String getInvalidMessage();", "@Factory\n public static <T extends Throwable> Matcher<T> withMessage(final Matcher<String> matcher) {\n return new CustomTypeSafeMatcher<T>(CustomMatchers.fixedDescription(\"message \", ma...
[ "0.6049678", "0.5729521", "0.5423897", "0.5397223", "0.5397223", "0.5397223", "0.5397223", "0.5397223", "0.5397223", "0.5397223", "0.5397223", "0.5397223", "0.5397223", "0.5397223", "0.5397223", "0.5227517", "0.5207401", "0.51963204", "0.5195819", "0.51841086", "0.51500624", ...
0.6124634
0
Loop over all selected hierarchy nodes until a nonmatching one is found
@Override protected NonMatchingResult processSelection( TableEntitySelection selection, Session session) { Iterator<HierarchyNode> hierarchyNodeIter = ((HierarchyEntitySelection) selection) .getSelectedHierarchyNodes(); HierarchyNode nonMatchingHierarchyNode = null; while (nonMatchingHierarchyNod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void inOrderTraverseRecursive();", "private ArrayList<ContentNode> findDescendants(Node currentNode, ArrayList<ContentNode> allNodes) throws RepositoryException {\n NodeIterator iterator = currentNode.getNodes();\n\n while (iterator.hasNext()) {\n Node nextNode = iterator.nextNode();\n\n i...
[ "0.6048782", "0.5956616", "0.59478027", "0.5871156", "0.5793149", "0.57785296", "0.5655179", "0.55638736", "0.550138", "0.54993254", "0.5471796", "0.5452504", "0.5438932", "0.54237884", "0.54208934", "0.54208934", "0.54208934", "0.54164916", "0.54103005", "0.53979135", "0.539...
0.49877366
71
first parameter is the context, second is the class of the activity to launch
@Override public void onItemClick(AdapterView<?> adapter, View item, int pos, long id) { Intent editIntent = new Intent(TodoListActivity.this, EditItemActivity.class); editIntent.putExtra("position", pos); editIntent.putExtra("value", todos.get(pos)); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void startActivity(Context context, Class<?> c) {\n\t\tIntent i = new Intent(context, c);\n\t\tcontext.startActivity(i);\n\t}", "public static void navigateToActivity(Context A, Class <?> B) {\n Intent myIntent = new Intent(A, B);\n A.startActivity(myIntent);\n }", "private ...
[ "0.71840644", "0.699816", "0.68885064", "0.68706685", "0.6855539", "0.6847189", "0.677608", "0.6770441", "0.6765704", "0.6747296", "0.67411315", "0.66757935", "0.66739136", "0.6650247", "0.6640501", "0.6624603", "0.66174287", "0.65704405", "0.6551789", "0.65461254", "0.654312...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_simple_display, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.72500116", "0.7204146", "0.71987385", "0.7180757", "0.71107906", "0.7043322", "0.7041613", "0.7015376", "0.7013112", "0.6982869", "0.69475657", "0.6941377", "0.6937569", "0.69213736", "0.69213736", "0.6892679", "0.6887231", "0.6877873", "0.68772626", "0.68644464", "0.68644...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.7904231", "0.78061396", "0.7767007", "0.77273244", "0.76318634", "0.7621818", "0.7585249", "0.7531511", "0.7488678", "0.74574006", "0.74574006", "0.7439257", "0.7421747", "0.7403457", "0.73920685", "0.7387285", "0.7379893", "0.73710734", "0.7363068", "0.73565257", "0.73461...
0.0
-1
This clone will copy characteristics data, but not the dynamic data, such as dates
public Payment clone() { Payment clonedPayment = new Payment(); clonedPayment.setIsReceivedPayment(this.isReceivedPayment); clonedPayment.setPaymentType(this.paymentType); clonedPayment.setPaymentCategory(this.paymentCategory); clonedPayment.setDescription(this.description); clonedPayment.setCurrencyCode(th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProcessedDynamicData deepCopy( ) {\r\n\r\n ProcessedDynamicData copy = new ProcessedDynamicData( this.channelId );\r\n\r\n copy.channelId = this.channelId;\r\n copy.dateTimeStamp = new java.util.Date( this.dateTimeStamp.getTime() );\r\n copy.samplingRate = this.samplingRate;\r\n ...
[ "0.6488974", "0.64537764", "0.62518543", "0.61892647", "0.6073042", "0.6068961", "0.60606414", "0.6012142", "0.5965371", "0.59485847", "0.5914098", "0.5890429", "0.58886635", "0.5854227", "0.5840478", "0.5838458", "0.57677764", "0.5749793", "0.5735633", "0.5733367", "0.572966...
0.0
-1
this.paymentDateTime = new DateTime(paymentDateTime);
public void setPaymentDateTime(DateTime paymentDateTime) { this.paymentDateTime = paymentDateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRegisterDateTime(Date dateTime) { this.registerDateTime = dateTime; }", "public void setDate(DateTime \n date) {\n this.date = date;\n }", "private DateTimeAdjusters() {\n\n }", "public void setDatetime(LocalDateTime datetime){\n this.datetime = datetime;\n }", "public Date get...
[ "0.6856077", "0.685116", "0.6466686", "0.64195687", "0.63828576", "0.63549405", "0.6341382", "0.6341382", "0.6301663", "0.62898433", "0.6265056", "0.62210345", "0.62104607", "0.6182915", "0.61827075", "0.6180072", "0.6167843", "0.6152373", "0.6140807", "0.61044955", "0.608264...
0.7331451
0
Create a sample invalid KB HL support.
@SubL(source = "cycl/kb-hl-supports.lisp", position = 33298) public static final SubLObject create_sample_invalid_kb_hl_support() { return make_kb_hl_support(UNPROVIDED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = TrainException.class)\n\tpublic void testCreateLocomotiveWithInvalidOneDigitSpecification() throws TrainException\n\t{\n\t\tString invalidSpecification = \"Z\";\n\t\tInteger validGrossWeight = 5;\n\t\t\n\t\t@SuppressWarnings(\"unused\")\n\t\tasgn2RollingStock.RollingStock locomotiveWithInvalidSpec...
[ "0.5350796", "0.5338843", "0.5335548", "0.52530235", "0.51726365", "0.5048736", "0.5042753", "0.49820986", "0.49713618", "0.4954407", "0.49501583", "0.4947052", "0.49285778", "0.49152377", "0.49085897", "0.49059188", "0.4902972", "0.4884161", "0.4877514", "0.48648235", "0.485...
0.79923785
0
CVS_ID("Id: kbhlsupports.lisp 126640 20081204 13:39:36Z builder ");
public static final SubLObject setup_kb_hl_supports_file() { access_macros.register_macro_helper($sym8$DO_KB_HL_SUPPORT_DEPENDENTS_HELPER, $sym9$DO_KB_HL_SUPPORT_DEPENDENTS); Structures.register_method(print_high.$print_object_method_table$.getGlobalValue(), $dtp_kb_hl_support$.getGlobalValue(), Symbols.symbol_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getVersion()\n {\n return \"$Id$\";\n }", "static String copyright() {\n\t\treturn com.ibm.is.sappack.gen.tools.jobgenerator.abapProgramUploadWizard.Copyright.IBM_COPYRIGHT_SHORT;\n\t}", "public static String getVersion()\n\t{\n\t\treturn (\"$Revision: 1.2 $,$Date: 2006/10/26 ...
[ "0.61821455", "0.5903969", "0.5777657", "0.57586384", "0.56377757", "0.5627166", "0.56164944", "0.5599237", "0.5596187", "0.54801804", "0.53701144", "0.53555095", "0.52719283", "0.5267716", "0.52500314", "0.5239395", "0.52218837", "0.5203061", "0.51875746", "0.51714915", "0.5...
0.0
-1
The main method of AdventureDesigner
public static void main(String[] args) { try { tree = new SceneTree(); System.out.println("Creating a story..."); System.out.print("Please enter a title: "); Scanner in = new Scanner(System.in); String title = in.nextLine(); System.out.print("Please enter a scene: "); String scene =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String arg[]){\r\n GameContainer gc = new GameContainer(new GameManager());\r\n\r\n gc.setWidth(400);\r\n gc.setHeight(300);\r\n gc.setScale(2);\r\n\r\n gc.setClearScreen(true);\r\n gc.setLightEnable(true);\r\n gc.setDynamicLights(true);\r\n ...
[ "0.6750851", "0.67433435", "0.66234297", "0.65591794", "0.6522043", "0.6513764", "0.64937353", "0.64643174", "0.6449529", "0.64420563", "0.6439917", "0.642595", "0.64229286", "0.6401036", "0.63942933", "0.6380274", "0.63757384", "0.6375686", "0.6370652", "0.6366641", "0.63355...
0.0
-1
A method that starts at the root of the tree and displays the scene.
public static void playGame() { Scanner input = new Scanner(System.in); SceneNode node = tree.getRoot(); String option; System.out.println(); System.out.println("Now beginning game..."); System.out.println(); while(!node.isEnding()) { System.out.println(node.getTitle()); System.out.pri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Scene() {\n Scene scene = new Scene(this.root);\n this.stage.setScene(scene);\n this.stage.show();\n }", "protected void displayInitialScene() {\n stageManager.switchScene(FxmlView.SPLASH, StageStyle.UNDECORATED);\n }", "public void startScene()\r\n\t{\r\n\t\tthis....
[ "0.7548423", "0.717734", "0.71746457", "0.69273514", "0.68485194", "0.68402773", "0.681752", "0.6790022", "0.67398757", "0.6734439", "0.6692132", "0.66897875", "0.66564494", "0.6649682", "0.664377", "0.6628543", "0.6618436", "0.661277", "0.6611598", "0.6593317", "0.6585952", ...
0.63290197
49
A method that prints the menu
public static void printMenu() { System.out.println("A) Add Scene"); System.out.println("R) Remove Scene"); System.out.println("S) Show Current Scene"); System.out.println("P) Print Adventure Tree"); System.out.println("B) Go Back A Scene"); System.out.println("F) Go Forward A Scene "); System.ou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void printMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opret\");\n System.out.println(\"(2) Find\");\n System.out.println(\"(3) Slet\");\n System.out.print...
[ "0.87378323", "0.8721137", "0.8703674", "0.8677377", "0.8627934", "0.84432894", "0.84097373", "0.8399124", "0.8382806", "0.8335007", "0.82929474", "0.8276624", "0.82353294", "0.81703794", "0.8081872", "0.80707395", "0.8041751", "0.8031423", "0.80307335", "0.8026573", "0.80040...
0.8552449
5
converts image to base64 string to be stored on Firebase code taken from user skabir from Stack Overflow:
public String convertImage(ImageView itemImage){ Bitmap bmp = ((BitmapDrawable)itemImage.getDrawable()).getBitmap(); ByteArrayOutputStream stream = new ByteArrayOutputStream(); bmp.compress(Bitmap.CompressFormat.PNG, 100, stream); byte[] byteArray = stream.toByteArray(); String i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static String convertToBase64(byte[] image){\n return !Objects.isNull(image)\n ? Base64.getEncoder().encodeToString(image)\n : \"\";\n }", "public static String encodeTobase64(Bitmap image){\n if(image != null) {\n Bitmap image2 = image;\n Byte...
[ "0.79226005", "0.7718876", "0.76037663", "0.74828374", "0.73985803", "0.7356811", "0.7143289", "0.71245205", "0.7119291", "0.7045458", "0.6981927", "0.6962342", "0.6942583", "0.6942466", "0.69099045", "0.6836727", "0.68181163", "0.6749092", "0.67186075", "0.6699815", "0.65283...
0.7403013
4
Created by Patryk on 7/27/2015. AppModule [Application] |AppComponent| < BaseComponent needs that stuff...
@Component(modules = {LocalModule.class, NetworkModule.class}, dependencies = ApplicationComponent.class) public interface BaseComponent { OKHttp getOkHTTP(); Retrofit getRetrofit(); LocalDataCache getLocalDataCache(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Component(modules = {AppModule.class, UtilsModule.class})\n@Singleton\npublic interface AppComponent {\n\n void inject(BaseActivity baseActivity);\n\n}", "@Singleton\n@Component(modules = AppModule.class)\npublic interface AppComponent {\n void inject(BaseActivity baseActivity);\n\n}", "@Component(modul...
[ "0.71607673", "0.71187955", "0.7058578", "0.69479764", "0.6878371", "0.6866533", "0.68346316", "0.6807604", "0.67963564", "0.6784885", "0.678462", "0.67264956", "0.67113495", "0.6693784", "0.6689144", "0.6678009", "0.6670376", "0.66639143", "0.6648829", "0.6643357", "0.662835...
0.6466918
34
Handles the any uncaught exceptions.
private void handleUncaught(Throwable t) { try { Exceptions.handleUncaught(t); RxJavaPlugins.getInstance().getErrorHandler().handleError(t); } catch (Throwable e) { // nowhere to go now } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onUncaughtException(Throwable e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}", "void handleError(Exception ex);", "private void handleException(java.lang.Throwable exception) {\n\n\t/* Uncomment the following lines to print uncaught exceptions to stdout */\n\t// System.out.println(\"-...
[ "0.70712936", "0.68027216", "0.67493063", "0.6595185", "0.6557454", "0.6548199", "0.64923", "0.6447859", "0.64270127", "0.642111", "0.6340801", "0.6337338", "0.63373166", "0.6316359", "0.6292736", "0.62743676", "0.6270486", "0.6233676", "0.6190199", "0.61720735", "0.6165104",...
0.67988926
2
The following functions create the toolbar and sets its functionality.
@Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the right menu if (friendID == null) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; } else { getMenuInflater().inflate(R.menu.menu_friends, menu); r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void CreateToolBars(){\n toolBar = new ToolBar();\n btoolBar = new ToolBar();\n login=new Button(\"Login\");\n simulate=new Button(\"Simulate\");\n scoreBoardButton=new Button(\"ScoreBoard\");\n viewBracket= new Button(\"view Bracket\");\n clearButton=new ...
[ "0.8151717", "0.8007186", "0.7971486", "0.7961379", "0.7874975", "0.7852652", "0.7773033", "0.7713145", "0.76300496", "0.7606464", "0.75845486", "0.75734425", "0.75358665", "0.7535012", "0.752954", "0.7439361", "0.7426991", "0.7394078", "0.7370785", "0.73422414", "0.73345387"...
0.0
-1
The following register onclick callbacks for the listview and the add button add onclick listeners to the listview items
private void clickcallback() { final ListView listView = findViewById(R.id.listViewCollections); listView.setOnItemClickListener(ClickListener()); if (friendID == null) { listView.setOnItemLongClickListener(LongClickListener()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void registerListClickCallBack() {\n\t\t\n\t\tListView myList = (ListView)findViewById(R.id.listViewFromDB);\n\t\tmyList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View viewClicked,\n\t\t\t\t\tint position, long id...
[ "0.7266589", "0.7222719", "0.7196306", "0.6848097", "0.6790486", "0.6694531", "0.66474825", "0.66473544", "0.65468", "0.6524921", "0.6502808", "0.6479914", "0.64783436", "0.6463967", "0.6459817", "0.6451286", "0.64496356", "0.64439297", "0.6433884", "0.6379921", "0.63670325",...
0.6901649
3
set listview click listener
public AdapterView.OnItemClickListener ClickListener() { return new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View viewClicked, int position, long id) { Context context = getBaseContext(); // go to the cl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onListClick();", "public void onListItemClick( ListView l, View v, int position, long id )\n {\n }", "private void clickcallback() {\n final ListView listView = findViewById(R.id.listViewCollections);\n\n listView.setOnItemClickListener(ClickListener());\n\n if (friendID == null...
[ "0.7761464", "0.77604425", "0.76839465", "0.7554255", "0.7551858", "0.7521025", "0.74836284", "0.7464203", "0.7447137", "0.7444249", "0.74440634", "0.73962414", "0.738254", "0.7339497", "0.73140365", "0.7244767", "0.7244767", "0.72203004", "0.72002834", "0.719134", "0.7189299...
0.0
-1
set listview longclick listener
public AdapterView.OnItemLongClickListener LongClickListener() { return new AdapterView.OnItemLongClickListener() { @Override public boolean onItemLongClick(final AdapterView<?> parent, View viewClicked, final int position, long id) { // make an alert dialog ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onItemLongClickListener(View view, int postion);", "@Override\n public void onLongItemClick(View view, int position) {\n }", "void onListInteraction(int index, boolean isLongClicked);", "@Override\r\n\t\t\tpublic boolean onItemLongClick( AdapterView<?> parent, View ...
[ "0.81385106", "0.7795844", "0.7735406", "0.7721863", "0.77194935", "0.7609495", "0.75995123", "0.75757265", "0.7573722", "0.75244474", "0.74868405", "0.73840505", "0.7377323", "0.7340955", "0.7282415", "0.723373", "0.7214167", "0.7151711", "0.714973", "0.71437836", "0.7129473...
0.0
-1
make an alert dialog
@Override public boolean onItemLongClick(final AdapterView<?> parent, View viewClicked, final int position, long id) { AlertDialog.Builder builder = new AlertDialog.Builder(CollectionsActivity.this); builder.setMessage("Delete this collection?"); // delete th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void alertDialogBasico() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\r\n // 2. Encadenar varios métodos setter para ajustar las características del diálogo\r\n builder.setMessage(R.string.dialog_message);\r\n\r\n\r\n builder.setPositiveBut...
[ "0.7491727", "0.7387697", "0.73660797", "0.7353314", "0.73514754", "0.7343189", "0.7340251", "0.7337116", "0.731302", "0.7274003", "0.7241119", "0.72328115", "0.72195756", "0.7217766", "0.72110534", "0.71403915", "0.7133964", "0.7132806", "0.7128782", "0.7089977", "0.70439714...
0.0
-1
onclick listener for the add collection button
public void AddCollection(View view) { Intent intent = new Intent(this, AddCollectionActivity.class); this.startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onAddClicked();", "void addButton_actionPerformed(ActionEvent e) {\n doAdd();\n }", "void addButton_actionPerformed(ActionEvent e) {\n addButton();\n }", "void setNewCollectionPanel();", "@Override\n public void onClick(View v) {\n buttonAddClicked...
[ "0.710039", "0.68487924", "0.6614054", "0.65786785", "0.6524664", "0.6364321", "0.6347344", "0.62962294", "0.6288232", "0.6248971", "0.62274045", "0.61981714", "0.6138528", "0.6127813", "0.6113521", "0.6113276", "0.6079556", "0.6077793", "0.60318047", "0.6019412", "0.6017727"...
0.68358326
2
~ Methods DOCUMENT ME!
public boolean isStopped() { return FLD$Stopped; }
{ "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\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public void perish() {\n ...
[ "0.6692903", "0.65987754", "0.6545932", "0.64571804", "0.64571804", "0.63906264", "0.6385954", "0.6385954", "0.6379347", "0.6378512", "0.6368745", "0.6349985", "0.63294756", "0.63076603", "0.6278317", "0.62771356", "0.6270411", "0.6253214", "0.6183789", "0.6173654", "0.614275...
0.0
-1
91. Decode Ways Medium 1139 1343 Favorite Share A message containing letters from AZ is being encoded to numbers using the following mapping: 'A' > 1 'B' > 2 ... 'Z' > 26 Given a nonempty string containing only digits, determine the total number of ways to decode it. Example 1: Input: "12" Output: 2 Explanation: It cou...
public int numDecodings(String s) { if ((s==null)||(s.length()<1)||(s.charAt(0)=='0')){ return 0; } int index = 0; Map<Integer,Integer> c = new HashMap<Integer,Integer>(); c.put(index, 1); index++; while(index <s.length()) { int value = 0; char pre = s.charAt(index-1); char cur = s....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int numDecodings(String s) {\r\n\t\tif(s == null || s.length() == 0)\r\n\t\t\treturn 0;\r\n\t\tint len = s.length();\r\n\t\tint[] ways = new int[len + 1];\r\n\t\tways[0] = 1;\r\n\t\tways[1] = s.charAt(0) == '0' ? 0 : 1;\r\n\t\t\r\n\t\tfor(int i = 2; i <= len; i++) {\r\n\t\t\tint code1 = Integer.value...
[ "0.76955324", "0.738719", "0.7119109", "0.71072614", "0.71036935", "0.68399674", "0.66620433", "0.66233164", "0.65327305", "0.6519269", "0.65176076", "0.63914883", "0.6360349", "0.631447", "0.61232346", "0.6050101", "0.60440075", "0.598201", "0.59751505", "0.59136707", "0.590...
0.6939909
5
BigDecimal bigDecimal = new BigDecimal(0.95); int a = bigDecimal.intValue(); System.out.println(a); double a = 32.44 / 35.24; System.out.println(a); double a = 7; double b = 6; String str = "" + a b + ""; System.out.println("aaaa" + (a b) + "bbbb"); List stringList = Lists.newArrayList(); stringList.add("aaa"); stringL...
public static void main(String[] args) { Set<Student> set = Sets.newTreeSet(); Student s3 = new Student(3); Student s4 = new Student(4); Student s5 = new Student(5); Student s1 = new Student(1); Student s2 = new Student(2); List<Student> list = Lists.newArrayList...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\r\n\tdouble b=100.1-50;\r\n\tSystem.err.println(b);\r\n\t\r\n\tSystem.err.println(\"----------------------------------\");\r\n\t BigDecimal b1 = new BigDecimal(100.1); \r\n BigDecimal b2 = new BigDecimal(50); \r\n System.err.println(b1.subtract...
[ "0.6359909", "0.60735637", "0.5982477", "0.5966275", "0.5955389", "0.57968867", "0.5765896", "0.5643177", "0.5621156", "0.56135154", "0.5567683", "0.55457926", "0.5515006", "0.55102545", "0.5499715", "0.5428544", "0.54282993", "0.5375485", "0.5348848", "0.53435034", "0.532530...
0.0
-1
gets the coordinate of x
public int getX() { return x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getX() { return xCoordinate;}", "public int getX()\r\n {\r\n return xCoord;\r\n }", "public int getXCoordinate ()\n {\n return xCoordinate;\n }", "public int x() {\r\n\t\treturn xCoord;\r\n\t}", "public int getX() {\r\n\t\treturn xcoord;\r\n\t}", "double getXPositio...
[ "0.8597881", "0.8517619", "0.85107785", "0.84543884", "0.8395726", "0.8381519", "0.8378383", "0.8362063", "0.83298767", "0.83298767", "0.82845175", "0.82777953", "0.8255613", "0.8254147", "0.8141783", "0.8141783", "0.8141783", "0.8131125", "0.8131125", "0.8115714", "0.8109271...
0.77684605
65
gets the coordinate of y
public int getY() { return y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "long getY();", "public int getYcoord(){\n\t\treturn this.coordinates[1];\n\t}", "public int getY() {\n return this.coordinate.y;\n }", "public int getY()\r\n {\r\n return yCoord;\r\n }", "double getY() { return pos[1]; }", "public int getY() {return y;}", "double getYPosition();", "p...
[ "0.86974585", "0.8691094", "0.8611658", "0.86082524", "0.8599772", "0.85957545", "0.8592598", "0.8592055", "0.8585345", "0.8585345", "0.8566804", "0.85432315", "0.8540205", "0.8540205", "0.8518801", "0.84793925", "0.84516203", "0.84507674", "0.8445251", "0.8444028", "0.844402...
0.8443155
28
sets the coordinate of x
public void setX(int x) { this.x = x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setX(int x) {\n position = position.setX(x);\n }", "public void setX(int x) {\n\tbaseXCoord = x;\n}", "public void setX( int x ) {\n\t\t//not checking if x is valid because that depends on the coordinate system\n\t\tthis.x = x;\n\t}", "public void setXCoordinate(int newValue)\n {\n x = new...
[ "0.86604476", "0.8617623", "0.85403055", "0.84721595", "0.84133935", "0.8390966", "0.8354936", "0.8308661", "0.82829547", "0.823048", "0.822977", "0.82150036", "0.80889875", "0.80752856", "0.80401677", "0.80397546", "0.80397546", "0.80397546", "0.80397546", "0.8039422", "0.80...
0.794818
36
sets the coordinate of y
public void setY(int y) { this.y = y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setY(int y) { loc.y = y; }", "public void setY(int y) { this.y=y; }", "public void setY(int y)\n {\n this.y = y;\n }", "public void setY(int y){\r\n\t\tthis.y = y;\r\n\t}", "public void setY(int y){\n this.y = y;\n }", "public void setY(int y){\n this.y = y;\n ...
[ "0.8712376", "0.8632176", "0.8621093", "0.85978115", "0.85903585", "0.85903585", "0.85903585", "0.85789293", "0.85789293", "0.85789293", "0.857612", "0.85606086", "0.85251623", "0.85192454", "0.85192454", "0.8518872", "0.85155195", "0.85132813", "0.8504668", "0.8503047", "0.8...
0.86302185
2
checks if the coordinates are equal or not
public boolean equals(Position other) { return (other.x == this.x && other.y == this.y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean almostEqual(Coordinates a, Coordinates b);", "public boolean coordsAreEqual(Cell anotherCell){\n return (getI() == anotherCell.getI()) && (getJ() == anotherCell.getJ());\n }", "@Test\n public void testEqualsTrue() {\n Rectangle r5 = new Rectangle(7, 4, new Color(255, 0, 0), new Pos...
[ "0.7520301", "0.7175561", "0.7056023", "0.698029", "0.6978082", "0.689756", "0.689756", "0.689756", "0.6876181", "0.6810895", "0.6732657", "0.66517174", "0.6644312", "0.66330695", "0.66321915", "0.6595126", "0.65839237", "0.657933", "0.65636146", "0.65616107", "0.6524598", ...
0.6444961
24
Creates a new DateTimeRfc1123 object with the specified DateTime.
public DateTimeRfc1123(OffsetDateTime dateTime) { this.dateTime = dateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DateTimeRfc1123(String formattedString) {\n this.dateTime = parse(formattedString);\n }", "public DateTime(Date date) {\r\n\t\tthis.timeString = YYYY_MMT_DD_T_HH_MM_SS_FORMATTER.format(date);\r\n\t}", "public DateTime(final DateTime timeStamp) {\n this(null, timeStamp);\n }", "Buil...
[ "0.7023843", "0.530797", "0.52671176", "0.51639897", "0.5131379", "0.51119184", "0.51119184", "0.49793065", "0.4963314", "0.49192294", "0.49039528", "0.4886838", "0.48626098", "0.48350957", "0.4826997", "0.47450823", "0.47437805", "0.4743312", "0.47384697", "0.47384697", "0.4...
0.76227605
0
Creates a new DateTimeRfc1123 object with the specified DateTime.
public DateTimeRfc1123(String formattedString) { this.dateTime = parse(formattedString); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DateTimeRfc1123(OffsetDateTime dateTime) {\n this.dateTime = dateTime;\n }", "public DateTime(Date date) {\r\n\t\tthis.timeString = YYYY_MMT_DD_T_HH_MM_SS_FORMATTER.format(date);\r\n\t}", "public DateTime(final DateTime timeStamp) {\n this(null, timeStamp);\n }", "Builder addDateCr...
[ "0.76227605", "0.530797", "0.52671176", "0.51639897", "0.5131379", "0.51119184", "0.51119184", "0.49793065", "0.4963314", "0.49192294", "0.49039528", "0.4886838", "0.48626098", "0.48350957", "0.4826997", "0.47450823", "0.47437805", "0.4743312", "0.47384697", "0.47384697", "0....
0.7023843
1
Returns the underlying DateTime.
public OffsetDateTime getDateTime() { return this.dateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DateTimeDt getDateTime() { \n\t\tif (myDateTime == null) {\n\t\t\tmyDateTime = new DateTimeDt();\n\t\t}\n\t\treturn myDateTime;\n\t}", "public DateTimeDt getDateTime() { \n\t\tif (myDateTime == null) {\n\t\t\tmyDateTime = new DateTimeDt();\n\t\t}\n\t\treturn myDateTime;\n\t}", "public static java.sql....
[ "0.7372629", "0.7372629", "0.71952826", "0.68169785", "0.68169785", "0.675589", "0.67175764", "0.66701716", "0.66362154", "0.65546334", "0.6545434", "0.65225047", "0.643981", "0.6341401", "0.631617", "0.62572205", "0.6241783", "0.62303966", "0.6186353", "0.6172258", "0.614876...
0.60777783
24
Parses the specified substring of datetime to a 'int' value.
private static int parseInt(final String date, final int beginIndex, final int endIndex) { int num = 0; for (int i = beginIndex; i < endIndex; i++) { final char c = date.charAt(i); if (c < '0' || c > '9') { throw LOGGER.logExceptionAsError(new DateTimeException("I...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int convertStringDateToInteger(String date);", "protected static int getDay(String dateTime) {\n return Integer.parseInt(dateTime.substring(5, 7));\n }", "protected static int getSecond(String dateTime) {\n return Integer.parseInt(dateTime.substring(11, 13));\n }", "private int par...
[ "0.7316791", "0.6325353", "0.63048595", "0.60514194", "0.6043247", "0.60304093", "0.5960071", "0.5782152", "0.5705659", "0.56963086", "0.5654311", "0.56306916", "0.5550994", "0.5538713", "0.5513059", "0.5483738", "0.5479752", "0.5477988", "0.54532623", "0.54491746", "0.544052...
0.66274244
1
ISSUE 1: No se incluyo el nombre del paquete en la clase
public static void main(String[] args) { Rectangle myRect; //ISSUE 2: No existe la clase Rectangle //SOLVE 2: Se creo la clase Rectangle dentro del mismo paquete //ISSUE 2.1: No se ha instanciado myRectangle myRect = new Rectangle();//SOLVE 2.1: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ParqueaderoEntidad agregar(String nombre);", "private TIPO_REPORTE(String nombre)\r\n/* 55: */ {\r\n/* 56: 58 */ this.nombre = nombre;\r\n/* 57: */ }", "ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);", "public void setNombreClase(String nombreClase) { this.nombreClase = no...
[ "0.64332867", "0.6395353", "0.6082785", "0.6024908", "0.5989551", "0.5926056", "0.5914551", "0.58158", "0.57743907", "0.5766538", "0.5750419", "0.57500666", "0.57446754", "0.56831056", "0.5682564", "0.5640764", "0.56331736", "0.5630655", "0.56290346", "0.5620445", "0.5600586"...
0.0
-1
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump.
public final void m12868a(int r5, int r6, android.content.Intent r7) { /* r4 = this; r0 = 1; r1 = 0; switch(r5) { case 1: goto L_0x0017; case 2: goto L_0x000c; default: goto L_0x0005; }; L_0x0005: r0 = r1; L_0x0006: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decom...
[ "0.76178586", "0.75745016", "0.7527132", "0.7452018", "0.7451632", "0.74388385", "0.73828584", "0.73828584", "0.73678523", "0.7354693", "0.7343335", "0.73163086", "0.73092943", "0.7306793", "0.72746176", "0.7253614", "0.72228837", "0.71988684", "0.7178745", "0.7137457", "0.71...
0.0
-1
This method has been deprecated, please use method buildRanges instead.
@java.lang.Deprecated public java.util.List<io.kubernetes.client.openapi.models.V1beta1IDRange> getRanges();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t@Deprecated\n\tprotected final void rangeCheck ( int from , int to ) {\n\t}", "Range createRange();", "abstract public Range createRange();", "private Range() {}", "public void setRanges(List<Range> ranges) {\n this.ranges = ranges;\n }", "@Override\n public boolean isRange() {\n ...
[ "0.69337875", "0.63706005", "0.6339597", "0.6309119", "0.62203896", "0.6181258", "0.6161531", "0.60708654", "0.6060989", "0.592894", "0.59176475", "0.58385175", "0.5838221", "0.5829759", "0.5828037", "0.5811964", "0.57796216", "0.5766446", "0.5746861", "0.5744388", "0.5697463...
0.6390174
1
Method is deprecated. use withRule instead.
@java.lang.Deprecated public A withNewRule(java.lang.String original);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Rule createRule();", "Rule createRule();", "Rule createRule();", "Rule getRule();", "void setRule(Rule rule);", "public void add_rule(Rule rule) throws Exception;", "public void setRule(final String rule) {\r\n this.rule = rule;\r\n }", "public void setRule(RuleDefinition.Builder rule) {\r\...
[ "0.68236405", "0.68236405", "0.68236405", "0.6615185", "0.6588458", "0.6491214", "0.61066884", "0.6087191", "0.6074475", "0.606279", "0.6017041", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.60018027", "0.6...
0.62449634
6
InterventionItem interventionItemDtoToInterventionItem(InterventionItemDto dto); InterventionItemDto interventionItemToInterventionItemDto(InterventionItem item);
List<InterventionItem> interventionItemDtoToInterventionItem(List<InterventionItemDto> dto);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ItemDTO convertIntoItemDTO(Item item) {\n if (null == item) {\n return null;\n }\n ItemDTO itemDTO = new ItemDTO();\n itemDTO.setObjectID(item.getObjectID());\n itemDTO.setTitle(item.getTitle());\n itemDTO.setDescription(item.getDescription());\n ...
[ "0.68001276", "0.57670355", "0.5745861", "0.5573432", "0.5572376", "0.55674773", "0.5515481", "0.55097705", "0.5484496", "0.5368901", "0.5365541", "0.534914", "0.5339486", "0.53229654", "0.5279773", "0.52784157", "0.52564144", "0.52365196", "0.52237", "0.5218682", "0.52162755...
0.83971626
0
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.72473437", "0.7202402", "0.71960324", "0.7177793", "0.7108265", "0.7040525", "0.70388484", "0.70126176", "0.70101976", "0.6981143", "0.69461405", "0.694", "0.69346833", "0.69183874", "0.69183874", "0.6891571", "0.6884306", "0.68758994", "0.687534", "0.68627334", "0.6862733...
0.0
-1
TODO Autogenerated method stub
@Override public boolean onKey(View view, int keyCode, KeyEvent event) { boolean handle = false; if(event.getAction()==KeyEvent.ACTION_DOWN && keyCode==KeyEvent.KEYCODE_ENTER){ handle = entrarUrl(); } return handle; }
{ "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
System.out.println("Please write an SQL command to be explained: ");
public static void main(String[] args){ StringDB Database = new StringDB(); Database.execute("INSERT INTO teachers VALUES ( 'Martin_Aumüller' , 'maau' ) ;"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void mainText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'STU' 3.'FAC' 4.SQL query 5.'MORE' -for more detail about options\");\n\t}", "public void printStatement() {\n\t\t\n\t}", "public void show() throws SQLException {\n int done = 0;\n\n show_stmt.registerOutParameter(2, ...
[ "0.6901977", "0.666305", "0.63865393", "0.63519436", "0.6313926", "0.62100065", "0.6205876", "0.6202399", "0.6138099", "0.6129885", "0.6103763", "0.6059644", "0.60581505", "0.6049007", "0.60452116", "0.6036215", "0.6007398", "0.5941012", "0.59393036", "0.5914123", "0.5896465"...
0.0
-1
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { customers.setValue("Customer"); setData(); try { getCustomerNames(); } catch (SQLException ex) { Logger.getLogger(NewAppointmentController.class.getName()).log(Level.SEVERE, null, ex); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}", "public MainController() {\n\t\tcontroller = new Controller(this);\n\t}", "public abstract void initController();", "public Controller() {\n super();\n }", "public Controller() {\n super();\n }", "public Co...
[ "0.8125658", "0.78537387", "0.78320265", "0.776199", "0.776199", "0.76010174", "0.74497247", "0.7437837", "0.7430714", "0.742303", "0.74057597", "0.7341963", "0.7327749", "0.72634363", "0.72230434", "0.7102504", "0.70575505", "0.69873077", "0.69721675", "0.6944077", "0.691256...
0.0
-1
Getting customer Names for the drop down box
public void getCustomerNames() throws SQLException { ResultSet rs; Statement st = dbConnection.dbConnect().createStatement(); String recordQuery = ("Select * from customer"); rs = st.executeQuery(recordQuery); while(rs.next()){ customers.getItems().add(rs.getString("...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JComboBox getCustomerList() {\n\t\t\t\tJComboBox customerSelectBox = new JComboBox();\n\t\t\t\tConnection connection = null;\n\t\t\t\tStatement statement = null;\n\n\t\t\t\ttry {\n\t\t\t\t\tconnection = DriverManager.getConnection(DATABASE_URL, UserName_SQL, Password_SQL);\n\t\t\t\t\tstatement = connection....
[ "0.6820678", "0.6307752", "0.6107789", "0.6045815", "0.6031175", "0.6017918", "0.6009767", "0.598109", "0.5960177", "0.59302956", "0.58710957", "0.5859727", "0.58395755", "0.5813631", "0.581275", "0.5792289", "0.57585454", "0.57563823", "0.57207775", "0.5706531", "0.5705694",...
0.68775254
0
Setting up appointment into Database
public void setAppointment() throws SQLException { ResultSet rs; Statement st = dbConnection.dbConnect().createStatement(); Timestamp date = new java.sql.Timestamp(new java.util.Date().getTime()); String getCustomerId="SELECT customerId FROM customer WHERE customerName = '" + se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void create(Appointment a) throws SQLException {\r\n\r\n String statement =\r\n \"INSERT INTO appointments (Appointment_ID, Title, Description, Location, Type, Start, End, Customer_ID, User_ID, Contact_ID) VALUES (\" +\r\n a.getAppointmentId() + \",'\" +...
[ "0.7249597", "0.6847792", "0.6832787", "0.67629194", "0.67519516", "0.66715664", "0.6635755", "0.66301936", "0.6555601", "0.6537782", "0.6500874", "0.64359444", "0.62986654", "0.62900686", "0.6286085", "0.6188036", "0.61873317", "0.61705905", "0.616245", "0.61020845", "0.6081...
0.77002007
0
Constructor for the CacheAccess object.
public CacheAccess( final CompositeCache<K, V> cacheControl ) { super(cacheControl); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cache() {\n this(null);\n }", "public AbstractCache() {\n }", "public CacheManager()\n\t{\n\t}", "private CacheWrapper<AccessPointIdentifier, Integer> createCache() {\n return new CacheWrapper<AccessPointIdentifier, Integer>() {\n \n @Override\n pub...
[ "0.72201836", "0.71887463", "0.6857016", "0.66757643", "0.6617489", "0.65835565", "0.65744174", "0.65744174", "0.6559444", "0.6464947", "0.6410988", "0.63520086", "0.6346042", "0.63404745", "0.6311137", "0.6310722", "0.6228212", "0.62005", "0.6193439", "0.61864835", "0.617514...
0.7559464
0
Retrieve an object from the cache region this instance provides access to.
@Override public V get( final K name ) { final ICacheElement<K, V> element = this.getCacheControl().get( name ); return ( element != null ) ? element.getVal() : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public V get(K key){\n CacheObject<K, V> cacheObject = this.cache.get(key);\n\n if (cacheObject != null){\n return cacheObject.getObject();\n }\n\n return null;\n }", "private CacheObject<K, V> getCacheObject(K key){\n return this.cache.get(key);\n ...
[ "0.65560997", "0.64996207", "0.64247584", "0.6382465", "0.6364222", "0.6254376", "0.6140721", "0.61216265", "0.60983866", "0.6096541", "0.606305", "0.6040373", "0.60397196", "0.6026646", "0.60176873", "0.59569454", "0.58956933", "0.5880832", "0.5748286", "0.57430696", "0.5722...
0.5716463
21
Retrieve an object from the cache region this instance provides access to. If the object cannot be found in the cache, it will be retrieved by calling the supplier and subsequently storing it in the cache.
@Override public V get(final K name, final Supplier<V> supplier) { V value = get(name); if (value == null) { value = supplier.get(); put(name, value); } return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public T get()\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn cache.get(KEY, supplier);\n\t\t}\n\t\tcatch (ExecutionException e)\n\t\t{\n\t\t\tfinal Throwable cause = e.getCause();\n\n\t\t\t// Try to rethrow the actual exception so it's easier to understand\n\t\t\tif (cause == null)\n\t\t\t\tthrow new RuntimeException(e);\n\t...
[ "0.7076534", "0.6767248", "0.66567785", "0.6631905", "0.6608631", "0.65726423", "0.6480812", "0.6370184", "0.6233235", "0.6173334", "0.6152328", "0.6107585", "0.6088236", "0.60647625", "0.60590214", "0.60322535", "0.6014085", "0.5924519", "0.58618945", "0.58561337", "0.582381...
0.5355313
71
Retrieve matching objects from the cache region this instance provides access to.
@Override public Map<K, V> getMatching( final String pattern ) { final Map<K, V> unwrappedResults; final Map<K, ICacheElement<K, V>> wrappedResults = this.getCacheControl().getMatching( pattern ); if ( wrappedResults == null ) { unwrappedResults = new HashMap<>(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<RegionLocations> getAll() {\n return Collections.unmodifiableCollection(cache.values());\n }", "public RegionLocations get(byte[] startKey) {\n return cache.get(startKey);\n }", "@Override\n\tpublic Set<T> retrieveAllItems() {\n\t\treturn cache;\n\t}", "protected abstract Collection...
[ "0.6256662", "0.6089353", "0.60289514", "0.58381265", "0.57751435", "0.5771383", "0.566013", "0.5620635", "0.55525374", "0.5541978", "0.5517289", "0.55138636", "0.55030626", "0.54341334", "0.5359429", "0.535822", "0.52762985", "0.52746093", "0.52713925", "0.5262316", "0.52538...
0.51099366
30
This method returns the ICacheElement&lt;K, V&gt; wrapper which provides access to element info and other attributes. This returns a reference to the wrapper. Any modifications will be reflected in the cache. No defensive copy is made. This method is most useful if you want to determine things such as the how long the ...
@Override public ICacheElement<K, V> getCacheElement( final K name ) { return this.getCacheControl().get( name ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public IElementAttributes getElementAttributes( final K name ) throws CacheException\n {\n IElementAttributes attr = null;\n\n try\n {\n attr = this.getCacheControl().getElementAttributes( name );\n }\n catch ( final IOException ioe )\n {\n ...
[ "0.6363292", "0.63143194", "0.5981873", "0.59375316", "0.5845774", "0.58133954", "0.57552004", "0.56889695", "0.5678188", "0.5646364", "0.5644591", "0.56136394", "0.556525", "0.5559269", "0.5557251", "0.555335", "0.5545252", "0.5534319", "0.54942775", "0.54903483", "0.5480659...
0.6695358
0
Get multiple elements from the cache based on a set of cache keys. This method returns the ICacheElement&lt;K, V&gt; wrapper which provides access to element info and other attributes. This returns a reference to the wrapper. Any modifications will be reflected in the cache. No defensive copy is made. This method is mo...
@Override public Map<K, ICacheElement<K, V>> getCacheElements( final Set<K> names ) { return this.getCacheControl().getMultiple( names ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CACHE_ELEMENT[] get(Key ... keys);", "@Override\n public ICacheElement<K, V> getCacheElement( final K name )\n {\n return this.getCacheControl().get( name );\n }", "public Collection<V> getAllElements() {\n\t\treturn cacheMap.values();\n\t}", "public interface Cache<K,V> {\n\t/**\n\t * Return...
[ "0.7156561", "0.6194872", "0.61915565", "0.6022542", "0.5998997", "0.59199595", "0.58619803", "0.58199674", "0.5666954", "0.56238544", "0.56211597", "0.5543591", "0.54818463", "0.5474095", "0.543134", "0.5425906", "0.5414597", "0.53979915", "0.53592", "0.5353374", "0.53101474...
0.716805
0
Get multiple elements from the cache based on a set of cache keys. This method returns the ICacheElement&lt;K, V&gt; wrapper which provides access to element info and other attributes. This returns a reference to the wrapper. Any modifications will be reflected in the cache. No defensive copy is made. This method is mo...
@Override public Map<K, ICacheElement<K, V>> getMatchingCacheElements( final String pattern ) { return this.getCacheControl().getMatching( pattern ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Map<K, ICacheElement<K, V>> getCacheElements( final Set<K> names )\n {\n return this.getCacheControl().getMultiple( names );\n }", "CACHE_ELEMENT[] get(Key ... keys);", "@Override\n public ICacheElement<K, V> getCacheElement( final K name )\n {\n return this.getC...
[ "0.7166348", "0.7155499", "0.619349", "0.61909187", "0.60218585", "0.59974974", "0.59187", "0.58609855", "0.5819921", "0.5666861", "0.5622007", "0.56188846", "0.54821485", "0.54731447", "0.54308814", "0.54240274", "0.54148036", "0.53982896", "0.53589356", "0.53530145", "0.530...
0.5543084
12
Place a new object in the cache, associated with key name. If there is currently an object associated with name in the region an ObjectExistsException is thrown. Names are scoped to a region so they must be unique within the region they are placed.
@Override public void putSafe( final K key, final V value ) { if ( this.getCacheControl().get( key ) != null ) { throw new ObjectExistsException( "putSafe failed. Object exists in the cache for key [" + key + "]. Remove first or use a non-safe put to override the va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void put(String name, Serializable key, Serializable value) throws CacheException {\n\t\t\n\t}", "public synchronized static void store(Context context, String name, Object o) {\n for(Map.Entry<Object, String> e : cached.entrySet()) {\r\n if(e.getValue().contentEquals(name))...
[ "0.61197317", "0.6012274", "0.5991191", "0.5957578", "0.588978", "0.5854693", "0.5681014", "0.5612636", "0.55829936", "0.5564056", "0.55281544", "0.5525411", "0.5472455", "0.5383728", "0.53656584", "0.5352085", "0.53516006", "0.52939284", "0.5288957", "0.5255824", "0.525548",...
0.5579448
9
Place a new object in the cache, associated with key name. If there is currently an object associated with name in the region it is replaced. Names are scoped to a region so they must be unique within the region they are placed.
@Override public void put( final K name, final V obj ) { // Call put with a copy of the contained caches default attributes. // the attributes are copied by the cacheControl put( name, obj, this.getCacheControl().getElementAttributes() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized static void store(Context context, String name, Object o) {\n for(Map.Entry<Object, String> e : cached.entrySet()) {\r\n if(e.getValue().contentEquals(name)) {\r\n // Found cached\r\n cached.remove(e.getKey());\r\n break;\r\n ...
[ "0.6466659", "0.6304688", "0.61494386", "0.5954725", "0.58693975", "0.5866577", "0.58166546", "0.57392377", "0.5735884", "0.5713226", "0.5638902", "0.56205225", "0.5612101", "0.5574203", "0.5533492", "0.55097693", "0.5498955", "0.5361192", "0.5329482", "0.53014934", "0.529265...
0.59240246
4
Constructs a cache element with these attributes, and puts it into the cache. If the key or the value is null, and InvalidArgumentException is thrown.
@Override public void put( final K key, final V val, final IElementAttributes attr ) { if ( key == null ) { throw new InvalidArgumentException( "Key must not be null" ); } if ( val == null ) { throw new InvalidArgumentException( "Value must not be...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public cacheEntry(int key, String value){\n int key;\n String value;\n cacheEntry(int key){\n this.key = key;\n this.value = value;\n }\n}", "public void put(final Serializable key, final Serializable value) {\n Mutex lock = checkLockExistsForKey(key);\n try {\n if (value != nu...
[ "0.63448673", "0.6285502", "0.59915817", "0.5910415", "0.58117515", "0.58004594", "0.5781948", "0.57437354", "0.56377363", "0.5585199", "0.5583977", "0.55822456", "0.5563239", "0.5558014", "0.5556002", "0.55532384", "0.5532388", "0.5503672", "0.54797894", "0.54765755", "0.546...
0.6905307
0
Removes a single item by name.
@Override public void remove( final K name ) { this.getCacheControl().remove( name ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void remove(String name);", "void remove(String name);", "void remove(String name);", "void remove(String name) throws Exception;", "public static void removeItem(String itemName)\n {\n inventory.remove(getItem(itemName));\n }", "public Objects removeObject(String itemName)\n {\n ...
[ "0.8087199", "0.7977593", "0.7977593", "0.7748025", "0.77199113", "0.7575787", "0.7517576", "0.74688673", "0.7266344", "0.72420466", "0.72228473", "0.7100841", "0.7048764", "0.6978006", "0.69505304", "0.69309044", "0.6882004", "0.688004", "0.68463576", "0.6739348", "0.6739218...
0.6232476
55
Reset attributes for a particular element in the cache. NOTE: this method is currently not implemented.
@Override public void resetElementAttributes( final K name, final IElementAttributes attr ) { final ICacheElement<K, V> element = this.getCacheControl().get( name ); if ( element == null ) { throw new InvalidHandleException( "Object for name [" + name + "] is not in the cach...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tprotected void resetAttribute() {\n\t\t}", "public void resetAttributes()\r\n\t{\r\n\t\t// TODO Keep Attribute List upto date\r\n\t\tintelligence = 0;\r\n\t\tcunning = 0;\r\n\t\tstrength = 0;\r\n\t\tagility = 0;\r\n\t\tperception = 0;\r\n\t\thonor = 0;\r\n\t\tspeed = 0;\r\n\t\tloyalty = 0;\r\n\t}"...
[ "0.688685", "0.6458088", "0.63815105", "0.6331642", "0.6178327", "0.6165513", "0.60072106", "0.60034823", "0.59229136", "0.5883789", "0.57919836", "0.5761558", "0.5741206", "0.5686023", "0.5569992", "0.55002946", "0.5495542", "0.54740447", "0.5473821", "0.54565376", "0.545103...
0.7497461
0
GetElementAttributes will return an attribute object describing the current attributes associated with the object name. The name object must override the Object.equals and Object.hashCode methods.
@Override public IElementAttributes getElementAttributes( final K name ) throws CacheException { IElementAttributes attr = null; try { attr = this.getCacheControl().getElementAttributes( name ); } catch ( final IOException ioe ) { throw ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getAttribute(String name);", "public String getAttribute(String name);", "Attributes getAttributes();", "Object getAttribute(String name);", "Object getAttribute(String name);", "Object getAttribute(String name);", "public Attribute getAttributeByName(String name){\n for (Attribute...
[ "0.6960066", "0.6864731", "0.68122345", "0.6730286", "0.6730286", "0.6730286", "0.6713349", "0.6572651", "0.65264803", "0.6514581", "0.6502712", "0.6475714", "0.6459028", "0.6444104", "0.638925", "0.638925", "0.638925", "0.63685703", "0.63361484", "0.6330348", "0.6322975", ...
0.70820194
0
TODO Autogenerated method stub
public static void main(String[] args) { List<Integer> l1=Arrays.asList(1,2,3); System.out.println("displaying the Integer values"); addNumbers(l1); List<Number> l2=Arrays.asList(1.1,2.0,3.0); System.out.println("displaying the Number values"); addNumbers(l2); }
{ "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
Altera o status do titulo via AJAX
@RequestMapping(method = RequestMethod.GET, path = "/{id}/receber") public @ResponseBody String receber(@PathVariable("id") Long id) { return this.service.receber(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setStatus(CharSequence subTitle) {\n getSupportActionBar().setSubtitle(subTitle);\n //textViewStatus.setText(subTitle);\n }", "void setStatus(String status);", "void setStatus(java.lang.String status);", "@Override\n\tpublic void setStatusText (String text) {\n\t}", "@Override...
[ "0.6537507", "0.6460333", "0.64333844", "0.6387166", "0.6357181", "0.631802", "0.62789375", "0.62557065", "0.62492305", "0.6234885", "0.6207859", "0.6201078", "0.6192266", "0.61806494", "0.61806494", "0.6167717", "0.6082937", "0.6044555", "0.6044555", "0.60434085", "0.6043408...
0.0
-1
Retorna todos os meus enuns num array dinamicamente
@ModelAttribute("todosStatusTitulo") // Define o nome que eu quero chamar lá na View com o thymeleaf public List<TituloStatusEnum> todosStatusTitulo() { return Arrays.asList(TituloStatusEnum.values()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generaNumeros() {\n\n\n int number =0;\n int numeroSeleccionado=gameMemoriaUno.getNumberaleatorio();\n //se agrega numero a las lista de numeros\n\n if(numeroSeleccionado == -1){\n llamaResultado(super.getActividad(), tFinal, tInicio, Num3_5_1Activity.class,game...
[ "0.66912925", "0.66769713", "0.6456145", "0.64501166", "0.64399666", "0.643438", "0.63874495", "0.6283553", "0.61965346", "0.6163529", "0.61590713", "0.61317205", "0.6063316", "0.60293734", "0.60081476", "0.5986871", "0.5917065", "0.5895443", "0.58937085", "0.5886276", "0.585...
0.0
-1
Create a new JMXPoller.
protected JMXPoller(List<InetSocketAddress> jmxEndpoints, long queryTimeout, String serviceUrlTemplate) { this.jmxEndpoints = jmxEndpoints; this.queryTimeout = queryTimeout; this.connectors = new ConcurrentHashMap<InetSocketAddress, JMXConnector>(jmxEndpoints.size()); this.serviceUrlTemplate = s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startPollingThread() {\n pool = ThreadUtil.startThread(polling);\n }", "Monitor createMonitor();", "public NetworkTableListenerPoller(NetworkTableInstance inst) {\n m_inst = inst;\n m_handle = NetworkTablesJNI.createListenerPoller(inst.getHandle());\n }", "@Bean(name = StreamSpan...
[ "0.5507583", "0.5361708", "0.5170371", "0.5138572", "0.51143175", "0.49932012", "0.49903655", "0.49411583", "0.4934835", "0.48817095", "0.48779783", "0.4858458", "0.4833963", "0.4826357", "0.4787023", "0.4783018", "0.47823796", "0.4780309", "0.47535175", "0.4729719", "0.47287...
0.6171087
0
Override to poll for certain JMX attributes.
protected abstract Object pollNode(MBeanServerConnection connection, String nodeName, int nodeIdx) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DeviceGatewayMonitorJMXMBean {\n\t/**\n\t * @return current tunnel connection count\n\t */\n\tint getTunnelConnectionCount();\n\n\t/**\n\t * @return heartbeat request times in last second\n\t */\n\tlong getHeartbeatCount();\n\n\t/**\n\t * @return list message request times in last second\n\t */\n\...
[ "0.5649131", "0.5625463", "0.5294299", "0.52489555", "0.51867664", "0.5115863", "0.5115863", "0.50516385", "0.5040431", "0.5018714", "0.4999777", "0.49963722", "0.48691422", "0.485563", "0.4849472", "0.48247704", "0.48211187", "0.4808356", "0.48012203", "0.47985587", "0.47791...
0.5266092
3
Initialize the contents of the frame.
private void initialize() throws IOException { frame = new JFrame(); frame.setBounds(100, 100, 483, 336); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().setLayout(null); JLabel lblPlayerView = new JLabel("Player view"); lblPlayerView.setBounds(10, 11, 96, 14); frame.getConte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r...
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.71079...
0.0
-1
/ Upon the 'Search' button being clicked, the value of the teamName JTextField is converted into a String with an appropriate variable name so that it can be passed as a parameter into the 'viewTeamStatistics' method. Additionally, the JTextArea of 'teamStatistics' is passed into the method 'viewTeamStatistics' in orde...
@Override public void actionPerformed(ActionEvent arg0) { try { String teamNameString = teamName.getText(); viewTeamStatistics(teamStatistics, teamNameString); } catch (IOException e) { e.printStackTrace(); } catch (HeadlessException e) { JOptionPane.showMessageDialog(null, "Error");...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() throws IOException {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 483, 336);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJLabel lblPlayerView = new JLabel(\"Player view\");\n\t\tlblPlayerView.setBounds(10, 11,...
[ "0.71249694", "0.612572", "0.61252856", "0.5774243", "0.56402546", "0.56256974", "0.55786437", "0.5532323", "0.55010885", "0.54337865", "0.5388997", "0.5386109", "0.53765506", "0.5369923", "0.5353846", "0.5344333", "0.5342104", "0.53419095", "0.5331003", "0.52717125", "0.5257...
0.6991525
1
This method is used to view the specific statistics of the team which the user has searched for. This is done by first executing the method 'tableSearch' and checking to see whether the team actually exists in the 'leaguestandings' table. If this returns a value of true then it has been validated that the team does exi...
public void viewTeamStatistics(JTextArea teamStatistics, String teamNameString) throws IOException, HeadlessException, SQLException { if (findTeam(teamNameString)) { teamStatistics.setText(null); Connection conn = DriverManager.getConnection("jdbc:sqlite:users"); Statement stmt = conn.createStatement()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void displayStats(ArrayList<String> standings){\n\t\tString[] parts;\n\t\tdouble avg, gamesB; //variables for fucntion calls\n\t\tSystem.out.println(\"----------------------------------------------------------------\");\n\t\tSystem.out.println(\"Teams: Wins: Loses: Pct: Games Behin...
[ "0.6037499", "0.5885667", "0.58504146", "0.58293", "0.5824716", "0.5810977", "0.57742447", "0.5773918", "0.5730185", "0.57255125", "0.56881964", "0.5645831", "0.55943716", "0.5588604", "0.558631", "0.5568965", "0.55385214", "0.55239415", "0.55230045", "0.55209845", "0.5489656...
0.7311282
0
This method takes in a parameter of 'teamName' as it must be able to access the name of the team that is being searched for. A connection is then created between the SQLite database 'users' and the Java program and a statement is initialised. The method then checks the database to see whether there is an entry in the d...
public boolean findTeam(String teamName) throws SQLException { Connection conn = DriverManager.getConnection("jdbc:sqlite:users"); Statement stmt = conn.createStatement(); String SQL = "select * from leaguestandings where TeamName = '" + teamName + "';"; ResultSet rset = stmt.executeQuery(SQL); if (rset.nex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkUserame(String name) throws SQLException {\n\t\tcheckUserameStatement.clearParameters();\n\t\tcheckUserameStatement.setString(1, name);\n\t\tResultSet result = checkUserameStatement.executeQuery();\n\t\tresult.next();\n\t\tboolean out = result.getInt(1) == 1;\n\t\tif (DEBUG) {\n\t\t\tSystem.ou...
[ "0.64998305", "0.6470523", "0.6362144", "0.62755644", "0.612209", "0.6118029", "0.6113675", "0.6078949", "0.6055894", "0.60247105", "0.5979351", "0.5927571", "0.58899623", "0.5856582", "0.58328646", "0.5818586", "0.58057004", "0.5776965", "0.5776288", "0.5763593", "0.56802905...
0.80128825
0
TODO Autogenerated method stub
@Override public void onActionMove(float x, float y) { }
{ "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 onActionDown(float x, float y) { }
{ "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 onActionMove(float x, float y) { }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public void onActionDown(float x, float y) { }
{ "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 onActionMove(float x, float y) { }
{ "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 onActionDown(float x, float y) { }
{ "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 onCloseAction() { }
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
private static int nextUniqueId = 0;
public Customer(String firstName, String lastName, LocalDateTime dob, String emailAddress, int customerID, String temporaryCustomerID, boolean loyaltyMember, boolean joinLoyaltyScheme, int loyaltyPointsNumber, String password, String username) { super(firstName, lastName,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int nextID() {\r\n\t\treturn ID++;\r\n\t}", "private int nextValidID() {\n return nextId++;\n }", "private static int nextInstanceID()\n {\n return baseID.incrementAndGet();\n }", "int nextId();", "static synchronized int nextID() {\n\t\treturn g_nID++;\n\t}", "priva...
[ "0.81401294", "0.8117768", "0.80667484", "0.8040662", "0.80350584", "0.79622364", "0.7874823", "0.7816584", "0.7734747", "0.772383", "0.769759", "0.7653908", "0.764766", "0.76432717", "0.7638787", "0.76054275", "0.7602502", "0.7582488", "0.7527408", "0.7514867", "0.75094384",...
0.0
-1
Creates new form Register
public Register() { initComponents(); setLocationRelativeTo(null); updateJTable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(\"/register\")\r\n\tpublic ModelAndView register(@ModelAttribute(\"registerForm\") final UserRegisterForm form) {\r\n\t\treturn new ModelAndView(\"users/register\");\r\n\t}", "public RegisterForm() {\n initComponents();\n }", "public RegisterForm() {\n initComponents();\n }"...
[ "0.74988073", "0.7378112", "0.7378112", "0.7378112", "0.7226365", "0.71316314", "0.7109775", "0.7062638", "0.70401347", "0.69042933", "0.68422097", "0.67940044", "0.67659473", "0.674207", "0.67415524", "0.670495", "0.6669819", "0.66309756", "0.66055095", "0.6573384", "0.65553...
0.0
-1
GENFIRST:event_createBtnActionPerformed TODO add your handling code here:
private void createBtnActionPerformed(java.awt.event.ActionEvent evt) { staff.setName(regName.getText()); staff.setID(regID.getText()); staff.setPassword(regPwd.getText()); staff.setPosition(regPos.getSelectedItem().toString()); staff.setGender(regGender.getSelectedItem().toStri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createActionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\n\t}", "private void createJButtonActionPerformed( ActionEvent event )\r\n {\r\n \r\n }", "public void actionPerformed( ActionEvent event )\r\n {\r\n createJButtonActionPerformed( event );\r\n ...
[ "0.8559808", "0.8241343", "0.76772773", "0.7536922", "0.7350369", "0.732626", "0.7307846", "0.7154335", "0.7139734", "0.7107992", "0.71025014", "0.70447105", "0.7031034", "0.69474113", "0.69385064", "0.69301337", "0.69281596", "0.6917969", "0.68518037", "0.68518037", "0.68366...
0.6993837
13
This constructs an instance from a factory and a notifier.
public JuristTypeItemProvider(AdapterFactory adapterFactory) { super(adapterFactory); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Factory() {\n this(getInternalClient());\n }", "public Factory() {\n\t\tsuper();\n\t}", "private VerifierFactory() {\n }", "public InternalFloaterFactory() {\n super();\n }", "public static Factory factory() {\n return ext_h::new;\n }", "public ObjectifyFa...
[ "0.6552412", "0.62663656", "0.61089873", "0.6078722", "0.60448784", "0.6043835", "0.6023037", "0.59145784", "0.5897592", "0.589741", "0.5891091", "0.587748", "0.5845498", "0.5832579", "0.5830015", "0.58202285", "0.58190596", "0.5806927", "0.5788405", "0.5746668", "0.57247263"...
0.0
-1
This returns the property descriptors for the adapted class.
@Override public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); addPersonPropertyDescriptor(object); addOrganizationPropertyDescriptor(object); addWishApparatusPropertyDescriptor(object); addLicensePro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PropertyDescriptor[] getPropertyDescriptors () {\n return desc;\n }", "public PropertyDescriptor[] getPropertyDescriptors() {\n return getPdescriptor();\n }", "@Override\n public PropertyDescriptor[] getPropertyDescriptors() {\n return getPdescriptor();\n }", "public L...
[ "0.74827915", "0.7437152", "0.73936653", "0.71689236", "0.69981146", "0.68416893", "0.6700892", "0.65058213", "0.64298385", "0.640673", "0.6359638", "0.62749296", "0.62353", "0.6228872", "0.6227949", "0.6221954", "0.612216", "0.6121374", "0.6098768", "0.6050726", "0.602448", ...
0.5723351
58
This adds a property descriptor for the Person feature.
protected void addPersonPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_JuristType_person_feature"), getString("_UI_JuristType_person_descripti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataModelDescriptorBuilder property(PropertyDescriptor descriptor) {\n this.properties.add(descriptor);\n return this;\n }", "@Override\n\tpublic void addProperty(String name) {\n\t}", "@Schema(hidden = true)\n public void setPerson(Person person) {\n this.person = person;\n }", ...
[ "0.6978542", "0.63420844", "0.6103939", "0.5832065", "0.5795183", "0.5744922", "0.56993", "0.5678076", "0.5677758", "0.5643461", "0.56267273", "0.558324", "0.55663145", "0.556243", "0.5559324", "0.55471164", "0.5535767", "0.55047715", "0.5490966", "0.54888713", "0.5471473", ...
0.71313393
0
This adds a property descriptor for the Organization feature.
protected void addOrganizationPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_JuristType_organization_feature"), getString("_UI_JuristType_orga...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void addOrganizationPropertyDescriptor(Object object) {\n itemPropertyDescriptors.add\n (createItemPropertyDescriptor\n (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n getResourceLocator(),\n getString(\"_UI_Proceedi...
[ "0.7489816", "0.70999736", "0.6068655", "0.5902736", "0.5796259", "0.5655985", "0.56230366", "0.5563624", "0.55518425", "0.5549134", "0.55406487", "0.5491595", "0.5458637", "0.54491097", "0.5441842", "0.5435506", "0.54347306", "0.5407651", "0.5407651", "0.53606325", "0.536011...
0.7323647
1
This adds a property descriptor for the Wish Apparatus feature.
protected void addWishApparatusPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_JuristType_wishApparatus_feature"), getString("_UI_PropertyDescr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enablePropertyAlive()\n {\n iPropertyAlive = new PropertyBool(new ParameterBool(\"Alive\"));\n addProperty(iPropertyAlive);\n }", "Builder addAccessibilityFeature(String value);", "public void setWishOfUser(boolean wish) {\n this.wishOfUSer = wish;\n }", "@Override\r...
[ "0.54913193", "0.5477159", "0.5399092", "0.5256752", "0.5241586", "0.52330756", "0.50880265", "0.5086409", "0.50653756", "0.50504184", "0.50237864", "0.50177604", "0.5005006", "0.48632815", "0.48404598", "0.4819419", "0.48088127", "0.480626", "0.47921863", "0.47716555", "0.47...
0.78887475
0
This adds a property descriptor for the License feature.
protected void addLicensePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_JuristType_license_feature"), getString("_UI_PropertyDescriptor_descri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Builder addLicense(String value);", "Builder addLicense(CreativeWork value);", "License createLicense();", "public String getLicense();", "public String getLicense() {\n\t\treturn license;\n\t}", "public void setLicense(String license) {\n\t\tthis.license = license;\n\t}", "@Value.Default\n public S...
[ "0.6443365", "0.6420278", "0.62014115", "0.6132375", "0.5978334", "0.58843124", "0.58816785", "0.5768707", "0.57586515", "0.5755575", "0.571727", "0.5713272", "0.56685", "0.5642906", "0.55972314", "0.55858636", "0.55502355", "0.54972", "0.54875755", "0.54821175", "0.54804665"...
0.7444036
0
This returns the label text for the adapted class.
public String getText(Object object) { String retVal = getString("_UI_JuristType_type"); if( object instanceof JuristType ) { retVal += " " + ( ( JuristType ) object ).getName( ); } return retVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getLabelText();", "java.lang.String getLabel();", "public java.lang.String getLabel();", "public abstract String getLabelText();", "public String getLabel() {\r\n\t\tif (label != null)\r\n\t\t\treturn label;\r\n\t\tif (classSimpleName==null)\r\n\t\t\treturn null;\r\n\t\treturn classSimpleName...
[ "0.7866285", "0.7862631", "0.780615", "0.78000176", "0.76271594", "0.755294", "0.755294", "0.755294", "0.755294", "0.7546993", "0.7546993", "0.745652", "0.7416987", "0.7279132", "0.7279132", "0.7279132", "0.725332", "0.7239711", "0.7218232", "0.7210016", "0.72058916", "0.72...
0.0
-1
Return the resource locator for this item provider's resources.
@Override public ResourceLocator getResourceLocator() { return ContestEditPlugin.INSTANCE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public ResourceLocator getResourceLocator ()\n {\n return ( (IChildCreationExtender)adapterFactory ).getResourceLocator ();\n }", "public ResourceLocator getResourceLocator() {\r\n\t\treturn MARTE_sbEditPlugin.INSTANCE;\r\n\t}", "@Override\n\tpublic ResourceLocator getResourceLocato...
[ "0.6166506", "0.59952855", "0.58907443", "0.58907443", "0.58907443", "0.58907443", "0.58637655", "0.58444345", "0.575855", "0.56416833", "0.5638885", "0.56322646", "0.56244195", "0.5604224", "0.5569597", "0.54828656", "0.54791564", "0.5466159", "0.546406", "0.5441816", "0.543...
0.50693405
44
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, ClassNotFoundException, SQLException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_...
[ "0.7005406", "0.66572356", "0.6604074", "0.65101326", "0.64464515", "0.64432913", "0.6439602", "0.64311135", "0.642902", "0.6425377", "0.6425377", "0.6420841", "0.6420841", "0.6420841", "0.6417446", "0.64133376", "0.64133376", "0.6399404", "0.6395047", "0.6395047", "0.6393712...
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (ClassNotFoundException ex) { Logger.getLogger(studb.class.getName()).log(Level.SEVERE,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro...
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234",...
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (ClassNotFoundException ex) { Logger.getLogger(studb.class.getName()).log(Level.SEVERE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197"...
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short d...
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", ...
0.0
-1
List arrival flight delays by airline.
List<AirlineFlightDelays> listArrivalFlightDelaysByAirlineAsAirlineFlightDelays();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight> \n getTransitFlightsList();", "public List<String> getAirlines(){\n List<String> airlines = new LinkedList<String>();\n for (Flight flight : flights) {\n airlines.add(flight.getAirline...
[ "0.7073379", "0.6991291", "0.62891066", "0.62106544", "0.6077333", "0.6074261", "0.6011611", "0.60084575", "0.5970261", "0.59341455", "0.59087884", "0.58789444", "0.5875854", "0.5866623", "0.58609164", "0.5846171", "0.58295614", "0.57869405", "0.5767436", "0.5759448", "0.5734...
0.85554284
0
Metadata: 05 = direction of screen back; bit 3 = reserved for future use
public BlockScreen(String assetName) { super(Material.CIRCUITS); this.setDefaultState(this.blockState.getBaseState().withProperty(FACING, EnumFacing.NORTH).withProperty(LEFT, false).withProperty(RIGHT, false).withProperty(UP, false).withProperty(DOWN, false)); this.setHardness(0.1F); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void back ()\n\t// one move up\n\t{\n\t\tState = 1;\n\t\tgetinformation();\n\t\tgoback();\n\t\tshowinformation();\n\t\tcopy();\n\t}", "public GImage getBack(){\r\n \t\t return back;\r\n\t }", "private void createBack() {\n String backString = \"\";\n if(host.locale == host.FIN...
[ "0.61406684", "0.58358485", "0.58344966", "0.5788202", "0.5758616", "0.57544005", "0.56655616", "0.5571645", "0.5553889", "0.5547028", "0.55315655", "0.5506677", "0.5502502", "0.54730034", "0.545795", "0.54184127", "0.540842", "0.5395645", "0.5392156", "0.53655875", "0.532403...
0.0
-1
/ Test that getContent() correctly returns the assigned TypeDefinition content object
public void testGetContent() { String content = "tdContentObject"; ((TypeDefinitionImpl) fTypeDefinition).setContent(content); assertEquals("The TypeDefinition content Object differs from that set -", content, fTypeDefinition.getContent()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testGetContentModel()\n\t{\n\t\tString contentModel = TypeDefinition.API_W3C_DOM; // one of the presets available\n\t\t((TypeDefinitionImpl) fTypeDefinition).setContentModel(contentModel);\n\t\tassertEquals(\"The TypeDefinition content model String differs from that set -\", contentModel, fTypeDefiniti...
[ "0.72962654", "0.68179387", "0.63424736", "0.62772924", "0.62427026", "0.6139671", "0.6105705", "0.6006561", "0.6006561", "0.60015774", "0.59813595", "0.59813595", "0.59813595", "0.59252125", "0.59252125", "0.5923554", "0.59233415", "0.59082824", "0.59065235", "0.59010935", "...
0.7668956
0
/ Test that getContentModel() correctly returns the assigned TypeDefinition content model reference
public void testGetContentModel() { String contentModel = TypeDefinition.API_W3C_DOM; // one of the presets available ((TypeDefinitionImpl) fTypeDefinition).setContentModel(contentModel); assertEquals("The TypeDefinition content model String differs from that set -", contentModel, fTypeDefinition.getContentModel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract ContentType getContnentType();", "public void testGetContent()\n\t{\n\t\tString content = \"tdContentObject\";\n\t\t((TypeDefinitionImpl) fTypeDefinition).setContent(content);\n\t\tassertEquals(\"The TypeDefinition content Object differs from that set -\", content, fTypeDefinition.getContent());\n\t}", ...
[ "0.6588233", "0.6443824", "0.5985358", "0.5770584", "0.57516634", "0.5717869", "0.5717869", "0.5666572", "0.56558657", "0.5621516", "0.56194526", "0.55941314", "0.55755657", "0.5504892", "0.55016476", "0.54945534", "0.5476639", "0.54668945", "0.54500234", "0.5429809", "0.5423...
0.782065
0
/ Test that getName() correctly returns the assigned TypeDefinition name
public void testGetName() { ((TypeDefinitionImpl)fTypeDefinition).setName(new QName("tdName")); assertEquals("The TypeDefinition name QName differs from that set-", "tdName", fTypeDefinition.getName().toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String typeName();", "public abstract String getTypeName();", "public String getTypeName();", "public String getTypeName();", "@Override\n public String getName() {\n return type.getName();\n }", "public Type type(String name);", "public String getTypeName() {\n \treturn typeName;\n ...
[ "0.75132954", "0.73520285", "0.7252674", "0.7252674", "0.71646404", "0.71547025", "0.69672936", "0.69230133", "0.69230133", "0.69230133", "0.69230133", "0.6893872", "0.6884012", "0.6884012", "0.6884012", "0.6884012", "0.6884012", "0.6884012", "0.6884012", "0.6884012", "0.6884...
0.72355694
4
/ Test that getSystem() correctly returns the assigned TypeDefinition type system
public void testGetSystem() { ((TypeDefinitionImpl) fTypeDefinition).setSystem(fTypeSystem); assertEquals("The TypeDefinition type system URI differs from that set-", fTypeSystem, fTypeDefinition.getSystem()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TypeSystemDefinition createTypeSystemDefinition();", "public String getSystemType() {\n \t\treturn fSystemType;\n \t}", "java.lang.String getMachineType();", "public TypeSystemNode getTypeSystemNode() {\r\n return typeSystemNode;\r\n }", "private String getType( )\n\t{\n\t\treturn this.getModuleName(...
[ "0.7500091", "0.7280685", "0.67928755", "0.6685668", "0.66174835", "0.6612406", "0.6596001", "0.6553866", "0.6515309", "0.65078515", "0.64684767", "0.64017886", "0.6333292", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.631506", "0.6...
0.74640554
1