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
end start() Make the pane for the left side of the window. It contains a ListView, with labels that show the selected index and selected item, a button for deleting the selected item, and a button and text input box that can be used to add an item at the end of the list.
private BorderPane makeNamePane() { /* The items in a ListView<String> are stored in an ObservableList<String>. * One way to add items is to make an observable list and pass it as * a parameter to the ListView constructor. */ ObservableList<String> names = FXCollectio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJSplitPane splitPane = new JSplitPane();\n\t\tsplitPane.setResizeWeight(0.1);\n\t\tframe.getContentPane().add(splitPane, BorderLayout.CENTER);\n\t\t...
[ "0.6606106", "0.6331734", "0.6310529", "0.63006574", "0.62435824", "0.62407786", "0.6183617", "0.61413455", "0.6130209", "0.6110942", "0.61007446", "0.6057759", "0.60573727", "0.6010284", "0.59828967", "0.5974918", "0.59593534", "0.59261245", "0.59199715", "0.5911672", "0.588...
0.6082861
11
end makeNumberPane() Make the pane for the right side of the window. It contains a ListView, with labels that show the selected index and selected item, a button for deleting the selected item, and a button and text input box that can be used to add an item at the end of the list.
private BorderPane makeNumberPane() { /* This method is similar to makeNamePane(), except for the way that initial * items are added to the list, and the use of a custom StringConverter. * (Also, it works with listView.getItems() directly, instead of having a * name for that ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setPane() {\n\t\tNewRecordPane RecListPane = new NewRecordPane();\n\t\trootPane = new HomePane(new MainLeftPane(),RecListPane);\n\t}", "private BorderPane makeNamePane() {\n \n /* The items in a ListView<String> are stored in an ObservableList<String>.\n * One way t...
[ "0.60016614", "0.59819084", "0.5711827", "0.56273824", "0.5585512", "0.5568742", "0.5532052", "0.5513027", "0.5454638", "0.541752", "0.5345466", "0.53405505", "0.53124195", "0.5310047", "0.5300933", "0.52988046", "0.52814317", "0.527262", "0.5254345", "0.5251892", "0.52253956...
0.72431034
0
This custom string converter will convert a bad input string to null, instead of just failing. And it will display a null value as "Bad Value" and an empty string value as 0.
public Integer fromString(String s) { if (s == null || s.trim().length() == 0) return 0; try { return Integer.parseInt(s); } catch (NumberFormatException e) { return null; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String nullConv(String value){\r\n\t\tif(value==null){\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "public void testConvertStringLocaleNull() {\n Object result = null;\n try {\n result = LocaleConvertUtils.convert(\"123\", Integer.class, null, \"#,###\");\n...
[ "0.6516868", "0.6485301", "0.64246464", "0.630606", "0.6291149", "0.6203946", "0.6203946", "0.6133731", "0.6033164", "0.5997689", "0.59553057", "0.5945708", "0.59347975", "0.58597165", "0.5827457", "0.5822908", "0.58125496", "0.5802091", "0.5788675", "0.5752974", "0.5735756",...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jRadioCandidat...
{ "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
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_music_list, container, false); mSongArrayList = SongLab.getInstance().getSongList(getActivity()); mRecycl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
TODO: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) { if (mListener != null) { mListener.onFragmentInteraction(uri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@...
[ "0.6619185", "0.65246344", "0.6473144", "0.6473144", "0.64351684", "0.6325494", "0.62368196", "0.6189416", "0.6158721", "0.61455715", "0.6123594", "0.6107332", "0.6101038", "0.6092755", "0.6049496", "0.6049496", "0.60442764", "0.604003", "0.604003", "0.6007846", "0.59999037",...
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public int...
[ "0.73247725", "0.72081506", "0.71355146", "0.7124321", "0.71224374", "0.7015002", "0.69757944", "0.69757944", "0.69757944", "0.69742304", "0.69678664", "0.696609", "0.696102", "0.6954336", "0.6943911", "0.69342005", "0.69299763", "0.692793", "0.69231224", "0.69097704", "0.690...
0.0
-1
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic ...
[ "0.71620077", "0.69440025", "0.6711487", "0.6510869", "0.6395964", "0.637318", "0.6347982", "0.63172585", "0.626037", "0.6206126", "0.6206126", "0.6204428", "0.6196331", "0.61786395", "0.617723", "0.61509335", "0.614605", "0.61263025", "0.6074019", "0.6056265", "0.59894925", ...
0.0
-1
Loads items to the app bar from menu.xml.
@Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.bookmarks_menu, menu); ArrayAdapter<String> bookmarkAdapter = new ArrayAdapter<String>(this,R.id.bookmarks_list,) return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplication...
[ "0.6526777", "0.64991456", "0.64977455", "0.6460772", "0.6386942", "0.63805217", "0.6374865", "0.6367973", "0.6366461", "0.6331399", "0.6258765", "0.6248067", "0.623869", "0.62314355", "0.62184495", "0.62161213", "0.62149286", "0.62126327", "0.6197968", "0.6195288", "0.618865...
0.0
-1
Resumes the browser activity.
private void returnToBrowse() { Intent intent = new Intent(this, BrowseActivity.class); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resume();", "public void resume() {}", "void resume();", "void resume();", "void resume();", "protected void resumeProcess() {\n algorithm.myresume();\n btnPause.setEnabled(true);\n btnResume.setEnabled(false);\n }", "public void resume() {\n }", "private void a...
[ "0.7631037", "0.7515222", "0.7431763", "0.7431763", "0.7431763", "0.7397198", "0.73754585", "0.7268001", "0.72014296", "0.71874887", "0.7184546", "0.71202093", "0.7101156", "0.7101156", "0.70920306", "0.7085695", "0.70431143", "0.70303255", "0.7024286", "0.70183754", "0.70183...
0.0
-1
every 50 points, insert randomly placed top blocks that break the pattern
public void updateTopBorder(){ if (player.getScore()%50 ==0){ topBorders.add(new TopBorder(BitmapFactory.decodeResource(getResources(),R.drawable.brick), topBorders.get(topBorders.size()-1).getX()+20, 0, (int)(rand.nextDouble()*maxBorderHei...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void randomPosBoats(GameData gameData) {\n int x0 = 0;\n int y0 = 0;\n for ( int n = gameData.getBoatArray().size()-1; n>=0; n--){\n Boat b = gameData.getBoatArray().get(n);\n Random rand = new Random();\n int l = b.getLength();\n\n boolean r...
[ "0.61448115", "0.61056715", "0.6101223", "0.5959594", "0.5941693", "0.59386194", "0.59292984", "0.59051436", "0.59010893", "0.5894972", "0.58329874", "0.58119977", "0.5809342", "0.5803121", "0.5772568", "0.57705677", "0.5767925", "0.5740037", "0.5719238", "0.56546676", "0.564...
0.0
-1
every 40 points, insert randomly placed bottom blocks that break the pattern
public void updateBottomBorder(){ if (player.getScore()%40 ==0){ botBorders.add(new BotBorder(BitmapFactory.decodeResource(getResources(),R.drawable.brick), botBorders.get(botBorders.size()-1).getX()+20, (int)(rand.nextDouble()*maxBorderHeight)+HEIGHT-maxBorde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void generateAreas() {\n\t\tPerlinNoise noise = new PerlinNoise(new Random().nextInt(), xmasTemplate.getScale(), xmasTemplate.getOctaves(), xmasTemplate.getPersistence());\r\n\t\tfor (int y = 0; y < getHeight(); y ++) {\r\n\t\t\tfor (int x = 0; x < getWidth(); x ++) {\r\n\t\t\t\tif (getVal...
[ "0.6454868", "0.6308734", "0.62771976", "0.6236685", "0.613744", "0.6069318", "0.60365224", "0.60281366", "0.60190576", "0.5979299", "0.59769917", "0.5933339", "0.58882135", "0.5872467", "0.5866913", "0.58618915", "0.58606637", "0.5811351", "0.58034897", "0.57822067", "0.5768...
0.0
-1
A constructor that allows the caller to pass in the HazelcastProcessingInstance (a Member instance), and client Session. Not intended for use in production.
V2TransferObjectTask(NodeComm nodeCommunications, SyncObject task, Session clientSession) { this.nodeCommunications = nodeCommunications; this.task = task; this.hzSystemMetaMap = hzStorageClient.getMap(hzSystemMetaMapString); this.identifierReservationService = nodeCommunications.getRese...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private MemberIdServer() {\n }", "@SneakyThrows\n public HazelcastInstance ignite () { // nice name for starting HZ))\n if (config == null) {\n config = new Config();\n }\n\n if (discoveryClient != null) {\n val selfAddress = discoveryClient.self().getAddress().getHostAddress()...
[ "0.5677853", "0.5627771", "0.5597659", "0.5398261", "0.5379782", "0.53344727", "0.53321016", "0.5239138", "0.52330726", "0.5225916", "0.52118695", "0.51936346", "0.5168849", "0.5081341", "0.50555515", "0.5053916", "0.5051457", "0.50126934", "0.4976591", "0.49737865", "0.49651...
0.0
-1
Attempts to process the item to be synchronized. Retry logic is implemented here such that the object is requeued for whatever reason. (failure of the thread to get a lock on the PID, sync waiting for v1 MN to incorporate sysmeta updates made via v1 CN API, or client timeouts)
@Override public SyncObjectState call() { SyncObjectState callState = SyncObjectState.STARTED; long remainingSleep = task.getSleepUntil() - System.currentTimeMillis(); if (remainingSleep > 0) { try { Thread.sleep(remainingSleep); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void processNewObject(SystemMetadata mnSystemMetadata) throws SynchronizationFailed, \n RetryableException, UnrecoverableException {\n\n // TODO: should new objects from replica nodes process or throw SyncFailed?\n // as per V1 logic (TransferObjectTask), this class currently does not chec...
[ "0.5508219", "0.54091513", "0.53959143", "0.53063965", "0.53063965", "0.5303704", "0.5212382", "0.5193233", "0.5190023", "0.51434886", "0.5138181", "0.5122155", "0.5102108", "0.5084549", "0.5040747", "0.50247836", "0.5012226", "0.50060916", "0.50020945", "0.50004023", "0.4994...
0.66769207
0
Retrieves the SystemMetadata from the target MemberNode.
private SystemMetadata retrieveMNSystemMetadata() throws SynchronizationFailed, RetryableException { SystemMetadata systemMetadata = null; try { systemMetadata = getSystemMetadataHandleRetry(nodeCommunications.getMnRead(), D1TypeBuilder.buildIdentifier(task.getPid())); logger.inf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public gov.niem.niem.structures._2_0.MetadataType getMetadata()\n {\n synchronized (monitor())\n {\n check_orphaned();\n gov.niem.niem.structures._2_0.MetadataType target = null;\n target = (gov.niem.niem.structures._2_0.MetadataType)get_store().find_element_user(M...
[ "0.55946773", "0.5511352", "0.5387785", "0.52930826", "0.52838844", "0.52816457", "0.52549756", "0.51641893", "0.51641893", "0.51641893", "0.51641893", "0.5031113", "0.50001484", "0.49971917", "0.49961048", "0.49951738", "0.49739826", "0.490305", "0.48962697", "0.48904696", "...
0.62163574
0
Tries to get the SystemMetadata from the node specified in the task. It has a retry strategy implemented for NotAuthorized and ServiceFailure. It also verifies that the retrieved SysMeta has a matching PID.
private SystemMetadata getSystemMetadataHandleRetry(Object readImpl, Identifier id) throws ServiceFailure, InvalidToken, NotImplemented, NotFound, RetryableException { SystemMetadata retrievedSysMeta = null; try { if (readImpl instanceof MNRead) { ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SystemMetadata retrieveMNSystemMetadata() throws SynchronizationFailed, RetryableException {\n SystemMetadata systemMetadata = null;\n try {\n systemMetadata = getSystemMetadataHandleRetry(nodeCommunications.getMnRead(), D1TypeBuilder.buildIdentifier(task.getPid()));\n l...
[ "0.73610044", "0.5334609", "0.52622396", "0.5016578", "0.49154356", "0.4795768", "0.476106", "0.47205943", "0.47193068", "0.47057456", "0.4673957", "0.4651385", "0.4648321", "0.46054018", "0.45374152", "0.45008552", "0.44983947", "0.44653848", "0.44508502", "0.44187653", "0.4...
0.6089177
1
Handles processing new objects
private void processNewObject(SystemMetadata mnSystemMetadata) throws SynchronizationFailed, RetryableException, UnrecoverableException { // TODO: should new objects from replica nodes process or throw SyncFailed? // as per V1 logic (TransferObjectTask), this class currently does not check ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void processExistingObjects(String uri) throws Exception {\n Map resp = k8s.callWS(uri);\n int responseCode = (int) resp.get(\"code\");\n if (responseCode != 200) {\n throw new Exception(\"Unable to load \" + uri + \" - \" + resp);\n }\n\n JSONParser parser = n...
[ "0.64619446", "0.6293866", "0.62053216", "0.6035673", "0.5936533", "0.5877521", "0.5809521", "0.57910043", "0.5738365", "0.5713372", "0.5682334", "0.56596017", "0.5633763", "0.5621869", "0.55586934", "0.55455244", "0.55057156", "0.54806584", "0.5474619", "0.541869", "0.541460...
0.56457114
12
overwrites existing ReplicaList with a list consisting of the source Node and the CN (if not a DATA object)
private SystemMetadata populateInitialReplicaList(SystemMetadata systemMetadata) throws SynchronizationFailed, RetryableException, UnrecoverableException { try { logger.debug(task.taskLabel() + " entering populateInitialReplicaList"); /* * DataONE Bug #2603 Synchronization ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addSource(ReplicaCatalogEntry rce) {\n List<ReplicaCatalogEntry> l = null;\n if (mSourceMap.containsKey(rce.getResourceHandle())) {\n // add the url to the existing list\n l = (List) mSourceMap.get(rce.getResourceHandle());\n // add the entry to the list\n...
[ "0.53372014", "0.5279187", "0.50874937", "0.5042462", "0.49924007", "0.49714702", "0.49554187", "0.49382496", "0.4926336", "0.49184483", "0.49041986", "0.48426294", "0.4824907", "0.48097315", "0.48050916", "0.47999695", "0.4790971", "0.4786983", "0.47816628", "0.47686213", "0...
0.59269714
0
For any sync task where the seriesId field is being set (any newObject task, and certain update tasks), we need to disallow collisions by different users and different series. Because synchronization order cannot be guaranteed, we can't rely on the obsoletes relationship, and so the checks will necessarily be incomplet...
private void validateSeriesId(SystemMetadata sysMeta, SystemMetadata previousSysMeta) throws NotAuthorized, UnrecoverableException, RetryableException { logger.debug(task.taskLabel() + " entering validateSeriesId..."); // return early in cases where the seriesId value isn't changing ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isSynchronizing() {\n\t\treturn false;\n\t}", "private void checkAndSetTempOrgEntitySet(OrganizationalEntity orgObj) {\n String id = orgObj.getId();\n if(tempOrgEntitySet.contains(id))\n return;\n synchronized(tempOrgEntitySet){\n if(!tempOrgEntitySe...
[ "0.5551693", "0.5314904", "0.5247277", "0.50890595", "0.49926105", "0.4949788", "0.49240485", "0.48856243", "0.4878215", "0.48695537", "0.47900888", "0.47681424", "0.47674212", "0.47597453", "0.47322297", "0.47301602", "0.4723154", "0.471208", "0.47038195", "0.46872222", "0.4...
0.66978097
0
Look for the equivalent authorization subjects for a given subject which can be either a person or a group. For a given person subject, it will returns the person itself, all equivalent identities and all groups (include the child groups) that itself and equivalent identities belong to. For a given group subject, it wi...
private static Set<Subject> findEquivalentSubjects(SubjectInfo subjectInfo, Subject targetSubject) { Set<Subject> subjects = new HashSet<Subject>(); //first to try if this is a person AuthUtils.findPersonsSubjects(subjects, subjectInfo, targetSubject); if(subjects.isEmpty() || subjects....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SubjectHierarchy getSubjectHierarchy();", "X500Principal getSubject();", "private static void findEquivalentSubjectsForGroup(Set<Subject> foundSubjects, SubjectInfo subjectInfo, Subject targetGroupSubject) {\n if (targetGroupSubject != null && targetGroupSubject.getValue() != null && !targetGroup...
[ "0.6166847", "0.5584898", "0.5330888", "0.5252975", "0.5129406", "0.5077555", "0.4972888", "0.4972888", "0.4972888", "0.49639183", "0.4958374", "0.494001", "0.494001", "0.49125704", "0.48552257", "0.48339626", "0.48289663", "0.48057953", "0.47969458", "0.47820678", "0.4779588...
0.68053854
0
Find all subjects which can be authorized as same as the given group subject (target). It is equivalent to the findPersonsSubjects method except that the target is a group subject. For a given group subject, its all equivalent subjects are itself and its recursive all ancestor groups. For example, group a is the parent...
private static void findEquivalentSubjectsForGroup(Set<Subject> foundSubjects, SubjectInfo subjectInfo, Subject targetGroupSubject) { if (targetGroupSubject != null && targetGroupSubject.getValue() != null && !targetGroupSubject.getValue().trim().equals("")) { //first, add it self ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Set<Subject> findEquivalentSubjects(SubjectInfo subjectInfo, Subject targetSubject) {\n Set<Subject> subjects = new HashSet<Subject>();\n //first to try if this is a person \n AuthUtils.findPersonsSubjects(subjects, subjectInfo, targetSubject);\n if(subjects.isEmpty() || ...
[ "0.66968167", "0.51185685", "0.5117102", "0.5101257", "0.47621718", "0.473328", "0.47052377", "0.47019362", "0.46984148", "0.46693856", "0.4526212", "0.4414996", "0.43892452", "0.4344314", "0.4336611", "0.43206516", "0.43106142", "0.43036813", "0.4298306", "0.42567655", "0.42...
0.66876715
1
determines whether or not the identifier already exists, either as a persistent or series ID (PID or SID).
private boolean resolvable(Identifier id, String field) throws UnrecoverableException, RetryableException { try { resolve(id,field); return true; } catch (NotFound e) { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Boolean exists(Session session, IRI identifier);", "boolean hasSysID();", "public abstract boolean oidExists(String oid);", "public boolean isSetIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(IDENTIFIER$0) != 0;\n...
[ "0.69209325", "0.67072946", "0.663128", "0.6590193", "0.6560459", "0.6553454", "0.6553454", "0.6553454", "0.6553454", "0.6553454", "0.6553454", "0.6553454", "0.6553454", "0.6553454", "0.6522896", "0.6414957", "0.6262482", "0.62571144", "0.62485826", "0.61812586", "0.6148325",...
0.0
-1
resolve the identifier and return the Head pid
private Identifier resolve(Identifier id, String field) throws NotFound, UnrecoverableException, RetryableException { logger.debug(task.taskLabel() + " entering resolve..."); try { ObjectLocationList oll = ((CNRead)nodeCommunications.getCnRead()).resolve(session, id); if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPid();", "int getSymbolicId();", "IPID getPID();", "org.hl7.fhir.Identifier getIdentifier();", "public String getHostId() {\n\t\treturn (hid);\n\t}", "@Override\n public String getId(@Nonnull IRI iri) {\n\n Preconditions.checkNotNull(iri, \"Default pid uri must not be null.\");\n ...
[ "0.59283096", "0.58648735", "0.5788297", "0.5741316", "0.5670882", "0.565194", "0.56501913", "0.5617712", "0.5604288", "0.55653256", "0.55329317", "0.5497334", "0.54674876", "0.54479635", "0.5431295", "0.5431295", "0.5431295", "0.5431295", "0.5431295", "0.5431295", "0.5431295...
0.0
-1
Create the object if a resource or sci meta object. Only register the systemmetadata if a sci data object.
private void createObject(SystemMetadata systemMetadata) throws RetryableException, UnrecoverableException, SynchronizationFailed { logger.info(buildStandardLogMessage(null, "Start CreateObject")); Identifier d1Identifier = new Identifier(); d1Identifier.setValue(systemMetadata.getIdentifier()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String createNewObject(OwResource resource_p, String strObjectClassName_p, OwPropertyCollection properties_p, OwPermissionCollection permissions_p, OwContentCollection content_p, OwObject parent_p, String strMimeType_p,\r\n String strMimeParameter_p) throws Exception;", "public abstrac...
[ "0.5838999", "0.5825716", "0.5805407", "0.5788283", "0.5746331", "0.5742547", "0.571114", "0.56664413", "0.5602527", "0.5571311", "0.55227107", "0.5517203", "0.5495938", "0.54830426", "0.5443572", "0.5427663", "0.5418507", "0.5417103", "0.5387633", "0.5358567", "0.5343942", ...
0.66173077
0
Compares the checksum in the systemMetadata against the checksum returned by an MNRead.getChecksum call to the source Member Node. Large objects are given a bye according to the property 'Synchronization.checksum.verify.size.bypass.threshold'
private void validateChecksum(SystemMetadata systemMetadata) throws InvalidSystemMetadata { logger.debug(task.taskLabel() + " entering validateChecksum..."); if (systemMetadata.getSize().compareTo(CHECKSUM_VERIFICATION_SIZE_BYPASS_THRESHOLD) > 0) { return; } Exception chec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean verifyChecksum() {\n\t\tChecksum cs = new Checksum();\n\t\tlong remaining = size - Tran.HEAD_SIZE;\n\t\tint pos = adr;\n\t\twhile (remaining > 0) {\n\t\t\tByteBuffer buf = stor.buffer(pos);\n\t\t\t// safe as long as chunk size < Integer.MAX_VALUE\n\t\t\tint n = (int) Math.min(buf.remaining(), remain...
[ "0.5595258", "0.5579873", "0.54182476", "0.5389541", "0.5377487", "0.5342797", "0.5273954", "0.52112144", "0.51973087", "0.51724005", "0.51422244", "0.51417637", "0.50896144", "0.50413316", "0.5031313", "0.502508", "0.498621", "0.4978644", "0.4960316", "0.49556252", "0.495410...
0.6318972
0
Validate the ResourceMap by parsing it with ResourceMapFactory if the format has a way of validating.
private void validateResourceMap(ObjectFormat format, InputStream sciMetaStream) throws UnsupportedType, InsufficientResources { logger.debug(task.taskLabel() + " entering validateResourceMap..."); boolean attemptValidation = false; if (format != null && format.getFormatType().equalsIgnoreCase...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract ValidationResult validateDataFormat(Map<String, String[]> requestParamsMap);", "public interface Validatable {\n\n void setStyleRequired(String tooltip);\n\n void setStyleInvalid(String tooltip);\n \n void setStyleValid();\n \n void setStyleNormal();\n \n ResourceMap getRe...
[ "0.57903826", "0.55036837", "0.51702553", "0.5119317", "0.50515956", "0.5001886", "0.48431918", "0.48239884", "0.48196468", "0.47662115", "0.47412604", "0.4739055", "0.4702144", "0.4698546", "0.46742713", "0.46683142", "0.46611613", "0.46596283", "0.46563363", "0.46232623", "...
0.7553433
0
To be called if the Object is already created. Updates can have 4 final outcomes: 1) changes not being allowed, 2) no changes to apply, 3) updates applied, or 4) addition of a replica. The first outcome is reached when the new system metadata contains one or more field values that cannot replace existing ones OR the CN...
private void processUpdates(SystemMetadata newSystemMetadata) throws RetryableException, UnrecoverableException, SynchronizationFailed { logger.debug(task.taskLabel() + " entering processUpdates..."); //XXX is cloning the identifier necessary? Identifier pid = D1TypeBuilder.cloneId...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createObject(SystemMetadata systemMetadata) throws RetryableException, UnrecoverableException, SynchronizationFailed {\n\n logger.info(buildStandardLogMessage(null, \"Start CreateObject\"));\n\n Identifier d1Identifier = new Identifier();\n d1Identifier.setValue(systemMetadata.get...
[ "0.6287772", "0.62119013", "0.61352587", "0.6076845", "0.6003919", "0.5979282", "0.5954015", "0.5897822", "0.5825725", "0.5777771", "0.5749151", "0.5590041", "0.55391777", "0.5517433", "0.551265", "0.5508153", "0.5496566", "0.5409969", "0.53801054", "0.5367728", "0.5367728", ...
0.59148324
7
checks to see if this systemMetadata is from an existing replica or is an unknown source that should be registered as a replica.
private void processPossibleNewReplica(SystemMetadata newSystemMetadata, SystemMetadata hzSystemMetadata, boolean isV1Object) throws RetryableException, UnrecoverableException { logger.debug(task.taskLabel() + " entering processPossibleNewReplica..."); for (Replica replica : hzSystemMetadata...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SystemMetadata populateInitialReplicaList(SystemMetadata systemMetadata) throws SynchronizationFailed, RetryableException, UnrecoverableException {\n\n try {\n logger.debug(task.taskLabel() + \" entering populateInitialReplicaList\");\n /*\n * DataONE Bug #2603 Sync...
[ "0.5556508", "0.55006355", "0.54988974", "0.544054", "0.5316856", "0.52872896", "0.51613945", "0.51548743", "0.51074094", "0.50013715", "0.49675262", "0.4943303", "0.49363795", "0.49070975", "0.49007928", "0.48943", "0.48609623", "0.48494297", "0.48203963", "0.4781405", "0.47...
0.5851574
0
Validate the new system metadata against the existing and propagate any updates as needed (to CN storage, to MN replica nodes)
private void processV1AuthoritativeUpdate(SystemMetadata mnSystemMetadata, SystemMetadata cnSystemMetadata) throws RetryableException, SynchronizationFailed, UnrecoverableException { logger.debug(task.taskLabel() + " entering processV1AuthoritativeUpdate..."); try { // this is a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void processUpdates(SystemMetadata newSystemMetadata)\n throws RetryableException, UnrecoverableException, SynchronizationFailed {\n\n logger.debug(task.taskLabel() + \" entering processUpdates...\");\n\n //XXX is cloning the identifier necessary?\n Identifier pid = D1TypeBu...
[ "0.7439581", "0.7245586", "0.6140462", "0.6028641", "0.5875935", "0.5768721", "0.55950147", "0.5582428", "0.5403763", "0.5392077", "0.5366017", "0.5361353", "0.53170925", "0.5298549", "0.52567333", "0.5255226", "0.5252543", "0.5201675", "0.5184229", "0.5161482", "0.51420116",...
0.6819835
2
Validate the new system metadata against the existing and propagate any updates as needed (to CN storage, to MN replica nodes)
private void processV2AuthoritativeUpdate(SystemMetadata mnSystemMetadata, SystemMetadataValidator validator) throws RetryableException, UnrecoverableException, SynchronizationFailed { logger.debug(task.taskLabel() + " entering processV2AuthoritativeUpdate..."); boolean validated = false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void processUpdates(SystemMetadata newSystemMetadata)\n throws RetryableException, UnrecoverableException, SynchronizationFailed {\n\n logger.debug(task.taskLabel() + \" entering processUpdates...\");\n\n //XXX is cloning the identifier necessary?\n Identifier pid = D1TypeBu...
[ "0.7438927", "0.6819112", "0.6141257", "0.60279524", "0.5875796", "0.5769609", "0.5596914", "0.5580676", "0.54040784", "0.5392233", "0.5366339", "0.5361681", "0.5316656", "0.5298767", "0.5256262", "0.52554494", "0.5251815", "0.52025634", "0.51841074", "0.5161491", "0.51431906...
0.72448254
1
Emit a log WARN if the formatId changes, and the FormatType changes. see Other failures in this method result in other log statements, and don't interrupt task outcome
private void logFormatTypeChanges(ObjectFormatIdentifier mnFormatId, ObjectFormatIdentifier cnFormatId) { try { if (mnFormatId.getValue().equals(cnFormatId.getValue())) { return; } String mnType = nodeCommunications.getCnCore().getFormat(mnFormatId).getForma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void logWarn(String warning);", "@Test\n\tpublic final void testWriteBadFormat() throws InterruptedException {\n\t\tString[] messageArray = new String[5];\n\t\tString fullMessage = null;\n\n\t\t// We aren't checking the actual returns, just making sure these don't result in\n\t\t// exceptions.\n\t\t// T...
[ "0.551837", "0.53386056", "0.52967685", "0.5266221", "0.52413684", "0.5240671", "0.51936877", "0.51930135", "0.5180447", "0.5171585", "0.51625305", "0.51504606", "0.5135286", "0.5121117", "0.5115561", "0.5070118", "0.5040576", "0.50212663", "0.50146514", "0.50121135", "0.5010...
0.6825702
0
Inform Member Nodes that may have a copy to refresh their version of the system metadata Problems notifying replica nodes results in a warning in the logs, but does not interfere with sync outcome.
private void notifyReplicaNodes(Identifier pid, boolean notifyAuthNode) { logger.info(buildStandardLogMessage(null, " Entering notifyReplicaNodes...")); SystemMetadata cnSystemMetadata = hzSystemMetaMap.get(pid); if (cnSystemMetadata != null) { List<Replica> prevReplicaList = cnSys...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void notifyReplicaNode(SystemMetadata cnSystemMetadata, NodeReference nodeId)\n throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound, InvalidRequest {\n\n // Characterize the replica MemberNode\n Node replicaNode = nodeCommunications.getNodeRegistryService()...
[ "0.7280971", "0.6128675", "0.60576516", "0.5677657", "0.55819046", "0.5362924", "0.53245574", "0.53217727", "0.53169656", "0.529745", "0.5283336", "0.525465", "0.525465", "0.5237806", "0.52371013", "0.5220908", "0.52203065", "0.5136451", "0.50965893", "0.5096218", "0.50919586...
0.64251834
1
Notifies a single Member Node that the systemMetadata has changed. Some logic is included to avoid sending the call to nodes that cannot do anything with the notification. (will only send to nodes that implement MNStorage)
private void notifyReplicaNode(SystemMetadata cnSystemMetadata, NodeReference nodeId) throws InvalidToken, NotAuthorized, NotImplemented, ServiceFailure, NotFound, InvalidRequest { // Characterize the replica MemberNode Node replicaNode = nodeCommunications.getNodeRegistryService().getNode(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update(Observable o, Object arg) {\n\n if (!(arg instanceof NodeChange)) {\n logger.severe(\"received unknown notification, ignore...\");\n return;\n }\n\n NodeChange nodeChange = (NodeChange) arg;\n if ((nodeChange.getCause() != NodeChange.MEMBER_JOINE...
[ "0.6395138", "0.59929293", "0.5802206", "0.5749814", "0.57212657", "0.564771", "0.55469304", "0.5539487", "0.545495", "0.5424674", "0.5401533", "0.53854674", "0.5349696", "0.53423303", "0.5329538", "0.52959615", "0.52877474", "0.5267996", "0.52407235", "0.52391946", "0.522912...
0.6377424
1
This method is used to rewrap the Exceptions that affect the processing of a TransferObjectTask, particularly various types of time out exceptions that we would want to retry instead of ending in SynchronizationFailed.
protected static void extractRetryableException(ServiceFailure sf) throws RetryableException { Throwable cause = null; if (sf != null && sf.getCause() != null) { // all of the client-server communication exceptions are wrapped by // ClientSideException by libclient_java ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void failWithExceptionOnExecutor(CronetException e) {\n mException = e;\n // Do not call into mCallback if request is complete.\n synchronized (mNativeStreamLock) {\n if (isDoneLocked()) {\n return;\n }\n mReadState = mWriteState = State....
[ "0.5878916", "0.5793733", "0.5671931", "0.5646686", "0.56261367", "0.553722", "0.5470514", "0.54579705", "0.54579294", "0.53803676", "0.5369081", "0.535077", "0.53436583", "0.53186584", "0.52905774", "0.5285228", "0.5277197", "0.52606815", "0.5257051", "0.52516264", "0.524698...
0.5791923
2
Private constructor should never be invoked.
private PtTlsReaderFactory() { throw new AssertionError(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Instantiation(){}", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "private Rekenhulp()\n\t{\n\t}", "private Util()\n {\n // Empty default ctor, defined to override access scope.\n }", "private SimpleRep...
[ "0.7887252", "0.7614295", "0.7591584", "0.74841136", "0.7449343", "0.7434376", "0.74335086", "0.7427393", "0.7396145", "0.7389513", "0.7373706", "0.73704463", "0.7361158", "0.73591655", "0.7357466", "0.7323693", "0.7319386", "0.72969997", "0.72831154", "0.72796655", "0.727742...
0.0
-1
Returns the identifier of the RFC 6876 protocol supported by a reader, that is created with this factory.
public static TcgProtocolBindingIdentifier getProtocolIdentifier() { return TcgTProtocolBindingEnum.TLS1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getProtocolId();", "long getRfIdentifier();", "public String getProtocolId();", "@NonNull\n public String getIdentifier() {\n return mProto.id;\n }", "@java.lang.Override\n public long getRfIdentifier() {\n return rfIdentifier_;\n }", "@java.lang.Override\n p...
[ "0.63264054", "0.62602645", "0.61136085", "0.58817774", "0.57315737", "0.5702461", "0.55748636", "0.5506563", "0.5499675", "0.54887867", "0.5472989", "0.5425724", "0.54167426", "0.5368092", "0.535712", "0.53536445", "0.532308", "0.5313895", "0.5311004", "0.5309404", "0.529936...
0.50021034
66
Creates a reader to parse an entire transport message compliant to RFC 6876 from a buffer of bytes to a Java object. The reader supports all elements, that are specified by RFC 5793 and allowed in a production environment.
@SuppressWarnings({ "unchecked", "rawtypes" }) public static TransportReader<TransportMessage> createProductionDefault() { /* * TODO Remove raw types and unchecked conversion. Unfortunately I could * not find a way around using raw types and unchecked conversion my be * s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Message decode(ByteBuffer buffer, Supplier<Message> messageSupplier);", "public void parse(byte[] buffer) {\n if (buffer == null) {\n MMLog.log(TAG, \"parse failed buffer = \" + null);\n return;\n }\n\n if (buffer.length >= 9) {\n this.msgHead = getIntVale(0,...
[ "0.60617834", "0.59248966", "0.57298654", "0.57000405", "0.558196", "0.5544765", "0.55323917", "0.5514095", "0.5506616", "0.5493599", "0.5442663", "0.5437247", "0.5420417", "0.54054", "0.537903", "0.53590965", "0.5354289", "0.53357536", "0.5309627", "0.52978706", "0.52959603"...
0.4867611
84
Creates a reader to parse an entire transport message compliant to RFC 6876 from a buffer of bytes to a Java object. The reader supports all elements, that are specified by RFC 6876 including the experimental message value.
@SuppressWarnings({ "unchecked", "rawtypes" }) public static TransportReader<TransportMessage> createExperimentalDefault() { /* * TODO Remove raw types and unchecked conversion. Unfortunately I could * not find a way around using raw types and unchecked conversion my be *...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Message decode(ByteBuffer buffer, Supplier<Message> messageSupplier);", "public void parse(byte[] buffer) {\n if (buffer == null) {\n MMLog.log(TAG, \"parse failed buffer = \" + null);\n return;\n }\n\n if (buffer.length >= 9) {\n this.msgHead = getIntVale(0,...
[ "0.60998064", "0.5760884", "0.5746358", "0.5633252", "0.5612319", "0.5609525", "0.5574885", "0.5543355", "0.55318147", "0.55284566", "0.5431898", "0.5391077", "0.53822553", "0.53400683", "0.53354454", "0.53290033", "0.5326759", "0.5322307", "0.5307468", "0.5303558", "0.530320...
0.51392543
45
tengo duda siempre me llega vacio y existe,ya no se q hacer
@POST @Path("adicionarTema") @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_JSON) public String adicionarTema(JsonObject tema) { JsonObject json = null; try { CriteriaBuilder cb = em.getCriteriaBuilder(); CriteriaQu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "public void carroNoEncontrado(){\n System.out.println(\"Su carro no fue removido porque no fue encontrado en el registro...
[ "0.6948607", "0.665624", "0.6564909", "0.6510473", "0.64630544", "0.6456587", "0.6449743", "0.64313376", "0.6418973", "0.6414113", "0.63497144", "0.63372946", "0.6319722", "0.63154906", "0.6311248", "0.6304003", "0.6295999", "0.6294684", "0.62894255", "0.6288048", "0.6285907"...
0.0
-1
Loads state from the solution repository
@Override public void createContent(OutputStream out) throws Exception { // make sure we have the path to load from IParameterProvider request = parameterProviders.get( "request" ); //$NON-NLS-1$ String fullPath = request.getStringParameter("filepath", null); //$NON-NLS-1$ if( fullPath == null ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void load() {\r\n\t\t\r\n\t\t//-- Clean\r\n\t\tthis.repositories.clear();\r\n\t\t\r\n\t\tloadInternal();\r\n\t\tloadExternalRepositories();\r\n\t\t\r\n\t}", "private void loadStateDatabase() {\n new Thread( new Runnable() {\n public void run() {\n try {\n ...
[ "0.73916996", "0.67120713", "0.6574225", "0.6493908", "0.62278545", "0.61503005", "0.61371344", "0.6092903", "0.60519624", "0.6018456", "0.60107344", "0.59907156", "0.5984714", "0.59589154", "0.5907585", "0.5905694", "0.5878863", "0.5875062", "0.5849301", "0.58320385", "0.582...
0.5196952
76
Writes an error message to the log and also to the provided output stream
protected void errorMessage( String message, OutputStream out ) throws IOException { out.write( message.getBytes() ); error(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void logError(String msg)\n {\n GlobeRedirector.errorLog.write(msg);\n }", "public void error(String msg) {\n boolean doit = level == Level.NONE || level == Level.INFO;\n if (log != System.err || !doit) {\n System.err.println(msg);\n }\n if (!doit) return;\n write(\"ERROR\", msg)...
[ "0.64873505", "0.61710125", "0.593017", "0.5868184", "0.57962763", "0.5759977", "0.57312226", "0.56885445", "0.5670775", "0.5556041", "0.55522674", "0.5517364", "0.5479795", "0.54796314", "0.54592776", "0.5452173", "0.539202", "0.5347944", "0.5333558", "0.53266567", "0.532352...
0.60527575
2
Returns the MIME type of the output stream contents text/text
@Override public String getMimeType() { return "text/text"; //$NON-NLS-1$ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getMimeType();", "java.lang.String getMimeType();", "String getMimeType();", "public String getMimeType();", "public String getExportMimeType(){\n return \"text/plain\";\n }", "MimeType mediaType();", "public String getMimeType ()\n {\n final String METHOD_NAME = \"getMim...
[ "0.7013795", "0.7013795", "0.69951785", "0.69313717", "0.6835335", "0.677136", "0.67380184", "0.6737126", "0.6667015", "0.6663193", "0.6631237", "0.65278494", "0.64239955", "0.64239955", "0.64239955", "0.6375083", "0.6375083", "0.6368129", "0.6335541", "0.6335541", "0.6323104...
0.69062465
4
creating a get mapping that retrieves all the products detail from the database
@GetMapping("/product") private List<Products> getAllProducts() { return ProductsService.getAllProducts(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Product> retrieveProducts();", "List<Product> getAllProducts();", "List<Product> getAllProducts();", "List<Product> getAllProducts();", "@GetMapping(\"/getproduct\")\n\t\tpublic List<Product> getAllProduct() {\n\t\t\tlogger.info(\"products displayed\");\n\t\t\treturn productService.getAllProduct();\n\...
[ "0.7433965", "0.74033886", "0.74033886", "0.74033886", "0.7290821", "0.72891587", "0.7222491", "0.71737343", "0.7147721", "0.71471775", "0.71471775", "0.70460784", "0.70156676", "0.7014058", "0.6962426", "0.69562316", "0.6954331", "0.6950511", "0.6941243", "0.69187504", "0.69...
0.7090557
11
creating a get mapping that retrieves the detail of a specific product
@GetMapping("/product/{productid}") private Products getProducts(@PathVariable("productid") int productid) { return productsService.getProductsById(productid); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(VERSION + \"/product/{productId}\")\n public ResponseEntity<?> retrieveProductDetails(@PathVariable(\"productId\") String productId) {\n ProductDto productDto = productCompositeService.fetchProductById(productId);\n return ResponseEntity.ok().body(productDto);\n }", "@RequestMappi...
[ "0.75877476", "0.75105053", "0.722481", "0.722481", "0.7217628", "0.7185689", "0.71431065", "0.70879626", "0.70854884", "0.70314115", "0.70188", "0.69745463", "0.6973809", "0.6966759", "0.6875617", "0.6850769", "0.6834487", "0.6801449", "0.6799216", "0.67897546", "0.67803115"...
0.70143837
11
creating a delete mapping that deletes a specified product
@DeleteMapping("/product/{productid}") private void deleteProduct(@PathVariable("productid") int productid) { productsService.delete(productid); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteProduct(Integer productId);", "public void deleteProduct(Supplier entity) {\n\t\t\r\n\t}", "void deleteProduct(Long id);", "@Writer\n int deleteByPrimaryKey(Integer productId);", "@Override\n\tpublic void doDelete(String product) throws SQLException {\n\t\t\n\t}", "@Override\n\tpublic void ...
[ "0.6978559", "0.6800681", "0.67574674", "0.6704983", "0.6699828", "0.66847247", "0.6654728", "0.6633596", "0.66264594", "0.6623657", "0.65484893", "0.6546975", "0.64868456", "0.6467763", "0.63765526", "0.63720673", "0.6342806", "0.6338051", "0.6296051", "0.6294575", "0.628925...
0.69840276
0
creating post mapping that post the product detail in the database
@PostMapping("/products") private int saveProduct(@RequestBody Products products) { productsService.saveOrUpdate(products); return products.getProductid(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Product postProduct(Product product);", "public JavaproductModel postproduct(JavaproductModel oJavaproductModel){\n\n \t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction =...
[ "0.7165496", "0.60967577", "0.596721", "0.5933482", "0.5924722", "0.5922234", "0.59096706", "0.5881706", "0.58398175", "0.5801482", "0.5797788", "0.57954067", "0.5777996", "0.5744642", "0.574301", "0.57333195", "0.57263285", "0.5720427", "0.56832516", "0.56776696", "0.5637109...
0.6073606
2
creating put mapping that updates the product detail
@PutMapping("/products") private Products update(@RequestBody Products products) { productsService.saveOrUpdate(products); return products; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Product updateProductInStore(Product product);", "@PutMapping(\"/update\")\r\n\tpublic ProductDetails updateProduct(@RequestBody @Valid UpdateProduct request) {\r\n\t\r\n\t\tProduct product = productService.searchProduct(request.getProduct_Id());\r\n\t\tproduct.setProduct_Name(request.getProduct_Name());\r\n\t\t...
[ "0.7098759", "0.7031791", "0.70242745", "0.69952536", "0.6959098", "0.68026966", "0.6752099", "0.6691079", "0.6664159", "0.6663038", "0.66317505", "0.65894806", "0.65769166", "0.65516704", "0.65260386", "0.65012753", "0.64991343", "0.6477331", "0.6449501", "0.6420137", "0.639...
0.71622086
0
private static final Logger log = Logger.getLogger(_RideServlet.class.getName());
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException { int i=0; int res=0; String name=req.getParameter("n"); name=name.substring(1); System.out.println(name); String names[]=getnames(name); if(names!=null) { Persis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ServletLogChute()\r\n {\r\n }", "public EmployeeServlet()\n {\n logger = Logger.getLogger(getClass().getName());\n }", "@Override\r\n public void init(ServletConfig arg0) throws ServletException {\n\r\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse resp...
[ "0.7118752", "0.6705525", "0.64172536", "0.64145535", "0.63753957", "0.63647497", "0.63125515", "0.6306969", "0.6293575", "0.6279108", "0.6266871", "0.62646306", "0.6259221", "0.6224596", "0.6195962", "0.61898714", "0.61840576", "0.6148489", "0.6146842", "0.6146842", "0.61468...
0.0
-1
TODO Autogenerated method stub
private String[] getnames(String name) { String tt[]={name}; //tt[0]=name; List<Integer> imp=new ArrayList<Integer>(); int temp=0; temp=name.length(); char ch[]=name.toCharArray(); for(int i=0;i<temp;i++){ if(ch[i]==' ') {imp.add(i); //System.out.println(i); ...
{ "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
Setter method for property loginUrl.
public void setLoginUrl(String loginUrl) { this.loginUrl = loginUrl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ZAttr(id=506)\n public void setWebClientLoginURL(String zimbraWebClientLoginURL) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraWebClientLoginURL, zimbraWebClientLoginURL);\n getProvisionin...
[ "0.6135587", "0.60267407", "0.590931", "0.58543587", "0.5809896", "0.5800574", "0.5715972", "0.57118684", "0.5709095", "0.56958276", "0.56958276", "0.5663867", "0.5657073", "0.56404835", "0.555584", "0.55548614", "0.554884", "0.54950356", "0.548149", "0.54755694", "0.5464372"...
0.75988156
0
Setter method for property returnUrl.
public void setReturnUrl(String returnUrl) { this.returnUrl = returnUrl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.jetbrains.annotations.Nullable()\n public final java.lang.String getReturnUrl() {\n return null;\n }", "public void setReturnPage(String returnPage) {this.returnPage=returnPage;}", "@org.jetbrains.annotations.NotNull()\n public final com.stripe.android.model...
[ "0.68336844", "0.587114", "0.57539415", "0.56769586", "0.56669027", "0.5495264", "0.54583454", "0.5431828", "0.5392857", "0.5363875", "0.5363875", "0.53625256", "0.53501314", "0.53496677", "0.5348209", "0.5341393", "0.5334648", "0.5326087", "0.53241366", "0.53205794", "0.5314...
0.7653684
0
Setter method for property excludeUrls.
public void setExcludeUrls(String[] excludeUrls) { this.excludeUrls = excludeUrls; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setExcludes(String excludes)\n {\n this.excludes = excludes;\n }", "public void setExcludedPattern(String excludedPattern)\n/* */ {\n/* 101 */ setExcludedPatterns(new String[] { excludedPattern });\n/* */ }", "@Override\n\tpublic String[] getRequestFilterIgnoreUrlPatterns() {\n...
[ "0.61681694", "0.5953234", "0.59032696", "0.5897804", "0.5846517", "0.5823816", "0.57652956", "0.5709546", "0.5653437", "0.56206816", "0.55976474", "0.55925107", "0.5589273", "0.55610216", "0.5555956", "0.54498625", "0.5440648", "0.5421144", "0.5406772", "0.5389754", "0.53815...
0.8225497
0
Creates a page object.
public static void configure (Configuration config, String browser) { CONFIG = config; DRIVER = config.getDriver(browser); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Page createPage();", "public RubyObject createObject() {\n\t\treturn (RubyObject) RGSSProjectHelper.getInterpreter(project).runScriptlet(\"return RPG::Troop::Page.new\");\n\t}", "public Page(PageInformation pageInfo)\n\t{\n\t\tthis.pageInfo = pageInfo;\n\t\tthis.contentInstructions = new ArrayList<ContentInstr...
[ "0.8537496", "0.70097595", "0.6914821", "0.68499196", "0.6848066", "0.68415064", "0.67417055", "0.66856104", "0.66197467", "0.6506016", "0.6387003", "0.63702756", "0.6370203", "0.63651067", "0.63635373", "0.6329013", "0.63038576", "0.6277223", "0.62742555", "0.6272909", "0.61...
0.0
-1
Find out whether an element is displayed.
protected boolean isElementDisplayed(By locator){ boolean displayed; try { displayed = new WebDriverWait(DRIVER, 10) .until(ExpectedConditions.presenceOfElementLocated(locator)).isDisplayed(); }catch (TimeoutException e){ displayed = false; } return displayed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean displayed(WebElement element){\n waitForVisibility(element);\n return element.isDisplayed();\n }", "public boolean isDisplayed();", "boolean isDisplayed();", "public boolean isVisible() {\n\t\treturn element.isDisplayed();\n\t}", "public boolean elementIsDisplayed(By ...
[ "0.82841396", "0.8117969", "0.81167376", "0.80463266", "0.7699715", "0.7686287", "0.76072913", "0.7593964", "0.7530391", "0.7472089", "0.74526656", "0.7434698", "0.7392023", "0.7378493", "0.7361907", "0.73438346", "0.726717", "0.72579396", "0.722393", "0.7221732", "0.72188705...
0.74675816
10
Click an element on the page after waiting for the element to become visible and enabled.
protected void click(By locator) { int waitTime = 10; WebElement element = new WebDriverWait(DRIVER, waitTime) .until(ExpectedConditions.visibilityOfElementLocated(locator)); element.click(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void waitForClickability(WebElement element){\n getWait().until(ExpectedConditions.elementToBeClickable(element));\n }", "public void waitAndClick(WebElement element) {\r\n\t\twaitForElement(element);\r\n\t\telement.click();\r\n\t}", "public void waitForElementToBeClickable(WebElement e...
[ "0.74418193", "0.74355453", "0.7401763", "0.7386952", "0.729412", "0.72287285", "0.71473974", "0.7087812", "0.7046207", "0.69939864", "0.69823223", "0.6919685", "0.6917372", "0.6908884", "0.6847641", "0.6835599", "0.6812979", "0.68068415", "0.67725", "0.6770591", "0.6744377",...
0.6659776
30
Click an element on the page and then wait for loading to complete.
protected void clickThenWait(By target, By staleElement) { int waitTime = 10; WebElement element = new WebDriverWait(DRIVER, waitTime) .until(ExpectedConditions.elementToBeClickable(target)); element.click(); new WebDriverWait(DRIVER, waitTime) .until(ExpectedConditions.invisibilityOfE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void waitAndClick(WebElement element) {\r\n\t\twaitForElement(element);\r\n\t\telement.click();\r\n\t}", "public static void waitForClickability(WebElement element){\n getWait().until(ExpectedConditions.elementToBeClickable(element));\n }", "public void waitForElementToBeClickable(WebElement e...
[ "0.7445294", "0.7266813", "0.7128309", "0.7109497", "0.690618", "0.6898915", "0.6878498", "0.6829636", "0.6825255", "0.68252516", "0.6816447", "0.6806559", "0.67957675", "0.67726505", "0.67429554", "0.6741503", "0.67154616", "0.6634827", "0.6633524", "0.66321486", "0.6629061"...
0.606476
74
Select the sign in link on top of the navigation bar.
public SignInPage selectSignInButtonFromNavBar() { new WebDriverWait (DRIVER, 5) .until (ExpectedConditions.presenceOfElementLocated(navigationBarSignInLinkLocator)) .click(); new WebDriverWait (DRIVER, 5).until( ExpectedConditions.stalenessOf(DRIVER.findElement(navigationBarSignInLinkLoc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ClickSignIn() {\n if (lnkSignIn.isDisplayed()) {\n lnkSignIn.click();\n }\n else{System.out.println(\"Sign In link is not displayed\");\n }\n }", "public void clickSignInLink()\n\t{\n \telementUtils.performElementClick(wbSignInLink);\n\t}", "public void...
[ "0.6494578", "0.63452035", "0.6324819", "0.63057303", "0.6278773", "0.6237754", "0.62314177", "0.61394495", "0.6004718", "0.5944885", "0.59426856", "0.590813", "0.5902769", "0.5862253", "0.5803918", "0.5780954", "0.5778603", "0.5752127", "0.5681327", "0.5656841", "0.55542713"...
0.71268
0
Return the username listed in the sign out dropdown menu.
public String getUsernameFromDropDown(){ String username = new WebDriverWait (DRIVER, 5).until( ExpectedConditions.presenceOfElementLocated(usernameLocator)).getText(); return username; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String menu_item_name() {\n\t\treturn driver.findElement(menu_item_logout).getText();\n\t}", "public void otherUserLoggedOut(String otherUsername){\n gui.removeUserFromDropDown(otherUsername);\n \n DefaultTableModel otherUserStatus = (DefaultTableModel) gui.getOtherUserStatus().getMod...
[ "0.6583025", "0.61293966", "0.6062577", "0.5973884", "0.5945132", "0.59023046", "0.59023046", "0.59023046", "0.59023046", "0.59023046", "0.59023046", "0.59023046", "0.59023046", "0.59023046", "0.5897402", "0.5847407", "0.5844231", "0.5837947", "0.5828295", "0.5821614", "0.578...
0.68421924
0
Determine whether or not the sign out drop down menu is present on the page.
public boolean isTheSignOutOptionAvailable(){ return isElementDisplayed(signOutDropDownMenuLocator); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean validateSignOnShadeIsClosed(){\n return getBtnSignOn().isDisplayed();\n }", "public void signOut(){\n \n\t // click on the sign in/out drop down menu\n \t new WebDriverWait (DRIVER, 5)\n \t .until (ExpectedConditions.presenceOfElementLocated(signOutDropDownMenuLocator))\n \t ....
[ "0.63040924", "0.62062967", "0.60606503", "0.5993609", "0.5783139", "0.5779536", "0.5779536", "0.57406974", "0.57277685", "0.5704696", "0.5660167", "0.55837756", "0.55774385", "0.5574026", "0.5552427", "0.55376405", "0.5502387", "0.54683065", "0.5450616", "0.539886", "0.53842...
0.8399206
0
Click the sign out button on the navigation bar.
public void signOut(){ // click on the sign in/out drop down menu new WebDriverWait (DRIVER, 5) .until (ExpectedConditions.presenceOfElementLocated(signOutDropDownMenuLocator)) .click(); // click on the sign out link DRIVER.findElement(signOutLinkLocator).click(); // w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void signOut(){\n\t\tActions action_logout = new Actions(driver);\n\t\tWebElement UI = driver.findElement(By.id(\"UserNavigationTabsContainer\"));\n\t\taction_logout.moveToElement(UI).build().perform();\n\t\tdriver.findElement(By.linkText(\"Logout\")).click();\t\n\t\tpause(500);\n\t}", "public void...
[ "0.829812", "0.82442313", "0.79495883", "0.7595266", "0.75059503", "0.74131036", "0.73881894", "0.73681146", "0.73542607", "0.7331205", "0.73007095", "0.72654575", "0.71855074", "0.71687627", "0.71680355", "0.71613866", "0.71422476", "0.71031886", "0.7085068", "0.7060751", "0...
0.81595576
2
JFormDesigner Component initialization DO NOT MODIFY //GENBEGIN:initComponents Generated using JFormDesigner Evaluation license Razvan Pasca
private void initComponents() { studentsBox = new JComboBox(); teachersBox = new JComboBox(); studentLoginButton = new JButton(); teacherLoginButton = new JButton(); //======== this ======== Container contentPane = getContentPane(); //---- studentLoginButton ---...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initComponents() {\n\n\t\tsetName(\"Form\"); // NOI18N\n\t\tsetLayout(new java.awt.BorderLayout());\n\t}", "public FormCompra() {\n initComponents();\n }", "private void initComponents() {\n lblHAUF = new JLabel();\n jdcHAUF = new JDateChooser();\n lblStation = new J...
[ "0.7595953", "0.74395686", "0.73978585", "0.7361663", "0.728274", "0.72617185", "0.7249605", "0.721602", "0.721602", "0.72104245", "0.71948415", "0.71862847", "0.71851397", "0.71025956", "0.7085622", "0.70856017", "0.7079729", "0.7057102", "0.7055382", "0.7052303", "0.7048903...
0.0
-1
// JFormDesigner End of variables declaration //GENEND:variables
public void setStudentsBox(List<Student> students) { for (Student student : students) studentsBox.addItem(student.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void designerInputModified(DesignerEvent e);", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel(...
[ "0.6373432", "0.6371217", "0.6331532", "0.62963235", "0.624024", "0.6238918", "0.6230137", "0.62227887", "0.6222006", "0.62173074", "0.61937815", "0.61610353", "0.6156852", "0.61529803", "0.6138971", "0.6131595", "0.6109945", "0.6109945", "0.61046124", "0.6098529", "0.6098479...
0.0
-1
/////////////////////////////////////////////////// ///////////////// Accessors /////////////////////// ///////////////////////////////////////////////////
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n void init() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void init() {\n }", "@Overri...
[ "0.644737", "0.6362254", "0.6319382", "0.62872803", "0.625894", "0.6236339", "0.6227045", "0.6220644", "0.621739", "0.62006336", "0.62006336", "0.62006336", "0.62006336", "0.62006336", "0.62006336", "0.6197319", "0.616872", "0.6162864", "0.6119834", "0.61016506", "0.61007375"...
0.0
-1
/////////////////////////////////////////////////// ///////////// API Implementation/////////////////// ///////////////////////////////////////////////////
@Override public String getCommandName() { return s_name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@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\tprotected void interr() {\n\t}", "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n...
[ "0.6436204", "0.64068377", "0.63694364", "0.63036925", "0.6245168", "0.6224216", "0.6086031", "0.60381514", "0.60381514", "0.6017039", "0.5998401", "0.5995181", "0.5992651", "0.5992651", "0.5992651", "0.5992651", "0.5992651", "0.5992651", "0.599259", "0.5974629", "0.59721917"...
0.0
-1
TODO Autogenerated method stub
private void computeHSPhase(int i) { HostService hs = new HostService(this.myConnection,this.shareVariable,this.vList); int hostId; int serviceId; String hostServiceSource; boolean isDowntime; boolean previousState; boolean previousDowntime = false; int hostStatusStateFlag; //0 if previousState is ...
{ "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
/ If there is no callback chain defined, we create in the folder. If the folder is null, we create in the container of mainDoc, or in mainDoc if it is a container
@Override public DocumentModel createDocument(CoreSession session, Blob content, DocumentModel mainDoc, DocumentModel folder) throws IOException { return createDocument(session, content, mainDoc, folder, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addFolder(){\n }", "public void createFolder (String folderName, long parentFolderId, Long userId) throws BookMarkException;", "public static void createFolder(IResource res) {\r\n \t\tif (res instanceof IFolder) {\r\n \t\t\tIFolder folder=(IFolder)res;\r\n \t\t\t\r\n \t\t\tif (folder.exists() ==...
[ "0.59296507", "0.57063484", "0.5553277", "0.55496144", "0.55254894", "0.5514716", "0.5506389", "0.5495695", "0.5469492", "0.54506123", "0.53854024", "0.53362405", "0.5254781", "0.5241315", "0.5216613", "0.51885515", "0.51653403", "0.5095194", "0.5039554", "0.502726", "0.50033...
0.51006466
17
on the MainActivity execute the AsyncTask
@Test public void testAsyncTask() throws InterruptedException, ExecutionException { JokesAsyncTask endpointsAsyncTask = new JokesAsyncTask(new JokesAsyncTask.Callback() { @Override public void onFinished(String result) { } }); endpointsAsyncTask.execute()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void onPreExecute() {\n\t\tsuper.onPreExecute();\n\t\tsetURL();\n\t\tMainActivity.ansyncTask=true;\n\t}", "@Override\n\t\t\tpublic void onAsyncTaskPreExecute(CustomAsyncTask customAsyncTask) \n\t\t\t{\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAsyncTaskPreExecute(CustomAsyncTas...
[ "0.7585222", "0.7311364", "0.7311364", "0.72656035", "0.7242171", "0.7227298", "0.72261906", "0.72261906", "0.72228324", "0.7104991", "0.70515", "0.70515", "0.6982057", "0.6960844", "0.6942992", "0.69322526", "0.6931965", "0.6862836", "0.679815", "0.679815", "0.679815", "0....
0.0
-1
This is the getter method this will return the attribute value. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public String getCloudName() { return cloudName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute_value() {\n return attribute_value;\n }", "@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\...
[ "0.74121463", "0.69540787", "0.68378717", "0.6751624", "0.6733765", "0.66725814", "0.66693765", "0.6603605", "0.6583904", "0.6520083", "0.6503999", "0.64831287", "0.64831287", "0.64634097", "0.6425562", "0.6418829", "0.6387779", "0.63683814", "0.62688303", "0.6259707", "0.625...
0.0
-1
This is the setter method to the attribute. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public void setCloudName(String cloudName) { this.cloudName = cloudName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "void setInternal(ATTRIBUTES attribute, Object iValue);", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "protected abstract void setContextAttribute(String name, Object value);", "public void s...
[ "0.6310565", "0.621858", "0.6121026", "0.6069062", "0.60446995", "0.6011475", "0.60019517", "0.5968064", "0.5946621", "0.5930758", "0.5854498", "0.58204186", "0.57676613", "0.57432693", "0.57176495", "0.5712747", "0.5667798", "0.56660265", "0.5630822", "0.5619142", "0.5614075...
0.0
-1
This is the getter method this will return the attribute value. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public String getCloudUuid() { return cloudUuid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute_value() {\n return attribute_value;\n }", "@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\...
[ "0.7413329", "0.6955642", "0.68389755", "0.67527795", "0.6735429", "0.667373", "0.66711426", "0.66057533", "0.6585082", "0.6520749", "0.6505938", "0.64843214", "0.64843214", "0.646506", "0.6427082", "0.64201754", "0.6386599", "0.63711005", "0.62684417", "0.6261367", "0.625097...
0.0
-1
This is the setter method to the attribute. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public void setCloudUuid(String cloudUuid) { this.cloudUuid = cloudUuid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "void setInternal(ATTRIBUTES attribute, Object iValue);", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "protected abstract void setContextAttribute(String name, Object value);", "public void s...
[ "0.6310634", "0.6219053", "0.612285", "0.6069176", "0.6041681", "0.6012963", "0.60025465", "0.596833", "0.59458154", "0.5930601", "0.5855411", "0.58203584", "0.5767975", "0.5743694", "0.5717758", "0.5714462", "0.56671447", "0.56637305", "0.5630109", "0.5619218", "0.56137735",...
0.0
-1
This is the getter method this will return the attribute value. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public String getHostName() { return hostName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute_value() {\n return attribute_value;\n }", "@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\...
[ "0.74121463", "0.69540787", "0.68378717", "0.6751624", "0.6733765", "0.66725814", "0.66693765", "0.6603605", "0.6583904", "0.6520083", "0.6503999", "0.64831287", "0.64831287", "0.64634097", "0.6425562", "0.6418829", "0.6387779", "0.63683814", "0.62688303", "0.6259707", "0.625...
0.0
-1
This is the setter method to the attribute. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public void setHostName(String hostName) { this.hostName = hostName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "void setInternal(ATTRIBUTES attribute, Object iValue);", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "protected abstract void setContextAttribute(String name, Object value);", "public void s...
[ "0.6310565", "0.621858", "0.6121026", "0.6069062", "0.60446995", "0.6011475", "0.60019517", "0.5968064", "0.5946621", "0.5930758", "0.5854498", "0.58204186", "0.57676613", "0.57432693", "0.57176495", "0.5712747", "0.5667798", "0.56660265", "0.5630822", "0.5619142", "0.5614075...
0.0
-1
This is the getter method this will return the attribute value. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public String getHostUuid() { return hostUuid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute_value() {\n return attribute_value;\n }", "@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\...
[ "0.7413329", "0.6955642", "0.68389755", "0.67527795", "0.6735429", "0.667373", "0.66711426", "0.66057533", "0.6585082", "0.6520749", "0.6505938", "0.64843214", "0.64843214", "0.646506", "0.6427082", "0.64201754", "0.6386599", "0.63711005", "0.62684417", "0.6261367", "0.625097...
0.0
-1
This is the setter method to the attribute. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public void setHostUuid(String hostUuid) { this.hostUuid = hostUuid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "void setInternal(ATTRIBUTES attribute, Object iValue);", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "protected abstract void setContextAttribute(String name, Object value);", "public void s...
[ "0.6310634", "0.6219053", "0.612285", "0.6069176", "0.6041681", "0.6012963", "0.60025465", "0.596833", "0.59458154", "0.5930601", "0.5855411", "0.58203584", "0.5767975", "0.5743694", "0.5717758", "0.5714462", "0.56671447", "0.56637305", "0.5630109", "0.5619218", "0.56137735",...
0.0
-1
This is the getter method this will return the attribute value. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public String getReason() { return reason; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute_value() {\n return attribute_value;\n }", "@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\...
[ "0.74121463", "0.69540787", "0.68378717", "0.6751624", "0.6733765", "0.66725814", "0.66693765", "0.6603605", "0.6583904", "0.6520083", "0.6503999", "0.64831287", "0.64831287", "0.64634097", "0.6425562", "0.6418829", "0.6387779", "0.63683814", "0.62688303", "0.6259707", "0.625...
0.0
-1
This is the setter method to the attribute. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public void setReason(String reason) { this.reason = reason; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "void setInternal(ATTRIBUTES attribute, Object iValue);", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "protected abstract void setContextAttribute(String name, Object value);", "public void s...
[ "0.6310565", "0.621858", "0.6121026", "0.6069062", "0.60446995", "0.6011475", "0.60019517", "0.5968064", "0.5946621", "0.5930758", "0.5854498", "0.58204186", "0.57676613", "0.57432693", "0.57176495", "0.5712747", "0.5667798", "0.56660265", "0.5630822", "0.5619142", "0.5614075...
0.0
-1
This is the getter method this will return the attribute value. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public String getSeCookie() { return seCookie; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute_value() {\n return attribute_value;\n }", "@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\...
[ "0.7413329", "0.6955642", "0.68389755", "0.67527795", "0.6735429", "0.667373", "0.66711426", "0.66057533", "0.6585082", "0.6520749", "0.6505938", "0.64843214", "0.64843214", "0.646506", "0.6427082", "0.64201754", "0.6386599", "0.63711005", "0.62684417", "0.6261367", "0.625097...
0.0
-1
This is the setter method to the attribute. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public void setSeCookie(String seCookie) { this.seCookie = seCookie; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "void setInternal(ATTRIBUTES attribute, Object iValue);", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "protected abstract void setContextAttribute(String name, Object value);", "public void s...
[ "0.6310634", "0.6219053", "0.612285", "0.6069176", "0.6041681", "0.6012963", "0.60025465", "0.596833", "0.59458154", "0.5930601", "0.5855411", "0.58203584", "0.5767975", "0.5743694", "0.5717758", "0.5714462", "0.56671447", "0.56637305", "0.5630109", "0.5619218", "0.56137735",...
0.0
-1
This is the getter method this will return the attribute value. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public String getSeGrpName() { return seGrpName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute_value() {\n return attribute_value;\n }", "@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\...
[ "0.74121463", "0.69540787", "0.68378717", "0.6751624", "0.6733765", "0.66725814", "0.66693765", "0.6603605", "0.6583904", "0.6520083", "0.6503999", "0.64831287", "0.64831287", "0.64634097", "0.6425562", "0.6418829", "0.6387779", "0.63683814", "0.62688303", "0.6259707", "0.625...
0.0
-1
This is the setter method to the attribute. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public void setSeGrpName(String seGrpName) { this.seGrpName = seGrpName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "void setInternal(ATTRIBUTES attribute, Object iValue);", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "protected abstract void setContextAttribute(String name, Object value);", "public void s...
[ "0.6310565", "0.621858", "0.6121026", "0.6069062", "0.60446995", "0.6011475", "0.60019517", "0.5968064", "0.5946621", "0.5930758", "0.5854498", "0.58204186", "0.57676613", "0.57432693", "0.57176495", "0.5712747", "0.5667798", "0.56660265", "0.5630822", "0.5619142", "0.5614075...
0.0
-1
This is the getter method this will return the attribute value. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public String getSeGrpUuid() { return seGrpUuid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute_value() {\n return attribute_value;\n }", "@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\...
[ "0.7413329", "0.6955642", "0.68389755", "0.67527795", "0.6735429", "0.667373", "0.66711426", "0.66057533", "0.6585082", "0.6520749", "0.6505938", "0.64843214", "0.64843214", "0.646506", "0.6427082", "0.64201754", "0.6386599", "0.63711005", "0.62684417", "0.6261367", "0.625097...
0.0
-1
This is the setter method to the attribute. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public void setSeGrpUuid(String seGrpUuid) { this.seGrpUuid = seGrpUuid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "void setInternal(ATTRIBUTES attribute, Object iValue);", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "protected abstract void setContextAttribute(String name, Object value);", "public void s...
[ "0.6310634", "0.6219053", "0.612285", "0.6069176", "0.6041681", "0.6012963", "0.60025465", "0.596833", "0.59458154", "0.5930601", "0.5855411", "0.58203584", "0.5767975", "0.5743694", "0.5717758", "0.5714462", "0.56671447", "0.56637305", "0.5630109", "0.5619218", "0.56137735",...
0.0
-1
This is the getter method this will return the attribute value. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public String getSeName() { return seName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute_value() {\n return attribute_value;\n }", "@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\...
[ "0.74121463", "0.69540787", "0.68378717", "0.6751624", "0.6733765", "0.66725814", "0.66693765", "0.6603605", "0.6583904", "0.6520083", "0.6503999", "0.64831287", "0.64831287", "0.64634097", "0.6425562", "0.6418829", "0.6387779", "0.63683814", "0.62688303", "0.6259707", "0.625...
0.0
-1
This is the setter method to the attribute. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public void setSeName(String seName) { this.seName = seName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "void setInternal(ATTRIBUTES attribute, Object iValue);", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "protected abstract void setContextAttribute(String name, Object value);", "public void s...
[ "0.6310565", "0.621858", "0.6121026", "0.6069062", "0.60446995", "0.6011475", "0.60019517", "0.5968064", "0.5946621", "0.5930758", "0.5854498", "0.58204186", "0.57676613", "0.57432693", "0.57176495", "0.5712747", "0.5667798", "0.56660265", "0.5630822", "0.5619142", "0.5614075...
0.0
-1
This is the getter method this will return the attribute value. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public String getSeUuid() { return seUuid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute_value() {\n return attribute_value;\n }", "@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\...
[ "0.7413329", "0.6955642", "0.68389755", "0.67527795", "0.6735429", "0.667373", "0.66711426", "0.66057533", "0.6585082", "0.6520749", "0.6505938", "0.64843214", "0.64843214", "0.646506", "0.6427082", "0.64201754", "0.6386599", "0.63711005", "0.62684417", "0.6261367", "0.625097...
0.0
-1
This is the setter method to the attribute. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public void setSeUuid(String seUuid) { this.seUuid = seUuid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "void setInternal(ATTRIBUTES attribute, Object iValue);", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "protected abstract void setContextAttribute(String name, Object value);", "public void s...
[ "0.6310634", "0.6219053", "0.612285", "0.6069176", "0.6041681", "0.6012963", "0.60025465", "0.596833", "0.59458154", "0.5930601", "0.5855411", "0.58203584", "0.5767975", "0.5743694", "0.5717758", "0.5714462", "0.56671447", "0.56637305", "0.5630109", "0.5619218", "0.56137735",...
0.0
-1
This is the getter method this will return the attribute value. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public Integer getStatusCode() { return statusCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAttribute_value() {\n return attribute_value;\n }", "@Nonnull\n public final synchronized String getAttributeValue() {\n return attributeValue;\n }", "@Override\r\n\tpublic String getValue() {\r\n\t\t//\r\n\t\treturn this.elementWrapper.getAttribute(this.attribute);\r\n\...
[ "0.74121463", "0.69540787", "0.68378717", "0.6751624", "0.6733765", "0.66725814", "0.66693765", "0.6603605", "0.6583904", "0.6520083", "0.6503999", "0.64831287", "0.64831287", "0.64634097", "0.6425562", "0.6418829", "0.6387779", "0.63683814", "0.62688303", "0.6259707", "0.625...
0.0
-1
This is the setter method to the attribute. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Controller as null.
public void setStatusCode(Integer statusCode) { this.statusCode = statusCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}", "void setInternal(ATTRIBUTES attribute, Object iValue);", "@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}", "protected abstract void setContextAttribute(String name, Object value);", "public void s...
[ "0.6310565", "0.621858", "0.6121026", "0.6069062", "0.60446995", "0.6011475", "0.60019517", "0.5968064", "0.5946621", "0.5930758", "0.5854498", "0.58204186", "0.57676613", "0.57432693", "0.57176495", "0.5712747", "0.5667798", "0.56660265", "0.5630822", "0.5619142", "0.5614075...
0.0
-1
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA...
[ "0.78847593", "0.75493765", "0.74971926", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0.746168", "0...
0.0
-1
TODO:Critical: () if instance state is saved during the phases are loading, spinners stay empty!!!
@Override protected void onSaveInstanceState(Bundle outState) { Log.d(TAG,"onSaveInstanceState called!"); outState.putParcelableArrayList(WORKTYPEITEMLIST_PARCEL_ID, workTypeList); selected = false; // otherwise onItemSelected fires after unparceling in onCreate super.onSaveInstanceState(outState); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void initializeSpinners();", "protected abstract void setupSpinners();", "public void initSpinner() {\n }", "@Override\n public void onLoad() {\n super.onLoad();\n instance = this;\n running = true;\n }", "private void loadingPhase() {\n try { Thread.sleep(10000); } ...
[ "0.6663504", "0.64873815", "0.6391457", "0.62137437", "0.6056952", "0.6047243", "0.6022386", "0.60157585", "0.5990647", "0.5932612", "0.58982396", "0.5874497", "0.5850554", "0.5713132", "0.570794", "0.5685983", "0.5666315", "0.56659585", "0.5662106", "0.56475246", "0.5641381"...
0.0
-1
TODO: For some reason, I need to recreate the whole spinner, adapter, listener deal in order to get the Spinner to refresh. Please debug & optimize. DO NOT CALL FROM ASyncTask threads, will fail! These also do have the sideeffect that the onItemSelected will get called. Thus, the binary switch there on that method.
private void workTypeSpinnerRefreshHack() { this.workTypeAdapter.notifyDataSetChanged(); workTypeNameSpinner = (Spinner)findViewById(R.id.workTypeNameSpinner); workTypeAdapter = new ArrayAdapter(this, android.R.layout.simple_spinner_dropdown_item,workTypeList); workTypeAdapter.setDropDownViewResourc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {\n spinnerItemSelected = parent.getItemAtPosition(pos).toString();\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\n quanHu...
[ "0.71557397", "0.71086246", "0.7058674", "0.7050875", "0.7050875", "0.7050875", "0.7015923", "0.69839483", "0.69606113", "0.69606113", "0.6945205", "0.69396764", "0.69320565", "0.69080293", "0.6890142", "0.6884126", "0.6880159", "0.6880159", "0.6878414", "0.6873743", "0.68661...
0.74817544
0
TODO Check if we really have any need for this (except that the interface requirement?)
@Override public void onNothingSelected(AdapterView<?> arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override public int describeContents() { return 0; }", "@Override\n\tpublic void comer()...
[ "0.5860555", "0.58333015", "0.5771987", "0.5763604", "0.5739156", "0.5734342", "0.57036567", "0.5692628", "0.5692628", "0.5692628", "0.5692628", "0.5692628", "0.5692628", "0.5670296", "0.5660065", "0.56323683", "0.5625588", "0.56184924", "0.560353", "0.5589249", "0.5581564", ...
0.0
-1
Constructs a neuron parameter object.
public MNeuronParams(double a, double b, double c, double d, double tau, double ap, double am, boolean isExcitatory, MVec3f spatialCoords) { this.a = a; this.b = b; this.c = c; this.d = d; this.tau = tau; this.ap = ap; this.am = am; this.isExcitatory = isExcitatory; this.spatialCoords = new MVe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Parameter createParameter();", "Param createParam();", "Param createParam();", "Param createParam();", "private ConfigurationObject createParam(int num, String type, String value) throws Exception {\r\n ConfigurationObject param = new DefaultConfigurationObject(\"param\" + num);\r\n param.set...
[ "0.70771253", "0.6737006", "0.6737006", "0.6737006", "0.6485067", "0.62303656", "0.6140372", "0.6067156", "0.6032723", "0.5980968", "0.5937598", "0.5931088", "0.58842343", "0.58778214", "0.5863638", "0.5829775", "0.5828912", "0.58259577", "0.5818153", "0.57960343", "0.579367"...
0.55687815
29
Print all value of list using Functional Programming
public void printWithFP(List<String> list) { list.stream().forEach(item -> System.out.println("item: " + item)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printList(){\n myList.forEach(System.out::println);\n }", "void printList();", "public static void main(String[] args) {\n\t\tList<Integer> numberList = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);\r\n\t\t\t\t\r\n\t\t//Stampa il doppio di ogni numero\r\n\t\tSystem.out.println(\"Stampa il...
[ "0.6669612", "0.65995896", "0.6550005", "0.6544551", "0.6536785", "0.64659226", "0.6444344", "0.6435527", "0.6426829", "0.6400595", "0.6375183", "0.63191926", "0.6317206", "0.6304537", "0.6274826", "0.6242265", "0.62127066", "0.6181707", "0.61108977", "0.60964483", "0.6091609...
0.6590996
2
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() { btnGroupTurno = new javax.swing.ButtonGroup(); jPanel1 = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); jLabel7...
{ "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
TODO Autogenerated method stub
public static void main(String[] args) { HashSet<Emp>hm = new HashSet<Emp>((Collection<? extends Emp>) new EnameComp()); hm.add(new Emp(10,"B")); hm.add(new Emp(20,"A")); // Collections.sort(hm, new EnameComp()); for(Emp e : hm){ System.out.println(e.eid+e.ename); } }
{ "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
Initialize some integers to check
public static void main(String[] args) { int number1 = 34543; int number2 = 54647; System.out.println("PALINDROME CHECK:"); System.out.println(number1 + ": " + palindromeCheck(number1)); System.out.println(number2 + ": " + palindromeCheck(number2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private final int initializeInt() {\n\t\treturn 0;\r\n\t}", "private void initialize(int[] arr) {\n a = ArraysUtils.sortAndRemoveDuplicates(arr);\n if (a.length != arr.length) {\n throw new IllegalArgumentException(\"Need unique list of numbers\");\n }\n numLeft = new BigIn...
[ "0.7098956", "0.6526267", "0.6386531", "0.6379774", "0.6260335", "0.6242824", "0.619132", "0.6175641", "0.6085451", "0.60310775", "0.60143936", "0.5970143", "0.5926353", "0.5926353", "0.58759516", "0.58713835", "0.58541787", "0.58453405", "0.58437294", "0.5838183", "0.5825234...
0.0
-1
Initialize a variable equal to the input to record the original number
public static boolean palindromeCheck(int x) { int original = x; // Initialize an integer to record the reverse of the input int reverse = 0; // Initialize an integer to track the remainder through the loop int remainder = 0; while(x != 0) { // Use modulo to get the last digit of the integer and store...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setGivenNum(double input) {\n givenNum = input;\n }", "private\tNum(int num) { value = num; }", "public static void SetNewNumber () {\n number = (int)(Math.random() * 9.1);\r\n\r\n // PROMPT THE USER\r\n System.out.println(\"A new number has been chosen.\");\r\n ...
[ "0.67842925", "0.6375248", "0.63246155", "0.6011446", "0.59998554", "0.5897192", "0.58446395", "0.57836294", "0.5759066", "0.5738012", "0.5705376", "0.56903803", "0.56669676", "0.56491876", "0.56089026", "0.55858326", "0.5579174", "0.5569469", "0.55561393", "0.55529", "0.5550...
0.0
-1
Creates a new instance of Adler32
public Adler32() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private USI_ADRC() {}", "private Bits32() {\r\n }", "public HwPeripheralFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "DL createDL();", "public MSACWrapperSdk() {}", "public HALeaseManagementModule() {\n\n }", "public Arm() {\n initializeLogger();\n initializeCurrentLimiting();\n ...
[ "0.5335509", "0.533239", "0.5153185", "0.49780488", "0.48736727", "0.48586863", "0.48242903", "0.48076162", "0.47909477", "0.47869915", "0.47805613", "0.47770983", "0.47585785", "0.47339764", "0.4691465", "0.46829012", "0.4669633", "0.4658354", "0.46510738", "0.46507886", "0....
0.847937
0